varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try to access removed...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2
3         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
4         to access removed nodes.
5
6 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
7
8         PR tree-optimization/63186
9         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
10         (mark_nonssa_use): Likewise.
11         (verify_non_ssa_vars): Verify all header blocks for label
12         definitions.
13
14 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16             Anna Tikhonova  <anna.tikhonova@intel.com>
17             Ilya Tocar  <ilya.tocar@intel.com>
18             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19             Ilya Verbin  <ilya.verbin@intel.com>
20             Kirill Yukhin  <kirill.yukhin@intel.com>
21             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
22
23         * config/i386/sse.md
24         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
25         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
26         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
27         "<avx2_avx512f>_permvar<mode><mask_name>".
28         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
29         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
30         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
31         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
32         Ditto.
33         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
34         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
35         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
36         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
37
38 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
39
40         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
41         V2DF, V4SF, DF, and DI modes.
42         (vsx_fmav2df2): Likewise.
43         (vsx_float_fix_<mode>2): Likewise.
44         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
45
46 2014-09-10  Xinliang David Li  <davidxl@google.com>
47
48         PR target/63209
49         * config/arm/arm.md (movcond_addsi): Handle case where source
50         and target operands are the same.
51
52 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
53
54         * final.c (this_is_asm_operands): Strengthen this variable from
55         rtx to const rtx_insn *.
56         * output.h (this_is_asm_operands): Likewise.
57         * rtl-error.c (location_for_asm): Strengthen param "insn" from
58         const_rtx to const rtx_insn *.
59         (diagnostic_for_asm): Likewise.
60         * rtl-error.h (error_for_asm): Likewise.
61         (warning_for_asm): Likewise.
62
63 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
64
65         * genextract.c (print_header): When writing out insn_extract to
66         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
67         * recog.h (insn_extract): Strengthen the param from rtx to
68         rtx_insn *.
69
70 2014-09-10  Mike Stump  <mikestump@comcast.net>
71
72         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
73         8.6.1.
74
75 2014-09-10  Martin Jambor  <mjambor@suse.cz>
76
77         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
78         (analyze): Do not set analyze flag if expand_thunk returns false;.
79         (create_wrapper): Likewise.
80         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
81
82 2014-09-10  Martin Jambor  <mjambor@suse.cz>
83
84         PR ipa/61654
85         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
86         new decl properly.  Analyze the new thunk if it is expanded.
87
88 2014-09-10  Andreas Schwab  <schwab@suse.de>
89
90         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
91         [USED_FOR_TARGET]: Define.
92
93 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
94
95         * config/mips/mips.c (mips_secondary_reload_class): Handle
96         regno < 0 case.
97
98 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
99
100         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
101         assignment.
102
103 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
104
105         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
106         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
107         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
108         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
109         flag_delete_null_pointer_checks for them.
110         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
111         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
112         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
113         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
114         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
115         stmt's iterator.
116         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
117         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
118         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
119         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
120         * doc/invoke.texi (-fsanitize=nonnull-attribute,
121         -fsanitize=returns-nonnull-attribute): Document.
122
123         * ubsan.h (struct ubsan_mismatch_data): Removed.
124         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
125         * ubsan.c (ubsan_source_location): For unknown locations,
126         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
127         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
128         Allow more than one location and arbitrary extra arguments passed
129         in ... instead of through MISMATCH pointer.
130         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
131         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
132         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
133         callers.
134
135 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
136             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
137             Anna Tikhonova  <anna.tikhonova@intel.com>
138             Ilya Tocar  <ilya.tocar@intel.com>
139             Andrey Turetskiy  <andrey.turetskiy@intel.com>
140             Ilya Verbin  <ilya.verbin@intel.com>
141             Kirill Yukhin  <kirill.yukhin@intel.com>
142             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
143
144         * config/i386/sse.md
145         (define_mode_iterator VI48F): New.
146         (define_insn "<avx512>_compress<mode>_mask"): Rename from
147         "avx512f_compress<mode>_mask" and update mode iterator.
148         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
149         "avx512f_compressstore<mode>_mask" and update mode iterator.
150         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
151         "avx512f_expand<mode>_maskz" and update mode iterator.
152         (define_insn "<avx512>_expand<mode>_mask"): Rename from
153         "avx512f_expand<mode>_mask" and update mode iterator.
154
155 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
156             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
157             Anna Tikhonova  <anna.tikhonova@intel.com>
158             Ilya Tocar  <ilya.tocar@intel.com>
159             Andrey Turetskiy  <andrey.turetskiy@intel.com>
160             Ilya Verbin  <ilya.verbin@intel.com>
161             Kirill Yukhin  <kirill.yukhin@intel.com>
162             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
163
164         * config/i386/i386.c
165         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
166         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
167         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
168         avx512dq_rangepv4sf_mask.
169         * config/i386/sse.md
170         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
171         UNSPEC_RANGE.
172         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
173         (define_insn "reduces<mode>"): Ditto.
174         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
175         Ditto.
176         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
177         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
178         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
179
180 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
181             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
182             Anna Tikhonova  <anna.tikhonova@intel.com>
183             Ilya Tocar  <ilya.tocar@intel.com>
184             Andrey Turetskiy  <andrey.turetskiy@intel.com>
185             Ilya Verbin  <ilya.verbin@intel.com>
186             Kirill Yukhin  <kirill.yukhin@intel.com>
187             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
188
189         * config/i386/i386.c
190         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
191         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
192         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
193         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
194         avx512vl_getmantv2df_mask.
195         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
196         avx512f_vgetmantv4sf_round.
197         * config/i386/sse.md
198         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
199         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
200         mode iterator.
201         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
202         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
203         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
204         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
205         iterator..
206         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
207         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
208         update mode iterator.
209         (define_expand
210         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
211         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
212         mode iterator.
213         (define_insn
214         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
215         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
216         update mode iterator.
217         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
218         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
219         iterator..
220         (define_insn
221         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
222         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
223         mode iterator..
224         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
225         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
226         update mode iterator.
227         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
228         "avx512f_getmant<mode><round_saeonly_name>".
229
230 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
231
232         PR ipa/63166
233         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
234
235 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
236             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
237             Anna Tikhonova  <anna.tikhonova@intel.com>
238             Ilya Tocar  <ilya.tocar@intel.com>
239             Andrey Turetskiy  <andrey.turetskiy@intel.com>
240             Ilya Verbin  <ilya.verbin@intel.com>
241             Kirill Yukhin  <kirill.yukhin@intel.com>
242             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
243
244         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
245         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
246         (define_mode_iterator FMAMODE_AVX512): New.
247         (define_mode_iterator FMAMODE): Remove conditions.
248         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
249         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
250         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
251         mode iterator.
252         (define_mode_iterator FMAMODE_NOVF512): Remove.
253         (define_insn "*fma_fmadd_<mode>"): Rename from
254         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
255         FMAMODE mode iterator.
256         (define_mode_iterator VF_SF_AVX512VL): New.
257         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
258         Use VF_SF_AVX512VL mode iterator.
259         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
260         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
261         iterator.
262         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
263         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
264         iterator.
265         (define_insn "*fma_fmsub_<mode>"): Rename from
266         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
267         FMAMODE mode iterator.
268         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
269         Use VF_SF_AVX512VL mode iterator.
270         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
271         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
272         iterator.
273         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
274         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
275         iterator.
276         (define_insn "*fma_fnmadd_<mode>"): Rename from
277         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
278         use FMAMODE mode iterator.
279         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
280         Use VF_SF_AVX512VL mode iterator.
281         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
282         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
283         iterator.
284         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
285         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
286         iterator.
287         (define_insn "*fma_fnmsub_<mode>"): Rename from
288         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
289         FMAMODE mode iterator.
290         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
291         Use VF_SF_AVX512VL mode iterator.
292         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
293         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
294         iterator.
295         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
296         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
297         iterator.
298         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
299         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
300         use VF_AVX512VL mode iterator.
301         (define_insn "*fma_fmaddsub_<mode>"): Rename from
302         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
303         remove subst usage.
304         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
305         Use VF_SF_AVX512VL mode iterator.
306         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
307         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
308         iterator.
309         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
310         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
311         iterator.
312         (define_insn "*fma_fmsubadd_<mode>"): Rename from
313         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
314         remove usage of subst.
315         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
316         Use VF_SF_AVX512VL mode iterator.
317         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
318         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
319         iterator.
320         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
321         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
322         iterator.
323
324 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
325
326         Revert r213751:
327         * calls.c (precompute_arguments): Check
328          promoted_for_signed_and_unsigned_p and set the promoted mode.
329         (promoted_for_signed_and_unsigned_p): New function.
330         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
331         and set the promoted mode.
332         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
333         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
334         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
335
336 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
337
338         * opth-gen.awk: Generate mapping from cpp message reasons to the
339         options that enable them.
340         * doc/options.texi (CppReason): Document.
341
342 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
343
344         * doc/invoke.texi (Wnormalized=): Update.
345
346 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
347
348         PR target/63195
349         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
350         operands.  Split off the constant operand alternative to ...
351         (*bool<mode>3_imm): New.
352
353 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
354
355         * rtl.h (single_set_2): Strengthen first param from const_rtx to
356         const rtx_insn *, and move prototype to above...
357         (single_set): ...this.  Convert this from a macro to an inline
358         function, enforcing the requirement that the param is a const
359         rtx_insn *.
360         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
361
362         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
363         Strengthen both params from rtx to rtx_insn *.
364         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
365         Likewise; introduce locals "producer_set", "consumer_set", using
366         them in place of "producer" and "consumer" when dealing with SET
367         rather than insn.
368         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
369         when invoking single_set in region guarded by INSN_P.
370         (avr_out_bitop): Likewise.
371         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
372         region guarded by GET_CODE check, using methods to strengthen
373         local "this_insn" from rtx to rtx_insn *, and for clarity.
374         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
375         Strengthen local "insn" from rtx to rtx_insn *.
376         (define_insn_and_split "xload<mode>_A"): Likewise.
377         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
378         "insn".
379         (find_load): Likewise for return type.
380         (workaround_speculation): Likewise for both locals named
381         "load_insn".
382         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
383         local "cc0_user".
384         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
385         for local "prev".
386         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
387         param 2.
388         * config/h8300/h8300.c (notice_update_cc): Likewise.
389         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
390         "insn" and "dep_insn".
391         (exact_store_load_dependency): Likewise for both params.
392         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
393         since this now clashes with inline function.  Instead, delay
394         calling single_set until the point where its needed, and then
395         assign the result to "compare_set" and rework the conditional that
396         follows.
397         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
398         local "last" from rtx to rtx_insn *.
399         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
400         second param.
401         (mips_store_data_bypass_p): Likewise for both params.
402         * config/mips/mips.c (mips_load_store_insns): Likewise for second
403         param.
404         (mips_store_data_bypass_p): Likewise for both params.
405         (mips_orphaned_high_part_p): Likewise for param "insn".
406         * config/mn10300/mn10300.c (extract_bundle): Likewise.
407         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
408         Introduce local rtx "insn2_pat".
409         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
410         "ninsn".
411         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
412         Introduce local rtx "set", using it in place of "insn" for the
413         result of single_set.  This appears to fix a bug, since the call
414         to find_regno_note on a SET does nothing.
415         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
416         params from rtx to rtx_insn *.
417         (set_to_load_agen): Likewise.
418         * config/s390/s390.c (s390_label_align): Likewise for local
419         "prev_insn".  Introduce new rtx locals "set" and "src", using
420         them in place of "prev_insn" for the results of single_set
421         and SET_SRC respectively.
422         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
423         Introduce new rtx local "set" using in place of "jump" for the
424         result of single_set.  Use SET_SRC (set) rather than plain
425         XEXP (set, 1).
426         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
427         rtx to rtx_insn *.
428         (noncall_uses_reg): Likewise.
429         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
430         guarded by GET_CODE check, using its methods for clarity, and to
431         enable strengthening local "this_insn" from rtx to rtx_insn *.
432         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
433         "insn" from rtx to rtx_insn *.
434         (define_expand "umulhisi3"): Likewise.
435         (define_expand "smulsi3_highpart"): Likewise.
436         (define_expand "umulsi3_highpart"): Likewise.
437         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
438         local "after".  Replace GET_CODE check with a dyn_cast,
439         introducing new local rtx_sequence * "seq", using insn method for
440         typesafety.
441
442         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
443         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
444         place of "insn" once we're dealing with patterns rather than the
445         input insn.
446         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
447         (scan_trace): Likewise for local "elt", updating lookups within
448         sequence to use insn method rather than element method.
449         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
450         to rtx_insn *.
451         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
452         * ifcvt.c (noce_try_abs): Likewise for local "insn".
453         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
454         invoking single_set.
455         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
456         "insn" from rtx to rtx_insn *.
457         (skip_usage_debug_insns): Likewise for return type, adding a
458         checked cast.
459         (check_secondary_memory_needed_p): Likewise for local "insn".
460         (inherit_reload_reg): Likewise.
461         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
462         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
463         checked casts.
464         (store_data_bypass_p): Likewise for both params.
465         (if_test_bypass_p): Likewise.
466         * recog.h (store_data_bypass_p): Likewise for both params.
467         (if_test_bypass_p): Likewise.
468         * reload.c (find_equiv_reg): Likewise for local "where".
469         * reorg.c (delete_jump): Likewise for param "insn".
470         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
471         to const rtx_insn *.
472         * store-motion.c (replace_store_insn): Likewise for param "del".
473         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
474         and use its methods for clarity, and to strengthen local "del"
475         from rtx to rtx_insn *.
476         (build_store_vectors): Use insn method of "st" when calling
477         replace_store_insn for typesafety and clarity.
478
479 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
480
481         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
482         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
483         on how to make it legal in future.
484
485 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
486
487         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
488         to rtx_insn *.
489         (restinsn): Likewise.
490         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
491         Likewise for param.
492         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
493         Likewise.
494         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
495         first param.
496         (arc_hazard): Likewise for both params.
497         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
498         checked casts to rtx_sequence * and uses of the insn method for
499         type-safety.
500         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
501         (arc_adjust_insn_length): Likewise for param "insn".
502         (struct insn_length_parameters_s): Likewise for first param of
503         "get_variants" callback field.
504         (arc_get_insn_variants): Likewise for first param and local
505         "inner".  Replace a check of GET_CODE with a dyn_cast to
506         rtx_sequence *, using methods for type-safety and clarity.
507         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
508         rtx_sequence * and uses of the insn method for type-safety when
509         invoking arc_adjust_insn_length.
510         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
511         for param.
512         (arm_address_offset_is_imm): Likewise.
513         (struct tune_params): Likewise for params 1 and 3 of the
514         "sched_adjust_cost" callback field.
515         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
516         params 1 and 3 ("insn" and "dep").
517         (xscale_sched_adjust_cost): Likewise.
518         (fa726te_sched_adjust_cost): Likewise.
519         (cortexa7_older_only): Likewise for param "insn".
520         (cortexa7_younger): Likewise.
521         (arm_attr_length_move_neon): Likewise.
522         (arm_address_offset_is_imm): Likewise.
523         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
524         * config/avr/avr.c (avr_notice_update_cc): Likewise.
525         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
526         (workaround_speculation): Likewise for local "last_condjump".
527         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
528         (shadow_or_blockage_p): Likewise.
529         (get_unit_reqs): Likewise.
530         (get_unit_operand_masks): Likewise.
531         (c6x_registers_update): Likewise.
532         (returning_call_p): Likewise.
533         (can_use_callp): Likewise.
534         (convert_to_callp): Likewise.
535         (find_last_same_clock): Likwise for local "t".
536         (reorg_split_calls): Likewise for local "shadow".
537         (hwloop_pattern_reg): Likewise for param "insn".
538         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
539         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
540         (frv_extract_membar): Likewise.
541         (frv_optimize_membar_local): Strengthen param "last_membar" from
542         rtx * to rtx_insn **.
543         (frv_optimize_membar_global): Strengthen param "membar" from rtx
544         to rtx_insn *.
545         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
546         to rtx_insn **.
547         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
548         both params from rtx to rtx_insn *.
549         (ia64_ld_address_bypass_p): Likewise.
550         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
551         "insn".
552         (ia64_safe_type): Likewise.
553         (group_barrier_needed): Likewise.
554         (safe_group_barrier_needed): Likewise.
555         (ia64_single_set): Likewise.
556         (is_load_p): Likewise.
557         (record_memory_reference): Likewise.
558         (get_mode_no_for_insn): Likewise.
559         (important_for_bundling_p): Likewise.
560         (unknown_for_bundling_p): Likewise.
561         (ia64_st_address_bypass_p): Likewise for both params.
562         (ia64_ld_address_bypass_p): Likewise.
563         (expand_vselect): Introduce new local rtx_insn * "insn", using it
564         in place of rtx "x" after the emit_insn call.
565         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
566         Strengthen param from rtx to rtx_insn *.
567         (ix86_agi_dependent): Likewise for both params.
568         (ix86_attr_length_immediate_default): Likewise for param 1.
569         (ix86_attr_length_address_default): Likewise for param.
570         (ix86_attr_length_vex_default): Likewise for param 1.
571         * config/i386/i386.c (ix86_attr_length_immediate_default):
572         Likewise for param "insn".
573         (ix86_attr_length_address_default): Likewise.
574         (ix86_attr_length_vex_default): Likewise.
575         (ix86_agi_dependent): Likewise for both params.
576         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
577         (vselect_insn): Likewise for this variable.
578         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
579         for param 1.
580         (m68k_sched_attr_opy_type): Likewise.
581         * config/m68k/m68k.c (sched_get_operand): Likewise.
582         (sched_attr_op_type): Likewise.
583         (m68k_sched_attr_opx_type): Likewise.
584         (m68k_sched_attr_opy_type): Likewise.
585         (sched_get_reg_operand): Likewise.
586         (sched_get_mem_operand): Likewise.
587         (m68k_sched_address_bypass_p): Likewise for both params.
588         (sched_get_indexed_address_scale): Likewise.
589         (m68k_sched_indexed_address_bypass_p): Likewise.
590         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
591         (m68k_sched_indexed_address_bypass_p): Likewise.
592         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
593         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
594         removing another.
595         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
596         params from rtx to rtx_insn *.
597         (mips_fmadd_bypass): Likewise.
598         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
599         (mips_linked_madd_p): Likewise.
600         (mips_macc_chains_last_hilo): Likewise for this variable.
601         (mips_macc_chains_record): Likewise for param.
602         (vr4130_last_insn): Likewise for this variable.
603         (vr4130_swap_insns_p): Likewise for both params.
604         (mips_ls2_variable_issue): Likewise for param.
605         (mips_need_noat_wrapper_p): Likewise for param "insn".
606         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
607         in place of "x" after the emit_insn.
608         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
609         params from rtx to rtx_insn *.
610         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
611         (pa_combine_instructions): Introduce local "par" for result of
612         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
613         to make_insn_raw.
614         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
615         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
616         (rl78_alloc_physical_registers_op1): Likewise.
617         (rl78_alloc_physical_registers_op2): Likewise.
618         (rl78_alloc_physical_registers_ro1): Likewise.
619         (rl78_alloc_physical_registers_cmp): Likewise.
620         (rl78_alloc_physical_registers_umul): Likewise.
621         (rl78_alloc_address_registers_macax): Likewise.
622         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
623         * config/s390/predicates.md (execute_operation): Likewise for
624         local "insn".
625         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
626         params.
627         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
628         (addr_generation_dependency_p): Likewise for param "insn".
629         (s390_agen_dep_p): Likewise for both params.
630         (s390_fpload_toreg): Likewise for param "insn".
631         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
632         * config/sh/sh.c (sh_loop_align): Likewise for param and local
633         "next".
634         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
635         * config/sh/sh_treg_combine.cc
636         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
637         and local "i".
638         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
639         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
640         "and_insn", "load", "shift".
641         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
642         "insn".
643         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
644         for XEXP (note, 0) of the REG_CC_SETTER note.
645         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
646         rtx_insn *, eliminating a checked cast made redundant by this.
647         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
648         to rtx_insn *.
649         * genattr.c (main): When writing out the prototype to
650         const_num_delay_slots, strengthen the param from rtx to
651         rtx_insn *.
652         * genattrtab.c (write_const_num_delay_slots): Likewise when
653         writing out the implementation of const_num_delay_slots.
654         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
655         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
656         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
657         favor of new rtx locals "src" and "set" and new local rtx_insn *
658         "insn" and "seq".
659         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
660         to rtx_insn *.
661         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
662         locals "cond", "if_then_else", "set" and new rtx_insn * locals
663         "insn" and "seq".
664         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
665         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
666         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
667         the top-level scope, replacing with new more tightly-scoped rtx
668         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
669         "new_insn", "copy_of_insn_b", and make local rtx "set" more
670         tightly-scoped.
671         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
672         rtx_insn *.
673         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
674         "move_insn".
675         (ira_setup_alts): Likewise for param "insn".
676         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
677         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
678         and an rtx_insn *.
679         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
680         new more-tightly scoped rtx locals "add3_insn", "insn",
681         "add2_insn" and rtx_insn * "move_insn".
682         * postreload-gcse.c (eliminate_partially_redundant_load): Add
683         checked cast on result of gen_move_insn when invoking
684         extract_insn.
685         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
686         rtx_insn *.
687         (verify_changes): Add a checked cast on "object" when invoking
688         insn_invalid_p.
689         (extract_insn_cached): Strengthen param "insn" from rtx to
690         rtx_insn *.
691         (extract_constrain_insn_cached): Likewise.
692         (extract_insn): Likewise.
693         * recog.h (insn_invalid_p): Likewise for param 1.
694         (recog_memoized): Likewise for param.
695         (extract_insn): Likewise.
696         (extract_constrain_insn_cached): Likewise.
697         (extract_insn_cached): Likewise.
698         * reload.c (can_reload_into): Likewise for local "test_insn".
699         * reload.h (cleanup_subreg_operands): Likewise for param.
700         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
701         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
702         result of emit_insn.  Remove a checked cast made redundant by this
703         change.
704         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
705         rtx to rtx_insn *.
706         * sel-sched.c (get_reg_class): Likewise.
707
708 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
709         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
710
711          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
712          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
713         Define.
714         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
715
716 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
717
718         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
719         const rtx_insn *, and from rtx to rtx_insn * for the other
720         overloaded variant.
721         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
722         INSN_LOCATION, since we know INSN_P holds.
723         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
724         (insn_file): Likewise.
725         (insn_scope): Likewise.
726         (insn_location): Likewise.
727
728         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
729         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
730         for the result of gen_load_const_gp.
731         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
732         param from rtx to rtx_insn *.
733         * config/rs6000/rs6000.c (output_call): Likewise.
734         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
735         introducing a checked cast to rtx_sequence * and use of the insn
736         method.
737         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
738         from rtx to rtx_insn *.
739         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
740         (insn_line): Likewise.
741         (insn_file): Likewise.
742         (insn_location): Likewise.
743         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
744         from rtx to rtx_insn *.
745         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
746         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
747         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
748         via a checked cast.
749         * reorg.c (relax_delay_slots): Strengthen locals named "after"
750         from rtx to rtx_insn *; use methods of "pat" for type-safety.
751
752 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
753
754         * combine.c (try_combine): Eliminate checked cast on result of
755         gen_rtx_INSN.
756         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
757         autogenerated one by strengthening the return type and params 2 and 3
758         from rtx to rtx_insn *, and by naming the params.
759         * gengenrtl.c (special_rtx): Add INSN to those that are
760         special-cased.
761         * rtl.h (gen_rtx_INSN): New prototype.
762
763 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
764
765         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
766         than NULL_RTX.
767         (no_equiv): Likewise.
768         (update_equiv_regs): Likewise.
769         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
770         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
771         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
772         clarity.
773         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
774         from rtx to rtx_insn_list *.
775         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
776         rtx_insn_list * and use methods for clarity and typesafety.
777         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
778         "list".
779         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
780         redundant check on INSN_P (insns): this cannot hold, as "insns" is
781         an INSN_LIST, not an insn.
782         (reverse_equiv_p): Strengthen local "insns" from rtx to
783         rtx_insn_list * and use methods for clarity and typesafety.
784         (contains_reloaded_insn_p): Likewise for local "list".
785
786 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
787
788         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
789         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
790         (arm_builtin_vectorized_function): Likewise.
791         * config/arm/arm_neon_builtins.def: New macro for copysignf.
792         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
793
794 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
795
796         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
797         * builtins.h (default_target_builtins): Likewise.
798         * gcse.h (default_target_gcse): Likewise.
799         * target-globals.h (target_globals): Add a destructor.  Convert
800         void-pointer fields back to their real type and change from
801         GTY((atomic)) to GTY((skip)).
802         (restore_target_globals): Remove casts accordingly.
803         * target-globals.c (save_target_globals): Use XCNEW rather than
804         ggc_internal_cleared_alloc to allocate non-GC structures.
805         Use ggc_cleared_alloc to allocate the target_globals structure
806         itself.
807         (target_globals::~target_globals): Define.
808
809 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
810
811         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
812         mnemonic instead of fldmfdd.
813         * config/arm/arm.c (vfp_output_fstmd): Rename to...
814         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
815         Output vpush when address register is SP.
816         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
817         (vfp_output_vstmd): ... This.
818         * config/arm/vfp.md (push_multi_vfp): Update call to
819         vfp_output_vstmd.
820
821 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
822
823         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
824
825 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
826
827         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
828         (*sqrtdf2_vfp): Likewise.
829         (*cmpsf_vfp): Likewise.
830         (*cmpsf_trap_vfp): Likewise.
831         (*cmpdf_vfp): Likewise.
832         (*cmpdf_trap_vfp): Likewise.
833
834 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
835
836         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
837         (*truncdfsf2_vfp): Likewise.
838         (*truncsisf2_vfp): Likewise.
839         (*truncsidf2_vfp): Likewise.
840         (fixuns_truncsfsi2): Likewise.
841         (fixuns_truncdfsi2): Likewise.
842         (*floatsisf2_vfp): Likewise.
843         (*floatsidf2_vfp): Likewise.
844         (floatunssisf2): Likewise.
845         (floatunssidf2): Likewise.
846
847 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
848
849         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
850         (*muldf3_vfp): Likewise.
851         (*mulsf3negsf_vfp): Likewise.
852         (*muldf3negdf_vfp): Likewise.
853         (*mulsf3addsf_vfp): Likewise.
854         (*muldf3adddf_vfp): Likewise.
855         (*mulsf3subsf_vfp): Likewise.
856         (*muldf3subdf_vfp): Likewise.
857         (*mulsf3negsfaddsf_vfp): Likewise.
858         (*fmuldf3negdfadddf_vfp): Likewise.
859         (*mulsf3negsfsubsf_vfp): Likewise.
860         (*muldf3negdfsubdf_vfp): Likewise.
861
862 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
863
864         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
865         (*absdf2_vfp): Likewise.
866         (*negsf2_vfp): Likewise.
867         (*negdf2_vfp): Likewise.
868         (*addsf3_vfp): Likewise.
869         (*adddf3_vfp): Likewise.
870         (*subsf3_vfp): Likewise.
871         (*subdf3_vfp): Likewise.
872         (*divsf3_vfp): Likewise.
873         (*divdf3_vfp): Likewise.
874
875 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
876
877         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
878         multiple.
879         (arm_print_operand): Don't convert real values to decimal
880         representation in default case.
881         (fp_immediate_constant): Delete.
882         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
883         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
884         syntax.
885         (*thumb2_movsi_vfp): Likewise.
886         (*movdi_vfp): Likewise.
887         (*movdi_vfp_cortexa8): Likewise.
888         (*movhf_vfp_neon): Likewise.
889         (*movhf_vfp): Likewise.
890         (*movsf_vfp): Likewise.
891         (*thumb2_movsf_vfp): Likewise.
892         (*movdf_vfp): Likewise.
893         (*thumb2_movdf_vfp): Likewise.
894         (*movsfcc_vfp): Likewise.
895         (*thumb2_movsfcc_vfp): Likewise.
896         (*movdfcc_vfp): Likewise.
897         (*thumb2_movdfcc_vfp): Likewise.
898
899 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
900
901         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
902         (-mtune): Likewise.
903         (-mcpu): Likewise.
904
905 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
906
907         PR target/61749
908         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
909         Use qualifier_immediate for last operand.  Rename to...
910         (aarch64_types_ternop_lane_qualifiers): ... This.
911         (TYPES_QUADOP): Rename to...
912         (TYPES_TERNOP_LANE): ... This.
913         (aarch64_simd_expand_args): Return const0_rtx when encountering user
914         error.  Change return of 0 to return of NULL_RTX.
915         (aarch64_crc32_expand_builtin): Likewise.
916         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
917         ICE when expanding unknown builtin.
918         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
919         TERNOP_LANE qualifiers.
920         (sqdmlsl_lane): Likewise.
921         (sqdmlal_laneq): Likewise.
922         (sqdmlsl_laneq): Likewise.
923         (sqdmlal2_lane): Likewise.
924         (sqdmlsl2_lane): Likewise.
925         (sqdmlal2_laneq): Likewise.
926         (sqdmlsl2_laneq): Likewise.
927
928 2014-09-09  Nick Clifton  <nickc@redhat.com>
929
930         * doc/invoke.texi (Optimization Options): Add missing @gol to the
931         end of a line.
932         (S/390 and zSeries Options): Remove superfluous word from the
933         description of the -mhotpatch option.
934
935 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
936
937         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
938         * ira.c: #include "shrink-wrap.h"
939         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
940         * ifcvt.c: #include "shrink-wrap.h"
941         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
942
943 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
944
945         * common/config/picochip/picochip-common.c: Remove.
946         * config.gcc: Remove support for picochip.
947         * config/picochip/constraints.md: Remove.
948         * config/picochip/dfa_space.md: Remove.
949         * config/picochip/dfa_speed.md: Remove.
950         * config/picochip/picochip-protos.h: Remove.
951         * config/picochip/picochip.c: Remove.
952         * config/picochip/picochip.h: Remove.
953         * config/picochip/picochip.md: Remove.
954         * config/picochip/picochip.opt: Remove.
955         * config/picochip/predicates.md: Remove.
956         * config/picochip/t-picochip: Remove.
957         * doc/md.texi: Don't document picochi.
958
959 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
960
961         * basic-block.h (control_flow_insn_p): Strengthen param from
962         const_rtx to const rtx_insn *.
963         * cfgbuild.c (control_flow_insn_p): Likewise.
964
965 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
966
967         * gcse.c (modify_mem_list): Strengthen this variable from
968         vec<rtx> * to vec<rtx_insn *> *.
969         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
970         vec<rtx_insn *>.
971         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
972         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
973         (record_last_mem_set_info): Strengthen param "insn" from rtx to
974         rtx_insn *.
975         (record_last_set_info): Likewise for local "last_set_insn".
976
977 2014-09-08  DJ Delorie  <dj@redhat.com>
978
979         * doc/invoke.texi (MSP430 Options): Add -minrt.
980
981 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
982
983         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
984         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
985         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
986         handling SH_SPLAT.
987         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
988         of extracted lane.
989         (adjust_splat): New function.
990         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
991         (dump_swap_insn_table): Add case for SH_SPLAT.
992
993 2014-09-08  Richard Biener  <rguenther@suse.de>
994
995         PR ipa/63196
996         * tree-inline.c (copy_loops): The source loop header should
997         always be non-NULL.
998         (tree_function_versioning): If loops need fixup after removing
999         unreachable blocks fix them.
1000         * omp-low.c (simd_clone_adjust): Do not add incr block to
1001         loop under construction.
1002
1003 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1004
1005         * config/aarch64/aarch64-builtins.c
1006         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1007
1008 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1009
1010         * config/i386/cygming.h (TF_SIZE): Remove.
1011         * config/i386/darwin.h (TF_SIZE): Remove.
1012         * config/i386/dragonfly.h (TF_SIZE): Remove.
1013         * config/i386/freebsd.h (TF_SIZE): Remove.
1014         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1015         * config/i386/openbsdelf.h (TF_SIZE): Remove.
1016         * config/i386/sol2.h (TF_SIZE): Remove.
1017         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1018         * config/ia64/linux.h (TF_SIZE): Remove.
1019         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1020         * doc/tm.texi: Regenerate.
1021         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1022
1023 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1024
1025         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1026         Remove.
1027         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1028         Remove.
1029         * doc/tm.texi: Regenerate.
1030         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1031         Poison.
1032         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1033         * config/cris/cris.h (__make_dp): Remove.
1034
1035 2014-09-08  Richard Biener  <rguenther@suse.de>
1036
1037         PR bootstrap/63204
1038         * cfgloop.c (mark_loop_for_removal): Track former header
1039         unconditionally.
1040         * cfgloop.h (struct loop): Add former_header member unconditionally.
1041         * loop-init.c (fix_loop_structure): Enable bogus loop removal
1042         diagnostic unconditionally.
1043
1044 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1045
1046         PR target/63190
1047         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1048         constraint for operand0 and remove write only modifier from operand3.
1049
1050 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
1051
1052         PR rtl-optimization/62208
1053         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1054         rather than const0_rtx in eq/ne-xor simplifications.
1055
1056 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
1057
1058         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1059         (arc_output_mi_thunk): Likewise.
1060
1061         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1062         arguments to silence bogus warning.
1063
1064 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
1065
1066         PR middle-end/63171
1067         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1068
1069 2014-09-06  Tom de Vries  <tom@codesourcery.com>
1070
1071         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1072         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1073         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1074
1075 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
1076
1077         PR target/63188
1078         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1079         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1080
1081 2014-09-05  Easwaran Raman  <eraman@google.com>
1082
1083         PR rtl-optimization/62146
1084         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1085         hoisted instruction unconditional.
1086
1087 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
1088
1089         PR target/63187
1090         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1091         Do not allow any_mask_operand for operands[2].
1092         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1093
1094 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1095
1096         * config/arc/arc.c (arc_print_operand): Use insn method of
1097         final_sequence for type-safety.
1098         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1099         "insn" from rtx to rtx_insn *.
1100         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1101         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1102         Likewise for locals "branch", "label".
1103         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1104         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
1105         (same_cmp_following_p): Likewise for locals "i2", "i3".
1106         * config/sh/sh_optimize_sett_clrt.cc
1107         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1108         param "cbranch_insn".
1109         * function.c (convert_jumps_to_returns): Likewis for local "jump".
1110         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1111         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1112         const rtx_insn *.
1113         (condjump_p): Likewise.
1114         (condjump_in_parallel_p): Likewise.
1115         (pc_set): Likewise.
1116         (any_uncondjump_p): Likewise.
1117         (any_condjump_p): Likewise.
1118         (condjump_label): Likewise.
1119         (returnjump_p): Strengthen param "insn" from rtx to
1120         const rtx_insn *.
1121         (onlyjump_p): Strengthen param "insn" from const_rtx to
1122         const rtx_insn *.
1123         (jump_to_label_p): Likewise.
1124         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1125         (invert_jump): Likewise.
1126         * reorg.c (simplejump_or_return_p): Add checked cast when calling
1127         simplejump_p.
1128         (get_jump_flags): Strengthen param "insn" from rtx to
1129         const rtx_insn *.
1130         (get_branch_condition): Likewise.
1131         (condition_dominates_p): Likewise.
1132         (make_return_insns): Move declaration of local "pat" earlier, to
1133         after we've handled NONJUMP_INSN_P and non-sequences, using its
1134         methods to simplify the code and for type-safety.
1135         * rtl.h (find_constant_src): Strengthen param from const_rtx to
1136         const rtx_insn *.
1137         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1138         (condjump_p): Strengthen param from const_rtx to
1139         const rtx_insn *.
1140         (any_condjump_p): Likewise.
1141         (any_uncondjump_p): Likewise.
1142         (pc_set): Likewise.
1143         (condjump_label): Likewise.
1144         (simplejump_p): Likewise.
1145         (returnjump_p): Likewise.
1146         (onlyjump_p): Likewise.
1147         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1148         (invert_jump): Likewise.
1149         (condjump_in_parallel_p): Strengthen param from const_rtx to
1150         const rtx_insn *.
1151         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1152         to const rtx_insn *.
1153         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1154         to const rtx_insn *.
1155         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1156
1157 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1158
1159         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1160         above the conditional, and convert the check on GET_CODE to a
1161         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1162         the conditional.  Simplify the conditional by using methods of
1163         "trial_seq".
1164
1165 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1166
1167         * haifa-sched.c (check_clobbered_conditions): Strengthen local
1168         "link" from rtx to rtx_insn_list *, and use its methods for
1169         clarity and type-safety.
1170         (toggle_cancelled_flags): Likewise.
1171         (restore_last_backtrack_point): Likewise.
1172         (queue_to_ready): Use insn method of "link" in one place.
1173         (schedule_block): Strengthen local "link" from rtx to
1174         rtx_insn_list *, and use its methods for clarity and type-safety.
1175
1176 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1177
1178         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1179         param "insn" from const_rtx to const rtx_insn *.
1180         (sched_get_reverse_condition_uncached): Likewise.
1181         (sched_get_condition_with_rev): Likewise.
1182         (sched_has_condition_p): Likewise.
1183         (sched_insns_conditions_mutex_p): Likewise for both params.
1184         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1185         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1186         (setup_insn_reg_uses): Move local "list" to be more tightly
1187         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
1188         its methods for clarity and type-safety.
1189         (sched_analyze_1): Strengthen local "pending" from rtx to
1190         rtx_insn_list *, and local "pending_mem" from rtx to
1191         rtx_expr_list *.  Use methods of each for clarity and type-safety.
1192         (sched_analyze_2): Likewise.
1193         (sched_analyze_insn): Likewise.
1194
1195         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1196         param from const_rtx to const rtx_insn *.
1197         (sched_insns_conditions_mutex_p): Likewise for both params.
1198         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1199         param.
1200
1201         * system.h (CONST_CAST_RTX_INSN): New macro.
1202
1203 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1204
1205         * recog.c (peep2_attempt): Strengthen return type from rtx to
1206         rtx_insn *.
1207         (peep2_update_life): Likewise for params "last", "prev", removing
1208         a checked cast made redundant by this.
1209         (peephole2_optimize): Likewise for local "last".
1210
1211 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1212
1213         * basic-block.h (set_block_for_insn): Eliminate this macro in
1214         favor of...
1215         * rtl.h (set_block_for_insn): New inline function, imposing the
1216         requirement that the "insn" param is an rtx_insn *.
1217
1218 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1219
1220         * caller-save.c (setup_save_areas): Strengthen local "insn" from
1221         rtx to rtx_insn *.
1222         * final.c (get_call_reg_set_usage): Likewise for first param,
1223         eliminating a checked cast.
1224         * regs.h (get_call_reg_set_usage): Likewise for first param.
1225         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1226         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1227         cast, replacing references to "x" with "call_insn" where
1228         appropriate.
1229         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1230         rtx_insn *, adding a checked cast.
1231
1232 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1233
1234         * output.h (final_scan_insn): Strengthen first param from rtx to
1235         rtx_insn *.
1236
1237         * final.c (final_scan_insn): Likewise, renaming it back from
1238         "uncast_insn" to "insn", eliminating the checked cast.
1239
1240         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1241         "vec" with an rtx_sequence * "seq", taking a copy of
1242         "final_sequence", and using methods of "seq" for clarity, and for
1243         type-safety in the calls to final_scan_insn.
1244         * config/mips/mips.c (mips_output_conditional_branch): Use methods
1245         of "final_sequence" for clarity, and for type-safety in the call to
1246         final_scan_insn.
1247         * config/sh/sh.c (print_slot): Strengthen param from rtx to
1248         rtx_sequence * and rename from "insn" to "seq".
1249
1250 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1251
1252         * jump.c (delete_related_insns): Introduce a new local "table" by
1253         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1254         get_labels method of "table" to simplify access to the labels in
1255         the jump table.
1256
1257 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1258
1259         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1260         f_minmaxs, f_minmaxd types.
1261
1262 2014-09-05  Richard Biener  <rguenther@suse.de>
1263
1264         * cfgloop.c (mark_loop_for_removal): Record former header
1265         when ENABLE_CHECKING.
1266         * cfgloop.h (strut loop): Add former_header member when
1267         ENABLE_CHECKING.
1268         * loop-init.c (fix_loop_structure): Sanity check loops
1269         marked for removal if they re-appeared.
1270
1271 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1272
1273         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1274         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1275
1276         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1277         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1278         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1279         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1280         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1281         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1282         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1283         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1284         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1285         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1286         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1287         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1288         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1289         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1290         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1291         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1292         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1293         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1294         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1295         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1296         with int{32,16,8}_t.
1297
1298 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1299
1300         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1301         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1302         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1303         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1304         Remove temporary __asm__ and reimplement.
1305
1306 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1307
1308         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1309         handling cmge, cmgt, cmeq, cmtst.
1310
1311         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1312         cmlt, cmgeu, cmgtu, cmtst): Remove.
1313
1314         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1315         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1316         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1317         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1318
1319 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1320
1321         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1322         TYPES_TST): Define.
1323         (aarch64_fold_builtin): Update pattern for cmtst.
1324
1325         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1326         Declare.
1327
1328         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1329
1330         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1331         Switch operands, separate out more cases, refactor.
1332
1333         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1334
1335         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1336         argument; rename old version to...
1337         (aarch64_const_vec_all_same_in_range_p): ...this.
1338         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1339
1340         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1341
1342 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1343
1344         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1345         Remove qualifier_const_pointer, update comment.
1346
1347 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1348
1349         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1350
1351 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1352
1353         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1354         varargs with pointer parameter.
1355         (aarch64_simd_expand_builtin): pass pointer into previous.
1356
1357 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1358
1359         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1360         alus_ext.
1361
1362 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1363
1364         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1365         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1366         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1367         Replace temporary asm with call to builtin.
1368         (vrbit_p8, vrbitq_p8): New functions.
1369
1370 2014-09-05  Richard Biener  <rguenther@suse.de>
1371
1372         * cfgloop.c (mark_loop_for_removal): New function.
1373         * cfgloop.h (mark_loop_for_removal): Declare.
1374         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1375         (merge_blocks): Likewise.
1376         (duplicate_block): Likewise.
1377         * except.c (sjlj_emit_dispatch_table): Likewise.
1378         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1379         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1380         (thread_through_loop_header): Likewise.
1381
1382 2014-09-05  Richard Biener  <rguenther@suse.de>
1383
1384         PR middle-end/63148
1385         * fold-const.c (try_move_mult_to_index): Remove.
1386         (fold_binary_loc): Do not call it.
1387         * tree-data-ref.c (dr_analyze_indices): Strip conversions
1388         from the base object again.
1389
1390 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
1391
1392         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1393         DImode.
1394
1395 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
1396
1397         PR target/55701
1398         * config/arm/arm.md (setmem): New pattern.
1399         * config/arm/arm-protos.h (struct tune_params): New fields.
1400         (arm_gen_setmem): New prototype.
1401         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1402         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1403         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1404         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1405         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1406         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1407         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1408         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1409         (arm_const_inline_cost): New function.
1410         (arm_block_set_max_insns): New function.
1411         (arm_block_set_non_vect_profit_p): New function.
1412         (arm_block_set_vect_profit_p): New function.
1413         (arm_block_set_unaligned_vect): New function.
1414         (arm_block_set_aligned_vect): New function.
1415         (arm_block_set_unaligned_non_vect): New function.
1416         (arm_block_set_aligned_non_vect): New function.
1417         (arm_block_set_vect, arm_gen_setmem): New functions.
1418
1419 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
1420
1421         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1422
1423 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
1424
1425         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1426
1427 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1428
1429         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1430         an rtx.
1431         * valtrack.h: Adjust.
1432
1433 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1434
1435         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1436         an rtx.
1437         (emit_jump_insn_before_noloc): Likewise.
1438         (emit_call_insn_before_noloc): Likewise.
1439         (emit_label_before): Likewise.
1440         (emit_label_after): Likewise.
1441         (emit_insn_before_setloc): Likewise.
1442         (emit_jump_insn_before_setloc): Likewise.
1443         (emit_call_insn_before_setloc): Likewise.
1444         (emit_call_insn_before): Likewise.
1445         * rtl.h: Adjust.
1446
1447 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1448
1449         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1450         rtx_insn *, eliminating a checked cast.
1451
1452 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1453
1454         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1455         const_rtx to const rtx_insn *.
1456         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1457         cast.
1458
1459 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1460
1461         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1462         fixup_args_size_notes.
1463         * expr.c (fixup_args_size_notes): Strengthen first two params from
1464         rtx to rtx_insn *, eliminating a checked cast.
1465         * rtl.h (fixup_args_size_notes): Strengthen first two params from
1466         rtx to rtx_insn *.
1467
1468 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1469
1470         * haifa-sched.c (get_ready_element): Strengthen return type from
1471         rtx to rtx_insn *.
1472         * sched-int.h (get_ready_element): Likewise.
1473
1474 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
1475
1476         PR target/63165
1477         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1478         indexed_or_indirect_operand instead of memory_operand.
1479         (floatsi<mode>2_lfiwzx_mem): Ditto.
1480
1481 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1482
1483         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1484         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1485         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1486
1487 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1488
1489         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1490         rtx.
1491         (get_last_nonnote_insn): Likewise.
1492         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1493         * resource.c (find_basic_block): Likewise.
1494         * rtl.h: Adjust.
1495         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1496         const_rtx.
1497
1498 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
1499
1500         * genattr.c (main): Within the prototype of insn_latency written
1501         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1502         * genautomata.c (output_internal_maximal_insn_latency_func):
1503         Within the implementation of insn_latency written out to
1504         insn-automata.c, strengthen both params from rtx to rtx_insn *,
1505         eliminating a pair of checked casts.
1506
1507 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
1508
1509         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1510         rtx_insn *.
1511
1512         * rtl.h (eh_returnjump_p): Likewise.
1513
1514 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
1515
1516         * Makefile.in (TAGS): Handle constructs in timevar.def.
1517
1518 2014-09-04  Guozhi Wei  <carrot@google.com>
1519
1520         PR target/62040
1521         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1522         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1523         it into two patterns.
1524         (move_lo_quad_internal_be_<mode>): Likewise.
1525
1526 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1527
1528         * doc/options.texi: Document that Var and Init are required if CPP
1529         is given.
1530         * optc-gen.awk: Require Var and Init if CPP is given.
1531         * common.opt (Wpedantic): Use Init.
1532
1533 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1534
1535         * config/rs6000/rs6000.c (special_handling_values): Add
1536         SH_EXTRACT.
1537         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1538         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
1539         as swappable with special handling SH_EXTRACT.  Remove
1540         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1541         optimization.
1542         (adjust_extract): New function.
1543         (handle_special_swappables): Add default to case statement; add
1544         case for SH_EXTRACT that calls adjust_extract.
1545         (dump_swap_insn_table): Handle SH_EXTRACT.
1546
1547 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1548
1549         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1550         selection of 0th memory doubleword, regardless of endianness.
1551
1552 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1553
1554         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1555
1556 2014-09-04  Alan Modra  <amodra@gmail.com>
1557
1558         PR debug/60655
1559         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1560         can't be output.
1561
1562 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
1563
1564         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1565         * targhooks.c (default_dwarf_frame_reg_mode): New function.
1566         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1567         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1568         * doc/tm.texi: Regenerate.
1569         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1570         selection logic to default_dwarf_frame_reg_mode.
1571
1572 2014-09-03  Marek Polacek  <polacek@redhat.com>
1573
1574         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1575         by -Wall.
1576
1577 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
1578
1579         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1580         the automodified register.
1581
1582 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
1583
1584         * output.h (get_some_local_dynamic_name): Declare.
1585         * final.c (some_local_dynamic_name): New variable.
1586         (get_some_local_dynamic_name): New function.
1587         (final_end_function): Clear some_local_dynamic_name.
1588         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1589         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1590         (print_operand): Report an error if '%&' is used inappropriately.
1591         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1592         (get_some_local_dynamic_name_1): Delete.
1593         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1594         (rs6000_get_some_local_dynamic_name): Delete.
1595         (rs6000_get_some_local_dynamic_name_1): Delete.
1596         (print_operand): Report an error if '%&' is used inappropriately.
1597         * config/s390/s390.c (machine_function): Remove some_ld_name.
1598         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1599         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1600         * config/sparc/sparc.c: Include rtl-iter.h.
1601         (machine_function): Remove some_ld_name.
1602         (sparc_print_operand): Report an error if '%&' is used inappropriately.
1603         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1604
1605 2014-09-03  Richard Henderson  <rth@redhat.com>
1606
1607         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1608         (aarch64_popwb_pair_reg): Remove.
1609         (aarch64_set_frame_expr): Remove.
1610         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1611         the restore ops performed by the insns generated.
1612         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1613         insn.  Perform the calls_eh_return addition later; do not attempt to
1614         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
1615         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1616         special markup at all.  Load cfun->machine->frame.hard_fp_offset
1617         into a local variable.
1618         (aarch64_frame_pointer_required): Don't check calls_alloca.
1619
1620 2014-09-03  Richard Biener  <rguenther@suse.de>
1621
1622         * opts.c (default_options_optimization): Adjust
1623         max-combine-insns to 2 for -Og.
1624
1625 2014-09-03  Martin Jambor  <mjambor@suse.cz>
1626
1627         PR ipa/62015
1628         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1629         pass-trough jump functions correctly.
1630
1631 2014-09-03  Martin Jambor  <mjambor@suse.cz>
1632
1633         PR ipa/61986
1634         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1635         created replacements in ascending order of offsets.
1636         (known_aggs_to_agg_replacement_list): Likewise.
1637
1638 2014-09-03  Martin Liska  <mliska@suse.cz>
1639
1640         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1641         is set to set uninitialized value for vnresult.
1642
1643 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1644
1645         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1646         for TARGET_MUST_PASS_IN_STACK.
1647
1648 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1649
1650         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1651         for TARGET_ARG_PARTIAL_BYTES.
1652
1653 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1654
1655         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1656         instructions for varargs implementation.
1657         (nds32_expand_epilogue): Emit stack adjustment instructions for
1658         varargs implementation.
1659
1660 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1661
1662         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1663         optimization detection.
1664
1665 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1666
1667         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1668         arguments.
1669         (nds32_function_arg_advance): Deal with nameless arguments.
1670         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1671         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1672         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1673
1674 2014-09-03  Richard Biener  <rguenther@suse.de>
1675
1676         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1677         (struct bb_bitmap_sets): Remove deferred member.
1678         (BB_DEFERRED): Remove.
1679         (defer_or_phi_translate_block): Remove.
1680         (compute_antic_aux): Remove deferring of blocks, assert
1681         proper iteration order.
1682         (compute_antic): Do not set BB_DEFERRED.
1683         (eliminate): Allocate el_avail of proper size initially.
1684
1685 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1686
1687         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1688         according to the value of crtl->args.pretend_args_size.
1689
1690 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1691
1692         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1693         varargs information.
1694
1695 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1696
1697         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1698         implementation for TARGET_SETUP_INCOMING_VARARGS.
1699         (nds32_strict_argument_naming): Refine comment.
1700         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1701         Define for future implementation.
1702
1703 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
1704
1705         * config/i386/adxintrin.h (_subborrow_u32): New.
1706         (_addcarry_u32): Ditto.
1707         (_subborrow_u64): Ditto.
1708         (_addcarry_u64): Ditto.
1709         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1710         IX86_BUILTIN_SBB64.
1711         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1712         __builtin_ia32_sbb_u64
1713
1714 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1715
1716         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1717         GPR-specific stuff.
1718         (nds32_function_arg_advance): Likewise.
1719         (nds32_init_cumulative_args): Likewise.
1720         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1721         (NDS32_FIRST_GPR_REGNUM): Define.
1722         (NDS32_LAST_GPR_REGNUM): Define.
1723         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1724         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1725         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1726         (machine_function): Use GRP-specific stuff.
1727
1728 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1729
1730         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1731         (nds32_expand_epilogue): Likewise.
1732         (nds32_expand_prologue_v3push): Likewise.
1733         (nds32_expand_epilogue_v3pop): Likewise.
1734
1735 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1736
1737         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1738         v3push/v3pop for variadic function.
1739         * config/nds32/nds32.md (prologue, epilogue): Likewise.
1740
1741 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1742
1743         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1744         Check rtx for varargs implementation.
1745         (nds32_output_stack_pop): Likewise.
1746         * config/nds32/nds32-protos.h: Have a rtx argument for
1747         nds32_output_stack_push and nds32_output_stack_pop.
1748         * config/nds32/nds32.md: Likewise.
1749
1750 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1751
1752         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1753         to check if FUNC is an interrupt service routine.
1754         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1755
1756 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1757
1758         * config/nds32/nds32.h (machine_function): Add some fields for variadic
1759         arguments implementation.
1760
1761 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1762
1763         * config/nds32/nds32-predicates.c
1764         (nds32_valid_stack_push_pop): Rename to ...
1765         (nds32_valid_stack_push_pop_p): ... this.
1766         * config/nds32/nds32-protos.h: Likewise.
1767         * config/nds32/predicates.md: Likewise.
1768
1769 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1770
1771         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1772         (nds32_emit_stack_v3push): ... this.
1773         (nds32_gen_stack_v3pop): Rename to ...
1774         (nds32_emit_stack_v3pop): ... this and consider CFA restore
1775         information.
1776
1777 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1778
1779         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1780         (nds32_emit_stack_push_multiple): ... this.
1781         (nds32_gen_stack_pop_multiple): Rename to ...
1782         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1783         information.
1784
1785 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1786
1787         PR target/61078
1788         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1789         and add a second splitter to handle the remaining cases.
1790
1791 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1792
1793         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1794
1795 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
1796
1797         * cfgexpand.c (label_rtx_for_bb): Change type to
1798         hash_map<basic_block, rtx_code_label *> *.
1799         (expand_gimple_basic_block): Adjust.
1800         (pass_expand::execute): Likewise.
1801
1802 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
1803
1804         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1805         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1806         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1807         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1808         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1809         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1810         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1811         of rtx.
1812
1813 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
1814
1815         * alloc-pool.c: Include coretypes.h.
1816         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1817         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1818         hash_set instead of htab.
1819         * ggc-page.c (in_gc): New variable.
1820         (ggc_free): Do nothing if a collection is taking place.
1821         (ggc_collect): Set in_gc appropriately.
1822         * ggc.h (gt_ggc_mx(const char *)): New function.
1823         (gt_pch_nx(const char *)): Likewise.
1824         (gt_ggc_mx(int)): Likewise.
1825         (gt_pch_nx(int)): Likewise.
1826         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1827         (hash_map::hash_entry::pch_nx): Likewise.
1828         (hash_map::hash_entry::pch_nx_helper): Likewise.
1829 (hash_map::hash_map): Adjust.
1830 (hash_map::create_ggc): New function.
1831 (gt_ggc_mx): Likewise.
1832 (gt_pch_nx): Likewise.
1833         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1834 (default_hashset_traits::pch_nx): Likewise.
1835 (hash_set::hash_entry::ggc_mx): Likewise.
1836 (hash_set::hash_entry::pch_nx): Likewise.
1837 (hash_set::hash_entry::pch_nx_helper): Likewise.
1838 (hash_set::hash_set): Adjust.
1839 (hash_set::create_ggc): New function.
1840 (hash_set::elements): Likewise.
1841 (gt_ggc_mx): Likewise.
1842 (gt_pch_nx): Likewise.
1843         * hash-table.h (hash_table::hash_table): Adjust.
1844 (hash_table::m_ggc): New member.
1845         (hash_table::~hash_table): Adjust.
1846         (hash_table::expand): Likewise.
1847         (hash_table::empty): Likewise.
1848 (gt_ggc_mx): New function.
1849         (hashtab_entry_note_pointers): Likewise.
1850 (gt_pch_nx): Likewise.
1851
1852 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1853
1854         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
1855         built-in definition.
1856         (XVCVUXDDP_SCALE): Likewise.
1857         (XVCVDPSXDS_SCALE): Likewise.
1858         (XVCVDPUXDS_SCALE): Likewise.
1859         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
1860         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1861         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1862         VSX_BUILTIN_XVCVDPUXDS_SCALE.
1863         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1864         prototype.
1865         * config/rs6000/rs6000.c (real.h): New include.
1866         (rs6000_scale_v2df): New function.
1867         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1868         (UNSPEC_VSX_XVCVUXDDP): Likewise.
1869         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1870         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1871         (vsx_xvcvsxddp_scale): New define_expand.
1872         (vsx_xvcvsxddp): New define_insn.
1873         (vsx_xvcvuxddp_scale): New define_expand.
1874         (vsx_xvcvuxddp): New define_insn.
1875         (vsx_xvcvdpsxds_scale): New define_expand.
1876         (vsx_xvcvdpsxds): New define_insn.
1877         (vsx_xvcvdpuxds_scale): New define_expand.
1878         (vsx_xvcvdpuxds): New define_insn.
1879         * doc/extend.texi (vec_ctf): Add new prototypes.
1880         (vec_cts): Likewise.
1881         (vec_ctu): Likewise.
1882         (vec_splat): Likewise.
1883         (vec_div): Likewise.
1884         (vec_mul): Likewise.
1885
1886 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1887
1888         PR target/62275
1889         * config/arm/neon.md
1890         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1891         <v_cmp_result>): New pattern.
1892         * config/arm/iterators.md (NEON_VCVT): New int iterator.
1893         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1894         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1895         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1896         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1897         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1898
1899 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1900
1901         PR target/62275
1902         * config/arm/iterators.md (FIXUORS): New code iterator.
1903         (VCVT): New int iterator.
1904         (su_optab): New code attribute.
1905         (su): Likewise.
1906         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1907
1908 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1909
1910         * config/aarch64/predicates.md (aarch64_comparison_operation):
1911         New special predicate.
1912         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1913         aarch64_comparison_operation instead of matching an operator.
1914         Update operand numbers.
1915         (csinc3<mode>_insn): Likewise.
1916         (*csinv3<mode>_insn): Likewise.
1917         (*csneg3<mode>_insn): Likewise.
1918         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1919         * config/aarch64/aarch64.c (aarch64_get_condition_code):
1920         Return -1 instead of aborting on invalid condition codes.
1921         (aarch64_print_operand): Update aarch64_get_condition_code callsites
1922         to assert that the returned condition code is valid.
1923         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1924
1925 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
1926
1927         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1928         tree.def, and gimple.def
1929
1930 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
1931             Balaji V. Iyer  <balaji.v.iyer@intel.com>
1932             Igor Zamyatin  <igor.zamyatin@intel.com>
1933
1934         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1935         (__cilkrts_cilk_for_64): Likewise.
1936         * cilk-common.c (declare_cilk_for_builtin): New function.
1937         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1938         __cilkrts_cilk_for_64 bultins.
1939         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1940         CILK_TI_F_LOOP_64.
1941         (cilk_for_32_fndecl): New define.
1942         (cilk_for_64_fndecl): Likewise.
1943         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1944         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1945         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1946         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1947         GF_OMP_FOR_COMBINED_INTO.
1948         * gimplify.c (gimplify_scan_omp_clauses): Added
1949         OMP_CLAUSE__CILK_FOR_COUNT_ case.
1950         (gimplify_adjust_omp_clauses): Ditto.
1951         (gimplify_omp_for): Added CILK_FOR case.
1952         (gimplify_expr): Ditto.
1953         * omp-low.c: Include cilk.h.
1954         (extract_omp_for_data): Set appropriate kind for
1955         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1956         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1957         (create_omp_child_function_name): Added second argument to handle
1958         cilk_for case.
1959         (cilk_for_check_loop_diff_type): New function.
1960         (expand_cilk_for_call): Likewise.
1961         (expand_cilk_for): Likewise.
1962         (create_omp_child_function): Set cilk_for_count; handle the cases when
1963         it is true; call create_omp_child_function_name with second argument.
1964         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1965         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1966         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1967         * tree-nested.c (convert_nonlocal_omp_clauses): Added
1968         OMP_CLAUSE__CILK_FOR_COUNT_ case.
1969         (convert_local_omp_clauses): Ditto.
1970         * tree-pretty-print.c (dump_omp_clause): Added
1971         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1972         (dump_generic_node): Added CILK_FOR case.
1973         * tree.c (omp_clause_num_ops): New element
1974         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1975         (omp_clause_code_name): New element _Cilk_for_count_.
1976         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1977         * tree.def: Add tree code for CILK_FOR.
1978
1979 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
1980
1981         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1982         (ppc403-compare): Add "exts with dot" case.
1983         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1984         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1985         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1986         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1987         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1988         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1989         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1990         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1991         cell-cmp-microcoded): Similarly.
1992         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1993         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1994         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1995         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1996         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1997         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1998         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1999         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2000         (power6-compare): Add "exts with dot" case.
2001         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2002         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2003         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2004
2005         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2006         if avoiding Cell microcode.
2007         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2008         (is_cracked_insn): Ditto.
2009         (insn_must_be_first_in_group): Ditto.
2010         * config/rs6000/rs6000.md (dot): Adjust comment.
2011         (cell_micro): Handle exts+dot.
2012         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2013         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2014         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2015         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2016         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2017         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2018         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2019
2020 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2021
2022         * config/rs6000/rs6000.md (QHSI): Delete.
2023         (EXTQI, EXTHI, EXTSI): New mode iterators.
2024         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2025         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2026         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2027         9 anonymous instructions, and 8 splitters): Delete.
2028         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2029         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2030         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2031         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2032         *zero_extendsi<mode>2_dot2): New.
2033
2034 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2035
2036         * config/rs6000/rs6000.md (any_extend): New code iterator.
2037         (u, su): New code attributes.
2038         (dmode, DMODE): New mode attributes.
2039         (<su>mul<mode>3_highpart): New.
2040         (*<su>mul<mode>3_highpart): New.
2041         (<su>mulsi3_highpart_le): New.
2042         (<su>muldi3_highpart_le): New.
2043         (<su>mulsi3_highpart_64): New.
2044         (<u>mul<mode><dmode>3): New.
2045         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2046         splitters): Delete.
2047         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2048         splitters): Delete.
2049
2050 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2051
2052         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2053         *mulsi3_internal2, and two splitters): Delete.
2054         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2055         Delete.
2056         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2057
2058 2014-09-02  Richard Biener  <rguenther@suse.de>
2059
2060         PR tree-optimization/62695
2061         * tree-ssa-structalias.c (find_func_clobbers): Add missing
2062         vector truncate.
2063
2064 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
2065
2066         PR target/62312
2067         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2068
2069 2014-09-01  Andi Kleen  <ak@linux.intel.com>
2070
2071         * file-find.c (add_prefix_begin): Add.
2072         (do_add_prefix): Rename from add_prefix with first argument.
2073         (add_prefix): Add new wrapper.
2074         * file-find.h (add_prefix_begin): Add.
2075         * gcc-ar.c (main): Support -B option.
2076
2077 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2078
2079         * genemit.c: Include dumpfile.h.
2080         (gen_split): Print name of splitter function to dump file.
2081
2082 2014-09-01  Richard Biener  <rguenther@suse.de>
2083
2084         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2085         Use stack auto_vecs for constraint expressions.
2086         (find_func_aliases_for_call): Likewise.
2087         (find_func_aliases): Likewise.
2088         (find_func_clobbers): Likewise.
2089
2090 2014-09-01  Richard Biener  <rguenther@suse.de>
2091
2092         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2093         operands vector in most cases.  Remove redundant code.
2094
2095 2014-09-01  Olivier Hainque  <hainque@adacore.com>
2096
2097         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2098         $WIND_BASE instead of designating a harcoded arbitrary home dir.
2099         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2100
2101 2014-09-01  Richard Biener  <rguenther@suse.de>
2102
2103         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2104         copy_reference_ops_from_call, vn_nary_op_compute_hash,
2105         vn_reference_compute_hash, vn_reference_insert): Remove.
2106         (vn_reference_lookup_call): New function.
2107         * tree-ssa-sccvn.c (vn_reference_compute_hash,
2108         copy_reference_ops_from_ref, copy_reference_ops_from_call,
2109         vn_reference_insert, vn_nary_op_compute_hash): Make static.
2110         (create_reference_ops_from_call): Remove.
2111         (vn_reference_lookup_3): Properly update shared_lookup_references.
2112         (vn_reference_lookup_pieces): Assert that we updated
2113         shared_lookup_references properly.
2114         (vn_reference_lookup): Likewise.
2115         (vn_reference_lookup_call): New function.
2116         (visit_reference_op_call): Use it.  Avoid re-building the
2117         reference ops.
2118         (visit_reference_op_load): Remove redundant lookup.
2119         (visit_reference_op_store): Perform special tail-merging work
2120         only when possibly doing tail-merging.
2121         (visit_use): Likewise.
2122         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2123
2124 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
2125
2126         PR target/62025
2127         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2128         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2129         (find_inc): Revert 2014-08-13 change.
2130
2131 2014-09-01  Marek Polacek  <polacek@redhat.com>
2132
2133         PR middle-end/61903
2134         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2135         Change the type of V to unsigned HOST_WIDE_INT.
2136
2137 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2138
2139         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2140         the size of byte markers.
2141         (do_shift_rotate): Fix confusion between host, target and marker byte
2142         size.
2143         (verify_symbolic_number_p): Likewise.
2144         (find_bswap_or_nop_1): Likewise.
2145         (find_bswap_or_nop): Likewise.
2146
2147 2014-09-01  Olivier Hainque  <hainque@adacore.com>
2148
2149         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2150         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2151
2152 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
2153
2154         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2155         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2156         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2157
2158 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
2159
2160         PR sanitizer/61897
2161         PR sanitizer/62140
2162         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2163         (build_check_stmt): Likewise.
2164         (instrument_strlen_call): Likewise.
2165         (asan_expand_check_ifn): Likewise and fix types.
2166         (maybe_cast_to_ptrmode): New function.
2167
2168 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2169
2170         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2171
2172 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
2173
2174         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2175
2176 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
2177
2178         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2179         prefix to function labels when generating fast indirect calls.
2180
2181 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
2182
2183         PR bootstrap/62304
2184
2185         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2186         param back from rtx_insn * to rtx.  Rename param from "label" to
2187         "label_or_return", reintroducing "label" as an rtx_insn * after
2188         we've ensured it's not a RETURN.
2189         (first_active_target_insn): Likewise for return type and param;
2190         add a checked cast to rtx_insn * once we've ensured "insn" is not
2191         a RETURN.
2192         (steal_delay_list_from_target): Convert param "pnew_thread" back
2193         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
2194         with JUMP_LABEL.
2195         (own_thread_p): Convert param "thread" back from an rtx_insn * to
2196         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
2197         cast once we've established we're not dealing with a RETURN,
2198         renaming subsequent uses of "thread" to "thread_insn".
2199         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2200         to JUMP_LABEL.
2201         (follow_jumps): Convert return type and param "label" from
2202         rtx_insn * back to rtx.  Move initialization of "value" to after
2203         the handling for ANY_RETURN_P, adding a checked cast there to
2204         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
2205         rename to "this_label_or_return", reintroducing "this_label" as
2206         an rtx_insn * once we've handled the case where it could be an
2207         ANY_RETURN_P.
2208         (fill_slots_from_thread): Rename param "thread" to
2209         "thread_or_return", converting from an rtx_insn * back to an rtx.
2210         Reintroduce name "thread" as an rtx_insn * local with a checked
2211         cast once we've handled the case of it being an ANY_RETURN_P.
2212         Convert local "new_thread" from an rtx_insn * back to an rtx.
2213         Add a checked cast when assigning to "trial" from "new_thread".
2214         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
2215         checked cast to rtx_insn * from "new_thread" when invoking
2216         get_label_before.
2217         (fill_eager_delay_slots): Convert locals "target_label",
2218         "insn_at_target" from rtx_insn * back to rtx.
2219         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2220         (relax_delay_slots): Convert locals "trial", "target_label" from
2221         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
2222         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
2223         invoking update_block.
2224         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2225         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2226
2227         * resource.h (mark_target_live_regs): Undo erroneous conversion
2228         of second param of r214693, converting it back from rtx_insn * to
2229         rtx, since it could be a RETURN.
2230
2231         * resource.c (find_dead_or_set_registers): Similarly, convert
2232         param "jump_target" back from an rtx_insn ** to an rtx *, as we
2233         could be writing back a RETURN.  Rename local rtx_insn * "next" to
2234         "next_insn", and introduce "lab_or_return" as a local rtx,
2235         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2236         (mark_target_live_regs): Undo erroneous conversion
2237         of second param of r214693, converting it back from rtx_insn * to
2238         rtx, since it could be a RETURN.  Rename it from "target" to
2239         "target_maybe_return", reintroducing the name "target" as a local
2240         rtx_insn * with a checked cast, after we've handled the case of
2241         ANY_RETURN_P.
2242
2243 2014-08-29  DJ Delorie  <dj@redhat.com>
2244
2245         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2246         pointer size up to a power of two.
2247         * defaults.h (DWARF2_ADDR_SIZE): Round up.
2248         (POINTER_SIZE_UNITS): New, rounded up value.
2249         * dwarf2asm.c (size_of_encoded_value): Use it.
2250         (dw2_output_indirect_constant_1): Likewise.
2251         * expmed.c (init_expmed_one_conv): We now know the sizes of
2252         partial int modes.
2253         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2254         * optabs.c (expand_float): Use precision, not size.
2255         (expand_fix): Likewise.
2256         * simplify-rtx (simplify_unary_operation_1): Likewise.
2257         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2258         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2259         (default_assemble_integer) Likewise.
2260         (dump_tm_clone_pairs): Likewise.
2261         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2262         * var-tracking.c (adjust_mems): Allow partial-int modes also.
2263         (prepare_call_arguments): Likewise.
2264         * stor-layout.c (finalize_type_size): Preserve precision.
2265         (layout_type): Use precision, not size.
2266
2267         * expr.c (convert_move): If the target has an explicit converter,
2268         use it.
2269
2270 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
2271
2272         * gdbinit.in: Skip various inline functions in rtl.h when
2273         stepping.
2274
2275 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
2276
2277         PR bootstrap/62301
2278         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2279
2280 2014-08-29  Richard Biener  <rguenther@suse.de>
2281
2282         PR tree-optimization/62291
2283         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2284         exactly the vector size needed and use quick_push.
2285         (phi_translate_1): Adjust comment.
2286         (valid_in_sets): Remove block argument and remove pointless
2287         checking of NAMEs.
2288         (dependent_clean): Adjust for removal of block argument.
2289         (clean): Likewise.
2290         (compute_antic_aux): Likewise.
2291         (compute_partial_antic_aux): Likewise.
2292
2293 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2294             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2295             Anna Tikhonova  <anna.tikhonova@intel.com>
2296             Ilya Tocar  <ilya.tocar@intel.com>
2297             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2298             Ilya Verbin  <ilya.verbin@intel.com>
2299             Kirill Yukhin  <kirill.yukhin@intel.com>
2300             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2301
2302         * config/i386/sse.md
2303         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2304         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2305         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2306         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2307
2308 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2309             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2310             Anna Tikhonova  <anna.tikhonova@intel.com>
2311             Ilya Tocar  <ilya.tocar@intel.com>
2312             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2313             Ilya Verbin  <ilya.verbin@intel.com>
2314             Kirill Yukhin  <kirill.yukhin@intel.com>
2315             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2316
2317         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2318         * config/i386/sse.md
2319         (define_mode_iterator VI4_128_8_256): New.
2320         (define_mode_iterator VI2_128_4_256): Ditto.
2321         (define_mode_iterator PMOV_DST_MODE): Rename into
2322         (define_mode_iterator PMOV_DST_MODE_1): this.
2323         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2324         Use PMOV_DST_MODE_1 mode iterator.
2325         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2326         Ditto.
2327         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2328         Ditto.
2329         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2330         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2331         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2332         (define_mode_iterator PMOV_DST_MODE_2): New.
2333         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2334         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2335         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2336         Ditto.
2337         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2338         (define_mode_attr pmov_dst_3): Ditto.
2339         (define_mode_attr pmov_dst_zeroed_3): Ditto.
2340         (define_mode_attr pmov_suff_3): Ditto.
2341         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2342         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2343         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2344         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2345         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2346         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2347         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2348         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2349         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2350         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2351         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2352         (define_mode_attr pmov_dst_4): Ditto.
2353         (define_mode_attr pmov_dst_zeroed_4): Ditto.
2354         (define_mode_attr pmov_suff_4): Ditto.
2355         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2356         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2357         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2358         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2359         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2360         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2361         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2362         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2363         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2364         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2365         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2366
2367 2014-08-29  Richard Biener  <rguenther@suse.de>
2368
2369         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2370         NON_LVALUE_EXPR in gimple.
2371
2372 2014-08-29  Richard Biener  <rguenther@suse.de>
2373
2374         PR middle-end/62292
2375         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2376         from previous refactoring.
2377         (gimple_fold_builtin_strncpy): Likewise.
2378
2379 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
2380
2381         PR bootstrap/62300
2382         * function.c (assign_parm_setup_reg): Remove erroneous checked
2383         cast to rtx_insn * on result of gen_extend_insn in favor of
2384         introducing a new local rtx "pat".
2385
2386 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2387
2388         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2389         to silence warning.
2390         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2391
2392 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2393
2394         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2395         (next_insn): Likewise.
2396         * emit-rtl.c (next_insn): Likewise.
2397         (previous_insn): Likewise.
2398         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2399         "insn" and "next" from rtx to rtx_insn *.
2400         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2401         "insn", "insn1", "vliw_start",  "prologue_end_note",
2402         "last_insn_in_packet".
2403
2404 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2405
2406         * shrink-wrap.h (active_insn_between): Strengthen both params from
2407         rtx to rtx_insn *.
2408         * function.c (active_insn_between): Likewise.
2409
2410 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2411
2412         * genattr.c (main): When writing out insn-attr.h, strengthen param
2413         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2414         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2415         writing out the definition of dfa_clear_single_insn_cache to the
2416         generated insn-automata.c
2417
2418 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2419
2420         * resource.h (clear_hashed_info_for_insn): Strengthen param from
2421         rtx to rtx_insn *.
2422         (incr_ticks_for_insn): Likewise.
2423         (init_resource_info): Likewise.
2424
2425         * resource.c (init_resource_info): Likewise.
2426         (clear_hashed_info_for_insn): Likewise.
2427         (incr_ticks_for_insn): Likewise.
2428
2429         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2430         rtx to rtx_insn *.
2431         (steal_delay_list_from_target): Use methods of "seq".
2432         (try_merge_delay_insns): Use methods of "merged_insns".
2433         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2434         (reorg_redirect_jump): Likewise for param "jump".
2435
2436 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2437
2438         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2439         rtx to rtx_insn *.
2440         * config/s390/s390.c (s390_split_branches): Eliminate top-level
2441         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2442         "set_insn".
2443         (s390_mainpool_finish): In three places, split out a local rtx
2444         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2445         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
2446          and split another local rtx "insn" out into rtx "pat" and
2447         rtx_insn * "insn".
2448         * config/sh/sh.c (output_branchy_insn): Rather than working
2449         directly on operands[9], introduce local rtx_code_label *
2450         variables named "lab" in two places, working on them, and then
2451         assigning them to operands[9], so that the intervening operations
2452         are known by the type system to be on insns.
2453
2454 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2455
2456         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2457         const rtx_insn *.
2458
2459         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2460         in invocation of INSN_HAS_LOCATION.
2461
2462 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2463
2464         * config/rs6000/altivec.h (vec_xl): New #define.
2465         (vec_xst): Likewise.
2466         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2467         (XXSPLTD_V2DI): Likewise.
2468         (DIV_V2DI): Likewise.
2469         (UDIV_V2DI): Likewise.
2470         (MUL_V2DI): Likewise.
2471         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2472         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2473         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2474         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2475         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2476         (UNSPEC_VSX_DIVSD): Likewise.
2477         (UNSPEC_VSX_DIVUD): Likewise.
2478         (UNSPEC_VSX_MULSD): Likewise.
2479         (vsx_mul_v2di): New insn-and-split.
2480         (vsx_div_v2di): Likewise.
2481         (vsx_udiv_v2di): Likewise.
2482         (vsx_xxspltd_<mode>): New insn.
2483
2484 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2485
2486         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2487         NEXT_INSN.
2488         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2489         (NEXT_INSN): Likewise.
2490         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2491         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2492         const rtx_insn *.
2493         (no_labels_between_p): Likewise for both params.
2494
2495         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2496         cast when using NEXT_INSN on operands[2].
2497         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2498         "insn" from rtx to rtx_insn *, adding a checked cast.
2499         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2500         rtx_insn *.
2501         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2502         for third param.
2503         (arc_text_label): Likewise for param "insn".
2504         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2505         "insn".
2506         (arc_ccfsm_record_condition): Likewise for param "jump".
2507         (arc_text_label): Likewise for local "label".
2508         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2509         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2510         a method for typesafety.  Add a checked cast.
2511         * config/arc/constraints.md (Clb): Add a checked cast when getting
2512         the CODE_LABEL from a LABEL_REF.
2513         * config/arm/arm.c (require_pic_register): Strengthen locals
2514         "seq", "insn" from rtx to rtx_insn *.
2515         (create_fix_barrier): Likewise for locals "selected", "next".
2516         (thumb1_reorg): Likewise for locals "prev", "insn".
2517         (arm_expand_prologue): Likewise for local "last".
2518         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2519         operands[0].
2520         (thumb2_output_casesi): Likewise for operands[2].
2521         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2522         strengthen local "insn" from rtx to rtx_insn *.
2523         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2524         type and param "insn".
2525         (find_prev_insn_start): Likewise.
2526         (hwloop_optimize): Likewise for locals "insn", "last_insn",
2527         "prev".
2528         (gen_one_bundle): Likewise for loal "t".
2529         (find_load): Likewise for param "insn".
2530         (workaround_speculation): Likewise for locals "insn", "next",
2531         "target", "next_tgt".
2532         * config/c6x/c6x.c (assign_reservations): Likewise for both params
2533         and for locals "insn", "within", "last".
2534         (count_unit_reqs): Likewise for params "head", "tail" and local
2535         "insn".
2536         (try_rename_operands): Likewise for params "head", "tail".
2537         (reshuffle_units): Likewise for locals "head", "tail", "insn".
2538         (struct c6x_sched_context): Likewise for fields
2539         "last_scheduled_insn", "last_scheduled_iter0".
2540         (init_sched_state): Replace NULL_RTX with NULL.
2541         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2542         to rtx_insn *.
2543         (undo_split_delayed_nonbranch): Likewise for param and for local
2544         "prev".
2545         (conditionalize_after_sched): Likewise for local "insn".
2546         (bb_earliest_end_cycle): Likewise.
2547         (filter_insns_above): Likewise for locals "insn", "next".
2548         (hwloop_optimize): Remove redundant checked cast.
2549         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2550         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2551         NULL_RTX with NULL.
2552         (cris_simple_epilogue): Likewise.
2553         (cris_expand_prologue): Likewise.
2554         (cris_expand_epilogue): Likewise.
2555         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2556         local "insn" from rtx to rtx_insn *.
2557         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2558         (struct frv_packet_group): Likewise for the elements within array
2559         fields "insns", "sorted", and for field "nop".
2560         (frv_packet): Likewise for the elements within array field
2561         "insns".
2562         (frv_add_insn_to_packet): Likewise for param "insn".
2563         (frv_insert_nop_in_packet): Likewise for param "insn" and local
2564         "last".
2565         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2566         (frv_sort_insn_group_1): Likewise for local "insn".
2567         (frv_optimize_membar_local): Likewise.
2568         (frv_align_label): Likewise for locals "x", "last", "barrier",
2569         "label".
2570         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2571         local.
2572         (ia64_sched_init): Likewise for local "insn".
2573         (scheduled_good_insn): Likewise for param "last".
2574         (struct _ia64_sched_context): Likewise for field
2575         "last_scheduled_insn".
2576         (ia64_init_sched_context): Replace NULL_RTX with NULL.
2577         (struct bundle_state): Likewise for field "insn".
2578         (issue_nops_and_insn): Likewise for param "insn".
2579         (get_next_important_insn): Likewise for return type and both
2580         params.
2581         (ia64_add_bundle_selector_before): Likewise for param "insn".
2582         (bundling): Likewise for params "prev_head_insn", "tail" and
2583         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
2584         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2585         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2586         Strengthen final param from rtx to rtx_insn *.
2587         (iq2000_move_1word): Likewise for second param.
2588         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2589         param "cur_insn" and local "next_insn".
2590         (iq2000_move_1word): Likewise for param "insn".
2591         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2592         casts when using NEXT_INSN on operands[1].
2593         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2594         "insn" from rtx to rtx_insn *.
2595         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2596         "x", introducing local rtx_insn * "insn" for when working with the
2597         CODE_LABEL of the LABEL_REF.
2598         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2599         rtx_insn *.
2600         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2601         param.
2602         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2603         type.
2604         (conditionalize_block): Likewise for return type and param.
2605         (mcore_is_dead): Likewise for param "first" and local "insn".
2606         (emit_new_cond_insn): Likewise for return type.
2607         (conditionalize_block): Likewise for return type, param, and
2608         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2609         "newinsn".
2610         (conditionalize_optimization): Likewise for local "insn".
2611         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2612         using NEXT_INSN.
2613         * config/microblaze/microblaze.md: Add checked casts when using
2614         NEXT_INSN.
2615         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2616         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2617         and rtx_insn * "insn".
2618         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2619         checked cast when using NEXT_INSN on operands[2].
2620         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2621         local "insn" from rtx to rtx_insn *.
2622         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2623         Likewise.
2624         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2625         Add a checked cast when using NEXT_INSN on operands[1].
2626         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2627         rtx to rtx_insn *.
2628         (pa_output_cbranch): Likewise for final param.
2629         (pa_output_lbranch): Likewise for second param.
2630         (pa_output_bb): Likewise for third param.
2631         (pa_output_bvb): Likewise.
2632         (pa_output_dbra): Likewise for second param.
2633         (pa_output_movb): Likewise.
2634         (pa_output_parallel_movb): Likewise.
2635         (pa_output_parallel_addb): Likewise.
2636         (pa_output_millicode_call): Likewise for first param.
2637         (pa_output_mul_insn): Likewise for second param.
2638         (pa_output_div_insn): Likewise for third param.
2639         (pa_output_mod_insn): Likewise for second param.
2640         (pa_jump_in_call_delay): Likewise for param.
2641         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2642         (pa_output_div_insn): Likewise.
2643         (pa_output_mod_insn): Likewise.
2644         (pa_output_cbranch): Likewise.
2645         (pa_output_lbranch): Likewise.
2646         (pa_output_bb): Likewise.
2647         (pa_output_bvb): Likewise.
2648         (pa_output_dbra): Likewise.
2649         (pa_output_movb): Likewise.
2650         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2651         to simplify and for typesafety.
2652         (pa_output_call): Use method of rtx_sequence *.
2653         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2654         (pa_jump_in_call_delay): Likewise.
2655         (pa_output_parallel_movb): Likewise.
2656         (pa_output_parallel_addb): Likewise.
2657         (pa_following_call): Likewise.
2658         (pa_combine_instructions): Likewise for locals "anchor",
2659         "floater".
2660         (pa_can_combine_p): Likewise for params "anchor", "floater" and
2661         locals "start", "end".
2662         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2663         param "insn" and local "local_insn".
2664         (picochip_final_prescan_insn): Likewise for local "local_insn".
2665         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2666         local "insn".
2667         (uses_TOC): Likewise.
2668         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2669         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2670         splitting out to more tightly-scoped locals, 3 as rtx and one as
2671         rtx_insn *.
2672         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2673         to rtx_insn *.
2674         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2675         where needed.
2676         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2677         to rtx_insn *.
2678         (fixup_addr_diff_vecs): Likewise.
2679         (reg_unused_after): Likewise for param 2.
2680         (sh_can_redirect_branch): Likewise for both params.
2681         (check_use_sfunc_addr): Likewise for param 1.
2682         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2683         (find_barrier): Likewise for local "last_got".
2684         (gen_block_redirect): Likewise for return type, param "jump" and
2685         locals "prev", "scan", "next", "insn".
2686         (struct far_branch): Likewise for fields "near_label",
2687         "insert_place", "far_label".
2688         (gen_far_branch): Likewise for local "jump".
2689         (fixup_addr_diff_vecs): Likewise for param "first" and locals
2690         "insn", "prev".
2691         (barrier_align): Likewise for param and for locals "prev", "x".
2692         Introduce local rtx_sequence * "prev_seq" and use insn method for
2693         typesafety and clarity.
2694         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2695         (get_dest_uid): Likewise for local "dest".
2696         (split_branches): Likewise for locals "next", "beyond", "label",
2697         "block", "far_label".  Add checked casts when assigning to
2698         bp->far_label and "far_label".
2699         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2700         (sequence_insn_p): Likewise.
2701         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
2702         more loop-scoped rtx "insn" when walking LABEL_REFS.
2703         (sh_can_redirect_branch): Strengthen both params from rtx to
2704         rtx_insn *.
2705         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
2706         new local rtx_sequence * "seq" via a dyn_cast, and use a method
2707         for clarity and typesafety.
2708         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2709         "insn" from rtx to rtx_insn *.
2710         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2711         when using NEXT_INSN on the CODE_LABEL in operands[2].
2712         (define_insn "casesi_worker_2"): Likewise.
2713         (define_insn "casesi_shift_media"): Likewise.
2714         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2715         operands[3].
2716         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2717         Strengthen field "insn" from rtx to rtx_insn *.
2718         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2719         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2720         param "start_insn" and local "start_insn".
2721         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2722         field "insn".
2723         (find_set_of_reg_bb): Likewise for param "insn".
2724         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2725         (trace_reg_uses): Likewise for param "start_insn".
2726         (sh_treg_combine::cbranch_trace): Likewise for field
2727         "cbranch_insn".
2728         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2729         param "insn".
2730         (sh_treg_combine::record_set_of_reg): Likewise for param
2731         "start_insn" and local "i".
2732         (sh_treg_combine::can_remove_cstore): Likewise for local
2733         "prev_insn".
2734         (sh_treg_combine::try_optimize_cbranch): Likewise for param
2735         "insn".
2736         (sh_treg_combine::execute): Likewise for local "i".
2737         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2738         param.
2739         (sparc_check_64): Likewise for second param.
2740         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2741         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
2742         dyn_cast, using its insn method for typesafety and clarity.
2743         (empty_delay_slot): Strengthen param "insn" from rtx to
2744         rtx_insn *.
2745         (set_extends): Likewise.
2746         (sparc_check_64): Likewise.
2747         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2748         for locals "seq", "last_insn".
2749         (combine_bnp): Likewise for param "insn".
2750         (xstormy16_reorg): Likewise for local "insn".
2751         * config/v850/v850.c (substitute_ep_register): Likewise for params
2752         "first_insn", "last_insn" and local "insn".
2753         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2754         elements of "regs" array, and local "insn".
2755         * except.c (emit_note_eh_region_end): Likewise for param "insn".
2756         * final.c (final_sequence): Strengthen this global from rtx to
2757         rtx_sequence *.
2758         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2759         rtx_insn *.
2760         (final_scan_insn): Update assignment to "final_sequence" to be
2761         from "seq", the cast version of "body", for type-safety.
2762         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2763         "insns" from rtx to rtx_insn *.
2764         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2765         * genattr.c (main): When writing out generated insn-attr.h,
2766         strengthen params 1 and 3 of eligible_for_delay,
2767         eligible_for_annul_true, eligible_for_annul_false from rtx to
2768         rtx_insn *.
2769         * genattrtab.c (write_eligible_delay): Likewise when writing out
2770         generated insn-attrtab.c; also local "insn" the generated
2771         functions.
2772         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2773         to rtx_insn *.
2774         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2775         "start_label" from rtx to rtx_insn *.
2776         * ira.c (decrease_live_ranges_number): Likewise for local "p".
2777         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2778         "insns" and local "insn".
2779         (validate_equiv_mem): Likewise for param "start" and local "insn".
2780         (memref_used_between_p): Likewise for params "start", "end" and
2781         local "insn".
2782         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2783         final param.
2784         * loop-doloop.c (doloop_optimize): Within region guarded by
2785         INSN_P (doloop_pat), introduce a new local rtx_insn *
2786         "doloop_insn" via a checked cast, and use it for typesafety,
2787         eventually writing the value back into doloop_pat.
2788         * output.h (final_sequence): Strengthen this global from rtx to
2789         rtx_sequence *.
2790         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2791         reintroducing "insn" as an rtx_insn * via a checked cast.
2792         Strengthen param "attempt" and local "new_insn"from rtx to
2793         rtx_insn *.
2794         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2795         to rtx_insn *.
2796         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2797         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2798         "p" in favor of more tightly-scoped replacements, sometimes rtx
2799         and sometimes rtx_insn *, as appropriate.
2800         (delete_output_reload): Eliminate top-level rtx "i1", splitting
2801         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2802         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
2803         local "trial" from rtx to rtx_insn *.
2804         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2805         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
2806         rtx_sequence * and use methods for clarity and typesafety.
2807         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2808         rtx to rtx_insn *.  Strenghten local "li" from rtx to
2809         rtx_insn_list * and use its methods for clarity and typesafety.
2810         (steal_delay_list_from_target): Strengthen param "insn" from rtx
2811         to rtx_insn *.
2812         (steal_delay_list_from_fallthrough): Likewise.
2813         (try_merge_delay_insns): Likewise for param "thread" and locals
2814         "trial", "next_trial", "delay_insn".
2815         (redundant_insn): Likewise for param "target" and local "trial".
2816         (own_thread_p): Likewise for param "thread" and locals
2817         "active_insn", "insn".
2818         (get_label_before): Likewise for param "insn".
2819         (fill_simple_delay_slots): Likewise for local "new_label"; use
2820         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2821         (label_before_next_insn): Strengthen return type and local "insn"
2822         from rtx to rtx_insn *.
2823         (relax_delay_slots): Likewise for locals "other", "tmp".
2824         (make_return_insns): Likewise for param "first" and locals "insn",
2825         "jump_insn", "prev".  Move declaration of "pat" to its assignment
2826         and strengthen from rtx to rtx_sequence *.  Use its methods for
2827         clarity and typesafety.
2828         * rtlanal.c (no_labels_between_p): Strengthen params from
2829         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
2830         rtx_insn *.
2831         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2832         from const_rtx to const rtx_insn *.
2833         (reg_set_between_p): Rename param "from_insn" to
2834         "uncast_from_insn", and reintroduce "from_insn" as a
2835         const rtx_insn * via a checked cast.
2836         (modified_between_p): Likewise for param "start" as "uncast_start".
2837         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2838         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2839         "tmp", head" from rtx to rtx_insn *.
2840         (recompute_rev_top_order): Likewise for local "insn".
2841         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2842         * store-motion.c (build_store_vectors): Likewise for local "insn".
2843         Strengthen local "st" from rtx to rtx_insn_list * and use methods
2844         for clarity and typesafety.
2845         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2846         rtx to rtx_insn *.
2847         (computation_cost): Likewise for local "seq".
2848         (get_address_cost): Likewise.
2849
2850 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2851
2852         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2853         const rtx_insn *.
2854         (label_is_jump_target_p): Likewise for second param.
2855
2856         * rtlanal.c (tablejump_p): Likewise for param "insn".
2857         (label_is_jump_target_p): Likewise for param "jump_insn".
2858
2859 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2860
2861         * rtl.h (find_first_parameter_load): Strengthen return type and
2862         both params from rtx to rtx_insn *.
2863         * rtlanal.c (find_first_parameter_load): Strengthen return type,
2864         both params and locals "before", "first_set" from rtx to
2865         rtx_insn *.  Remove now-redundant cast.
2866         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2867
2868 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2869
2870         * rtl.h (find_last_value): Delete.
2871         * rtlanal.c (find_last_value): Delete.
2872
2873 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2874
2875         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2876         from rtx to rtx_insn *.
2877         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2878         rtx "note" with new local rtx_insn * "new_head" when calculating
2879         head insn of new basic block.
2880         * combine.c (combine_split_insns): Strengthen return type and local
2881         "ret" from rtx to rtx_insn *.
2882         (likely_spilled_retval_p): Likewise for locals "use" and "p".
2883         (try_combine): Eliminate local "m_split", splitting into new
2884         locals "m_split_insn" and "m_split_pat".
2885         (find_split_point): Strengthen local "seq" from rtx into
2886         rtx_insn *.
2887         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2888         locals "label", "branch".
2889         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2890         for local "insn".
2891         (define_expand "umulsi3_highpart"): Likewise for local "insn".
2892         * dse.c (note_add_store_info): Likewise for fields "first",
2893         "current".
2894         (note_add_store): Likewise for local "insn".
2895         (emit_inc_dec_insn_before): Likewise for locals "insn",
2896         "new_insn", "cur".
2897         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2898         (replace_read): Likewise for locals "insns", "this_insn".
2899         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2900         (notice_eh_throw): Likewise for param "insn".
2901         (before_next_cfi_note): Likewise for return type, param, and local
2902         "prev".
2903         (connect_traces): Likewise for local "note".
2904         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2905         (verify_rtl_sharing): Likewise.
2906         (unshare_all_rtl_in_chain): Likewise for param "insn".
2907         (get_first_nonnote_insn): Likewise for local "insn".
2908         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
2909         "seq" and use its methods to clarify things.
2910         (next_insn): Strengthen return type from rtx to rtx_insn *.
2911         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2912         local rtx_insn * using a checked cast, dropping a checked cast
2913         made redundant by this change.  Use a cast to and method of
2914         rtx_sequence to clarify the code.
2915         (previous_insn): Rename param "insn" to "uncast_insn" and
2916         reintroduce "insn" as a local rtx_insn * using a checked cast,
2917         dropping a checked cast made redundant by this change.  Use a cast
2918         to and method of rtx_sequence to clarify the code.
2919         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2920         reintroduce "insn" as a local rtx_insn * using a checked cast,
2921         dropping a checked cast made redundant by this change.
2922         (next_nonnote_insn_bb): Likewise.
2923         (prev_nonnote_insn): Likewise.
2924         (prev_nonnote_insn_bb): Likewise.
2925         (next_nondebug_insn): Likewise.
2926         (prev_nondebug_insn): Likewise.
2927         (next_nonnote_nondebug_insn): Likewise.
2928         (prev_nonnote_nondebug_insn): Likewise.
2929         (next_real_insn): Likewise.
2930         (prev_real_insn): Likewise.
2931         (next_active_insn): Likewise.
2932         (prev_active_insn): Likewise.
2933         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
2934         clarity.
2935         (prev_cc0_setter): Likewise.
2936         (try_split): Rename param "trial" to "uncast_trial" and
2937         reintroduce "insn" as a local rtx_insn * using a checked cast,
2938         dropping checked casts made redundant by this change.
2939         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2940         rtx to rtx_insn *.
2941         (remove_insn): Rename param "insn" to "uncast_insn" and
2942         reintroduce "insn" as a local rtx_insn * using a checked cast.
2943         (emit_pattern_after_setloc): Likewise for param "after", as
2944         "uncast_after".
2945         (emit_pattern_after): Likewise.  Strengthen local "prev" from
2946         rtx to rtx_insn *.
2947         (emit_pattern_before_setloc): Rename param "before" to
2948         "uncast_before" and reintroduce "before" as a local rtx_insn *
2949         using a checked cast.  Strengthen locals "first", "last" from
2950         rtx to rtx_insn *.
2951         (emit_pattern_before): Likewise rename/cast param "before" to
2952         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2953         * except.c (copy_reg_eh_region_note_forward): Strengthen param
2954         "first" and local "insn" from rtx to rtx_insn *.
2955         (copy_reg_eh_region_note_backward): Likewise for param "last"
2956         and local "insn".
2957         * expr.c (fixup_args_size_notes): Rename param "last" to
2958         "uncast_last" and reintroduce "last" as a local rtx_insn *
2959         using a checked cast.  Strengthen local "insn" from rtx to
2960         rtx_insn *.
2961         * function.c (set_insn_locations): Strengthen param "insn" from
2962         rtx to rtx_insn *.
2963         (record_insns): Likewise for param "insns" and local "tmp".
2964         (active_insn_between): Rename param "tail" to
2965         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2966         using a checked cast.
2967         (thread_prologue_and_epilogue_insns): Split out top-level local
2968         rtx "seq" into three different rtx_insn * locals.  Strengthen
2969         local "prologue_seq" from rtx to rtx_insn *.
2970         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2971         from rtx to rtx_insn *.
2972         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2973         (priority): Likewise for locals "prev_first", "twin".
2974         (setup_insn_max_reg_pressure): Likewise for param "after".
2975         (sched_setup_bb_reg_pressure_info): Likewise.
2976         (no_real_insns_p): Strengthen params from const_rtx to
2977         const rtx_insn *.
2978         (schedule_block): Strengthen local "next_tail" from rtx to
2979         rtx_insn *.
2980         * ifcvt.c (find_active_insn_before): Strengthen return type and
2981         param "insn" from rtx to rtx_insn *.
2982         (find_active_insn_after): Likewise.
2983         (cond_exec_process_insns): Likewise for param "start" and local "insn".
2984         (cond_exec_process_if_block): Likewise for locals "then_start",
2985         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2986         (noce_process_if_block): Likewise for local "jump".
2987         (merge_if_block): Likewise for two locals named "end".
2988         (cond_exec_find_if_block): Likewise for local "last_insn".
2989         * jump.c (delete_related_insns): Rename param "insn" to
2990         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2991         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
2992         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2993         NULL.
2994         (split_reg): Likewise.
2995         * lra.c (lra_process_new_insns): Likewise.
2996         * modulo-sched.c (permute_partial_schedule): Strengthen param
2997         "last" from rtx to rtx_insn *.
2998         * optabs.c (add_equal_note): Likewise for param "insns" and local
2999         "last_insn".
3000         (expand_binop_directly): Add checked casts to rtx_insn * within
3001         NEXT_INSN (pat) uses.
3002         (expand_unop_direct): Likewise.
3003         (maybe_emit_unop_insn): Likewise.
3004         * recog.c (peep2_attempt): Strengthen locals "last",
3005         "before_try", "x" from rtx to rtx_insn *.
3006         * reorg.c (optimize_skip): Strengthen return type and local
3007         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
3008         and locals "trial", "next_trial" from rtx to rtx_insn *.
3009         * resource.c (next_insn_no_annul): Strengthen return type and
3010         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
3011         rtx_sequence to clarify the code.
3012         (mark_referenced_resources): Add a checked cast to rtx_insn *
3013         within PREV_INSN (x).
3014         (find_dead_or_set_registers): Strengthen return type, param
3015         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3016         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
3017         to rtx_insn **.
3018         (mark_target_live_regs): Strengthen params "insns" and "target",
3019         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3020         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
3021         the code.
3022         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3023         from rtx to rtx_insn *.
3024         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3025         from rtx to rtx_insn *.
3026         (copy_reg_eh_region_note_backward): Likewise.
3027         (unshare_all_rtl_in_chain): Likewise for sole param.
3028         (dump_rtl_slim): Strengthen second and third params from const_rtx
3029         to const rtx_insn *.
3030         * sched-deps.c (sched_free_deps): Strengthen params "head" and
3031         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3032         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3033         "next_tail" from rtx to rtx_insn *.
3034         (begin_move_insn): Likewise for local "next".
3035         * sched-int.h (sched_free_deps): Likewise for first and second
3036         params.
3037         (no_real_insns_p): Strengthen both params from const_rtx to
3038         const rtx_insn *.
3039         (sched_setup_bb_reg_pressure_info): Strengthen second params from
3040         rtx to rtx_insn *.
3041         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3042         "next_tail".
3043         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3044         and locals "insn", "tail" from const_rtx to const rtx_insn *.
3045         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3046         rtx_insn *.
3047         (debug_rtl_slim): Strengthen params "first" and "last" from
3048         const_rtx to const rtx_insn *.
3049         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3050         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3051         (convert_to_simple_return): Likewise for param "returnjump".
3052         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3053         "prologue_seq".
3054         (convert_to_simple_return): Likewise for param "returnjump".
3055         * valtrack.c (propagate_for_debug): Likewise for params
3056         "insn", "last".
3057         * valtrack.h (propagate_for_debug): Likewise for second param.
3058
3059 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3060
3061         * output.h (insn_current_reference_address): Strengthen param
3062         from rtx to rtx_insn *.
3063         * final.c (insn_current_reference_address): Likewise.
3064
3065 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3066
3067         * basic-block.h (inside_basic_block_p): Strengthen param from
3068         const_rtx to const rtx_insn *.
3069         * cfgbuild.c (inside_basic_block_p): Likewise.
3070
3071 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3072
3073         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3074         rtx_insn *.
3075         (get_trace_info): Likewise for param "insn".
3076         (save_point_p): Likewise.
3077         (maybe_record_trace_start): Likewise for both params.
3078         (maybe_record_trace_start_abnormal): Likewise.
3079         (create_trace_edges): Likewise for sole param and for three of the
3080         locals named "lab".
3081         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3082         to rtx_insn *, and update a call to pat->element to pat->insn.
3083
3084 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3085
3086         * function.h (struct expr_status): Convert field "x_forced_labels"
3087         from rtx_expr_list * to rtx_insn_list *.
3088
3089         * cfgbuild.c (make_edges): Convert local "x" from an
3090         rtx_expr_list * to an rtx_insn_list *, replacing use of
3091         "element" method with "insn" method.
3092         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3093         * except.c (sjlj_emit_dispatch_table): Replace use of
3094         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3095         forced_labels.
3096         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3097         rtx_expr_list * to an rtx_insn_list *, replacing use of
3098         "element" method with "insn" method.
3099         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3100         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3101         rtx_insn *, adding a checked cast.  Replace use of
3102         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3103         forced_labels.
3104         (expand_label): Likewise for local "label_r".
3105
3106 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3107
3108         * function.h (struct rtl_data): Convert field
3109         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3110         rtx_insn_list *.
3111         * rtl.h (remove_node_from_insn_list): New prototype.
3112
3113         * builtins.c (expand_builtin): When prepending to
3114         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3115         gen_rtx_EXPR_LIST.
3116         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3117         to rtx_insn_list *, and use its "insn" method rather than
3118         "element" method.
3119         * cfgrtl.c (delete_insn): Use new function
3120         remove_node_from_insn_list rather than
3121         remove_node_from_expr_list.
3122         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3123         to rtx_insn_list *, and use its "insn" method rather than
3124         "element" method.
3125         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3126         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3127         * rtlanal.c (remove_node_from_insn_list): New function, adapted
3128         from remove_node_from_expr_list.
3129         * stmt.c (expand_label): When prepending to
3130         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3131         gen_rtx_EXPR_LIST.
3132
3133 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3134
3135         * function.h (struct rtl_data): Strengthen fields "x_return_label"
3136         and "x_naked_return_label" from rtx to rtx_code_label *.
3137
3138 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3139
3140         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3141         (SET_NEXT_INSN): Likewise.
3142         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3143
3144         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3145         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
3146         to split out the SEQUENCE from local "bundle", strengthening the
3147         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3148         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3149         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3150         and the type of the elements of the "slot" array from rtx to
3151         rtx_insn *.
3152         (reorg_split_calls): Likewise for locals "insn" and "next", and
3153         the type of the elements of the "slot" array.
3154
3155         * config/frv/frv.c (frv_nops): Likewise for the elements of this
3156         array.
3157         (frv_function_prologue): Likewise for locals "insn", "next",
3158         "last_call".
3159         (frv_register_nop): Introduce a local "nop_insn" to be the
3160         rtx_insn * containing rtx "nop".
3161
3162         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3163         used as an insn and sometimes as a pattern, so rename it to
3164         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3165         using it where dealing with the core insn.
3166
3167         * config/picochip/picochip.c (reorder_var_tracking_notes):
3168         Strengthen locals "insn", "next", "last_insn", "queue",
3169         "next_queue", "prev" from rtx to rtx_insn *.
3170
3171         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3172         the second param is an rtx_insn ** rather than an rtx **.
3173         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3174         from rtx to rtx_sequence *, and introduce local named "sequence",
3175         using methods of rtx_sequence to clarify the code.
3176         (remove_insn): Introduce local rtx_sequence * named "sequence" and
3177         use its methods.
3178         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3179         Rename param "after" to "uncast_after", reintroducing "after" as a
3180         local rtx_insn * with a checked cast.
3181         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3182         reintroducing "after" as a local rtx_insn * with a checked cast.
3183         Strengthen local "last" from rtx to rtx_insn * and remove the
3184         now-redundant checked casts.
3185         (copy_delay_slot_insn): Strengthen return type and param from rtx
3186         to rtx_insn *.
3187
3188         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3189         "last" from rtx to rtx_insn *.
3190
3191 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3192
3193         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3194         param from rtx to rtx_insn *.
3195
3196         * emit-rtl.c (copy_delay_slot_insn): Likewise.
3197
3198         * reorg.c (skip_consecutive_labels): Strengthen return type, param
3199         and local "insn" from rtx to rtx_insn *.
3200         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3201         (unfilled_slots_next): Likewise.
3202         (function_return_label): Strengthen from rtx to rtx_code_label *.
3203         (function_simple_return_label): Likewise.
3204         (first_active_target_insn): Strengthen return type and param from
3205         rtx to rtx_insn *.
3206         (find_end_label): Strengthen return type from rtx to
3207         rtx_code_label *; strengthen locals as appropriate.
3208         (emit_delay_sequence): Strengthen return type, param "insn" and
3209         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
3210         and local "li" from rtx to rtx_insn_list *, using methods of
3211         rtx_insn_list for clarity and typesafety.
3212         (add_to_delay_list): Strengthen return type and param "insn" from
3213         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
3214         rtx_insn_list * and use methods of rtx_insn_list.
3215         (delete_from_delay_slot): Strengthen return type, param "insn",
3216         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3217         Strengthen local "seq" from rtx to rtx_sequence *, and local
3218         "delay_list" from rtx to rtx_insn_list *, using methods of
3219         rtx_sequence for clarity and type-safety.
3220         (delete_scheduled_jump): Add checked cast when invoking
3221         delete_from_delay_slot.  Strengthen local "trial" from rtx to
3222         rtx_insn *.
3223         (optimize_skip): Strengthen return type and local "delay_list"
3224         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
3225         rtx_insn *.
3226         (steal_delay_list_from_target): Strengthen return type, param
3227         "delay_list" and local "new_delay_list" from rtx to
3228         rtx_insn_list *.  Strengthen param "seq" from rtx to
3229         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
3230         rtx_insn **.
3231         Split out local "temp" into multiple more-tightly scoped locals:
3232         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
3233         of rtx_insn_list and rtx_sequence for clarity and typesafety.
3234         Strengthen locals named "trial" from rtx to rtx_insn *.
3235         (steal_delay_list_from_fallthrough): Strengthen return type and
3236         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
3237         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
3238         Strengthen local "trial" from rtx to rtx_insn *.
3239         (try_merge_delay_insns): Strength local "merged_insns" from rtx
3240         to rtx_insn_list * and use its methods.  Strengthen local "pat"
3241         from rtx to rtx_sequence * and use its methods.  Strengthen locals
3242         "dtrial" and "new_rtx" from rtx to rtx_insn *.
3243         (get_label_before): Strengthen return type and local "label" from
3244         rtx to rtx_insn *.
3245         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3246         "next_trial", "next", prev".  Strengthen local "delay_list" from
3247         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
3248         rtx_insn **.
3249         (follow_jumps): Strengthen return type, param "label" and locals
3250         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3251         (fill_slots_from_thread): Strengthen return type, param
3252         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
3253         "insn", "thread", "opposite_thread" and locals "new_thread",
3254         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
3255         "sequence" from a checked cast to rtx_sequence so that we can call
3256         steal_delay_list_from_target and steal_delay_list_from_fallthrough
3257         with an rtx_sequence *.
3258         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3259         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3260         Strengthen local "delay_list" from rtx to rtx_insn_list *.
3261         (relax_delay_slots): Strengthen param "first" and locals "insn",
3262         "next", "trial", "delay_insn", "target_label" from rtx to
3263         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
3264         Introduce a local "trial_seq" for PATTERN (trial) of type
3265         rtx_sequence *, in both cases using methods of rtx_sequence.
3266         (dbr_schedule): Strengthen param "first" and locals "insn",
3267         "next", "epilogue_insn" from rtx to rtx_insn *.
3268
3269 2014-08-28  Richard Biener  <rguenther@suse.de>
3270
3271         PR tree-optimization/62283
3272         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3273         Do not peel loops for alignment where the vector loop likely
3274         doesn't run at least VF times.
3275
3276 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
3277
3278         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3279         important_candidates.  Consider all important candidates if
3280         IVS doesn't give any result.  Remove check on ivs->upto.
3281         (try_add_cand_for): Call iv_ca_add_use only once.
3282
3283 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3284             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3285             Anna Tikhonova  <anna.tikhonova@intel.com>
3286             Ilya Tocar  <ilya.tocar@intel.com>
3287             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3288             Ilya Verbin  <ilya.verbin@intel.com>
3289             Kirill Yukhin  <kirill.yukhin@intel.com>
3290             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3291
3292         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3293         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3294         masking.
3295         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3296         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3297         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3298         (define_insn "*mul<mode>3"): Add EVEX version.
3299
3300 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3301             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3302             Anna Tikhonova  <anna.tikhonova@intel.com>
3303             Ilya Tocar  <ilya.tocar@intel.com>
3304             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3305             Ilya Verbin  <ilya.verbin@intel.com>
3306             Kirill Yukhin  <kirill.yukhin@intel.com>
3307             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3308
3309         * config/i386/sse.md
3310         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3311         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3312         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3313         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3314         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3315         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3316         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3317         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3318         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3319         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3320         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3321         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3322         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3323         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3324         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3325         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3326
3327 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3328             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3329             Anna Tikhonova  <anna.tikhonova@intel.com>
3330             Ilya Tocar  <ilya.tocar@intel.com>
3331             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3332             Ilya Verbin  <ilya.verbin@intel.com>
3333             Kirill Yukhin  <kirill.yukhin@intel.com>
3334             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3335
3336         * config/i386/sse.md
3337         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3338         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3339         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3340
3341 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3342             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3343             Anna Tikhonova  <anna.tikhonova@intel.com>
3344             Ilya Tocar  <ilya.tocar@intel.com>
3345             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3346             Ilya Verbin  <ilya.verbin@intel.com>
3347             Kirill Yukhin  <kirill.yukhin@intel.com>
3348             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3349
3350         * config/i386/sse.md
3351         (define_mode_iterator VI128_256): New.
3352         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3353
3354 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3355             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3356             Anna Tikhonova  <anna.tikhonova@intel.com>
3357             Ilya Tocar  <ilya.tocar@intel.com>
3358             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3359             Ilya Verbin  <ilya.verbin@intel.com>
3360             Kirill Yukhin  <kirill.yukhin@intel.com>
3361             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3362
3363         * config/i386/sse.md
3364         (define_mode_iterator VI8_256_512): New.
3365         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3366         Ditto.
3367         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3368         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3369         Ditto.
3370         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3371
3372 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3373
3374         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
3375         pointer to the cumulative reloc value and return the value for
3376         this reloc instead.
3377         (compute_reloc_for_rtx): Take a const_rtx.  Call
3378         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3379         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
3380         for_each_rtx for the CONST case.
3381
3382 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3383
3384         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3385         (mark_constants_in_pattern): ...this new function to iterate over
3386         all the subrtxes.
3387         (mark_constants): Update accordingly.
3388
3389 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3390
3391         * varasm.c: Include rtl-iter.h.
3392         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3393         Remove the pointer to the cumulative hashval_t and just return
3394         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
3395         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3396         Accumulate the hashval_ts here instead of const_rtx_hash_1.
3397
3398 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3399
3400         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3401         Give real type of data parameter.  Remove return value.
3402         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3403         to iterate over subrtxes.
3404
3405 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3406
3407         * var-tracking.c (use_narrower_mode_test): Turn from being a
3408         for_each_rtx callback to being a function that examines each
3409         subrtx itself.
3410         (adjust_mems): Update accordingly.
3411
3412 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3413
3414         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3415         callback to being a function that examines each subrtx itself.
3416         Remove handling of null rtxes.
3417         (add_uses): Update accordingly.
3418
3419 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3420
3421         * var-tracking.c: Include rtl-iter.h.
3422         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3423         to being a function that examines each subrtx itself.
3424         (use_type): Update accordingly.
3425
3426 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3427
3428         * store-motion.c: Include rtl-iter.h.
3429         (extract_mentioned_regs_1): Delete.
3430         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3431         for_each_rtx to iterate over subrtxes.
3432
3433 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3434
3435         * sel-sched.c: Include rtl-iter.h
3436         (count_occurrences_1): Delete.
3437         (count_occurrences_equiv): Turn rtxes into const_rtxes.
3438         Use FOR_EACH_SUBRTX rather than for_each_rtx.
3439
3440 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3441
3442         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3443         * rtlanal.c (tls_referenced_p_1): Delete.
3444         (tls_referenced_p): Take a const_rtx rather than an rtx.
3445         Use FOR_EACH_SUBRTX rather than for_each_rtx.
3446
3447 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3448
3449         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3450         (for_each_inc_dec): Take an rtx rather than an rtx *.
3451         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3452         (cselib_record_sets): Likewise.
3453         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3454         (check_for_inc_dec): Likewise.
3455         * rtlanal.c (for_each_inc_dec_ops): Delete.
3456         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3457         rather than a pointer to the memory address.  Replace
3458         for_each_inc_dec_ops argument with separate function and data
3459         arguments.  Abort on non-autoinc addresses.
3460         (for_each_inc_dec_find_mem): Delete.
3461         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
3462         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3463
3464 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3465
3466         * rtl.h (find_all_hard_regs): Declare.
3467         * rtlanal.c (find_all_hard_regs): New function.
3468         (record_hard_reg_uses_1): Delete.
3469         (record_hard_reg_uses): Use find_all_hard_regs.
3470
3471 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3472
3473         * rtl.h (replace_label_data): Delete.
3474         (replace_label): Take the old label, new label and update-nuses flag
3475         as direct arguments.  Return void.
3476         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3477         * rtlanal.c (replace_label): Update interface as above.  Handle
3478         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
3479         iterator.  Use FOR_EACH_SUBRTX_PTR.
3480
3481 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3482
3483         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3484         with const_rtx parameters.
3485         * varasm.c (get_pool_constant): Likewise.
3486         * rtlanal.c (rtx_referenced_p_1): Delete.
3487         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3488         Assert that the rtx we're looking for is nonnull.  Allow searches
3489         for constant pool SYMBOL_REFs.
3490
3491 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3492
3493         * reload1.c: Include rtl-iter.h.
3494         (note_reg_elim_costly): Turn from being a for_each_rtx callback
3495         to being a function that examines each subrtx itself.
3496         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3497
3498 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3499
3500         * regcprop.c (cprop_find_used_regs_1): Delete.
3501         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3502
3503 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3504
3505         * regcprop.c: Include rtl-iter.h.
3506         (kill_value): Take a const_rtx.
3507         (kill_autoinc_value): Turn from being a for_each_rtx callback
3508         to being a function that examines each subrtx itself.
3509         (copyprop_hardreg_forward_1): Update accordingly.
3510
3511 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3512
3513         * reg-stack.c: Include rtl-iter.h.
3514         (subst_stack_regs_in_debug_insn): Delete.
3515         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3516         instead of for_each_rtx.
3517
3518 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3519
3520         * lower-subreg.c (find_decomposable_subregs): Turn from being
3521         a for_each_rtx callback to being a function that examines each
3522         subrtx itself.  Remove handling of null rtxes.
3523         (decompose_multiword_subregs): Update accordingly.
3524
3525 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3526
3527         * lower-subreg.c (adjust_decomposed_uses): Delete.
3528         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3529         Remove handling of null rtxes.
3530
3531 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3532
3533         * lower-subreg.c: Include rtl-iter.h.
3534         (resolve_subreg_use): Turn from being a for_each_rtx callback
3535         to being a function that examines each subrtx itself.  Remove
3536         handling of null rtxes.
3537         (resolve_reg_notes, resolve_simple_move): Update accordingly.
3538         (decompose_multiword_subregs): Likewise.
3539
3540 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3541
3542         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3543         to being a function that examines each subrtx itself.
3544         (simplify_using_condition, simplify_using_initial_values): Update
3545         accordingly.
3546
3547 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3548
3549         * loop-iv.c: Include rtl-iter.h.
3550         (find_single_def_src): New function.
3551         (replace_single_def_regs): Turn from being a for_each_rtx callback
3552         to being a function that examines each subrtx itself.
3553         (replace_in_expr, simplify_using_initial_values): Update accordingly.
3554
3555 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3556
3557         * jump.c (eh_returnjump_p_1): Delete.
3558         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3559         Remove handling of null rtxes.
3560
3561 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3562
3563         * jump.c: Include rtl-iter.h.
3564         (returnjump_p_1): Delete.
3565         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3566         Remove handling of null rtxes.
3567
3568 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3569
3570         * ira.c: Include rtl-iter.h.
3571         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3572         to being a function that examines each subrtx itself.  Remove
3573         handling of null rtxes.
3574         (update_equiv_regs): Update call accordingly.
3575
3576 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3577
3578         * fwprop.c: Include rtl-iter.h.
3579         (varying_mem_p): Turn from being a for_each_rtx callback to being
3580         a function that examines each subrtx itself.
3581         (propagate_rtx): Update accordingly.
3582
3583 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3584
3585         * function.c: Include rtl-iter.h
3586         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3587         callback to being a function that examines each subrtx itself.
3588         Return the changed flag.
3589         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3590         (instantiate_virtual_regs): Update calls accordingly.
3591
3592 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3593
3594         * final.c: Include rtl-iter.h.
3595         (mark_symbol_ref_as_used): Delete.
3596         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3597         for_each_rtx.
3598
3599 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3600
3601         * emit-rtl.c: Include rtl-iter.h.
3602         (find_auto_inc): Turn from being a for_each_rtx callback to being
3603         a function that examines each subrtx itself.  Assume the first operand
3604         to an RTX_AUTOINC is the automodified register.
3605         (try_split): Update call accordingly.
3606
3607 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3608
3609         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3610         Return a bool, inverting the result so that 0/false means "not ok".
3611         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3612         subrtxes of a CONST.
3613         (mem_loc_descriptor, add_const_value_attribute)
3614         (resolve_addr_in_expr): Update calls accordingly.
3615
3616 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3617
3618         * dwarf2out.c: Include rtl-iter.h.
3619         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3620         Remove unused data parameter.  Return a bool, inverting the result
3621         so that 0/false means "not ok".
3622         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
3623         instead of for_each_rtx.
3624
3625 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3626
3627         * dse.c: Include rtl-iter.h.
3628         (check_mem_read_rtx): Change void * parameter to real type.
3629         Remove return value.
3630         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
3631         for_each_rtx.  Don't handle null rtxes.
3632
3633 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3634
3635         * df-problems.c: Include rtl-iter.h.
3636         (find_memory): Turn from being a for_each_rtx callback to being
3637         a function that examines each subrtx itself.  Continue to look for
3638         volatile references even after a nonvolatile one has been found.
3639         (can_move_insns_across): Update calls accordingly.
3640
3641 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3642
3643         * ddg.c (walk_mems_2, walk_mems_1): Delete.
3644         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3645         to iterate over subrtxes.  Return a bool rather than an int.
3646
3647 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3648
3649         * ddg.c: Include rtl-iter.h.
3650         (mark_mem_use_1): Rename to...
3651         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
3652         instead of for_each_rtx.
3653         (mem_read_insn_p): Update accordingly.
3654
3655 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3656
3657         * cse.c (change_cc_mode_args): Delete.
3658         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3659         a function that examines each subrtx itself.  Take the fields of
3660         change_cc_mode_args as argument and return void.
3661         (cse_change_cc_mode_insn): Update calls accordingly.
3662
3663 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3664
3665         * cse.c (is_dead_reg): Change argument to const_rtx.
3666         (dead_debug_insn_data): Delete.
3667         (is_dead_debug_insn): Expand commentary.  Turn from being a
3668         for_each_rtx callback to being a function that examines
3669         each subrtx itself.  Take the fields of dead_debug_insn_data
3670         as argument.
3671         (delete_trivially_dead_insns): Update call accordingly.
3672
3673 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3674
3675         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
3676         being a for_each_rtx callback to being a function that examines
3677         each subrtx itself.
3678         (cse_extended_basic_block): Update call accordingly.
3679
3680 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3681
3682         * cse.c (check_dependence_data): Delete.
3683         (check_dependence): Change from being a for_each_rtx callback to being
3684         a function that examines all subrtxes itself.  Don't handle null rtxes.
3685         (invalidate): Update call accordingly.
3686
3687 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3688
3689         * cse.c: Include rtl-iter.h.
3690         (approx_reg_cost_1): Delete.
3691         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3692         Don't handle null rtxes.
3693
3694 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3695
3696         * cfgcleanup.c: Include rtl-iter.h.
3697         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3698         to being a function that examines each subrtx itself.
3699         (thread_jump): Update accordingly.
3700
3701 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3702
3703         * combine-stack-adj.c: Include rtl-iter.h.
3704         (record_stack_refs_data): Delete.
3705         (record_stack_refs): Turn from being a for_each_rtx callback
3706         to being a function that examines each subrtx itself.
3707         Take a pointer to the reflist.  Invert sense of return value
3708         so that true means success and false means failure.  Don't
3709         handle null rtxes.
3710         (combine_stack_adjustments_for_block): Update accordingly.
3711
3712 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3713
3714         * combine.c (record_truncated_value): Turn from being a for_each_rtx
3715         callback to a function that takes an rtx and returns a bool
3716         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3717         for_each_rtx.
3718
3719 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3720
3721         * combine.c: Include rtl-iter.h.
3722         (unmentioned_reg_p_1): Delete.
3723         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3724         Don't handle null rtxes.
3725
3726 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3727
3728         * calls.c: Include rtl-iter.h.
3729         (internal_arg_pointer_based_exp_1): Delete.
3730         (internal_arg_pointer_based_exp): Take a const_rtx.
3731         Use FOR_EACH_SUBRTX to iterate over subrtxes.
3732
3733 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3734
3735         * caller-save.c: Include rtl-iter.h.
3736         (add_used_regs_1): Delete.
3737         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3738         to iterate over subrtxes.  Assert that any remaining pseudos
3739         have been spilled.
3740
3741 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3742
3743         * bt-load.c: Include rtl-iter.h.
3744         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3745         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
3746         to iterate over subrtxes.
3747         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3748         find_btr_use rather than btr_referenced_p.
3749
3750 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3751
3752         * alias.c: Include rtl-iter.h.
3753         (refs_newer_value_cb): Delete.
3754         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3755
3756 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3757
3758         * rtl-iter.h: New file.
3759         * rtlanal.c: Include it.
3760         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3761         (generic_subrtx_iterator <T>::add_single_to_queue)
3762         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3763         (generic_subrtx_iterator <T>::free_array): New functions.
3764         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3765         (generic_subrtx_iterator <const_rtx_accessor>)
3766         (generic_subrtx_iterator <rtx_var_accessor>
3767         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3768         (setup_reg_subrtx_bounds): New function.
3769         (init_rtlanal): Call it.
3770
3771 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3772
3773         PR target/62261
3774         * config/sh/sh.md (ashlsi3): Handle negative shift count for
3775         TARGET_SHMEDIA.
3776         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3777
3778 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
3779
3780         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3781
3782 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3783
3784         * rtl.h (JUMP_LABEL_AS_INSN): New.
3785
3786 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3787
3788         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3789         rtx_expr_list **.
3790         (alloc_EXPR_LIST): Strengthen return type from rtx to
3791         rtx_expr_list *.
3792         (remove_free_EXPR_LIST_node): Likewise for param.
3793         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3794         from rtx to rtx_expr_list *.
3795         * sched-int.h (struct deps_desc): Strengthen fields
3796         "pending_read_mems" and "pending_write_mems" from rtx to
3797         rtx_expr_list *.
3798
3799         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3800         rtx to rtx_expr_list *.
3801         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3802         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3803         rtx_expr_list **.
3804         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
3805         from rtx to rtx_expr_list *.
3806         * loop-iv.c (simplify_using_initial_values): Strengthen local
3807         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3808         "pnote_next" from rtx * to rtx_expr_list **.
3809         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
3810         param "exprp" from rtx * to rtx_expr_list **.
3811         (add_insn_mem_dependence): Strengthen local "mem_list" from
3812         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
3813         to rtx_expr_list *.
3814         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3815         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
3816         param "old_mems_p" from rtx * to rtx_expr_list **.
3817         * var-tracking.c (struct adjust_mem_data): Strengthen field
3818         "side_effects" from rtx to rtx_expr_list *.
3819         (adjust_insn): Replace NULL_RTX with NULL when assigning to
3820         rtx_expr_list *.
3821         (prepare_call_arguments): Likewise.
3822
3823 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3824
3825         * function.h (struct rtl_data): Strengthen field
3826         "x_stack_slot_list" from rtx to rtx_expr_list *.
3827
3828         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3829         when assigning to stack_slot_list.
3830
3831 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3832
3833         * function.h (struct rtl_data): Strengthen field
3834         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3835         * rtl.h (remove_node_from_expr_list): Strengthen second param from
3836         rtx * to rtx_expr_list **.
3837
3838         * cfgbuild.c (make_edges): In loop over
3839         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3840         rtx_expr_list *, and use methods of the latter class to clarify
3841         the code.
3842         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3843         rtx_expr_list *, and use methods of the latter class to clarify
3844         the code.
3845         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3846         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3847         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3848         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
3849         to rtx_expr_list *.  Use methods of the latter class to clarify
3850         the code.
3851
3852 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3853
3854         * function.h (struct expr_status): Strengthen field
3855         "x_forced_labels" from rtx to rtx_expr_list *.
3856
3857         * cfgbuild.c (make_edges): Split local "x" into two locals,
3858         strengthening one from rtx to rtx_expr_list *, and using methods
3859         of said class.
3860         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3861         loop over forced_labels, introduce strengthen it from rtx to
3862         rtx_expr_list *, using methods to clarify the code.
3863         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3864         to rtx_expr_list *, using methods of said class to clarify the
3865         code.
3866         * reload1.c (set_initial_label_offsets): Split local "x" into two
3867         per-loop variables, strengthening the first from rtx to
3868         rtx_expr_list * and using methods.
3869
3870 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3871
3872         * coretypes.h (class rtx_expr_list): Add forward declaration.
3873         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3874         * gengenrtl.c (special_rtx): Add EXPR_LIST.
3875         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3876         invariant: GET_CODE (X) == EXPR_LIST.
3877         (is_a_helper <rtx_expr_list *>::test): New.
3878         (rtx_expr_list::next): New.
3879         (rtx_expr_list::element): New.
3880         (gen_rtx_EXPR_LIST): New.
3881
3882 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3883
3884         * varasm.c (mark_constants): Convert a GET_CODE check into a
3885         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3886         Use methods of rtx_sequence to clarify the code.
3887
3888 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3889
3890         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3891         local "seq" via a checked cast, and use methods of rtx_sequence
3892         to simplify the code.
3893
3894 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3895
3896         * resource.c (mark_referenced_resources): Strengthen local
3897         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3898         using methods of rtx_sequence to clarify the code.
3899         (find_dead_or_set_registers): Within the switch statement, convert
3900         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
3901         the JUMP_P handling, introduce another local "seq", adding a
3902         checked cast to rtx_sequence *.  In both cases, use methods of
3903         rtx_sequence to clarify the code.
3904         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3905         via a checked cast, and use methods of rtx_sequence to simplify
3906         the code.
3907
3908 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3909
3910         * reorg.c (redundant_insn): In two places in the function, replace
3911         a check of GET_CODE with a dyn_cast, introducing local "seq", and
3912         usings methods of rtx_sequence to clarify the code.
3913
3914 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3915
3916         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3917         local "seq" with a checked cast, and use methods of rtx_sequence
3918         to clarify the code.
3919
3920 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3921
3922         * function.c (contains): Introduce local "seq" for PATTERN (insn),
3923         with a checked cast, in the region for where we know it's a
3924         SEQUENCE.  Use methods of rtx_sequence.
3925
3926 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3927
3928         * final.c (get_attr_length_1): Replace GET_CODE check with a
3929         dyn_cast, introducing local "seq" and the use of methods of
3930         rtx_sequence.
3931         (shorten_branches): Likewise, introducing local "body_seq".
3932         Strengthen local "inner_insn" from rtx to rtx_insn *.
3933         (reemit_insn_block_notes): Replace GET_CODE check with a
3934         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3935         Use methods of rtx_sequence.
3936         (final_scan_insn): Likewise, introducing local "seq" for when
3937         "body" is known to be a SEQUENCE, using its methods.
3938
3939 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3940
3941         * except.c (can_throw_external): Strengthen local "seq" from rtx
3942         to rtx_sequence *.  Use methods of rtx_sequence.
3943         (insn_nothrow_p): Likewise.
3944
3945 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3946
3947         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3948         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3949         Use methods of rtx_sequence.
3950         (scan_trace): Likewise for local "pat".
3951
3952 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3953
3954         * coretypes.h (class rtx_sequence): Add forward declaration.
3955         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3956         invariant: GET_CODE (X) == SEQUENCE.
3957         (is_a_helper <rtx_sequence *>::test): New.
3958         (is_a_helper <const rtx_sequence *>::test): New.
3959         (rtx_sequence::len): New.
3960         (rtx_sequence::element): New.
3961         (rtx_sequence::insn): New.
3962
3963 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3964
3965         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3966         rtx_insn_list **.
3967         (alloc_INSN_LIST): Strengthen return type from rtx to
3968         rtx_insn_list *.
3969         (copy_INSN_LIST): Likewise for return type and param.
3970         (concat_INSN_LIST): Likewise for both params and return type.
3971         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3972         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
3973         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3974         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
3975
3976         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3977         "implicit_sets", "control_uses", "clobbers" from rtx to
3978         rtx_insn_list *.
3979         (struct deps_desc): Likewise for fields "pending_read_insns",
3980         "pending_write_insns", "pending_jump_insns",
3981         "last_pending_memory_flush", "last_function_call",
3982         "last_function_call_may_noreturn", "sched_before_next_call",
3983         "sched_before_next_jump".
3984         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3985         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3986
3987         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3988         from rtx to rtx_insn_list *.
3989         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3990         rtx_insn_list *.
3991
3992         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3993         to rtx_insn_list **.
3994         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3995         rtx_insn_list *.
3996         (queue_insn): Likewise for local "link".
3997         (struct haifa_saved_data): Strengthen field "insn_queue" from
3998         rtx * to rtx_insn_list **.
3999         (save_backtrack_point): Update allocation of save->insn_queue to
4000         reflect the strengthening of elements from rtx to rtx_insn_list *.
4001         (queue_to_ready): Strengthen local "link" from rtx to
4002         rtx_insn_list *; use methods "next" and "insn" when traversing the
4003         list.
4004         (early_queue_to_ready): Likewise for locals "link", "next_link",
4005         "prev_link".
4006         (schedule_block): Update allocation of insn_queue to reflect the
4007         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
4008         local "link" from rtx to rtx_insn_list *, and use methods when
4009         working it.
4010         (add_to_speculative_block): Strengthen locals "twins" and
4011         "next_node" from rtx to rtx_insn_list *, and use methods when
4012         working with them.  Strengthen local "twin" from rtx to
4013         rtx_insn *, eliminating a checked cast.
4014         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4015         from rtx to rtx_insn_list *, and use methods when working with
4016         them.
4017
4018         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4019         from rtx to rtx_insn_list *, adding a checked cast.
4020         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4021         rtx_insn_list **.
4022         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4023         "newlink" from rtx to rtx_insn_list *.  Strengthen local
4024         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
4025         from rtx to rtx_insn *.
4026         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4027         from rtx to rtx_insn_list *.  Use methods of the latter class.
4028         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4029         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4030         (remove_free_INSN_LIST_node): Strengthen return type and local
4031         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
4032         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
4033         rtx_insn_list *, using "insn" method.
4034
4035         * sched-deps.c (add_dependence_list):  Strengthen param "list"
4036         from rtx to rtx_insn_list *, and use methods when working with it.
4037         (add_dependence_list_and_free):  Strengthen param "listp" from
4038         rtx * to rtx_insn_list **.
4039         (remove_from_dependence_list): Strenghten param "listp" from rtx *
4040         to rtx_insn_list **, and use methods when working with *listp.
4041         (remove_from_both_dependence_lists): Strengthen param "listp" from
4042         rtx * to rtx_insn_list **
4043         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4044         to rtx_insn_list **.  Eliminate local "link", in favor of two new
4045         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4046         respectively.
4047         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4048         by introducing local "cond_deps".
4049         (remove_from_deps): Strengthen param "insn" from rtx to
4050         rtx_insn *.
4051
4052         * sched-rgn.c (concat_insn_mem_list): Strengthen param
4053         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4054         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4055         Use methods of rtx_insn_list.
4056
4057         * store-motion.c (struct st_expr): Strengthen fields
4058         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4059         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4060         rtx_insn_list *.
4061         (find_moveable_store): Split out "tmp" into multiple more-tightly
4062         scoped locals.  Use methods of rtx_insn_list *.
4063         (compute_store_table): Strengthen local "tmp" from rtx to
4064         rtx_insn *.  Use methods of rtx_insn_list *.
4065
4066 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4067
4068         * coretypes.h (class rtx_insn_list): Add forward declaration.
4069         * rtl.h (class rtx_insn_list): New subclass of rtx_def
4070         (is_a_helper <rtx_insn_list *>::test): New.
4071         (rtx_insn_list::next): New.
4072         (rtx_insn_list::insn): New.
4073         (gen_rtx_INSN_LIST): Add prototype.
4074         * emit-rtl.c (gen_rtx_INSN_LIST): New.
4075         * gengenrtl.c (special_rtx): Add INSN_LIST.
4076
4077 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4078
4079         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4080         "prev" from rtx to rtx_insn *.
4081
4082 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4083
4084         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4085         functions.  Require merely an rtx for now, not an rtx_insn *.
4086         (BLOCK_FOR_INSN): Likewise.
4087         (INSN_LOCATION): Likewise.
4088         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4089
4090 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4091
4092         * rtl.h (PATTERN): Convert this macro into a pair of inline
4093         functions, for now, requiring const_rtx and rtx.
4094
4095 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4096
4097         * target.def (unwind_emit): Strengthen param "insn" from rtx to
4098         rtx_insn *.
4099         (final_postscan_insn): Likewise.
4100         (adjust_cost): Likewise.
4101         (adjust_priority): Likewise.
4102         (variable_issue): Likewise.
4103         (macro_fusion_pair_p): Likewise.
4104         (dfa_post_cycle_insn): Likewise.
4105         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4106         (first_cycle_multipass_issue): Likewise.
4107         (dfa_new_cycle): Likewise.
4108         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4109         (speculate_insn): Likewise for param "insn".
4110         (gen_spec_check): Likewise for params "insn" and "label".
4111         (get_insn_spec_ds): Likewise for param "insn".
4112         (get_insn_checked_ds): Likewise.
4113         (dispatch_do): Likewise.
4114         (dispatch): Likewise.
4115         (cannot_copy_insn_p): Likewise.
4116         (invalid_within_doloop): Likewise.
4117         (legitimate_combined_insn): Likewise.
4118         (needed): Likewise.
4119         (after): Likewise.
4120
4121         * doc/tm.texi: Automatically updated to reflect changes to
4122         target.def.
4123
4124         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4125         working with insn.
4126         (schedule_block): Likewise.
4127         (sched_init): Likewise.
4128         (sched_speculate_insn): Strengthen param "insn" from rtx to
4129         rtx_insn *.
4130         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4131         working with insn.
4132         * hooks.c (hook_bool_rtx_true): Rename to...
4133         hook_bool_rtx_insn_true): ...this, and strengthen first param from
4134         rtx to rtx_insn *.
4135         (hook_constcharptr_const_rtx_null): Rename to...
4136         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4137         first param from const_rtx to const rtx_insn *.
4138         (hook_bool_rtx_int_false): Rename to...
4139         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4140         param from rtx to rtx_insn *.
4141         (hook_void_rtx_int): Rename to...
4142         (hook_void_rtx_insn_int): ...this, and strengthen first param from
4143         rtx to rtx_insn *.
4144
4145         * hooks.h (hook_bool_rtx_true): Rename to...
4146         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4147         rtx to rtx_insn *.
4148         (hook_bool_rtx_int_false): Rename to...
4149         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4150         param from rtx to rtx_insn *.
4151         (hook_void_rtx_int): Rename to...
4152         (hook_void_rtx_insn_int): ...this, and strengthen first param from
4153         rtx to rtx_insn *.
4154         (hook_constcharptr_const_rtx_null): Rename to...
4155         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4156         first param from const_rtx to const rtx_insn *.
4157
4158         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4159         and local "prev" from rtx to rtx_insn *.
4160
4161         * sched-int.h (sched_speculate_insn): Strengthen first param from
4162         rtx to rtx_insn *.
4163
4164         * sel-sched.c (create_speculation_check): Likewise for local "label".
4165         * targhooks.c (default_invalid_within_doloop): Strengthen param
4166         "insn" from const_rtx to const rtx_insn *.
4167         * targhooks.h (default_invalid_within_doloop): Strengthen param
4168         from const_rtx to const rtx_insn *.
4169
4170         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4171         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4172
4173         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4174         "insn".
4175         (arc_invalid_within_doloop): Likewise, with const.
4176
4177         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4178         (arm_cannot_copy_insn_p): Likewise for param "insn".
4179         (arm_unwind_emit): Likewise.
4180
4181         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4182         "dep_insn".
4183
4184         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4185         (c6x_variable_issue): Likewise.  Removed now-redundant checked
4186         cast.
4187         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4188
4189         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4190         Likewise for param "insn".
4191         (epiphany_mode_after): Likewise.
4192         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4193         params "insn", "dep_insn".
4194         (epiphany_mode_needed): Likewise for param "insn".
4195         (epiphany_mode_after): Likewise.
4196
4197         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4198         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4199         (ix86_avx_u128_mode_needed): Likewise.
4200         (ix86_i387_mode_needed): Likewise.
4201         (ix86_mode_needed): Likewise.
4202         (ix86_avx_u128_mode_after): Likewise.
4203         (ix86_mode_after): Likewise.
4204         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4205         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4206         (ix86_adjust_priority): Likewise for param "insn".
4207         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4208         (do_dispatch): Likewise.
4209         (has_dispatch): Likewise.
4210         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4211
4212         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4213         reflect renaming of default hook implementation from
4214         hook_constcharptr_const_rtx_null to
4215         hook_constcharptr_const_rtx_insn_null.
4216         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4217         rtx to rtx_insn *.
4218         (ia64_variable_issue): Likewise for param "insn".
4219         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4220         (ia64_dfa_new_cycle): Likewise.
4221         (ia64_get_insn_spec_ds): Likewise.
4222         (ia64_get_insn_checked_ds): Likewise.
4223         (ia64_speculate_insn): Likewise.
4224         (ia64_gen_spec_check): Likewise for params "insn", "label".
4225         (ia64_asm_unwind_emit): Likewise for param "insn".
4226
4227         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4228
4229         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4230         "insn", "def_insn".
4231         (m68k_sched_variable_issue): Likewise for param "insn".
4232
4233         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4234         "def_insn".
4235
4236         * config/microblaze/microblaze.c (microblaze_adjust_cost):
4237         Likewise for params "insn", "dep".
4238
4239         * config/mips/mips.c (mips_adjust_cost): Likewise.
4240         (mips_variable_issue): Likewise for param "insn".
4241         (mips_final_postscan_insn): Likewise.
4242
4243         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4244         for params "insn", "dep".
4245
4246         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4247         "dep_insn".
4248         (pa_adjust_priority): Likewise for param "insn".
4249
4250         * config/picochip/picochip.c (picochip_sched_adjust_cost):
4251         Likewise for params "insn", "dep_insn".
4252
4253         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4254         param "insn".
4255         (rs6000_variable_issue): Likewise.
4256         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4257         (rs6000_debug_adjust_cost): Likewise.
4258         (rs6000_adjust_priority): Likewise for param "insn".
4259         (rs6000_use_sched_lookahead_guard): Likewise.
4260         (get_next_active_insn): Likewise for return type and both params.
4261         (redefine_groups): Likewise for params "prev_head_insn", "tail"
4262         and locals "insn", "next_insn".
4263         (pad_groups): Likewise.
4264
4265         * config/s390/s390.c (s390_adjust_priority): Likewise for param
4266         "insn".
4267         (s390_cannot_copy_insn_p): Likewise.
4268         (s390_sched_variable_issue): Likewise for third param, eliminating
4269         checked cast.
4270         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4271         default hook implementation from hook_constcharptr_const_rtx_null
4272         to hook_constcharptr_const_rtx_insn_null.
4273
4274         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4275         from rtx to rtx_insn *.
4276         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4277         (sh_variable_issue): Likewise for param "insn".
4278         (sh_dfa_new_cycle): Likewise.
4279         (sh_mode_needed): Likewise.
4280         (sh_mode_after): Likewise.
4281
4282         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4283         params "insn", "dep_insn".
4284         (hypersparc_adjust_cost): Likewise.
4285         (sparc_adjust_cost): Likewise.
4286
4287         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4288         param, eliminated checked cast.
4289         (spu_sched_adjust_cost): Likewise for first and third params.
4290
4291         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4292         params "insn" and "dep_insn" from rtx to rtx_insn *.
4293
4294         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4295
4296 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4297
4298         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4299         (set_is_load_p): ...this, updating to work on a SET pattern rather
4300         than an insn.
4301         (is_store_insn): Rename to...
4302         (set_is_store_p): ...this, updating to work on a SET pattern
4303         rather than an insn.
4304         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4305         top of function to where it is needed.  Rewrite the bogus
4306         condition that checks for "insn" and "dep" being PARALLEL to
4307         instead use single_set, introducing locals "insn_set" and
4308         "dep_set".  Given that we only ever returned "cost" for a non-pair
4309         of SETs, bail out early if we don't have a pair of SET.
4310         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4311         use the new locals "insn_set" and "dep_set", and update calls to
4312         is_load_insn and is_store_insn to be calls to set_is_load_p and
4313         set_is_store_p.
4314
4315 2014-08-27  Guozhi Wei  <carrot@google.com>
4316
4317         PR target/62262
4318         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4319         amount before using it.
4320
4321 2014-08-27  Richard Biener  <rguenther@suse.de>
4322
4323         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4324         get_maxval_strlen inside a more useful API.
4325         (gimple_fold_builtin_with_strlen): Remove and fold into ...
4326         (gimple_fold_builtin): ... caller.
4327         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4328         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4329         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4330         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4331         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4332         gimple_fold_builtin_sprintf): Adjust to compute maxval
4333         themselves.
4334
4335 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
4336
4337         PR other/62248
4338         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4339
4340 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4341             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4342             Anna Tikhonova  <anna.tikhonova@intel.com>
4343             Ilya Tocar  <ilya.tocar@intel.com>
4344             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4345             Ilya Verbin  <ilya.verbin@intel.com>
4346             Kirill Yukhin  <kirill.yukhin@intel.com>
4347             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4348
4349         * config/i386/sse.md
4350         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4351         Use `concat_tg_mode' attribute to determine asm register size.
4352
4353 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4354             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4355             Anna Tikhonova  <anna.tikhonova@intel.com>
4356             Ilya Tocar  <ilya.tocar@intel.com>
4357             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4358             Ilya Verbin  <ilya.verbin@intel.com>
4359             Kirill Yukhin  <kirill.yukhin@intel.com>
4360             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4361
4362         * config/i386/sse.md
4363         (define_mode_iterator VI48_AVX512VL): New.
4364         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4365         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4366         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4367         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4368         with VI1): Change mode iterator.
4369         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4370         with VI_ULOADSTORE_BW_AVX512VL): New.
4371         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4372         with VI_ULOADSTORE_F_AVX512VL): Ditto.
4373         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4374         with VI1): Change mode iterator.
4375         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4376         with VI_ULOADSTORE_BW_AVX512VL): New.
4377         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4378         with VI_ULOADSTORE_F_AVX512VL): Ditto.
4379         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4380         with VI1): Change mode iterator.
4381         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4382         with VI_ULOADSTORE_BW_AVX512VL): New.
4383         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4384         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4385         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4386         (define_insn "<avx512>_storedqu<mode>_mask" with
4387         VI48_AVX512VL): New.
4388         (define_insn "<avx512>_storedqu<mode>_mask" with
4389         VI12_AVX512VL): Ditto.
4390
4391 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4392             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4393             Anna Tikhonova  <anna.tikhonova@intel.com>
4394             Ilya Tocar  <ilya.tocar@intel.com>
4395             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4396             Ilya Verbin  <ilya.verbin@intel.com>
4397             Kirill Yukhin  <kirill.yukhin@intel.com>
4398             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4399
4400         * config/i386/sse.md
4401         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4402         (define_mode_iterator VI48_AVX512BW): New.
4403         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4404         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4405         with VI48_AVX2_48_AVX512F): New.
4406         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4407         with VI2_AVX512VL): Ditto.
4408
4409 2014-08-27  Richard Biener  <rguenther@suse.de>
4410
4411         PR middle-end/62239
4412         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4413         (fold_builtin_3): Do not fold strcat_chk here.
4414         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4415         from builtins.c.
4416         (gimple_fold_builtin): Fold strcat_chk here.
4417
4418 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
4419
4420         * dwarf2out.h (dwarf2out_decl): Remove prototype.
4421         * dwarf2out.c (dwarf2out_decl): Make static.
4422
4423 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
4424
4425         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4426
4427 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4428
4429         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4430         from rtx to rtx_insn *.
4431         (cselib_lookup_from_insn): Likewise for final param.
4432         (cselib_subst_to_values_from_insn): Likewise.
4433         (cselib_add_permanent_equiv): Likewise.
4434
4435         * cselib.c (cselib_current_insn): Likewise for this variable.
4436         (cselib_subst_to_values_from_insn): Likewise for param "insn".
4437         (cselib_lookup_from_insn): Likewise.
4438         (cselib_add_permanent_equiv): Likewise for param "insn" and local
4439         "save_cselib_current_insn".
4440         (cselib_process_insn): Replace use of NULL_RTX with NULL.
4441
4442         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4443         from rtx to rtx_insn *.
4444
4445 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4446
4447         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4448         rtx_insn *.
4449
4450 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4451
4452         * df.h (df_dump_insn_problem_function): Strengthen first param of
4453         this callback from const_rtx to const rtx_insn *.
4454         (struct df_insn_info): Strengthen field "insn" from rtx to
4455         rtx_insn *.
4456         (DF_REF_INSN): Eliminate this function, reinstating the older
4457         macro definition.
4458         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4459         (df_reg_defined): Likewise.
4460         (df_find_use): Likewise.
4461         (df_reg_used): Likewise.
4462         (df_dump_insn_top): Strengthen param 1 from const_rtx to
4463         const rtx_insn *.
4464         (df_dump_insn_bottom): Likewise.
4465         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4466         (df_insn_debug_regno): Likewise.
4467         (debug_df_insn): Likewise.
4468         (df_rd_simulate_one_insn): Likewise for param 2.
4469         (df_word_lr_simulate_defs): Likewise for param 1.
4470         (df_word_lr_simulate_uses): Likewise.
4471         (df_md_simulate_one_insn): Likewise for param 2.
4472         (df_simulate_find_noclobber_defs): Likewise for param 1.
4473         (df_simulate_find_defs): Likewise.
4474         (df_simulate_defs): Likewise.
4475         (df_simulate_uses): Likewise.
4476         (df_simulate_one_insn_backwards): Likewise for param 2.
4477         (df_simulate_one_insn_forwards): Likewise.
4478         (df_uses_create): Likewise for param 2.
4479         (df_insn_create_insn_record): Likewise for param 1.
4480         (df_insn_delete): Likewise.
4481         (df_insn_rescan): Likewise.
4482         (df_insn_rescan_debug_internal): Likewise.
4483         (df_insn_change_bb): Likewise.
4484         (df_notes_rescan): Likewise.
4485         * rtl.h (remove_death): Likewise for param 2.
4486         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4487         const rtx_insn *.
4488         * sched-int.h (reemit_notes): Strengthen param from rtx to
4489         rtx_insn *.
4490         * valtrack.h (propagate_for_debug): Likewise for param 1.
4491
4492         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4493         local "tmp_rtx" from const_rtx to const rtx_insn *.
4494         * combine.c (remove_death): Strengthen param "insn" from rtx to
4495         rtx_insn *.
4496         (move_deaths): Likewise for local "where_dead".
4497         * cse.c (delete_trivially_dead_insns): Introduce local
4498         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4499         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4500         rtx_insn *.
4501         (df_reg_defined): Likewise.
4502         (df_find_use): Likewise.
4503         (df_reg_used): Likewise.
4504         (df_dump_insn_problem_data): Strengthen param "insn" from
4505         const_rtx to const rtx_insn *.
4506         (df_dump_insn_top): Likewise.
4507         (df_dump_insn_bottom): Likewise.
4508         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4509         (df_insn_debug_regno): Likewise.
4510         (debug_df_insn): Likewise.
4511         (DF_REF_INSN): Delete.
4512         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4513         from rtx to rtx_insn *.
4514         (df_chain_insn_top_dump): Strengthen param "insn" from
4515         const_rtx to const rtx_insn *.
4516         (df_chain_insn_bottom_dump): Likewise.
4517         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4518         rtx_insn *.
4519         (df_word_lr_simulate_uses): Likewise.
4520         (df_print_note): Likewise.
4521         (df_remove_dead_and_unused_notes): Likewise.
4522         (df_set_unused_notes_for_mw): Likewise.
4523         (df_set_dead_notes_for_mw): Likewise.
4524         (df_create_unused_note): Likewise.
4525         (df_simulate_find_defs): Likewise.
4526         (df_simulate_find_uses): Likewise.
4527         (df_simulate_find_noclobber_defs): Likewise.
4528         (df_simulate_defs): Likewise.
4529         (df_simulate_uses): Likewise.
4530         (df_simulate_one_insn_backwards): Likewise.
4531         (df_simulate_one_insn_forwards): Likewise.
4532         (df_md_simulate_one_insn): Likewise.
4533         * df-scan.c (df_uses_create): Likewise.
4534         (df_insn_create_insn_record): Likewise.
4535         (df_insn_delete): Likewise.
4536         (df_insn_rescan): Likewise.
4537         (df_insn_rescan_debug_internal): Likewise.
4538         (df_insn_change_bb): Likewise.
4539         (df_notes_rescan): Likewise.
4540         (df_refs_add_to_chains): Likewise.
4541         (df_insn_refs_verify): Likewise.
4542         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4543         when invoking df_insn_delete.
4544         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4545         (set_unique_reg_note): Add checked cast.
4546         * final.c (cleanup_subreg_operands): Likewise.
4547         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4548         "insn" from rtx to rtx_insn *.
4549         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4550         "last" from rtx to rtx_insn *.
4551         * ira-emit.c (change_regs_in_insn): New function.
4552         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4553         Invoke change_regs_in_insn rather than change_regs.
4554         * ira.c (update_equiv_regs): Strengthen locals "insn",
4555         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
4556         for_each_rtx_in_insn rather than for_each_rtx.
4557         * recog.c (confirm_change_group): Add checked casts.
4558         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4559         Add checked cast.
4560         (peep2_fill_buffer): Add checked cast.
4561         * rtlanal.c (remove_note): Likewise.
4562         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4563         locals "next" "end" from rtx to rtx_insn *.
4564
4565 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4566
4567         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4568         to rtx_insn *.
4569         (struct reg_use_data): Likewise for field "insn".
4570         (insn_cost): Likewise for param.
4571         (real_insn_for_shadow): Likewise for return type and param.
4572         (increase_insn_priority): Likewise for param 1.
4573         (debug_dependencies): Likewise for both params.
4574
4575         * haifa-sched.c (insn_delay): Likewise for param "insn".
4576         (real_insn_for_shadow): Likewise for return type and param "insn".
4577         (update_insn_after_change): Likewise for param "insn".
4578         (recompute_todo_spec): Likewise for param "next" and locals "pro",
4579         "other".
4580         (insn_cost): Likewise for param "insn".
4581         (increase_insn_priority): Likewise.
4582         (calculate_reg_deaths): Likewise.
4583         (setup_insn_reg_pressure_info): Likewise.
4584         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4585         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4586         (model_recompute): Likewise.
4587         (must_restore_pattern_p): Likewise for param "next".
4588         (model_excess_cost): Likewise for param "insn".
4589         (queue_remove): Likewise.
4590         (adjust_priority): Likewise for param "prev".
4591         (update_register_pressure): Likewise for param "insn".
4592         (setup_insn_max_reg_pressure): Likewise for local "insn".
4593         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4594         (model_add_to_schedule): Likewise.
4595         (model_reset_queue_indices): Likewise for local "insn".
4596         (unschedule_insns_until): Strengthen local "recompute_vec" from
4597         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
4598         "con" from rtx to rtx_insn *.
4599         (restore_last_backtrack_point): Likewise for both locals "x". Add
4600         checked casts.
4601         (estimate_insn_tick): Likewise for param "insn".
4602         (commit_schedule): Likewise for params "prev_head", "tail" and
4603         local "x".
4604         (verify_shadows): Likewise for locals "i1", "i2".
4605         (dump_insn_stream): Likewise for params "head", "tail" and locals
4606         "next_tail", "insn".
4607         (schedule_block): Likewise for locals "insn", "x".  Add a checked
4608         cast.
4609         (fix_inter_tick): Likewise for params "head", "tail".
4610         (create_check_block_twin): Likewise for local "jump".
4611         (haifa_change_pattern): Likewise for param "insn".
4612         (haifa_speculate_insn): Likewise.
4613         (dump_new_block_header): Likewise for params "head", "tail".
4614         (fix_jump_move): Likewise for param "jump".
4615         (move_block_after_check): Likewise.
4616         (sched_init_insn_luid): Likewise for param "insn".
4617         (sched_init_luids): Likewise for local "insn".
4618         (insn_luid): Likewise for param "insn".
4619         (init_h_i_d): Likewise.
4620         (haifa_init_h_i_d): Likewise for local "insn".
4621         (haifa_init_insn): Likewise for param "insn".
4622         * sched-deps.c (add_dependence): Likewise for local "real_pro",
4623         "other".
4624         (create_insn_reg_use): Likewise for param "insn".
4625         (setup_insn_reg_uses): Likewise.  Add a checked cast.
4626         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4627         "tail" from rtx to rtx_insn *.
4628         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4629         "insn", "next_tail".
4630
4631 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4632
4633         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4634         from rtx to rtx_insn *.
4635         (model_add_to_schedule): Likewise for locals "start", "end",
4636         "iter".
4637
4638 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4639
4640         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4641         rtx_insn *.
4642         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
4643         "to" and locals "insn", "next", "copy".  Remove now-redundant
4644         checked cast.
4645
4646 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4647
4648         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4649         rtx_insn * and param 4 from rtx * to rtx_insn **.
4650         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4651         param 2 from rtx * to rtx_insn **.
4652
4653         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4654         rtx_insn * and final param from rtx * to rtx_insn **.
4655
4656         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4657         from rtx to rtx_insn *.
4658         (try_head_merge_bb): Likewise for both locals named "move_upto".
4659         * df-problems.c (can_move_insns_across): Likewise for params
4660         "from", "to", "across_from", "across_to" and locals "insn",
4661         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
4662         rtx_insn **.
4663         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4664         from rtx to rtx_insn *.
4665         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4666         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
4667         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4668         rtx_insn *.
4669         (noce_try_abs): Likewise.
4670         (noce_get_condition): Likewise for param "jump".  Strengthen param
4671         "earliest" from rtx * to rtx_insn **.
4672         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4673         rtx_insn *.
4674         (find_cond_trap): Likewise.
4675         (dead_or_predicable): Likewise for local "earliest".
4676         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
4677         checked cast.
4678         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4679         and local "prev".  Strengthen param "earliest" from rtx * to
4680         rtx_insn **.
4681         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4682         Strengthen param "earliest" from rtx * to rtx_insn **.
4683
4684 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4685
4686         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4687         "to" and local "insn" from rtx to rtx_insn *.
4688
4689 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4690
4691         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4692         from rtx to rtx_insn *.
4693         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4694         (code_motion_path_driver): Likewise for local "last_insn".
4695         (simplify_changed_insns): Likewise for local "insn".
4696
4697 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4698
4699         * rtl.h (push_to_sequence): Strengthen param from rtx to
4700         rtx_insn *.
4701         (push_to_sequence2): Likewise for both params.
4702         (delete_insns_since): Likewise for param.
4703         (reorder_insns_nobb): Likewise for all three params.
4704         (set_new_first_and_last_insn): Likewise for both params.
4705
4706         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4707         rtx_insn *.  Remove now-redundant cast.
4708         (set_last_insn): Likewise.
4709
4710         * builtins.c (expand_builtin_return): Strengthen local
4711         "call_fusage" from rtx to rtx_insn *.
4712         * cfgrtl.c (create_basic_block_structure): Likewise for local
4713         "after".
4714         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4715         "first", "last" and local "insn".
4716         (delete_insns_since): Likewise for param "from".
4717         (reorder_insns_nobb): Likewise for params "from", "to", "after"
4718         and local "x".
4719         (push_to_sequence): Likewise for param "first" and local "last".
4720         (push_to_sequence2): Likewise for params "first" and "last".
4721         * lra.c (emit_add3_insn): Likewise for local "last".
4722         (lra_emit_add): Likewise.
4723         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4724         "last_insn".
4725         (process_address_1): Likewise for locals "insn", last".
4726         * modulo-sched.c (ps_first_note): Likewise for return type.
4727         * optabs.c (expand_binop_directly): Likewise for param "last".
4728
4729 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4730
4731         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4732         to rtx_insn*.
4733         * emit-rtl.c (get_last_insn_anywhere): Likewise.
4734
4735 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4736
4737         * function.h (struct sequence_stack): Strengthen fields "first"
4738         and "last" from rtx to rtx_insn *.
4739         (struct emit_status): Likewise for fields "x_first_insn" and
4740         "x_last_insn".
4741
4742         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4743         (set_first_insn): Add checked cast.
4744         (get_last_insn): Remove now-redundant checked cast.
4745         (set_last_insn): Add checked cast.
4746
4747         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4748         "saved_first" and "saved_last" from rtx to rtx_insn *.
4749
4750 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4751
4752         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4753         (unlink_insn_chain): Strengthen both params from rtx to
4754         rtx_insn *.
4755
4756         * cfgrtl.c (cfg_layout_function_header): Likewise for this
4757         variable.
4758         (unlink_insn_chain): Likewise for params "first" and "last".
4759         Remove now-redundant checked cast.
4760         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4761         (fixup_reorder_chain): Strengthen local "insn" from rtx to
4762         rtx_insn *.
4763         * emit-rtl.c (link_insn_into_chain): Likewise for all three
4764         params.
4765         (add_insn): Likewise for param "insn" and local "prev".
4766         (add_insn_after_nobb): Likewise for both params and local "next".
4767         (add_insn_before_nobb): Likewise for both params and local "prev".
4768         (add_insn_after): Rename param "after" to "uncast_after",
4769         introducing local "after" with another checked cast.
4770         (add_insn_before): Rename params "insn" and "before", giving them
4771         "uncast_" prefixes, adding the old names back using checked casts.
4772         (emit_note_after): Likewise for param "after".
4773         (emit_note_before): Likewise for param "before".
4774         (emit_label): Add a checked cast.
4775
4776 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4777
4778         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
4779         "insn" from rtx to rtx_insn *.
4780
4781         * cselib.c (cselib_record_sets_hook): Likewise.
4782
4783         * var-tracking.c (add_with_sets): Likewise, renaming back from
4784         "uncast_insn" to "insn" and eliminating the checked cast from rtx
4785         to rtx_insn *.
4786
4787 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4788
4789         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4790         and "header_" from rtx to rtx_insn *.
4791         (struct basic_block_d): Likewise for field "head_" within "x"
4792         field of union basic_block_il_dependent.
4793         (BB_HEAD): Drop function...
4794         (SET_BB_HEAD): ...and this function in favor of...
4795         (BB_HEAD): ...reinstate macro.
4796         (BB_END): Drop function...
4797         (SET_BB_END): ...and this function in favor of...
4798         (BB_END): ...reinstate macro.
4799         (BB_HEADER): Drop function...
4800         (SET_BB_HEADER): ...and this function in favor of...
4801         (BB_HEADER): ...reinstate macro.
4802
4803         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4804         (fix_crossing_unconditional_branches): Likewise.
4805         * caller-save.c (save_call_clobbered_regs): Likewise.
4806         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4807         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4808         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4809         (merge_blocks_move_successor_nojumps): Likewise.
4810         (outgoing_edges_match): Update use of for_each_rtx to
4811         for_each_rtx_in_insn.
4812         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4813         (expand_gimple_cond): Likewise.
4814         (expand_gimple_tailcall): Likewise.
4815         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4816         SET_BB_END.
4817         (construct_exit_block): Drop use of SET_BB_END.
4818         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4819         rtx_insn *.
4820         (delete_insn): Rename param "insn" to "uncast_insn", introducing
4821         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
4822         SET_BB_HEAD and SET_BB_END.
4823         (create_basic_block_structure): Drop use of SET_BB_HEAD and
4824         SET_BB_END.
4825         (rtl_delete_block): Drop use of SET_BB_HEAD.
4826         (rtl_split_block): Drop use of SET_BB_END.
4827         (emit_nop_for_unique_locus_between): Likewise.
4828         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4829         (block_label): Drop use of SET_BB_HEAD.
4830         (fixup_abnormal_edges): Drop use of SET_BB_END.
4831         (record_effective_endpoints): Drop use of SET_BB_HEADER.
4832         (relink_block_chain): Likewise.
4833         (fixup_reorder_chain): Drop use of SET_BB_END.
4834         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4835         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4836         rtx_insn **.  Drop use of SET_BB_HEADER.
4837         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4838         SET_BB_HEAD.
4839         (BB_HEAD): Delete this function.
4840         (SET_BB_HEAD): Likewise.
4841         (BB_END): Likewise.
4842         (SET_BB_END): Likewise.
4843         (BB_HEADER): Likewise.
4844         (SET_BB_HEADER): Likewise.
4845         * emit-rtl.c (add_insn_after):  Rename param "insn" to
4846         "uncast_insn", adding a new local "insn" and a checked cast to
4847         rtx_insn *.  Drop use of SET_BB_END.
4848         (remove_insn): Strengthen locals "next" and "prev" from rtx to
4849         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
4850         (reorder_insns): Drop use of SET_BB_END.
4851         (emit_insn_after_1): Strengthen param "first" and locals "last",
4852         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
4853         (emit_pattern_after_noloc): Add checked cast.
4854         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4855         (restore_other_notes): Likewise.
4856         (move_insn): Likewise.
4857         (sched_extend_bb): Likewise.
4858         (fix_jump_move): Likewise.
4859         * ifcvt.c (noce_process_if_block): Likewise.
4860         (dead_or_predicable): Likewise.
4861         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4862         * reg-stack.c (change_stack): Drop use of SET_BB_END.
4863         * sel-sched-ir.c (sel_move_insn): Likewise.
4864         * sel-sched.c (move_nop_to_previous_block): Likewise.
4865
4866         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4867         SET_BB_END.
4868         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4869
4870 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4871
4872         * basic-block.h (create_basic_block_structure): Strengthen params
4873         1 "head" and 2 "end" from rtx to rtx_insn *.
4874         * cfgrtl.c (create_basic_block_structure): Likewise.
4875         (rtl_create_basic_block): Update casts from void * to rtx to
4876         rtx_insn *, so that we can pass them as rtx_insn * to
4877         create_basic_block_structure.
4878         * sel-sched-ir.c (sel_create_basic_block): Likewise.
4879
4880 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4881
4882         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4883         rtx_insn **.
4884         (check_for_inc_dec): Strengthen param "insn" from rtx to
4885         rtx_insn *.
4886
4887         * cselib.h (cselib_process_insn): Likewise.
4888
4889         * cselib.c (cselib_record_sets): Likewise.
4890         (cselib_process_insn): Likewise.
4891
4892         * dse.c (struct insn_info): Likewise for field "insn".
4893         (check_for_inc_dec_1): Likewise for local "insn".
4894         (check_for_inc_dec): Likewise for param "insn".
4895         (scan_insn): Likewise.
4896         (dse_step1): Likewise for local "insn".
4897
4898         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4899         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
4900
4901 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4902
4903         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4904         from rtx to rtx_insn *.
4905         (DEP_PRO): Delete this function and...
4906         (SET_DEP_PRO): ...this function in favor of...
4907         (DEP_PRO): ...reinstate this macro.
4908         (DEP_CON): Delete this function and...
4909         (SET_DEP_CON): ...this function in favor of...
4910         (DEP_CON): ...reinstate this old macro.
4911         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4912         (init_dep): Likewise.
4913         (set_priorities): Likewise for both params.
4914         (sd_copy_back_deps): Likewise for params 1 and 2.
4915
4916         * haifa-sched.c (priority): Likewise for param "insn" and local
4917         "next".
4918         (set_priorities): Likewise for params "head" and "tail" and local
4919         "insn".
4920         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4921         local "consumer".
4922         (add_to_speculative_block): Add a checked cast.
4923         (create_check_block_twin): Drop use of SET_DEP_CON.
4924         (add_jump_dependencies): Strengthen params "insn" and "jump" from
4925         rtx to rtx_insn *.
4926
4927         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4928         Drop use of SET_DEP_PRO
4929         (init_dep): Strengthen params "pro" and "con" from rtx to
4930         rtx_insn *.
4931         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
4932         use of SET_DEP_CON.
4933         (DEP_PRO): Delete.
4934         (DEP_CON): Delete.
4935         (SET_DEP_PRO): Delete.
4936         (SET_DEP_CON): Delete.
4937
4938 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4939
4940         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4941         from rtx to rtx_insn *.
4942         (VINSN_INSN_RTX): Eliminate rvalue function and...
4943         (SET_VINSN_INSN): ...lvalue function in favor of...
4944         (VINSN_INSN_RTX): reinstate this old macro.
4945
4946         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4947         in favor of VINSN_INSN_RTX.
4948         (VINSN_INSN_RTX): Delete this function.
4949         (SET_VINSN_INSN_RTX): Likewise.
4950
4951 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4952
4953         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4954         (BND_TO): Delete this function and...
4955         (SET_BND_TO): ...this functions in favor of...
4956         (BND_TO): ...reinstating this macro.
4957         (struct _fence): Strengthen field "executing_insns" from
4958         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
4959         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4960         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4961         and param "insn" from rtx to insn_t.
4962         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4963         rtx_insn *.
4964
4965         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4966         vec<rtx_insn *> .
4967         (rtx_vec_t): Likewise.
4968         (struct sched_deps_info_def): Strengthen param of "start_insn"
4969         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
4970         "note_mem_dep" callback and first param of "note_dep" callback.
4971
4972         * haifa-sched.c (add_to_speculative_block): Strengthen param
4973         "insn" from rtx to rtx_insn *.
4974         (clear_priorities): Likewise.
4975         (calc_priorities): Likewise for local "insn".
4976
4977         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4978         Remove redundant checked cast.
4979         (haifa_note_mem_dep): Likewise for param "pending_insn".
4980         (haifa_note_dep): Likewise for param "elem".
4981         (note_mem_dep): Likewise for param "e".
4982         (sched_analyze_1): Add checked casts.
4983         (sched_analyze_2): Likewise.
4984
4985         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4986         from rtx to rtx_insn *.
4987         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4988         from vec<rtx> * to vec<rtx_insn *> *.
4989
4990         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4991         scaffolding.
4992         (flist_add): Strengthen param "executing_insns" from
4993         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4994         (advance_deps_context): Remove now-redundant checked cast.
4995         (init_fences): Replace uses of NULL_RTX with NULL.
4996         (merge_fences): Strengthen params "last_scheduled_insn" and
4997         "sched_next" from rtx to rtx_insn * and "executing_insns" from
4998         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4999         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5000         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5001         an instruction, rather than doing double-duty as a pattern.
5002         (return_nop_to_pool): Update for change of insn_t.
5003         (deps_init_id): Remove now-redundant checked cast.
5004         (struct sched_scan_info_def): Strengthen param of "init_insn"
5005         callback from rtx to insn_t.
5006         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5007         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5008         NULL.
5009         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5010         "end" from rtx to rtx_insn *.
5011         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5012         (rtx insn_rtx, bool force_unique_p)
5013         (BND_TO): Delete function.
5014         (SET_BND_TO): Delete function.
5015
5016         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5017         rtx to rtx_insn *.
5018         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5019         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5020         rtx to rtx_insn *.
5021         (undo_transformations): Likewise for param "insn".
5022         (update_liveness_on_insn): Likewise.
5023         (compute_live_below_insn): Likewise for param "insn" and local
5024         "succ".
5025         (update_data_sets): Likewise for param "insn".
5026         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5027         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5028         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5029         rtx_insn *.
5030         (move_cond_jump): Likewise for param "insn".
5031         (move_cond_jump): Drop use of SET_BND_TO.
5032         (compute_av_set_on_boundaries): Likewise.
5033         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5034         (update_and_record_unavailable_insns): Strengthen local "bb_end"
5035         from rtx to rtx_insn *.
5036         (maybe_emit_renaming_copy): Likewise for param "insn".
5037         (maybe_emit_speculative_check): Likewise.
5038         (handle_emitting_transformations): Likewise.
5039         (remove_insn_from_stream): Likewise.
5040         (code_motion_process_successors): Strengthen local "succ" from rtx
5041         to insn_t.
5042
5043 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5044
5045         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5046         ilist_t, not _xlist_t;
5047         (ILIST_INSN): Define in terms of new union field "insn".
5048         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5049         _XLIST_NEXT.
5050         (struct _list_node): Add new field "insn" to the union, of type
5051         insn_t.
5052         (ilist_add): Replace macro with an inline function, requiring an
5053         insn_t.
5054         (ilist_remove): Define this macro directly in terms of
5055         _list_remove, rather than indirectly via _xlist_remove.
5056         (ilist_clear): Likewise, in terms of _list_clear rather than
5057         _xlist_clear.
5058         (ilist_is_in_p): Replace macro with an inline function, requiring
5059         an insn_t.
5060         (_list_iter_cond_insn): New function.
5061         (ilist_iter_remove): Define this macro directly in terms of
5062         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5063         (ilist_iterator): Define directly in terms of _list_iterator
5064         rather than indirectly through _xlist_iterator.
5065         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5066         than in terms of _FOR_EACH_X.
5067         (FOR_EACH_INSN_1): Likewise.
5068
5069 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
5070
5071         PR target/60606
5072         PR target/61330
5073         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5074         DECL_HARD_REGISTER and return for invalid register specifications.
5075         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5076         DECL_HARD_REGISTER, call expand_one_error_var.
5077         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5078         CC_REGNUM with non-MODE_CC modes.
5079         (arm_regno_class): Return NO_REGS for PC_REGNUM.
5080
5081 2014-08-26  Marek Polacek  <polacek@redhat.com>
5082
5083         PR c/61271
5084         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5085
5086 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
5087
5088         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5089         qi cost; add di cost.
5090         (cortexa57_addrcost_table): Likewise.
5091
5092 2014-08-26  Marek Polacek  <polacek@redhat.com>
5093
5094         PR c/61271
5095         * expr.c (is_aligning_offset): Remove logical not.
5096
5097 2014-08-26  Marek Polacek  <polacek@redhat.com>
5098
5099         PR c/61271
5100         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5101         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5102
5103 2014-08-26  Richard Biener  <rguenther@suse.de>
5104
5105         PR tree-optimization/62175
5106         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5107         expand possibly trapping operations.
5108
5109 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5110
5111         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5112         "insn" from rtx to rtx_insn *.
5113         (permute_load): Likewise for param "insn".
5114         (permute_store): Likewise.
5115         (handle_special_swappables): Likewise for local "insn".
5116         (replace_swap_with_copy): Likewise for locals "insn" and
5117         "new_insn".
5118         (rs6000_analyze_swaps): Likewise for local "insn".
5119
5120 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5121
5122         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5123         to rtx_insn *.
5124
5125 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5126
5127         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5128         "note_list" from rtx to rtx_insn *.
5129         (BB_NOTE_LIST): Replace this function and...
5130         (SET_BB_NOTE_LIST): ...this function with...
5131         (BB_NOTE_LIST): ...the former macro implementation.
5132
5133         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5134         local "from_start" from rtx to rtx_insn *.  Strengthen param
5135         "to_endp" from rtx * to rtx_insn **.
5136
5137         * haifa-sched.c (concat_note_lists): Likewise.
5138         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5139         BB_NOTE_LIST.
5140         (sel_restore_notes): Likewise.
5141         (move_bb_info): Likewise.
5142         (BB_NOTE_LIST): Delete this function.
5143         (SET_BB_NOTE_LIST): Delete this function.
5144         * sel-sched.c (create_block_for_bookkeeping): Eliminate
5145         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5146
5147 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5148
5149         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5150         from rtx * to rtx_insn **.
5151         (reorder2): Likewise.
5152         (dependencies_evaluation_hook): Strengthen params "head", "tail"
5153         from rtx to rtx_insn *.
5154
5155         * doc/tm.texi: Update mechanically for above change to target.def.
5156
5157         * sched-int.h (note_list): Strengthen this variable from rtx to
5158         rtx_insn *.
5159         (remove_notes): Likewise for both params.
5160         (restore_other_notes): Likewise for return type and first param.
5161         (struct ready_list): Strengthen field "vec" from rtx * to
5162         rtx_insn **.
5163         (struct dep_replacement): Strenghten field "insn" from rtx to
5164         rtx_insn *.
5165         (struct deps_desc): Likewise for fields "last_debug_insn",
5166         "last_args_size".
5167         (struct haifa_sched_info): Likewise for callback field
5168         "can_schedule_ready_p"'s param, for first param of "new_ready"
5169         callback field, for both params of "rank" callback field, for
5170         first field of "print_insn" callback field (with a const), for
5171         both params of "contributes_to_priority" callback, for param
5172         of "insn_finishes_block_p" callback, for fields "prev_head",
5173         "next_tail", "head", "tail", for first param of "add_remove_insn"
5174         callback, for first param of "begin_schedule_ready" callback, for
5175         both params of "begin_move_insn" callback, and for second param
5176         of "advance_target_bb" callback.
5177         (add_dependence): Likewise for params 1 and 2.
5178         (sched_analyze): Likewise for params 2 and 3.
5179         (deps_analyze_insn): Likewise for param 2.
5180         (ready_element): Likewise for return type.
5181         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5182         (try_ready): Strenghten param from rtx to rtx_insn *.
5183         (sched_emit_insn): Likewise for return type.
5184         (record_delay_slot_pair): Likewise for params 1 and 2.
5185         (add_delay_dependencies): Likewise for param.
5186         (contributes_to_priority): Likewise for both params.
5187         (find_modifiable_mems): Likewise.
5188
5189         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
5190         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
5191         "first_older_only_insn" from rtx to rtx_insn *.
5192         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
5193         rtx_insn **.
5194
5195         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5196         "last_scheduled_iter0" from rtx to rtx_insn *.
5197         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5198         (c6x_sched_reorder_1): Strengthen param "ready" and locals
5199         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
5200         "insn" from rtx to rtx_insn *.
5201         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5202         rtx_insn **.
5203         (c6x_sched_reorder2): Strengthen param "ready" and locals
5204         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5205         "insn" from rtx to rtx_insn *.
5206         (c6x_variable_issue):  Add a checked cast when assigning from insn
5207         to ss.last_scheduled_iter0.
5208         (split_delayed_branch): Strengthen param "insn" and local "i1"
5209         from rtx to rtx_insn *.
5210         (split_delayed_nonbranch): Likewise.
5211         (undo_split_delayed_nonbranch): Likewise for local "insn".
5212         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5213         "entry_after", "end_packet", "head_insn", "tail_insn",
5214         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5215         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5216         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
5217         but add a checked cast on loop->start_label.  Consolidate calls to
5218         avoid assigning result of gen_spkernel to "insn", now an
5219         rtx_insn *.
5220
5221         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5222         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
5223         rtx to rtx_insn *.
5224         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5225         rtx_insn **.  Strengthen locals "top", "next" from rtx to
5226         rtx_insn *.
5227         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5228         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
5229         (add_parameter_dependencies): Strengthen params "call", "head" and
5230         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5231         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5232         (add_dependee_for_func_arg): Likewise for param "arg" and local
5233         "insn".
5234         (ix86_dependencies_evaluation_hook): Likewise for params "head",
5235         "tail" and locals "insn", "first_arg".
5236
5237         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5238         for params "head", "tail" and locals "insn", "next", "next_tail".
5239         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5240         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5241         "insn", "lowest", "highest" from rtx to rtx_insn *.
5242         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5243         rtx_insn **.
5244         (ia64_sched_reorder2): Likewise.
5245
5246         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5247         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
5248         from rtx * to rtx_insn **.
5249         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5250         rtx_insn **.
5251         (mep_print_sched_insn): Strengthen param "insn" from rtx to
5252         rtx_insn *.
5253         (mep_sched_reorder): Strengthen param "ready" from rtx * to
5254         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
5255         to rtx_insn *.
5256
5257         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5258         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
5259         to rtx_insn *.
5260         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5261         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
5262         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5263         rtx_insn **.
5264         (vr4130_reorder): Likewise.
5265         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
5266         rtx to rtx_insn *.
5267         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5268         rtx_insn **.
5269         (mips_sched_reorder): Likewise.
5270         (mips_sched_reorder2): Likewise.
5271
5272         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5273
5274         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5275         Strengthen local "tmp" from rtx to rtx_insn *.
5276         (rs6000_sched_reorder2): Likewise.
5277
5278         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5279         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5280         (s390_sched_reorder): Strengthen param "ready" from rtx * to
5281         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
5282
5283         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5284         "tmp2" from rtx to rtx_insn *.
5285         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5286         Strengthen local "insn" from rtx to rtx_insn *.
5287         (ready_reorder): Strengthen param "ready" from rtx * to
5288         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5289         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
5290         (sh_reorder2): Likewise.
5291
5292         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
5293         local "insn" from rtx to rtx_insn *.
5294
5295         * haifa-sched.c (note_list): Strengthen this variable from rtx to
5296         rtx_insn *.
5297         (scheduled_insns): Strengthen this variable from vec<rtx> to
5298         vec<rtx_insn *>.
5299         (set_modulo_params): Likewise for locals "i1", "i2".
5300         (record_delay_slot_pair): Likewise for params "i1", "i2".
5301         (add_delay_dependencies): Likewise for param "insn".
5302         (cond_clobbered_p): Likewise.
5303         (recompute_todo_spec): Likewise for local "prev".
5304         (last_scheduled_insn): Likewise for this variable.
5305         (nonscheduled_insns_begin): Likewise.
5306         (model_set_excess_costs): Strengthen param "insns" from rtx * to
5307         rtx_insn **.
5308         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5309         rtx_insn *.
5310         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5311         Strengthen local "insn" from rtx to rtx_insn *.
5312         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5313         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5314         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5315         (ready_remove_first): Likewise for return type and local "t".
5316         (ready_element): Likewise for return type.
5317         (ready_remove): Likewise for return type and local "t".
5318         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5319         (check_clobbered_conditions): Strengthen local "x" from rtx to
5320         rtx_insn *, adding a checked cast.
5321         (schedule_insn): Likewise for param "insn".
5322         (remove_notes): Likewise for params "head", "tail" and locals
5323         "next_tail", "insn", "next".
5324         (struct haifa_saved_data): Likewise for fields
5325         "last_scheduled_insn", "nonscheduled_insns_begin".
5326         (save_backtrack_point): Update for change to field "vec" of
5327         struct ready_list.
5328         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5329         rtx_insn **.
5330         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
5331         from rtx to rtx_insn *
5332         (resolve_dependencies): Strengthen param "insn" from rtx to
5333         rtx_insn *
5334         (restore_other_notes): Likewise for return type, for param "head"
5335         and local "note_head".
5336         (undo_all_replacements): Likewise for local "insn".
5337         (first_nonscheduled_insn): Likewise for return type and local "insn".
5338         (queue_to_ready): Likewise for local "insn", adding checked casts.
5339         (early_queue_to_ready): Likewise for local "insn".
5340         (debug_ready_list_1): Strengthen local "p" from rtx * to
5341         rtx_insn **.
5342         (move_insn): Strengthen param "insn" and local "note" from rtx to
5343         rtx_insn *
5344         (insn_finishes_cycle_p): Likewise for param "insn".
5345         (max_issue): Likewise for local "insn".
5346         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
5347         to rtx_insn **.
5348         (commit_schedule): Strengthen param "prev_head" and local "insn"
5349         from rtx to rtx_insn *
5350         (prune_ready_list): Likewise for local "insn".
5351         (schedule_block): Likewise for locals "prev_head", "head", "tail",
5352         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5353         (set_priorities): Likewise for local "prev_head".
5354         (try_ready): Likewise for param "next".
5355         (fix_tick_ready): Likewise.
5356         (change_queue_index): Likewise.
5357         (sched_extend_ready_list): Update for change to field "vec" of
5358         struct ready_list.
5359         (generate_recovery_code): Strengthen param "insn" from rtx to
5360         rtx_insn *.
5361         (begin_speculative_block): Likewise.
5362         (create_check_block_twin): Likewise for param "insn" and locals
5363         "label", "check", "twin".  Introduce local "check_pat" to avoid
5364         "check" being used as a plain rtx before being used as an insn.
5365         (fix_recovery_deps): Add a checked cast to rtx_insn * when
5366         extracting elements from ready_list.
5367         (sched_remove_insn): Strengthen param "insn" from rtx to
5368         rtx_insn *.
5369         (sched_emit_insn): Likewise for return type.
5370         (ready_remove_first_dispatch): Likewise for return type and local
5371         "insn".
5372
5373         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5374
5375         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5376         const rtx_insn *.
5377
5378         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5379         from rtx to rtx_insn *.
5380         (add_dependence_list): Likewise for param "insn".  Add a checked
5381         cast.
5382         (add_dependence_list_and_free): Strengthen param "insn" from rtx
5383         to rtx_insn *.  Strengthen param "list_p" from rtx * to
5384         rtx_insn **.
5385         (chain_to_prev_insn): Strengthen param "insn" and locals
5386         "prec_nonnote", "i" from rtx to rtx_insn *.
5387         (flush_pending_lists): Likewise for param "insn".
5388         (cur_insn): Likewise for this variable.
5389         (haifa_start_insn): Add a checked cast.
5390         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5391         (sched_analyze_reg): Likewise for param "insn".
5392         (sched_analyze_1): Likewise.
5393         (sched_analyze_2): Likewise.  Add checked casts.
5394         (sched_analyze_insn): Likewise.  Also for local "prev".
5395         (deps_analyze_insn): Likewise for param "insn".
5396         (sched_analyze): Likewise for params "head", "tail" and local "insn".
5397         (add_dependence_1): Likewise for params "insn", "elem".
5398         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5399         (parse_add_or_inc): Likewise for param "insn".
5400         (find_inc): Likewise for local "inc_cand".
5401         (find_modifiable_mems): Likewise for params "head", "tail" and
5402         locals "insn", "next_tail".
5403
5404         * sched-ebb.c (init_ready_list): Likewise for local "insn".
5405         (begin_schedule_ready): Likewise for param "insn".
5406         (begin_move_insn): Likewise for params "insn" and "last".
5407         (ebb_print_insn): Strengthen param "insn" from const_rtx to
5408         const rtx_insn *.
5409         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5410         (ebb_contributes_to_priority): Likewise for params "next", "insn".
5411         (ebb_add_remove_insn): Likewise for param "insn".
5412         (advance_target_bb): Likewise.
5413
5414         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5415         "insn".
5416         (check_live): Likewise for param "insn".
5417         (init_ready_list): Likewise for local "insn".
5418         (can_schedule_ready_p): Likewise for param "insn".
5419         (begin_schedule_ready): Likewise.
5420         (new_ready): Likewise for param "next".
5421         (rgn_print_insn): Likewise for param "insn".
5422         (rgn_rank): Likewise for params "insn1", "insn2".
5423         (contributes_to_priority): Likewise for params "next", "insn".
5424         (rgn_insn_finishes_block_p): Likewise for param "insn".
5425         (add_branch_dependences): Likewise for params "head", "tail" and
5426         locals "insn", "last".
5427         (rgn_add_remove_insn): Likewise for param "insn".
5428         (advance_target_bb): Likewise.
5429
5430         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5431         const_rtx to const rtx_insn *.
5432
5433         * sel-sched-dump.h (sel_print_insn): Likewise.
5434
5435         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5436         (deps_init_id): Likewise.
5437
5438         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5439         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5440         rtx_insn **.
5441
5442 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5443
5444         * output.h (final_start_function): Strengthen param 1 from rtx to
5445         rtx_insn *.
5446
5447         * final.c (final_start_function): Likewise, renaming back from
5448         "uncast_first" to "first", and dropping the checked cast from rtx
5449         to rtx_insn *.
5450
5451 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5452
5453         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5454         * final.c (final): Likewise.  Rename param back from
5455         "uncast_first" to "first" and eliminate the checked cast from rtx
5456         to rtx_insn *.
5457
5458 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5459
5460         * output.h (shorten_branches): Strengthen param from rtx to
5461         rtx_insn *.
5462
5463         * final.c (shorten_branches): Likewise, renaming param back from
5464         "uncast_first" to "first", and dropping the checked cast from rtx
5465         to rtx_insn *.
5466
5467         * genattr.c (gen_attr): Likewise when writing out the prototype of
5468         shorten_branches.
5469
5470 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5471
5472         * sched-int.h (struct haifa_sched_info): Strengthen fields
5473         "prev_head" and "next_tail" from rtx to rtx_insn *.
5474
5475 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5476
5477         * rtl.h (rtx_jump_table_data::get_labels): New method.
5478         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5479         with use of the new rtx_jump_table_data::get_labels method.
5480         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5481         to rtx_jump_table_data *.  Simplify by using get_labels method.
5482         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5483         a dyn_cast, introducing local "table", using it to replace
5484         label-lookup logic with a get_labels method call.
5485         (patch_jump_insn): Simplify using get_labels method.
5486         * dwarf2cfi.c (create_trace_edges): Likewise.
5487         * rtlanal.c (label_is_jump_target_p): Likewise.
5488
5489 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5490
5491         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5492         to rtx_insn *.
5493
5494         * emit-rtl.c (unshare_all_rtl_1): Likewise.
5495         (unshare_all_rtl_again): Likewise, also for local "p".
5496
5497 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5498
5499         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5500         to rtx_insn *.
5501         * cfgrtl.c (delete_insn_and_edges): Likewise.
5502
5503 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5504
5505         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5506         from rtx to rtx_insn *.
5507
5508         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5509
5510 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5511
5512         * function.c (thread_prologue_and_epilogue_insns): Likewise for
5513         locals "returnjump", "epilogue_end", "insn", "next".
5514
5515         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5516         "returnjump" from rtx * to rtx_insn **.
5517         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5518
5519 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5520
5521         * basic-block.h (struct edge_def). Strengthen "r" within
5522         union edge_def_insns from rtx to rtx_insn *.
5523
5524         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5525         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
5526         rtx_insn *.
5527         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5528         from rtx to rtx_insn *.
5529         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5530         rtx_insn *.
5531         * postreload-gcse.c (reg_killed_on_edge): Likewise.
5532         (reg_used_on_edge): Likewise.
5533         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5534         (gt_pch_nx): New overload for rtx_insn *&.
5535         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5536         from rtx to rtx_insn *.
5537
5538 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5539
5540         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5541         from rtx to rtx_insn *.
5542         (BB_FOOTER): Replace function with access macro.
5543         (SET_BB_FOOTER): Delete.
5544
5545         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5546         with BB_FOOTER.
5547         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5548         (emit_barrier_after_bb): Likewise.
5549         (record_effective_endpoints): Likewise.
5550         (relink_block_chain): Likewise.
5551         (fixup_fallthru_exit_predecessor): Likewise.
5552         (cfg_layout_duplicate_bb): Likewise.
5553         (cfg_layout_split_block): Likewise.
5554         (cfg_layout_delete_block): Likewise.
5555         (cfg_layout_merge_blocks): Likewise.
5556         (BB_FOOTER): Delete function.
5557         (SET_BB_FOOTER): Delete function.
5558         * combine.c (update_cfg_for_uncondjump): Replace uses of
5559         SET_BB_FOOTER with BB_FOOTER.
5560
5561 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5562
5563         * except.h (struct eh_landing_pad_d): Strengthen field
5564         "landing_pad" from rtx to rtx_code_label *.
5565
5566         * except.c (sjlj_emit_dispatch_table): Likewise for param
5567         "dispatch_label"
5568         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5569
5570 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5571
5572         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5573         first param from rtx to rtx_insn *.
5574         * config/xtensa/xtensa.c (struct machine_function): Likewise for
5575         field "set_frame_ptr_insn".
5576         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5577         "csend" from rtx to rtx_code_label *.
5578         (xtensa_expand_atomic): Likewise for local "csloop".
5579         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5580         rtx_insn *.
5581         (xtensa_call_tls_desc): Likewise for return type and locals
5582         "call_insn", "insns".
5583         (xtensa_legitimize_tls_address): Likewise for local "insns".
5584         (xtensa_expand_prologue): Likewise for locals "insn", "first".
5585
5586 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5587
5588         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5589         first param from rtx to rtx_insn *.
5590         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5591         "insn".
5592
5593 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5594
5595         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5596         Strengthen param 1 from rtx to rtx_insn *.
5597         (tilepro_output_cbranch): Likewise.
5598         (tilepro_adjust_insn_length): Likewise.
5599         (tilepro_final_prescan_insn): Likewise for sole param.
5600
5601         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5602         Likewise for local "last".
5603         (cbranch_predicted_p): Likewise for param "insn".
5604         (tilepro_output_simple_cbranch_with_opcode): Likewise.
5605         (tilepro_output_cbranch_with_opcode): Likewise.
5606         (tilepro_output_cbranch): Likewise.
5607         (frame_emit_load): Likewise for return type and locals "seq",
5608         "insn".
5609         (emit_sp_adjust): Likewise for return type and local "insn".
5610         (tilepro_expand_epilogue): Likewise for locals "last_insn",
5611         "insn".
5612         (tilepro_adjust_insn_length): Likewise for param "insn".
5613         (next_insn_to_bundle): Likewise for return type and params
5614         "r", "end".
5615         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5616         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5617         local "new_insns".
5618         (match_addli_pcrel): Likewise for param "insn".
5619         (replace_addli_pcrel): Likewise.
5620         (match_auli_pcrel): Likewise.
5621         (replace_auli_pcrel): Likewise.
5622         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5623         "next_insn".
5624         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5625         "queue", "next_queue", "prev".
5626         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5627         (tilepro_final_prescan_insn): Likewise for param "insn".
5628
5629 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5630
5631         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5632         Strengthen param 1 from rtx to rtx_insn *.
5633         (tilegx_output_cbranch): Likewise.
5634         (tilegx_adjust_insn_length): Likewise.
5635         (tilegx_final_prescan_insn): Likewise for sole param.
5636
5637         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5638         or local "last".
5639         (cbranch_predicted_p): Likewise for param "insn".
5640         (tilegx_output_simple_cbranch_with_opcode): Likewise.
5641         (tilegx_output_cbranch_with_opcode): Likewise.
5642         (tilegx_output_cbranch): Likewise.
5643         (frame_emit_load): Likewise for return type.
5644         (set_frame_related_p): Likewise for locals "seq", "insn".
5645         (emit_sp_adjust): Likewise for return type, and for local "insn".
5646         Introduce local "pat" for use in place of "insn" where the latter
5647         isn't an instruction.
5648         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5649         from rtx to rtx_insn *.
5650         (tilegx_adjust_insn_length): Likewise for param "insn".
5651         (next_insn_to_bundle): Likewise for return type and params "r" and
5652         "end".
5653         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5654         "end".
5655         (replace_insns): Likewise for params "old_insn", "new_insns".
5656         (replace_mov_pcrel_step1): Likewise for param "insn" and local
5657         "new_insns".
5658         (replace_mov_pcrel_step2): Likewise.
5659         (replace_mov_pcrel_step3): Likewise.
5660         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5661         "next_insn".
5662         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5663         "queue", "next_queue", "prev".
5664         (tilegx_output_mi_thunk): Likewise for local "insn".
5665         (tilegx_final_prescan_insn): Likewise for param "insn".
5666
5667 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5668
5669         * config/spu/spu.c (frame_emit_store): Strengthen return type from
5670         rtx to rtx_insn *.
5671         (frame_emit_load): Likewise.
5672         (frame_emit_add_imm): Likewise, also for local "insn".
5673         (spu_expand_prologue): Likewise for local "insn".
5674         (struct spu_bb_info): Likewise for field "prop_jump".
5675         (emit_nop_for_insn): Likewise for param "insn" and local
5676         "new_insn".
5677         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5678         "hbr_insn".
5679         (spu_emit_branch_hint): Likewise for params "before", "branch" and
5680         locals "hint", "insn".
5681         (get_branch_target): Likewise for param "branch".
5682         (insn_clobbers_hbr): Likewise for param "insn".
5683         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5684         locals "insn", "before_4", "before_16".
5685         (insert_hbrp): Likewise for local "insn".
5686         (spu_machine_dependent_reorg): Likewise for locals "branch",
5687         "insn", "next", "bbend".
5688         (uses_ls_unit): Likewise for param "insn".
5689         (get_pipe): Likewise.
5690         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5691         introducing a checked cast.
5692         (spu_sched_adjust_cost): Likewise for params "insn" and
5693         "dep_insn".
5694         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5695         (spu_sms_res_mii): Likewise.
5696
5697 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5698
5699         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5700         from rtx to rtx_insn *.
5701         (output_cbranch): Likewise for param 6.
5702         (output_return): Likewise for param 1.
5703         (output_sibcall): Likewise.
5704         (output_v8plus_shift): Likewise.
5705         (output_v8plus_mult): Likewise.
5706         (output_v9branch): Likewise for param 7.
5707         (output_cbcond):  Likewise for param 3.
5708
5709         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5710         for local "insn".
5711         (sparc_legitimize_pic_address): Likewise.
5712         (sparc_emit_call_insn): Likewise.
5713         (emit_save_or_restore_regs): Likewise.
5714         (emit_window_save): Likewise for return type and local "insn".
5715         (sparc_expand_prologue): Likewise for local "insn".
5716         (sparc_flat_expand_prologue): Likewise.
5717         (output_return): Likewise for param "insn".
5718         (output_sibcall): Likewise for param "insn" and local "delay".
5719         (output_ubranch): Likewise for param "insn".
5720         (output_cbranch): Likewise.
5721         (output_cbcond): Likewise.
5722         (output_v9branch): Likewise.
5723         (output_v8plus_shift): Likewise.
5724         (sparc_output_mi_thunk): Likewise for local "insn".
5725         (get_some_local_dynamic_name): Likewise.
5726         (output_v8plus_mult): Likewise for param "insn".
5727
5728 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5729
5730         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5731         from rtx to rtx_insn *.
5732         (output_branchy_insn): Likewise for param 3.
5733         (output_far_jump): Likewise for param 1.
5734         (final_prescan_insn): Likewise.
5735         (sh_insn_length_adjustment): Likewise for sole param.
5736
5737         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5738         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5739         rtx_code_label *.
5740         (sh_emit_compare_and_set): Likewise for local "lab".
5741         (output_far_jump): Strengthen param "insn" and local "prev" from
5742         rtx to rtx_insn *.
5743         (output_branchy_insn): Likewise for param "insn" and local
5744         "next_insn".
5745         (output_ieee_ccmpeq): Likewise for param "insn".
5746         (struct label_ref_list_d): Strengthen field "label" from rtx to
5747         rtx_code_label *.
5748         (pool_node): Likewise.
5749         (pool_window_label): Likewise for this global.
5750         (add_constant): Likewise for return type and locals "lab", "new_rtx".
5751         (dump_table): Strengthen params "start", "barrier" and local
5752         "scan" from rtx to rtx_insn *.
5753         (broken_move): Likewise for param "insn".
5754         (untangle_mova): Likewise for params "first_mova" and "new_mova".
5755         Strengthen param "first_mova" from rtx * to rtx_insn **.
5756         (mova_p): Likewise for param "insn".
5757         (fixup_mova): Likewise for param "mova".
5758         (find_barrier): Likewise for return type, params "mova" and
5759         "from", and locals "barrier_before_mova", "found_barrier",
5760         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
5761         "label" from rtx to rtx_code_label *.
5762         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5763         rtx to rtx_insn *.
5764         (sh_reorg): Likewise for locals "link", "scan", "barrier".
5765         (split_branches): Likewise for param "first" and local "insn".
5766         (final_prescan_insn): Likewise for param "insn".
5767         (sequence_insn_p): Likewise for locals "prev", "next".
5768         (sh_insn_length_adjustment): Likewise for param "insn".
5769         (sh_can_redirect_branch): Likewise for local "insn".
5770         (find_r0_life_regions): Likewise for locals "end", "insn".
5771         (sh_output_mi_thunk): Likewise for local "insns".
5772
5773 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5774
5775         * config/score/score.c (score_output_mi_thunk): Strengthen local
5776         "insn" from rtx to rtx_insn *.
5777         (score_prologue): Likewise.
5778
5779 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5780
5781         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5782         1 from rtx to rtx_insn *.
5783         (s390_emit_jump): Likewise for return type.
5784         (s390_emit_call): Likewise.
5785         (s390_load_got): Likewise.
5786
5787         * config/s390/s390.c (last_scheduled_insn): Likewise for this
5788         variable.
5789         (s390_match_ccmode): Likewise for param "insn".
5790         (s390_emit_jump): Likewise for return type.
5791         (s390_split_branches): Likewise for local "label".
5792         (struct constant): Strengthen field "label" from rtx to
5793         rtx_code_label *.
5794         (struct constant_pool): Likewise for field "label".  Strengthen
5795         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5796         rtx_insn *.
5797         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5798         insns.
5799         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5800         (s390_end_pool): Likewise.
5801         (s390_dump_pool): Likewise for local "insn".
5802         (s390_mainpool_start): Likewise.
5803         (s390_chunkify_start): Likewise.
5804         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5805         with insns.  Strengthen locals "label", "jump", "barrier", "next",
5806         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5807         (s390_chunkify_finish): Strengthen local "insn" from rtx to
5808         rtx_insn *.
5809         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5810         "jump", "label", "next_insn".
5811         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5812         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5813         "tbegin_insn".
5814         (s390_load_got): Likewise for return type and local "insns".
5815         (s390_save_gprs_to_fprs): Likewise for local "insn".
5816         (s390_restore_gprs_from_fprs): Likewise.
5817         (pass_s390_early_mach::execute): Likewise.
5818         (s390_emit_prologue): Likewise for local "insns".
5819         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5820         rtx_code_label *.
5821         (s390_emit_call): Strengthen return type and local "insn" from
5822         rtx to rtx_insn *.
5823         (s390_emit_tpf_eh_return): Likewise for local "insn".
5824         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5825         "next_insn", introducing locals "s_pat", "rpat" to allow this.
5826         (s390_fix_long_loop_prediction): Likewise for param "insn" and
5827         local "cur_insn".
5828         (s390_non_addr_reg_read_p): Likewise for param "insn".
5829         (find_cond_jump): Likewise for return type and param "insn".
5830         (s390_swap_cmp): Likewise for param "insn".
5831         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5832         "prev_insn", "next_insn".
5833         (s390_reorg): Likewise for locals "insn", "target".
5834         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5835         (s390_sched_variable_issue): For now, rename param "insn" to
5836         "uncast_insn", introducing a checked cast.
5837         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5838         insn.
5839         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5840         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
5841
5842 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5843
5844         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5845         param from rtx to rtx_insn *.
5846         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5847
5848 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5849
5850         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5851         4 from rtx to rtx_insn *.
5852         (rs6000_final_prescan_insn): Likewise for first param.
5853         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5854         local "insn".
5855         (rs6000_get_some_local_dynamic_name): Likewise.
5856         (output_cbranch): Likewise for param "insn".
5857         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5858         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5859         (rs6000_emit_allocate_stack): Likewise for local "insn".
5860         (load_cr_save): Likewise.
5861         (restore_saved_cr): Likewise.
5862         (restore_saved_lr): Likewise.
5863         (emit_cfa_restores): Likewise.
5864         (rs6000_output_function_epilogue): Likewise for locals "insn" and
5865         "deleted_debug_label".
5866         (rs6000_output_mi_thunk): Likewise for local "insn".
5867         (rs6000_final_prescan_insn): Likewise for param "insn".
5868
5869 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5870
5871         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5872         Strengthen param "insn" from rtx to rtx_insn *.
5873         * config/picochip/picochip.c (picochip_current_prescan_insn):
5874         Likewise for this variable.
5875         (picochip_final_prescan_insn): Likewise for param "insn".
5876
5877 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5878
5879         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5880         from rtx to rtx_insn *.
5881         (pa_output_indirect_call): Likewise.
5882         (pa_adjust_insn_length): Likewise.
5883         (pa_attr_length_millicode_call): Likewise.
5884         (pa_attr_length_call): Likewise.
5885         (pa_attr_length_indirect_call): Likewise.
5886
5887         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5888         "insn".
5889         (pa_attr_length_millicode_call): Likewise.
5890         (pa_attr_length_call): Likewise.
5891         (pa_output_call): Likewise.
5892         (pa_attr_length_indirect_call): Likewise.
5893         (pa_output_indirect_call): Likewise.
5894
5895 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5896
5897         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5898         Strengthen first param from rtx to rtx_insn *.
5899         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5900         param "insn".
5901
5902 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5903
5904         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5905         type from rtx to rtx_insn *.
5906         (mips_expand_call): Likewise.
5907         (mips_adjust_insn_length): Likewise for first param.
5908         (mips_output_conditional_branch): Likewise.
5909         (mips_output_order_conditional_branch): Likewise.
5910         (mips_final_prescan_insn): Likewise.
5911
5912         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5913         rtx_insn * for the SEQUENCE case.
5914         (SEQ_END): Likewise.
5915         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5916         (mips_emit_call_insn): Likewise, also for local "insn".
5917         (mips16_gp_pseudo_reg): Likewise for local "scan".
5918         (mips16_build_call_stub): Likewise for return type and for local
5919         "insn".  Introduce a new local "pattern" so that "insn" can indeed
5920         be an insn.
5921         (mips_expand_call): Strengthen return type and local "insn" from
5922         rtx to rtx_insn *.
5923         (mips_block_move_loop): Strengthen local "label" from rtx to
5924         rtx_code_label *.
5925         (mips_expand_synci_loop): Likewise for locals "label",
5926         "end_label".
5927         (mips_set_frame_expr): Strengthen local "insn" from rtx to
5928         rtx_insn *.
5929         (mips16e_collect_argument_saves): Likewise for locals "insn",
5930         "next".
5931         (mips_find_gp_ref): Likewise for param of callback for "pred"
5932         param, and for local "insn".
5933         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5934         (mips_insn_has_flexible_gp_ref_p): Likewise.
5935         (mips_epilogue_emit_cfa_restores): Likewise for return type and
5936         local "insn".
5937         (mips_epilogue_set_cfa): Likewise for local "insn".
5938         (mips_expand_epilogue): Likewise.
5939         (mips_adjust_insn_length): Likewise for param "insn".
5940         (mips_output_conditional_branch): Likewise.
5941         (mips_output_order_conditional_branch): Likewise.
5942         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5943         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5944         "falu2_turn_enabled_insn".
5945         (mips_builtin_branch_and_move): Strengthen locals "true_label",
5946         "done_label" from rtx to rtx_code_label *.
5947         (struct mips16_constant): Likewise for field "label".
5948         (mips16_add_constant): Likewise for return type.
5949         (mips16_emit_constants_1): Strengthen return type and param "insn"
5950         from rtx to rtx_insn *.
5951         (mips16_emit_constants): Likewise for param "insn".
5952         (mips16_insn_length): Likewise.
5953         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5954         to rtx_code_label *.
5955         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5956         from rtx to rtx_insn *.
5957         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5958         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
5959         (r10k_simplify_address): Strengthen param "insn" and local
5960         "def_insn" from rtx to rtx_insn *.
5961         (r10k_safe_address_p): Strengthen param "insn" from rtx to
5962         rtx_insn *.
5963         (r10k_needs_protection_p_1): Update target type of cast of data
5964         from to rtx to rtx_insn *.
5965         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5966         rtx * to rtx_insn **.
5967         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5968         rtx_insn *.
5969         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5970         (mips_call_expr_from_insn): Likewise for param "insn".
5971         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5972         (mips_find_pic_call_symbol): Likewise for param "insn".
5973         (mips_annotate_pic_calls): Likewise for local "insn".
5974         (mips_sim_insn): Likewise for this variable.
5975         (struct mips_sim): Likewise for field "insn" within elements of
5976         last_set array.
5977         (mips_sim_wait_reg): Likewise for param "insn".
5978         (mips_sim_wait_regs): Likewise.
5979         (mips_sim_wait_units): Likewise.
5980         (mips_sim_wait_insn): Likewise.
5981         (mips_sim_issue_insn): Likewise.
5982         (mips_sim_finish_insn): Likewise.
5983         (mips_seq_time): Likewise for param "seq" and local "insn".
5984         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5985         locals "first", "second".
5986         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5987         "last", "last2", "next".
5988         (mips_avoid_hazard): Likewise for params "after", "insn".
5989         (mips_reorg_process_insns): Likewise for locals "insn",
5990         "last_insn", "subinsn", "next_insn".
5991         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5992         (mips16_split_long_branches): Likewise for locals "insn" "jump",
5993         "jump_sequence".
5994         (mips_output_mi_thunk): Likewise for local "insn".
5995         (mips_final_prescan_insn): Likewise for param "insn".
5996
5997 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5998
5999         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6000         Strengthen return type and local "insns" from rtx to rtx_insn *.
6001         (microblaze_legitimize_tls_address): Likewise for local "insns".
6002         (microblaze_block_move_loop): Strengthen local "label" from rtx
6003         to rtx_code_label *.
6004         (microblaze_expand_prologue): Strengthen two locals named "insn"
6005         from rtx to rtx_insn *.
6006         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6007         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6008         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
6009         to rtx_code_label *.
6010
6011 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6012
6013         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6014         param from rtx to rtx_insn *.
6015         (mep_reuse_lo): Likewise for third param.
6016         (mep_use_post_modify_p): Likewise for first param.
6017         (mep_core_address_length): Likewise.
6018         (mep_cop_address_length): Likewise.
6019         (mep_final_prescan_insn): Likewise.
6020         (mep_store_data_bypass_p): Likewise for both params.
6021         (mep_mul_hilo_bypass_p): Likewise.
6022         (mep_ipipe_ldc_p): Likewise for param.
6023
6024         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6025         (mep_rewrite_mult): Likewise.
6026         (mep_rewrite_mulsi3): Likewise.
6027         (mep_rewrite_maddsi3): Likewise.
6028         (mep_reuse_lo_p_1): Likewise.
6029         (mep_reuse_lo_p): Likewise.
6030         (mep_frame_expr): Likewise.
6031         (mep_make_parallel): Likewise for both params.
6032         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6033         local "insn".
6034         (mep_use_post_modify_p): Likewise for param "insn".
6035         (mep_core_address_length): Likewise.
6036         (mep_cop_address_length): Likewise.
6037         (mep_reg_set_in_function): Likewise for local "insn".
6038         (mep_asm_without_operands_p): Likewise.
6039         (F): Likewise for return type and param "x".
6040         (add_constant): Likewise for local "insn".
6041         (maybe_dead_move): Likewise for return type and local "insn".
6042         (mep_expand_prologue): Likewise for local "insn".
6043         (mep_final_prescan_insn): Likewise for param "insn".
6044         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6045         "next", "follow", "x".
6046         (mep_insert_repeat_label_last): Likewise for return type, param
6047         "last_insn", and locals "next", "prev".  Strengthen param "label"
6048         from rtx to rtx_code_label *.
6049         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6050         rtx_insn *.
6051         (struct mep_doloop_end): Likewise for fields "insn" and
6052         "fallthrough".
6053         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6054         Strengthen local "repeat_label" from rtx to rtx_code_label *.
6055         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6056         rtx_insn *.
6057         (mep_invert_branch): Likewise for params "insn" and "after".
6058         (mep_reorg_erepeat): Likewise for param "insns" and locals
6059         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
6060         "l" from rtx to rtx_code_label *.
6061         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6062         from rtx to rtx_insn *.
6063         (mep_reorg_addcombine): Likewise for param "insns" and locals
6064         "i", "n".
6065         (add_sp_insn_p): Likewise for param "insn".
6066         (mep_reorg_noframe): Likewise for param "insns" and locals
6067         "start_frame_insn", "end_frame_insn", "next".
6068         (mep_reorg): Likewise for local "insns".
6069         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
6070         cast.
6071         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6072         (mep_mul_hilo_bypass_p): Likewise.
6073         (mep_ipipe_ldc_p): Likewise for param "insn".
6074         (mep_make_bundle): Likewise for return type, param "cop" and local
6075         "insn", splitting out the latter into a new local "seq" for when it
6076         is a SEQUENCE rather than an insn.
6077         (core_insn_p): Likewise for param "insn".
6078         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6079         "last", "first", "note", "prev", "core_insn".
6080
6081 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6082
6083         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6084         rtx to rtx_insn *.
6085         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6086         (m68k_final_prescan_insn): Likewise for first param.
6087
6088         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6089         (m68k_set_frame_related): Likewise for param "insn".
6090         (output_btst): Likewise for param "insn".
6091         (m68k_final_prescan_insn): Likewise.
6092         (m68k_move_to_reg): Likewise for local "insn".
6093         (m68k_call_tls_get_addr): Likewise for local "insns".
6094         (m68k_call_m68k_read_tp): Likewise.
6095         (strict_low_part_peephole_ok): Likewise for param "first_insn".
6096         (m68k_output_mi_thunk): Likewise for local "insn".
6097
6098 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6099
6100         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6101         first param from rtx to rtx_insn *.
6102         (iq2000_adjust_insn_length): Likewise.
6103         (iq2000_output_conditional_branch): Likewise.
6104         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6105         "insn" and local "nop_insn".
6106         (iq2000_annotate_frame_insn): Likewise for param "insn".
6107         (iq2000_expand_prologue): Likewise for both locals "insn".
6108         (iq2000_adjust_insn_length): Likewise for param "insn".
6109         (iq2000_output_conditional_branch): Likewise.
6110
6111 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6112
6113         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6114         "insns" from rtx to rtx_insn *.
6115         (ia64_emit_cond_move): Likewise for locals "insn", "first".
6116         (struct spill_fill_data): Likewise for field "init_after" and for
6117         elements of array field "prev_insn".
6118         (spill_restore_mem): Likewise for locals "insn", "first".
6119         (do_spill): Likewise for local "insn".
6120         (do_restore): Likewise.
6121         (ia64_expand_prologue): Likewise.
6122         (ia64_expand_epilogue): Likewise.
6123         (emit_insn_group_barriers): Likewise for locals "insn",
6124         "last_label".
6125         (emit_all_insn_group_barriers): Likewise for locals "insn",
6126         "last".
6127         (dfa_stop_insn): Likewise for this global.
6128         (dfa_pre_cycle_insn): Likewise.
6129         (ia64_nop): Likewise.
6130         (final_emit_insn_group_barriers): Likewise for locals "insn",
6131         "last".
6132         (emit_predicate_relation_info): Likewise for locals "head", "n",
6133         "insn", "b", "a".
6134         (ia64_reorg): Likewise for local "insn".
6135         (ia64_output_mi_thunk): Likewise.
6136         (expand_vec_perm_interleave_2): Likewise for local "seq".
6137
6138 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6139
6140         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6141         param 1 "insn" from rtx to rtx_insn *.
6142         (ix86_use_lea_for_mov): Likewise.
6143         (ix86_avoid_lea_for_addr): Likewise.
6144         (ix86_split_lea_for_addr): Likewise.
6145         (ix86_lea_for_add_ok): Likewise.
6146         (ix86_output_call_insn): Likewise.
6147
6148         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6149         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6150         (ix86_output_function_epilogue): Likewise for locals "insn",
6151         "deleted_debug_label".
6152         (legitimize_tls_address): Likewise for local "insn".
6153         (get_some_local_dynamic_name): Likewise.
6154         (increase_distance): Likewise for params "prev", "next".
6155         (distance_non_agu_define_in_bb): Likewise for params "insn",
6156         "start" and locals "prev", "next".
6157         (distance_non_agu_define): Likewise for param "insn".
6158         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6159         locals "next", "prev".
6160         (distance_agu_use): Likewise for param "insn".
6161         (ix86_lea_outperforms): Likewise.
6162         (ix86_ok_to_clobber_flags): Likewise.
6163         (ix86_avoid_lea_for_add): Likewise.
6164         (ix86_use_lea_for_mov): Likewise.
6165         (ix86_avoid_lea_for_addr): Likewise.
6166         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6167         (ix86_split_lea_for_addr): Likewise for param "insn".
6168         (ix86_lea_for_add_ok): Likewise for param "insn".
6169         (ix86_expand_carry_flag_compare): Likewise for local
6170         "compare_seq".
6171         (ix86_expand_int_movcc): Likewise.
6172         (ix86_output_call_insn): Likewise for param "insn".
6173         (ix86_output_call_insn): Likewise for local "i".
6174         (x86_output_mi_thunk): Introduce local "insn", using it in place
6175         of "tmp" when dealing with insns.
6176         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6177         "start".
6178         (ix86_pad_returns): Likewise for locals "ret", "prev".
6179         (ix86_count_insn_bb): Likewise for local "insn".
6180         (ix86_pad_short_function): Likewise for locals "ret", "insn".
6181         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6182         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6183         (expand_vec_perm_interleave2): Likewise for local "seq".
6184         (expand_vec_perm_vperm2f128_vblend): Likewise.
6185         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
6186         call to for_each_rtx with for_each_rtx_in_insn.
6187
6188 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6189
6190         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6191         "label" from rtx to rtx_code_label *.
6192         (ix86_expand_prologue): Likewise.
6193         (ix86_expand_split_stack_prologue): Likewise for locals "label",
6194         "varargs_label".
6195         (ix86_split_idivmod): Likewise for locals "end_label" and
6196         "qimode_label".
6197         (ix86_expand_branch): Likewise for local "label2".
6198         (ix86_expand_aligntest): Likewise for return type and local "label".
6199         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6200         "top_label".
6201         (expand_movmem_epilogue): Likewise for the various locals named
6202         "label".
6203         (expand_setmem_epilogue): Likewise.
6204         (expand_small_movmem_or_setmem): Likewise for local "label".
6205         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6206         Strengthen param "done_label" from rtx * to rtx_code_label **.
6207         Strengthen locals "loop_label" and "label" from rtx to
6208         rtx_code_label *.
6209         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6210         Likewise for locals "loop_label", "label".
6211         (ix86_expand_set_or_movmem): Likewise for locals "label",
6212         "jump_around_label", "hot_label".
6213         (ix86_expand_strlensi_unroll_1): Likewise for locals
6214         "align_2_label", align_3_label", "align_4_label", "end_0_label",
6215         "end_2_label".
6216         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6217         (void ix86_emit_i387_log1p): Likewise for locals "label1",
6218         "label2", "jump_label".
6219         (ix86_expand_sse_compare_and_jump): Likewise for return type and
6220         local "label".
6221         (ix86_expand_lfloorceil): Likewise for local "label".
6222         (ix86_expand_rint): Likewise.
6223         (ix86_expand_floorceildf_32): Likewise.
6224         (ix86_expand_floorceil): Likewise.
6225         (ix86_expand_rounddf_32): Likewise.
6226         (ix86_expand_trunc): Likewise.
6227         (ix86_expand_truncdf_32): Likewise.
6228         (ix86_expand_round): Likewise.
6229
6230 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6231
6232         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6233         first param from rtx to rtx_insn *.
6234         (h8300_insn_length_from_table): Likewise.
6235         * config/h8300/h8300.c (F): Likewise for return type and param
6236         "x".
6237         (Fpa): Add a checked cast to rtx_insn *.
6238         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6239         rtx_insn *.
6240         (final_prescan_insn): Likewise for param "insn".
6241         (h8300_binary_length): Likewise.
6242         (h8300_insn_length_from_table): Likewise.
6243
6244 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6245
6246         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6247         Strengthen first param "insn" from rtx to rtx_insn *.
6248
6249         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6250         Likewise.
6251         (frame_insn): Likewise for return type.  Introduce local "insn"
6252         for use in place of local "x" for use as an rtx_insn *.
6253         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6254         (epiphany_expand_prologue): Likewise for local "insn".
6255         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6256         * config/epiphany/resolve-sw-modes.c
6257         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6258         "seq".
6259
6260 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6261
6262         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6263         param from rtx to rtx_insn *.
6264         (c6x_final_prescan_insn): Likewise for first param.
6265
6266         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6267         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6268         (c6x_expand_compare): Strengthen local "insns" from rtx to
6269         rtx_insn *.
6270         (c6x_get_unit_specifier): Likewise for param "insn".
6271         (c6x_print_unit_specifier_field): Likewise.
6272         (c6x_final_prescan_insn): Likewise.
6273         (emit_add_sp_const): Likewise for local "insn".
6274         (c6x_expand_prologue): Likewise.
6275
6276 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6277
6278         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6279         param 1 from rtx to rtx_insn *.
6280         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6281         the various locals named "insn".
6282         (expand_epilogue_reg_restore): Likewise.
6283         (frame_related_constant_load): Likewise.
6284         (add_to_reg): Likewise.
6285         (emit_link_insn): Likewise.
6286         (do_link): Likewise.
6287         (expand_interrupt_handler_prologue): Likewise.
6288         (branch_dest): Likewise for param "branch".
6289         (asm_conditional_branch): Likewise for param "insn".
6290         (gen_one_bundle): Likewise for elements of param "slot" and local
6291         "t".
6292         (bfin_gen_bundles): Likewise for locals "insn", "next" and
6293         elements of local "slot".
6294         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6295         "queue", "next_queue", "prev".
6296         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6297         (add_sched_insns_for_speculation): Likewise for local "insn".
6298
6299 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6300
6301         * config/avr/avr-protos.h (output_movqi): Strengthen first param
6302         from rtx to rtx_insn *.
6303         (output_movhi): Likewise.
6304         (output_movsisf): Likewise.
6305         (avr_out_tstsi): Likewise.
6306         (avr_out_tsthi): Likewise.
6307         (avr_out_tstpsi): Likewise.
6308         (avr_out_compare): Likewise.
6309         (avr_out_compare64): Likewise.
6310         (avr_out_movpsi): Likewise.
6311         (ashlqi3_out): Likewise.
6312         (ashlhi3_out): Likewise.
6313         (ashlsi3_out): Likewise.
6314         (ashrqi3_out): Likewise.
6315         (ashrhi3_out): Likewise.
6316         (ashrsi3_out): Likewise.
6317         (lshrqi3_out): Likewise.
6318         (lshrhi3_out): Likewise.
6319         (lshrsi3_out): Likewise.
6320         (avr_out_ashlpsi3): Likewise.
6321         (avr_out_ashrpsi3): Likewise.
6322         (avr_out_lshrpsi3): Likewise.
6323         (avr_out_fract): Likewise.
6324         (avr_out_sbxx_branch): Likewise.
6325         (avr_out_round): Likewise.
6326         (avr_out_xload): Likewise.
6327         (avr_out_movmem): Likewise.
6328         (adjust_insn_length): Likewise.
6329         (avr_out_lpm): Likewise.
6330         (reg_unused_after): Likewise.
6331         (_reg_unused_after): Likewise.
6332         (avr_jump_mode): Likewise for second param.
6333         (jump_over_one_insn): Likewise for first param.
6334         (avr_final_prescan_insn): Likewise.
6335         (out_shift_with_cnt): Likewise for second param.
6336
6337         * config/avr/avr.c (get_sequence_length): Likewise for param
6338         "insns" and local "insn".
6339         (emit_push_byte): Likewise for local "insn".
6340         (emit_push_sfr): Likewise.
6341         (avr_prologue_setup_frame): Likewise for locals "insn",
6342         "fp_plus_insns", "sp_plus_insns".
6343         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6344         "sp_plus_insns".
6345         (avr_jump_mode): Likewise for param "insn".
6346         (avr_final_prescan_insn): Likewise.
6347         (avr_find_unused_d_reg): Likewise.
6348         (avr_out_lpm_no_lpmx): Likewise.
6349         (avr_out_lpm): Likewise.
6350         (avr_out_xload): Likewise.
6351         (output_movqi): Likewise.
6352         (output_movhi): Likewise.
6353         (out_movqi_r_mr): Likewise.
6354         (out_movhi_r_mr): Likewise.
6355         (out_movsi_r_mr): Likewise.
6356         (out_movsi_mr_r): Likewise.
6357         (output_movsisf): Likewise.
6358         (avr_out_load_psi): Likewise.
6359         (avr_out_store_psi): Likewise.
6360         (avr_out_movpsi): Likewise.
6361         (out_movqi_mr_r): Likewise.
6362         (avr_out_movhi_mr_r_xmega): Likewise.
6363         (out_movhi_mr_r): Likewise.
6364         (compare_condition): Likewise for param "insn" and local "next".
6365         (compare_sign_p): Likewise for param "insn".
6366         (compare_diff_p): Likewise.
6367         (compare_eq_p): Likewise.
6368         (avr_out_compare): Likewise.
6369         (avr_out_compare64): Likewise.
6370         (avr_out_tsthi): Likewise.
6371         (avr_out_tstpsi): Likewise.
6372         (avr_out_tstsi): Likewise.
6373         (out_shift_with_cnt): Likewise.
6374         (ashlqi3_out): Likewise.
6375         (ashlhi3_out): Likewise.
6376         (avr_out_ashlpsi3): Likewise.
6377         (ashlsi3_out): Likewise.
6378         (ashrqi3_out): Likewise.
6379         (ashrhi3_out): Likewise.
6380         (avr_out_ashrpsi3): Likewise.
6381         (ashrsi3_out): Likewise.
6382         (lshrqi3_out): Likewise.
6383         (lshrhi3_out): Likewise.
6384         (avr_out_lshrpsi3): Likewise.
6385         (lshrsi3_out): Likewise.
6386         (avr_out_fract): Likewise.
6387         (avr_out_round): Likewise.
6388         (avr_adjust_insn_length): Likewise.
6389         (reg_unused_after): Likewise.
6390         (_reg_unused_after): Likewise.
6391         (avr_compare_pattern): Likewise.
6392         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6393         and locals "branch1", "branch2", "insn2", "jump".
6394         (avr_reorg): Likewise for local "insn".
6395         (avr_2word_insn_p): Likewise for param "insn".
6396         (jump_over_one_insn_p): Likewise.
6397         (avr_out_sbxx_branch): Likewise.
6398         (avr_out_movmem): Likewise.
6399
6400 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6401
6402         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6403         param from rtx to rtx_insn *.
6404         (thumb1_final_prescan_insn): Likewise.
6405         (thumb2_final_prescan_insn): Likewise.
6406
6407         * config/arm/arm.c (emit_set_insn): Strengthen return type from
6408         rtx to rtx_insn *.
6409         (struct minipool_node): Likewise for field "insn".
6410         (dump_minipool): Likewise for param "scan".
6411         (create_fix_barrier): Likewise for local "from".  Strengthen local
6412         "label" from rtx to rtx_code_label *.
6413         (push_minipool_barrier): Strengthen param "insn" from rtx to
6414         rtx_insn *.
6415         (push_minipool_fix): Likewise.
6416         (note_invalid_constants): Likewise.
6417         (thumb2_reorg): Likewise for local "insn".
6418         (arm_reorg): Likewise.
6419         (thumb2_final_prescan_insn): Likewise for param
6420         "insn" and local "first_insn".
6421         (arm_final_prescan_insn): Likewise for param "insn" and locals
6422         "start_insn", "this_insn".
6423         (arm_debugger_arg_offset): Likewise for param "insn".
6424         (thumb1_emit_multi_reg_push): Likewise for return type and local
6425         "insn".
6426         (thumb1_final_prescan_insn): Likewise for param "insn".
6427         (thumb_far_jump_used_p): Likewise for local "insn".
6428         (thumb1_expand_prologue): Likewise.
6429         (arm_expand_epilogue_apcs_frame): Likewise.
6430         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6431         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6432         from rtx to rtx_code_label *.
6433         (arm_split_atomic_op): Likewise for local "label".
6434         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6435
6436 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6437
6438         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6439         first param from rtx to rtx_insn *.
6440         (arc_verify_short): Likewise.
6441         (arc_short_long): Likewise.
6442         (arc_need_delay): Likewise.
6443
6444         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6445         "target_insn".
6446         (arc_ccfsm_advance): Likewise for param "insn" and locals
6447         "start_insn", "this_insn".
6448         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6449         (arc_ccfsm_post_advance): Likewise for param "insn".
6450         (arc_next_active_insn): Likewise for return type and param "insn".
6451         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
6452         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6453         (output_short_suffix): Likewise for local "insn".
6454         (arc_final_prescan_insn): Likewise for param "insn".  Remove
6455         now-redundant checked cast.
6456         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6457         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6458         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
6459         for use where lc_set became an insn.
6460         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6461         rtx to rtx_insn *.
6462         (arc_get_insn_variants): Likewise for local "prev".
6463         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6464         "next".
6465         (arc_predicate_delay_insns): Likewise for local "insn".
6466         (arc_pad_return): Likewise for local "prev".  For now, add a
6467         checked cast when extracting the insn from "final_sequence".
6468         (arc_short_long): Likewise for param "insn".
6469         (arc_need_delay): Likewise for param "insn" and local "next".
6470         (arc_label_align): Likewise for locals "prev", "next".
6471
6472 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6473
6474         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6475         "insn" from rtx to rtx_insn *.
6476         (alpha_gp_save_rtx): Likewise for local "seq".
6477         (alpha_instantiate_decls): Likewise for local "top".
6478         (get_some_local_dynamic_name): Likewise for local "insn".
6479         (alpha_does_function_need_gp): Likewise.
6480         (set_frame_related_p): Likewise for return type and for locals
6481         "seq" and "insn".
6482         (emit_frame_store_1): Likewise for local "insn".
6483         (alpha_expand_prologue): Likewise for locals "insn", "seq".
6484         (alpha_end_function): Likewise for local "insn".
6485         (alpha_output_mi_thunk_osf): Likewise.
6486         (alphaev4_insn_pipe): Likewise for param "insn".
6487         (alphaev5_insn_pipe): Likewise.
6488         (alphaev4_next_group): Likewise for return type and param 1
6489         "insn".
6490         (alphaev5_next_group): Likewise.
6491         (alpha_align_insns_1): Likewise for return type and param 1 of
6492         callback param "next_group", and for locals "i", "next", "prev",
6493         "where", "where2", "insn".
6494
6495 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
6496
6497         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6498         rather than modifying the stmt.
6499
6500 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6501
6502         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6503         cgraph_state conversion.
6504
6505 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6506
6507         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6508         Strengthen local "insns" from rtx to rtx_insn *.
6509         (aarch64_set_frame_expr): Likewise for local "insn".
6510         (aarch64_save_or_restore_fprs): Likewise.
6511         (aarch64_save_or_restore_callee_save_registers): Likewise.
6512         (aarch64_expand_prologue): Likewise.
6513         (aarch64_expand_epilogue): Likewise.
6514         (aarch64_output_mi_thunk): Likewise.
6515         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6516         "label2" from rtx to rtx_code_label *.
6517         (aarch64_split_atomic_op): Likewise for local "label".
6518
6519 2014-08-25  Martin Liska  <mliska@suse.cz>
6520
6521         * cgraph.h (symtab_node):
6522         (bool needed_p (void)): created from decide_is_symbol_needed
6523         (bool referred_to_p (void)): created from referred_to_p
6524         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6525         * cgraph.h (cgraph_node):
6526         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6527         (void expand (void)): created from expand_function
6528         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6529         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6530         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6531         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6532         * cgraph.h (varpool_node):
6533         (static void add (tree decl): created from varpool_add_new_variable
6534         * cgraph.h (cgraph_edge):
6535         void remove (void);
6536         (void remove_caller (void)): created from cgraph_edge_remove_caller
6537         (void remove_callee (void)): created from cgraph_edge_remove_callee
6538         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6539           created from cgraph_set_call_stmt
6540         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6541         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6542         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6543           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6544         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6545           created from cgraph_speculative_call_info
6546         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6547           int freq_scale, bool update_original)): created from cgraph_clone_edge
6548         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6549         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6550         (bool recursive_p (void)): created from cgraph_edge_recursive_p
6551         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6552         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6553         (static void rebuild_references (void)): created from cgraph_rebuild_references
6554         * cgraph.h (symbol_table):
6555         (create_reference): renamed from add_reference
6556         (maybe_create_reference): renamed from maybe_add_reference
6557         (void register_symbol (symtab_node *node)): new function
6558         (void clear_asm_symbols (void)): new function
6559         (void unregister (symtab_node *node)): new function
6560         (void release_symbol (cgraph_node *node, int uid)): new function
6561         (cgraph_node * allocate_cgraph_symbol (void)): new function
6562         (void initialize (void)): created from cgraph_init
6563         (symtab_node *first_symbol (void)):new function
6564         (asm_node *first_asm_symbol (void)):new function
6565         (symtab_node *first_defined_symbol (void)):new function
6566         (varpool_node *first_variable (void)):new function
6567         (varpool_node *next_variable (varpool_node *node)):new function
6568         (varpool_node *first_static_initializer (void)):new function
6569         (varpool_node *next_static_initializer (varpool_node *node)):new function
6570         (varpool_node *first_defined_variable (void)):new function
6571         (varpool_node *next_defined_variable (varpool_node *node)):new function
6572         (cgraph_node *first_defined_function (void)):new function
6573         (cgraph_node *next_defined_function (cgraph_node *node)):new function
6574         (cgraph_node *first_function (void)):new function
6575         (cgraph_node *next_function (cgraph_node *node)):new function
6576         (cgraph_node *first_function_with_gimple_body (void)):new function
6577         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6578         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6579           created from symtab_remove_unreachable_nodes
6580         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6581         (void process_new_functions (void)): created from cgraph_process_new_functions
6582         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6583         (bool output_variables (void)): created from varpool_node::output_variables
6584         (void output_asm_statements (void)): created from output_asm_statements
6585         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6586         (void compile (void)): created from compile
6587         (void output_weakrefs (void)): created from output_weakrefs
6588         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6589         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6590           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6591         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6592         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6593           created from cgraph_next_function_with_gimple_body
6594         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6595           created from cgraph_remove_edge_removal_hook
6596         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6597           created from cgraph_add_node_removal_hook
6598         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6599           created from cgraph_remove_node_removal_hook
6600         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6601           created from varpool_add_node_removal_hook
6602         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6603           created from varpool_remove_node_removal_hook
6604         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6605           created from cgraph_add_function_insertion_hook
6606         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6607           created from cgraph_remove_function_insertion_hook
6608         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6609           created from varpool_add_variable_insertion_hook
6610         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6611           created from varpool_remove_variable_insertion_hook
6612         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6613           created from cgraph_add_edge_duplication_hook
6614         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6615           created from cgraph_remove_edge_duplication_hook
6616         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6617           created from cgraph_add_node_duplication_hook
6618         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6619           created from cgraph_remove_node_duplication_hook
6620         (void call_edge_removal_hooks (cgraph_edge *e)):
6621           created from cgraph_call_edge_removal_hooks
6622         (void call_cgraph_insertion_hooks (cgraph_node *node)):
6623           created from call_function_insertion_hooks 
6624         (void call_cgraph_removal_hooks (cgraph_node *node)):
6625           created from cgraph_call_node_removal_hooks 
6626         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6627           created from cgraph_node::call_duplication_hooks 
6628         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6629           created from cgraph_call_edge_duplication_hooks
6630         (void call_varpool_removal_hooks (varpool_node *node)):
6631           created from varpool_call_node_removal_hooks
6632         (void call_varpool_insertion_hooks (varpool_node *node)):
6633           created from varpool_call_variable_insertion_hooks
6634         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6635           created from insert_to_assembler_name_hash
6636         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6637           created from unlink_from_assembler_name_hash
6638         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6639           created from symtab_prevail_in_asm_name_hash
6640         (void symtab_initialize_asm_name_hash (void)):
6641           created from symtab_initialize_asm_name_hash
6642         (void change_decl_assembler_name (tree decl, tree name)):
6643           created from change_decl_assembler_name
6644         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6645         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6646           created from decl_assembler_name_hash
6647         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6648           created from decl_assembler_name_equal
6649         (static hashval_t hash_node_by_assembler_name (const void *p)):
6650           created from hash_node_by_assembler_name
6651         (static int eq_assembler_name (const void *p1, const void *p2)):
6652           created from eq_assembler_name
6653
6654 2014-08-25  Marek Polacek  <polacek@redhat.com>
6655
6656         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6657
6658 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
6659
6660         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6661         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6662         SWI1248_AVX512BW mode iterator.
6663
6664 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
6665
6666         PR target/62111
6667         * config/sh/predicates.md (general_extend_operand): Disable
6668         TRUNCATE before reload completes.
6669
6670 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
6671
6672         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6673
6674 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
6675
6676         PR target/61996
6677         * config/sh/sh.opt (musermode): Allow negative form.
6678         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6679         targets that don't support it.
6680         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6681         Document -mno-usermode option.
6682
6683 2014-08-24  Kito Cheng  <kito@0xlab.org>
6684
6685         * system.h (CALLER_SAVE_PROFITABLE): Poison.
6686         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6687         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6688         * doc/tm.texi: Regenerate.
6689
6690 2014-08-24  Kito Cheng  <kito@0xlab.org>
6691
6692         * ira.c: Fix typo in comment.
6693
6694 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
6695
6696         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6697         Deprecate c++1y. Change language to reflect greater confidence in C++14.
6698
6699 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
6700
6701         PR target/62038
6702         * config/pa/pa.c (pa_output_function_epilogue): Don't set
6703         last_address when the current function is a thunk.
6704         (pa_asm_output_mi_thunk): When we don't have named sections or they
6705         are not being used, check that thunk can reach the stub table with a
6706         short branch.
6707
6708 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6709
6710         * web.c (union_match_dups): Strengthen param "insn" from rtx to
6711         rtx_insn *.
6712         (pass_web::execute): Likewise for local "insn".
6713
6714 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6715
6716         * var-tracking.c (struct micro_operation_def): Strengthen field
6717         "insn" from rtx to rtx_insn *.
6718         (struct emit_note_data_def): Likewise.
6719         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6720         (vt_stack_adjustments): Likewise for local "insn".
6721         (adjust_insn): Likewise for param "insn".
6722         (val_store): Likewise.
6723         (val_resolve): Likewise.
6724         (struct count_use_info): Likewise for field "insn".
6725         (log_op_type): Likewise for param "insn".
6726         (reverse_op): Likewise.
6727         (prepare_call_arguments): Likewise.
6728         (add_with_sets):  The initial param takes an insn, but we can't
6729         yet strengthen it from rtx to rtx_insn * since it's used as a
6730         cselib_record_sets_hook callback.  For now rename initial param
6731         from "insn" to "uncast_insn", and introduce a local "insn" of
6732         the stronger rtx_insn * type, with a checked cast.
6733         (compute_bb_dataflow): Strengthen local "insn" from rtx to
6734         rtx_insn *.
6735         (emit_note_insn_var_location): Likewise.
6736         (emit_notes_for_changes): Likewise.
6737         (emit_notes_for_differences): Likewise.
6738         (next_non_note_insn_var_location): Likewise for return type and
6739         for param "insn".
6740         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6741         (vt_initialize): Likewise for local "insn".
6742         (delete_debug_insns): Likewise for locals "insn" and "next".
6743
6744 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6745
6746         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6747         rtx_insn *.
6748         (mark_constant_pool): Likewise for local "insn".
6749
6750 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6751
6752         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6753         rtx to rtx_insn *.
6754         (dead_debug_promote_uses): Likewise.
6755         (dead_debug_insert_temp): Likewise.
6756
6757 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6758
6759         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6760         from const_rtx to const rtx_insn *.
6761         (store_killed_after): Likewise.  Strengthen locals "last", "act"
6762         from rtx to rtx_insn *.
6763         (store_killed_before): Strengthen param "insn" from const_rtx to
6764         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
6765         (find_moveable_store): Strengthen param "insn" from rtx to
6766         rtx_insn *.
6767         (compute_store_table): Likewise for local "insn".
6768         (insert_insn_start_basic_block): Likewise for param "insn" and
6769         locals "prev", "before", "insn".
6770         (insert_store): For now, add a checked cast to rtx_insn * on the
6771         result of gen_move_insn.
6772         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6773         to rtx_insn *.
6774         (replace_store_insn): Likewise.  For now, add a checked cast to
6775         rtx_insn * on the result of gen_move_insn.
6776
6777 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6778
6779         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6780         rtx_insn *.
6781         (expand_sjlj_dispatch_table): Likewise.
6782
6783 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6784
6785         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6786         "insn" from rtx to rtx_insn *.
6787
6788 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6789
6790         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6791         "insn" from rtx to rtx_insn *.
6792         (dup_block_and_redirect): Likewise for param 3 "before".
6793
6794         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6795         from rtx to rtx_insn *.
6796         (move_insn_for_shrink_wrap): Likewise.
6797         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6798         (dup_block_and_redirect): Likewise for param "before" and local
6799         "insn".
6800         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6801         "end".
6802         (convert_to_simple_return): Likewise for local "start".
6803
6804         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6805         Strengthen local "insn" from rtx to rtx_insn *, for use when
6806         invoking requires_stack_frame_p.
6807
6808 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6809
6810         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6811         rtx_insn *.
6812         (speculate_expr): Likewise for locals "orig_insn_rtx",
6813         "spec_insn_rtx".
6814         (eq_transformed_insns): Likewise for locals "i1", "i2".
6815         (check_for_new_jump): Likewise for return type and local "end".
6816         (find_new_jump): Likewise for return type and local "jump".
6817         (sel_split_edge): Likewise for local "jump".
6818         (sel_create_recovery_block): Likewise.
6819         (sel_redirect_edge_and_branch_force): Likewise.
6820         (sel_redirect_edge_and_branch): Likewise.
6821
6822 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6823
6824         * sel-sched.c (substitute_reg_in_expr): Strengthen local
6825         "new_insn" from rtx to rtx_insn *.
6826         (create_insn_rtx_with_rhs): Likewise for return type and for local
6827         "insn_rtx".
6828         (create_insn_rtx_with_lhs): Likewise.
6829         (create_speculation_check): Likewise for local "insn_rtx".
6830         (implicit_clobber_conflict_p): Likewise for local "insn".
6831         (get_expr_cost): Likewise.
6832         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6833         (move_cond_jump): Likewise for locals "next", "prev", "link",
6834         "head", "from", "to".
6835
6836 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6837
6838         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6839         "next" from rtx to rtx_insn *.
6840         (find_conditional_protection): Likewise for local "next".
6841         (is_conditionally_protected): Likewise for local "insn1".
6842         (is_pfree): Likewise for locals "insn1", "insn2".
6843
6844 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6845
6846         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6847         from rtx to rtx_insn *.
6848
6849         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6850         locals "insn1", "insn2" from rtx to rtx_insn *.
6851         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6852         locals "insn", "prev", "last_jump", "next_tail".
6853         (schedule_ebb): Likewise for params "head", "tail".
6854         (schedule_ebbs): Likewise for locals "tail", "head".
6855
6856         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6857         to rtx_insn on "last_insn" in one of the invocations of
6858         schedule_ebb.
6859
6860 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6861
6862         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6863         "elem", "insn" from rtx to rtx_insn *.
6864         (change_spec_dep_to_hard): Likewise.
6865         (get_back_and_forw_lists): Likewise for local "con".
6866         (sd_add_dep): Likewise for locals "elem", "insn".
6867         (sd_resolve_dep): Likewise for locals "pro", "con".
6868         (sd_unresolve_dep): Likewise.
6869         (sd_delete_dep): Likewise.
6870         (chain_to_prev_insn): Likewise for local "pro".
6871         (find_inc): Likewise for locals "pro", "con".
6872
6873 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6874
6875         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6876         to rtx_insn *.
6877         (reg_set_between_p): Strengthen local "insn" from const_rtx to
6878         const rtx_insn *.
6879         (modified_between_p): Strengthen local "insn" from rtx to
6880         rtx_insn *.
6881         (remove_reg_equal_equiv_notes_for_regno): Likewise.
6882         (keep_with_call_p): Strengthen local "i2" from const_rtx to
6883         const rtx_insn *.
6884
6885 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6886
6887         * resource.c (next_insn_no_annul): Strengthen local "next" from
6888         rtx to rtx_insn *.
6889         (mark_referenced_resources): Likewise for local "insn".
6890
6891 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6892
6893         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6894         to rtx_insn *.
6895         (find_reloads): Likewise for param 1.
6896         (subst_reloads): Likewise for sole param.
6897         (find_equiv_reg): Likwise for param 2.
6898         (regno_clobbered_p): Likwise for param 2.
6899         (reload): Likewise for param 1.
6900
6901         * caller-save.c (save_call_clobbered_regs): Strengthen local
6902         "insn" from rtx to rtx_insn *.
6903         (insert_one_insn): Likewise for local "insn".
6904
6905         * reload.c (this_insn): Likewise for this global.
6906         (find_reloads): Likewise for param "insn".
6907         (find_reloads_toplev): Likewise.
6908         (find_reloads_address): Likewise.
6909         (subst_reg_equivs): Likewise.
6910         (update_auto_inc_notes): Likewise.
6911         (find_reloads_address_1): Likewise.
6912         (find_reloads_subreg_address): Likewise.
6913         (subst_reloads): Likewise.
6914         (find_equiv_reg): Likewise, also for local "p".
6915         (regno_clobbered_p): Likewise for param "insn".
6916
6917         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6918         array.
6919         (spill_reg_store): Likewise for the elements of this array.
6920         (remove_init_insns): Likewise for local "equiv_insn".
6921         (will_delete_init_insn_p): Likewise for param "insn".
6922         (reload): Likewise for param ""first" and local "insn".
6923         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6924         rtx_insn *.
6925         (calculate_elim_costs_all_insns): Likewise.
6926         (delete_caller_save_insns): Likewise.
6927         (spill_failure): Likewise for param "insn".
6928         (delete_dead_insn): Likewise.
6929         (set_label_offsets): Likewise.
6930         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6931         "prev_insn".
6932         (elimination_costs_in_insn): Likewise for param "insn".
6933         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6934         when referring to an insn.
6935         (set_initial_label_offsets): Likewise.
6936         (set_offsets_for_label): Strengthen param "insn" from rtx to
6937         rtx_insn *.
6938         (init_eliminable_invariants): Likewise for param "first" and local
6939         "insn".
6940         (fixup_eh_region_note): Likewise for param "insn".
6941         (reload_as_needed): Likewise for locals "prev", "insn",
6942         "old_next", "old_prev", "next".
6943         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6944         "last".
6945         (reload_inheritance_insn): Strengthen elements of this array from
6946         rtx to rtx_insn *.
6947         (failed_reload): Likewise for param "insn".
6948         (choose_reload_regs): Likewise for local "insn".  Replace use of
6949         NULL_RTX with NULL when referring to an insn.
6950         (input_reload_insns): Strengthen elements of this array from rtx
6951         to rtx_insn *.
6952         (other_input_address_reload_insns): Likewise for this global.
6953         (other_input_reload_insns): Likewise for this global.
6954         (input_address_reload_insns): Likwise for the elements of this
6955         array.
6956         (inpaddr_address_reload_insns): Likwise for the elements of this
6957         array.
6958         (output_reload_insns): Likewise for the elements of this array.
6959         (output_address_reload_insns): Likewise for the elements of this
6960         array.
6961         (outaddr_address_reload_insns): Likewise for the elements of this
6962         array.
6963         (operand_reload_insns): Likewise for this global.
6964         (other_operand_reload_insns): Likewise for this global.
6965         (other_output_reload_insns): Likewise for the elements of this
6966         array.
6967         (new_spill_reg_store): Likewise for the elements of this
6968         array.
6969         (emit_input_reload_insns): Likewise for locals "insn", "temp".
6970         Strengthen local "where" from rtx * to rtx_insn **.
6971         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6972         from rtx to rtx_insn *.
6973         (do_input_reload): Likewise for local "insn".
6974         (do_output_reload): Likewise for local "insn".
6975         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6976         (emit_insn_if_valid_for_reload): Likewise for return type and local
6977         "last".  Add checked cast to rtx_insn when returning "insn" since
6978         this has been through emit_insn.
6979         (gen_reload): Strengthen return type and locals "last", "insn", "set"
6980         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
6981         returning "insn" since it's been through
6982         emit_insn_if_valid_for_reload at this point.
6983         (delete_output_reload): Strengthen param "insn" and locals
6984         "output_reload_insn", "i2" from rtx to rtx_insn *.
6985         (delete_address_reloads): Likewise for params "dead_insn",
6986         "current_insn" and locals "prev", "next".
6987         (delete_address_reloads_1): Likewise for params "dead_insn",
6988         "current_insn" and locals "prev", "i2".
6989         (inc_for_reload): Likewise for locals "last", "add_insn".
6990         (add_auto_inc_notes): Strengthen param "insn" from rtx to
6991         rtx_insn *.
6992
6993         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6994         param of this duplicate of the prototype from reload.h
6995
6996 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6997
6998         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6999         rtx to rtx_insn *.
7000         (regstat_bb_compute_calls_crossed): Likewise.
7001
7002 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7003
7004         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7005         to rtx_insn *.
7006         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7007         with an insn.
7008         (regrename_analyze): Strengthen local "insn" from rtx to
7009         rtx_insn *.
7010         (scan_rtx_reg): Likewise for param "insn".
7011         (scan_rtx_address): Likewise.
7012         (scan_rtx): Likewise.
7013         (restore_operands): Likewise.
7014         (record_out_operands): Likewise.
7015         (build_def_use): Likewise for local "insn".  Replace use of
7016         NULL_RTX with NULL when dealing with an insn.
7017
7018 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7019
7020         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7021         * reginfo.c (reg_scan): Likewise, also for local "insn".
7022         (reg_scan_mark_refs): Likewise for param "insn".
7023         (init_subregs_of_mode): Likewise for local "insn".
7024
7025 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7026
7027         * regcprop.c (struct queued_debug_insn_change): Strengthen field
7028         "insn" from rtx to rtx_insn *.
7029         (replace_oldest_value_reg): Likewise for param "insn".
7030         (replace_oldest_value_addr): Likewise.
7031         (replace_oldest_value_mem): Likewise.
7032         (apply_debug_insn_changes): Likewise for local "last_insn".
7033         (copyprop_hardreg_forward_1): Likewise for local "insn".
7034
7035 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7036
7037         * reg-stack.c (next_flags_user): Strengthen return type and param
7038         "insn" from rtx to rtx_insn *.
7039         (straighten_stack): Likewise for param "insn".
7040         (check_asm_stack_operands): Likewise.
7041         (remove_regno_note): Likewise.
7042         (emit_pop_insn): Likewise for return type, param "insn", local
7043         "pop_insn".
7044         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
7045         "limit" from rtx to rtx_insn *.
7046         (swap_to_top): Likewise for param "insn".
7047         (move_for_stack_reg): Likewise.
7048         (move_nan_for_stack_reg): Likewise.
7049         (swap_rtx_condition): Likewise.
7050         (compare_for_stack_reg): Likewise.
7051         (subst_all_stack_regs_in_debug_insn): Likewise.
7052         (subst_stack_regs_pat): Likewise, and local "insn2".
7053         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7054         rtx_insn *.
7055         (subst_stack_regs): Likewise.
7056         (change_stack): Likewise.
7057         (convert_regs_1): Likewise for locals "insn", "next".
7058
7059 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7060
7061         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7062         rtx_insn *.
7063         (combine_set_extension): Likewise for param "curr_insn".
7064         (transform_ifelse): Likewise for param "def_insn".
7065         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
7066         from vec<rtx> * to vec<rtx_insn *> *.
7067         (is_cond_copy_insn): Likewise for param "insn".
7068         (struct ext_state): Strengthen the four vec fields from vec<rtx>
7069         to vec<rtx_insn *>.
7070         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7071         local "def_insn" from rtx to rtx_insn *.
7072         (get_sub_rtx): Likewise for param "def_insn".
7073         (merge_def_and_ext): Likewise.
7074         (combine_reaching_defs): Likewise.
7075         (add_removable_extension): Likewise for param "insn".
7076         (find_removable_extensions): Likewise for local "insn".
7077         (find_and_remove_re): Likewise for locals "curr_insn" and
7078         "def_insn".  Strengthen locals "reinsn_del_list" and
7079         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7080
7081 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7082
7083         * recog.c (split_insn): Strengthen param "insn" and locals
7084         "first", "last" from rtx to rtx_insn *.
7085         (split_all_insns): Likewise for locals "insn", "next".
7086         (split_all_insns_noflow): Likewise.
7087
7088 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7089
7090         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7091         const rtx_insn *.
7092         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7093         (debug_rtx_find): Likewise for param 1 "x".
7094
7095         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7096         const_rtx to const rtx_insn *.  Likewise for local "insn".
7097         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7098         (debug_rtx_find): Likewise for param 1 "x".
7099         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7100         from const_rtx to const rtx_insn * within the appropriate cases of
7101         the switch statement.
7102
7103         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7104         Strengthen local "insns" from rtx to rtx_insn * since this is
7105         passed to a call to debug_rtx_list.
7106
7107 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7108
7109         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7110         to rtx_insn *.
7111
7112         * function.c (stack_protect_epilogue): Add checked cast to
7113         rtx_insn for now when invoking predict_insn_def.
7114
7115         * predict.c (predict_insn): Strengthen param "insn" from rtx to
7116         rtx_insn *.
7117         (predict_insn_def): Likewise.
7118         (rtl_predict_edge): Likewise for local "last_insn".
7119         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7120         const rtx_insn *.
7121         (combine_predictions_for_insn): Strengthen param "insn" from rtx
7122         to rtx_insn *.
7123         (bb_estimate_probability_locally): Likewise for local "last_insn".
7124         (expensive_function_p): Likewise for local "insn".
7125
7126         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7127         local "jmp", since this is used when invoking predict_insn_def.
7128
7129 2014-08-22  Marek Polacek  <polacek@redhat.com>
7130
7131         PR c++/62199
7132         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7133
7134 2014-08-22  Marek Polacek  <polacek@redhat.com>
7135
7136         PR c/61271
7137         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7138         a comparison in parens.
7139         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7140         in parens.
7141
7142 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7143
7144         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7145         rtx_insn *.
7146
7147         * cprop.c (fis_get_condition): Likewise.
7148
7149         * postreload.c (reload_cse_regs): Likewise for param "first".
7150         (reload_cse_simplify): Likewise for param "insn".
7151         (reload_cse_regs_1): Likewise for local "insn".
7152         (reload_cse_simplify_set): Likewise for param "insn".
7153         (reload_cse_simplify_operands): Likewise.
7154         (struct reg_use): Likewise for field "insn".
7155         (reload_combine_purge_insn_uses): Likewise for param "insn".
7156         (fixup_debug_insns): Likewise for params "from", "to" and local
7157         "insn".
7158         (try_replace_in_use): Likewise for local "use_insn".
7159         (reload_combine_recognize_const_pattern): Likewise for param
7160         "insn" and locals "add_moved_after_insn", "use_insn".
7161         (reload_combine_recognize_pattern): Likewise for param "insn" and
7162         local "prev".
7163         (reload_combine): Likewise for locals "insn", "prev".
7164         (reload_combine_note_use): Likewise for param "insn".
7165         (move2add_use_add2_insn): Likewise.
7166         (move2add_use_add3_insn): Likewise.
7167         (reload_cse_move2add): Likewise, also for local "next".
7168         (move2add_note_store): Likewise for local "insn".
7169
7170 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7171
7172         * postreload-gcse.c (struct occr): Strengthen field "insn" from
7173         rtx to rtx_insn *.
7174         (struct unoccr): Likewise.
7175         (struct modifies_mem): Likewise.
7176         (alloc_mem): Likewise for local "insn".
7177         (insert_expr_in_table): Likewise for param "insn".
7178         (dump_expr_hash_table_entry): Likewise for local "insn".
7179         (oprs_unchanged_p): Likewise for param "insn".
7180         (load_killed_in_block_p): Likewise for local "setter".
7181         (record_last_reg_set_info): Likewise for param "insn".
7182         (record_last_reg_set_info_regno): Likewise.
7183         (record_last_mem_set_info): Likewise.
7184         (record_last_set_info): Likewise for local "last_set_insn".
7185         (record_opr_changes): Likewise for param "insn".
7186         (hash_scan_set): Likewise.
7187         (compute_hash_table): Likewise for local "insn".
7188         (get_avail_load_store_reg): Likewise for param "insn".
7189         (eliminate_partially_redundant_load): Likewise, also for locals
7190         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
7191         RTX for insns.
7192         (eliminate_partially_redundant_loads): Likewise for local "insn".
7193
7194 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7195
7196         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7197         rtx to rtx_insn *.
7198         (expand_binop): Likewise for locals "entry_last", "last", "insns"
7199         (expand_twoval_unop): Likewise for locals entry_last", "last".
7200         (expand_twoval_binop): Likewise.
7201         (expand_twoval_binop_libfunc): Likewise for local "insns".
7202         (widen_leading): Likewise for local "last".
7203         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
7204         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7205         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7206         (expand_parity): Likewise for locals "last" and "seq".
7207         (expand_ffs): Likewise for local "seq".  Strengthen local
7208         "nonzero_label" from rtx to rtx_code_label *.
7209         (expand_absneg_bit): Strengthen local "insns" from rtx to
7210         rtx_insn *.
7211         (expand_unop_direct): Likewise for local "last".
7212         (expand_unop): Likewise for locals "last", "insns".
7213         (expand_abs_nojump): Likewise for local "last".
7214         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7215         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7216         rtx_insn *.
7217         (expand_copysign_absneg): Strengthen local "label" from rtx to
7218         rtx_code_label *.
7219         (expand_copysign_bit): Strengthen local "insns" from rtx to
7220         rtx_insn *.
7221         (struct no_conflict_data): Likewise for fields "first", "insn".
7222         (emit_libcall_block_1): Likewise for param "insns" and locals
7223         "next", "last", "insn".
7224         (emit_libcall_block): For now, add a checked cast to rtx_insn *
7225         on "insns" when invoking emit_libcall_block_1.  Ultimately we
7226         want to strengthen insns itself.
7227         (prepare_cmp_insn): Strengthen local "last" from rtx to
7228         rtx_insn *.
7229         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7230         (prepare_float_lib_cmp): Likewise for local "insns".
7231         (emit_conditional_move): Likewise for local "last".
7232         (emit_conditional_add): Likewise.
7233         (have_sub2_insn): Likewise for local "seq".
7234         (expand_float): Likewise for local "insns".  Strengthen locals
7235         "label", "neglabel" from rtx to rtx_code_label *.
7236         (expand_fix): Likewise for locals "last", "insn", "insns" (to
7237         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7238         (expand_fixed_convert): Likewise for local "insns" (to
7239         rtx_insn *).
7240         (expand_sfix_optab): Likewise for local "last".
7241         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7242         to rtx_code_label *.
7243         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7244         from rtx to rtx_insn *.
7245         (expand_atomic_fetch_op): Likewise for local "insn".
7246         (maybe_legitimize_operand_same_code): Likewise for local "last".
7247         (maybe_legitimize_operands): Likewise.
7248
7249 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7250
7251         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7252         "insn" from rtx to rtx_insn *.
7253         (ps_rtl_insn): Likewise for return type.
7254         (doloop_register_get): Likewise for params "head", "tail" and
7255         locals "insn", "first_insn_not_to_check".
7256         (schedule_reg_move): Likewise for local "this_insn".
7257         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7258         of gen_move_insn for now.
7259         (reset_sched_times): Strengthen local "insn" from rtx to
7260         rtx_insn *.
7261         (permute_partial_schedule): Likewise.
7262         (duplicate_insns_of_cycles): Likewise for local "u_insn".
7263         (dump_insn_location): Likewise for param "insn".
7264         (loop_canon_p): Likewise for local "insn".
7265         (sms_schedule): Likewise.
7266         (print_partial_schedule): Likewise.
7267         (ps_has_conflicts): Likewise.
7268
7269 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7270
7271         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7272         "tailp" from rtx * to rtx_insn **.
7273
7274         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7275         from rtx to rtx_insn *.
7276         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7277         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
7278         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7279         rtx to rtx_insn *.
7280         * modulo-sched.c (const_iteration_count): Strengthen return type
7281         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
7282         use of NULL_RTX with NULL when working with insns.
7283         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7284         to rtx_insn *.
7285         (sms_schedule): Likewise.
7286         * sched-rgn.c (init_ready_list): Likewise, also for locals
7287         "src_head" and "src_next_tail".
7288         (compute_block_dependences): Likewise.
7289         (free_block_dependencies): Likewise.
7290         (debug_rgn_dependencies): Likewise.
7291         (free_rgn_deps): Likewise.
7292         (compute_priorities): Likewise.
7293         (schedule_region): Likewise.
7294         * sel-sched.c (find_ebb_boundaries): Likewise.
7295
7296         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7297         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7298
7299 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7300
7301         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7302         from rtx to rtx_insn *.
7303         (new_seginfo): Likewise for param "insn".
7304         (create_pre_exit): Likewise for locals "last_insn",
7305         "before_return_copy", "return_copy".
7306         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7307         "mode_set".
7308
7309 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7310
7311         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7312         from rtx to rtx_insn *.
7313         (lra_push_insn): Likewise for 1st param.
7314         (lra_push_insn_and_update_insn_regno_info): Likewise.
7315         (lra_pop_insn): Likewise for return type.
7316         (lra_invalidate_insn_data): Likewise for 1st param.
7317         (lra_set_insn_deleted): Likewise.
7318         (lra_delete_dead_insn): Likewise.
7319         (lra_process_new_insns): Likewise for first 3 params.
7320         (lra_set_insn_recog_data): Likewise for 1st param.
7321         (lra_update_insn_recog_data): Likewise.
7322         (lra_set_used_insn_alternative): Likewise.
7323         (lra_invalidate_insn_regno_info): Likewise.
7324         (lra_update_insn_regno_info): Likewise.
7325         (lra_former_scratch_operand_p): Likewise.
7326         (lra_eliminate_regs_1): Likewise.
7327         (lra_get_insn_recog_data): Likewise.
7328
7329         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7330         rtx to rtx_insn *.
7331
7332         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7333         "mv1" and "mv2".
7334         (substitute_within_insn): New.
7335         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7336         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
7337         Replace call to "substitute" with call to substitute_within_insn.
7338
7339         * lra-constraints.c (curr_insn): Strengthen from rtx to
7340         rtx_insn *.
7341         (get_equiv_with_elimination): Likewise for param "insn".
7342         (match_reload): Strengthen params "before" and "after" from rtx *
7343         to rtx_insn **.
7344         (emit_spill_move): Likewise for return type.  Add a checked cast
7345         to rtx_insn * on result of gen_move_insn for now.
7346         (check_and_process_move): Likewise for local "before".  Replace
7347         NULL_RTX with NULL when referring to insns.
7348         (process_addr_reg): Strengthen params "before" and "after" from
7349         rtx * to rtx_insn **.
7350         (insert_move_for_subreg): Likewise.
7351         (simplify_operand_subreg): Strengthen locals "before" and "after"
7352         from rtx to rtx_insn *.
7353         (process_address_1): Strengthen params "before" and "after" from
7354         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
7355         rtx to rtx_insn *.
7356         (process_address): Strengthen params "before" and "after" from
7357         rtx * to rtx_insn **.
7358         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7359         (curr_insn_transform): Strengthen locals "before" and "after"
7360         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
7361         to insns.
7362         (loc_equivalence_callback): Update cast of "data", changing
7363         resulting type from rtx to rtx_insn *.
7364         (substitute_pseudo_within_insn): New.
7365         (inherit_reload_reg): Strengthen param "insn" from rtx to
7366         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
7367         NULL when referring to insns.  Add a checked cast to rtx_insn *
7368         when using usage_insn to invoke lra_update_insn_regno_info.
7369         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7370         likewise for locals "restore", "save".  Add checked casts to
7371         rtx_insn * when using usage_insn to invoke
7372         lra_update_insn_regno_info and lra_process_new_insns.  Replace
7373         NULL_RTX with NULL when referring to insns.
7374         (split_if_necessary): Strengthen param "insn" from rtx to
7375         rtx_insn *.
7376         (update_ebb_live_info): Likewise for params "head", "tail" and local
7377         "prev_insn".
7378         (get_last_insertion_point): Likewise for return type and local "insn".
7379         (get_live_on_other_edges): Likewise for local "last".
7380         (inherit_in_ebb): Likewise for params "head", "tail" and locals
7381         "prev_insn", "next_insn", "restore".
7382         (remove_inheritance_pseudos): Likewise for local "prev_insn".
7383         (undo_optional_reloads): Likewise for local "insn".
7384
7385         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7386         "insn".
7387         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7388         insns.
7389         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7390         rtx_insn *.
7391         (spill_pseudos): Likewise for local "insn".
7392         (init_elimination): Likewise.
7393         (process_insn_for_elimination): Likewise for param "insn".
7394
7395         * lra-lives.c (curr_insn): Likewise.;
7396
7397         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7398         (remove_pseudos): Likewise for param "insn".
7399         (spill_pseudos): Likewise for local "insn".
7400         (lra_final_code_change): Likewise for locals "insn", "curr".
7401
7402         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7403         (lra_set_insn_deleted): Likewise.
7404         (lra_delete_dead_insn): Likewise, and for local "prev".
7405         (new_insn_reg): Likewise for param "insn".
7406         (lra_set_insn_recog_data): Likewise.
7407         (lra_update_insn_recog_data): Likewise.
7408         (lra_set_used_insn_alternative): Likewise.
7409         (get_insn_freq): Likewise.
7410         (invalidate_insn_data_regno_info): Likewise.
7411         (lra_invalidate_insn_regno_info): Likewise.
7412         (lra_update_insn_regno_info): Likewise.
7413         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7414         vec<rtx_insn *>.
7415         (lra_push_insn_1): Strengthen param "insn" from rtx to
7416         rtx_insn *.
7417         (lra_push_insn): Likewise.
7418         (lra_push_insn_and_update_insn_regno_info): Likewise.
7419         (lra_pop_insn): Likewise for return type and local "insn".
7420         (push_insns): Likewise for params "from", "to", and local "insn".
7421         (setup_sp_offset): Likewise for params "from", "last" and locals
7422         "before", "insn".
7423         (lra_process_new_insns): Likewise for params "insn", "before",
7424         "after" and local "last".
7425         (struct sloc): Likewise for field "insn".
7426         (lra_former_scratch_operand_p): Likewise for param "insn".
7427         (remove_scratches): Likewise for locals "insn", "last".
7428         (check_rtl): Likewise for local "insn".
7429         (add_auto_inc_notes): Likewise for param "insn".
7430         (update_inc_notes): Likewise for local "insn".
7431         (lra): Replace NULL_RTX with NULL when referring to insn.
7432
7433 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7434
7435         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7436         to rtx_insn *.
7437         (resolve_reg_notes): Likewise.
7438         (resolve_simple_move): Likewise for return type, param "insn", and
7439         locals "insns", "minsn".
7440         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7441         (resolve_use): Likewise.
7442         (resolve_debug): Likewise.
7443         (find_decomposable_shift_zext): Likewise.
7444         (resolve_shift_zext): Likewise for return type, param "insn", and
7445         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
7446         (decompose_multiword_subregs): Likewise for local "insn",
7447         "orig_insn", "decomposed_shift", "end".
7448
7449 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7450
7451         * basic-block.h (basic_block split_edge_and_insert): Strengthen
7452         param "insns" from rtx to rtx_insn *.
7453
7454         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7455         rtx to rtx_insn *.
7456         (struct iv_to_split): Likewise.
7457         (loop_exit_at_end_p): Likewise for local "insn".
7458         (split_edge_and_insert): Likewise for param "insns".
7459         (compare_and_jump_seq): Likewise for return type, param "cinsn",
7460         and locals "seq", "jump".
7461         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7462         "branch_code"; update invocations of compare_and_jump_seq to
7463         eliminate NULL_RTX in favor of NULL.
7464         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7465         rtx to rtx_insn *.
7466         (reset_debug_uses_in_loop): Likewise.
7467         (analyze_insn_to_expand_var): Likewise for param "insn".
7468         (analyze_iv_to_split_insn): Likewise.
7469         (analyze_insns_in_loop): Likewise for local "insn".
7470         (insert_base_initialization): Likewise for param
7471         "insn" and local "seq".
7472         (split_iv): Likewise for param "insn" and local "seq".
7473         (expand_var_during_unrolling): Likewise for param "insn".
7474         (insert_var_expansion_initialization): Likewise for local "seq".
7475         (combine_var_copies_in_loop_exit): Likewise.
7476         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7477         "insn".
7478         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7479         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7480         "next".
7481
7482 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7483
7484         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7485         rtx_insn *.
7486         (iv_analyze_result): Likewise.
7487         (iv_analyze_expr): Likewise.
7488         (biv_p): Likewise.
7489
7490         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7491         local "def_insn" from rtx to rtx_insn *.
7492         (get_biv_step_1): Likewise for local "insn".
7493         (iv_analyze_expr): Likewise for param "insn".
7494         (iv_analyze_def): Likewise for local "insn".
7495         (iv_analyze_op): Likewise for param "insn".
7496         (iv_analyze): Likewise.
7497         (iv_analyze_result): Likewise.
7498         (biv_p): Likewise.
7499         (suitable_set_for_replacement): Likewise.
7500         (simplify_using_initial_values): Likewise for local "insn".
7501         (iv_number_of_iterations): Likewise for param "insn".
7502         (check_simple_exit): Add checked cast to rtx_insn when invoking
7503         iv_number_of_iterations for now (until get_condition is
7504         strengthened).
7505
7506         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7507         "insn" from rtx to rtx_insn *.
7508         (analyze_insns_in_loop): Likewise for local "insn".
7509
7510 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7511
7512         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7513         to rtx_insn *.
7514         (struct invariant): Likewise.
7515         (hash_invariant_expr_1): Likewise for param "insn".
7516         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7517         (find_exits): Likewise for local "insn".
7518         (create_new_invariant): Likewise for param "insn".
7519         (check_dependencies): Likewise.
7520         (find_invariant_insn): Likewise.
7521         (record_uses): Likewise.
7522         (find_invariants_insn): Likewise.
7523         (find_invariants_bb): Likewise for local "insn".
7524         (get_pressure_class_and_nregs): Likewise for param "insn".
7525         (calculate_loop_reg_pressure): Likewise for local "insn".
7526
7527 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7528
7529         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7530         to rtx_insn *.
7531         (add_test): Likewise for locals "seq", "jump".
7532         (doloop_modify): Likewise for locals "sequence", "jump_insn".
7533
7534 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7535
7536         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7537         rtx_insn *.
7538         (rebuild_jump_labels_chain): Likewise for param "chain".
7539
7540         * cfgexpand.c (pass_expand::execute): Add checked cast to
7541         rtx_insn * when calling rebuild_jump_labels_chain in region where
7542         we know e->insns.r is non-NULL.
7543
7544         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7545         rtx_insn *.
7546         (rebuild_jump_labels): Likewise.
7547         (rebuild_jump_labels_chain): Likewise for param "chain".
7548         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7549         (init_label_info): Likewise for param "f".
7550         (maybe_propagate_label_ref): Likewise for params "jump_insn",
7551         "prev_nonjump_insn".
7552         (mark_all_labels): Likewise for param "f" and locals "insn",
7553         "prev_nonjump_insn".
7554
7555 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7556
7557         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7558         from rtx to rtx_insn *insn.
7559         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7560         (ira_add_allocno_copy): Likewise.
7561         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7562         rtx to rtx_insn *.
7563         (ira_create_copy): Likewise.
7564         (ira_add_allocno_copy): Likewise.
7565         (create_bb_allocnos): Likewise for local "insn".
7566         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7567         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7568         process_regs_for_copy for rtx_insn * param.
7569         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7570         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
7571         process_regs_for_copy for rtx_insn * param.
7572         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7573         * ira-costs.c (record_reg_classes): Likewise for param "insn".
7574         (record_operand_costs): Likewise.
7575         (scan_one_insn): Likewise for return type, and for param "insn".
7576         (process_bb_for_costs): Likewise for local "insn".
7577         (process_bb_node_for_hard_reg_moves): Likewise.
7578         * ira-emit.c (struct move): Likewise for field "insn".
7579         (create_move): Eliminate use of NULL_RTX when dealing with an
7580         rtx_insn *.
7581         (emit_move_list): Strengthen return type and locals "result",
7582         "insn" from rtx to rtx_insn *insn.
7583         (emit_moves): Likewise for locals "insns", "tmp".
7584         (ira_emit): Likewise for local "insn".
7585         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7586         "insn".
7587         (find_call_crossed_cheap_reg): Likewise.
7588         (process_bb_node_lives): Likewise for local "insn".
7589         * ira.c (decrease_live_ranges_number): Likewise.
7590         (compute_regs_asm_clobbered): Likewise.
7591         (build_insn_chain): Likewise.
7592         (find_moveable_pseudos): Likewise, also locals "def_insn",
7593         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
7594         to rtx_insn **.  Add a checked cast when assigning from
7595         "closest_use" into closest_uses array in a region where we know
7596         it's a non-NULL insn.
7597         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7598         to rtx_insn *.
7599         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7600         "last_interesting_insn", "uin".
7601         (move_unallocated_pseudos): Likewise for locals "def_insn",
7602         "move_insn", "newinsn".
7603
7604 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7605
7606         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7607         Strengthen locals "done_label", "do_error" from rtx to
7608         rtx_code_label *.
7609         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7610         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
7611         rtx_code_label *.
7612         (ubsan_expand_si_overflow_neg_check): Likewise for locals
7613         "done_label", "do_error" to rtx_code_label * and local  "last" to
7614         rtx_insn *.
7615         (ubsan_expand_si_overflow_mul_check): Likewise for locals
7616         "done_label", "do_error", "large_op0", "small_op0_large_op1",
7617         "one_small_one_large", "both_ops_large", "after_hipart_neg",
7618         "after_lopart_neg", "do_overflow", "hipart_different"  to
7619         rtx_code_label * and local  "last" to rtx_insn *.
7620
7621 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7622
7623         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7624         "insn" and "move_insn" from rtx to rtx_insn *.
7625
7626 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7627
7628         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7629         rtx_insn *.
7630         (cheap_bb_rtx_cost_p): Likewise.
7631         (first_active_insn): Likewise for return type and local "insn".
7632         (last_active_insn):  Likewise for return type and locals "insn",
7633         "head".
7634         (struct noce_if_info): Likewise for fields "jump", "insn_a",
7635         "insn_b".
7636         (end_ifcvt_sequence): Likewise for return type and locals "insn",
7637         "seq".
7638         (noce_try_move): Likewise for local "seq".
7639         (noce_try_store_flag): Likewise.
7640         (noce_try_store_flag_constants): Likewise.
7641         (noce_try_addcc): Likewise.
7642         (noce_try_store_flag_mask): Likewise.
7643         (noce_try_cmove): Likewise.
7644         (noce_try_minmax): Likewise.
7645         (noce_try_abs): Likewise.
7646         (noce_try_sign_mask): Likewise.
7647         (noce_try_bitop): Likewise.
7648         (noce_can_store_speculate_p): Likewise for local "insn".
7649         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7650         seq".
7651         (check_cond_move_block): Likewise for local "insn".
7652         (cond_move_convert_if_block): Likewise.
7653         (cond_move_process_if_block): Likewise for locals "seq",
7654         "loc_insn".
7655         (noce_find_if_block): Likewise for local "jump".
7656         (merge_if_block): Likewise for local "last".
7657         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7658         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7659         (block_has_only_trap): Likewise for return type and local "trap".
7660         (find_if_case_1): Likewise for local "jump".
7661         (dead_or_predicable): Likewise for locals "head", "end", "jump",
7662         "insn".
7663
7664 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7665
7666         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7667         "last_insn", "loop_end" from rtx to rtx_insn *.
7668
7669         * hw-doloop.c (scan_loop): Likewise for local "insn".
7670         (discover_loop): Likewise for param "tail_insn".
7671         (discover_loops): Likewise for local "tail".
7672
7673         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7674         cast to rtx_insn * when assigning from an rtx local to a
7675         hwloop_info's "last_insn" field.
7676
7677 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7678
7679         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7680         (add_delay_dependencies): Strengthen local "pro" from rtx to
7681         rtx_insn *.
7682         (recompute_todo_spec): Likewise.
7683         (dep_cost_1): Likewise for locals "insn", "used".
7684         (schedule_insn): Likewise for local "dbg".
7685         (schedule_insn): Likewise for locals "pro", "next".
7686         (unschedule_insns_until): Likewise for local "con".
7687         (restore_pattern): Likewise for local "next".
7688         (estimate_insn_tick): Likewise for local "pro".
7689         (resolve_dependencies): Likewise for local "next".
7690         (fix_inter_tick): Likewise.
7691         (fix_tick_ready): Likewise for local "pro".
7692         (add_to_speculative_block): Likewise for locals "check", "twin",
7693         "pro".
7694         (sched_extend_bb): Likewise for locals "end", "insn".
7695         (init_before_recovery): Likewise for local "x".
7696         (sched_create_recovery_block): Likewise for local "barrier".
7697         (create_check_block_twin): Likewise for local "pro".
7698         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7699         "consumer".
7700         (unlink_bb_notes): Update for change to type of bb_header.
7701         Strengthen locals "prev", "label", "note", "next" from rtx to
7702         rtx_insn *.
7703         (clear_priorities): Likewise for local "pro".
7704
7705 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7706
7707         * gcse.c (struct occr): Strengthen field "insn" from rtx to
7708         rtx_insn *.
7709         (test_insn): Likewise for this global.
7710         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7711         const rtx_insn *.
7712         (oprs_anticipatable_p): Likewise.
7713         (oprs_available_p): Likewise.
7714         (insert_expr_in_table): Strengthen param "insn" from  rtx to
7715         rtx_insn *.
7716         (hash_scan_set): Likewise.
7717         (hash_scan_clobber): Likewise.
7718         (hash_scan_call): Likewise.
7719         (hash_scan_insn): Likewise.
7720         (compute_hash_table_work): Likewise for local "insn".
7721         (process_insert_insn): Likewise for return type and local "pat".
7722         (insert_insn_end_basic_block): Likewise for locals "new_insn",
7723         "pat", "pat_end", "maybe_cc0_setter".
7724         (pre_edge_insert): Likewise for local "insn".
7725         (pre_insert_copy_insn): Likewise for param "insn".
7726         (pre_insert_copies): Likewise for local "insn".
7727         (struct set_data): Likewise for field "insn".
7728         (single_set_gcse): Likewise for param "insn".
7729         (gcse_emit_move_after): Likewise.
7730         (pre_delete): Likewise for local "insn".
7731         (update_bb_reg_pressure): Likewise for param "from" and local
7732         "insn".
7733         (should_hoist_expr_to_dom): Likewise for param "from".
7734         (hoist_code): Likewise for local "insn".
7735         (get_pressure_class_and_nregs): Likewise for param "insn".
7736         (calculate_bb_reg_pressure): Likewise for local "insn".
7737         (compute_ld_motion_mems): Likewise.
7738
7739 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7740
7741         * genpeep.c (main): Rename param back from "uncast_ins1" to
7742         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
7743         checked cast.
7744
7745         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7746
7747 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7748
7749         PR target/62195
7750         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7751         documentation to state it is only for VSX operations.
7752
7753         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7754         constraint only active if VSX.
7755
7756         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7757         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7758         (lfiwzx): Likewise.
7759
7760 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7761
7762         * fwprop.c (single_def_use_dom_walker::before_dom_children):
7763         Strengthen local "insn" from rtx to rtx_insn *.
7764         (use_killed_between): Likewise for param "target_insn".
7765         (all_uses_available_at): Likewise for param "target_insn" and
7766         local "next".
7767         (update_df_init): Likewise for params "def_insn", "insn".
7768         (update_df): Likewise for param "insn".
7769         (try_fwprop_subst): Likewise for param "def_insn" and local
7770         "insn".
7771         (free_load_extend): Likewise for param "insn".
7772         (forward_propagate_subreg): Likewise for param "def_insn" and
7773         local "use_insn".
7774         (forward_propagate_asm): Likewise for param "def_insn" and local
7775         "use_insn".
7776         (forward_propagate_and_simplify): Likewise for param "def_insn"
7777         and local "use_insn".
7778         (forward_propagate_into): Likewise for locals "def_insn" and
7779         "use_insn".
7780
7781 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7782
7783         * function.c (emit_initial_value_sets): Strengthen local "seq"
7784         from rtx to rtx_insn *.
7785         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7786         local "seq".
7787         (instantiate_virtual_regs): Likewise for local "insn".
7788         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7789         (reorder_blocks_1): Likewise for param "insns" and local "insn".
7790         (expand_function_end): Likewise for locals "insn" and "seq".
7791         (epilogue_done): Likewise for local "insn".
7792         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7793         "last", "trial".
7794         (reposition_prologue_and_epilogue_notes): Likewise for locals
7795         "insn", "last", "note", "first".
7796         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7797         (pass_match_asm_constraints::execute): Likewise for local "insn".
7798
7799 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7800
7801         * output.h (final_scan_insn): Strengthen return type from rtx to
7802         rtx_insn *.
7803         (final_forward_branch_p): Likewise for param.
7804         (current_output_insn): Likewise for this global.
7805
7806         * final.c (rtx debug_insn): Likewise for this variable.
7807         (current_output_insn): Likewise.
7808         (get_attr_length_1): Rename param "insn" to "uncast_insn",
7809         adding "insn" back in as an rtx_insn * with a checked cast, so
7810         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7811         first param.
7812         (compute_alignments): Strengthen local "label" from rtx to
7813         rtx_insn *.
7814         (shorten_branches): Rename param from "first" to "uncast_first",
7815         introducing a new local rtx_insn * "first" using a checked cast to
7816         effectively strengthen "first" from rtx to rtx_insn * without
7817         affecting the type signature.  Strengthen locals "insn", "seq",
7818         "next", "label" from rtx to rtx_insn *.
7819         (change_scope): Strengthen param "orig_insn" and local "insn" from
7820         rtx to rtx_insn *.
7821         (final_start_function): Rename param from "first" to "uncast_first",
7822         introducing a new local rtx_insn * "first" using a checked cast to
7823         effectively strengthen "first" from rtx to rtx_insn * without
7824         affecting the type signature.  Strengthen local "insn" from rtx to
7825         rtx_insn *.
7826         (dump_basic_block_info): Strengthen param "insn" from rtx to
7827         rtx_insn *.
7828         (final): Rename param from "first" to "uncast_first",
7829         introducing a new local rtx_insn * "first" using a checked cast to
7830         effectively strengthen "first" from rtx to rtx_insn * without
7831         affecting the type signature.  Strengthen locals "insn", "next"
7832         from rtx to rtx_insn *.
7833         (output_alternate_entry_point): Strengthen param "insn" from rtx to
7834         rtx_insn *.
7835         (call_from_call_insn): Strengthen param "insn" from rtx to
7836         rtx_call_insn *.
7837         (final_scan_insn): Rename param from "insn" to "uncast_insn",
7838         introducing a new local rtx_insn * "insn" using a checked cast to
7839         effectively strengthen "insn" from rtx to rtx_insn * without
7840         affecting the type signature.  Strengthen return type and locals
7841         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
7842         now-redundant checked cast to rtx_insn * from both invocations of
7843         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
7844         introducing a local "call_insn" for use when invoking
7845         call_from_call_insn.
7846         (notice_source_line): Strengthen param "insn" from rtx to
7847         rtx_insn *.
7848         (leaf_function_p): Likewise for local "insn".
7849         (final_forward_branch_p): Likewise.
7850         (leaf_renumber_regs): Likewise for param "first".
7851         (rest_of_clean_state): Likewise for locals "insn" and "next".
7852         (self_recursive_call_p): Likewise for param "insn".
7853         (collect_fn_hard_reg_usage): Likewise for local "insn".
7854         (get_call_fndecl): Likewise for param "insn".
7855         (get_call_cgraph_rtl_info): Likewise.
7856         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7857         introducing a new local rtx_insn * "insn" using a checked cast to
7858         effectively strengthen "insn" from rtx to rtx_insn * without
7859         affecting the type signature.
7860
7861         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7862         cast when assigning from param "insn" to current_output_insn.
7863         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7864         so that we can assign it back to current_output_insn.
7865
7866 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7867
7868         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7869         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7870         atmxt540s and atmxt540sreva devices.
7871         * config/avr/avr-tables.opt: Regenerate.
7872         * config/avr/t-multilib: Regenerate.
7873         * doc/avr-mmcu.texi: Regenerate.
7874
7875 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7876
7877         * expr.c (convert_move): Strengthen local "insns" from rtx to
7878         rtx_insn *.
7879         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7880         "top_label" from rtx to rtx_code_label *.
7881         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7882         rtx_insn *.
7883         (emit_single_push_insn): Likewise for locals "prev", "last".
7884         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7885         to rtx_code_label *.
7886         (store_constructor): Likewise for locals "loop_start", "loop_end".
7887         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7888         rtx_insn *.
7889         (expand_expr_real_2): Likewise.
7890         (expand_expr_real_1): Strengthen local "label" from rtx to
7891         rtx_code_label *.
7892
7893 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7894
7895         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7896         from rtx to rtx_insn *.
7897         (store_bit_field_1): Likewise.
7898         (extract_bit_field_1): Likewise.
7899         (expand_mult_const): Likewise for local "insns".
7900         (expmed_mult_highpart): Strengthen local "label" from rtx to
7901         rtx_code_label *.
7902         (expand_smod_pow2): Likewise.
7903         (expand_sdiv_pow2): Likewise.
7904         (expand_divmod): Strengthen locals "last", "insn" from rtx to
7905         rtx_insn *.  Strengthen locals "label", "label1", "label2",
7906         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7907         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7908         (emit_store_flag): Likewise.
7909         (emit_store_flag_force): Strengthen local "label" from rtx to
7910         rtx_code_label *.
7911         (do_cmp_and_jump): Likewise for param "label".
7912
7913 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7914
7915         * explow.c (force_reg): Strengthen local "insn" from rtx to
7916         rtx_insn *.
7917         (adjust_stack_1): Likewise.
7918         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
7919         "final_label", "available_label", "space_available" from rtx to
7920         rtx_code_label *.
7921         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7922         (anti_adjust_stack_and_probe): Likewise.
7923
7924 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7925
7926         * except.h (sjlj_emit_function_exit_after): Strengthen param
7927         "after" from rtx to rtx_insn *.  This is only called with
7928         result of get_last_insn (in function.c) so type-change should be
7929         self-contained.
7930
7931         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7932         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7933         to rtx_insn *.  These fields are only used from except.c so this
7934         type-change should be self-contained to this patch.
7935
7936         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7937         local "last" from rtx to rtx_insn *.
7938         (dw2_build_landing_pads): Likewise for local "seq".
7939         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7940         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7941         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
7942         rtx to rtx_insn *.
7943         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7944         to rtx_insn *.
7945         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7946         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7947         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7948         referring to an insn.  Strengthen local "dispatch_label" from
7949         rtx to rtx_code_label *.
7950         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7951         rtx_insn *.
7952         (expand_eh_return): Strengthen local "around_label" from
7953         rtx to rtx_code_label *.
7954         (convert_to_eh_region_ranges): Strengthen locals "iter",
7955         "last_action_insn", "first_no_action_insn",
7956         "first_no_action_insn_before_switch",
7957         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7958
7959 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7960
7961         * dwarf2out.c (last_var_location_insn): Strengthen this variable
7962         from rtx to rtx_insn *.
7963         (cached_next_real_insn): Likewise.
7964         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7965         working with insns.
7966         (dwarf2out_var_location): Strengthen locals "next_real",
7967         "next_note", "expected_next_loc_note", "last_start", "insn" from
7968         rtx to rtx_insn *.
7969
7970 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7971
7972         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7973         from rtx to rtx_insn *.
7974         (create_pseudo_cfg): Likewise for local "insn".
7975
7976 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7977
7978         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7979         from rtx to rtx_insn *.
7980         (df_bb_regno_last_def_find): Likewise.
7981
7982         * df-problems.c (df_rd_bb_local_compute): Likewise.
7983         (df_lr_bb_local_compute): Likewise.
7984         (df_live_bb_local_compute): Likewise.
7985         (df_chain_remove_problem): Likewise.
7986         (df_chain_create_bb): Likewise.
7987         (df_word_lr_bb_local_compute): Likewise.
7988         (df_remove_dead_eq_notes): Likewise for param "insn".
7989         (df_note_bb_compute): Likewise for local "insn".
7990         (simulate_backwards_to_point): Likewise.
7991         (df_md_bb_local_compute): Likewise.
7992
7993         * df-scan.c (df_scan_free_bb_info): Likewise.
7994         (df_scan_start_dump): Likewise.
7995         (df_scan_start_block): Likewise.
7996         (df_install_ref_incremental): Likewise for local "insn".
7997         (df_insn_rescan_all): Likewise.
7998         (df_reorganize_refs_by_reg_by_insn): Likewise.
7999         (df_reorganize_refs_by_insn_bb): Likewise.
8000         (df_recompute_luids): Likewise.
8001         (df_bb_refs_record): Likewise.
8002         (df_update_entry_exit_and_calls): Likewise.
8003         (df_bb_verify): Likewise.
8004
8005 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8006
8007         * ddg.h (struct ddg_node): Strengthen fields "insn" and
8008         "first_note" from rtx to rtx_insn *.
8009         (get_node_of_insn): Likewise for param 2 "insn".
8010         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8011
8012         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8013         rtx_insn *.
8014         (mem_write_insn_p): Likewise.
8015         (mem_access_insn_p): Likewise.
8016         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8017         (def_has_ccmode_p): Likewise for param "insn".
8018         (add_cross_iteration_register_deps): Likewise for locals
8019         "def_insn" and "use_insn".
8020         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8021         (build_intra_loop_deps): Likewise for local "src_insn".
8022         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8023         to rtx_insn *.
8024         (get_node_of_insn): Likewise for param "insn".
8025
8026 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8027
8028         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8029         (deletable_insn_p): Strengthen param "insn" from rtx to
8030         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
8031         find_call_stack_args, since this is guarded by CALL_P (insn).
8032         (marked_insn_p): Strengthen param "insn" from rtx to
8033         rtx_insn *.
8034         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
8035         invoking find_call_stack_args, since this is guarded by
8036         CALL_P (insn).
8037         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8038         rtx_insn *; we know this is an insn since this was called by
8039         mark_nonreg_stores.
8040         (mark_nonreg_stores_2): Likewise.
8041         (mark_nonreg_stores): Strengthen param "insn" from rtx to
8042         rtx_insn *.
8043         (find_call_stack_args): Strengthen param "call_insn" from rtx to
8044         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8045         to rtx_insn *.
8046         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8047         from rtx to rtx_insn *.
8048         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8049         "next", "ref_insn".
8050         (delete_unmarked_insns): Likewise for locals "insn", "next".
8051         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8052         (mark_reg_dependencies): Likewise for param "insn".
8053         (rest_of_handle_ud_dce): Likewise for local "insn".
8054         (word_dce_process_block): Likewise.
8055         (dce_process_block): Likewise.
8056
8057 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8058
8059         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8060         from rtx to rtx_insn *.
8061         (struct change_cc_mode_args): Likewise for field "insn".
8062         (this_insn): Strengthen from rtx to rtx_insn *.
8063         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8064         with insn.
8065         (validate_canon_reg): Strengthen param "insn" from rtx to
8066         rtx_insn *.
8067         (canon_reg): Likewise.
8068         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
8069         dealing with insn.
8070         (record_jump_equiv): Strengthen param "insn" from rtx to
8071         rtx_insn *.
8072         (try_back_substitute_reg): Likewise, also for locals "prev",
8073         "bb_head".
8074         (find_sets_in_insn): Likewise for param "insn".
8075         (canonicalize_insn): Likewise.
8076         (cse_insn): Likewise.  Add a checked cast.
8077         (invalidate_from_clobbers): Likewise for param "insn".
8078         (invalidate_from_sets_and_clobbers): Likewise.
8079         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8080         dealing with insn.
8081         (cse_prescan_path): Strengthen local "insn" from rtx to
8082         rtx_insn *.
8083         (cse_extended_basic_block): Likewise for locals "insn" and
8084         "prev_insn".
8085         (cse_main): Likewise for param "f".
8086         (check_for_label_ref): Likewise for local "insn".
8087         (set_live_p): Likewise for second param ("insn").
8088         (insn_live_p): Likewise for first param ("insn") and for local
8089         "next".
8090         (cse_change_cc_mode_insn): Likewise for first param "insn".
8091         (cse_change_cc_mode_insns): Likewise for first and second params
8092         "start" and "end".
8093         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8094         and "end".
8095         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8096         "cc_src_insn".
8097
8098 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8099             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8100             Anna Tikhonova  <anna.tikhonova@intel.com>
8101             Ilya Tocar  <ilya.tocar@intel.com>
8102             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8103             Ilya Verbin  <ilya.verbin@intel.com>
8104             Kirill Yukhin  <kirill.yukhin@intel.com>
8105             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8106
8107         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8108         New.
8109         * config/i386/sse.md
8110         (define_mode_iterator VI248_AVX2): Delete.
8111         (define_mode_iterator VI2_AVX2_AVX512BW): New.
8112         (define_mode_iterator VI48_AVX2): Ditto.
8113         (define_insn <shift_insn><mode>3): Delete.
8114         (define_insn "<shift_insn><mode>3<mask_name>" with
8115         VI2_AVX2_AVX512BW): New.
8116         (define_insn "<shift_insn><mode>3<mask_name>" with
8117         VI48_AVX2): Ditto.
8118
8119 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8120             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8121             Anna Tikhonova  <anna.tikhonova@intel.com>
8122             Ilya Tocar  <ilya.tocar@intel.com>
8123             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8124             Ilya Verbin  <ilya.verbin@intel.com>
8125             Kirill Yukhin  <kirill.yukhin@intel.com>
8126             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8127
8128         * config/i386/sse.md
8129         (define_mode_iterator VI4F_BRCST32x2): New.
8130         (define_mode_attr 64x2_mode): Ditto.
8131         (define_mode_attr 32x2mode): Ditto.
8132         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8133         with VI4F_BRCST32x2): Ditto.
8134         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8135         with V16FI mode iterator): Ditto.
8136         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8137         with V16FI): Ditto.
8138         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8139         with VI8F_BRCST64x2): Ditto.
8140
8141 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8142             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8143             Anna Tikhonova  <anna.tikhonova@intel.com>
8144             Ilya Tocar  <ilya.tocar@intel.com>
8145             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8146             Ilya Verbin  <ilya.verbin@intel.com>
8147             Kirill Yukhin  <kirill.yukhin@intel.com>
8148             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8149
8150         * config/i386/sse.md
8151         (define_mode_iterator VI8_AVX512VL): New.
8152         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8153
8154 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8155
8156         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8157         (define_mode_iterator V48_AVX512VL): New.
8158         (define_mode_iterator V12_AVX512VL): Ditto.
8159         (define_insn <avx512>_load<mode>_mask): Split into two similar
8160         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8161         Refactor output template.
8162         (define_insn "<avx512>_store<mode>_mask"): Ditto.
8163
8164 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8165
8166         * cprop.c (struct occr): Strengthen field "insn" from rtx to
8167         rtx_insn *.
8168         (reg_available_p): Likewise for param "insn".
8169         (insert_set_in_table): Likewise.
8170         (hash_scan_set): Likewise.
8171         (hash_scan_insn): Likewise.
8172         (make_set_regs_unavailable): Likewise.
8173         (compute_hash_table_work): Likewise for local "insn".
8174         (reg_not_set_p): Strengthen param "insn" from const_rtx to
8175         const rtx_insn *.
8176         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8177         (try_replace_reg): Likewise.
8178         (find_avail_set): Likewise.
8179         (cprop_jump): Likewise for params "setcc", "jump".
8180         (constprop_register): Likewise for param "insn".
8181         (cprop_insn): Likewise.
8182         (do_local_cprop): Likewise.
8183         (local_cprop_pass): Likewise for local "insn".
8184         (bypass_block): Likewise for params "setcc" and "jump".
8185         (bypass_conditional_jumps): Likewise for locals "setcc" and
8186         "insn".
8187         (one_cprop_pass): Likewise for local "insn".
8188
8189 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8190
8191         * compare-elim.c (struct comparison_use): Strengthen field "insn"
8192         from rtx to rtx_insn *.
8193         (struct comparison): Likewise, also for field "prev_clobber".
8194         (conforming_compare): Likewise for param "insn".
8195         (arithmetic_flags_clobber_p): Likewise.
8196         (find_flags_uses_in_insn): Likewise.
8197         (find_comparison_dom_walker::before_dom_children): Likewise for
8198         locals "insn", "next", "last_clobber".
8199         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8200
8201 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8202
8203         * combine-stack-adj.c (struct csa_reflist): Strengthen field
8204         "insn" from rtx to rtx_insn *.
8205         (single_set_for_csa): Likewise for param "insn".
8206         (record_one_stack_ref): Likewise.
8207         (try_apply_stack_adjustment): Likewise.
8208         (struct record_stack_refs_data): Likewise for field "insn".
8209         (maybe_move_args_size_note): Likewise for params "last" and "insn".
8210         (prev_active_insn_bb): Likewise for return type and param "insn".
8211         (next_active_insn_bb): Likewise.
8212         (force_move_args_size_note): Likewise for params "prev" and "last"
8213         and locals "test", "next_candidate", "prev_candidate".
8214         (combine_stack_adjustments_for_block): Strengthen locals
8215         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8216         rtx_insn *.
8217
8218 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8219
8220         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8221         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8222         (subst_insn): Likewise for this variable.
8223         (added_links_insn): Likewise.
8224         (struct insn_link): Likewise for field "insn".
8225         (alloc_insn_link): Likewise for param "insn".
8226         (struct undobuf): Likewise for field "other_insn".
8227         (find_single_use): Likewise for param "insn" and local "next".
8228         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8229         (delete_noop_moves): Likewise for locals "insn", "next".
8230         (create_log_links): Likewise for locals "insn", "use_insn".
8231         Strengthen local "next_use" from rtx * to rtx_insn **.
8232         (insn_a_feeds_b): Likewise for params "a", "b".
8233         (combine_instructions): Likewise for param "f" and locals "insn",
8234         "next", "prev", "first", "last_combined_insn", "link", "link1",
8235         "temp".  Replace use of NULL_RTX with NULL when referring to
8236         insns.
8237         (setup_incoming_promotions): Likewise for param "first"
8238         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8239         (can_combine_p): Likewise for params "insn", "i3", "pred",
8240         "pred2", "succ", "succ2" and for local "p".
8241         (combinable_i3pat): Likewise for param "i3".
8242         (cant_combine_insn_p): Likewise for param "insn".
8243         (likely_spilled_retval_p): Likewise.
8244         (adjust_for_new_dest): Likewise.
8245         (update_cfg_for_uncondjump): Likewise, also for local "insn".
8246         (try_combine): Likewise for return type and for params "i3", "i2",
8247         "i1", "i0", "last_combined_insn", and for locals "insn",
8248         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8249         "i0_insn".  Eliminate local "tem" in favor of new locals
8250         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
8251         checked cast for now to rtx_insn * on the return type of
8252         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
8253         insns.
8254         (find_split_point): Strengthen param "insn" from rtx to
8255         rtx_insn *.
8256         (simplify_set): Likewise for local "other_insn".
8257         (recog_for_combine): Likewise for param "insn".
8258         (record_value_for_reg): Likewise.
8259         (record_dead_and_set_regs_1): Likewise for local
8260         "record_dead_insn".
8261         (record_dead_and_set_regs): Likewise for param "insn".
8262         (record_promoted_value): Likewise.
8263         (check_promoted_subreg): Likewise.
8264         (get_last_value_validate): Likewise.
8265         (reg_dead_at_p): Likewise.
8266         (move_deaths): Likewise for param "to_insn".
8267         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8268         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
8269         in favor of new locals "tem_note" and "tem_insn", the latter being
8270         an rtx_insn *.
8271         (distribute_links): Strengthen locals "place", "insn" from rtx to
8272         rtx_insn *.
8273
8274 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8275
8276         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8277         than a const_rtx.
8278         (can_delete_label_p): Require a const rtx_code_label * rather than
8279         a const_rtx.
8280         (delete_insn): Add checked cast to rtx_code_label * when we know
8281         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
8282         rtx to rtx_insn *.
8283         (delete_insn_chain): Strengthen locals "prev" and "current" from
8284         rtx to rtx_insn *.  Add a checked cast when assigning from
8285         "finish" (strengthening the params will come later).  Add a
8286         checked cast to rtx_note * in region where we know
8287         NOTE_P (current).
8288         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8289         rtx_insn *.
8290         (compute_bb_for_insn): Likewise.
8291         (free_bb_for_insn): Likewise for local "insn".
8292         (compute_bb_for_insn): Likewise.
8293         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8294         local "insn" from rtx to rtx_insn *
8295         (flow_active_insn_p): Require a const rtx_insn * rather than a
8296         const_rtx.
8297         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8298         rtx_insn *.
8299         (can_fallthru): Likewise for locals "insn" and "insn2".
8300         (bb_note): Likewise for local "note".
8301         (first_insn_after_basic_block_note): Likewise for local "note" and
8302         for return type.
8303         (rtl_split_block): Likewise for locals "insn" and "next".
8304         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8305         "end".
8306         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8307         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8308         "prev", "tmp".
8309         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8310         them), "kill_from", "barrier", "new_insn".
8311         (patch_jump_insn): Likewise for params "insn", "old_label".
8312         (redirect_branch_edge): Likewise for locals "old_label", "insn".
8313         (force_nonfallthru_and_redirect): Likewise for locals "insn",
8314         "old_label", "new_label".
8315         (rtl_tidy_fallthru_edge): Likewise for local "q".
8316         (rtl_split_edge): Likewise for locals "before", "last".
8317         (commit_one_edge_insertion): Likewise for locals "before",
8318         "after", "insns", "tmp", "last", adding a checked cast where
8319         currently necessary.
8320         (commit_edge_insertions): Likewise.
8321         (rtl_dump_bb): Likewise for locals "insn", "last".
8322         (print_rtl_with_bb): Likewise for local "x".
8323         (rtl_verify_bb_insns): Likewise for local "x".
8324         (rtl_verify_bb_pointers): Likewise for local "insn".
8325         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8326         "head", "end".
8327         (rtl_verify_fallthru): Likewise for local "insn".
8328         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8329         (purge_dead_edges): Likewise for local "insn".
8330         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8331         (skip_insns_after_block): Likewise for return type and for locals
8332         "insn", "last_insn", "next_head", "prev".
8333         (record_effective_endpoints): Likewise for locals "next_insn",
8334         "insn", "end".
8335         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8336         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8337         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8338         (duplicate_insn_chain): For now, add checked cast from rtx to
8339         rtx_insn * when returning insn.
8340         (cfg_layout_duplicate_bb): Likewise for local "insn".
8341         (cfg_layout_delete_block): Likewise for locals "insn", "next",
8342         "prev", "remaints".
8343         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8344         (rtl_block_empty_p): Likewise.
8345         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8346         "split_point", "last".
8347         (rtl_block_ends_with_call_p): Likewise for local "insn".
8348         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8349         const rtx_insn *.
8350         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8351         "split_at_insn" from rtx to rtx_insn *.
8352         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8353         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8354         to const rtx_insn *.
8355         (rtl_account_profile_record): Likewise.
8356
8357 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8358
8359         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8360         rtx to rtx_insn *.
8361         (average_num_loop_insns): Likewise.
8362         (init_set_costs): Likewise for local "seq".
8363         (seq_cost): Likewise for param "seq", from const_rtx to const
8364         rtx_insn *.
8365
8366 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8367
8368         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8369         rtx to rtx_insn *.
8370
8371 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8372
8373         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8374         "f1" and "f2" from rtx * to rtx_insn **.
8375         (flow_find_head_matching_sequence): Likewise.
8376
8377         * cfgcleanup.c (try_simplify_condjump): Strengthen local
8378         "cbranch_insn" from rtx to rtx_insn *.
8379         (thread_jump): Likewise for local "insn".
8380         (try_forward_edges): Likewise for local "last".
8381         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8382         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8383         "real_b_end".
8384         (can_replace_by): Likewise for params "i1", "i2".
8385         (old_insns_match_p): Likewise.
8386         (merge_notes): Likewise.
8387         (walk_to_nondebug_insn): Likewise for param "i1".
8388         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8389         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
8390         "afterlast1", "afterlast2" from rtx to rtx_insn *.
8391         (flow_find_head_matching_sequence): Strengthen params "f1" and
8392         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
8393         "last1", "last2", "beforelast1", "beforelast2" from rtx to
8394         rtx_insn *.
8395         (outgoing_edges_match): Likewise for locals "last1", "last2".
8396         (try_crossjump_to_edge): Likewise for local "insn".
8397         Replace call to for_each_rtx with for_each_rtx_in_insn.
8398
8399         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8400         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8401         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
8402         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8403         (try_optimize_cfg): Strengthen local "last" from rtx to
8404         rtx_insn *.
8405         (delete_dead_jumptables): Likewise for locals "insn", "next",
8406         "label".
8407
8408         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8409         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8410         "rtx else_first_tail", to reflect the basic-block.h changes above.
8411
8412 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8413
8414         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8415         rtx_insn *.
8416         (purge_dead_tablejump_edges): Likewise.
8417         (find_bb_boundaries): Likewise for locals "insn", "end",
8418         "flow_transfer_insn".
8419
8420 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8421
8422         * caller-save.c (save_call_clobbered_regs): Strengthen locals
8423         "ins" and "prev" from rtx to rtx_insn *.
8424
8425 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8426
8427         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8428         rtx_insn *.
8429         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8430         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8431         "scan_start".
8432         (load_register_parameters): Likewise for local "before_arg".
8433         (check_sibcall_argument_overlap): Likewise for param "insn".
8434         (expand_call): Likewise for locals "normal_call_insns",
8435         "tail_call_insns", "insns", "before_call", "after_args",
8436         "before_arg", "last", "prev".  Strengthen one of the "last" from
8437         rtx to rtx_call_insn *.
8438         (fixup_tail_calls): Strengthen local "insn" from rtx to
8439         rtx_insn *.
8440         (emit_library_call_value_1): Likewise for locals "before_call" and
8441         "last".
8442
8443 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8444
8445         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8446         and "last" from rtx to rtx_insn *.
8447         (expand_builtin_nonlocal_goto): Likewise for local "insn".
8448         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8449         rtx_call_insn *.
8450         (expand_errno_check): Strengthen local "lab" from rtx to
8451         rtx_code_label *.
8452         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8453         rtx_insn *.
8454         (expand_builtin_mathfn_2): Likewise.
8455         (expand_builtin_mathfn_ternary): Likewise.
8456         (expand_builtin_mathfn_3): Likewise.
8457         (expand_builtin_interclass_mathfn): Likewise for local "last".
8458         (expand_builtin_int_roundingfn): Likewise for local "insns".
8459         (expand_builtin_int_roundingfn_2): Likewise.
8460         (expand_builtin_strlen): Likewise for local "before_strlen".
8461         (expand_builtin_strncmp): Likewise for local "seq".
8462         (expand_builtin_signbit): Likewise for local "last".
8463         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8464         from rtx to rtx_code_label *.
8465         (expand_stack_restore):  Strengthen local "prev" from rtx to
8466         rtx_insn *.
8467
8468 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8469
8470         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8471         to rtx_insn *.
8472         (struct btr_def_s): Likewise.
8473         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8474         const rtx_insn *.
8475         (add_btr_def): Likewise.
8476         (new_btr_user): Likewise.
8477         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8478         rtx to rtx_insn *.
8479         (link_btr_uses): Likewise.
8480         (move_btr_def): Likewise for locals "insp", "old_insn",
8481         "new_insn".  Add checked cast to rtx_insn * for now on result of
8482         gen_move_insn.
8483         (can_move_up): Strengthen param "insn" from const_rtx to
8484         const rtx_insn *.
8485
8486 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8487
8488         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8489         rtx_insn *.
8490         (get_uncond_jump_length): Likewise for locals "label", "jump".
8491         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8492         "jump", "insn".
8493         (add_labels_and_missing_jumps): Likewise for local "new_jump".
8494         (fix_up_fall_thru_edges): Likewise for local "old_jump".
8495         (find_jump_block): Likewise for local "insn".
8496         (fix_crossing_conditional_branches): Likewise for locals
8497         "old_jump", "new_jump".
8498         (fix_crossing_unconditional_branches): Likewise for locals
8499         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8500         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8501
8502 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8503
8504         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8505         rtx to rtx_insn *.
8506         (struct mem_insn): Likewise for field "insn".
8507         (reg_next_use): Strengthen from rtx * to rtx_insn **.
8508         (reg_next_inc_use): Likewise.
8509         (reg_next_def): Likewise.
8510         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8511         from rtx to rtx_insn *.
8512         (move_insn_before): Likewise for param "next_insn" and local "insns".
8513         (attempt_change): Likewise for local "mov_insn".
8514         (try_merge): Likewise for param "last_insn".
8515         (get_next_ref): Likewise for return type and local "insn".
8516         Strengthen param "next_array" from rtx * to rtx_insn **.
8517         (parse_add_or_inc): Strengthen param "insn" from rtx to
8518         rtx_insn *.
8519         (find_inc): Likewise for locals "insn" and "other_insn" (three of
8520         the latter).
8521         (merge_in_block): Likewise for locals "insn", "curr",
8522         "other_insn".
8523         (pass_inc_dec::execute): Update allocations of the arrays to
8524         reflect the stronger types.
8525
8526 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8527
8528         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8529         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
8530         from rtx to rtx_code_label *.
8531
8532 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8533
8534         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8535         to rtx_insn *.
8536
8537 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8538
8539         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8540         generated a warning and prevented bootstrapping the compiler.
8541
8542 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8543
8544         * rtl.h (delete_related_insns): Strengthen return type from rtx to
8545         rtx_insn *.
8546
8547         * jump.c (delete_related_insns): Likewise, also for locals "next"
8548         and "prev".
8549
8550 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8551
8552         * genautomata.c (output_internal_insn_latency_func): When writing
8553         the function "internal_insn_latency" to insn-automata.c,
8554         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8555         allowing the optional guard function of (define_bypass) clauses to
8556         expect a pair of rtx_insn *, rather than a pair of rtx.
8557         (output_insn_latency_func): When writing the function
8558         "insn_latency", add an "uncast_" prefix to params "insn" and
8559         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8560         using checked casts from the params, thus enabling the above
8561         change to the generated "internal_insn_latency" function.
8562
8563 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
8564
8565         PR tree-optimization/62091
8566         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8567         handle correctly arrays.
8568         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8569         inheritance binfos.
8570         (record_known_type): Walk into inner type.
8571         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8572         condition on no type changes.
8573
8574 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8575
8576         * genattrtab.c (write_attr_get): Within the generated get_attr_
8577         functions, rename param "insn" to "uncast_insn" and reintroduce
8578         "insn" as an local rtx_insn * using a checked cast, so that "insn"
8579         is an rtx_insn * within insn-attrtab.c
8580
8581 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8582
8583         * output.h (peephole): Strengthen return type from rtx to
8584         rtx_insn *.
8585         * rtl.h (delete_for_peephole): Likewise for both params.
8586         * genpeep.c (main): In generated "peephole" function, strengthen
8587         return type and local "insn" from rtx to rtx_insn *.  For now,
8588         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8589         rtx_insn *, with a checked cast.
8590         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8591         locals "insn", "next", "prev" from rtx to rtx_insn *.
8592
8593 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
8594
8595         PR tree-optimization/62112
8596         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8597         * gimple-iterator.h (gsi_replace): Return bool.
8598         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8599         moved from ref_may_alias_global_p.
8600         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8601         New overloads.
8602         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8603         (stmt_kills_ref_p_1): Rename...
8604         (stmt_kills_ref_p): ... to this.
8605         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8606         stmt_kills_ref_p): Declare.
8607         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8608         Move the self-assignment case...
8609         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8610
8611 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8612
8613         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8614
8615         * emit-rtl.c (try_split): Likewise, also for locals "before" and
8616         "after".  For now, don't strengthen param "trial", which requires
8617         adding checked casts when returning it.
8618
8619 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8620
8621         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8622         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
8623         "var_location" hook from rtx to rtx_insn *.
8624         (debug_nothing_rtx): Delete in favor of...
8625         (debug_nothing_rtx_code_label): New prototype.
8626         (debug_nothing_rtx_rtx): Delete unused prototype.
8627         (debug_nothing_rtx_insn): New prototype.
8628
8629         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8630         invoking debug_hooks->var_location (in two places, one in a NOTE
8631         case of a switch statement, the other guarded by a CALL_P
8632         conditional.  Add checked cast to rtx_code_label * when invoking
8633         debug_hooks->label (within CODE_LABEL case of switch statement).
8634
8635         * dbxout.c (dbx_debug_hooks): Update "label" hook from
8636         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
8637         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8638         (xcoff_debug_hooks): Likewise.
8639         * debug.c (do_nothing_debug_hooks): Likewise.
8640         (debug_nothing_rtx): Delete in favor of...
8641         (debug_nothing_rtx_insn): New function.
8642         (debug_nothing_rtx_rtx): Delete unused function.
8643         (debug_nothing_rtx_code_label): New function.
8644         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8645         debug_nothing_rtx to debug_nothing_rtx_code_label.
8646         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8647         to rtx_insn *.
8648         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8649         debug_nothing_rtx to debug_nothing_rtx_insn.
8650         (sdbout_label): Strengthen param "insn" from rtx to
8651         rtx_code_label *.
8652         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8653         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
8654         "var_location" hook from debug_nothing_rtx to
8655         debug_nothing_rtx_insn.
8656
8657 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8658
8659         * recog.h (insn_output_fn): Update this function typedef to match
8660         the changes below to the generated output functions, strengthening
8661         the 2nd param from rtx to rtx_insn *.
8662
8663         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8664         insn when invoking an output function, to match the new signature
8665         of insn_output_fn with a stronger second param.
8666
8667         * genconditions.c (write_header): In the generated code for
8668         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8669         to match the other changes in this patch.
8670
8671         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8672         the generated "gen_" functions from rtx to rtx_insn * within their
8673         implementations.
8674
8675         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8676         the subfunctions within the generated "recog_", "split", "peephole2"
8677         function trees from rtx to rtx_insn *.  For now, the top-level
8678         generated functions ("recog", "split", "peephole2") continue to
8679         take a plain rtx for "insn", to avoid introducing dependencies on
8680         other patches.  Rename this 2nd param from "insn" to
8681         "uncast_insn", and reintroduce "insn" as a local variable of type
8682         rtx_insn *, initialized at the top of the generated function with
8683         a checked cast on "uncast_insn".
8684         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8685         the generated "gen_" functions from rtx to rtx_insn * within their
8686         prototypes.
8687
8688         * genoutput.c (process_template): Strengthen the 2nd param within
8689         the generated "output_" functions "insn" from rtx to rtx_insn *.
8690
8691 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
8692
8693         * tree-profile.c (tree_profiling): Skip external functions
8694         when doing coverage instrumentation.
8695         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8696
8697 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8698
8699         * config/rs6000/altivec.h (vec_cpsgn): New #define.
8700         (vec_mergee): Likewise.
8701         (vec_mergeo): Likewise.
8702         (vec_cntlz): Likewise.
8703         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8704         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8705         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8706         VMRGEW, and VMRGOW.
8707         * doc/extend.texi: Document various forms of vec_cpsgn,
8708         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8709         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8710         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8711         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8712         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8713
8714 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8715
8716         * config/rs6000/rs6000.c (context.h): New include.
8717         (tree-pass.h): Likewise.
8718         (make_pass_analyze_swaps): New decl.
8719         (rs6000_option_override): Register pass_analyze_swaps.
8720         (swap_web_entry): New subsclass of web_entry_base (df.h).
8721         (special_handling_values): New enum.
8722         (union_defs): New function.
8723         (union_uses): Likewise.
8724         (insn_is_load_p): Likewise.
8725         (insn_is_store_p): Likewise.
8726         (insn_is_swap_p): Likewise.
8727         (rtx_is_swappable_p): Likewise.
8728         (insn_is_swappable_p): Likewise.
8729         (chain_purpose): New enum.
8730         (chain_contains_only_swaps): New function.
8731         (mark_swaps_for_removal): Likewise.
8732         (swap_const_vector_halves): Likewise.
8733         (adjust_subreg_index): Likewise.
8734         (permute_load): Likewise.
8735         (permute_store): Likewise.
8736         (handle_special_swappables): Likewise.
8737         (replace_swap_with_copy): Likewise.
8738         (dump_swap_insn_table): Likewise.
8739         (rs6000_analyze_swaps): Likewise.
8740         (pass_data_analyze_swaps): New pass_data.
8741         (pass_analyze_swaps): New rtl_opt_pass.
8742         (make_pass_analyze_swaps): New function.
8743         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8744
8745 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8746
8747         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8748         type from rtx to rtx_insn *.
8749         (create_copy_of_insn_rtx): Likewise.
8750         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8751         (create_copy_of_insn_rtx): Likewise, also for local "res".
8752
8753 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8754
8755         * rtl.h (find_first_parameter_load): Strengthen return type from
8756         rtx to rtx_insn *.
8757         * rtlanal.c (find_first_parameter_load): Strengthen return type
8758         from rtx to rtx_insn *.  Add checked cast for now, to postpone
8759         strengthening the params.
8760
8761 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8762
8763         PR fortran/44054
8764         * diagnostic.c: Set default caret.
8765         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8766         line is needed.
8767         * diagnostic.h (struct diagnostic_context):
8768
8769 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8770
8771         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8772         (sel_bb_head): Strengthen return type insn_t (currently just an
8773         rtx) to rtx_insn *.
8774         (sel_bb_end): Likewise.
8775
8776         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8777         (sel_bb_head): Strengthen return type and local "head" from
8778         insn_t (currently just an rtx) to rtx_insn *.
8779         (sel_bb_end): Likewise for return type.
8780         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8781         working with insn.
8782
8783 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8784
8785         * basic-block.h (get_last_bb_insn): Strengthen return type from
8786         rtx to rtx_insn *.
8787         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8788         end".
8789
8790 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8791
8792         PR fortran/44054
8793         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8794          to here ...
8795         (diagnostic_report_diagnostic): ... from here.
8796         * toplev.c (general_init): Move code to c-family.
8797
8798 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8799
8800         * df.h (web_entry_base): Replace existing struct web_entry with a
8801         new class web_entry_base with only the predecessor member.
8802         (unionfind_root): Remove declaration and move to class member.
8803         (unionfind_union): Remove declaration and move to friend
8804         function.
8805         (union_defs): Remove declaration.
8806         * web.c (web_entry_base::unionfind_root): Modify to be member
8807         function and adjust accessors.
8808         (unionfind_union): Modify to be friend function and adjust
8809         accessors.
8810         (web_entry): New subclass of web_entry_base containing the reg
8811         member.
8812         (union_match_dups): Modify for struct -> class changes.
8813         (union_defs): Likewise.
8814         (entry_register): Likewise.
8815         (pass_web::execute): Likewise.
8816
8817 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
8818
8819         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8820         builtin define __VEC_ELEMENT_REG_ORDER__.
8821
8822 2014-08-20  Martin Jambor  <mjambor@suse.cz>
8823             Wei Mi  <wmi@google.com>
8824
8825         PR ipa/60449
8826         PR middle-end/61776
8827         * tree-ssa-operands.c (update_stmt_operands): Remove
8828         MODIFIED_NORETURN_CALLS.
8829         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8830         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8831         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8832         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8833         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8834         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8835         (gimple_call_set_ctrl_altering): New func.
8836         (gimple_call_ctrl_altering_p): Ditto.
8837         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8838         (make_blocks): Use gimple_call_initialize_ctrl_altering.
8839         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8840         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8841         remove MODIFIED_NORETURN_CALLS.
8842
8843 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
8844
8845         * coverage.c (coverage_compute_profile_id): Return non-0;
8846         also handle symbols with unique name.
8847         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8848
8849 2014-08-20  Steve Ellcey  <sellcey@mips.com>
8850
8851         PR middle-end/49191
8852         * doc/sourcebuild.texi (non_strict_align): New.
8853
8854 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
8855
8856         * cgraphunit.c (ipa_passes, compile): Reshedule
8857         symtab_remove_unreachable_nodes passes; update comments.
8858         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8859         TODO_remove_functions before the pass; the functions ought to be
8860         already removed.
8861         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8862         TODO_remove_functions.
8863         * passes.c (pass_data_early_local_passes): Do not schedule function
8864         removal.
8865         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8866
8867 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8868
8869         PR c/59304
8870         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8871         before setting the option.
8872         * diagnostic.c (diagnostic_classify_diagnostic): Record
8873         command-line status.
8874
8875 2014-08-20  Richard Biener  <rguenther@suse.de>
8876
8877         PR lto/62190
8878         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8879         to build uint{16,32,64}_type_node.
8880
8881 2014-08-20  Terry Guo  <terry.guo@arm.com>
8882
8883         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8884         with immediate_operand.
8885
8886 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
8887
8888         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8889         "insn" from an as_a to a safe_as_a, for the case when "insn" is
8890         NULL.
8891
8892 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8893
8894         PR preprocessor/51303
8895         * incpath.c (remove_duplicates): Use cpp_warning.
8896
8897 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8898
8899         PR c/60975
8900         PR c/53063
8901         * doc/options.texi (CPP): Document it.
8902         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8903         * optc-gen.awk: Handle CPP.
8904         * opth-gen.awk: Likewise.
8905
8906 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8907
8908         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8909         rtx_insn *.
8910         (duplicate_insn_chain): Likewise.
8911         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8912         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
8913         checked cast for now (until we can strengthen the params in the
8914         same way).
8915         (duplicate_insn_chain): Likewise.
8916
8917 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8918
8919         * rtl.h (next_cc0_user): Strengthen return type from rtx to
8920         rtx_insn *.
8921         (prev_cc0_setter): Likewise.
8922
8923         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8924         rtx_insn *, adding checked casts for now as necessary.
8925         (prev_cc0_setter): Likewise.
8926
8927 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8928
8929         * expr.h (emit_move_insn): Strengthen return type from rtx to
8930         rtx_insn *.
8931         (emit_move_insn_1): Likewise.
8932         (emit_move_complex_push): Likewise.
8933         (emit_move_complex_parts): Likewise.
8934
8935         * expr.c (emit_move_via_integer): Strengthen return type from rtx
8936         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
8937         with insns.
8938         (emit_move_complex_push): Strengthen return type from rtx to
8939         rtx_insn *.
8940         (emit_move_complex): Likewise, also for local "ret".
8941         (emit_move_ccmode): Likewise.
8942         (emit_move_multi_word): Likewise for return type and locals
8943         "last_insn", "seq".
8944         (emit_move_insn_1): Likewise for return type and locals "result",
8945         "ret".
8946         (emit_move_insn): Likewise for return type and local "last_insn".
8947         (compress_float_constant): Likewise.
8948
8949 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8950
8951         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8952         from rtx to rtx_insn *.
8953
8954         * rtl.h (emit_insn_before): Likewise.
8955         (emit_insn_before_noloc): Likewise.
8956         (emit_insn_before_setloc): Likewise.
8957         (emit_jump_insn_before): Likewise.
8958         (emit_jump_insn_before_noloc): Likewise.
8959         (emit_jump_insn_before_setloc): Likewise.
8960         (emit_call_insn_before): Likewise.
8961         (emit_call_insn_before_noloc): Likewise.
8962         (emit_call_insn_before_setloc): Likewise.
8963         (emit_debug_insn_before): Likewise.
8964         (emit_debug_insn_before_noloc): Likewise.
8965         (emit_debug_insn_before_setloc): Likewise.
8966         (emit_label_before): Likewise.
8967         (emit_insn_after): Likewise.
8968         (emit_insn_after_noloc): Likewise.
8969         (emit_insn_after_setloc): Likewise.
8970         (emit_jump_insn_after): Likewise.
8971         (emit_jump_insn_after_noloc): Likewise.
8972         (emit_jump_insn_after_setloc): Likewise.
8973         (emit_call_insn_after): Likewise.
8974         (emit_call_insn_after_noloc): Likewise.
8975         (emit_call_insn_after_setloc): Likewise.
8976         (emit_debug_insn_after): Likewise.
8977         (emit_debug_insn_after_noloc): Likewise.
8978         (emit_debug_insn_after_setloc): Likewise.
8979         (emit_label_after): Likewise.
8980         (emit_insn): Likewise.
8981         (emit_debug_insn): Likewise.
8982         (emit_jump_insn): Likewise.
8983         (emit_call_insn): Likewise.
8984         (emit_label): Likewise.
8985         (gen_clobber): Likewise.
8986         (emit_clobber): Likewise.
8987         (gen_use): Likewise.
8988         (emit_use): Likewise.
8989         (emit): Likewise.
8990
8991         (emit_barrier_before): Strengthen return type from rtx to
8992         rtx_barrier *.
8993         (emit_barrier_after): Likewise.
8994         (emit_barrier): Likewise.
8995
8996         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
8997         from rtx to rtx_insn *.  Add checked casts for now when converting
8998         "last" from rtx to rtx_insn *.
8999         (emit_insn_before_noloc): Likewise for return type.
9000         (emit_jump_insn_before_noloc): Likewise.
9001         (emit_call_insn_before_noloc): Likewise.
9002         (emit_debug_insn_before_noloc): Likewise.
9003         (emit_barrier_before): Strengthen return type and local "insn"
9004         from rtx to rtx_barrier *.
9005         (emit_label_before): Strengthen return type from rtx to
9006         rtx_insn *.  Add checked cast for now when returning param
9007         (emit_pattern_after_noloc): Strengthen return type from rtx to
9008         rtx_insn *.  Add checked casts for now when converting "last" from
9009         rtx to rtx_insn *.
9010         (emit_insn_after_noloc): Strengthen return type from rtx to
9011         rtx_insn *.
9012         (emit_jump_insn_after_noloc): Likewise.
9013         (emit_call_insn_after_noloc): Likewise.
9014         (emit_debug_insn_after_noloc): Likewise.
9015         (emit_barrier_after): Strengthen return type from rtx to
9016         rtx_barrier *.
9017         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9018         Add checked cast for now when converting "label" from rtx to
9019         rtx_insn *.
9020         (emit_pattern_after_setloc): Strengthen return type from rtx to
9021         rtx_insn *.  Add checked casts for now when converting "last" from
9022         rtx to rtx_insn *.
9023         (emit_pattern_after): Strengthen return type from rtx to
9024         rtx_insn *.
9025         (emit_insn_after_setloc): Likewise.
9026         (emit_insn_after): Likewise.
9027         (emit_jump_insn_after_setloc): Likewise.
9028         (emit_jump_insn_after): Likewise.
9029         (emit_call_insn_after_setloc): Likewise.
9030         (emit_call_insn_after): Likewise.
9031         (emit_debug_insn_after_setloc): Likewise.
9032         (emit_debug_insn_after): Likewise.
9033         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
9034         when converting "last" from rtx to rtx_insn *.
9035         (emit_pattern_before): Strengthen return type from rtx to
9036         rtx_insn *.
9037         (emit_insn_before_setloc): Likewise.
9038         (emit_insn_before): Likewise.
9039         (emit_jump_insn_before_setloc): Likewise.
9040         (emit_jump_insn_before): Likewise.
9041         (emit_call_insn_before_setloc): Likewise.
9042         (emit_call_insn_before): Likewise.
9043         (emit_debug_insn_before_setloc): Likewise.
9044         (emit_debug_insn_before): Likewise.
9045         (emit_insn): Strengthen return type and locals "last", "insn",
9046         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
9047         within cases where we know we have an insn.
9048         (emit_debug_insn): Likewise.
9049         (emit_jump_insn): Likewise.
9050         (emit_call_insn): Strengthen return type and local "insn" from rtx
9051         to rtx_insn *.
9052         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
9053         a checked cast to rtx_insn * for now on "label".
9054         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9055         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9056         (emit_use): Likewise.
9057         (gen_use): Likewise, also for local "seq".
9058         (emit): Likewise for return type and local "insn".
9059         (rtx_insn): Likewise for return type and local "new_rtx".
9060
9061         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9062         from rtx to rtx_barrier *.
9063
9064         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9065         changed return type from rtx to rtx_insn *, we must update
9066         "emit_fn" type, and this in turn means updating...
9067         (frame_insn): ...this.  Strengthen return type from rtx to
9068         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
9069
9070 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9071
9072         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9073         rtx to rtx_jump_table_data *.  Also for local.
9074         * rtl.h (emit_jump_table_data): Likewise.
9075
9076 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9077
9078         * basic-block.h (create_basic_block_structure): Strengthen third
9079         param "bb_note" from rtx to rtx_note *.
9080         * rtl.h (emit_note_before): Strengthen return type from rtx to
9081         rtx_note *.
9082         (emit_note_after): Likewise.
9083         (emit_note): Likewise.
9084         (emit_note_copy): Likewise.  Also, strengthen param similarly.
9085         * function.h (struct rtl_data): Strengthen field
9086         "x_stack_check_probe_note" from rtx to rtx_note *.
9087
9088         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9089         from rtx to rtx_note *.
9090         * cfgrtl.c (create_basic_block_structure): Strengthen third param
9091         "bb_note" from rtx to rtx_note *.
9092         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
9093         when calling emit_note_copy.
9094         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9095         rtx_note *.
9096         (emit_note_after): Likewise.
9097         (emit_note_before): Likewise.
9098         (emit_note_copy): Likewise.  Also, strengthen param similarly.
9099         (emit_note): Likewise.
9100         * except.c (emit_note_eh_region_end): Likewise for return type.
9101         Strengthen local "next" from rtx to rtx_insn *.
9102         (convert_to_eh_region_ranges): Strengthen local "note"
9103         from rtx to rtx_note *.
9104         * final.c (change_scope): Likewise.
9105         (reemit_insn_block_notes): Likewise, for both locals named "note".
9106         Also, strengthen local "insn" from rtx to rtx_insn *.
9107         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9108         rtx to rtx_note *.
9109         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9110         strengthen local "seq" from rtx to rtx_insn *.
9111         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9112         to rtx_note *.
9113         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9114         vec<rtx_note *>.
9115         (get_bb_note_from_pool): Strengthen return type from rtx to
9116         rtx_note *.
9117         (sel_create_basic_block): Strengthen local "new_bb_note" from
9118         insn_t to rtx_note *.
9119         * var-tracking.c (emit_note_insn_var_location): Strengthen local
9120         "note" from rtx to rtx_note *.
9121         (emit_notes_in_bb): Likewise.
9122
9123 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9124
9125         * function.h (struct rtl_data): Strengthen field
9126         "x_parm_birth_insn" from rtx to rtx_insn *.
9127         * function.c (struct assign_parm_data_all): Strengthen fields
9128         "first_conversion_insn" and "last_conversion_insn" from rtx to
9129         rtx_insn *.
9130
9131 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9132
9133         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9134         to rtx_insn *; also for local "var_end_seq".
9135         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9136         (maybe_cleanup_end_of_block): Likewise for param "last" and local
9137         "insn".
9138         (expand_gimple_cond): Likewise for locals "last2" and "last".
9139         (mark_transaction_restart_calls): Likewise for local "insn".
9140         (expand_gimple_stmt): Likewise for return type and locals "last"
9141         and "insn".
9142         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9143         (avoid_complex_debug_insns): Likewise for param "insn".
9144         (expand_debug_locations): Likewise for locals "insn", "last",
9145         "prev_insn" and "insn2".
9146         (expand_gimple_basic_block): Likewise for local "last".
9147         (construct_exit_block): Likewise for locals "head", "end",
9148         "orig_end".
9149         (pass_expand::execute): Likewise for locals "var_seq",
9150         "var_ret_seq", "next".
9151
9152 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9153
9154         * asan.h (asan_emit_stack_protection): Strengthen return type from
9155         rtx to rtx_insn *.
9156         * asan.c (asan_emit_stack_protection): Likewise.  Add local
9157         "insns" to hold the return value.
9158
9159 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9160
9161         * basic-block.h (bb_note): Strengthen return type from rtx to
9162         rtx_note *.
9163         * sched-int.h (bb_note): Likewise.
9164         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
9165
9166 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9167
9168         * rtl.h (make_insn_raw): Strengthen return type from rtx to
9169         rtx_insn *.
9170
9171         * emit-rtl.c (make_insn_raw): Strengthen return type and local
9172         "insn" from rtx to rtx_insn *.
9173         (make_debug_insn_raw): Strengthen return type from rtx to
9174         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9175         (make_jump_insn_raw):  Strengthen return type from rtx to
9176         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9177         (make_call_insn_raw):  Strengthen return type from rtx to
9178         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9179         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9180         callback from rtx to rtx_insn *; likewise for local "insn" and
9181         "next", adding a checked cast to rtx_insn in the relevant cases of
9182         the switch statement.
9183         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9184         callback from rtx to rtx_insn *.
9185         (emit_pattern_after_setloc): Likewise.
9186         (emit_pattern_after): Likewise.
9187         (emit_pattern_before_setloc): Likewise.
9188         (emit_pattern_before): Likewise.
9189
9190 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9191
9192         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9193         rtx_call_insn *.
9194         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9195         accepting an rtx_insn *.
9196         (last_call_insn): Strengthen return type from rtx to
9197         rtx_call_insn *.
9198
9199 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9200
9201         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9202         "insns" from rtx to rtx_insn *.
9203         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9204         locals "insn" and "prev".
9205
9206 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9207
9208         * rtl.h (tablejump_p): Strengthen third param from rtx * to
9209         rtx_jump_table_data **.
9210
9211         * cfgbuild.c (make_edges): Introduce local "table", using it in
9212         place of "tmp" for jump table data.
9213         (find_bb_boundaries): Strengthen local "table" from rtx to
9214         rtx_jump_table_data *.
9215         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9216         (outgoing_edges_match): Likewise for locals "table1" and "table2".
9217         (try_crossjump_to_edge): Likewise.
9218         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9219         "table".
9220         (patch_jump_insn): Introduce local "table", using it in place of
9221         "tmp" for jump table data.
9222         (force_nonfallthru_and_redirect): Introduce local "table", so that
9223         call to tablejump_p can receive an rtx_jump_table_data **.  Update
9224         logic around the call to overwrite "note" appropriately if
9225         tablejump_p returns non-zero.
9226         (get_last_bb_insn): Introduce local "table", using it in place of
9227         "tmp" for jump table data.
9228         * dwarf2cfi.c (create_trace_edges): Likewise.
9229
9230         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9231         from rtx to rtx_jump_table_data *.
9232         (create_fix_barrier): Strengthen local "tmp" from rtx to
9233         rtx_jump_table_data *.
9234         (arm_reorg): Likewise for local "table".
9235
9236         * config/s390/s390.c (s390_chunkify_start): Likewise.
9237
9238         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9239
9240         * jump.c (delete_related_insns): Strengthen local "lab_next" from
9241         rtx to rtx_jump_table_data *.
9242
9243         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9244         rtx_jump_table_data **.  Add a checked cast when writing through
9245         the pointer: we know there that local "table" is non-NULL and that
9246         JUMP_TABLE_DATA_P (table) holds.
9247         (label_is_jump_target_p): Introduce local "table", using it in
9248         place of "tmp" for jump table data.
9249
9250 2014-08-19  Marek Polacek  <polacek@redhat.com>
9251
9252         PR c++/62153
9253         * doc/invoke.texi: Document -Wbool-compare.
9254
9255 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9256
9257         * rtl.h (entry_of_function): Strengthen return type from rtx to
9258         rtx_insn *.
9259         * cfgrtl.c (entry_of_function): Likewise.
9260
9261 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9262
9263         * emit-rtl.h (get_insns): Strengthen return type from rtx to
9264         rtx_insn *, adding a checked cast for now.
9265         (get_last_insn): Likewise.
9266
9267 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9268
9269         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9270         rtx_code_label *.
9271
9272         * emit-rtl.c (gen_label_rtx): Likewise.
9273
9274 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9275
9276         * rtl.h (previous_insn): Strengthen return type from rtx to
9277         rtx_insn *.
9278         (next_insn): Likewise.
9279         (prev_nonnote_insn): Likewise.
9280         (prev_nonnote_insn_bb): Likewise.
9281         (next_nonnote_insn): Likewise.
9282         (next_nonnote_insn_bb): Likewise.
9283         (prev_nondebug_insn): Likewise.
9284         (next_nondebug_insn): Likewise.
9285         (prev_nonnote_nondebug_insn): Likewise.
9286         (next_nonnote_nondebug_insn): Likewise.
9287         (prev_real_insn): Likewise.
9288         (next_real_insn): Likewise.
9289         (prev_active_insn): Likewise.
9290         (next_active_insn): Likewise.
9291
9292         * emit-rtl.c (next_insn): Strengthen return type from rtx to
9293         rtx_insn *, adding a checked cast.
9294         (previous_insn): Likewise.
9295         (next_nonnote_insn): Likewise.
9296         (next_nonnote_insn_bb): Likewise.
9297         (prev_nonnote_insn): Likewise.
9298         (prev_nonnote_insn_bb): Likewise.
9299         (next_nondebug_insn): Likewise.
9300         (prev_nondebug_insn): Likewise.
9301         (next_nonnote_nondebug_insn): Likewise.
9302         (prev_nonnote_nondebug_insn): Likewise.
9303         (next_real_insn): Likewise.
9304         (prev_real_insn): Likewise.
9305         (next_active_insn): Likewise.
9306         (prev_active_insn): Likewise.
9307
9308         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9309         param "stepfunc" so that it returns an rtx_insn * rather than an
9310         rtx, to track the change to prev_nonnote_insn_bb, which is the
9311         only function this is called with.
9312         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9313
9314 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
9315
9316         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9317         assert.
9318
9319 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9320
9321         * coretypes.h (class rtx_debug_insn): Add forward declaration.
9322         (class rtx_nonjump_insn): Likewise.
9323         (class rtx_jump_insn): Likewise.
9324         (class rtx_call_insn): Likewise.
9325         (class rtx_jump_table_data): Likewise.
9326         (class rtx_barrier): Likewise.
9327         (class rtx_code_label): Likewise.
9328         (class rtx_note): Likewise.
9329
9330         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9331         adding the invariant DEBUG_INSN_P (X).
9332         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9333         the invariant NONJUMP_INSN_P (X).
9334         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9335         the invariant JUMP_P (X).
9336         (class rtx_call_insn): New, a subclass of rtx_insn, adding
9337         the invariant CALL_P (X).
9338         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9339         invariant JUMP_TABLE_DATA_P (X).
9340         (class rtx_barrier): New, a subclass of rtx_insn, adding the
9341         invariant BARRIER_P (X).
9342         (class rtx_code_label): New, a subclass of rtx_insn, adding
9343         the invariant LABEL_P (X).
9344         (class rtx_note): New, a subclass of rtx_insn, adding
9345         the invariant NOTE_P(X).
9346         (is_a_helper <rtx_debug_insn *>::test): New.
9347         (is_a_helper <rtx_nonjump_insn *>::test): New.
9348         (is_a_helper <rtx_jump_insn *>::test): New.
9349         (is_a_helper <rtx_call_insn *>::test): New.
9350         (is_a_helper <rtx_jump_table_data *>::test): New functions,
9351         overloaded for both rtx and rtx_insn *.
9352         (is_a_helper <rtx_barrier *>::test): New.
9353         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9354         for both rtx and rtx_insn *.
9355         (is_a_helper <rtx_note *>::test): New.
9356
9357 2014-08-19  Marek Polacek  <polacek@redhat.com>
9358
9359         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9360         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9361         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9362         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9363
9364 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9365
9366         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9367         rtx_insn *.  To help with transition, for now, convert from an
9368         access macro into a pair of functions: BND_TO, returning an
9369         rtx_insn *, and...
9370         (SET_BND_TO): New function, for use where BND_TO is used as an
9371         lvalue.
9372
9373         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9374         SET_BND_TO.
9375         (BND_TO): New function, adding a checked cast.
9376         (SET_BND_TO): New function.
9377
9378         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9379         SET_BND_TO.
9380         (compute_av_set_on_boundaries): Likewise.
9381
9382 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9383
9384         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9385         destination if it is used in source.
9386         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9387         (*popcount<mode>2_falsedep_1): Likewise.
9388
9389 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9390
9391         PR other/62168
9392         * configure.ac: Set install_gold_as_default to no first.
9393         * configure: Regenerated.
9394
9395 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9396
9397         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9398         "note_list" field will eventually be an rtx_insn *.  To help with
9399         transition, for now, convert from an access macro into a pair of
9400         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9401         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9402         used as an lvalue.
9403
9404         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9405         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9406
9407         * sel-sched-ir.c (init_bb): Likewise.
9408         (sel_restore_notes): Likewise.
9409         (move_bb_info): Likewise.
9410         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9411         (SET_BB_NOTE_LIST): New function.
9412
9413 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9414
9415         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9416         field will eventually be an rtx_insn *.  To help with transition,
9417         for now, convert from an access macro into a pair of functions:
9418         VINSN_INSN_RTX, returning an rtx_insn *, and...
9419         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9420         is used as an lvalue.
9421
9422         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9423         SET_VINSN_INSN_RTX where it's used as an lvalue.
9424         (VINSN_INSN_RTX): New function.
9425         (SET_VINSN_INSN_RTX): New function.
9426
9427 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9428
9429         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9430         eventually be rtx_insn *, but to help with transition, for now,
9431         convert from an access macro into a pair of functions: DEP_PRO
9432         returning an rtx_insn * and...
9433         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9434         lvalue, returning an rtx&.
9435         (DEP_CON): Analogous changes to DEP_PRO above.
9436         (SET_DEP_CON): Likewise.
9437
9438         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9439         an lvalue to SET_DEP_CON.
9440         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9441         (sd_copy_back_deps): Likewise for DEP_CON.
9442         (DEP_PRO): New function, adding a checked cast for now.
9443         (DEP_CON): Likewise.
9444         (SET_DEP_PRO): New function.
9445         (SET_DEP_CON): Likewise.
9446
9447 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
9448
9449         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9450         (extra_options): Add i386/cygwin.opt.
9451         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9452         (CPP_SPEC): Accept -pthread.
9453         (LINK_SPEC): Ditto.
9454         (GOMP_SELF_SPECS): Update comment.
9455         * config/i386/cygwin.opt: New file for -pthread flag.
9456
9457 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9458
9459         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9460         * df.h (DF_REF_INSN): Convert from a macro to a function, so
9461         that we can return an rtx_insn *.
9462
9463 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
9464
9465         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9466         when building executables, not DLLs.  Add --large-address-aware
9467         under the same conditions.
9468         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9469         when building executables, not DLLs.  Add --large-address-aware
9470         under the same conditions when using -m32.
9471
9472         * config/i386/cygwin-stdint.h: Throughout, make type
9473         definitions dependent on target architecture, not host.
9474
9475 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9476
9477         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
9478         the return type from rtx to rtx_insn *,  which will enable various
9479         conversions in followup patches.  For now this is is done by a
9480         checked cast.
9481         (NEXT_INSN): Likewise.
9482         (SET_PREV_INSN): Convert to an inline function.  This is intended
9483         for use as an lvalue, and so returns an rtx& to allow in-place
9484         modification.
9485         (SET_NEXT_INSN): Likewise.
9486
9487 2014-07-08  Mark Wielaard  <mjw@redhat.com>
9488
9489         PR debug/59051
9490         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9491
9492 2014-08-19  Marek Polacek  <polacek@redhat.com>
9493
9494         PR c/61271
9495         * cgraphunit.c (handle_alias_pairs): Fix condition.
9496
9497 2014-08-19  Richard Biener  <rguenther@suse.de>
9498
9499         * gimple-fold.c (fold_gimple_assign): Properly build a
9500         null-pointer constant when devirtualizing addresses.
9501
9502 2014-07-07  Mark Wielaard  <mjw@redhat.com>
9503
9504         * dwarf2out.c (decl_quals): New function.
9505         (modified_type_die): Take one cv_quals argument instead of two,
9506         one for const and one for volatile.
9507         (add_type_attribute): Likewise.
9508         (generic_parameter_die): Call add_type_attribute with one modifier
9509         argument.
9510         (base_type_for_mode): Likewise.
9511         (add_bounds_info): Likewise.
9512         (add_subscript_info): Likewise.
9513         (gen_array_type_die): Likewise.
9514         (gen_descr_array_type_die): Likewise.
9515         (gen_entry_point_die): Likewise.
9516         (gen_enumeration_type_die): Likewise.
9517         (gen_formal_parameter_die): Likewise.
9518         (gen_subprogram_die): Likewise.
9519         (gen_variable_die): Likewise.
9520         (gen_const_die): Likewise.
9521         (gen_field_die): Likewise.
9522         (gen_pointer_type_die): Likewise.
9523         (gen_reference_type_die): Likewise.
9524         (gen_ptr_to_mbr_type_die): Likewise.
9525         (gen_inheritance_die): Likewise.
9526         (gen_subroutine_type_die): Likewise.
9527         (gen_typedef_die): Likewise.
9528         (force_type_die): Likewise.
9529
9530 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9531
9532         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9533         if unset.
9534         * configure: Regenerate.
9535
9536 2014-08-19  Richard Biener  <rguenther@suse.de>
9537
9538         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9539         DECL_EXTERNALs in BLOCKs as non-references.
9540         * tree-streamer-out.c (streamer_write_chain): Likewise.
9541
9542 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9543             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9544             Anna Tikhonova  <anna.tikhonova@intel.com>
9545             Ilya Tocar  <ilya.tocar@intel.com>
9546             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9547             Ilya Verbin  <ilya.verbin@intel.com>
9548             Kirill Yukhin  <kirill.yukhin@intel.com>
9549             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9550
9551         * config/i386/sse.md
9552         (define_mode_iterator VI48_AVX512F): Delete.
9553         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9554         (define_mode_iterator VI2_AVX512VL): Ditto.
9555         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9556         Delete.
9557         (define_insn
9558         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9559         New.
9560         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9561         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9562         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9563         with VI48_AVX512F_AVX512VL): New.
9564         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9565         with VI2_AVX512VL): Ditto.
9566
9567 2014-08-19  Marek Polacek  <polacek@redhat.com>
9568
9569         * doc/invoke.texi: Document -Wc99-c11-compat.
9570
9571 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9572
9573         * rtl.h (PREV_INSN): Split macro in two: the existing one,
9574         for rvalues, and...
9575         (SET_PREV_INSN): New macro, for use as an lvalue.
9576         (NEXT_INSN, SET_NEXT_INSN): Likewise.
9577
9578         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9579         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9580         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9581         (fixup_abnormal_edges): Likewise.
9582         (unlink_insn_chain): Likewise.
9583         (fixup_reorder_chain): Likewise.
9584         (cfg_layout_delete_block): Likewise.
9585         (cfg_layout_merge_blocks): Likewise.
9586         * combine.c (update_cfg_for_uncondjump): Likewise.
9587         * emit-rtl.c (link_insn_into_chain): Likewise.
9588         (remove_insn): Likewise.
9589         (delete_insns_since): Likewise.
9590         (reorder_insns_nobb): Likewise.
9591         (emit_insn_after_1): Likewise.
9592         * final.c (rest_of_clean_state): Likewise.
9593         (final_scan_insn): Likewise.
9594         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9595         * haifa-sched.c (concat_note_lists): Likewise.
9596         (remove_notes): Likewise.
9597         (restore_other_notes): Likewise.
9598         (move_insn): Likewise.
9599         (unlink_bb_notes): Likewise.
9600         (restore_bb_notes): Likewise.
9601         * jump.c (delete_for_peephole): Likewise.
9602         * optabs.c (emit_libcall_block_1): Likewise.
9603         * reorg.c (emit_delay_sequence): Likewise.
9604         (fill_simple_delay_slots): Likewise.
9605         * sel-sched-ir.c (sel_move_insn): Likewise.
9606         (sel_remove_insn): Likewise.
9607         (get_bb_note_from_pool): Likewise.
9608         * sel-sched.c (move_nop_to_previous_block): Likewise.
9609
9610         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9611         * config/c6x/c6x.c (gen_one_bundle): Likewise.
9612         (c6x_gen_bundles): Likewise.
9613         (hwloop_optimize): Likewise.
9614         * config/frv/frv.c (frv_function_prologue): Likewise.
9615         (frv_register_nop): Likewise.
9616         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9617         (ia64_reorg): Likewise.
9618         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9619         (mep_make_bundle): Likewise.
9620         (mep_bundle_insns): Likewise.
9621         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9622         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9623         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9624
9625 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9626
9627         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
9628         return type from rtx to rtx_insn *.
9629         (BB_END): Likewise.
9630         (BB_HEADER): Likewise.
9631         (BB_FOOTER): Likewise.
9632         (SET_BB_HEAD): Convert to a function.
9633         (SET_BB_END): Likewise.
9634         (SET_BB_HEADER): Likewise.
9635         (SET_BB_FOOTER): Likewise.
9636
9637         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9638         Strengthen the return type from rtx to rtx_insn *.  For now, this
9639         is done by adding a checked cast, but this will eventually
9640         become a field lookup.
9641         (BB_END): Likewise.
9642         (BB_HEADER): Likewise.
9643         (BB_FOOTER): Likewise.
9644         (SET_BB_HEAD): New function, from macro of same name.  This is
9645         intended for use as an lvalue, and so returns an rtx& to allow
9646         in-place modification.
9647         (SET_BB_END): Likewise.
9648         (SET_BB_HEADER): Likewise.
9649         (SET_BB_FOOTER): Likewise.
9650
9651 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9652
9653         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9654         for rvalues, and...
9655         (SET_BB_HEAD): New macro, for use as a lvalue.
9656         (BB_END, SET_BB_END): Likewise.
9657         (BB_HEADER, SET_BB_HEADER): Likewise.
9658         (BB_FOOTER, SET_BB_FOOTER): Likewise.
9659
9660         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9661         of BB_* macros into SET_BB_* macros.
9662         (fix_crossing_unconditional_branches): Likewise.
9663         * caller-save.c (save_call_clobbered_regs): Likewise.
9664         (insert_one_insn): Likewise.
9665         * cfgbuild.c (find_bb_boundaries): Likewise.
9666         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9667         (outgoing_edges_match): Likewise.
9668         (try_optimize_cfg): Likewise.
9669         * cfgexpand.c (expand_gimple_cond): Likewise.
9670         (expand_gimple_tailcall): Likewise.
9671         (expand_gimple_basic_block): Likewise.
9672         (construct_exit_block): Likewise.
9673         * cfgrtl.c (delete_insn): Likewise.
9674         (create_basic_block_structure): Likewise.
9675         (rtl_delete_block): Likewise.
9676         (rtl_split_block): Likewise.
9677         (emit_nop_for_unique_locus_between): Likewise.
9678         (rtl_merge_blocks): Likewise.
9679         (block_label): Likewise.
9680         (try_redirect_by_replacing_jump): Likewise.
9681         (emit_barrier_after_bb): Likewise.
9682         (fixup_abnormal_edges): Likewise.
9683         (record_effective_endpoints): Likewise.
9684         (relink_block_chain): Likewise.
9685         (fixup_reorder_chain): Likewise.
9686         (fixup_fallthru_exit_predecessor): Likewise.
9687         (cfg_layout_duplicate_bb): Likewise.
9688         (cfg_layout_split_block): Likewise.
9689         (cfg_layout_delete_block): Likewise.
9690         (cfg_layout_merge_blocks): Likewise.
9691         * combine.c (update_cfg_for_uncondjump): Likewise.
9692         * emit-rtl.c (add_insn_after): Likewise.
9693         (remove_insn): Likewise.
9694         (reorder_insns): Likewise.
9695         (emit_insn_after_1): Likewise.
9696         * haifa-sched.c (get_ebb_head_tail): Likewise.
9697         (restore_other_notes): Likewise.
9698         (move_insn): Likewise.
9699         (sched_extend_bb): Likewise.
9700         (fix_jump_move): Likewise.
9701         * ifcvt.c (noce_process_if_block): Likewise.
9702         (dead_or_predicable): Likewise.
9703         * ira.c (update_equiv_regs): Likewise.
9704         * reg-stack.c (change_stack): Likewise.
9705         * sel-sched-ir.c (sel_move_insn): Likewise.
9706         * sel-sched.c (move_nop_to_previous_block): Likewise.
9707
9708         * config/c6x/c6x.c (hwloop_optimize): Likewise.
9709         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9710
9711 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9712
9713         * rtl.h (for_each_rtx_in_insn): New function.
9714         * rtlanal.c (for_each_rtx_in_insn): Likewise.
9715
9716 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9717
9718         * coretypes.h (class rtx_insn): Add forward declaration.
9719
9720         * rtl.h: Include is-a.h.
9721         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9722         workaround to ensure gengtype knows inheritance is occurring,
9723         whilst continuing to use the pre-existing special-casing for
9724         rtx_def.
9725         (class rtx_insn): New subclass of rtx_def, adding the
9726         invariant that we're dealing with something we can sanely use
9727         INSN_UID, NEXT_INSN, PREV_INSN on.
9728         (is_a_helper <rtx_insn *>::test): New.
9729         (is_a_helper <const rtx_insn *>::test): New.
9730
9731 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9732
9733         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9734
9735 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
9736
9737         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9738         comdats as extern.
9739
9740 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
9741
9742         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9743         to BUILT_IN_UNREACHABLE.
9744
9745 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
9746
9747         PR target/62011
9748         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9749         New tune flag.
9750         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9751         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9752         (ffs<mode>2): Do not expand with tzcnt for
9753         TARGET_AVOID_FALSE_DEP_FOR_BMI.
9754         (ffssi2_no_cmove): Ditto.
9755         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9756         (ctz<mode>2): New expander.
9757         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9758         (*ctz<mode>2_falsedep): New insn.
9759         (*ctz<mode>2): Rename from ctz<mode>2.
9760         (clz<mode>2_lzcnt): New expander.
9761         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9762         (*clz<mode>2_lzcnt_falsedep): New insn.
9763         (*clz<mode>2): Rename from ctz<mode>2.
9764         (popcount<mode>2): New expander.
9765         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9766         (*popcount<mode>2_falsedep): New insn.
9767         (*popcount<mode>2): Rename from ctz<mode>2.
9768         (*popcount<mode>2_cmp): Remove.
9769         (*popcountsi2_cmp_zext): Ditto.
9770
9771 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
9772
9773         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9774         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9775         * config/microblaze/microblaze.h
9776         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9777
9778 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9779
9780         PR other/62168
9781         * configure.ac: Set install_gold_as_default to no for
9782          --enable-gold=no.
9783          * configure: Regenerated.
9784
9785 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
9786
9787         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9788         * config.in: Add undef of HAVE_isl.
9789         * configure: Regenerate.
9790         * configure.ac: Add definition of HAVE_isl.
9791         * graphite-blocking.c: Add checking of HAVE_isl.
9792         * graphite-dependences.c: Likewise.
9793         * graphite-interchange.c: Likewise.
9794         * graphite-isl-ast-to-gimple.c: Likewise.
9795         * graphite-optimize-isl.c: Likewise.
9796         * graphite-poly.c: Likewise.
9797         * graphite-scop-detection.c: Likewise.
9798         * graphite-sese-to-poly.c: Likewise.
9799         * graphite.c: Likewise.
9800         * toplev.c: Replace the checking of HAVE_cloog with the checking
9801         of HAVE_isl.
9802
9803 2014-08-18  Richard Biener  <rguenther@suse.de>
9804
9805         PR tree-optimization/62090
9806         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9807         (fold_builtin_3): Do not fold snprintf.
9808         (fold_builtin_4): Likewise.
9809         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9810         moved from builtins.c.
9811         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9812         (gimple_fold_builtin): Do not fold sprintf here.
9813
9814 2014-08-18  Richard Biener  <rguenther@suse.de>
9815
9816         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9817         code to ...
9818         (maybe_canonicalize_mem_ref_addr): ... this function.
9819         (fold_stmt_1): Apply it here before all simplification.
9820
9821 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
9822
9823         PR ipa/61800
9824         * cgraph.h (cgraph_node::create_indirect_edge): Add
9825         compute_indirect_info param.
9826         * cgraph.c (cgraph_node::create_indirect_edge): Compute
9827         indirect_info only when it is required.
9828         * cgraphclones.c (cgraph_clone_edge): Do not recompute
9829         indirect_info fore cloned indirect edge.
9830
9831 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9832             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9833             Anna Tikhonova  <anna.tikhonova@intel.com>
9834             Ilya Tocar  <ilya.tocar@intel.com>
9835             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9836             Ilya Verbin  <ilya.verbin@intel.com>
9837             Kirill Yukhin  <kirill.yukhin@intel.com>
9838             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9839
9840         * config/i386/sse.md
9841         (define_mode_iterator VI8_AVX2_AVX512BW): New.
9842         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9843
9844 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9845             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9846             Anna Tikhonova  <anna.tikhonova@intel.com>
9847             Ilya Tocar  <ilya.tocar@intel.com>
9848             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9849             Ilya Verbin  <ilya.verbin@intel.com>
9850             Kirill Yukhin  <kirill.yukhin@intel.com>
9851             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9852
9853         * config/i386/sse.md
9854         (define_mode_iterator VF1_AVX512VL): New.
9855         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9856         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9857         New.
9858
9859 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9860             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9861             Anna Tikhonova  <anna.tikhonova@intel.com>
9862             Ilya Tocar  <ilya.tocar@intel.com>
9863             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9864             Ilya Verbin  <ilya.verbin@intel.com>
9865             Kirill Yukhin  <kirill.yukhin@intel.com>
9866             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9867
9868         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9869         * config/i386/i386.md
9870         (define_code_iterator any_float): New.
9871         (define_code_attr floatsuffix): New.
9872         * config/i386/sse.md
9873         (define_mode_iterator VF1_128_256VL): New.
9874         (define_mode_iterator VF2_512_256VL): New.
9875         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9876         TARGET check.
9877         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9878         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9879         New.
9880         (define_mode_attr qq2pssuff): New.
9881         (define_mode_attr sselongvecmode): New.
9882         (define_mode_attr sselongvecmodelower): New.
9883         (define_mode_attr sseintvecmode3): New.
9884         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9885         New.
9886         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9887         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9888         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9889         (define_insn "ufloatv2siv2df2<mask_name>"): New.
9890
9891 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9892             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9893             Anna Tikhonova  <anna.tikhonova@intel.com>
9894             Ilya Tocar  <ilya.tocar@intel.com>
9895             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9896             Ilya Verbin  <ilya.verbin@intel.com>
9897             Kirill Yukhin  <kirill.yukhin@intel.com>
9898             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9899
9900         * config/i386/sse.md
9901         (define_mode_iterator VF2_AVX512VL): New.
9902         (define_mode_attr sseintvecmode2): New.
9903         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9904         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9905         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9906         (define_insn
9907         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9908         Ditto.
9909         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9910         Ditto.
9911         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9912         Ditto.
9913
9914 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9915             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9916             Anna Tikhonova  <anna.tikhonova@intel.com>
9917             Ilya Tocar  <ilya.tocar@intel.com>
9918             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9919             Ilya Verbin  <ilya.verbin@intel.com>
9920             Kirill Yukhin  <kirill.yukhin@intel.com>
9921             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9922
9923         * config/i386/i386.md
9924         (define_insn "*movoi_internal_avx"): Add evex version.
9925         (define_insn "*movti_internal"): Ditto.
9926
9927 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9928             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9929             Anna Tikhonova  <anna.tikhonova@intel.com>
9930             Ilya Tocar  <ilya.tocar@intel.com>
9931             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9932             Ilya Verbin  <ilya.verbin@intel.com>
9933             Kirill Yukhin  <kirill.yukhin@intel.com>
9934             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9935
9936         * config/i386/i386.md
9937         (define_attr "isa"): Add avx512dq, noavx512dq.
9938         (define_attr "enabled"): Ditto.
9939         * config/i386/sse.md
9940         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9941
9942 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9943             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9944             Anna Tikhonova  <anna.tikhonova@intel.com>
9945             Ilya Tocar  <ilya.tocar@intel.com>
9946             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9947             Ilya Verbin  <ilya.verbin@intel.com>
9948             Kirill Yukhin  <kirill.yukhin@intel.com>
9949             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9950
9951         * config/i386/i386.c
9952         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9953         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9954         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9955         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9956         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9957         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9958         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9959         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9960         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9961         * config/i386/sse.md
9962         (define_mode_iterator VMOVE): Allow V4TI mode.
9963         (define_mode_iterator V_AVX512VL): New.
9964         (define_mode_iterator V): New handling for AVX512VL.
9965         (define_insn "avx512f_load<mode>_mask"): Delete.
9966         (define_insn "<avx512>_load<mode>_mask"): New.
9967         (define_insn "avx512f_store<mode>_mask"): Delete.
9968         (define_insn "<avx512>_store<mode>_mask"): New.
9969
9970
9971 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
9972
9973         PR sanitizer/62089
9974         * asan.c (instrument_derefs): Fix bitfield check.
9975
9976 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
9977
9978         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9979         * config/rs6000/htm.md (ttest): Remove clobber.
9980         * config/rs6000/predicates.md (any_mask_operand): New predicate.
9981         (and_operand): Reformat.
9982         (and_2rld_operand): New predicate.
9983         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9984         parameter.
9985         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9986         parameter.  Handle AND directly.
9987         (rs6000_split_logical_di): Remove last parameter.
9988         (rs6000_split_logical): Remove last parameter.  Remove obsolete
9989         comment.
9990         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9991         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9992         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
9993         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9994         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9995         and 5 anonymous splitters):  Delete.
9996         (and<mode>3): New expander.
9997         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9998         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9999         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10000         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10001         (floatdisf2_internal1): Remove clobbers.
10002         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10003         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10004         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10005         (and<mode>3 for BOOL_128): Remove clobber.
10006         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
10007         rs6000_split_logical.
10008         (*bool<mode>3_internal for BOOL_128): Adjust call of
10009         rs6000_split_logical.
10010         (*boolc<mode>3_internal1 for BOOL_128,
10011         *boolc<mode>3_internal2 for BOOL_128,
10012         *boolcc<mode>3_internal1 for BOOL_128,
10013         *boolcc<mode>3_internal2 for BOOL_128,
10014         *eqv<mode>3_internal1 for BOOL_128,
10015         *eqv<mode>3_internal2 for BOOL_128,
10016         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10017         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10018         clobber.
10019         (*vec_reload_and_reg_<mptrsize>): Delete.
10020
10021 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10022
10023         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10024         and split, *boolccsi3_internal3 and split): Delete.
10025         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10026         *boolccdi3_internal3 and split): Delete.
10027         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10028         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
10029
10030 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10031
10032         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10033         and split, *boolcsi3_internal3 and split): Delete.
10034         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10035         *boolcdi3_internal3 and split): Delete.
10036         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10037
10038 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10039
10040         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10041         <'u'>: Also support printing the low-order 16 bits.
10042         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10043         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10044         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10045         *booldi3_internal3 and split): Delete.
10046         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10047         *bool<mode>3_dot2): New.
10048         (two anonymous define_splits for non_logical_cint_operand): Merge.
10049
10050 2014-08-17  Marek Polacek  <polacek@redhat.com>
10051             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10052
10053         PR c/62059
10054         * diagnostic.c (adjust_line): Add gcc_checking_assert.
10055         (diagnostic_show_locus): Don't print caret diagnostic
10056         if a column is larger than the line_width.
10057
10058 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
10059
10060         * common.opt: Make the ISL AST generator to be the main code generator
10061         of Graphite.
10062
10063 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
10064
10065         * wide-int.h (generic_wide_int): Declare as class instead of struct.
10066
10067 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
10068
10069         PR target/61641
10070         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10071         Declare.
10072         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10073         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10074         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10075         Define.
10076         * config/pa/pa.md (begin_brtab): Delete insn.
10077         (end_brtab): Likewise.
10078
10079 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10080
10081         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10082
10083 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
10084
10085         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10086         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10087         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10088         (get_dynamic_type): Remove.
10089         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10090         (clear_speculation): Bring to ipa-deivrt.h
10091         (get_class_context): Rename to ...
10092         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10093         (contains_type_p): Update.
10094         (get_dynamic_type): Rename to ...
10095         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10096         (possible_polymorphic_call_targets): UPdate.
10097         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10098         * ipa-prop.c (ipa_analyze_call_uses): Update.
10099
10100 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
10101
10102         * doc/invoke.texi (SH options): Document missing processor variant
10103         options.  Remove references to Hitachi.  Undocument deprecated mspace
10104         option.
10105
10106 2014-08-15  Jason Merrill  <jason@redhat.com>
10107
10108         * tree.c (type_hash_canon): Uncomment assert.
10109
10110 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10111
10112         * input.h (in_system_header_at): Add comment.
10113
10114 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10115
10116         PR fortran/44054
10117         * diagnostic.c (build_message_string): Make it extern.
10118         * diagnostic.h (build_message_string): Make it extern.
10119
10120 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
10121
10122         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10123         load/store from/to non-floating class pseudo.
10124
10125 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10126
10127         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10128
10129 2014-08-15  Richard Biener  <rguenther@suse.de>
10130
10131         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10132         (get_constraint_for_ssa_var): Remove dead code.
10133         (get_constraint_for_1): Adjust.
10134         (find_what_var_points_to): Likewise.
10135         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
10136
10137 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
10138
10139         PR target/61878
10140         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10141         (_mm512_mask_cmpge_epu32_mask): Ditto.
10142         (_mm512_cmpge_epu32_mask): Ditto.
10143         (_mm512_mask_cmpge_epi64_mask): Ditto.
10144         (_mm512_cmpge_epi64_mask): Ditto.
10145         (_mm512_mask_cmpge_epu64_mask): Ditto.
10146         (_mm512_cmpge_epu64_mask): Ditto.
10147         (_mm512_mask_cmple_epi32_mask): Ditto.
10148         (_mm512_cmple_epi32_mask): Ditto.
10149         (_mm512_mask_cmple_epu32_mask): Ditto.
10150         (_mm512_cmple_epu32_mask): Ditto.
10151         (_mm512_mask_cmple_epi64_mask): Ditto.
10152         (_mm512_cmple_epi64_mask): Ditto.
10153         (_mm512_mask_cmple_epu64_mask): Ditto.
10154         (_mm512_cmple_epu64_mask): Ditto.
10155         (_mm512_mask_cmplt_epi32_mask): Ditto.
10156         (_mm512_cmplt_epi32_mask): Ditto.
10157         (_mm512_mask_cmplt_epu32_mask): Ditto.
10158         (_mm512_cmplt_epu32_mask): Ditto.
10159         (_mm512_mask_cmplt_epi64_mask): Ditto.
10160         (_mm512_cmplt_epi64_mask): Ditto.
10161         (_mm512_mask_cmplt_epu64_mask): Ditto.
10162         (_mm512_cmplt_epu64_mask): Ditto.
10163         (_mm512_mask_cmpneq_epi32_mask): Ditto.
10164         (_mm512_mask_cmpneq_epu32_mask): Ditto.
10165         (_mm512_cmpneq_epu32_mask): Ditto.
10166         (_mm512_mask_cmpneq_epi64_mask): Ditto.
10167         (_mm512_cmpneq_epi64_mask): Ditto.
10168         (_mm512_mask_cmpneq_epu64_mask): Ditto.
10169         (_mm512_cmpneq_epu64_mask): Ditto.
10170         (_mm512_castpd_ps): Ditto.
10171         (_mm512_castpd_si512): Ditto.
10172         (_mm512_castps_pd): Ditto.
10173         (_mm512_castps_si512): Ditto.
10174         (_mm512_castsi512_ps): Ditto.
10175         (_mm512_castsi512_pd): Ditto.
10176         (_mm512_castpd512_pd128): Ditto.
10177         (_mm512_castps512_ps128): Ditto.
10178         (_mm512_castsi512_si128): Ditto.
10179         (_mm512_castpd512_pd256): Ditto.
10180         (_mm512_castps512_ps256): Ditto.
10181         (_mm512_castsi512_si256): Ditto.
10182         (_mm512_castpd128_pd512): Ditto.
10183         (_mm512_castps128_ps512): Ditto.
10184         (_mm512_castsi128_si512): Ditto.
10185         (_mm512_castpd256_pd512): Ditto.
10186         (_mm512_castps256_ps512): Ditto.
10187         (_mm512_castsi256_si512): Ditto.
10188         (_mm512_cmpeq_epu32_mask): Ditto.
10189         (_mm512_mask_cmpeq_epu32_mask): Ditto.
10190         (_mm512_mask_cmpeq_epu64_mask): Ditto.
10191         (_mm512_cmpeq_epu64_mask): Ditto.
10192         (_mm512_cmpgt_epu32_mask): Ditto.
10193         (_mm512_mask_cmpgt_epu32_mask): Ditto.
10194         (_mm512_mask_cmpgt_epu64_mask): Ditto.
10195         (_mm512_cmpgt_epu64_mask): Ditto.
10196         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10197         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10198         * config/i386/i386.c (enum ix86_builtins): Add
10199         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10200         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10201         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10202         (bdesc_args): Add __builtin_ia32_si512_256si,
10203         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10204         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10205         __builtin_ia32_pd512_pd.
10206         (ix86_expand_args_builtin): Handle new FTYPEs.
10207         * config/i386/sse.md (castmode): Add 512-bit modes.
10208         (AVX512MODE2P): New.
10209         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10210         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10211
10212 2014-08-15  Richard Biener  <rguenther@suse.de>
10213
10214         * fold-const.c (tree_swap_operands_p): Put all constants
10215         last, also strip sign-changing NOPs when considering further
10216         canonicalization.  Canonicalize also when optimizing for size.
10217
10218 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10219
10220         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10221         one_match > zero_match case to just before simple_sequence.
10222
10223 2014-08-15  Richard Biener  <rguenther@suse.de>
10224
10225         * data-streamer.h (streamer_string_index, string_for_index):
10226         Remove.
10227         * data-streamer-out.c (streamer_string_index): Make static.
10228         * data-streamer-in.c (string_for_index): Likewise.
10229         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10230         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10231
10232 2014-08-15  Richard Biener  <rguenther@suse.de>
10233
10234         PR tree-optimization/62031
10235         * tree-data-ref.c (dr_analyze_indices): Do not set
10236         DR_UNCONSTRAINED_BASE.
10237         (dr_may_alias_p): All indirect accesses have to go the
10238         formerly DR_UNCONSTRAINED_BASE path.
10239         * tree-data-ref.h (struct indices): Remove
10240         unconstrained_base member.
10241         (DR_UNCONSTRAINED_BASE): Remove.
10242
10243 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
10244
10245         PR middle-end/62092
10246         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10247         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10248         in OMP_CLAUSE_MAP in some outer target region.
10249
10250 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
10251
10252         * tree-ssa-loop-ivopts.c (ivopts_data): New field
10253         name_expansion_cache.
10254         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10255         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10256         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10257         (difference_cannot_overflow_p): New parameter.  Use affine
10258         expansion for equality check.
10259         (iv_elimination_compare_lt): Pass new argument.
10260
10261 2014-08-14  DJ Delorie  <dj@redhat.com>
10262
10263         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10264         variables to the accumulator.
10265
10266         * config/rl78/predicates.md (rl78_near_mem_operand): New.
10267         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10268         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10269         with far-far moves.
10270
10271         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10272         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10273         (umulqihi3_virt): Likewise.
10274         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10275         (umulqihi3_real): Likewise.
10276
10277         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10278
10279 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
10280
10281         PR tree-optimization/62091
10282         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10283         function_entry_reached.
10284         (walk_aliased_vdefs): Clear it here.
10285         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10286
10287 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
10288
10289         * ipa-utils.h (compare_virtual_tables): Declare.
10290         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10291
10292 2014-08-14  Marek Polacek  <polacek@redhat.com>
10293
10294         DR 458
10295         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10296         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10297
10298 2014-08-14  Tom de Vries  <tom@codesourcery.com>
10299
10300         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10301
10302 2014-08-14  Tom de Vries  <tom@codesourcery.com>
10303
10304         PR rtl-optimization/62004
10305         PR rtl-optimization/62030
10306         * ifcvt.c (rtx_interchangeable_p): New function.
10307         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10308         * emit-rtl.h (mem_attrs_eq_p): Declare.
10309
10310 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
10311
10312         * graphite-scop-detection.c:
10313         Add inclusion of cp-tree.h.
10314         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10315         in case they are pointers to object types
10316
10317 2014-08-14  Richard Biener  <rguenther@suse.de>
10318
10319         * BASE-VER: Change to 5.0.0
10320
10321 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10322             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10323             Anna Tikhonova  <anna.tikhonova@intel.com>
10324             Ilya Tocar  <ilya.tocar@intel.com>
10325             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10326             Ilya Verbin  <ilya.verbin@intel.com>
10327             Kirill Yukhin  <kirill.yukhin@intel.com>
10328             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10329
10330         * config/i386/sse.md (define_mode_attr avx512): New.
10331         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10332         V4DI modes.
10333         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10334         (define_mode_attr ssse3_avx2): Ditto.
10335         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10336         (define_mode_attr avx2_avx512bw): New.
10337         (define_mode_attr ssedoublemodelower): New.
10338         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10339         V32HI, V64QI modes.
10340         (define_mode_attr ssebytemode): Allow V8DI modes.
10341         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10342         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10343         (define_mode_attr ssePSmode2): New.
10344         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10345         V16HI, V32HI modes.
10346         (define_mode_attr dbpsadbwmode): New.
10347         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10348         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10349         (vi8_sse4_1_avx2_avx512): New.
10350         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10351         mode attribute.
10352         (define_mode_attr blendbits): Move before its immediate use.
10353
10354 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10355             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10356             Anna Tikhonova  <anna.tikhonova@intel.com>
10357             Ilya Tocar  <ilya.tocar@intel.com>
10358             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10359             Ilya Verbin  <ilya.verbin@intel.com>
10360             Kirill Yukhin  <kirill.yukhin@intel.com>
10361             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10362
10363         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10364         * config/i386/subst.md
10365         (define_mode_iterator SUBST_V): Update.
10366         (define_mode_iterator SUBST_A): Ditto.
10367         (define_subst_attr "mask_operand7"): New.
10368         (define_subst_attr "mask_operand10"): New.
10369         (define_subst_attr "mask_operand_arg34") : New.
10370         (define_subst_attr "mask_expand_op3"): New.
10371         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10372         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10373         (define_subst_attr "mask_avx512vl_condition"): New.
10374         (define_subst_attr "round_mask_operand4"): Ditto.
10375         (define_subst_attr "round_mask_scalar_op3"): Delete.
10376         (define_subst_attr "round_mask_op4"): New.
10377         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10378         V16SImode.
10379         (define_subst_attr "round_modev8sf_condition"): New.
10380         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10381         <MODE>mode.
10382         (define_subst_attr "round_saeonly_mask_operand4"): New.
10383         (define_subst_attr "round_saeonly_mask_op4"): New.
10384         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10385         V8DImode, V16SImode.
10386         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10387         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10388         (define_subst_attr "mask_expand4_args"): New.
10389         (define_subst "mask_expand4"): New.
10390
10391 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10392             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10393             Anna Tikhonova  <anna.tikhonova@intel.com>
10394             Ilya Tocar  <ilya.tocar@intel.com>
10395             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10396             Ilya Verbin  <ilya.verbin@intel.com>
10397             Kirill Yukhin  <kirill.yukhin@intel.com>
10398             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10399
10400         * config/i386/i386.md
10401         (define_attr "isa"): Add avx512bw,noavx512bw.
10402         (define_attr "enabled"): Ditto.
10403         (define_split): Add 32/64-bit mask logic.
10404         (define_insn "*k<logic>qi"): New.
10405         (define_insn "*k<logic>hi"): New.
10406         (define_insn "*anddi_1"): Add mask version.
10407         (define_insn "*andsi_1"): Ditto.
10408         (define_insn "*<code><mode>_1"): Ditto.
10409         (define_insn "*<code>hi_1"): Ditto.
10410         (define_insn "kxnor<mode>"): New.
10411         (define_insn "kunpcksi"): New.
10412         (define_insn "kunpckdi"): New.
10413         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10414         (define_insn "*one_cmplhi2_1"): Ditto.
10415
10416 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10417             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10418             Anna Tikhonova  <anna.tikhonova@intel.com>
10419             Ilya Tocar  <ilya.tocar@intel.com>
10420             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10421             Ilya Verbin  <ilya.verbin@intel.com>
10422             Kirill Yukhin  <kirill.yukhin@intel.com>
10423             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10424
10425         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10426         V32HImode.
10427
10428 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10429             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10430             Anna Tikhonova  <anna.tikhonova@intel.com>
10431             Ilya Tocar  <ilya.tocar@intel.com>
10432             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10433             Ilya Verbin  <ilya.verbin@intel.com>
10434             Kirill Yukhin  <kirill.yukhin@intel.com>
10435             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10436
10437         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
10438         registers.
10439         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10440         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10441         xmm/ymm16+ when availble.
10442         * config/i386/i386.h
10443         (HARD_REGNO_NREGS): Add mask regs.
10444         (VALID_AVX512F_REG_MODE): Ditto.
10445         (VALID_AVX512F_REG_MODE) : Define.
10446         (VALID_MASK_AVX512BW_MODE): Ditto.
10447         (reg_class) (MASK_REG_P(X)): Define.
10448         * config/i386/i386.md: Do not split long moves with mask register,
10449         use kmovb if avx512bw is availible.
10450         (movdi_internal): Handle mask registers.
10451
10452 2014-08-14  Richard Biener  <rguenther@suse.de>
10453
10454         PR tree-optimization/62081
10455         * tree-ssa-loop.c (pass_fix_loops): New pass.
10456         (pass_tree_loop::gate):  Do not fixup loops here.
10457         * tree-pass.h (make_pass_fix_loops): Declare.
10458         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10459
10460 2014-08-14  Richard Biener  <rguenther@suse.de>
10461
10462         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10463         (type_hash_canon): ... this and avoid 2nd lookup for the add.
10464
10465 2014-08-14  Richard Biener  <rguenther@suse.de>
10466
10467         PR tree-optimization/62090
10468         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10469         (fold_builtin_2): Do not fold sprintf.
10470         (fold_builtin_3): Likewise.
10471         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10472         moved from builtins.c.
10473         (gimple_fold_builtin): Fold sprintf.
10474
10475 2014-08-14  Richard Biener  <rguenther@suse.de>
10476
10477         PR rtl-optimization/62079
10478         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10479         run cleanup_cfg.
10480
10481 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
10482
10483         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10484         current_function_decl.
10485
10486 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
10487
10488         * cgraph.c (cgraph_node::function_symbol): Fix wrong
10489         cgraph_function_node to cgraph_node::function_symbol
10490         refactoring.
10491
10492 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10493
10494         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10495         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10496
10497 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
10498
10499         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10500         warning.
10501
10502 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
10503
10504         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10505         generator.
10506
10507 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
10508
10509         PR target/62025
10510         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10511         any registers that are used in mem_insn.
10512
10513 2014-08-12  Steve Ellcey  <sellcey@mips.com>
10514
10515         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
10516
10517 2014-08-12  Steve Ellcey  <sellcey@mips.com>
10518
10519         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10520         (MULTILIB_DIRNAMES): Ditto.
10521         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10522         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10523         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10524         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10525         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10526         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10527
10528 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10529
10530         PR target/61413
10531         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10532         of __ARM_SIZEOF_WCHAR_T.
10533
10534 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10535
10536         PR target/62098
10537         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10538         Remove unnecessary attributes.
10539
10540 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
10541
10542         * internal-fn.c (init_internal_fns): Fix off-by-one.
10543
10544 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10545             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10546             Anna Tikhonova  <anna.tikhonova@intel.com>
10547             Ilya Tocar  <ilya.tocar@intel.com>
10548             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10549             Ilya Verbin  <ilya.verbin@intel.com>
10550             Kirill Yukhin  <kirill.yukhin@intel.com>
10551             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10552
10553         * config/i386/i386.c (standard_sse_constant_opcode): Use
10554         vpxord/vpternlog if avx512 is availible.
10555
10556 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10557
10558         PR middle-end/62103
10559         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10560         bitfields, that is when size doesn't match the size of type or the
10561         size of the constructor.
10562
10563 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10564
10565         * config/rs6000/constraints.md (wh constraint): New constraint,
10566         for FP registers if direct move is available.
10567         (wi constraint): New constraint, for VSX/FP registers that can
10568         handle 64-bit integers.
10569         (wj constraint): New constraint for VSX/FP registers that can
10570         handle 64-bit integers for direct moves.
10571         (wk constraint): New constraint for VSX/FP registers that can
10572         handle 64-bit doubles for direct moves.
10573         (wy constraint): Make documentation match implementation.
10574
10575         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10576         scalar_in_vmx_p field to simplify tests of whether SFmode or
10577         DFmode can go in the Altivec registers.
10578         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10579         (rs6000_setup_reg_addr_masks): Likewise.
10580         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10581         field, and wh/wi/wj/wk constraints.
10582         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10583         the wh/wi/wj/wk constraints.
10584         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10585         upper registers, prefer VSX registers unless the operation is a
10586         memory operation with REG+OFFSET addressing.
10587
10588         * config/rs6000/vsx.md (VSr mode attribute): Add support for
10589         DImode.  Change SFmode to use ww constraint instead of d to allow
10590         SF registers in the upper registers.
10591         (VSr2): Likewise.
10592         (VSr3): Likewise.
10593         (VSr5): Fix thinko in comment.
10594         (VSa): New mode attribute that is an alternative to wa, that
10595         returns the VSX register class that a mode can go in, but may not
10596         be the preferred register class.
10597         (VS_64dm): New mode attribute for appropriate register classes for
10598         referencing 64-bit elements of vectors for direct moves and normal
10599         moves.
10600         (VS_64reg): Likewise.
10601         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10602         register allocator to only registers the data type can handle.
10603         (vsx_le_perm_load_<mode>): Likewise.
10604         (vsx_le_perm_store_<mode>): Likewise.
10605         (vsx_xxpermdi2_le_<mode>): Likewise.
10606         (vsx_xxpermdi4_le_<mode>): Likewise.
10607         (vsx_lxvd2x2_le_<mode>): Likewise.
10608         (vsx_lxvd2x4_le_<mode>): Likewise.
10609         (vsx_stxvd2x2_le_<mode>): Likewise.
10610         (vsx_add<mode>3): Likewise.
10611         (vsx_sub<mode>3): Likewise.
10612         (vsx_mul<mode>3): Likewise.
10613         (vsx_div<mode>3): Likewise.
10614         (vsx_tdiv<mode>3_internal): Likewise.
10615         (vsx_fre<mode>2): Likewise.
10616         (vsx_neg<mode>2): Likewise.
10617         (vsx_abs<mode>2): Likewise.
10618         (vsx_nabs<mode>2): Likewise.
10619         (vsx_smax<mode>3): Likewise.
10620         (vsx_smin<mode>3): Likewise.
10621         (vsx_sqrt<mode>2): Likewise.
10622         (vsx_rsqrte<mode>2): Likewise.
10623         (vsx_tsqrt<mode>2_internal): Likewise.
10624         (vsx_fms<mode>4): Likewise.
10625         (vsx_nfma<mode>4): Likewise.
10626         (vsx_eq<mode>): Likewise.
10627         (vsx_gt<mode>): Likewise.
10628         (vsx_ge<mode>): Likewise.
10629         (vsx_eq<mode>_p): Likewise.
10630         (vsx_gt<mode>_p): Likewise.
10631         (vsx_ge<mode>_p): Likewise.
10632         (vsx_xxsel<mode>): Likewise.
10633         (vsx_xxsel<mode>_uns): Likewise.
10634         (vsx_copysign<mode>3): Likewise.
10635         (vsx_float<VSi><mode>2): Likewise.
10636         (vsx_floatuns<VSi><mode>2): Likewise.
10637         (vsx_fix_trunc<mode><VSi>2): Likewise.
10638         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10639         (vsx_x<VSv>r<VSs>i): Likewise.
10640         (vsx_x<VSv>r<VSs>ic): Likewise.
10641         (vsx_btrunc<mode>2): Likewise.
10642         (vsx_b2trunc<mode>2): Likewise.
10643         (vsx_floor<mode>2): Likewise.
10644         (vsx_ceil<mode>2): Likewise.
10645         (vsx_<VS_spdp_insn>): Likewise.
10646         (vsx_xscvspdp): Likewise.
10647         (vsx_xvcvspuxds): Likewise.
10648         (vsx_float_fix_<mode>2): Likewise.
10649         (vsx_set_<mode>): Likewise.
10650         (vsx_extract_<mode>_internal1): Likewise.
10651         (vsx_extract_<mode>_internal2): Likewise.
10652         (vsx_extract_<mode>_load): Likewise.
10653         (vsx_extract_<mode>_store): Likewise.
10654         (vsx_splat_<mode>): Likewise.
10655         (vsx_xxspltw_<mode>): Likewise.
10656         (vsx_xxspltw_<mode>_direct): Likewise.
10657         (vsx_xxmrghw_<mode>): Likewise.
10658         (vsx_xxmrglw_<mode>): Likewise.
10659         (vsx_xxsldwi_<mode>): Likewise.
10660         (vsx_xscvdpspn): Tighten constraints to only use register classes
10661         the types use.
10662         (vsx_xscvspdpn): Likewise.
10663         (vsx_xscvdpspn_scalar): Likewise.
10664
10665         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10666         wj, and wk constraints.
10667         (GPR_REG_CLASS_P): New helper macro for register classes targeting
10668         general purpose registers.
10669
10670         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10671         direct moves.
10672         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10673         DImode instead of wm.  Use wk constraint for direct move of DFmode
10674         instead of wm.
10675         (extendsidi2_lfiwax): Likewise.
10676         (lfiwax): Likewise.
10677         (lfiwzx): Likewise.
10678         (movdi_internal64): Likewise.
10679
10680         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10681         wk constraints. Make the wy constraint documentation match them
10682         implementation.
10683
10684 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
10685
10686         Replacement of isl_int by isl_val
10687         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10688         (compute_bounds_for_param): use isl_val instead of isl_int
10689         (compute_bounds_for_loop): likewise
10690         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10691         (build_linearized_memory_access): use isl_val instead of isl_int
10692         (pdr_stride_in_loop): likewise
10693         * graphite-optimize-isl.c:
10694         (getPrevectorMap): use isl_val instead of isl_int
10695         * graphite-poly.c:
10696         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10697         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10698         (extern the_isl_ctx): declare
10699         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10700         (extract_affine_gmp): likewise
10701         (wrap): likewise
10702         (build_loop_iteration_domains): likewise
10703         (add_param_constraints): likewise
10704
10705 2014-08-11  Richard Biener  <rguenther@suse.de>
10706
10707         PR tree-optimization/62075
10708         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10709         handle uses in patterns.
10710
10711 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10712             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10713             Anna Tikhonova  <anna.tikhonova@intel.com>
10714             Ilya Tocar  <ilya.tocar@intel.com>
10715             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10716             Ilya Verbin  <ilya.verbin@intel.com>
10717             Kirill Yukhin  <kirill.yukhin@intel.com>
10718             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10719
10720         * common/config/i386/i386-common.c
10721         (OPTION_MASK_ISA_AVX512VL_SET): Define.
10722         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10723         (ix86_handle_option): Handle OPT_mavx512vl.
10724         * config/i386/cpuid.h (bit_AVX512VL): Define.
10725         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10726         set -mavx512vl accordingly.
10727         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10728         OPTION_MASK_ISA_AVX512VL.
10729         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10730         (ix86_option_override_internal): Define PTA_AVX512VL, handle
10731         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10732         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10733         * config/i386/i386.h (TARGET_AVX512VL): Define.
10734         (TARGET_AVX512VL_P(x)): Ditto.
10735         * config/i386/i386.opt: Add mavx512vl.
10736
10737 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
10738
10739         PR tree-optimization/62073
10740         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10741         a basic block.
10742
10743 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10744             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10745             Anna Tikhonova  <anna.tikhonova@intel.com>
10746             Ilya Tocar  <ilya.tocar@intel.com>
10747             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10748             Ilya Verbin  <ilya.verbin@intel.com>
10749             Kirill Yukhin  <kirill.yukhin@intel.com>
10750             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10751
10752         * common/config/i386/i386-common.c
10753         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10754         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10755         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10756         (ix86_handle_option): Handle OPT_mavx512bw.
10757         * config/i386/cpuid.h (bit_AVX512BW): Define.
10758         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10759         set -mavx512bw accordingly.
10760         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10761         OPTION_MASK_ISA_AVX512BW.
10762         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10763         (ix86_option_override_internal): Define PTA_AVX512BW, handle
10764         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10765         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10766         * config/i386/i386.h (TARGET_AVX512BW): Define.
10767         (TARGET_AVX512BW_P(x)): Ditto.
10768         * config/i386/i386.opt: Add mavx512bw.
10769
10770 2014-08-11  Richard Biener  <rguenther@suse.de>
10771
10772         PR tree-optimization/62070
10773         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10774         Remove SSA checking.
10775
10776 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
10777
10778         * asan.c (asan_check_flags): New enum.
10779         (build_check_stmt_with_calls): Removed function.
10780         (build_check_stmt): Split inlining logic to
10781         asan_expand_check_ifn.
10782         (instrument_derefs): Rename parameter.
10783         (instrument_mem_region_access): Rename parameter.
10784         (instrument_strlen_call): Likewise.
10785         (asan_expand_check_ifn): New function.
10786         (asan_instrument): Remove old code.
10787         (pass_sanopt::execute): Change handling of
10788         asan-instrumentation-with-call-threshold.
10789         (asan_clear_shadow): Fix formatting.
10790         (asan_function_start): Likewise.
10791         (asan_emit_stack_protection): Likewise.
10792         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10793         Update description.
10794         * internal-fn.c (expand_ASAN_CHECK): New function.
10795         * internal-fn.def (ASAN_CHECK): New internal function.
10796         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10797         Update description.
10798         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10799         * tree.c: Small comment fix.
10800
10801 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
10802
10803         * gimple.c (gimple_call_fnspec): Support internal functions.
10804         (gimple_call_return_flags): Use const.
10805         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10806         * internal-fn.def: Add fnspec information.
10807         * internal-fn.h (internal_fn_fnspec): New function.
10808         (init_internal_fns): Declare new function.
10809         * internal-fn.c (internal_fn_fnspec_array): New global variable.
10810         (init_internal_fns): New function.
10811         * tree-core.h: Update macro call.
10812         * tree.c (build_common_builtin_nodes): Initialize internal fns.
10813
10814 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
10815
10816         * lto-streamer.h (struct output_block::symbol): Change from
10817         struct symtab_node to plain symtab_node.
10818         (referenced_from_this_partition_p): Change first parameter
10819         from struct symtab_node to plain symtab_node.
10820
10821 2014-08-10  Marek Polacek  <polacek@redhat.com>
10822
10823         PR c/51849
10824         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10825
10826 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
10827
10828         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10829         DECL correctly; do not give up on types in static storage.
10830
10831 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
10832
10833         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10834
10835 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
10836
10837         * graphite-isl-ast-to-gimple.c:
10838         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10839
10840         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10841
10842 2014-08-08  Guozhi Wei  <carrot@google.com>
10843
10844         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10845
10846 2014-08-08  Cary Coutant  <ccoutant@google.com>
10847
10848         * dwarf2out.c (get_skeleton_type_unit): Remove.
10849         (output_skeleton_debug_sections): Remove skeleton type units.
10850         (output_comdat_type_unit): Likewise.
10851         (dwarf2out_finish): Likewise.
10852
10853 2014-08-07  Yi Yang  <ahyangyi@google.com>
10854
10855         * predict.c (expr_expected_value_1): Remove the redundant assignment.
10856
10857 2014-08-08  Richard Biener  <rguenther@suse.de>
10858
10859         * lto-streamer.h (struct lto_input_block): Make it a class
10860         with a constructor.
10861         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10862         (struct lto_function_header, struct lto_simple_header,
10863         struct lto_simple_header_with_strings,
10864         struct lto_decl_header, struct lto_function_header): Make
10865         a simple inheritance hieararchy.  Remove unused fields.
10866         (struct lto_asm_header): Remove.
10867         * lto-streamer-out.c (produce_asm): Adjust.
10868         (lto_output_toplevel_asms): Likewise.
10869         (produce_asm_for_decls): Likewise.
10870         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10871         * data-streamer-in.c (string_for_index): Likewise.
10872         * ipa-inline-analysis.c (inline_read_section): Likewise.
10873         * ipa-prop.c (ipa_prop_read_section): Likewise.
10874         (read_replacements_section): Likewise.
10875         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10876         * lto-section-in.c (lto_create_simple_input_block): Likewise.
10877         (lto_destroy_simple_input_block): Likewise.
10878         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10879         (lto_input_toplevel_asms): Likewise.
10880
10881 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10882             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10883             Anna Tikhonova  <anna.tikhonova@intel.com>
10884             Ilya Tocar  <ilya.tocar@intel.com>
10885             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10886             Ilya Verbin  <ilya.verbin@intel.com>
10887             Kirill Yukhin  <kirill.yukhin@intel.com>
10888             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10889
10890         * common/config/i386/i386-common.c
10891         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10892         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10893         (ix86_handle_option): Handle OPT_mavx512dq.
10894         * config/i386/cpuid.h (bit_AVX512DQ): Define.
10895         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10896         set -mavx512dq accordingly.
10897         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10898         OPTION_MASK_ISA_AVX512DQ.
10899         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10900         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10901         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10902         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10903         * config/i386/i386.h (TARGET_AVX512DQ): Define.
10904         (TARGET_AVX512DQ_P(x)): Ditto.
10905         * config/i386/i386.opt: Add mavx512dq.
10906
10907 2014-08-08  Richard Biener  <rguenther@suse.de>
10908
10909         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10910         target_percent, target_percent_s): Export.
10911         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10912         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10913         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10914         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10915         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10916         Move to gimple-fold.c.
10917         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10918         strcat and strcpy.
10919         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10920         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10921         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10922         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10923         (rewrite_call_expr_array): Remove.
10924         (fold_builtin_sprintf_chk): Likewise.
10925         (fold_builtin_snprintf_chk): Likewise.
10926         (fold_builtin_varargs): Remove handling of sprintf_chk,
10927         vsprintf_chk, snprintf_chk and vsnprintf_chk.
10928         (gimple_fold_builtin_sprintf_chk): Remove.
10929         (gimple_fold_builtin_snprintf_chk): Likewise.
10930         (gimple_fold_builtin_varargs): Likewise.
10931         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10932         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10933         * gimple.c (gimple_seq_add_seq_without_update): New function.
10934         * gimple.h (gimple_seq_add_seq_without_update): Declare.
10935         * gimple-fold.c: Include output.h.
10936         (gsi_replace_with_seq_vops): New function, split out from ...
10937         (gimplify_and_update_call_from_tree): ... here.
10938         (replace_call_with_value): New function.
10939         (replace_call_with_call_and_fold): Likewise.
10940         (var_decl_component_p): Moved from builtins.c.
10941         (gimple_fold_builtin_memory_op): Moved from builtins.c
10942         fold_builtin_memory_op and rewritten to GIMPLE.
10943         (gimple_fold_builtin_memset): Likewise.
10944         (gimple_fold_builtin_strcpy): Likewise.
10945         (gimple_fold_builtin_strncpy): Likewise.
10946         (gimple_fold_builtin_strcat): Likewise.
10947         (gimple_fold_builtin_fputs): Likewise.
10948         (gimple_fold_builtin_memory_chk): Likewise.
10949         (gimple_fold_builtin_stxcpy_chk): Likewise.
10950         (gimple_fold_builtin_stxncpy_chk): Likewise.
10951         (gimple_fold_builtin_snprintf_chk): Likewise.
10952         (gimple_fold_builtin_sprintf_chk): Likewise.
10953         (gimple_fold_builtin_strlen): New function.
10954         (gimple_fold_builtin_with_strlen): New function split out from
10955         gimple_fold_builtin.
10956         (gimple_fold_builtin): Change signature and handle
10957         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10958         here.  Call gimple_fold_builtin_with_strlen.
10959         (gimple_fold_call): Adjust.
10960
10961 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
10962
10963         * calls.c (precompute_arguments): Check
10964          promoted_for_signed_and_unsigned_p and set the promoted mode.
10965         (promoted_for_signed_and_unsigned_p): New function.
10966         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10967         and set the promoted mode.
10968         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10969         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10970         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10971
10972
10973 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
10974
10975         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10976         instead of SUBREG_PROMOTED_UNSIGNED_SET.
10977         (expand_call): Likewise.
10978         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10979         to get promoted mode.
10980         * combine.c (record_promoted_value): Skip > 0 comparison with
10981         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10982         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10983         of SUBREG_PROMOTED_UNSIGNED_P.
10984         (convert_modes): Likewise.
10985         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10986         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10987         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10988         SUBREG_PROMOTED_UNSIGNED_SET.
10989         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10990         instead of SUBREG_PROMOTED_UNSIGNED_SET.
10991         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10992         SUBREG_PROMOTED_SET.
10993         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10994         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10995         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10996         of SUBREG_PROMOTED_UNSIGNED_P.
10997         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10998         (SUBREG_PROMOTED_SET): New define.
10999         (SUBREG_PROMOTED_GET): Likewise.
11000         (SUBREG_PROMOTED_SIGN): Likewise.
11001         (SUBREG_PROMOTED_SIGNED_P): Likewise.
11002         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11003         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11004         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11005         instead of SUBREG_PROMOTED_UNSIGNED_GET.
11006         (nonzero_bits1): Skip > 0 comparison with the results as
11007         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11008         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11009         of !SUBREG_PROMOTED_UNSIGNED_P.
11010         * simplify-rtx.c (simplify_unary_operation_1): Use new
11011         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11012         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11013         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11014         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11015
11016 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
11017
11018         * ipa-devirt.c: Include gimple-pretty-print.h
11019         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11020         further tests.
11021         (decl_maybe_in_construction_p): Fix conditional on cdtor check
11022         (get_polymorphic_call_info): Fix return value
11023         (type_change_info): New sturcture based on ipa-prop
11024         variant.
11025         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11026         based on ipa-prop variant.
11027         (extr_type_from_vtbl_ptr_store): New function
11028         based on ipa-prop variant.
11029         (record_known_type): New function.
11030         (check_stmt_for_type_change): New function.
11031         (get_dynamic_type): New function.
11032         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11033         * tree-ssa-pre.c: ipa-utils.h
11034         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11035         machinery; sanity check with ipa-prop devirtualization.
11036         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11037         polymorphic flag.
11038
11039 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
11040
11041         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11042         * alias.c, cfgexpand.c, cgraphbuild.c,
11043         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11044         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11045         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11046         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11047         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11048         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11049         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11050         dse.c, except.c, gengtype.c, gimple-expr.c,
11051         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11052         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11053         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11054         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11055         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11056         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11057         pointer-set.h.
11058         * pointer-set.c: Remove file.
11059         * pointer-set.h: Remove file.
11060
11061 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11062
11063         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11064         * config/arm/types.md (f_sels, f_seld): Delete.
11065
11066 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11067
11068         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11069         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11070         (aarch64_movdi_<mode>high): Likewise.
11071         (aarch64_mov<mode>high_di): Likewise.
11072         (aarch64_movdi_<mode>low): Likewise.
11073         (aarch64_mov<mode>low_di): Likewise.
11074         (aarch64_movtilow_tilow): Likewise.
11075         Add comment explaining usage of fp,simd attributes and of
11076         TARGET_FLOAT and TARGET_SIMD.
11077
11078 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
11079             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11080
11081         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11082         Use MOVN when one of the half-words is 0xffff.
11083
11084 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
11085
11086         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11087
11088 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11089
11090         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
11091         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11092         (rfs_str): String corresponding to RFS_* constants.
11093         (rank_for_schedule_stats_t): New typedef.
11094         (rank_for_schedule_stats): New static variable.
11095         (rfs_result): New static function.
11096         (rank_for_schedule): Track statistics for deciding heuristics.
11097         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11098         static functions.
11099         (ready_sort): Use them for debug printouts.
11100         (schedule_block): Init statistics state.  Print statistics on
11101         rank_for_schedule decisions.
11102
11103 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11104
11105         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11106
11107 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
11108
11109         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11110         constraint.
11111
11112 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
11113
11114         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11115         function to not conflict.
11116         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11117         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11118         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11119         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11120         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11121         of pointer_map.
11122
11123 2014-08-07  Marek Polacek  <polacek@redhat.com>
11124
11125         * fold-const.c (fold_binary_loc): Add folding of
11126         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11127
11128 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
11129
11130         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11131         instead of type size.
11132         (ASM_FINISH_DECLARE_OBJECT): Likewise.
11133
11134 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
11135
11136         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11137         (*thumb1_movqi_insn): Likewise.
11138         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11139
11140 2014-08-07  Tom de Vries  <tom@codesourcery.com>
11141
11142         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11143         (glibc_2_11_or_earlier): Remove effective-target keywords.
11144
11145 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11146
11147         * config/arm/arm.c (bdesc_2arg): Fix typo.
11148         (arm_atomic_assign_expand_fenv): Remove The default implementation.
11149
11150 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11151
11152         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11153
11154 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
11155
11156         PR debug/61923
11157         * haifa-sched.c (advance_one_cycle): Fix dump.
11158         (schedule_block): Don't advance cycle if we are already at the
11159         beginning of the cycle.
11160
11161 2014-08-06  Martin Jambor  <mjambor@suse.cz>
11162
11163         PR ipa/61393
11164         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11165
11166 2014-08-06  Richard Biener  <rguenther@suse.de>
11167
11168         PR lto/62034
11169         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11170         SCCs here.
11171         (lto_input_tree): Pop SCCs here.
11172
11173 2014-08-06  Richard Biener  <rguenther@suse.de>
11174
11175         PR tree-optimization/61320
11176         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11177         handle misaligned loads.
11178
11179 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
11180
11181         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11182         (aarch64_expand_vec_perm_const): Check for dup before zip.
11183
11184 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11185
11186         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11187         CONST_INT_P instead of GET_CODE and compare.
11188         (aarch64_select_cc_mode): Likewise.
11189         (aarch64_print_operand): Likewise.
11190         (aarch64_rtx_costs): Likewise.
11191         (aarch64_simd_valid_immediate): Likewise.
11192         (aarch64_simd_check_vect_par_cnst_half): Likewise.
11193         (aarch64_simd_emit_pair_result_insn): Likewise.
11194
11195 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
11196
11197         * gdbhooks.py (find_gcc_source_dir): New helper function.
11198         (class PassNames): New class, locating and parsing passes.def.
11199         (class BreakOnPass): New command "break-on-pass".
11200
11201 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
11202
11203         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11204         getting olde.
11205
11206 2014-08-05  Richard Biener  <rguenther@suse.de>
11207
11208         PR rtl-optimization/61672
11209         * emit-rtl.h (mem_attrs_eq_p): Declare.
11210         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
11211         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11212         * cfgcleanup.c (merge_memattrs): Likewise.
11213         Include emit-rtl.h.
11214
11215 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11216
11217         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11218         rather than singleton vectors.
11219         (vqdmlsls_lane_s32): Likewise.
11220
11221 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11222
11223         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11224         Use VSDQ_HSI mode iterator.
11225         (aarch64_sqrdmulh_laneq<mode>): Likewise.
11226         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11227         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11228         Use BUILTIN_VDQHS macro.
11229         (sqrdmulh_laneq): Likewise.
11230         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11231         (vqdmlals_laneq_s32): Likewise.
11232         (vqdmlslh_laneq_s16): Likewise.
11233         (vqdmlsls_laneq_s32): Likewise.
11234         (vqdmulhh_laneq_s16): Likewise.
11235         (vqdmulhs_laneq_s32): Likewise.
11236         (vqrdmulhh_laneq_s16): Likewise.
11237         (vqrdmulhs_laneq_s32): Likewise.
11238
11239 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11240
11241         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11242         (vmuld_laneq_f64): Likewise.
11243         (vmuls_laneq_f32): Likewise.
11244         (vmul_n_f64): Likewise.
11245         (vmuld_lane_f64): Reimplement in C.
11246         (vmuls_lane_f32): Likewise.
11247
11248 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11249
11250         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11251         to reservation.
11252         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11253
11254 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11255
11256         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11257         (rbitsi2): Likewise.
11258         (*arm_rev): Set predicable and predicable_short_it attributes.
11259
11260 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11261
11262         * convert.c (convert_to_integer): Guard transformation to lrint by
11263         -fno-math-errno.
11264
11265 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
11266
11267         * config/aarch64/aarch64-builtins.c
11268         (aarch64_simd_builtin_type_mode): Delete.
11269         (v8qi_UP): Remap to V8QImode.
11270         (v4hi_UP): Remap to V4HImode.
11271         (v2si_UP): Remap to V2SImode.
11272         (v2sf_UP): Remap to V2SFmode.
11273         (v1df_UP): Remap to V1DFmode.
11274         (di_UP): Remap to DImode.
11275         (df_UP): Remap to DFmode.
11276         (v16qi_UP):V16QImode.
11277         (v8hi_UP): Remap to V8HImode.
11278         (v4si_UP): Remap to V4SImode.
11279         (v4sf_UP): Remap to V4SFmode.
11280         (v2di_UP): Remap to V2DImode.
11281         (v2df_UP): Remap to V2DFmode.
11282         (ti_UP): Remap to TImode.
11283         (ei_UP): Remap to EImode.
11284         (oi_UP): Remap to OImode.
11285         (ci_UP): Map to CImode.
11286         (xi_UP): Remap to XImode.
11287         (si_UP): Remap to SImode.
11288         (sf_UP): Remap to SFmode.
11289         (hi_UP): Remap to HImode.
11290         (qi_UP): Remap to QImode.
11291         (aarch64_simd_builtin_datum): Make mode a machine_mode.
11292         (VAR1): Build builtin name.
11293         (aarch64_init_simd_builtins): Remove dead code.
11294
11295 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
11296
11297         * graphite-isl-ast-to-gimple.c:
11298         (set_options): New function.
11299         (scop_to_isl_ast): Add calling of set_options.
11300
11301 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
11302
11303         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11304         (analyze_iv_to_split_insn): Don't initialize them.
11305         (get_ivts_expr): Removed.
11306         (allocate_basic_variable, insert_base_initialization): Use
11307         SET_SRC instead of *get_ivts_expr.
11308         (split_iv): Use &SET_SRC instead of get_ivts_expr.
11309
11310 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
11311
11312         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11313         (translate_isl_ast_for_loop): Add checking of the
11314         flag_loop_parallelize_all.
11315         (ast_build_before_for): New function.
11316         (scop_to_isl_ast): Add checking of the
11317         flag_loop_parallelize_all.
11318         * graphite-dependences.c: Move the defenition of the
11319         scop_get_dependences from graphite-optimize-isl.c to this file.
11320         (apply_schedule_on_deps): Add checking of the ux's emptiness.
11321         (carries_deps): Add checking of the x's value.
11322         * graphite-optimize-isl.c: Move the defenition of the
11323         scop_get_dependences to graphite-dependences.c.
11324         * graphite-poly.h: Add declarations of scop_get_dependences
11325         and carries_deps.
11326
11327 2014-08-04  Rohit  <rohitarulraj@freescale.com>
11328
11329         PR target/60102
11330         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11331         names.
11332         (alt_reg_names): Likewise.
11333         (rs6000_dwarf_register_span): For SPE high registers, replace
11334         dwarf register numbers with GCC hard register numbers.
11335         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11336         (rs6000_dbx_register_number): For SPE high registers, return dwarf
11337         register number for the corresponding GCC hard register number.
11338         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11339         newly added GCC hard register numbers for SPE high registers.
11340         (DWARF_FRAME_REGISTERS):  Likewise.
11341         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11342         (DWARF_FRAME_REGNUM): Likewise.
11343         (FIXED_REGISTERS): Likewise.
11344         (CALL_USED_REGISTERS): Likewise.
11345         (CALL_REALLY_USED_REGISTERS): Likewise.
11346         (REG_ALLOC_ORDER): Likewise.
11347         (enum reg_class): Likewise.
11348         (REG_CLASS_NAMES): Likewise.
11349         (REG_CLASS_CONTENTS): Likewise.
11350         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11351
11352 2014-08-04  Richard Biener  <rguenther@suse.de>
11353
11354         * gimple-fold.h (gimple_fold_builtin): Remove.
11355         * gimple-fold.c (gimple_fold_builtin): Make static.
11356         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11357         fold_stmt, not gimple_fold_builtin.
11358
11359 2014-08-04  Martin Liska <mliska@suse.cz>
11360
11361         * cgraph.h (csi_end_p): Removed.
11362         (csi_next): Likewise.
11363         (csi_node): Likewise.
11364         (csi_start): Likewise.
11365         (cgraph_node_in_set_p): Likewise.
11366         (cgraph_node_set_size): Likewise.
11367         (vsi_end_p): Likewise.
11368         (vsi_next): Likewise.
11369         (vsi_node): Likewise.
11370         (vsi_start): Likewise.
11371         (varpool_node_set_size): Likewise.
11372         (cgraph_node_set_nonempty_p): Likewise.
11373         (varpool_node_set_nonempty_p): Likewise.
11374         * cgraphunit.c (cgraph_process_new_functions): vec replaces
11375         cgraph_node_set.
11376         * ipa-inline-transform.c: Likewise.
11377         * ipa-utils.c (cgraph_node_set_new): Removed.
11378         (cgraph_node_set_add): Likewise.
11379         (cgraph_node_set_remove): Likewise.
11380         (cgraph_node_set_find): Likewise.
11381         (dump_cgraph_node_set): Likewise.
11382         (debug_cgraph_node_set): Likewise.
11383         (free_cgraph_node_set): Likewise.
11384         (varpool_node_set_new): Likewise.
11385         (varpool_node_set_add): Likewise.
11386         (varpool_node_set_remove): Likewise.
11387         (varpool_node_set_find): Likewise.
11388         (dump_varpool_node_set): Likewise.
11389         (free_varpool_node_set): Likewise.
11390         (debug_varpool_node_set): Likewise.
11391         * tree-emutls.c (struct tls_var_data):
11392         (emutls_index): Removed.
11393         (emutls_decl): Likewise.
11394         (gen_emutls_addr): Function implementation uses newly added
11395         hash_map<varpool_node *, tls_var_data>.
11396         (clear_access_vars): Likewise.
11397         (create_emultls_var): Likewise.
11398         (ipa_lower_emutls): Likewise.
11399         (reset_access): New function.
11400
11401 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
11402
11403         * config/i386/i386.c (ix86_option_override_internal): Add
11404         PTA_RDRND and PTA_MOVBE for bdver4.
11405
11406 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11407             James Greenhalgh  <james.greenhalgh@arm.com>
11408
11409         * doc/md.texi (clrsb): Document.
11410         (clz): Change reference to x into operand 1.
11411         (ctz): Likewise.
11412         (popcount): Likewise.
11413
11414 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11415
11416         PR target/61713
11417         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11418         move to subtarget in serial version if result is ignored.
11419
11420 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11421             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11422
11423         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11424         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
11425         (sched_analyze_insn): Update use of try_group_insn to
11426         sched_macro_fuse_insns.
11427         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11428         arguments that are not conditional jumps.
11429
11430 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
11431
11432         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11433         family information. Handle BTVER2 cpu with cpuid family value.
11434
11435 2014-08-04  Tom de Vries  <tom@codesourcery.com>
11436
11437         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11438         (glibc_2_11_or_earlier): Document effective-target keywords.
11439
11440 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
11441
11442         * ipa-devirt.c (odr_type_warn_count): Add type.
11443         (possible_polymorphic_call_targets): Set it.
11444         (ipa_devirt): Use it.
11445
11446 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
11447
11448         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11449         Document.
11450         * ipa-devirt.c: Include hash-map.h
11451         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11452         (clear_speculation): Break out of ...
11453         (get_class_context): ... here; speed up handling obviously useless
11454         speculations.
11455         (odr_type_warn_count, decl_warn_count): New structures.
11456         (final_warning_record): New structure.
11457         (final_warning_records): New static variable.
11458         (possible_polymorphic_call_targets): Cleanup handling of
11459         speculative info; do not build speculation when user do not care;
11460         record info about warnings when asked for.
11461         (add_decl_warning): New function.
11462         (type_warning_cmp): New function.
11463         (decl_warning_cmp): New function.
11464         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11465         (gate): Enable pass when warnings are requested.
11466         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11467         options.
11468
11469 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
11470
11471         * hash-map.h (default_hashmap_traits::mark_key_deleted):
11472         Fix cast.
11473         (hash_map::remove): New method.
11474         (hash_map::traverse): New method.
11475         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11476         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11477         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11478         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11479         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11480         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11481         pointer_map.
11482
11483 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
11484
11485         * hash-set.h: new File.
11486         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11487         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11488         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11489         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11490         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11491         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11492         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11493         varpool.c: Use hash_set instead of pointer_set.
11494
11495 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
11496
11497         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11498
11499 2014-08-01  Jiong Wang <jiong.wang@arm.com>
11500
11501         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11502         for frame access when strict_p is false.
11503
11504 2014-08-01  Renlin Li <renlin.li@arm.com>
11505 2014-08-01  Jiong Wang <jiong.wang@arm.com>
11506
11507         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11508         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11509         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11510         Declaration.
11511         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11512         predicate.
11513         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11514         aarch64_mem_pair_offset.
11515
11516 2014-08-01  Jiong Wang <jiong.wang@arm.com>
11517
11518         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11519         offset.
11520         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11521         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11522
11523 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
11524
11525         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11526
11527 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
11528
11529         PR regression/61510
11530         * cgraphunit.c (analyze_functions): Use get_create rather than get
11531         for decls which are clones of abstract functions.
11532
11533 2014-08-01  Martin Liska  <mliska@suse.cz>
11534
11535         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11536         * ipa-prop.h (count_formal_params): Global function created from static.
11537         * ipa-prop.c (count_formal_params): Likewise.
11538         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11539         profiles for semantically equivalent functions.
11540         * passes.c (do_per_function): If we load body of a function
11541         during WPA, this condition should behave same.
11542         * varpool.c (ctor_for_folding): More tolerant assert for variable
11543         aliases created during WPA.
11544
11545 2014-08-01  Martin Liska  <mliska@suse.cz>
11546
11547         * doc/invoke.texi (Options That Control Optimization): Documentation
11548         for -foptimize-strlen introduced. Optimization levels default options
11549         fixed.
11550
11551 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
11552
11553         * opts.c (common_handle_option): Handle -fsanitize=alignment.
11554         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11555         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11556         type to bool.
11557         * stor-layout.h (min_align_of_type): New prototype.
11558         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11559         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
11560         check.
11561         * ubsan.c: Include builtins.h.
11562         (ubsan_expand_bounds_ifn): Change return type to bool,
11563         always return true.
11564         (ubsan_expand_null_ifn): Change return type to bool, change
11565         argument to gimple_stmt_iterator *.  Handle both null and alignment
11566         sanitization, take type from ckind argument's type rather than
11567         first argument.
11568         (instrument_member_call): Removed.
11569         (instrument_mem_ref): Remove t argument, add mem and base arguments.
11570         Handle both null and alignment sanitization, don't say whole
11571         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
11572         call instead of 2 argument.
11573         (instrument_null): Adjust instrument_mem_ref caller.  Don't
11574         instrument calls here.
11575         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11576         like SANITIZE_NULL.
11577         * stor-layout.c (min_align_of_type): New function.
11578         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11579         Or it into SANITIZE_UNDEFINED.
11580         * doc/invoke.texi (-fsanitize=alignment): Document.
11581
11582 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11583
11584         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11585
11586 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11587
11588         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11589         inchash.
11590         (vn_reference_compute_hash): Dito.
11591         (vn_nary_op_compute_hash): Dito.
11592         (vn_phi_compute_hash): Dito.
11593         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11594
11595 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11596
11597         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11598         Rename to inchash:add_expr_commutative. Convert to inchash.
11599         (iterative_hash_hashable_expr): Rename to
11600         inchash:add_hashable_expr. Convert to inchash.
11601         (avail_expr_hash): Dito.
11602
11603 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11604
11605         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11606         Convert to inchash.
11607
11608 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11609
11610         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11611
11612 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11613
11614         * Makefile.in (OBJS): Add rtlhash.o
11615         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11616         (loc_checksum): Dito.
11617         (loc_checksum_ordered): Dito.
11618         (hash_loc_operands): Dito.
11619         (hash_locs): Dito.
11620         (hash_loc_list): Dito.
11621         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11622         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11623         * rtlhash.c: New file.
11624         * rtlhash.h: New file.
11625
11626 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11627
11628         * inchash.h (inchash): Change inchash class to namespace.
11629         (class hash): ... Rename from inchash.
11630         (add_object): Move from macro to class template.
11631         * lto-streamer-out.c (hash_tree): Change inchash
11632         to inchash::hash.
11633         * tree.c (build_type_attribute_qual_variant): Dito.
11634         (type_hash_list): Dito.
11635         (attribute_hash_list): Dito.
11636         (iterative_hstate_expr): Rename to inchash::add_expr
11637         (build_range_type_1): Change inchash to inchash::hash
11638         and use hash::add_expr.
11639         (build_array_type_1): Dito.
11640         (build_function_type): Dito
11641         (build_method_type_directly): Dito.
11642         (build_offset_type): Dito.
11643         (build_complex_type): Dito.
11644         (make_vector_type): Dito.
11645         * tree.h (iterative_hash_expr): Dito.
11646
11647 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
11648
11649         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11650
11651 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
11652
11653         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11654         correct alphabetical position.
11655         (vpaddd_f64): Rewrite using builtins.
11656         (vpaddd_s64): Move to correct alphabetical position.
11657         (vpaddd_u64): New.
11658
11659 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
11660
11661         PR target/61844
11662         * config/sh/sh.c (sh_legitimate_address_p,
11663         sh_legitimize_reload_address): Handle reg+reg address modes when
11664         ALLOW_INDEXED_ADDRESS is false.
11665         * config/sh/predicates.md (general_movsrc_operand,
11666         general_movdst_operand): Likewise.
11667
11668 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
11669
11670         * config/aarch64/aarch64-builtins.c
11671         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11672         BYTES_BIG_ENDIAN.
11673
11674 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
11675
11676         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11677         the generated mask based on BYTES_BIG_ENDIAN.
11678         (aarch64_simd_check_vect_par_cnst_half): New.
11679         * config/aarch64/aarch64-protos.h
11680         (aarch64_simd_check_vect_par_cnst_half): New.
11681         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11682         the check out to aarch64_simd_check_vect_par_cnst_half.
11683         (vect_par_cnst_lo_half): Likewise.
11684         * config/aarch64/aarch64-simd.md
11685         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11686         (move_hi_quad_<mode>): Always generate a low mask.
11687
11688 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11689
11690         * doc/invoke.texi (AVR Options): Add documentation about
11691         __AVR_DEVICE_NAME__ built-in macro.
11692
11693 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
11694
11695         PR target/61948
11696         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11697         constraints are satisfied.
11698         (<shift>di3_neon): Likewise.
11699
11700 2014-07-31  Richard Biener  <rguenther@suse.de>
11701
11702         PR tree-optimization/61964
11703         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11704         by structural equality.
11705
11706 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
11707
11708         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11709         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11710         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11711         New enums.
11712         * gcc.c (sanitize_spec_function): Support new option.
11713         (SANITIZER_SPEC): Remove now redundant check.
11714         * opts.c (common_handle_option): Support new option.
11715         (finish_options): Check for incompatibilities.
11716         * toplev.c (process_options): Split userspace-specific checks.
11717
11718 2014-07-31  Richard Biener  <rguenther@suse.de>
11719
11720         * lto-streamer.h (struct output_block): Remove global.
11721         (struct data_in): Remove labels, num_named_labels and
11722         num_unnamed_labels.
11723         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11724         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11725
11726 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
11727
11728         PR c++/60517
11729         * common.opt (-Wreturn-local-addr): Moved from c.opt.
11730         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11731         (isolate_path): New argument to avoid inserting a trap.
11732         (find_implicit_erroneous_behaviour): Handle returning the address
11733         of a local variable.
11734         (find_explicit_erroneous_behaviour): Likewise.
11735
11736 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
11737
11738         PR lto/61868
11739         * toplev.c (init_random_seed): Move piece of code never called to
11740         set_random_seed.
11741         (set_random_seed): see above.
11742
11743 2014-07-31  Tom de Vries  <tom@codesourcery.com>
11744
11745         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11746
11747 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
11748
11749         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11750         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11751
11752 2014-07-31  Richard Biener  <rguenther@suse.de>
11753
11754         * data-streamer.h (streamer_write_data_stream): Declare here,
11755         renamed from ...
11756         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
11757         * lto-cgraph.c (lto_output_node): Adjust.
11758         (lto_output_varpool_node): Likewise.
11759         * data-streamer-out.c (streamer_string_index): Likewise.
11760         (streamer_write_data_stream, lto_append_block): Move from ...
11761         * lto-section-out.c (lto_output_data_stream,
11762         lto_append_block): ... here.
11763
11764 2014-07-30  Mike Stump  <mikestump@comcast.net>
11765
11766         * configure.ac: Also check for popen.
11767         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11768         * configure: Regenerate.
11769         * config.in:  Regenerate.
11770
11771 2014-07-30  Martin Jambor  <mjambor@suse.cz>
11772
11773         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11774         parameter to gimple.
11775
11776 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11777
11778         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11779         address as second parameter to __tpf_eh_return routine.
11780
11781 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
11782
11783         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11784         Thumb2.
11785
11786 2014-07-30  Tom Tromey  <tromey@redhat.com>
11787
11788         PR c/59855
11789         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11790         * doc/extend.texi (Type Attributes): Document designated_init
11791         attribute.
11792
11793 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
11794
11795         * graphite-isl-ast-to-gimple.c:
11796         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11797         (gcc_expression_from_isl_expression): Pass type to
11798         gcc_expression_from_isl_ast_expr_id.
11799
11800 2014-07-30  Richard Biener  <rguenther@suse.de>
11801
11802         * lto-streamer.h (lto_write_data): New function.
11803         * langhooks.c (lhd_append_data): Do not free block.
11804         * lto-section-out.c (lto_write_data): New function writing
11805         raw data to the current section.
11806         (lto_write_stream): Adjust for langhook semantic change.
11807         (lto_destroy_simple_output_block): Write header directly.
11808         * lto-opts.c (lto_write_options): Write options directly.
11809         * lto-streamer-out.c (produce_asm): Write heaeder directly.
11810         (lto_output_toplevel_asms): Likewise.
11811         (copy_function_or_variable): Copy data directly.
11812         (write_global_references): Output index table directly.
11813         (lto_output_decl_state_refs): Likewise.
11814         (write_symbol): Write data directly.
11815         (produce_symtab): Adjust.
11816         (produce_asm_for_decls): Output header and refs directly.
11817
11818 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
11819
11820         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11821         to speculative_targets
11822         (get_class_context): Fix handling of contextes without outer type;
11823         avoid matching non-polymorphic types in LTO.
11824         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11825         parameter to speculative_targetsp; handle speculation.
11826         (dump_possible_polymorphic_call_targets): Update dumping.
11827
11828 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
11829
11830         * common.opt (Wodr): Enable by default.
11831
11832 2014-07-29  Olivier Hainque  <hainque@adacore.com>
11833
11834         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11835
11836 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
11837
11838         PR bootstrap/61914
11839         * gengtype.c (strtoken): New function.
11840         (create_user_defined_type): Replace strtok with strtoken.
11841
11842 2014-07-29  Nathan Sidwell  <nathan@acm.org>
11843
11844         * gcov-io.c (gcov_var): Make hidden.
11845         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11846         (gcov_do_dump): Declare.
11847         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11848
11849 2014-07-29  Martin Jambor  <mjambor@suse.cz>
11850
11851         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11852         parameter to gimple.
11853         (sra_modify_assign): Likewise.
11854
11855 2014-07-29  Richard Biener  <rguenther@suse.de>
11856
11857         PR middle-end/52478
11858         * expr.c (expand_expr_real_2): Revert last change.
11859
11860 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
11861
11862         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11863         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11864         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11865         call.
11866         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11867         (contains_type_p): Forward declare.
11868         (polymorphic_call_target_hasher::hash): Hash speculative info.
11869         (polymorphic_call_target_hasher::equal): Compare speculative info.
11870         (get_class_context): Handle speuclation.
11871         (contains_type_p): Update.
11872         (get_polymorphic_call_info_for_decl): Update.
11873         (walk_ssa_copies): Break out from ...
11874         (get_polymorphic_call_info): ... here; set speculative context
11875         before giving up.
11876         * ipa-prop.c (ipa_write_indirect_edge_info,
11877         ipa_read_indirect_edge_info): Stream speculative context.
11878         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11879         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11880         SPECULATIVE_MAYBE_DERIVED_TYPE).
11881         (possible_polymorphic_call_targets overriders): Update.
11882         (dump_possible_polymorphic_call_targets overriders): Update.
11883         (dump_possible_polymorphic_call_target_p overriders): Update.
11884
11885 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
11886
11887         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11888         ipa-devirt path; fix thinko there.
11889
11890 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
11891
11892         * config/i386/i386.c (ix86_return_in_memory): Replace one
11893         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11894
11895 2014-07-28  Marek Polacek  <polacek@redhat.com>
11896
11897         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
11898
11899 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
11900
11901         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11902         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11903         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11904         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11905         (USE_LD_AS_NEEDED): Likewise.
11906         (ASM_APP_ON): Likewise.
11907         (ASM_APP_OFF): Likewise.
11908         (TARGET_POSIX_IO): Likewise.
11909         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11910         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11911         (USE_LD_AS_NEEDED): Likewise.
11912         (ASM_APP_ON): Likewise.
11913         (ASM_APP_OFF): Likewise.
11914         (TARGET_POSIX_IO): Likewise.
11915
11916 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
11917
11918         PR middle-end/61734
11919         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11920         operators other than the equality operators.
11921
11922 2014-07-28  Richard Biener  <rguenther@suse.de>
11923
11924         PR middle-end/52478
11925         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11926         sure to register SImode ones, not only >= word_mode ones.
11927         * expr.c (expand_expr_real_2): When expanding -ftrapv
11928         binops do not use OPTAB_LIB_WIDEN.
11929
11930 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
11931
11932         PR middle-end/61919
11933         * tree-outof-ssa.c (insert_partition_copy_on_edge)
11934         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11935         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11936         inserting them in the insn stream.
11937
11938 2014-07-28  Marek Polacek  <polacek@redhat.com>
11939
11940         PR middle-end/61913
11941         * common.opt (Wodr): Add Var.
11942
11943 2014-07-28  Richard Biener  <rguenther@suse.de>
11944
11945         PR tree-optimization/61921
11946         * tree-ssa-structalias.c (create_variable_info_for_1): Check
11947         if there is a varpool node before dereferencing it.
11948
11949 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
11950
11951         * graphite-sese-to-poly.c:
11952         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11953         id of the pbb), which contains pointer to the pbb1.
11954
11955         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11956
11957 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
11958
11959         * graphite-isl-ast-to-gimple.c:
11960         (graphite_create_new_guard): New function.
11961         (translate_isl_ast_node_if): New function.
11962         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11963
11964         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11965
11966 2014-07-27  Anthony Green  <green@moxielogic.com>
11967
11968         * config.gcc: Add moxie-*-moxiebox* configuration.
11969         * config/moxie/moxiebox.h: New file.
11970
11971 2014-07-26  Andrew Pinski  <apinski@cavium.com>
11972
11973         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11974         from the read only register.
11975
11976 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
11977
11978         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11979         as the allocation class if it isn't likely to be spilled.
11980
11981 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
11982
11983         * rtl.h (tls_referenced_p): Declare.
11984         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11985         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11986         (mips_cannot_force_const_mem): Use tls_referenced_p.
11987         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11988         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11989         instead of pa_tls_referenced_p.
11990         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11991         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11992         (pa_legitimate_constant_p): Likewise.
11993         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11994         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11995         (rs6000_cannot_force_const_mem, rs6000_emit_move)
11996         (rs6000_address_for_altivec): Use tls_referenced_p instead of
11997         rs6000_tls_referenced_p.
11998         (rs6000_tls_symbol_ref_1): Delete.
11999
12000 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
12001
12002         PR target/44551
12003         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12004         Optimize inverse of a VEC_CONCAT.
12005
12006 2014-07-25  Xinliang David Li  <davidxl@google.com>
12007
12008         * params.def: New parameter.
12009         * coverage.c (get_coverage_counts): Check new flag.
12010         (coverage_compute_profile_id): Check new flag.
12011         (coverage_begin_function): Check new flag.
12012         (coverage_end_function): Check new flag.
12013         * value-prof.c (coverage_node_map_initialized_p): New function.
12014         (init_node_map): Populate map with all functions.
12015         * doc/invoke.texi: Document new parameter.
12016
12017 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
12018             Richard Biener <rguenther@suse.de>
12019
12020         * lto-streamer-out.c (struct sccs): Turn to ...
12021         (class DFS): ... this one; refactor the DFS walk so it can
12022         be re-done on per-SCC basis.
12023         (DFS::DFS): New constructor.
12024         (DFS::~DFS): New destructor.
12025         (hash_tree): Add new MAP argument holding in-SCC hash values;
12026         remove POINTER_TYPE hashing hack.
12027         (scc_entry_compare): Rename to ...
12028         (DFS::scc_entry_compare): ... this one.
12029         (hash_scc): Rename to ...
12030         (DFS::hash_scc): ... this one; pass output_block instead
12031         of streamer_cache; work harder to get unique and stable SCC
12032         hashes.
12033         (DFS_write_tree): Rename to ...
12034         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12035         (lto_output_tree): Update.
12036
12037 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12038
12039         * lto-streamer-out.c (hash_tree): Convert to inchash.
12040
12041 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12042
12043         * tree.c (build_type_attribute_qual_variant): Use inchash.
12044         (type_hash_list): Dito.
12045         (attribute_hash_list): Dito
12046         (iterative_hstate_expr): Dito.
12047         (iterative_hash_expr): Dito.
12048         (build_range_type_1): Dito.
12049         (build_array_type_1): Dito.
12050         (build_function_type): Dito.
12051         (build_method_type_directly): Dito.
12052         (build_offset_type): Dito.
12053         (build_complex_type): Dito.
12054         (make_vector_type): Dito.
12055         * tree.h (iterative_hash_expr): Add compat wrapper.
12056         (iterative_hstate_expr): Add.
12057
12058 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12059
12060         * Makefile.in (OBJS): Add inchash.o.
12061         (PLUGIN_HEADERS): Add inchash.h.
12062         * ipa-devirt.c: Include inchash.h.
12063         * lto-streamer-out.c: Dito.
12064         * tree-ssa-dom.c: Dito.
12065         * tree-ssa-pre.c: Dito.
12066         * tree-ssa-sccvn.c: Dito.
12067         * tree-ssa-tail-merge.c: Dito.
12068         * asan.c: Dito.
12069         * tree.c (iterative_hash_hashval_t): Move to ...
12070         (iterative_hash_host_wide_int): Move to ...
12071         * inchash.c: Here. New file.
12072         * tree.h (iterative_hash_hashval_t): Move to ...
12073         (iterative_hash_host_wide_int): Move to ...
12074         * inchash.h: Here. New file.
12075
12076 2014-07-25  Richard Biener  <rguenther@suse.de>
12077
12078         PR middle-end/61762
12079         PR middle-end/61894
12080         * fold-const.c (native_encode_int): Add and handle offset
12081         parameter to do partial encodings of expr.
12082         (native_encode_fixed): Likewise.
12083         (native_encode_real): Likewise.
12084         (native_encode_complex): Likewise.
12085         (native_encode_vector): Likewise.
12086         (native_encode_string): Likewise.
12087         (native_encode_expr): Likewise.
12088         * fold-const.c (native_encode_expr): Add offset parameter
12089         defaulting to -1.
12090         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12091         (fold_ctor_reference): Handle all reads from tcc_constant
12092         ctors.
12093
12094 2014-07-25  Richard Biener  <rguenther@suse.de>
12095
12096         * tree-inline.c (estimate_move_cost): Mark speed_p argument
12097         as possibly unused.
12098
12099 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12100
12101         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12102
12103 2014-07-24  Kyle McMartin  <kyle@redhat.com>
12104
12105         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12106
12107 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12108
12109         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12110         Add prototype.
12111         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12112         function.
12113         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12114         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12115         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12116
12117 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12118
12119         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12120         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12121         aggregate types.  Instead, *all* aggregate types, except for single-
12122         element or homogeneous float/vector aggregates, are quadword-aligned
12123         if required by their type alignment.  Issue -Wpsabi note when a type
12124         is now treated differently than before.
12125
12126 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12127
12128         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12129         does not fit fully into floating-point registers, and there is still
12130         space in the register parameter area, use GPRs to pass those parts
12131         of the argument.  Issue -Wpsabi note if any parameter is now treated
12132         differently than before.
12133         (rs6000_arg_partial_bytes): Update.
12134
12135 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
12136
12137         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12138
12139 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
12140
12141         * rtl.h (target_rtl): Remove lang_dependent_initialized.
12142         * toplev.c (initialize_rtl): Don't use it.  Move previously
12143         "language-dependent" calls to...
12144         (backend_init): ...here.
12145         (lang_dependent_init_target): Don't set lang_dependent_initialized.
12146         Assert that RTL initialization hasn't happend yet.
12147
12148 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
12149
12150         PR rtl-optimization/61629
12151         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12152         they have already been initialized.
12153
12154 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
12155
12156         PR middle-end/61268
12157         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12158         DECL_INCOMING_RTL and entry_parm.
12159         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12160         * calls.c (load_register_parameters): Likewise argument values.
12161         (emit_library_call_value_1, store_one_arg): Likewise argument
12162         save areas.
12163         * config/i386/i386.c (assign_386_stack_local): Likewise the local
12164         stack slot.
12165         * explow.c (validize_mem): Modify the argument in-place.
12166
12167 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12168
12169         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12170         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12171
12172 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12173
12174         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12175         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12176
12177 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12178
12179         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12180         (aarch64_save_callee_saves): New parameter "skip_wb".
12181         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12182
12183 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12184
12185         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12186         "wb_candidate2".
12187         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12188
12189 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
12190
12191         * graphite-isl-ast-to-gimple.c:
12192         (graphite_create_new_loop): Add calling of isl_id_free to properly
12193         decrement reference counts.
12194
12195         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12196
12197 2014-07-24  Martin Liska  <mliska@suse.cz>
12198         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12199         function used.
12200         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12201         (rs6000_code_end): Likewise.
12202
12203 2014-07-24  Martin Liska  <mliska@suse.cz>
12204
12205         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12206         symtab_node funtion used.
12207         (rs6000_xcoff_declare_object_name): Likewise.
12208
12209 2014-07-24  Martin Liska  <mliska@suse.cz>
12210
12211         * cgraphunit.c (compile): Correct function used.
12212
12213 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
12214
12215         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12216         as non-indexable.
12217
12218 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
12219
12220         PR lto/61802
12221         * varasm.c (bss_initializer_p): Handle offlined ctors.
12222         (align_variable, get_variable_align): Likewise.
12223         (make_decl_one_only): Likewise.
12224         (default_binds_local_p_1): Likewise.
12225         (decl_binds_to_current_def_p): Likewise.
12226         (get_variable_section): Get constructor if it is offlined.
12227         (assemble_variable_contents): Sanity check that the caller
12228         streamed in the ctor in LTO.
12229
12230 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
12231
12232         * graphite-isl-ast-to-gimple.c:
12233         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12234         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12235         isl_ast_op_pdiv_r to the different case.
12236
12237         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12238
12239 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12240
12241         PR middle-end/61876
12242         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12243         when flag_errno_math is on.
12244
12245 2014-07-24  Martin Liska  <mliska@suse.cz>
12246
12247         * cgraph.h (varpool_node):
12248         (availability get_availability (void)):
12249         created from cgraph_variable_initializer_availability
12250         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12251         created from: cgraph_variable_initializer_availability
12252         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12253         (void finalize_named_section_flags (void)):
12254         created from varpool_finalize_named_section_flags
12255         (bool assemble_decl (void)): created from varpool_assemble_decl
12256         (void analyze (void)): created from varpool_analyze_node
12257         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12258         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12259         (void remove_initializer (void)): created from varpool_remove_initializer
12260         (tree get_constructor (void)): created from varpool_get_constructor
12261         (bool externally_visible_p (void)): created from varpool_externally_visible_p
12262         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12263         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12264         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12265         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12266         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12267         (static bool output_variables (void)): created from varpool_output_variables
12268         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12269         created from varpool_extra_name_alias
12270         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12271         (static void dump_varpool (FILE *f)): created from dump_varpool
12272         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12273         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12274         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12275         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12276         (void assemble_aliases (void)): created from assemble_aliases
12277
12278 2014-07-24  Martin Liska  <mliska@suse.cz>
12279
12280         * cgraph.h (symtab_node):
12281         (void register_symbol (void)): created from symtab_register_node
12282         (void remove (void)): created from symtab_remove_node
12283         (void dump (FILE *f)): created from dump_symtab_node
12284         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12285         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12286         (struct ipa_ref *add_reference (symtab_node *referred_node,
12287         enum ipa_ref_use use_type)): created from add_reference 
12288         (struct ipa_ref *add_reference (symtab_node *referred_node,
12289         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12290         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12291         gimple stmt)): created from maybe_add_reference
12292         (bool semantically_equivalent_p (symtab_node *target)): created from
12293         symtab_semantically_equivalent_p
12294         (void remove_from_same_comdat_group (void)): created from
12295         remove_from_same_comdat_group
12296         (void add_to_same_comdat_group (symtab_node *old_node)): created from
12297         symtab_add_to_same_comdat_group
12298         (void dissolve_same_comdat_group_list (void)): created from
12299         symtab_dissolve_same_comdat_group_list
12300         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12301         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12302         created from symtab_alias_ultimate_target
12303         (inline symtab_node *next_defined_symbol (void)): created from
12304         symtab_next_defined_symbol
12305         (bool resolve_alias (symtab_node *target)): created from
12306         symtab_resolve_alias
12307         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12308         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12309         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12310         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12311         (void set_section (const char *section)): created from set_section_1 
12312         (enum availability get_availability (void)): created from symtab_node_availability
12313         (void make_decl_local (void)): created from symtab_make_decl_local
12314         (bool real_symbol_p (void)): created from symtab_read_node
12315         (can_be_discarded_p (void)): created from symtab_can_be_discarded
12316         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12317         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12318         symtab_in_same_comdat_p;
12319         (bool address_taken_from_non_vtable_p (void)): created from
12320         address_taken_from_non_vtable_p
12321         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12322         (static void dump_table (FILE *)): created from dump_symtab
12323         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12324         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12325         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12326         symtab_used_from_object_file_p 
12327         (void dump_base (FILE *)): created from dump_symtab_base
12328         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12329         (void unregister (void)): created from symtab_unregister_node
12330         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12331         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12332         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12333         symtab_nonoverwritable_alias_1
12334         * cgraph.h (cgraph_node):
12335         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12336         created from cgraph_remove_node_and_inline_clones
12337         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12338         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12339         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12340         (cgraph_node *function_symbol (enum availability *avail = NULL)):
12341         created from cgraph_function_node
12342         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12343         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12344         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12345         created from cgraph_create_clone 
12346         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12347         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12348         created from cgraph_create_virtual_clone
12349         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12350         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12351         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12352         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12353         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12354         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12355         created from cgraph_function_version_info
12356         (struct cgraph_function_version_info *insert_new_function_version (void)):
12357         created from insert_new_cgraph_node_version
12358         (struct cgraph_function_version_info *function_version (void)): created from
12359         get_cgraph_node_version
12360         (void analyze (void)): created from analyze_function
12361         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12362         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12363         tree real_alias) cgraph_add_thunk
12364         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12365         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12366         created from cgraph_function_or_thunk_node
12367         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12368         created from expand_thunk
12369         (void reset (void)): created from cgraph_reset_node
12370         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12371         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12372         (void remove (void)): created from cgraph_remove_node
12373         (void dump (FILE *f)): created from dump_cgraph_node
12374         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12375         (bool get_body (void)): created from cgraph_get_body
12376         (void release_body (void)): created from cgraph_release_function_body
12377         (void unnest (void)): created from cgraph_unnest_node
12378         (void make_local (void)): created from cgraph_make_node_local
12379         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12380         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12381         gcov_type count, int freq)): created from cgraph_create_edge
12382         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12383         gcov_type count, int freq)): created from cgraph_create_indirect_edge
12384         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12385         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12386         created from cgraph_create_edge_including_clones
12387         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12388         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12389         (void remove_callers (void)): created from cgraph_node_remove_callers
12390         (void remove_callees (void)): created from cgraph_node_remove_callees
12391         (enum availability get_availability (void)): created from cgraph_function_body_availability
12392         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12393         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12394         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12395         (void call_duplication_hooks (cgraph_node *node2)): created from
12396         cgraph_call_node_duplication_hooks
12397         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12398         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12399         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12400         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12401         (void call_function_insertion_hooks (void)):
12402         created from cgraph_call_function_insertion_hooks
12403         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12404         (bool local_p (void)): created from cgraph_local_node
12405         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12406         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12407         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12408         (inline bool only_called_directly_or_aliased_p (void)):
12409         created from cgraph_only_called_directly_or_aliased_p
12410         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12411         created from cgraph_will_be_removed_from_program_if_no_direct_calls
12412         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12413         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12414         (bool can_remove_if_no_direct_calls_p (void)):
12415         created from cgraph_can_remove_if_no_direct_calls_p
12416         (inline bool has_gimple_body_p (void)):
12417         created from cgraph_function_with_gimple_body_p
12418         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12419         (static void dump_cgraph (FILE *f)): created from dump_cgraph
12420         (static inline void debug_cgraph (void)): created from debug_cgraph
12421         (static void record_function_versions (tree decl1, tree decl2)):
12422         created from record_function_versions
12423         (static void delete_function_version (tree decl)):
12424         created from delete_function_version
12425         (static void add_new_function (tree fndecl, bool lowered)):
12426         created from cgraph_add_new_function
12427         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12428         (static cgraph_node * create (tree decl)): created from cgraph_create_node
12429         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12430         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12431         (static cgraph_node *get_for_asmname (tree asmname)):
12432         created from cgraph_node_for_asm
12433         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12434         created from cgraph_same_body_alias 
12435         (static bool used_from_object_file_p_worker (cgraph_node *node,
12436         void *): new function
12437         (static bool non_local_p (cgraph_node *node, void *)):
12438         created from cgraph_non_local_node_p_1
12439         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12440         created from verify_cgraph
12441         (static bool make_local (cgraph_node *node, void *)):
12442         created from cgraph_make_node_local
12443         (static cgraph_node *create_alias (tree alias, tree target)):
12444         created from cgraph_create_function_alias
12445         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12446         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12447         created from cgraph_create_edge_1
12448         * cgraph.h (varpool_node):
12449         (void remove (void)): created from varpool_remove_node
12450         (void dump (FILE *f)): created from dump_varpool_node
12451
12452 2014-07-24  Richard Biener  <rguenther@suse.de>
12453
12454         PR ipa/61823
12455         * tree-ssa-structalias.c (create_variable_info_for_1):
12456         Use varpool_get_constructor.
12457         (create_variable_info_for): Likewise.
12458
12459 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12460
12461         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12462         subtract outgoing area size when restoring stack_pointer_rtx.
12463
12464 2014-07-24  Nick Clifton  <nickc@redhat.com>
12465
12466         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12467         that operations are taking place in parallel.
12468         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12469
12470 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
12471
12472         * omp-low.c (extract_omp_for_data): Add missing break statement.
12473
12474 2014-07-24  Richard Biener  <rguenther@suse.de>
12475
12476         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12477         * tree-inline.c (estimate_move_cost): Add speed_p parameter
12478         and adjust MOVE_RATIO query accordingly.
12479         (estimate_num_insns): Adjust callers.
12480         * ipa-prop.c (ipa_populate_param_decls): Likewise.
12481         * ipa-cp.c (gather_context_independent_values,
12482         estimate_local_effects): Likewise.
12483         * ipa-split.c (consider_split): Likewise.
12484
12485 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
12486
12487         * config/i386/driver-i386.c: Remove names of unused arguments and
12488         unnecessary unused attributes.
12489         * config/i386/host-mingw32.c: Likewise.
12490         * config/i386/i386.c: Likewise.
12491         * config/i386/winnt-stubs.c: Likewise.
12492         * config/i386/winnt.c: Likewise.
12493
12494 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12495
12496         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12497         (aarch64_gen_loadwb_pair): New helper function.
12498         (aarch64_expand_epilogue): Simplify code using new helper functions.
12499         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12500
12501 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12502
12503         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12504         (aarch64_gen_storewb_pair): New helper function.
12505         (aarch64_expand_prologue): Simplify code using new helper functions.
12506         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12507
12508 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12509
12510         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12511         Rename to aarch64_save_callee_saves, remove restore code.
12512         (aarch64_restore_callee_saves): New function.
12513
12514 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12515
12516         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12517         (aarch64_save_callee_saves): New function to handle reg save
12518         for both core and vectore regs.
12519
12520 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12521
12522         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12523         (aarch64_gen_store_pair): New helper function.
12524         (aarch64_save_or_restore_callee_save_registers)
12525         (aarch64_save_or_restore_fprs): Use new helper functions.
12526
12527 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12528
12529         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12530         (aarch64_save_or_restore_callee_save_registers)
12531         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12532
12533 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12534
12535         * config/aarch64/aarch64.c
12536         (aarch64_save_or_restore_callee_save_registers)
12537         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12538
12539 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12540
12541         * config/aarch64/aarch64.c
12542         (aarch64_save_or_restore_callee_save_registers)
12543         (aarch64_save_or_restore_fprs): Remove 'increment'.
12544
12545 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12546
12547         * config/aarch64/aarch64.c
12548         (aarch64_save_or_restore_callee_save_registers)
12549         (aarch64_save_or_restore_fprs): Use register offset in
12550         cfun->machine->frame.reg_offset.
12551
12552 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12553
12554         * config/aarch64/aarch64.c
12555         (aarch64_save_or_restore_callee_save_registers)
12556         (aarch64_save_or_restore_fprs): Remove base_rtx.
12557
12558 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12559
12560         * config/aarch64/aarch64.c
12561         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12562         to 'start_offset'.  Remove local variable 'start_offset'.
12563
12564 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12565
12566         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12567         type to HOST_WIDE_INT.
12568
12569 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12570
12571         * config/aarch64/aarch64.c (aarch64_expand_prologue)
12572         (aarch64_save_or_restore_fprs)
12573         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12574
12575 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12576
12577         * config/arm/t-rtems-eabi: Add
12578         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12579         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12580         mbig-endian/mthumb/march=armv7-r, and
12581         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12582         multilibs.
12583
12584 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12585             Chris Johns <chrisj@rtems.org>
12586             Joel Sherrill <joel.sherrill@oarcorp.com>
12587
12588         * config.gcc: Add nios2-*-rtems*.
12589         * config/nios2/rtems.h: New file.
12590         * gcc/config/nios2/t-rtems: New file.
12591
12592 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
12593
12594         PR target/61396
12595         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12596         constant numbers, not general constants.
12597         (rs6000_expand_vector_init): Ditto.
12598
12599 2014-07-23  Nathan Sidwell  <nathan@acm.org>
12600
12601         * gcov-tool.c (gcov_list): Declare here.
12602         (set_gcov_list): Remove.
12603         (gcov_output_files): Set gcov_list directly.
12604
12605 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
12606
12607         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12608
12609 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12610
12611         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12612         callee-saved registers are available for padding purpose
12613         and r3 is not mandatory, then prefer use those callee-saved
12614         instead of r3.
12615
12616 2014-07-23  Richard Biener  <rguenther@suse.de>
12617
12618         * params.def (PARAM_MAX_COMBINE_INSNS): New.
12619         * combine.c: Include statistics.h and params.h.
12620         (combine_instructions): Guard three and four insn combines
12621         with max-combine-insns value.  Record statistics for combines
12622         performed.
12623         * doc/invoke.texi (max-combine-insns): Document new param.
12624
12625 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
12626
12627         * graphite-isl-ast-to-gimple.c:
12628         (translate_isl_ast_node_block): New function.
12629         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12630
12631         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12632         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12633
12634 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
12635
12636         * graphite-isl-ast-to-gimple.c:
12637         (get_max_schedule_dimensions): New function.
12638         (extend_schedule): Likewise.
12639         (generate_isl_schedule): Add calling of extend_schedule and
12640         get_max_schedule_dimensions.
12641
12642 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12643
12644         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12645         (case UNSPEC): Handle UNSPEC_RBIT.
12646
12647 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12648
12649         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12650         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12651
12652 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12653
12654         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12655
12656 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
12657
12658         * graphite-isl-ast-to-gimple.c:
12659         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12660         (ivs_params_clear):
12661         (build_iv_mapping): New function.
12662         (translate_isl_ast_node_user): Likewise.
12663         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12664
12665         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12666         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12667         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12668
12669 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
12670
12671         PR target/55701
12672         * config/arm/arm.md (setmem): New pattern.
12673         * config/arm/arm-protos.h (struct tune_params): New fields.
12674         (arm_gen_setmem): New prototype.
12675         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12676         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12677         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12678         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12679         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12680         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12681         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12682         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12683         (arm_const_inline_cost): New function.
12684         (arm_block_set_max_insns): New function.
12685         (arm_block_set_non_vect_profit_p): New function.
12686         (arm_block_set_vect_profit_p): New function.
12687         (arm_block_set_unaligned_vect): New function.
12688         (arm_block_set_aligned_vect): New function.
12689         (arm_block_set_unaligned_non_vect): New function.
12690         (arm_block_set_aligned_non_vect): New function.
12691         (arm_block_set_vect, arm_gen_setmem): New functions.
12692
12693 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
12694
12695         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12696
12697 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
12698
12699         PR target/61855
12700         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12701         out of #ifdef __OPTIMIZE__.
12702
12703 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
12704
12705         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12706         different trapping status if -fnon-call-exceptions is enabled.
12707
12708 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
12709
12710         * expr.c (store_field): Handle VOIDmode for calls that return values
12711         in multiple locations.
12712
12713 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12714
12715         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
12716         (altivec_vsldoi_<mode>): Likewise.
12717
12718 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
12719
12720         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12721         to the number of characters in the line.
12722
12723 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
12724
12725         * graphite-isl-ast-to-gimple.c: Add using of
12726         build_nonstandard_integer_type instead of int128_integer_type_node.
12727
12728 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
12729
12730         * toplev.c (output_stack_usage): Adjust the location of the warning.
12731
12732 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
12733
12734         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12735         (*membar_storeload): Disable for LEON3.
12736
12737 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12738
12739         PR rtl-optimization/61461
12740         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12741
12742 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
12743
12744         PR target/61794
12745         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12746         Fix instruction constraint.
12747         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12748
12749 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
12750
12751         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12752
12753 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
12754
12755         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12756         GNU coding standards.
12757         (nds32_register_move_cost): Likewise.
12758         (nds32_memory_move_cost): Likewise.
12759         (nds32_address_cost): Likewise.
12760
12761 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12762
12763         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12764
12765 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
12766
12767         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12768         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12769         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12770         (HAVE_sync_compare_and_swapqi): Define.
12771         (HAVE_sync_compare_and_swaphi): Likewise.
12772         (HAVE_sync_compare_and_swapsi): Likewise.
12773
12774 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
12775
12776         * config/mips/p5600.md: Add missing cpu tests.
12777
12778 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12779
12780         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12781         (vmla_f64): Likewise.
12782         (vfms_f64): Likewise.
12783         (vmls_f64): Likewise.
12784
12785 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12786
12787         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12788         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12789
12790 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12791
12792         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12793         (vmlal_high_lane_s32): Likewise.
12794         (vmlal_high_lane_u16): Likewise.
12795         (vmlal_high_lane_u32): Likewise.
12796         (vmlsl_high_lane_s16): Likewise.
12797         (vmlsl_high_lane_s32): Likewise.
12798         (vmlsl_high_lane_u16): Likewise.
12799         (vmlsl_high_lane_u32): Likewise.
12800
12801 2014-07-17  Terry Guo  <terry.guo@arm.com>
12802
12803         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12804         (alus_reg): Renamed to alus_sreg.
12805         * config/arm/arm-fixed.md: Change type of non-dsp instructions
12806         from alu_reg to alu_sreg.  Change type of dsp instructions from
12807         alu_reg to alu_dsp_reg.
12808         * config/arm/thumb1.md: Likewise.
12809         * config/arm/thumb2.md: Likewise.
12810         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12811         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12812         with alu_sreg and alus_sreg.
12813         * config/arm/arm1026ejs.md (alu_op): Likewise.
12814         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12815         * config/arm/arm926ejs.md (9_alu_op): Likewise.
12816         * config/arm/fa526.md (526_alu_op): Likewise.
12817         * config/arm/fa606te.md (606te_alu_op): Likewise.
12818         * config/arm/fa626te.md (626te_alu_op): Likewise.
12819         * config/arm/fa726te.md (726te_alu_op): Likewise.
12820         * config/arm/fmp626.md (mp626_alu_op): Likewise.
12821         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12822         alu_sreg, alu_dsp_reg and alus_sreg.
12823         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12824         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12825         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12826         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12827         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12828         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12829         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12830         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12831         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12832         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12833         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12834         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12835         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12836         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12837         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12838         alus_reg to alus_sreg.
12839
12840 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
12841
12842         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12843         infinity format.
12844
12845 2014-07-17  Richard Biener  <rguenther@suse.de>
12846
12847         PR rtl-optimization/61801
12848         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12849         don't set reg_pending_barrier if it appears in a debug-insn.
12850
12851 2014-07-16  DJ Delorie  <dj@redhat.com>
12852
12853         * config/rx/rx.c (rx_option_override): Fix alignment values.
12854         (rx_align_for_label): Likewise.
12855
12856 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
12857
12858         PR target/61737.
12859         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12860         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12861         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12862         functions.
12863         (cris_print_index, cris_print_operand, cris_constant_index_p)
12864         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12865         (cris_address_cost): Ditto last CONSTANT_P.
12866         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
12867         callers changed.  Yield cris_offsettable_symbol for non-PIC
12868         constant symbolic expressions including labels.  Yield cris_unspec
12869         for all unspecs.
12870         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
12871         target to pic_offset_table_rtx for calls that will likely go
12872         through PLT, const0_rtx when they can't.  All callers changed.
12873         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12874         symbolic expressions to be PICified.  Remove second, redundant,
12875         assert on can_create_pseudo_p returning non-zero.  Use
12876         replace_equiv_address_nv, not replace_equiv_address, for final
12877         operand update.
12878         * config/cris/cris.md ("movsi"): Move variable t to pattern
12879         toplevel. Adjust assert for new cris_symbol_type member.  Use
12880         CONSTANT_P instead of CONSTANT_ADDRESS_P.
12881         ("*movsi_internal") <case 9>: Make check for valid unspec operands
12882         for lapc stricter.
12883         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12884         ("call", "call_value"): Use second incoming operand as a marker
12885         for pic-offset-table-register being used.
12886         ("*expanded_call_non_v32", "*expanded_call_v32")
12887         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12888         second incoming operand to CALL, match cris_call_type_marker.
12889         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
12890         ("*expanded_call_side"): Ditto.  Fix typo in comment.
12891         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12892         CONSTANT_P.
12893         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12894         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12895         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
12896         users changed.  Add members cris_offsettable_symbol and cris_unspec.
12897         (cris_symbol_type): Rename from cris_pic_symbol_type.
12898         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12899         just CONSTANT_P.
12900         * config/cris/cris-protos.h (cris_symbol_type_of,
12901         cris_expand_pic_call_address): Adjust prototypes.
12902         (cris_legitimate_constant_p): New prototype.
12903
12904         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12905         an existing tmake_file.  Don't add t-slibgcc and t-linux.
12906
12907 2014-07-17  Jason Merrill  <jason@redhat.com>
12908
12909         PR c++/61623
12910         * symtab.c (symtab_remove_from_same_comdat_group): Also
12911         set_comdat_group to NULL_TREE.
12912         (verify_symtab): Fix diagnostic.
12913
12914 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
12915
12916         PR target/61662
12917         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12918
12919 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
12920
12921         Support location tracking for built-in macro tokens
12922         * input.h (is_location_from_builtin_token): New function declaration.
12923         * input.c (is_location_from_builtin_token): New function definition.
12924         * toplev.c (general_init): Tell libcpp what the pre-defined
12925         spelling location for built-in tokens is.
12926
12927 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
12928
12929         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12930         on the FUNCTION_DECL.
12931
12932 2014-07-16  Richard Biener  <rguenther@suse.de>
12933
12934         PR other/61782
12935         * doc/extend.texi (always_inline): Clarify.
12936
12937 2014-07-15  Eric Christopher  <echristo@gmail.com>
12938
12939         * doc/invoke.texi (Link Options): Document -z option.
12940
12941 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
12942
12943         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12944         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12945
12946 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
12947
12948         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12949
12950 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
12951
12952         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12953         varpool_assemble_decl.
12954         * varpool.c (varpool_assemble_decl): Assert that node->definition is
12955         true.
12956
12957 2014-07-15  Michael Matz  <matz@suse.de>
12958
12959         PR rtl-optimization/61772
12960         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12961
12962 2014-07-15  Richard Biener  <rguenther@suse.de>
12963
12964         * opts.c (default_options_table): Disable bit-ccp at -Og.
12965
12966 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
12967
12968         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12969
12970 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
12971
12972         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12973         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12974         call langhook for unknown declaration.
12975         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12976         * tree.h (DECL_ARGUMENTS): Update.
12977         * print-tree.c (print_node): Update.
12978         * tree-core.h (tree_decl_non_common): Remove arguments.
12979         (tree_function_decl): Add arguments.
12980
12981 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
12982
12983         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12984
12985 2014-07-14  Richard Biener  <rguenther@suse.de>
12986
12987         PR tree-optimization/61779
12988         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12989         simplifying a condition.
12990
12991 2014-07-14  Richard Biener  <rguenther@suse.de>
12992
12993         * builtins.c (c_strlen): Make only_value == 2 really only
12994         affect warning generation.
12995
12996 2014-07-14  Richard Biener  <rguenther@suse.de>
12997
12998         PR tree-optimization/61757
12999         PR tree-optimization/61783
13000         PR tree-optimization/61787
13001         * tree-ssa-dom.c (record_equality): Revert canonicalization
13002         change and add comment.
13003         (propagate_rhs_into_lhs): Revert previous fix, removing
13004         loop depth restriction again.
13005
13006 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13007
13008         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13009         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13010         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13011         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13012         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13013         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13014         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13015
13016 2014-07-14  Richard Biener  <rguenther@suse.de>
13017
13018         * cgraph.h (decl_in_symtab_p): Make inline.
13019
13020 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
13021
13022         PR middle-end/61294
13023         * doc/invoke.texi (-Wmemset-transposed-args): Document.
13024
13025         PR target/61656
13026         * config/i386/i386.c (classify_argument): Don't merge classes above
13027         number of words.
13028
13029 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
13030
13031         * cgraph.h (symtab_node): Add nonzero_address.
13032         (decl_in_symtab_p): Break out from ...
13033         (symtab_get_node): ... here.
13034         * fold-const.c: Include cgraph.h
13035         (tree_single_nonzero_warnv_p): Use symtab to determine
13036         if symbol is non-zero.
13037         * symtab.c (symtab_node::nonzero_address): New method.
13038
13039 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13040
13041         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13042         forgotten in previous commit.
13043
13044 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13045
13046         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13047         on builtin types.
13048         * ipa-devirt.c: Include stor-layout.h and intl.h
13049         (odr_subtypes_equivalent_p): New function.
13050         (warn_odr): New function.
13051         (warn_type_mismatch): New function.
13052         (odr_types_equivalent_p): New function.
13053         (add_type_duplicate): Use it.
13054         * common.opt (Wodr): New flag.
13055         * doc/invoke.texi (Wodr): Document new warning.
13056
13057 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13058
13059         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13060         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13061         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13062         (varpool_get_constructor): Push CTORS_IN timevar.
13063         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13064
13065 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
13066
13067         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13068         Remove VOID_FTYPE_PUSHORT.
13069         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13070         Change code to USHORT_FTYPE_VOID.
13071         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13072         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13073         (ix86_atomic_assign_expand_fenv): Update for
13074         __builtin_ia32_fnstsw changes.
13075         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13076         (fnstsw): Change operand 0 to nonimmediate operand.
13077
13078 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13079
13080         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13081         (varpool_get_constructor): New function.
13082         (varpool_ctor_useable_for_folding_p): Break out from ...
13083         (ctor_for_folding): ... here; use varpool_get_constructor.
13084         (varpool_assemble_decl): Likewise.
13085         * lto-streamer.h (struct output_block): Turn cgraph_node
13086         to symbol filed.
13087         (lto_input_variable_constructor): Declare.
13088         * ipa-visibility.c (function_and_variable_visibility): Use
13089         varpool_get_constructor.
13090         * cgraph.h (varpool_get_constructor): Declare.
13091         (varpool_ctor_useable_for_folding_p): New function.
13092         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13093         parameter; return error_mark_node for non-trivial constructors.
13094         (lto_write_tree_1, DFS_write_tree): Update use of
13095         get_symbol_initial_value.
13096         (output_function): Update initialization of symbol.
13097         (output_constructor): New function.
13098         (copy_function): Rename to ..
13099         (copy_function_or_variable): ... this one; handle vars too.
13100         (lto_output): Output variable sections.
13101         * lto-streamer-in.c (input_constructor): New function.
13102         (lto_read_body): Rename from ...
13103         (lto_read_body_or_constructor): ... this one; handle vars too.
13104         (lto_input_variable_constructor): New function.
13105         * ipa-prop.c (ipa_prop_write_jump_functions,
13106         ipa_prop_write_all_agg_replacement): Update.
13107         * lto-cgraph.c (compute_ltrans_boundary): Use it.
13108         (output_cgraph_opt_summary): Set symbol to NULL.
13109
13110 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13111
13112         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13113         non-polymorphic types.
13114         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13115         * ipa-devirt.c (types_same_for_odr): Do not explode when one
13116         of types is not polymorphic.
13117
13118 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
13119
13120         * lra-constraints.c (remove_inheritance_pseudos): Process
13121         destination pseudo too.
13122
13123 2014-07-11  Rong Xu  <xur@google.com>
13124
13125         * gcov-tool.c (gcov_output_files): Fix build error introduced in
13126         commit r212448.
13127
13128 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13129
13130         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13131         * config/avr/avr-devices.c (AVR_MCU): Same.
13132         (avr_mcu_types): add text start value to end of device list.
13133         * config/avr/avr-mcus.def: Add text section start for all devices.
13134         (ata5782): Add new avr5 device.
13135         (ata5831): Same.
13136         * config/avr/avr-tables.opt: Regenerate.
13137         * config/avr/avr.h: Add declaration for text section start handler.
13138         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13139         SPEC functions.
13140         (LINK_SPEC): Include text section start handler to linker spec.
13141         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13142         pass -Ttext option to linker if the text section start for the device
13143         is not zero.
13144         * config/avr/t-multilib: Regenerate.
13145         * doc/avr-mmcu.texi: Regenerate.
13146
13147 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
13148
13149         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13150         * config/rs6000/aix52.h (LINK_SPEC): Same.
13151         * config/rs6000/aix53.h (LINK_SPEC): Same.
13152         * config/rs6000/aix61.h (LINK_SPEC): Same.
13153         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13154
13155 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
13156
13157         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13158         (graphite_verify): New function.
13159         (ivs_params_clear): New function.
13160         (gcc_expression_from_isl_ast_expr_id): New function.
13161         (gcc_expression_from_isl_expr_int): New function.
13162         (binary_op_to_tree): New function.
13163         (ternary_op_to_tree): New function.
13164         (unary_op_to_tree): New function.
13165         (nary_op_to_tree): New function.
13166         (gcc_expression_from_isl_expr_op): New function.
13167         (gcc_expression_from_isl_expression): New function.
13168         (graphite_create_new_loop): New function.
13169         (translate_isl_ast_for_loop): New function.
13170         (get_upper_bound): New function.
13171         (graphite_create_new_loop_guard): New function.
13172         (translate_isl_ast_node_for): New function.
13173         (translate_isl_ast): New function.
13174         (add_parameters_to_ivs_params): New function.
13175         (scop_to_isl_ast): New parameter ip.
13176         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13177
13178 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13179
13180         * config/xtensa/predicates.md (call expander): Update for
13181         DECL_SECTION_NAME being string.
13182
13183 2014-07-11  Richard Biener  <rguenther@suse.de>
13184
13185         PR middle-end/61473
13186         * builtins.c (fold_builtin_memory_op): Inline memory moves that
13187         can be implemented with a single load followed by a single store.
13188         (c_strlen): Only warn when only_value is not 2.
13189
13190 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
13191
13192         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13193
13194 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
13195
13196         PR target/61561
13197         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13198         (*movhi_bytes): Likewise.
13199         (*arm_movqi_insn): Likewise.
13200
13201 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
13202
13203         PR target/56858
13204         * config/alpha/alpha.c: Include tree-pass.h, context.h
13205         and pass_manager.h.
13206         (pass_data_handle_trap_shadows): New pass.
13207         (pass_handle_trap_shadows::gate): New pass gate function.
13208         (make_pass_handle_trap_shadows): New function.
13209         (rest_of_handle_trap_shadows): Ditto.
13210
13211         (alpha_align_insns_1): Rename from alpha_align_insns.
13212         (pass_data_align_insns): New pass.
13213         (pass_align_insns::gate): New pass gate function.
13214         (make_pass_aling_insns): New function.
13215         (rest_of_align_insns): Ditto.
13216         (alpha_align_insns): Ditto.
13217
13218         (alpha_option_override): Declare handle_trap_shadows info
13219         and align_insns_info.  Register handle_trap_shadows and align_insns
13220         passes here.
13221         (alpha_reorg): Do not call alpha_trap_shadows and
13222         alpha_align_insn from here.
13223
13224         (alpha_pad_function_end): Do not skip BARRIERs.
13225
13226 2014-07-10  Rong Xu  <xur@google.com>
13227
13228         Add gcov-tool: an offline gcda profile processing tool support.
13229         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13230         (gcov_is_error): Ditto.
13231         (gcov_read_string): Ditto.
13232         (gcov_read_sync): Ditto.
13233         * gcov-io.h: Move counter defines to gcov-counter.def.
13234         * gcov-dump.c (tag_counters): Use gcov-counter.def.
13235         * coverage.c: Ditto.
13236         * gcov-tool.c: Offline gcda profile processing tool.
13237         (unlink_gcda_file): Remove one gcda file.
13238         (unlink_profile_dir): Remove gcda files from the profile path.
13239         (gcov_output_files): Output gcda files to an output dir.
13240         (profile_merge): Merge two profiles in directory.
13241         (print_merge_usage_message): Print merge usage.
13242         (merge_usage): Print merge usage and exit.
13243         (do_merge): Driver for profile merge sub-command.
13244         (profile_rewrite): Rewrite profile.
13245         (print_rewrite_usage_message): Print rewrite usage.
13246         (rewrite_usage): Print rewrite usage and exit.
13247         (do_rewrite): Driver for profile rewrite sub-command.
13248         (print_usage): Print gcov-info usage and exit.
13249         (print_version): Print gcov-info version.
13250         (process_args): Process arguments.
13251         (main): Main routine for gcov-tool.
13252         * Makefile.in: Build and install gcov-tool.
13253         * gcov-counter.def: New file split from gcov-io.h.
13254         * doc/gcc.texi: Include gcov-tool.texi.
13255         * doc/gcov-tool.texi: Document for gcov-tool.
13256
13257 2014-07-10  Richard Biener  <rguenther@suse.de>
13258
13259         PR tree-optimization/61757
13260         * tree-ssa-dom.c (loop_depth_of_name): Restore.
13261         (propagate_rhs_into_lhs): Revert part of last change.
13262
13263 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
13264
13265         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13266         FUNCTION_DECLs.
13267
13268 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
13269
13270         PR middle-end/53590
13271         * function.c (allocate_struct_function): Revert r188667 change.
13272
13273         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13274
13275 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
13276
13277         * doc/install.texi: Remove links to defunct package providers for
13278         Solaris.
13279
13280 2014-07-09  Tom de Vries  <tom@codesourcery.com>
13281
13282         * final.c (get_call_fndecl): Declare.
13283         (self_recursive_call_p): New function.
13284         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13285
13286 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13287
13288         * ipa-devirt.c (record_node): Walk through aliases.
13289
13290 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13291
13292         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13293
13294 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13295
13296         Revert:
13297         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13298
13299 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13300
13301         * ipa-visibility.c (function_and_variable_visibility): Remove
13302         temporary hack disabling local aliases on AIX.
13303
13304 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13305
13306         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13307         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13308
13309 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13310
13311         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13312         * rs6000/rs6000.c: Inline output of .set instruction.
13313         (declare_alias_data): New struct.
13314         (rs6000_declare_alias): New function.
13315         (rs6000_xcoff_declare_function_name): Use it.
13316         (rs6000_xcoff_declare_object_name): New function.
13317         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13318         (ASM_OUTPUT_DEF): Turn to empty definition.
13319
13320 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
13321
13322         PR bootstrap/61679
13323         * hash-table.h: use hash_table::value_type instead of
13324         Descriptor::value_type in the return types of several methods.
13325
13326 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
13327
13328         * tree-pass.h (pass_data): Remove has_execute member.
13329         * passes.c (execute_one_pass): Don't check pass->has_execute.
13330         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13331         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13332         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13333         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13334         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13335         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13336         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13337         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13338         gimple-low.c, gimple-ssa-isolate-paths.c,
13339         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13340         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13341         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13342         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13343         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13344         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13345         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13346         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13347         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13348         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13349         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13350         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13351         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13352         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13353         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13354         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13355         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13356         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13357         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13358         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13359         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13360         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13361         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13362         web.c: Remove initializer for pass_data::has_execute.
13363
13364 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
13365
13366         * graphite-htab.h: Use hash_map instead of hash_table.
13367         * graphite-clast-to-gimple.c: Adjust.
13368         * passes.c: Use hash_map instead of hash_table.
13369         * sese.c: Likewise.
13370         * sese.h: Remove now unused code.
13371
13372 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
13373
13374         PR target/61599
13375         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13376         than zero.
13377
13378 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
13379
13380         PR rtl-optimization/61673
13381         * combine.c (simplify_comparison): Test just mode's sign bit
13382         in tmode rather than the sign bit and any bits above it.
13383
13384 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
13385
13386         * graphite-isl-ast-to-gimple.c (generate_isl_context):
13387         Add __isl_give to the declaration.
13388         (generate_isl_schedule): Likewise.
13389         (scop_to_isl_ast): Likewise.
13390
13391 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13392
13393         * config/arm/arm.c (cortexa5_extra_costs): New table.
13394         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13395
13396 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
13397
13398         PR tree-optimization/61725
13399         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13400         range, use range_includes_zerop_p instead of integer_zerop on
13401         vr0->min, only use log2 of max if min is not negative.
13402
13403 2014-07-08  Richard Biener  <rguenther@suse.de>
13404
13405         * tree-ssa-dom.h (loop_depth_of_name): Remove.
13406         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13407         restriction on loop depth difference.
13408         (record_equality): Likewise.
13409         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
13410         (loop_depth_of_name): Remove.
13411         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13412         restriction on loop depth difference.
13413         (init_copy_prop): Likewise.
13414
13415 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13416
13417         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13418         parameter.
13419         (walk_aliased_vdefs): Likewise.
13420         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13421         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13422         (detect_type_change_from_memory_writes): Check if entry was reached.
13423
13424 2014-07-08  Richard Biener  <rguenther@suse.de>
13425
13426         PR tree-optimization/61681
13427         * tree-ssa-structalias.c (find_what_var_points_to): Expand
13428         NONLOCAL inside ESCAPED.
13429
13430 2014-07-08  Richard Biener  <rguenther@suse.de>
13431
13432         PR tree-optimization/61680
13433         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13434         Handle properly all read-write dependences with group accesses.
13435
13436 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
13437
13438         PR tree-optimization/61576
13439         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13440         block containing reduction statement is predecessor of phi basi block.
13441
13442 2014-07-08  Marek Polacek  <polacek@redhat.com>
13443
13444         PR c/60226
13445         * fold-const.c (round_up_loc): Change the parameter type.
13446         Remove assert.
13447         * fold-const.h (round_up_loc): Adjust declaration.
13448         * stor-layout.c (finalize_record_size): Check for too large types.
13449
13450 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
13451
13452         * symtab.c: Include calls.h.
13453         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13454
13455 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
13456
13457         * config/rs6000/rs6000.c (output_vec_const_move): Handle
13458         little-endian code generation.
13459         * config/rs6000/spe.md (spe_evmergehi): Rename to...
13460         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
13461         (spe_evmergehilo): Rename to...
13462         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
13463         (spe_evmergelo): Rename to...
13464         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
13465         (spe_evmergelohi): Rename to...
13466         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
13467         (spe_evmergehi, spe_evmergehilo): New expanders.
13468         (spe_evmergelo, spe_evmergelohi): Likewise.
13469         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13470         (*frob_tf_ti): Likewise.
13471         (*frob_<mode>_di_2): Likewise.
13472         (*frob_tf_di_8_2): Likewise.
13473         (*frob_di_<mode>): Likewise.
13474         (*frob_ti_tf): Likewise.
13475         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13476         (*frob_ti_<mode>_8_2): Likewise.
13477         (*frob_ti_tf_2): Likewise.
13478         (mov_si<mode>_e500_subreg0): Rename to...
13479         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
13480         endianness only.
13481         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13482         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13483         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
13484         the big endianness only.
13485         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13486         (*mov_si<mode>_e500_subreg0_2): Rename to...
13487         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
13488         big big endianness only.
13489         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13490         (*mov_si<mode>_e500_subreg4): Rename to...
13491         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
13492         endianness only.
13493         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13494         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13495         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
13496         the big endianness only.
13497         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13498         pattern.
13499         (*mov_si<mode>_e500_subreg4_2): Rename to...
13500         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
13501         endianness only.
13502         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13503         (*mov_sitf_e500_subreg8): Rename to...
13504         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
13505         endianness only.
13506         (*mov_sitf_e500_subreg8_le): New instruction pattern.
13507         (*mov_sitf_e500_subreg8_2): Rename to...
13508         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
13509         endianness only.
13510         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13511         (*mov_sitf_e500_subreg12): Rename to...
13512         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
13513         endianness only.
13514         (*mov_sitf_e500_subreg12_le): New instruction pattern.
13515         (*mov_sitf_e500_subreg12_2): Rename to...
13516         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
13517         endianness only.
13518         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13519
13520 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
13521
13522         * asan.c (instrument_strlen_call): Do not instrument first byte
13523         in strlen if already instrumented.
13524
13525 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13526
13527         * config/arm/arm.opt (mwords-little-endian): Delete.
13528         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13529         of TARGET_LITTLE_WORDS.
13530         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13531         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13532         warning.
13533         * doc/invoke.texi: Remove references to -mwords-little-endian.
13534
13535 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
13536
13537         * expmed.c (struct init_expmed_rtl): Change all fields but
13538         pow2 and cint from struct rtx_def to rtx.
13539         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13540         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
13541         at the end again.
13542
13543 2014-07-06  Marek Polacek  <polacek@redhat.com>
13544
13545         PR c/6940
13546         * doc/invoke.texi: Document -Wsizeof-array-argument.
13547
13548 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
13549
13550         * wide-int.h (wide_int_storage): Change declaration from struct
13551         to class.
13552
13553 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
13554
13555         * cgraph.c (cgraph_create_indirect_edge): Update call of
13556         get_polymorphic_call_info.
13557         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13558         (possible_polymorphic_call_targets): Add parameter call.
13559         (decl_maybe_in_construction_p): New predicate.
13560         (get_polymorphic_call_info): Add parameter call;
13561         use decl_maybe_in_construction_p.
13562         * gimple-fold.c (fold_gimple_assign): Update use of
13563         possible_polymorphic_call_targets.
13564         (gimple_fold_call): Likewise.
13565         * ipa-prop.c: Inlcude calls.h
13566         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13567         (param_type_may_change_p): New predicate.
13568         (detect_type_change_from_memory_writes): Break out from ...
13569         (detect_type_change): ... this one; use param_type_may_change_p.
13570         (detect_type_change_ssa): Use param_type_may_change_p.
13571         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13572
13573 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
13574
13575         PR target/49423
13576         * config/arm/arm-protos.h (arm_legitimate_address_p,
13577         arm_is_constant_pool_ref): Add prototypes.
13578         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13579         (arm_is_constant_pool_ref) New function.
13580         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13581         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13582         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13583         operand. Remove pool_range and neg_pool_range attributes.
13584         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13585         pool_range and neg_pool_range attributes.
13586         * config/arm/constraints.md (Uh): New constraint.
13587         (Uq): Don't allow constant pool references.
13588
13589 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
13590
13591         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13592         (move_lo_quad_internal_be_<mode>): Likewise.
13593         (move_lo_quad_<mode>): Convert to define_expand.
13594         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13595         (aarch64_simd_move_hi_quad_be_<mode>): New.
13596         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13597         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13598         (aarch64_combinez_be<mode>): New.
13599         (aarch64_combine<mode>): Convert to define_expand.
13600         (aarch64_combine_internal<mode>): New.
13601         (aarch64_simd_combine<mode>): Remove bogus RTL description.
13602
13603 2014-07-04  Tom de Vries  <tom@codesourcery.com>
13604
13605         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13606         combination of earlyclobber and read/write modifiers.
13607
13608 2014-07-04  Tom de Vries  <tom@codesourcery.com>
13609
13610         * config/aarch64/aarch64-simd.md
13611         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13612
13613 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
13614
13615         PR target/61714
13616         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13617
13618 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
13619
13620         PR middle-end/61654
13621         * cgraphunit.c (expand_thunk): Call free_dominance_info.
13622
13623         PR tree-optimization/61684
13624         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13625         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13626
13627 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13628             Kito Cheng  <kito@0xlab.org>
13629             Monk Chiang  <sh.chiang04@gmail.com>
13630
13631         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13632         (nds32_symbol_load_store_p): Move to ...
13633         (nds32_fp_as_gp_check_available): Move to ...
13634         * config/nds32/nds32-fp-as-gp.c: ... here.
13635         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13636         extern declaration.
13637
13638 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13639             Kito Cheng  <kito@0xlab.org>
13640             Monk Chiang  <sh.chiang04@gmail.com>
13641
13642         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13643         (nds32_expand_store_multiple): Move to ...
13644         (nds32_expand_movmemqi): Move to ...
13645         * config/nds32/nds32-memory-manipulation.c: ... here.
13646
13647 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13648             Kito Cheng  <kito@0xlab.org>
13649             Monk Chiang  <sh.chiang04@gmail.com>
13650
13651         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13652         (nds32_output_casesi_pc_relative): Move to ...
13653         (nds32_output_casesi): Move to ...
13654         (nds32_mem_format): Move to ...
13655         (nds32_output_16bit_store): Move to ...
13656         (nds32_output_16bit_load): Move to ...
13657         (nds32_output_32bit_store): Move to ...
13658         (nds32_output_32bit_load): Move to ...
13659         (nds32_output_32bit_load_s): Move to ...
13660         (nds32_output_stack_push): Move to ...
13661         (nds32_output_stack_pop): Move to ...
13662         * config/nds32/nds32-md-auxiliary.c: ... here.
13663
13664 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13665             Ling-Hua Tseng  <uranus@tinlans.org>
13666
13667         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13668         the purpose of this file.
13669
13670 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13671             Kito Cheng  <kito@0xlab.org>
13672             Monk Chiang  <sh.chiang04@gmail.com>
13673
13674         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13675         (nds32_address_cost): Move implementation to ...
13676         * config/nds32/nds32-cost.c: ... here.
13677         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13678         (nds32_address_cost_impl): Declare.
13679
13680 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13681             Kito Cheng  <kito@0xlab.org>
13682             Monk Chiang  <sh.chiang04@gmail.com>
13683
13684         * config/nds32/nds32.c
13685         (nds32_consecutive_registers_load_store_p): Move to ...
13686         (nds32_valid_multiple_load_store): Move to ...
13687         (nds32_valid_stack_push_pop): Move to ...
13688         (nds32_can_use_bclr_p): Move to ...
13689         (nds32_can_use_bset_p): Move to ...
13690         (nds32_can_use_btgl_p): Move to ...
13691         (nds32_can_use_bitci_p): Move to ...
13692         * config/nds32/nds32-predicates.c: ... here.
13693
13694 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13695             Kito Cheng  <kito@0xlab.org>
13696             Monk Chiang  <sh.chiang04@gmail.com>
13697
13698         * config/nds32/nds32.c
13699         (nds32_expand_builtin_null_ftype_reg): Move to ...
13700         (nds32_expand_builtin_reg_ftype_imm): Move to ...
13701         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13702         (nds32_init_builtins): Move implementation to ...
13703         (nds32_expand_builtin): Move implementation to ...
13704         * config/nds32/nds32-intrinsic.c: ... here.
13705         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13706         (nds32_expand_builtin_impl): Declare.
13707
13708 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13709             Kito Cheng  <kito@0xlab.org>
13710             Monk Chiang  <sh.chiang04@gmail.com>
13711
13712         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13713         (nds32_emit_section_tail_template): Move to ...
13714         (nds32_emit_isr_jmptbl_section): Move to ...
13715         (nds32_emit_isr_vector_section): Move to ...
13716         (nds32_emit_isr_reset_conten): Move to ...
13717         (nds32_check_isr_attrs_conflict): Move to ...
13718         (nds32_construct_isr_vectors_information): Move to ...
13719         (nds32_asm_file_start): Move implementation to ...
13720         (nds32_asm_file_end): Move implementation to ...
13721         * config/nds32/nds32-isr.c: ... here.
13722         * config/nds32/nds32-protos.h
13723         (nds32_check_isr_attrs_conflict): Declare.
13724         (nds32_construct_isr_vectors_information): Declare.
13725         (nds32_asm_file_start_for_isr): Declare.
13726         (nds32_asm_file_end_for_isr): Declare.
13727
13728 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13729             Kito Cheng  <kito@0xlab.org>
13730             Monk Chiang  <sh.chiang04@gmail.com>
13731
13732         * config.gcc (nds32*): Add new modules to extra_objs.
13733         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13734         (nds32be-*-*): Likewise.
13735         * config/nds32/nds32-cost.c: New file.
13736         * config/nds32/nds32-fp-as-gp.c: New file.
13737         * config/nds32/nds32-intrinsic.c: New file.
13738         * config/nds32/nds32-isr.c: New file.
13739         * config/nds32/nds32-md-auxiliary.c: New file.
13740         * config/nds32/nds32-memory-manipulation.c: New file.
13741         * config/nds32/nds32-pipelines-auxiliary.c: New file.
13742         * config/nds32/nds32-predicates.c: New file.
13743         * config/nds32/t-nds32: New file.
13744
13745 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
13746
13747         PR tree-optimization/61682
13748         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13749         using cases and when one of the operands is equal to 1.
13750
13751 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
13752
13753         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13754         ashr<mode>3): Correct mode of operands[2].
13755         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13756         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13757         Correct mode of operands[2].  Fix split condition.
13758
13759 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
13760
13761         * arm.md (arch): Add armv6_or_vfpv3.
13762         (arch_enabled): Add test for the above.
13763         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13764         on VFP9.
13765         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13766
13767 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
13768
13769         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13770         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13771         HWI 1 and negate the unsigned value.
13772         * expmed.c (expand_sdiv_pow2): For modes wider than word always
13773         use AND instead of shift.
13774         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13775
13776 2014-07-03  Marek Polacek  <polacek@redhat.com>
13777
13778         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13779         (-fsanitize=float-divide-by-zero): Move to the table with
13780         -fsanitize=undefined suboptions.
13781         (-fsanitize=float-cast-overflow): Likewise.
13782
13783 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
13784
13785         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13786         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13787         endianness.
13788
13789 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13790
13791         * loop-invariant.c (struct invariant): Add a new member: eqno;
13792         (find_identical_invariants): Update eqno;
13793         (create_new_invariant): Init eqno;
13794         (get_inv_cost): Compute comp_cost with eqno;
13795
13796 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
13797
13798         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13799         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13800         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13801         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13802         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13803
13804 2014-07-02  Christian Bruel  <christian.bruel@st.com>
13805
13806         PR target/29349
13807         PR target/53513
13808         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13809         (make_preds_opaque): Delete.
13810         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13811         (commit_mode_sets): New function.
13812         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13813         Process all modes at once.
13814         * basic-block.h (pre_edge_lcm_avs): Declare.
13815         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13816         Call clear_aux_for_edges. Fix comments.
13817         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13818         (pre_edge_rev_lcm): Idem.
13819         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13820         parameter.
13821         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13822         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13823         Idem.
13824         * config/i386/i386.c (x96_emit_mode_set): Idem.
13825         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13826         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
13827         (fpscr_toggle) Disallow from delay slot.
13828         * target.def (emit_mode_set): Add prev_mode parameter.
13829         * doc/tm.texi: Regenerate.
13830
13831 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13832
13833         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13834         variable i.
13835
13836 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
13837
13838         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13839         vtable_pointer_value_to_vtable): Constify.
13840         (contains_polymorphic_type_p): Declare.
13841         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13842         vtable_pointer_value_to_vtable): Constify.
13843         (contains_polymorphic_type_p): New predicate.
13844         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13845         polymorphic types.
13846         (ipa_set_ancestor_jf): Likewise.
13847         (detect_type_change): Return false in easy cases.
13848         (compute_complex_assign_jump_func): Require type to contain
13849         polymorphic type.
13850         (compute_known_type_jump_func): Likewise.
13851
13852 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
13853
13854         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13855         Remove.
13856         (type_in_anonymous_namespace_p): Constify argument.
13857         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13858         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13859         (main_odr_variant): New function.
13860         (hash_type_name): Make static; update assert; do not ICE on
13861         non-records.
13862         (types_same_for_odr): Bring here from tree.c; simplify and remove
13863         old structural comparing code that doesn't work for templates.
13864         (odr_hasher::equal): Update assert.
13865         (add_type_duplicate): Return true when bases should be computed;
13866         replace incomplete loader by complete; do not output duplicated
13867         warnings; do not ICE on non-records; set odr_violated flag.
13868         (get_odr_type): Be ready to replace incomplete type by complete
13869         one; work on ODR variants instead of main variants; reorder item
13870         in array so bases have still smaller indexes.
13871         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13872         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13873
13874 2014-07-01  Cary Coutant  <ccoutant@google.com>
13875
13876         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13877         lookup.
13878         (resolve_addr_in_expr): When replacing the rtx in a location list
13879         entry, get a new address table entry.
13880         (dwarf2out_finish): Call index_location_lists even if there are no
13881         addr_index_table entries yet.
13882
13883 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
13884
13885         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13886         change for not being obvious.
13887
13888 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
13889
13890         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13891         unused argument.
13892
13893 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13894
13895         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13896         (vcagt_f64): Likewise.
13897         (vcale_f64): Likewise.
13898         (vcaled_f64): Likewise.
13899         (vcales_f32): Likewise.
13900         (vcalt_f64): Likewise.
13901         (vcaltd_f64): Likewise.
13902         (vcalts_f32): Likewise.
13903
13904 2014-07-01  Marek Polacek  <polacek@redhat.com>
13905
13906         * doc/invoke.texi: Document -Wint-conversion.
13907
13908 2014-07-01  Marek Polacek  <polacek@redhat.com>
13909
13910         PR c/58286
13911         * doc/invoke.texi: Document -Wincompatible-pointer-types.
13912
13913 2014-07-01  Martin Liska  <mliska@suse.cz>
13914
13915         IPA REF alias refactoring
13916         * cgraph.h (iterate_direct_aliases): New function.
13917         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13918         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13919         FOR_EACH_ALIAS added.
13920         (cgraph_for_node_and_aliases): Likewise.
13921         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13922         * ipa-inline.c (reset_edge_caches): Likewise.
13923         (update_caller_keys): Likewise.
13924         * trans-mem.c (ipa_tm_execute): Likewise.
13925         *varpool.c (varpool_analyze_node): Likewise.
13926         (varpool_for_node_and_aliases): Likewise.
13927         * ipa-ref.h (first_alias): New function.
13928         (last_alias): Likewise.
13929         (has_aliases_p): Likewise.
13930         * ipa-ref.c (ipa_ref::remove_reference): Removal function
13931         is sensitive to IPA_REF_ALIASes.
13932         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13933         are put at the beginning of the list.
13934         (symtab_node::iterate_direct_aliases): New function.
13935
13936 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
13937
13938         Revert:
13939         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13940         type is complete.
13941         (write_ts_type_common_tree_pointers): Do not stream fields not set
13942         for incomplete types; do not stream duplicated fields for variants;
13943         sanity check that variant and type match.
13944         (write_ts_type_non_common_tree_pointers): Likewise.
13945         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13946         TYPE_SIZE whether type is complete.
13947         (lto_input_ts_type_common_tree_pointers): Do same changes as in
13948         write_ts_type_common_tree_pointers
13949         (lto_input_ts_type_non_common_tree_pointers): Likewise.
13950
13951 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
13952
13953         * var-tracking.c (add_stores): Return instead of asserting if old
13954         and new values for conditional store are the same.
13955
13956 2014-06-30  Richard Henderson  <rth@redhat.com>
13957
13958         PR rtl-opt/61608
13959         PR target/39284
13960         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13961         the cfg if there were any changes.
13962         * passes.def: Revert move of peephole2 after reorder_blocks;
13963         move duplicate_computed_gotos before peephole2.
13964
13965 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
13966
13967         * except.c (emit_note_eh_region_end): New helper function.
13968         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13969         emit EH_REGION_END note.
13970         * jump.c (cleanup_barriers): Do not split a call and its
13971         corresponding CALL_ARG_LOCATION note.
13972
13973 2014-06-30  Jeff Law  <law@redhat.com>
13974
13975         PR tree-optimization/61607
13976         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13977         deeper into the SSA_NAME_VALUE chain.
13978
13979 2014-06-30  Marek Polacek  <polacek@redhat.com>
13980
13981         * convert.c (convert_to_integer): Don't instrument conversions if the
13982         function has no_sanitize_undefined attribute.
13983         * ubsan.c: Don't run the ubsan pass if the function has
13984         no_sanitize_undefined attribute.
13985
13986 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
13987
13988         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13989         -fsanitize=undefined suboptions.
13990
13991 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
13992
13993         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13994         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13995         against bigendian and adjust indices.
13996
13997 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
13998
13999         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
14000
14001 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14002
14003         PR target/61633
14004         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14005         Add alternative; make early clobber.  Adjust both split patterns
14006         to use operand 0 as the working register.
14007
14008 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14009
14010         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14011         as ira_object_id_map might be NULL, or 1.
14012
14013 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14014
14015         * loop-invariant.c (get_inv_cost): Handle register class.
14016         (gain_for_invariant): Check the register pressure of the inv
14017         and its overlapped register class, other than all.
14018
14019 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14020
14021         * doc/invoke.texi (Optimize Options): Fix descriptions of
14022         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14023
14024 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
14025
14026         * doc/extend.texi (Function Attributes): Update 'naked' attribute
14027         documentation.
14028
14029 2014-06-29  Tobias Grosser <tobias@grosser.es>
14030
14031         PR bootstrap/61650
14032         * graphite-isl-ast-to-gimple.c: Add missing guards.
14033
14034 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14035
14036         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14037         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14038         * flag-types.h: Add new enum fgraphite_generator.
14039         * graphite-isl-ast-to-gimple.c: New.
14040         * graphite-isl-ast-to-gimple.h: New.
14041         * graphite.c (graphite_transform_loops): Add choice of Graphite
14042         code generator, which depends on flag_graphite_code_gen.
14043
14044 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14045
14046         * graphite-dependences.c (subtract_commutative_associative_deps):
14047         Add NULL checking of the following variables: must_raw_no_source,
14048         may_raw_no_source, must_war_no_source, may_war_no_source,
14049         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14050         must_war, may_war, must_waw, may_waw.
14051
14052 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14053
14054         * graphite-clast-to-gimple.c: gloog is renamed to
14055         graphite_regenerate_ast_cloog.  gloog_error is renamed to
14056         graphite_regenerate_error.
14057         * graphite-clast-to-gimple.h: The definition of the struct
14058         bb_pbb_def is moved to graphite-htab.h.
14059         Add inclusion of the hash-table.h.
14060         * graphite-htab.h: The declaration of the function gloog is moved
14061         to graphite-clast-to-gimple.h and renamed to
14062         graphite_regenerate_ast_cloog.
14063         * graphite.c (graphite_transform_loops): gloog is renamed
14064         to graphite_regenerate_ast_cloog.
14065
14066 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14067
14068         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14069         type is complete.
14070         (write_ts_type_common_tree_pointers): Do not stream fields not set
14071         for incomplete types; do not stream duplicated fields for variants;
14072         sanity check that variant and type match.
14073         (write_ts_type_non_common_tree_pointers): Likewise.
14074         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14075         TYPE_SIZE whether type is complete.
14076         (lto_input_ts_type_common_tree_pointers): Do same changes as in
14077         write_ts_type_common_tree_pointers
14078         (lto_input_ts_type_non_common_tree_pointers): Likewise.
14079
14080 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14081
14082         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14083
14084 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14085
14086         * tree-inline.c (remap_type_1): Do not duplicate fields
14087         that are shared in between type and its main variant.
14088
14089 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14090
14091         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14092         of the type.
14093         (ipa_set_ancestor_jf) Likewise.
14094         (check_stmt_for_type_change): Check that we work on main variant.
14095         (detect_type_change): Look into main variant.
14096         (compute_known_type_jump_func): Check that main variant has BINFO.
14097
14098 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14099
14100         * ipa-devirt.c (set_type_binfo): New function.
14101         (add_type_duplicate): Use it.
14102         (get_odr_type): Sanity check that binfos points to main variants.
14103         (get_class_context): Be sure the context's outer_type is main variant.
14104         (contains_type_p): Walk main variant.
14105         (get_polymorphic_call_info_for_decl): Set outer_type to be
14106         main variant.
14107         (get_polymorphic_call_info): Likewise.
14108         (possible_polymorphic_call_targets): Sanity check that we operate
14109         on main variant.
14110
14111 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14112
14113         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14114
14115 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14116
14117         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14118         accidental change due to wide-int branch merge.
14119
14120 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14121
14122         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14123         compressed debug support.
14124         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14125         * configure: Regenerate.
14126         * config.in: Regenerate.
14127         * common.opt (compressed_debug_sections): New enum.
14128         (gz, gz=): New options.
14129         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14130         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14131         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14132         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14133         LINK_COMPRESS_DEBUG_SPEC.
14134         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14135         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14136         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14137         (Debugging Options): Document -gz[=type].
14138
14139 2014-06-27  Martin Jambor  <mjambor@suse.cz>
14140
14141         PR ipa/61160
14142         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14143         args_to_skip, use those from node instead.  Copy args_to_skip and
14144         combined_args_to_skip from node to the new thunk.
14145         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14146         (cgraph_create_virtual_clone): Moved computation of
14147         combined_args_to_skip...
14148         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14149
14150 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
14151
14152         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14153         redundant diagnostic machinary.
14154
14155 2014-06-27  Richard Biener  <rguenther@suse.de>
14156
14157         * tree-ssa-math-opts.c (bswap_replace): Fix
14158         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14159
14160 2014-06-27  Martin Liska  <mliska@suse.cz>
14161
14162         * gimple.h (gimple_location_safe): New function introduced.
14163         * cgraphunit.c (walk_polymorphic_call_targets): Usage
14164         of gimple_location_safe replaces gimple_location.
14165         (gimple_fold_call): Likewise.
14166         * ipa-devirt.c (ipa_devirt): Likewise.
14167         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14168         * ipa.c (walk_polymorphic_call_targets): Likewise.
14169         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14170
14171 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
14172
14173         PR tree-optimization/57233
14174         PR tree-optimization/61299
14175         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14176         functions.
14177         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
14178         would be lowered to scalar shifts, check if corresponding
14179         shifts and vector BIT_IOR_EXPR are supported and don't lower
14180         or lower just to narrower vector type in that case.
14181         * expmed.c (expand_shift_1): Fix up handling of vector
14182         shifts and rotates.
14183
14184 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
14185
14186         PR target/61586
14187         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14188
14189 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
14190
14191         * doc/invoke.texi (-fsemantic-interposition): Document.
14192         * common.opt (fsemantic-interposition): New flag.
14193         * varasm.c (decl_replaceable_p): Use it.
14194
14195 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14196
14197         PR target/61542
14198         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14199         extraction other than index 3.
14200
14201 2014-06-26  Teresa Johnson  <tejohnson@google.com>
14202
14203         * doc/invoke.texi: Fix typo.
14204         * dumpfile.c: Add support for documented -fdump-* options
14205         optimized/missed/note/optall.
14206
14207 2014-06-26  Martin Jambor  <mjambor@suse.cz>
14208
14209         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14210         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14211         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14212         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14213         * opts.c (default_options_optimization): Set
14214         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14215         * doc/invoke.texi (allow-load-data-races)
14216         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14217         (allow-store-data-races): Document the new default.
14218
14219 2014-06-26  Martin Jambor  <mjambor@suse.cz>
14220
14221         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14222         renamed to ipa_impossible_devirt_target.  Fix typo.
14223         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14224         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14225         ipa_impossible_devirt_target.
14226
14227 2014-06-26  Richard Biener  <rguenther@suse.de>
14228
14229         PR tree-optimization/61607
14230         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14231         explaining why we restrict copies on loop depth.
14232         * tree-ssa-dom.c (cprop_operand): Remove restriction on
14233         on loop depth.
14234         (record_equivalences_from_phis): Instead add it here.
14235
14236 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
14237
14238         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14239         (LTO_WRAPPER_OBJS): New variable.
14240         (lto-wrapper$(exeext)): Use it.
14241         * collect2.c: Include "collect-utils.h".
14242         (verbose, debug): Remove variables.
14243         (at_file_supplied): No longer static.
14244         (tool_name): New variable.
14245         (do_wait, fork_execute, maybe_unlink): Don't declare.
14246         (tool_cleanup): No longer static.
14247         (notice): Remove function.
14248         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14249         fork_execute calls.
14250         (collect_wait, do_wait, collect_execute): Remove functions.
14251         (maybe_unlink): No longer static.
14252         * collect2.h (verbose, debug): Don't declare.
14253         (at_file_supplied): Declare.
14254         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
14255         changed.
14256         (collect_execute): Replace with implementation from collect2, plus a
14257         new arg use_atfile.  All callers changed.
14258         (collect_wait): Replace with implementation from collect2.
14259         (maybe_unlink_file): Remove function.
14260         (fork_execute): Replace with implementation from collect2, plus a
14261         new arg use_atfile.  All callers changed.
14262         (do_wait): Add call to utils_cleanup to the error path.
14263         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14264         (tool_cleanup): Adjust declarations.
14265         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14266         * tlink.c: Include "collect-utils.h".
14267         (tlink_execute): New arg use_atfile.  All callers changed.
14268         (tlink_init, tlink_execute): Remove declarations.
14269
14270         * collect-utils.c (save_temps): New variable.
14271         (do_wait): Use it instead of debug.  Use fatal_error.
14272         * collect-utils.h (save_temps): Declare.
14273         * collect2.c (verbose): Rename from vflag.  All uses changed.
14274         (tool_cleanup): New function, copied from collect_atexit.
14275         (collect_atexit, handler): Just call it.
14276         * collect2.h (verbose): Declaration renamed from vflag.
14277         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14278         debug.
14279
14280         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14281         (lto-wrapper$(exeext)): Link with collect-utils.o.
14282         * collect-utils.c: New file.
14283         * collect-utils.h: New file.
14284         * lto-wrapper.c: Include "collect-utils.h".
14285         (args_name): Delete variable.
14286         (tool_name): New variable.
14287         (tool_cleanup): New function.
14288         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
14289         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14290         (fork_execute): Remove functions.
14291
14292 2014-06-26  Nick Clifton  <nickc@redhat.com>
14293
14294         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14295
14296         * doc/extend.texi (Function Attributes): Fix typo in description
14297         of RX vector attribute.
14298
14299 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14300
14301         * config.gcc (supported_defaults): Error when passing either
14302         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14303
14304 2014-06-26  Richard Biener  <rguenther@suse.de>
14305
14306         * tree-ssa-dom.c (cprop_operand): Remove restriction on
14307         propagating volatile pointers.
14308
14309 2014-06-26  Richard Biener  <rguenther@suse.de>
14310
14311         PR tree-optimization/61607
14312         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14313         loop if we redirected its latch edge.
14314         (thread_block_1): Do not cancel loops prematurely.
14315
14316 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
14317
14318         * toplev.c (backend_init_target): Move init_emit_regs and
14319         init_regs to...
14320         (backend_init) ... here; skip ira_init_once and backend_init_target.
14321         (target_reinit) ... and here; clear
14322         this_target_rtl->lang_dependent_initialized.
14323         (lang_dependent_init_target): Clear
14324         this_target_rtl->lang_dependent_initialized;
14325         break out rtl initialization to ...
14326         (initialize_rtl): ... here; call also backend_init_target
14327         and ira_init_once.
14328         * toplev.h (initialize_rtl): New function.
14329         * function.c: Include toplev.h
14330         (init_function_start): Call initialize_rtl.
14331         * rtl.h (target_rtl): Add target_specific_initialized,
14332         lang_dependent_initialized.
14333
14334 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
14335             Jakub Jelinek  <jakub@redhat.com>
14336
14337         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14338
14339 2014-06-25  Tom de Vries  <tom@codesourcery.com>
14340
14341         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14342
14343 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14344
14345         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14346         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14347         Issue a strict overflow warning if appropriate.
14348
14349 2014-06-25  Martin Liska  <mliska@suse.cz>
14350
14351         IPA REF refactoring
14352         * Makefile.in: Removed header file (ipa-ref-inline.h).
14353         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14354         called.
14355         (cgraph_speculative_call_info): Likewise.
14356         (cgraph_for_node_thunks_and_aliases): Likewise.
14357         (cgraph_for_node_and_aliases): Likewise.
14358         (verify_cgraph_node): Likewise.
14359         * cgraph.h: Batch of IPA REF functions become member functions of
14360         symtab_node: add_reference, maybe_add_reference, clone_references,
14361         clone_referring, clone_reference, find_reference,
14362         remove_stmt_references, remove_all_references,
14363         remove_all_referring, dump_references, dump_referring,
14364         has_alias_p, iterate_reference, iterate_referring.
14365         * cgraphbuild.c (record_reference): New IPA REF function used.
14366         (record_type_list): Likewise.
14367         (record_eh_tables): Likewise.
14368         (mark_address): Likewise.
14369         (mark_load): Likewise.
14370         (mark_store): Likewise.
14371         (pass_build_cgraph_edges): Likewise.
14372         (rebuild_cgraph_edge): Likewise.
14373         (cgraph_rebuild_references): Likewise.
14374         (pass_remove_cgraph_callee_edges): Likewise.
14375         * cgraphclones.c (cgraph_clone_node): Likewise.
14376         (cgraph_create_virtual_clone): Likewise.
14377         (cgraph_materialize_clone): Likewise.
14378         (cgraph_materialize_all_clones): Likewise.
14379         * cgraphunit.c (cgraph_reset_node): Likewise.
14380         (cgraph_reset_node): Likewise.
14381         (analyze_function): Likewise.
14382         (assemble_thunks_and_aliases): Likewise.
14383         (expand_function): Likewise.
14384         * ipa-comdats.c (propagate_comdat_group): Likewise.
14385         (enqueue_references): Likewise.
14386         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14387         (create_specialized_node): Likewise.
14388         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14389         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14390         * ipa-inline.c (reset_edge_caches): Likewise.
14391         (update_caller_keys): Likewise.
14392         (execute): Likewise.
14393         * ipa-prop.c (remove_described_reference): Likewise.
14394         (propagate_controlled_uses): Likewise.
14395         (ipa_edge_duplication_hook): Likewise.
14396         (ipa_modify_call_arguments): Likewise.
14397         * ipa-pure-const.c (propagate_pure_const): Likewise.
14398         * ipa-ref-inline.h: Header file removed, functions moved
14399         to symtab_node class.
14400         * ipa-ref.c (remove_reference): New class member function.
14401         (cannot_lead_to_return): New class member function.
14402         (referring_ref_list): Likewise.
14403         (referred_ref_list): Likewise.
14404         Rest of functions moved to symtab_node class.
14405         * ipa-ref.h: New member functions remove_reference,
14406         cannot_lead_to_return, referring_ref_list, referred_ref_list added
14407         to ipa_ref class.
14408         ipa_ref_list class has new member functions: first_reference,
14409         first_referring, clear, nreferences.
14410         * ipa-reference.c (analyze_function): New IPA REF function used.
14411         (write_node_summary_p): Likewise.
14412         (ipa_reference_write_optimization_summary): Likewise.
14413         * ipa-split.c (split_function): Likewise.
14414         * ipa-utils.c (ipa_reverse_postorder): Likewise.
14415         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14416         (function_and_variable_visibility): Likewise.
14417         * ipa.c (has_addr_references_p): Likewise.
14418         (process_references): Argument type changed.
14419         (symtab_remove_unreachable_nodes): New IPA REF function used.
14420         (process_references): Likewise.
14421         (set_writeonly_bit): Likewise.
14422         * lto-cgraph.c: Implementation of new symtab_node member functions
14423         that uses new IPA REF functions.
14424         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14425         function used.
14426         * lto-streamer-out.c (output_symbol_p): Likewise.
14427         * lto-streamer.h (referenced_from_this_partition_p): Argument type
14428         changed.
14429         * symtab.c: Implementation of new IPA REF API.
14430         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14431         (ipa_tm_create_version): Likewise.
14432         (ipa_tm_execute): Likewise.
14433         * tree-emutls.c (gen_emutls_addr): Likewise.
14434         * tree-inline.c (copy_bb): Likewise.
14435         (delete_unreachable_blocks_update_callgraph): Likewise.
14436         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14437         (varpool_for_node_and_aliases): Likewise.
14438
14439 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
14440
14441         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14442
14443 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
14444
14445         PR bootstrap/61598
14446         * fold-const.c (fold_checksum_tree): Use a hash_table of const
14447         tree_node * instead of tree_node *.
14448         (fold): Adjust.
14449         (print_fold_checksum): Likewise.
14450         (fold_check_failed): Likewise.
14451         (debug_fold_checksum): Likewise.
14452         (fold_build1_stat_loc): Likewise.
14453         (fold_build2_stat_loc): Likewise.
14454         (fold_build3_stat_loc): Likewise.
14455         (fold_build_call_array_loc): Likewise.
14456
14457 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
14458
14459         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14460         implementation with call to...
14461         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14462         function.
14463         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14464         Declare.
14465
14466 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
14467
14468         PR tree-optimization/57742
14469         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14470         after replacing the statement.
14471
14472 2014-06-25  Nick Clifton  <nickc@redhat.com>
14473
14474         * config/v850/v850.c (GHS_default_section_names): Change to const
14475         char * type.
14476         (GHS_current_section_names): Likewise.
14477         (v850_insert_attributes): Do not build strings, just assign the
14478         names directly.  Change the type of 'chosen_section' to const
14479         char*.
14480         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14481         directly to the array entry.
14482         * config/v850/v850.h (GHS_default_section_names): Change to const
14483         char * type.
14484         (GHS_current_section_names): Likewise.
14485
14486 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
14487
14488         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14489         (LANG_HOOKS_DECLS): Add it.
14490         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14491         has correct type.
14492         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14493         * langhooks.h (struct lang_hooks_for_decls): Add
14494         omp_clause_linear_ctor hook.
14495         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14496         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
14497         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
14498         combined simd loop use omp_clause_linear_ctor hook.
14499
14500 2014-06-24  Cong Hou  <congh@google.com>
14501
14502         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14503         pattern recognition.
14504         (type_conversion_p): PROMOTION is true if it's a type promotion
14505         conversion, and false otherwise.  Return true if the given expression
14506         is a type conversion one.
14507         * tree-vectorizer.h: Adjust the number of patterns.
14508         * tree.def: Add SAD_EXPR.
14509         * optabs.def: Add sad_optab.
14510         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14511         * expr.c (expand_expr_real_2): Likewise.
14512         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14513         * gimple.c (get_gimple_rhs_num_ops): Likewise.
14514         * optabs.c (optab_for_tree_code): Likewise.
14515         * tree-cfg.c (estimate_operator_cost): Likewise.
14516         * tree-ssa-operands.c (get_expr_operands): Likewise.
14517         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14518         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14519         * doc/generic.texi: Add document for SAD_EXPR.
14520         * doc/md.texi: Add document for ssad and usad.
14521
14522 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14523
14524         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14525         qualification in cast.
14526
14527 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
14528
14529         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14530         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14531         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14532         (tree_function_decl): ... here.
14533         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14534         streaming of vindex to ...
14535         (write_ts_function_decl_tree_pointers): ... here.
14536         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14537         Do not stream DECL_VINDEX.
14538         (lto_input_ts_function_decl_tree_pointers): Stream it here.
14539
14540 2014-06-24  Catherine Moore  <clm@codesourcery.com>
14541             Sandra Loosemore  <sandra@codesourcery.com>
14542
14543         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14544         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14545         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14546
14547 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
14548
14549         * doc/invoke.texi (Warning Options): Remove duplicated
14550         -Wmaybe-uninitialized.
14551
14552 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
14553
14554         PR tree-optimization/57742
14555         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14556         (handle_builtin_malloc, handle_builtin_memset): New functions.
14557         (strlen_optimize_stmt): Call them.
14558         * passes.def: Move strlen after loop+dom but before vrp.
14559
14560 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
14561
14562         PR target/61570
14563         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14564         model family 6 CPU with has_longmode never use a CPU without
14565         64-bit support.
14566
14567 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14568
14569         PR target/61570
14570         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14571         the last change.
14572
14573 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14574
14575         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14576         * dominance.c (iterate_fix_dominators): Use hash_map instead of
14577         pointer_map.
14578         * hash-map.h: New file.
14579         * ipa-comdats.c: Use hash_map instead of pointer_map.
14580         * ipa.c: Likewise.
14581         * lto-section-out.c: Adjust.
14582         * lto-streamer.h: Replace pointer_map with hash_map.
14583         * symtab.c (verify_symtab): Likewise.
14584         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14585         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14586         * tree-streamer.h: Likewise.
14587         * tree-streamer.c: Adjust.
14588         * pointer-set.h: Remove pointer_map.
14589
14590 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14591
14592         * hash-table.h: Add a template arg to choose between storing values
14593         and storing pointers to values, and then provide partial
14594         specializations for both.
14595         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14596         should store, not the type values should point to.
14597         * tree-into-ssa.c (var_info_hasher): Likewise.
14598         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14599         * tree-complex.c: Adjust.
14600         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14601         table instead of int_tree_map *.
14602         * tree-parloops.c: Adjust.
14603         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14604         type is being stored.
14605         * tree-vectorizer.c: Adjust.
14606
14607 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14608
14609         * hash-table.h: Remove a layer of indirection from hash_table so that
14610         it contains the hash table's data instead of a pointer to the data.
14611         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14612         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14613         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14614         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14615         fold-const.c, gcse.c, ggc-common.c,
14616         gimple-ssa-strength-reduction.c, gimplify.c,
14617         graphite-clast-to-gimple.c, graphite-dependences.c,
14618         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14619         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14620         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14621         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14622         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14623         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14624         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14625         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14626         tree-ssa-live.c, tree-ssa-loop-im.c,
14627         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14628         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14629         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14630         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14631         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14632         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14633         vtable-verify.c, vtable-verify.h: Adjust.
14634
14635 2014-06-24  Richard Biener  <rguenther@suse.de>
14636
14637         PR tree-optimization/61572
14638         * tree-ssa-sink.c (statement_sink_location): Do not sink
14639         loads from hard registers.
14640
14641 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
14642
14643         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14644         not mentioned in clauses use private clause if the iterator is
14645         declared in #pragma omp for simd, and when adding lastprivate
14646         instead, add it to the outer #pragma omp for too.  Diagnose
14647         if the variable is private in outer context.  For simd collapse > 1
14648         loops, replace all iterators with temporaries.
14649         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14650         same even in collapse > 1 loops.
14651
14652         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14653         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14654         non-NULL.
14655         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14656         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14657         non-NULL.
14658         (gimplify_adjust_omp_clauses): Likewise.
14659         * omp-low.c (lower_rec_simd_input_clauses,
14660         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14661         safelen the same as safelen(1).
14662         * tree-nested.c (convert_nonlocal_omp_clauses,
14663         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
14664         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14665         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14666         Fixup handling of GIMPLE_OMP_TARGET.
14667         (convert_tramp_reference_stmt, convert_gimple_call): Handle
14668         GIMPLE_OMP_TARGET.
14669
14670 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
14671
14672         PR tree-optimization/61554
14673         * tree-ssa-propagate.c: Include "bitmap.h".
14674         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14675         properly update constructor/destructor.
14676         (substitute_and_fold_dom_walker::before_dom_children):
14677         Remove call to gimple_purge_dead_eh_edges, add bb->index to
14678         need_eh_cleaup instead.
14679         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14680         need_eh_cleanup.
14681
14682 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
14683
14684         * varpool.c (dump_varpool_node): Dump used_by_single_function.
14685         * tree-pass.h (make_pass_ipa_single_use): New pass.
14686         * cgraph.h (used_by_single_function): New flag.
14687         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14688         Stream it.
14689         * passes.def (pass_ipa_single_use): Scedule.
14690         * ipa.c (BOTTOM): New macro.
14691         (meet): New function
14692         (propagate_single_user): New function.
14693         (ipa_single_use): New function.
14694         (pass_data_ipa_single_use): New pass.
14695         (pass_ipa_single_use): New pass.
14696         (pass_ipa_single_use::gate): New gate.
14697         (make_pass_ipa_single_use): New function.
14698
14699 2014-06-23  Kai Tietz  <ktietz@redhat.com>
14700
14701         PR target/39284
14702         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14703         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14704
14705 2014-06-23  Richard Biener  <rguenther@suse.de>
14706
14707         * tree-ssa-loop.c (gate_loop): New function.
14708         (pass_tree_loop::gate): Call it.
14709         (pass_data_tree_no_loop, pass_tree_no_loop,
14710         make_pass_tree_no_loop): New.
14711         * tree-vectorizer.c: Include tree-scalar-evolution.c
14712         (pass_slp_vectorize::execute): Initialize loops and SCEV if
14713         required.
14714         (pass_slp_vectorize::clone): New method.
14715         * timevar.def (TV_TREE_NOLOOP): New.
14716         * tree-pass.h (make_pass_tree_no_loop): Declare.
14717         * passes.def (pass_tree_no_loop): New pass group with
14718         SLP vectorizer.
14719
14720 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
14721
14722         PR target/61570
14723         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14724         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14725
14726 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
14727
14728         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14729         "yes" where needed.
14730
14731 2014-06-23  Alan Modra  <amodra@gmail.com>
14732
14733         PR bootstrap/61583
14734         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14735         to zero on debug statements.
14736
14737 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
14738
14739         PR target/60825
14740         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14741         Ignore third operand if present by marking qualifier_internal.
14742
14743         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14744
14745         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14746         vector extension.
14747         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14748         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14749         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14750         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14751         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14752         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14753         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14754         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14755         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14756         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14757         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14758         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14759         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14760         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14761         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14762         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14763         logic in GCC vector extensions
14764
14765         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14766         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14767         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14768         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14769         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14770         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14771         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14772         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14773         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14774         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14775
14776         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14777
14778         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14779         extensions.
14780
14781         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14782         (vget_low_s64): Use __GET_LOW macro.
14783         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14784         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14785         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14786         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14787         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14788
14789         (vcombine_s64): Use GCC vector extensions; remove cast.
14790         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14791         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14792         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14793         Fix type signature; remove cast.
14794
14795 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
14796
14797         PR target/60825
14798         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14799         V1DFmode.
14800         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14801         add V1DFmode
14802         (BUILTIN_VD1): New.
14803         (BUILTIN_VD_RE): Remove.
14804         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14805         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14806         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14807         variant but not df.
14808         (vreinterpretv1df*, vreinterpret*v1df): New.
14809         (vreinterpretdf*, vreinterpret*df): Remove.
14810         * config/aarch64/aarch64-simd.md (aarch64_create,
14811         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14812         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14813         (VD1): New.
14814         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14815         (vcreate_f64): Remove cast, use v1df builtin.
14816         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14817         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14818         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14819         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14820         vmov_n_f64, vst1_f64): Use gcc vector extensions.
14821         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14822         add range check using __builtin_aarch64_im_lane_boundsi.
14823         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14824         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14825         type signature, use gcc vector extensions.
14826         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14827         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14828         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14829         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14830         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14831         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14832         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14833         vreinterpret_u64_f64): Use v1df builtin not df.
14834
14835 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
14836
14837         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14838         vector registers.
14839
14840 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
14841
14842         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14843         priority directly.
14844
14845 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14846
14847         * loop-invariant.c (pre_check_invariant_p): New function.
14848         (find_invariant_insn): Call pre_check_invariant_p.
14849
14850 2014-06-22  Richard Henderson  <rth@redhat.com>
14851
14852         PR target/61565
14853         * compare-elim.c (struct comparison): Add eh_note.
14854         (find_comparison_dom_walker::before_dom_children): Don't eliminate
14855         a redundant comparison in a different EH region.  Purge EH edges if
14856         necessary.
14857
14858 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14859
14860         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14861         (var_shift): Use it.
14862         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14863         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14864         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14865         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14866         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14867         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14868         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14869         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14870         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14871         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14872         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14873         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14874         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14875         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14876         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14877         *rotldi3_internal15be): Use the new attribute.  Merge register and
14878         integer alternatives.
14879
14880 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14881
14882         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14883         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14884         split, *ashrdi3_internal3 and split): Delete, merge into...
14885         (ashr<mode>3): New expander.
14886         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14887         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
14888
14889 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14890
14891         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14892         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14893         *rotldi3_internal3 and split): Delete, merge into...
14894         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14895         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
14896         Use "rotlw" extended mnemonic.
14897
14898 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14899
14900         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14901         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14902         and split, *ashldi3_internal3 and split): Delete, merge into...
14903         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14904         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
14905
14906 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14907
14908         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14909         (lshrsi3, two anonymous define_insns and define_splits,
14910         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14911         *lshrdi3_internal3 and split): Delete, merge into...
14912         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14913         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
14914
14915 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
14916
14917         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14918         Remove "O" alternative.
14919
14920 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
14921
14922         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14923         (mips_move_from_gpr_cost): Likewise.
14924         (mips_register_move_cost): Update accordingly.
14925         (mips_secondary_reload_class): Remove name of in_p.
14926
14927 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
14928
14929         PR target/61503
14930         * config/i386/i386.md (x86_64_shrd, x86_shrd,
14931         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14932
14933 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14934
14935         * config/nios2/nios2.c: Include "builtins.h".
14936
14937 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
14938
14939         * cgraph.h (tls_model_names): New variable.
14940         * print-tree.c (print_node): Simplify.
14941         * varpool.c (tls_model_names): New variable.
14942         (dump_varpool_node): Output tls model.
14943
14944 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
14945
14946         * ipa-visibility.c (function_and_variable_visibility): Disable
14947         temporarily local aliases for some targets.
14948
14949 2014-06-20  Marek Polacek  <polacek@redhat.com>
14950
14951         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14952         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14953         into SANITIZE_UNDEFINED.
14954         * doc/invoke.texi: Describe -fsanitize=bounds.
14955         * gimplify.c (gimplify_call_expr): Add gimplification of internal
14956         functions created in the FEs.
14957         * internal-fn.c: Move "internal-fn.h" after "tree.h".
14958         (expand_UBSAN_BOUNDS): New function.
14959         * internal-fn.def (UBSAN_BOUNDS): New internal function.
14960         * internal-fn.h: Don't define internal functions here.
14961         * opts.c (common_handle_option): Add -fsanitize=bounds.
14962         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14963         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14964         * tree-core.h: Define internal functions here.
14965         (struct tree_base): Add ifn field.
14966         * tree-pretty-print.c: Include "internal-fn.h".
14967         (dump_generic_node): Handle functions without CALL_EXPR_FN.
14968         * tree.c (get_callee_fndecl): Likewise.
14969         (build_call_expr_internal_loc): New function.
14970         * tree.def (CALL_EXPR): Update description.
14971         * tree.h (CALL_EXPR_IFN): Define.
14972         (build_call_expr_internal_loc): Declare.
14973         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14974         types.
14975         (ubsan_type_descriptor): Change bool parameter to enum
14976         ubsan_print_style.  Adjust the code.  Add handling of
14977         UBSAN_PRINT_ARRAY.
14978         (ubsan_expand_bounds_ifn): New function.
14979         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14980         (ubsan_build_overflow_builtin): Likewise.
14981         (instrument_bool_enum_load): Likewise.
14982         (ubsan_instrument_float_cast): Likewise.
14983         * ubsan.h (enum ubsan_print_style): New enum.
14984         (ubsan_expand_bounds_ifn): Declare.
14985         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
14986
14987 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
14988
14989         * config/rs6000/rs6000.md: Append `DONE' to preparation
14990         statements of `bswap' pattern splitters.
14991
14992 2014-06-20  Tom de Vries  <tom@codesourcery.com>
14993
14994         * target.def (call_fusage_contains_non_callee_clobbers): Update
14995         definition.
14996         * doc/tm.texi: Regenerate.
14997
14998 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
14999             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15000
15001         PR sanitizer/61547
15002         * asan.c (instrument_strlen_call): Fixed instrumentation of
15003         trailing byte.
15004
15005 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15006
15007         PR ipa/61540
15008         * ipa-prop.c (impossible_devirt_target): New function.
15009         (try_make_edge_direct_virtual_call): Use it, also instead of
15010         asserting.
15011
15012 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15013             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15014
15015         PR sanitizer/61530
15016         * asan.c (build_check_stmt): Add condition.
15017
15018 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15019
15020         PR ipa/61211
15021         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15022         expanded clones.
15023
15024 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15025
15026         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15027         Update comments.
15028         (VCONQ): Make comment more helpful.
15029         (VCON): Delete.
15030         * config/aarch64/aarch64-simd.md
15031         (aarch64_sqdmulh_lane<mode>):
15032         Use VCOND for operands 2.  Update lane checking and flipping logic.
15033         (aarch64_sqrdmulh_lane<mode>): Likewise.
15034         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15035         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15036         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15037         attribute of operand 3 to VCOND.
15038         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15039         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15040         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15041         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15042         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15043         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15044         define_insn.
15045         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15046         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15047         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15048         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15049         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15050         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15051         operand to VCOND.  Update lane flipping and bounds checking logic.
15052         (aarch64_sqdmlal2_lane<mode>): Likewise.
15053         (aarch64_sqdmlsl_lane<mode>): Likewise.
15054         (aarch64_sqdmull_lane<mode>): Likewise.
15055         (aarch64_sqdmull2_lane<mode>): Likewise.
15056         (aarch64_sqdmlal_laneq<mode>):
15057         Replace VCON usage with VCONQ.
15058         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15059         (aarch64_sqdmlal2_laneq<mode>): Emit
15060         aarch64_sqdmlal2_laneq<mode>_internal insn.
15061         Replace VCON with VCONQ.
15062         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15063         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15064         (aarch64_sqdmull_laneq<mode>): Emit
15065         aarch64_sqdmull_laneq<mode>_internal insn.
15066         Replace VCON with VCONQ.
15067         (aarch64_sqdmull2_laneq<mode>): Emit
15068         aarch64_sqdmull2_laneq<mode>_internal insn.
15069         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15070         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15071         of 3rd argument to int16x4_t.
15072         (vqdmlalh_lane_s16): Likewise.
15073         (vqdmlslh_lane_s16): Likewise.
15074         (vqdmull_high_lane_s16): Likewise.
15075         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15076         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15077         (vqdmlsl_lane_s16): Likewise.
15078         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15079         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15080         (vqdmlals_lane_s32): Likewise.
15081         (vqdmlsls_lane_s32): Likewise.
15082         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15083         (vqdmulls_lane_s32): Likewise.
15084         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15085         (vqdmlsl_lane_s32): Likewise.
15086         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15087         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15088         (vqrdmulhh_lane_s16): Likewise.
15089         (vqdmlsl_high_lane_s16): Likewise.
15090         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15091         (vqdmlsl_high_lane_s32): Likewise.
15092         (vqrdmulhs_lane_s32): Likewise.
15093
15094 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15095
15096         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15097         get_call_reg_set_usage.
15098
15099 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15100
15101         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15102         it contains all call_used_regs.
15103
15104 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15105
15106         * final.c (collect_fn_hard_reg_usage): Add and use variable
15107         function_used_regs.
15108
15109 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15110
15111         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15112         (set_init_priority, get_init_priority, set_fini_priority,
15113         get_fini_priority): New methods.
15114         * tree.c (init_priority_for_decl): Remove.
15115         (init_ttree): Do not initialize init priority.
15116         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15117         (decl_priority_info): Remove.
15118         (decl_init_priority_insert): Rewrite.
15119         (decl_fini_priority_insert): Rewrite.
15120         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15121         tree_priority_map_marked_p): Remove.
15122         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15123         * lto-streamer-out.c (hash_tree): Do not hash priorities.
15124         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15125         not output priorities.
15126         (pack_ts_function_decl_value_fields): Likewise.
15127         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15128         not input priorities.
15129         (unpack_ts_function_decl_value_fields): Likewise.
15130         * symtab.c (symbol_priority_map): Declare.
15131         (init_priority_hash): Declare.
15132         (symtab_unregister_node): Unregister from priority hash, too.
15133         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15134         New methods.
15135         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15136         (symbol_priority_info): New function.
15137         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15138         New methods.
15139         * tree-core.h (tree_priority_map): Remove.
15140
15141 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
15142
15143         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15144         0xff to uint64_t before shifting it up.
15145
15146 2014-06-20  Julian Brown  <julian@codesourcery.com>
15147             Chung-Lin Tang  <cltang@codesourcery.com>
15148
15149         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15150         TARGET_THUMB1_ONLY. Add comments.
15151
15152 2014-06-19  Tom de Vries  <tom@codesourcery.com>
15153
15154         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15155         return type to void.
15156         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15157
15158 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15159
15160         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15161         as "move", from depends_on.
15162
15163 2014-06-19  Terry Guo  <terry.guo@arm.com>
15164
15165         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15166         stage.
15167
15168 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
15169
15170         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15171         Remove cr5.
15172         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
15173
15174 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15175
15176         PR target/61550
15177         * config/sh/sh.c (prepare_move_operands): Don't process TLS
15178         addresses here if reload in progress or completed.
15179
15180 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15181
15182         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15183         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15184         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15185         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15186         (mips_register_priority): New function that implements the target
15187         hook TARGET_REGISTER_PRIORITY.
15188         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15189         (mips_lra_p): Likewise for TARGET_LRA_P.
15190         (TARGET_REGISTER_PRIORITY): Define macro.
15191         (TARGET_SPILL_CLASS): Likewise.
15192         (TARGET_LRA_P): Likewise.
15193         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15194         classes.
15195         (REG_CLASS_NAMES): Likewise.
15196         (REG_CLASS_CONTENTS): Likewise.
15197         (BASE_REG_CLASS): Use M16_SP_REGS.
15198         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15199         New set attribute to enable alternatives depending on the register
15200         allocator used.
15201         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15202         (*lea64): Disable pattern for MIPS16.
15203         * config/mips/mips.opt (mlra): New option.
15204
15205 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15206
15207         * lra-constraints.c (base_to_reg): New function.
15208         (process_address): Use new function.
15209
15210 2014-06-18  Tom de Vries  <tom@codesourcery.com>
15211
15212         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15213         * config/aarch64/aarch64.c
15214         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15215         (aarch64_emit_call_insn): New function.
15216         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15217         of emit_call_insn.
15218         * config/aarch64/aarch64.md (define_expand "call_internal")
15219         (define_expand "call_value_internal", define_expand "sibcall_internal")
15220         (define_expand "sibcall_value_internal"): New.
15221         (define_expand "call", define_expand "call_value")
15222         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15223         expand variant and aarch64_emit_call_insn.
15224
15225 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
15226             Tom de Vries  <tom@codesourcery.com>
15227
15228         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15229         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15230         Redefine to true.
15231         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
15232         clobbers to CALL_INSN_FUNCTION_USAGE.
15233         (define_expand "sibcall_internal")
15234         (define_expand "sibcall_value_internal"): New.
15235         (define_expand "call", define_expand "call_value"): Add argument to
15236         arm_emit_call_insn.
15237         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15238         (define_expand "sibcall_value"): Use sibcall_value_internal and
15239         arm_emit_call_insn.
15240
15241 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15242
15243         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15244
15245 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15246
15247         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15248         __udivmoddi4.
15249
15250 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15251
15252         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15253         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15254         annotations. Fix DWARF information.
15255
15256 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15257
15258         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15259         __udivmoddi4, and fixups for negative operands.
15260
15261 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15262
15263         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15264
15265 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15266
15267         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15268         to __udivmoddi4.
15269
15270 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15271
15272         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15273         manipulation.
15274
15275 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15276
15277         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15278         describing register usage on function entry and exit.
15279
15280 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15281
15282         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15283         (__aeabi_ldivmod): Fix whitespace.
15284
15285 2014-06-18  Andreas Schwab  <schwab@suse.de>
15286
15287         * doc/md.texi (Standard Names): Use @itemx for grouped items.
15288         Remove blank line after @item.
15289
15290 2014-06-18  Richard Henderson  <rth@redhat.com>
15291
15292         PR target/61545
15293         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15294
15295 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15296
15297         * config/arm/arm.c (neon_vector_mem_operand): Allow register
15298         POST_MODIFY for neon loads and stores.
15299         (arm_print_operand): Output post-index register for neon loads and
15300         stores.
15301
15302 2014-06-18  Richard Biener  <rguenther@suse.de>
15303
15304         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15305
15306 2014-06-18  Richard Biener  <rguenther@suse.de>
15307
15308         * tree-pass.h (make_pass_dce_loop): Remove.
15309         * passes.def: Replace pass_dce_loop with pass_dce.
15310         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15311         changed free niter estimates and reset the scev cache.
15312         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15313         make_pass_dce_loop): Remove.
15314         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15315         (fini_copy_prop): Return whether something changed.  Always
15316         let substitute_and_fold perform DCE and free niter estimates
15317         and reset the scev cache if so.
15318         (execute_copy_prop): If sth changed schedule cleanup-cfg.
15319         (pass_data_copy_prop): Do not unconditionally schedule
15320         cleanup-cfg or update-ssa.
15321
15322 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
15323
15324         PR tree-optimization/61518
15325         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15326         reduction var is used in reduction stmt or phi-function only.
15327
15328 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15329
15330         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15331
15332 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15333
15334         PR tree-optimization/61517
15335         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15336         whose rhs's first tree is the source expression instead of the
15337         expression itself.
15338         (find_bswap_or_nop): Likewise.
15339         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15340         gimple stmt whose rhs's first tree is the source. In the memory source
15341         case, move the stmt to be replaced close to one of the original load to
15342         avoid the problem of a store between the load and the stmt's original
15343         location.
15344         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15345         signature.
15346
15347 2014-06-18  Andreas Schwab  <schwab@suse.de>
15348
15349         PR rtl-optimization/54555
15350         * postreload.c (move2add_use_add2_insn): Substitute
15351         STRICT_LOW_PART only if it is cheaper.
15352
15353 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
15354
15355         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15356         Do not use unspec as call operand.  Use memory_operand instead of
15357         memory_nox32_operand and add "m" operand constraint.  Disable
15358         pattern for TARGET_X32.
15359         (*sibcall_pop_memory): Ditto.
15360         (*sibcall_value_memory): Ditto.
15361         (*sibcall_value_pop_memory): Ditto.
15362         (sibcall peepholes): Merge SImode and DImode patterns using
15363         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
15364         Disable pattern for TARGET_X32.  Check if eliminated register is
15365         really dead after call insn.  Generate call RTX without unspec operand.
15366         (sibcall_value peepholes): Ditto.
15367         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
15368         instead of memory_nox32_operand.  Check if eliminated register is
15369         really dead after call insn. Generate call RTX without unspec operand.
15370         (sibcall_value_pop peepholes): Ditto.
15371         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15372
15373 2014-06-18  Terry Guo  <terry.guo@arm.com>
15374
15375         PR target/61544
15376         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15377         reach the head.
15378
15379 2014-06-18  Olivier Hainque  <hainque@adacore.com>
15380
15381         * tree-core.h (tree_block): Add an "end_locus" field, allowing
15382         memorization of the end of block source location.
15383         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15384         * gimplify.c (gimplify_bind_expr): Propagate the block start and
15385         end source location info we have on the block entry/exit code we
15386         generate.
15387
15388 2014-06-18  Richard Biener  <rguenther@suse.de>
15389
15390         * common.opt (fssa-phiopt): New option.
15391         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15392         but not with -Og.
15393         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15394         * doc/invoke.texi (-fssa-phiopt): Document.
15395
15396 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15397
15398         * genattrtab.c (n_bypassed): New variable.
15399         (process_bypasses): Initialise n_bypassed.
15400         Count number of bypassed reservations.
15401         (make_automaton_attrs): Allocate space for bypassed reservations
15402         rather than number of bypasses.
15403
15404 2014-06-18  Richard Biener  <rguenther@suse.de>
15405
15406         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15407         we propagated anything.
15408         (substitute_and_fold_dom_walker::before_dom_children): Something
15409         changed if we propagated into PHI arguments.
15410         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15411         we removed a stmt.
15412
15413 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
15414
15415         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15416         vector case.
15417         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15418         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15419         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15420         Introduces alternative way of loads group permutaions.
15421         (vect_transform_grouped_load): Try alternative way of permutations.
15422
15423 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
15424
15425         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15426         changed in ORT_TARGET region, don't jump to do_outer.
15427         (struct gimplify_adjust_omp_clauses_data): New type.
15428         (gimplify_adjust_omp_clauses_1): Adjust for data being
15429         a struct gimplify_adjust_omp_clauses_data pointer instead
15430         of tree *.  Pass pre_p as a new argument to
15431         lang_hooks.decls.omp_finish_clause hook.
15432         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15433         splay_tree_foreach to pass both list_p and pre_p.
15434         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15435         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15436         gimplify_adjust_omp_clauses callers.
15437         * langhooks.c (lhd_omp_finish_clause): New function.
15438         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15439         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15440         * langhooks.h (struct lang_hooks_for_decls): Add a new
15441         gimple_seq * argument to omp_finish_clause hook.
15442         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15443         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15444         (scan_omp_parallel, lower_omp_for): When adding
15445         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15446         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15447         * tree-nested.c (convert_nonlocal_omp_clauses,
15448         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15449         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15450
15451 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
15452
15453         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15454         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15455
15456 2014-06-17  Xinliang David Li  <davidxl@google.com>
15457
15458         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15459         * passes.c (pass_init_dump_file): Do not set initialize
15460         flag to false unconditionally.
15461
15462 2014-06-17  Richard Biener  <rguenther@suse.de>
15463
15464         * genopinit.c (main): Use vec<>::qsort method.
15465         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15466         Likewise.
15467         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15468
15469 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
15470
15471         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15472         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15473         (mips_move_to_gpr_cost): Remove ST_REGS case.
15474         (mips_move_from_gpr_cost): Likewise.
15475         (mips_register_move_cost): Likewise.
15476         (mips_secondary_reload_class): Likewise.
15477
15478 2014-06-17  Richard Biener  <rguenther@suse.de>
15479
15480         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15481         (pass_all_optimizations): Move 3rd copy-prop pass from after
15482         fre to before ifcombine/phiopt.
15483
15484 2014-06-17  Richard Biener  <rguenther@suse.de>
15485
15486         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15487         and allow all blocks to be forwarders.
15488
15489 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
15490
15491         PR target/61483
15492         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15493         variable 'size'; calculate 'size' right in the front; use
15494         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15495         pcum->aapcs_stack_words.
15496
15497 2014-06-17  Nick Clifton  <nickc@redhat.com>
15498
15499         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15500         (umulhi3, mulsidi3, umulsidi3): Likewise.
15501
15502 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
15503
15504         PR middle-end/61508
15505         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15506         check for section name.
15507
15508 2014-06-17  Richard Biener  <rguenther@suse.de>
15509
15510         * tree-ssa-propagate.c: Include domwalk.h.
15511         (substitute_and_fold): Outline main worker into a domwalker ...
15512         (substitute_and_fold_dom_walker::before_dom_children): ... here.
15513         Schedule stmts we can fully propagate for removal.  Remove
15514         poor-mans DCE.
15515         (substitute_and_fold): Apply a dominator walk to perform
15516         substitution.  Process stmts scheduled for removal here.
15517
15518 2014-06-17  Richard Biener  <rguenther@suse.de>
15519
15520         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15521         of PHI node moving.
15522
15523 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
15524
15525         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15526         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15527         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15528         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15529         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15530         TARGET_HARD_FLOAT.
15531         (get_fpscr) : Likewise.
15532
15533 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
15534
15535         PR rtl-optimization/61325
15536         * lra-constraints.c (valid_address_p): Add forward declaration.
15537         (simplify_operand_subreg): Check address validity before and after
15538         alter_reg of memory subreg.
15539
15540 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
15541
15542         * config/i386/i386.c (decide_alg): Correctly handle
15543         maximum size of stringop algorithm.
15544
15545 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
15546
15547         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15548
15549 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
15550
15551         PR rtl-optimization/61522
15552         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15553
15554 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
15555
15556         Revert:
15557         * symtab.c (symtab_node::reset_section): New method.
15558         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15559         for localization.
15560         * cgraph.h (reset_section): Declare.
15561         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15562         do not consider comdat locals.
15563         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15564         for new symbol.
15565         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15566         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15567         reset sections of symbols dragged out of the comdats.
15568         (function_and_variable_visibility): Reset sections of
15569         localized symbols.
15570
15571 2014-06-16  Richard Biener  <rguenther@suse.de>
15572
15573         PR tree-optimization/61482
15574         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15575         [-INF(OVF), +INF(OVF)] range.
15576
15577 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15578
15579         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15580         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15581         handling 32-bit multiplication.
15582
15583 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
15584
15585         PR middle-end/61430
15586         * lra-lives.c (process_bb_lives): Skip creating copy during
15587         insn scan when src/dest has constrained to same regno.
15588
15589 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
15590
15591         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15592         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15593
15594 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
15595
15596         * asan.c (check_func): New function.
15597         (maybe_create_ssa_name): Likewise.
15598         (build_check_stmt_with_calls): Likewise.
15599         (use_calls_p): Likewise.
15600         (report_error_func): Change interface.
15601         (build_check_stmt): Allow non-integer lengths; add support
15602         for new parameter.
15603         (asan_instrument): Likewise.
15604         (instrument_mem_region_access): Moved code to build_check_stmt.
15605         (instrument_derefs): Likewise.
15606         (instrument_strlen_call): Likewise.
15607         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15608         * doc/invoke.texi: Describe new parameter.
15609         * params.def: Define new parameter.
15610         * params.h: Likewise.
15611         * sanitizer.def: Describe new builtins.
15612
15613 2014-06-16  Richard Biener  <rguenther@suse.de>
15614
15615         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15616         Make all defs available at the end.
15617         (eliminate): If we remove a PHI node schedule cfg-cleanup.
15618
15619 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
15620
15621         PR plugins/45078
15622         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15623
15624 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
15625
15626         PR bootstrap/61516
15627         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15628         initialization.  Replace remaining use of uid.
15629
15630 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
15631
15632         * c-family/c-common.c (handle_tls_model_attribute): Use
15633         set_decl_tls_model.
15634         * c-family/c-common.c (handle_tls_model_attribute): Use
15635         set_decl_tls_model.
15636         * cgraph.h (struct varpool_node): Add tls_model.
15637         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15638         * tree.h (DECL_TLS_MODEL): Update.
15639         (DECL_THREAD_LOCAL_P): Check that variable is static.
15640         (decl_tls_model): Declare.
15641         (set_decl_tls_model): Declare.
15642         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15643         set symbol prorperties.
15644         (get_emutls_init_templ_addr): Cleanup.
15645         (new_emutls_decl): Update.
15646         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15647         (lto_input_varpool_node): Likewise.
15648         * lto-streamer-out.c (hash_tree): Likewise.
15649         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15650         not stream DECL_TLS_MODEL.
15651         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15652         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15653
15654 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15655
15656         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15657
15658 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15659
15660         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15661         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15662         lists.
15663         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15664         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15665         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15666         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15667         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15668         (df_get_artificial_defs, df_get_artificial_uses)
15669         (df_single_def, df_single_use): Update accordingly.
15670         (df_refs_chain_dump): Take the first element in a linked list as
15671         parameter, rather than a pointer to an array of pointers.
15672         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15673         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15674         (df_chain_create_bb_process_use): Likewise.
15675         (df_md_bb_local_compute_process_def): Likewise.
15676         * fwprop.c (process_defs, process_uses): Likewise.
15677         (register_active_defs, update_uses): Likewise.
15678         (forward_propagate_asm): Update for new df_ref linking.
15679         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15680         (df_null_ref_rec, df_null_mw_rec): Likewise.
15681         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15682         explicitly.
15683         (df_scan_free_bb_info): Remove check for null artificial_defs.
15684         (df_install_ref_incremental): Adjust for new df_ref linking.
15685         Use a single-element insertion rather than a full sort.
15686         (df_ref_chain_delete_du_chain): Take the first element
15687         in a linked list as parameter, rather than a pointer to an array of
15688         pointers.
15689         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15690         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15691         (df_insn_info_delete): Remove check for null defs and call to
15692         df_scan_free_mws_vec.
15693         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15694         null rather than df_null_*_rec.
15695         (df_insn_rescan_debug_internal): Likewise, and update null
15696         checks in the same way.  Remove check for null defs.
15697         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15698         Move a single element rather doing a full sort.
15699         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15700         linking.
15701         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
15702         Initialize df_ref and df_mw_hardreg lists to null rather than
15703         df_null_*_rec.
15704         (df_ref_compare): Take df_refs as parameter, transferring the
15705         old interface to...
15706         (df_ref_ptr_compare): ...this new function.
15707         (df_sort_and_compress_refs): Update accordingly.
15708         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15709         old interface to...
15710         (df_mw_ptr_compare): ...this new function.
15711         (df_sort_and_compress_mws): Update accordingly.
15712         (df_install_refs, df_install_mws): Return a linked list rather than
15713         an array of pointers.
15714         (df_refs_add_to_chains): Assert that old lists are empty rather
15715         than freeing them.
15716         (df_insn_refs_verify): Don't handle null defs speciailly.
15717         * web.c (union_match_dups): Update for new df_ref linking.
15718
15719 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15720
15721         * df.h (df_ref_create, df_ref_remove): Delete.
15722         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15723         (df_ref_remove): Likewise.
15724
15725 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15726
15727         * df.h (df_single_def, df_single_use): New functions.
15728         * ira.c (find_moveable_pseudos): Use them.
15729
15730 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15731
15732         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15733         * df-problems.c (df_note_bb_compute): Use it.
15734         * regstat.c (regstat_bb_compute_ri): Likewise.
15735
15736 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15737
15738         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15739         * cse.c (cse_extended_basic_block): Use them.
15740         * dce.c (mark_artificial_use): Likewise.
15741         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15742         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15743         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15744         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15745         (df_simulate_initialize_backwards): Likewise.
15746         (df_simulate_finalize_backwards): Likewise.
15747         (df_simulate_initialize_forwards): Likewise.
15748         (df_md_simulate_artificial_defs_at_top): Likewise.
15749         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15750         * regrename.c (init_rename_info): Likewise.
15751         * regstat.c (regstat_bb_compute_ri): Likewise.
15752         (regstat_bb_compute_calls_crossed): Likewise.
15753
15754 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15755
15756         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15757         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15758         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15759         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15760         * combine.c (create_log_links): Likewise.
15761         * compare-elim.c (find_flags_uses_in_insn): Likewise.
15762         (try_eliminate_compare): Likewise.
15763         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15764         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15765         (remove_reg_equal_equiv_notes_for_defs): Likewise.
15766         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15767         (word_dce_process_block, dce_process_block): Likewise.
15768         * ddg.c (def_has_ccmode_p): Likewise.
15769         * df-core.c (df_bb_regno_first_def_find): Likewise.
15770         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15771         * df-problems.c (df_rd_simulate_one_insn): Likewise.
15772         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15773         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15774         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15775         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15776         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15777         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15778         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15779         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15780         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15781         * fwprop.c (local_ref_killed_between_p): Likewise.
15782         (all_uses_available_at, free_load_extend): Likewise.
15783         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15784         * hw-doloop.c (scan_loop): Likewise.
15785         * ifcvt.c (dead_or_predicable): Likewise.
15786         * init-regs.c (initialize_uninitialized_regs): Likewise.
15787         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15788         (process_bb_node_lives): Likewise.
15789         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15790         (find_moveable_pseudos): Likewise.
15791         * loop-invariant.c (check_dependencies, record_uses): Likewise.
15792         * recog.c (peep2_find_free_register): Likewise.
15793         * ree.c (get_defs): Likewise.
15794         * regstat.c (regstat_bb_compute_ri): Likewise.
15795         (regstat_bb_compute_calls_crossed): Likewise.
15796         * sched-deps.c (find_inc, find_mem): Likewise.
15797         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15798         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15799         * shrink-wrap.c (requires_stack_frame_p): Likewise.
15800         (prepare_shrink_wrap): Likewise.
15801         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15802         * web.c (union_defs, pass_web::execute): Likewise.
15803         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15804         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15805
15806 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
15807
15808         * lra-assign.c (assign_by_spills): Add code to assign vector regs
15809         to inheritance pseudos.
15810         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15811
15812 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
15813
15814         PR target/61415
15815         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15816         (BU_MISC_2): Rename to ...
15817         (BU_LDBL128_2): ... this.
15818         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15819         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15820         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15821         RS6000_BTM_LDBL128.
15822         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15823         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15824         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15825         (unpacktf_1): Likewise.
15826         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15827         (__builtin_longdouble_dw1): Likewise.
15828         * doc/sourcebuild.texi (longdouble128): Document.
15829
15830 2014-06-13  Jeff Law  <law@redhat.com>
15831
15832         PR rtl-optimization/61094
15833         PR rtl-optimization/61446
15834         * ree.c (combine_reaching_defs): Get the mode for the copy from
15835         the extension insn rather than the defining insn.
15836
15837 2014-06-13  Dehao Chen  <dehao@google.com>
15838
15839         * dwarf2out.c (add_linkage_name): Emit more linkage name.
15840
15841 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
15842
15843         * doc/install.texi (--enable-linker-plugin-configure-flags)
15844         (--enable-linker-plugin-flags): Document new flags.
15845
15846 2014-06-13  Martin Jambor  <mjambor@suse.cz>
15847
15848         PR ipa/61186
15849         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15850         cache_token if returning early.
15851
15852 2014-06-13  Nick Clifton  <nickc@redhat.com>
15853
15854         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15855         requested alignment is active.
15856         (LABEL_ALIGN): Likewise.
15857         (LOOP_ALIGN): Likewise.
15858
15859 2014-06-13  Richard Biener  <rguenther@suse.de>
15860
15861         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15862         Rewrite to propagate the VN result into all uses where
15863         possible and to remove stmts becoming dead because of that.
15864         (eliminate): Generalize stmt removal handling, remove in
15865         reverse dominator order to support proper debug stmt
15866         generation.  Update stmts before removing stmts.
15867         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15868
15869 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15870
15871         PR tree-optimization/61375
15872         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15873         symbolic number cannot be represented in an uint64_t.
15874         (find_bswap_or_nop_1): Likewise.
15875
15876 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
15877
15878         * symtab.c (symtab_node::reset_section): New method.
15879         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15880         for localization.
15881         * cgraph.h (reset_section): Declare.
15882         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15883         do not consider comdat locals.
15884         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15885         for new symbol.
15886         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15887         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15888         reset sections of symbols dragged out of the comdats.
15889         (function_and_variable_visibility): Reset sections of
15890         localized symbols.
15891
15892 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
15893
15894         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15895         to use symtab and decl_binds_to_current_def_p
15896         * tree-vectorizer.c (increase_alignment): Increase alignment
15897         of alias target, too.
15898
15899 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
15900
15901         PR middle-end/61486
15902         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15903         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15904         if outer combined construct is distribute.
15905         (gimplify_omp_for): For OMP_DISTRIBUTE set
15906         gimplify_omp_ctxp->distribute.
15907         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15908         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15909         mapping into decl map.
15910
15911 2014-06-12  Jason Merrill  <jason@redhat.com>
15912
15913         * common.opt (fabi-version): Change default to 0.
15914
15915 2014-06-12  Jason Merrill  <jason@redhat.com>
15916
15917         * toplev.c (process_options): Reject -fabi-version=1.
15918
15919 2014-06-12  Jeff Law  <law@redhat.com>
15920
15921         PR tree-optimization/61009
15922         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15923         value when we stop processing a block due to problematic PHIs.
15924
15925 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
15926
15927         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15928         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15929         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15930         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15931         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15932         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15933         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15934         are not in the spec.
15935
15936 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
15937
15938         PR target/59843
15939         * config/aarch64/aarch64-modes.def: Add V1DFmode.
15940         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15941         Support V1DFmode.
15942
15943 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
15944
15945         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15946
15947 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
15948
15949         PR target/61443
15950         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15951         loading from address spaces.
15952
15953 2014-06-12  Martin Liska  <mliska@suse.cz>
15954
15955         PR ipa/61462
15956         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15957         statement is reachable.
15958
15959 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
15960
15961         * symtab.c (section_hash): New hash.
15962         (symtab_unregister_node): Clear section before freeing.
15963         (hash_section_hash_entry): New haser.
15964         (eq_sections): New function.
15965         (symtab_node::set_section_for_node): New method.
15966         (set_section_1): Update.
15967         (symtab_node::set_section): Take string instead of tree as parameter.
15968         (symtab_resolve_alias): Update.
15969         * cgraph.h (section_hash_entry_d): New structure.
15970         (section_hash_entry): New typedef.
15971         (cgraph_node): Change comdat_group_ to x_comdat_group,
15972         change section_ to x_section and turn into section_hash_entry;
15973         update accestors; put set_section_for_node offline.
15974         * tree.c (decl_section_name): Turn into string.
15975         (set_decl_section_name): Change parameter to be string.
15976         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15977         * sdbout.c (sdbout_one_type): Update.
15978         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15979         * varasm.c (IN_NAMED_SECTION, get_named_section,
15980         resolve_unique_section, hot_function_section, get_named_text_section,
15981         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15982         make_decl_rtl, default_unique_section): Update.
15983         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15984         (c6x_elf_unique_section): Update.
15985         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15986         * config/pa/pa.c (pa_function_section): Update.
15987         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15988         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15989         * config/arc/arc.c (arc_in_small_data_p): Update.
15990         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15991         * config/mcore/mcore.c (mcore_unique_section): Update.
15992         * config/mips/mips.c (mips16_build_function_stub): Update.
15993         (mips16_build_call_stub): Update.
15994         (mips_function_rodata_section): Update.
15995         (mips_in_small_data_p): Update.
15996         * config/score/score.c (score_in_small_data_p): Update.
15997         * config/rx/rx.c (rx_in_small_data): Update.
15998         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15999         (rs6000_xcoff_asm_named_section): Update.
16000         (rs6000_xcoff_unique_section): Update.
16001         * config/frv/frv.c (frv_string_begins_with): Update.
16002         (frv_in_small_data_p): Update.
16003         * config/v850/v850.c (v850_encode_data_area): Update.
16004         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16005         (bfin_handle_l1_data_attribute): Update.
16006         (bfin_handle_l2_attribute): Update.
16007         * config/mep/mep.c (mep_unique_section): Update.
16008         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16009         Update.
16010         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16011         (h8300_handle_tiny_data_attribute): Update.
16012         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16013         (m32r_in_small_data_p): Update.
16014         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16015         * config/i386/i386.c (ix86_in_large_data_p): Update.
16016         * config/i386/winnt.c (i386_pe_unique_section): Update.
16017         * config/darwin.c (darwin_function_section): Update.
16018         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16019         * tree-emutls.c (get_emutls_init_templ_addr): Update.
16020         (new_emutls_decl): Update.
16021         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16022         input_varpool_node): Update.
16023         (ead_string_cst): Turn to ...
16024         (read_string): ... this one.
16025         * dwarf2out.c (secname_for_decl): Update.
16026         * asan.c (asan_protect_global): Update.
16027
16028 2014-06-11  DJ Delorie  <dj@redhat.com>
16029
16030         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16031         cache lines.
16032         * config/rx/rx.c (rx_option_override): Likewise.
16033         (rx_align_for_label): Likewise.
16034
16035         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16036
16037 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
16038
16039         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16040         prototype.
16041
16042 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16043
16044         * common.md: New file.
16045         * doc/md.texi: Update description of generic, machine-independent
16046         constraints.
16047         * config/s390/constraints.md (e): Delete.
16048         * Makefile.in (md_file): Include common.md.
16049         * config/m32c/t-m32c (md_file): Likewise.
16050         * genpreds.c (general_mem): New array.
16051         (generic_constraint_letters): Remove constraints now defined by
16052         common.md.
16053         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16054         Allow the first character to be '<' or '>' as well.
16055         * genoutput.c (general_mem): New array.
16056         (indep_constraints): Remove constraints now defined by common.md.
16057         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16058         Remove special handling of 'm'.
16059         * ira-costs.c (record_reg_classes): Remove special handling of
16060         constraints now defined by common.md.
16061         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16062         * ira-lives.c (single_reg_class): Likewise.
16063         (ira_implicitly_set_insn_hard_regs): Likewise.
16064         * lra-constraints.c (reg_class_from_constraints): Likewise.
16065         (process_alt_operands, process_address, curr_insn_transform): Likewise.
16066         * postreload.c (reload_cse_simplify_operands): Likewise.
16067         * reload.c (push_secondary_reload, scratch_reload_class)
16068         (find_reloads, alternative_allows_const_pool_ref): Likewise.
16069         * reload1.c (maybe_fix_stack_asms): Likewise.
16070         * targhooks.c (default_secondary_reload): Likewise.
16071         * stmt.c (parse_output_constraint): Likewise.
16072         * recog.c (preprocess_constraints): Likewise.
16073         (constrain_operands, peep2_find_free_register): Likewise.
16074         (asm_operand_ok): Likewise, but add a comment saying why 'o'
16075         must be handled specially.
16076
16077 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16078
16079         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16080         * genpreds.c (have_const_dbl_constraints): Delete.
16081         (add_constraint): Don't set it.
16082         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16083         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16084         constraints using the lookup_constraint logic.
16085         * ira-lives.c (single_reg_class): Likewise.
16086         * ira.c (ira_setup_alts): Likewise.
16087         * lra-constraints.c (process_alt_operands): Likewise.
16088         * recog.c (asm_operand_ok, constrain_operands): Likewise.
16089         * reload.c (find_reloads): Likewise.
16090
16091 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16092
16093         * genpreds.c (const_int_start, const_int_end): New variables.
16094         (choose_enum_order): Output CONST_INT constraints before memory
16095         constraints.
16096         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16097         Add CT_CONST_INT.
16098         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16099         * ira.c (ira_setup_alts): Likewise.
16100         * lra-constraints.c (process_alt_operands): Likewise.
16101         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16102         * reload.c (find_reloads): Likewise.
16103
16104 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16105
16106         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16107         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
16108         * recog.c (preprocess_constraints): Update accordingly.
16109
16110 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16111
16112         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16113         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16114         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16115         * genpreds.c (print_type_tree): New function.
16116         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16117         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16118         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16119         Write out enum constraint_type and get_constraint_type.
16120         * lra-constraints.c (satisfies_memory_constraint_p): Take a
16121         constraint_num rather than a constraint string.
16122         (satisfies_address_constraint_p): Likewise.
16123         (reg_class_from_constraints): Avoid old constraint macros.
16124         (process_alt_operands, process_address_1): Likewise.
16125         (curr_insn_transform): Likewise.
16126         * ira-costs.c (record_reg_classes): Likewise.
16127         (record_operand_costs): Likewise.
16128         * ira-lives.c (single_reg_class): Likewise.
16129         (ira_implicitly_set_insn_hard_regs): Likewise.
16130         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16131         * postreload.c (reload_cse_simplify_operands): Likewise.
16132         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16133         (constrain_operands, peep2_find_free_register): Likewise.
16134         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16135         (find_reloads, alternative_allows_const_pool_ref): Likewise.
16136         * reload1.c (maybe_fix_stack_asms): Likewise.
16137         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16138         * targhooks.c (default_secondary_reload): Likewise.
16139         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16140         to EXTRA_CONSTRAINT_STR.
16141         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16142
16143 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16144
16145         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16146         (write_constraint_satisfied_p_array): ...this new function.
16147         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16148         an array.
16149         (write_insn_preds_c): Update accordingly.
16150
16151 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16152
16153         * genpreds.c (write_lookup_constraint): Rename to...
16154         (write_lookup_constraint_1): ...this.
16155         (write_lookup_constraint_array): New function.
16156         (write_tm_preds_h): Define lookup_constraint as an inline function
16157         that uses write_lookup_constraint_array where possible.
16158         (write_insn_preds_c): Update for the changes above.
16159
16160 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16161
16162         * doc/md.texi (regclass_for_constraint): Rename to...
16163         (reg_class_for_constraint): ...this.
16164         * genpreds.c (num_constraints, enum_order, register_start)
16165         (register_end, satisfied_start, memory_start, memory_end)
16166         (address_start, address_end): New variables.
16167         (add_constraint): Count the number of constraints.
16168         (choose_enum_order): New function.
16169         (write_enum_constraint_num): Iterate over enum_order.
16170         (write_regclass_for_constraint): Rename to...
16171         (write_reg_class_for_constraint_1): ...this and update output
16172         accordingly.
16173         (write_constraint_satisfied_p): Rename to...
16174         (write_constraint_satisfied_p_1): ...this and update output
16175         accordingly.  Do nothing if all extra constraints are register
16176         constraints.
16177         (write_insn_extra_memory_constraint): Delete.
16178         (write_insn_extra_address_constraint): Delete.
16179         (write_range_function): New function.
16180         (write_tm_preds_h): Define constraint_satisfied_p and
16181         reg_class_for_constraint as inline functions that do a range check
16182         before calling the out-of-line function.  Use write_range_function
16183         to implement insn_extra_{register,memory,address}_constraint,
16184         the first of which is new.
16185         (write_insn_preds_c): Update after above changes to write_* functions.
16186         (main): Call choose_enum_order.
16187
16188 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16189
16190         PR tree-optimization/61306
16191         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16192         expression instead of its size.
16193         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16194         false to prevent optimization when the result is unpredictable due to
16195         arithmetic right shift of signed type with highest byte is set.
16196         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16197         (init_symbolic_number): Likewise.
16198         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16199         when the result is unpredictable due to sign extension.
16200
16201 2014-06-11  Terry Guo  <terry.guo@arm.com>
16202
16203         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16204         (*thumb1_addsi3): Ditto.
16205         (*thumb_subdi3): Ditto.
16206         (thumb1_subsi3_insn): Ditto.
16207         (*thumb_mulsi3): Ditto.
16208         (*thumb_mulsi3_v6): Ditto.
16209         (*thumb1_andsi3_insn): Ditto.
16210         (thumb1_bicsi3): Ditto.
16211         (*thumb1_iorsi3_insn): Ditto.
16212         (*thumb1_xorsi3_insn): Ditto.
16213         (*thumb1_ashlsi3): Ditto.
16214         (*thumb1_ashrsi3): Ditto.
16215         (*thumb1_lshrsi3): Ditto.
16216         (*thumb1_rotrsi3): Ditto.
16217         (*thumb1_negdi2): Ditto.
16218         (*thumb1_negsi2): Ditto.
16219         (*thumb1_abssi2): Ditto.
16220         (*thumb1_neg_abssi2): Ditto.
16221         (*thumb1_one_cmplsi2): Ditto.
16222         (*thumb1_zero_extendhisi2): Ditto.
16223         (*thumb1_zero_extendqisi2): Ditto.
16224         (*thumb1_zero_extendqisi2_v6): Ditto.
16225         (thumb1_extendhisi2): Ditto.
16226         (thumb1_extendqisi2): Ditto.
16227         (*thumb1_movdi_insn): Ditto.
16228         (*thumb1_movsi_insn): Ditto.
16229         (*thumb1_movhi_insn): Ditto.
16230         (thumb_movhi_clobber): Ditto.
16231         (*thumb1_movqi_insn): Ditto.
16232         (*thumb1_movhf): Ditto.
16233         (*thumb1_movsf_insn): Ditto.
16234         (*thumb_movdf_insn): Ditto.
16235         (movmem12b): Ditto.
16236         (movmem8b): Ditto.
16237         (cbranchqi4): Ditto.
16238         (cbranchsi4_insn): Ditto.
16239         (cbranchsi4_scratch): Ditto.
16240         (*negated_cbranchsi4): Ditto.
16241         (*tbit_cbranch): Ditto.
16242         (*tlobits_cbranch): Ditto.
16243         (*tstsi3_cbranch): Ditto.
16244         (*cbranchne_decr1): Ditto.
16245         (*addsi3_cbranch): Ditto.
16246         (*addsi3_cbranch_scratch): Ditto.
16247         (*thumb_cmpdi_zero): Ditto.
16248         (cstoresi_eq0_thumb1): Ditto.
16249         (cstoresi_ne0_thumb1): Ditto.
16250         (*cstoresi_eq0_thumb1_insn): Ditto.
16251         (*cstoresi_ne0_thumb1_insn): Ditto.
16252         (cstoresi_nltu_thumb1): Ditto.
16253         (cstoresi_ltu_thumb1): Ditto.
16254         (thumb1_addsi3_addgeu): Ditto.
16255         (*thumb_jump): Ditto.
16256         (*call_reg_thumb1_v5): Ditto.
16257         (*call_reg_thumb1): Ditto.
16258         (*call_value_reg_thumb1_v5): Ditto.
16259         (*call_value_reg_thumb1): Ditto.
16260         (*call_insn): Ditto.
16261         (*call_value_insn): Ditto.
16262         (thumb1_casesi_internal_pic): Ditto.
16263         (thumb1_casesi_dispatch): Ditto.
16264         (*thumb1_indirect_jump): Ditto.
16265         (prologue_thumb1_interwork): Ditto.
16266         (*epilogue_insns): Ditto.
16267         (consttable_1): Ditto.
16268         (consttable_2): Ditto.
16269         (tablejump): Ditto.
16270         (*thumb1_tablejump): Ditto.
16271         (thumb_eh_return): Ditto.
16272         (define_peephole2): Two of them are thumb1 only and got moved into
16273         new file thumb1.md.
16274         (define_split): Six of them are thumb1 only and got moved into new
16275         file thumb1.md.
16276         * config/arm/thumb1.md: New file comprised of above thumb1 only
16277         patterns.
16278
16279 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16280
16281         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16282         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16283         dependencies.
16284         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16285         (aarch64_crc_builtin_datum): New struct.
16286         (aarch64_crc_builtin_data): New.
16287         (aarch64_init_crc32_builtins): New function.
16288         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16289         (aarch64_crc32_expand_builtin): New.
16290         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16291         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16292         __ARM_FEATURE_CRC32 when appropriate.
16293         (TARGET_CRC32): Define.
16294         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16295         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16296         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16297         (aarch64_<crc_variant>): New pattern.
16298         * config/aarch64/arm_acle.h: New file.
16299         * config/aarch64/iterators.md (CRC): New int iterator.
16300         (crc_variant, crc_mode): New int attributes.
16301         * doc/aarch64-acle-intrinsics.texi: New file.
16302         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16303         Include aarch64-acle-intrinsics.texi.
16304
16305 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
16306
16307         * tree-vect-data-refs.c (vect_grouped_store_supported): New
16308         check for stores group of length 3.
16309         (vect_permute_store_chain): New permutations for stores group of
16310         length 3.
16311         * tree-vect-stmts.c (vect_model_store_cost): Change cost
16312         of vec_perm_shuffle for the new permutations.
16313
16314 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
16315
16316         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16317         table rewriting temporarily on targets not supporting ONE_ONLY.
16318
16319 2014-06-11  Richard Biener  <rguenther@suse.de>
16320
16321         PR middle-end/61437
16322         Revert
16323         2014-06-04  Richard Biener  <rguenther@suse.de>
16324
16325         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16326         TREE_PUBLIC and DECL_EXTERNAL decls.
16327
16328 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
16329
16330         * varasm.c (set_implicit_section): New function.
16331         (resolve_unique_section): Use it to set implicit section
16332         for aliases, too.
16333         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16334         (default_function_section): Likewise.
16335         (decl_binds_to_current_def_p): Constify argument.
16336         * varasm.h (decl_binds_to_current_def_p): Update prototype.
16337         * asan.c (asan_protect_global): Use
16338         symtab_get_node (decl)->implicit_section.
16339         * symtab.c (dump_symtab_base): Dump implicit sections.
16340         (verify_symtab_base): Verify sanity of sectoins and comdats.
16341         (symtab_resolve_alias): Alias share the section of its target.
16342         (set_section_1): New function.
16343         (symtab_node::set_section): Move here, recurse to aliases.
16344         (verify_symtab): Check for duplicated symtab lists.
16345         * tree-core.h (implicit_section_name_p): Remove.
16346         * tree-vect-data-refs.c: Include varasm.h.
16347         (vect_can_force_dr_alignment_p): Fix conditional on when
16348         decl bints to current definition; use
16349         symtab_get_node (decl)->implicit_section.
16350         * cgraph.c (cgraph_make_node_local_1): Fix section set.
16351         * cgraph.h (struct symtab_node): Add implicit_section.
16352         (set_section): Rename to ...
16353         (set_section_for_node): ... this one.
16354         (set_section): Declare.
16355         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16356         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16357         input_overwrite_node, input_varpool_node): Stream implicit_section.
16358         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16359         removal; it will fail in LTO.
16360
16361 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16362
16363         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16364         Change second alternative type to f_mcr.
16365         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16366         and 12th alternatives' types to f_mcr and f_mrc.
16367         (*movdi_aarch64): Same for 12th and 13th alternatives.
16368         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16369         (aarch64_movtilow_tilow): Change type to fmov.
16370
16371 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
16372
16373         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16374         (aarch64_save_or_restore_callee_save_registers): Fix layout.
16375
16376 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16377
16378         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16379         New expander.
16380         (aarch64_sqrdmulh_lane<mode>): Likewise.
16381         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16382         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16383         (aarch64_sqdmulh_laneq<mode>): New expander.
16384         (aarch64_sqrdmulh_laneq<mode>): Likewise.
16385         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16386         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16387         (aarch64_sqdmulh_lane<mode>): New expander.
16388         (aarch64_sqrdmulh_lane<mode>): Likewise.
16389         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16390         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16391         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16392         (aarch64_sqdmlal_laneq<mode>): Likewise.
16393         (aarch64_sqdmlsl_lane<mode>): Likewise.
16394         (aarch64_sqdmlsl_laneq<mode>): Likewise.
16395         (aarch64_sqdmlal2_lane<mode>): Likewise.
16396         (aarch64_sqdmlal2_laneq<mode>): Likewise.
16397         (aarch64_sqdmlsl2_lane<mode>): Likewise.
16398         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16399         (aarch64_sqdmull_lane<mode>): Likewise.
16400         (aarch64_sqdmull_laneq<mode>): Likewise.
16401         (aarch64_sqdmull2_lane<mode>): Likewise.
16402         (aarch64_sqdmull2_laneq<mode>): Likewise.
16403
16404 2014-06-10  Richard Biener  <rguenther@suse.de>
16405
16406         PR tree-optimization/61438
16407         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16408         (eliminate_dom_walker::before_dom_children): Only try to inhibit
16409         insertion of IVs if running PRE.
16410         (eliminate): Adjust.
16411         (pass_pre::execute): Likewise.
16412         (pass_fre::execute): Likewise.
16413
16414 2014-06-10  Richard Biener  <rguenther@suse.de>
16415
16416         PR middle-end/61456
16417         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16418         Do not use the main variant for the type comparison.
16419         (ncr_compar): Likewise.
16420         (nonoverlapping_component_refs_p): Likewise.
16421
16422 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16423
16424         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16425         REG_CFA_RESTORE mode.
16426
16427 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
16428
16429         * config/i386/i386.c (expand_vec_perm_pblendv): New.
16430         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16431         expand_vec_perm_pblendv.
16432
16433 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16434
16435         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16436         available.
16437         Simplify description of __crc32d and __crc32cd intrinsics.
16438         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16439         availability.
16440
16441 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16442
16443         PR lto/61334
16444         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16445         * config.in: Regenerate.
16446         * configure: Likewise.
16447
16448 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
16449
16450         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16451         and public vars.
16452         (intersect_static_var_sets): Remove.
16453         (propagate): Do not prune local statics.
16454
16455 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16456
16457         PR fortran/60928
16458         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16459         Set lastprivate_firstprivate even if omp_private_outer_ref
16460         langhook returns true.
16461         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16462         langhook, call unshare_expr on new_var and call
16463         build_outer_var_ref to get the last argument.
16464
16465 2014-06-10  Marek Polacek  <polacek@redhat.com>
16466
16467         PR c/60988
16468         * doc/extend.texi: Add cindex for transparent_union.
16469
16470 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16471
16472         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16473         init_symbolic_number ().
16474
16475 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
16476
16477         PR middle-end/61141
16478         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16479         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16480         (verify_rtl_sharing): Likewise.
16481
16482 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
16483
16484         PR c++/54442
16485         * tree.c (build_qualified_type): Use a canonical type for
16486         TYPE_CANONICAL.
16487
16488 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16489
16490         * config/arm/arm-modes.def: Remove XFmode.
16491
16492 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
16493
16494         PR target/61062
16495         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16496         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16497         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16498         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16499         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16500         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16501         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16502         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16503         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16504
16505 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
16506
16507         * tree-core.h (tree_decl_with_vis): Remove section_name.
16508
16509 2014-06-09  Kito Cheng  <kito@0xlab.org>
16510
16511         * ira.c (ira): Don't call init_caller_save if LRA enabled
16512         since LRA use its own infrastructure to handle that.
16513
16514 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16515
16516         * symtab.c (dump_symtab_base): Update dumping.
16517         (symtab_make_decl_local): Clear only DECL_COMDAT.
16518         * tree-vect-data-refs.c (Check that variable is static before
16519         tampering with sections.
16520         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16521         (cgraph_create_virtual_clone): Likewise.
16522         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16523         (decl_section_name, set_decl_section_name): New accessors.
16524         (find_decls_types_r): Do not walk section name
16525         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16526         (decl_comdat_group, decl_comdat_group_id): Constify.
16527         (decl_section_name, set_decl_section_name): Update.
16528         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16529         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16530         (cgraph_make_node_local_1): Clear section and comdat group.
16531         * cgraph.h (set_comdat_group): Sanity check.
16532         (get_section, set_section): New.
16533         * ipa-comdats.c (ipa_comdats): Use get_section.
16534         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16535         * lto-streamer-out.c: Do not follow section names.
16536         * c-family/c-common.c (handle_section_attribute): Update.
16537         * lto-cgraph.c (lto_output_node): Output section.
16538         (lto_output_varpool_node): Likewise.
16539         (read_comdat_group): Rename to ...
16540         (read_identifier): ... this one.
16541         (read_string_cst): New function.
16542         (input_node, input_varpool_node): Input section names.
16543         * tree-emutls.c (get_emutls_init_templ_addr): Update.
16544         (new_emutls_decl): Update.
16545         (secname_for_decl): Check section names only of static vars.
16546         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16547         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16548         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16549         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16550         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16551         * config/mcore/mcore.c (mcore_unique_section): Likewise.
16552         * config/mips/mips.c (mips16_build_function_stub): Likewise.
16553         * config/v850/v850.c (v850_insert_attributes): Likewise.
16554         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16555         Likewise.
16556         (h8300_handle_tiny_data_attribute): Likewise.
16557         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16558         (bfin_handle_l2_attribute): Likewise.
16559
16560 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16561
16562         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16563         remove static initializer.
16564
16565 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16566
16567         * varasm.c (use_blocks_for_decl_p): Check symbol table
16568         instead of alias attribute.
16569         (place_block_symbol): Recurse on aliases.
16570
16571 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16572
16573         * ipa-visibility.c: Include varasm.h
16574         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16575
16576 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16577
16578         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16579         outputting aliases.
16580
16581 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
16582
16583         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16584         from test_insn into GGC space escape via SET_SRC.
16585
16586 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
16587
16588         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16589         call statement, if any.
16590         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16591         statements, if any.  Tidy up.
16592
16593 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16594
16595         PR target/61431
16596         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16597         iterators, VSX_D that handles 64-bit types, and VSX_LE that
16598         handles swapping the two 64-bit double words on little endian
16599         systems.  Include V1TImode and optionally TImode in VSX_LE so that
16600         these types are properly swapped.  Change all of the insns and
16601         splits that do the 64-bit swaps to use VSX_LE.
16602         (vsx_le_perm_load_<mode>): Likewise.
16603         (vsx_le_perm_store_<mode>): Likewise.
16604         (splitters for little endian memory operations): Likewise.
16605         (vsx_xxpermdi2_le_<mode>): Likewise.
16606         (vsx_lxvd2x2_le_<mode>): Likewise.
16607         (vsx_stxvd2x2_le_<mode>): Likewise.
16608
16609 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
16610
16611         PR target/61423
16612         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16613         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16614         and corresponding splitters.  Zero extend general register
16615         or memory input operand to XMM temporary.  Enable for
16616         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16617         (floatunssi<mode>2): Update expander predicate.
16618
16619 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
16620
16621         PR rtl-optimization/61325
16622         * lra-constraints.c (process_address_1): Check scale equal to one
16623         to prevent transformation: base + scale * index => base + new_reg.
16624
16625 2014-06-06  Richard Biener  <rguenther@suse.de>
16626
16627         PR tree-optimization/59299
16628         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16629         a def operand.
16630         (nearest_common_dominator_of_uses): Likewise.
16631         (statement_sink_location): Adjust.  Support sinking loads.
16632
16633 2014-06-06  Martin Jambor  <mjambor@suse.cz>
16634
16635         * ipa-prop.c (get_place_in_agg_contents_list): New function.
16636         (build_agg_jump_func_from_list): Likewise.
16637         (determine_known_aggregate_parts): Renamed to
16638         determine_locally_known_aggregate_parts.  Moved some functionality
16639         to the two functions above, removed bound checks.
16640
16641 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
16642
16643         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16644         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16645         (aarch64_progress_pointer): Likewise.
16646         (aarch64_copy_one_part_and_move_pointers): Likewise.
16647         (aarch64_expand_movmen): Likewise.
16648         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16649         * config/aarch64/aarch64.md (movmem<mode>): New.
16650
16651 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
16652
16653         * targhooks.c (default_add_stmt_cost): Call target specific
16654         hook instead of default one.
16655
16656 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16657
16658         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16659         endianness instead of host endianness.
16660         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16661         comments.
16662
16663 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16664
16665         PR debug/53927
16666         * function.c (instantiate_decls): Process the saved static chain.
16667         (expand_function_start): If not optimizing, save the static chain
16668         onto the stack.
16669         * tree-nested.c (convert_all_function_calls): Always create the static
16670         chain for nested functions if not optimizing.
16671
16672 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16673
16674         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16675
16676 2014-06-06  Richard Biener  <rguenther@suse.de>
16677
16678         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16679         (construct_init_block): Likewise.
16680         (construct_exit_block): Likewise.
16681         (pass_expand::execute): Likewise.
16682         * graphite.c (graphite_transforms): Replace check for current_loops
16683         with a check for > 1 loops.
16684         (pass_graphite_transforms::execute): Adjust.
16685         * ipa-split.c (split_function): Remove check for current_loops.
16686         * omp-low.c (expand_parallel_call): Likewise.
16687         (expand_omp_for_init_counts): Likewise.
16688         (extract_omp_for_update_vars): Likewise.
16689         (expand_omp_for_generic): Likewise.
16690         (expand_omp_sections): Likewise.
16691         (expand_omp_target): Likewise.
16692         * tracer.c (tail_duplicate): Likewise.
16693         (pass_tracer::execute): Likewise.
16694         * trans-mem.c (expand_transaction): Likewise.
16695         * tree-complex.c (expand_complex_div_wide): Likewise.
16696         * tree-eh.c (lower_resx): Likewise.
16697         (cleanup_empty_eh_merge_phis): Likewise.
16698         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16699         current_loops with a check for > 1 loops.
16700         (pass_predcom::execute): Adjust.
16701         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16702         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16703         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16704         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16705         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16706         * tree-switch-conversion.c (process_switch): Likewise.
16707         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16708         * tree-vrp.c (vrp_visit_phi_node): Likewise.
16709         (execute_vrp): Likewise.
16710         * ubsan.c (ubsan_expand_null_ifn): Likewise.
16711
16712 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16713
16714         * rtl.h (insn_location): Declare.
16715         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16716         with UNKNOWN_LOCATION.
16717         * emit-rtl.c (insn_location): New function.
16718         * final.c (notice_source_line): Check that the instruction has a
16719         location before retrieving it and use insn_location.
16720         * modulo-sched.c (loop_single_full_bb_p): Likewise.
16721         * print-rtl.c (print_rtx): Likewise.
16722
16723 2014-06-06  Richard Biener  <rguenther@suse.de>
16724
16725         * passes.def: Move 2nd VRP pass before phi-only-cprop.
16726
16727 2014-06-06  Christian Bruel  <christian.bruel@st.com>
16728
16729         PR tree-optimization/43934
16730         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16731         cost.
16732
16733 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
16734
16735         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
16736         return NO_REGS for extra address and memory constraints.  Handle
16737         operands that match (or are equivalent to something that matches)
16738         extra constant constraints.  Ignore other non-register operands.
16739
16740 2014-06-06  Alan Modra  <amodra@gmail.com>
16741
16742         PR target/61300
16743         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16744         * doc/tm.texi: Regenerate.
16745         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16746         Use throughout in place of REG_PARM_STACK_SPACE.
16747         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16748         "incoming" param.  Pass to rs6000_function_parms_need_stack.
16749         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16750         prototype_p when incoming.  Use function decl when incoming
16751         to handle K&R style functions.
16752         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16753         (INCOMING_REG_PARM_STACK_SPACE): Define.
16754
16755 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16756
16757         PR target/52472
16758         * cfgexpand.c (expand_debug_expr): Use address space of nested
16759         TREE_TYPE for ADDR_EXPR and MEM_REF.
16760
16761 2014-06-05  Jeff Law  <law@redhat.com>
16762
16763         PR tree-optimization/61289
16764         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16765         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
16766         looking for those which match LHS.  All callers changed.
16767         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16768         parameters and code which manipulated them.  All callers changed.
16769         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16770         and DST_MAP parameters.  Simplify invalidation code by just calling
16771         invalidate_equivalences.  All callers changed.
16772         (thread_across_edge): Simplify now that we don't need to maintain
16773         the map of equivalences to invalidate.
16774
16775 2014-06-05  Kai Tietz  <ktietz@redhat.com>
16776             Richard Henderson  <rth@redhat.com>
16777
16778         PR target/46219
16779         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16780         checking for !TARGET_X32.
16781         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16782         (sibcall_intern): New define_insn, plus required peepholes.
16783         (sibcall_pop_intern): Likewise.
16784         (sibcall_value_intern): Likewise.
16785         (sibcall_value_pop_intern): Likewise.
16786
16787 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
16788
16789         * tree-inline.c (tree_function_versioning): Check DF info existence
16790         before accessing it.
16791
16792 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16793
16794         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16795         frame_size.
16796         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16797         aarch64_frame hard_fp_offset and frame_size.
16798         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16799         frame_size; remove original_frame_size.
16800         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16801         (aarch64_initial_elimination_offset): Remove frame_size and
16802         offset.  Use aarch64_frame frame_size.
16803
16804 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16805             Jiong Wang  <jiong.wang@arm.com>
16806             Renlin  <renlin.li@arm.com>
16807
16808         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16809         initialization of R30 offset.  Update offset.  Iterate core
16810         regisers upto X30.  Remove X29, X30 specific code.
16811
16812 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16813             Jiong Wang  <jiong.wang@arm.com>
16814
16815         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16816         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16817         (aarch64_register_saved_on_entry): Adjust test.
16818
16819 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16820
16821         * config/aarch64/aarch64.h (machine_function): Move
16822         saved_varargs_size from here...
16823         (aarch64_frame): ... to here.
16824
16825         * config/aarch64/aarch64.c (aarch64_expand_prologue)
16826         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16827         (aarch64_initial_elimination_offset)
16828         (aarch64_setup_incoming_varargs): Adjust location of
16829         saved_varargs_size.
16830
16831 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16832
16833         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16834         layout comment.
16835
16836 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
16837             Prachi Godbole  <Prachi.Godbole@imgtec.com>
16838
16839         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
16840         mips32r5 entry to use PROCESSOR_P5600.
16841         * config/mips/mips-tables.opt: Regenerate.
16842         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16843         * config/mips/mips.c (mips_fmadd_bypass): New function.
16844         (mips_rtx_cost_data): Add costs for p5600.
16845         (mips_issue_rate): Add support for p5600.
16846         (mips_multipass_dfa_lookahead): Likewise.
16847         * config/mips/mips.h (TUNE_P5600): New define.
16848         (TUNE_MACC_CHAINS): Add TUNE_P5600.
16849         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16850         * config/mips/mips.md: Include p5600.md.
16851         (processor): Add p5600.
16852         * config/mips/p5600.md: New file.
16853
16854 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
16855
16856         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16857         * config/i386/predicates.md (palignr_operand): New.
16858         Indicates if permutation is suitable for palignr instruction.
16859
16860 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
16861
16862         PR tree-optimization/61319
16863         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16864         stmt belongs to loop.
16865
16866 2014-06-05  Richard Biener  <rguenther@suse.de>
16867
16868         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16869         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16870         (lookup_tmp_var): Adjust.
16871         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16872
16873 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16874
16875         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16876
16877 2014-06-05  Marek Polacek  <polacek@redhat.com>
16878
16879         PR c/49706
16880         * doc/invoke.texi: Document -Wlogical-not-parentheses.
16881
16882 2014-06-04  Tom de Vries  <tom@codesourcery.com>
16883
16884         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16885         CONST_INT.
16886
16887 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
16888
16889         PR tree-optimization/61385
16890         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16891
16892 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
16893
16894         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
16895         changed to use fatal_error.
16896         (main): Ensure lto_wrapper_cleanup is run atexit.
16897
16898 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
16899
16900         * lra-constraints.c (valid_address_p): Move earlier in file.
16901         (address_eliminator): New structure.
16902         (satisfies_memory_constraint_p): New function.
16903         (satisfies_address_constraint_p): Likewise.
16904         (process_alt_operands, process_address, curr_insn_transform): Use them.
16905
16906 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
16907
16908         * lra-int.h (lra_static_insn_data): Make operand_alternative a
16909         const pointer.
16910         (target_lra_int, default_target_lra_int, this_target_lra_int)
16911         (op_alt_data): Delete.
16912         * lra.h (lra_init): Delete.
16913         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16914         (init_insn_code_data_once): Remove op_alt_data handling.
16915         (finish_insn_code_data_once): Likewise.
16916         (init_op_alt_data): Delete.
16917         (get_static_insn_data): Initialize operand_alternative to null.
16918         (free_insn_recog_data): Cast operand_alternative before freeing it.
16919         (setup_operand_alternative): Take the operand_alternative as
16920         parameter and assume it isn't already cached in the static
16921         insn data.
16922         (lra_set_insn_recog_data): Update accordingly.
16923         (lra_init): Delete.
16924         * ira.c (ira_init): Don't call lra_init.
16925         * target-globals.h (this_target_lra_int): Declare.
16926         (target_globals): Remove lra_int.
16927         (restore_target_globals): Update accordingly.
16928         * target-globals.c: Don't include lra-int.h.
16929         (default_target_globals, save_target_globals): Remove lra_int.
16930
16931 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
16932
16933         * recog.h (operand_alternative): Convert reg_class, reject,
16934         matched and matches into bitfields.
16935         (preprocess_constraints): New overload.
16936         (preprocess_insn_constraints): New function.
16937         (preprocess_constraints): Take the insn as parameter.
16938         (recog_op_alt): Change into a pointer.
16939         (target_recog): Add x_op_alt.
16940         * recog.c (asm_op_alt): New variable.
16941         (recog_op_alt): Change into a pointer.
16942         (preprocess_constraints): New overload, replacing the old function
16943         definition with one that doesn't use global state.
16944         (preprocess_insn_constraints): New function.
16945         (preprocess_constraints): Use them.  Take the insn as parameter.
16946         Use asm_op_alt for asms.
16947         (recog_init): Free existing x_op_alt entries.
16948         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16949         pointer const.
16950         (make_early_clobber_and_input_conflicts): Likewise.
16951         (process_bb_node_lives): Pass the insn to process_constraints.
16952         * reg-stack.c (check_asm_stack_operands): Likewise.
16953         (subst_asm_stack_regs): Likewise.
16954         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16955         * regrename.c (build_def_use): Likewise.
16956         * sched-deps.c (sched_analyze_insn): Likewise.
16957         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16958         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16959         (note_invalid_constants): Likewise.
16960         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16961         (ix86_legitimate_combined_insn): Make operand_alternative pointer
16962         const.
16963
16964 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
16965
16966         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16967         * ira-lives.c (check_and_make_def_conflict): Check for disabled
16968         alternatives.
16969         (make_early_clobber_and_input_conflicts): Likewise.
16970         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16971
16972 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
16973
16974         * recog.h (alternative_class): New function.
16975         (which_op_alt): Return a const recog_op_alt.
16976         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16977         (subst_asm_stack_regs): Likewise.
16978         * config/arm/arm.c (note_invalid_constants): Likewise.
16979         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
16980         the operand_alternative; use alternative class instead.
16981         * sel-sched.c (get_reg_class): Likewise.
16982         * regrename.c (build_def_use): Likewise.
16983         (hide_operands, restore_operands, record_out_operands): Update type
16984         accordingly.
16985
16986 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
16987
16988         * recog.h (recog_op_alt): Convert to a flat array.
16989         (which_op_alt): New function.
16990         * recog.c (recog_op_alt): Convert to a flat array.
16991         (preprocess_constraints): Update accordingly, grouping all
16992         operands of the same alternative together, rather than the
16993         other way around.
16994         * ira-lives.c (check_and_make_def_conflict): Likewise.
16995         (make_early_clobber_and_input_conflicts): Likewise.
16996         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16997         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16998         (subst_asm_stack_regs): Likewise.
16999         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17000         * regrename.c (hide_operands, record_out_operands): Likewise.
17001         (build_def_use): Likewise.
17002         * sel-sched.c (get_reg_class): Likewise.
17003         * config/arm/arm.c (note_invalid_constants): Likewise.
17004
17005 2014-06-04  Jason Merrill  <jason@redhat.com>
17006
17007         PR c++/51253
17008         PR c++/61382
17009         * gimplify.c (gimplify_arg): Non-static.
17010         * gimplify.h: Declare it.
17011
17012 2014-06-04  Richard Biener  <rguenther@suse.de>
17013
17014         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17015         TREE_PUBLIC and DECL_EXTERNAL decls.
17016
17017 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
17018
17019         * regcprop.c (copyprop_hardreg_forward_1): Account for
17020         HARD_REGNO_CALL_PART_CLOBBERED.
17021
17022 2014-06-04  Richard Biener  <rguenther@suse.de>
17023
17024         * configure.ac: Check whether the underlying type of int64_t
17025         is long or long long.
17026         * configure: Regenerate.
17027         * config.in: Likewise.
17028         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17029         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17030
17031 2014-06-04  Richard Biener  <rguenther@suse.de>
17032
17033         PR tree-optimization/60098
17034         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17035         we hit a kill.
17036         (dse_optimize_stmt): Simplify, now that we found a kill
17037         earlier.
17038
17039 2014-06-04  Richard Biener  <rguenther@suse.de>
17040
17041         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17042         of accesses with non-invariant address.
17043
17044 2014-06-04  Martin Liska  <mliska@suse.cz>
17045
17046         * cgraph.h (cgraph_make_wrapper): New function introduced.
17047         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17048         * ipa-inline.h (inline_analyze_function): The function is global.
17049         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17050
17051 2014-06-04  Martin Liska  <mliska@suse.cz>
17052
17053         * tree.h (private_lookup_attribute_starting): New function.
17054         (lookup_attribute_starting): Likewise.
17055         * tree.c (private_lookup_attribute_starting): Likewise.
17056
17057 2014-06-04  Martin Liska  <mliska@suse.cz>
17058
17059         * cgraph.h (expand_thunk): New argument added.
17060         (address_taken_from_non_vtable_p): New global function.
17061         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17062         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17063         * cgraphunit.c (analyze_function): Likewise.
17064         (assemble_thunks_and_aliases): Argument added to call.
17065         (expand_thunk): New argument forces to produce GIMPLE thunk.
17066
17067 2014-06-04  Martin Liska  <mliska@suse.cz>
17068
17069         * coverage.h (coverage_compute_cfg_checksum): Argument added.
17070         * coverage.c (coverage_compute_cfg_checksum): Likewise.
17071         * profile.c (branch_prob): Likewise.
17072
17073 2014-06-04  Martin Jambor  <mjambor@suse.cz>
17074
17075         PR ipa/61340
17076         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17077         handler for switch on an ipa_ref_use enum.
17078         * ipa-reference.c (analyze_function): Likewise.
17079
17080 2014-06-04  Kai Tietz  <ktietz@redhat.com>
17081
17082         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17083         from old call-instruction.
17084
17085 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
17086
17087         * config/aarch64/aarch64.c (aarch64_classify_address)
17088         (aarch64_legitimize_reload_address): Support full addressing modes
17089         for vector modes.
17090         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17091         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17092
17093 2014-06-03  Andrew Pinski  <apinski@cavium.com>
17094
17095         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17096         for OP0.
17097
17098 2014-06-03  Andrew Pinski  <apinski@cavium.com>
17099
17100         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17101         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17102
17103 2014-06-03  Kai Tietz  <ktietz@redhat.com>
17104
17105         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17106         for 64-bit ms-abi.
17107
17108 2014-06-03  Dehao Chen  <dehao@google.com>
17109
17110         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17111         the same loop.
17112
17113 2014-06-03  Marek Polacek  <polacek@redhat.com>
17114
17115         PR c/60439
17116         * doc/invoke.texi: Document -Wswitch-bool.
17117         * function.c (stack_protect_epilogue): Cast controlling expression of
17118         the switch to int.
17119         * gengtype.c (walk_type): Generate switch expression with its
17120         controlling expression cast to int.
17121
17122 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
17123
17124         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17125         and attiny841.
17126         * config/avr/avr-tables.opt: Regenerate.
17127         * config/avr/t-multilib: Regenerate.
17128         * doc/avr-mmcu.texi: Regenerate.
17129
17130 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
17131             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
17132
17133         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17134         (ata6617c, ata664251): Add new avr35 devices.
17135         (ata6612c): Add new avr4 device.
17136         (ata6613c, ata6614q): Add new avr5 devices.
17137         * config/avr/avr-tables.opt: Regenerate.
17138         * config/avr/t-multilib: Regenerate.
17139         * doc/avr-mmcu.texi: Regenerate.
17140
17141 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17142
17143         * gcc/config/aarch64/aarch64-builtins.c
17144         (aarch64_types_binop_ssu_qualifiers): New static data.
17145         (TYPES_BINOP_SSU): Define.
17146         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17147         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17148         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17149         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17150         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17151         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17152         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17153         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17154         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17155         suffix to builtin function name, remove cast.
17156         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17157         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17158         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17159
17160 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17161
17162         * gcc/config/aarch64/aarch64-builtins.c
17163         (aarch64_types_binop_uus_qualifiers,
17164         aarch64_types_shift_to_unsigned_qualifiers,
17165         aarch64_types_unsigned_shiftacc_qualifiers): Define.
17166         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17167         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17168         sqshlu_n, uqshl_n): Update qualifiers.
17169         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17170         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17171         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17172         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17173         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17174         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17175         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17176         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17177         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17178         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17179         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17180         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17181         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17182         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17183         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17184         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17185         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17186         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17187         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17188         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17189         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17190         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17191         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17192         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17193         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17194         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17195         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17196
17197 2014-06-03  Teresa Johnson  <tejohnson@google.com>
17198
17199         * tree-sra.c (modify_function): Record caller nodes after rebuild.
17200
17201 2014-06-02  Jason Merrill  <jason@redhat.com>
17202
17203         PR c++/61020
17204         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17205
17206 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17207
17208         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17209         location == 0.
17210
17211 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17212
17213         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17214         New pattern.
17215         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17216         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17217         * config/aarch64/iterators.md (REVERSE): New iterator.
17218         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17219         (rev_op): New int_attribute.
17220         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17221         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17222         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17223         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17224         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17225         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17226         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17227         Replace temporary __asm__ with __builtin_shuffle.
17228
17229 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
17230
17231         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17232         mips64r5.
17233         * config/mips/mips-tables.opt: Regenerate.
17234         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17235         to use mips_isa_rev rather than ISA_MIPS32R2.
17236         * config/mips/mips.h (ISA_MIPS32R3): New define.
17237         (ISA_MIPS32R5): New define.
17238         (ISA_MIPS64R3): New define.
17239         (ISA_MIPS64R5): New define.
17240         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17241         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17242         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17243         and mips64r5.
17244         (MIPS_ISA_SYNCI_SPEC): Likewise.
17245         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17246         (LINK_SPEC): Added mips32r3 and mips32r5.
17247         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17248         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17249         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17250         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17251         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17252         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17253         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17254
17255 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
17256
17257         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17258         options.
17259         * config/mips/mips.opt (mxpa): New option.
17260         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17261         assembler.
17262
17263 2014-06-03  Martin Jambor  <mjambor@suse.cz>
17264
17265         PR ipa/61160
17266         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17267         thunks.
17268
17269 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17270
17271         PR tree-optimization/61328
17272         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17273         initialization from find_bswap_or_nop_1.
17274         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17275         in source_expr2 before using the size value the function sets. Also
17276         make use of init_symbolic_number () in both the old place and
17277         find_bswap_or_nop_load () to avoid reading uninitialized memory when
17278         doing recursion in the GIMPLE_BINARY_RHS case.
17279
17280 2014-06-03  Richard Biener  <rguenther@suse.de>
17281
17282         PR tree-optimization/61383
17283         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17284         stmts can't trap.
17285
17286 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
17287
17288         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17289         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17290         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17291         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17292         in this file.
17293         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17294         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17295         * system.h: ...here and make it unconditional.
17296         * target.def (conditional_register_usage): Mention
17297         define_register_constraint instead of old-style constraint macros.
17298         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17299         * doc/tm.texi: Regenerate.
17300         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17301         protected by !USE_MD_CONSTRAINTS.
17302         * config/frv/frv.md: Remove quote from old version of documentation.
17303         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17304         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17305         CONST_DOUBLE_OK_FOR_LETTER.
17306         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17307
17308 2014-06-02  Andrew Pinski  <apinski@cavium.com>
17309
17310         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17311         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17312         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17313         file whose name depends on -mabi= and -mbig-endian.
17314         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17315         Handle LP64 better and handle ilp32 too.
17316         (MULTILIB_OPTIONS): Delete.
17317         (MULTILIB_DIRNAMES): Delete.
17318
17319 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
17320
17321         * expr.h: Remove prototypes of functions defined in builtins.c.
17322         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17323         Remove prototypes of functions defined in builtins.c.
17324         * builtins.h: Update prototype list to include all exported functions.
17325         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17326         no_c99_libc_has_function): Move to targhooks.c
17327         (build_string_literal, build_call_expr_loc_array,
17328         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17329         to tree.c.
17330         (expand_builtin_object_size, fold_builtin_object_size): Make static.
17331         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17332         no_c99_libc_has_function): Relocate from builtins.c.
17333         * tree.c: Include builtins.h.
17334         (build_call_expr_loc_array, build_call_expr_loc_vec,
17335         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17336         from builtins.c.
17337         * fold-const.h (fold_fma): Move prototype to builtins.h.
17338         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17339         * asan.c: Include builtins.h.
17340         * cfgexpand.c: Likewise.
17341         * convert.c: Likewise.
17342         * emit-rtl.c: Likewise.
17343         * except.c: Likewise.
17344         * expr.c: Likewise.
17345         * fold-const.c: Likewise.
17346         * gimple-fold.c: Likewise.
17347         * gimple-ssa-strength-reduction.c: Likewise.
17348         * gimplify.c: Likewise.
17349         * ipa-inline.c: Likewise.
17350         * ipa-prop.c: Likewise.
17351         * lto-streamer-out.c: Likewise.
17352         * stmt.c: Likewise.
17353         * tree-inline.c: Likewise.
17354         * tree-object-size.c: Likewise.
17355         * tree-sra.c: Likewise.
17356         * tree-ssa-ccp.c: Likewise.
17357         * tree-ssa-forwprop.c: Likewise.
17358         * tree-ssa-loop-ivcanon.c: Likewise.
17359         * tree-ssa-loop-ivopts.c: Likewise.
17360         * tree-ssa-math-opts.c: Likewise.
17361         * tree-ssa-reassoc.c: Likewise.
17362         * tree-ssa-threadedge.c: Likewise.
17363         * tree-streamer-in.c: Likewise.
17364         * tree-vect-data-refs.c: Likewise.
17365         * tree-vect-patterns.c: Likewise.
17366         * tree-vect-stmts.c: Likewise.
17367         * config/aarch64/aarch64.c: Likewise.
17368         * config/alpha/alpha.c: Likewise.
17369         * config/arc/arc.c: Likewise.
17370         * config/arm/arm.c: Likewise.
17371         * config/avr/avr.c: Likewise.
17372         * config/bfin/bfin.c: Likewise.
17373         * config/c6x/c6x.c: Likewise.
17374         * config/cr16/cr16.c: Likewise.
17375         * config/cris/cris.c: Likewise.
17376         * config/epiphany/epiphany.c: Likewise.
17377         * config/fr30/fr30.c: Likewise.
17378         * config/frv/frv.c: Likewise.
17379         * config/h8300/h8300.c: Likewise.
17380         * config/i386/i386.c: Likewise.
17381         * config/i386/winnt.c: Likewise.
17382         * config/ia64/ia64.c: Likewise.
17383         * config/iq2000/iq2000.c: Likewise.
17384         * config/lm32/lm32.c: Likewise.
17385         * config/m32c/m32c.c: Likewise.
17386         * config/m32r/m32r.c: Likewise.
17387         * config/m68k/m68k.c: Likewise.
17388         * config/mcore/mcore.c: Likewise.
17389         * config/mep/mep.c: Likewise.
17390         * config/microblaze/microblaze.c: Likewise.
17391         * config/mips/mips.c: Likewise.
17392         * config/mmix/mmix.c: Likewise.
17393         * config/mn10300/mn10300.c: Likewise.
17394         * config/moxie/moxie.c: Likewise.
17395         * config/msp430/msp430.c: Likewise.
17396         * config/nds32/nds32.c: Likewise.
17397         * config/pa/pa.c: Likewise.
17398         * config/pdp11/pdp11.c: Likewise.
17399         * config/picochip/picochip.c: Likewise.
17400         * config/rl78/rl78.c: Likewise.
17401         * config/rs6000/rs6000.c: Likewise.
17402         * config/rx/rx.c: Likewise.
17403         * config/s390/s390.c: Likewise.
17404         * config/score/score.c: Likewise.
17405         * config/sh/sh.c: Likewise.
17406         * config/sparc/sparc.c: Likewise.
17407         * config/spu/spu.c: Likewise.
17408         * config/stormy16/stormy16.c: Likewise.
17409         * config/tilegx/tilegx.c: Likewise.
17410         * config/tilepro/tilepro.c: Likewise.
17411         * config/v850/v850.c: Likewise.
17412         * config/vax/vax.c: Likewise.
17413         * config/xtensa/xtensa.c: Likewise.
17414
17415 2014-06-02  Jeff Law  <law@redhat.com>
17416
17417         PR rtl-optimization/61094
17418         * ree.c (combine_reaching_defs): Do not reextend an insn if it
17419         was marked as do_no_reextend.  If a copy is needed to eliminate
17420         an extension, then mark it as do_not_reextend.
17421
17422 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17423
17424         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17425
17426 2014-06-02  Richard Henderson  <rth@redhat.com>
17427
17428         PR target/61336
17429         * config/alpha/alpha.c (print_operand_address): Allow symbolic
17430         addresses inside asms.  Use output_operand_lossage instead of
17431         gcc_unreachable.
17432
17433 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
17434
17435         PR target/61239
17436         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17437         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17438
17439 2014-06-02  Tom de Vries  <tom@codesourcery.com>
17440
17441         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17442         case that x has VOIDmode.
17443
17444 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
17445
17446         * varasm.c (copy_constant): Delete function.
17447         (build_constant_desc): Don't call it.
17448
17449 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17450
17451         PR target/61154
17452         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17453         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17454         with immediate_operand.
17455
17456 2014-06-02  Andreas Schwab  <schwab@suse.de>
17457
17458         * config/ia64/ia64.c
17459         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17460         pending_data_specs first.
17461
17462 2014-06-02  Richard Biener  <rguenther@suse.de>
17463
17464         PR tree-optimization/61378
17465         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17466         valueized_anything.
17467
17468 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
17469
17470         * config/i386/constraints.md (Bw): Rename from 'w'.
17471         (Bz): Rename from 'z'.
17472         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17473
17474 2014-06-01  Kai Tietz  <ktietz@redhat.com>
17475
17476         PR target/61377
17477         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17478         * config/i386/i386.md (sibcall_insn_operand): Use Bs
17479         instead of m constraint.
17480
17481 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
17482
17483         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17484         a separate alternative where the scratch operand 2 is marked as
17485         early clobber.
17486
17487 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
17488
17489         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17490         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17491         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17492         and __builtins_arm_get_fpscr.
17493         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17494         __builtins_arm_get_fpscr.
17495         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17496         __builtins_arm_ldfpscr.
17497         (arm_atomic_assign_expand_fenv): New function.
17498         * config/arm/vfp.md (set_fpscr): New pattern.
17499         (get_fpscr) : Likewise.
17500         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17501         VUNSPEC_SET_FPSCR.
17502         * doc/extend.texi (AARCH64 Built-in Functions) : Document
17503         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17504
17505 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
17506
17507         * asan.c (report_error_func): Add SLOW_P argument, use
17508         BUILT_IN_ASAN_*_N if set.
17509         (build_check_stmt): Likewise.
17510         (instrument_derefs): If T has insufficient alignment,
17511         force same handling as for odd sizes.
17512
17513         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17514         BUILT_IN_ASAN_REPORT_STORE_N): New.
17515         * asan.c (struct asan_mem_ref): Change access_size type to
17516         HOST_WIDE_INT.
17517         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17518         update_mem_ref_hash_table): Likewise.
17519         (asan_mem_ref_hasher::hash): Hash in a HWI.
17520         (report_error_func): Change size_in_bytes argument to HWI.
17521         Use *_N builtins if size_in_bytes is larger than 16 or not power of
17522         two.
17523         (build_shadow_mem_access): New function.
17524         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
17525         Handle size_in_bytes not power of two or larger than 16.
17526         (instrument_derefs): Don't give up if size_in_bytes is not
17527         power of two or is larger than 16.
17528
17529 2014-05-30  Kai Tietz  <ktietz@redhat.com>
17530
17531         PR target/60104
17532         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17533         for sibling-tail-calls.
17534         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17535         to its use.
17536         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17537         (sibcall_insn_operand): Add check for sibcall_memory_operand.
17538
17539 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17540
17541         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17542         * config/avr/avr-tables.opt: Regenerate.
17543         * config/avr/t-multilib: Regenerate.
17544         * doc/avr-mmcu.texi: Regenerate.
17545
17546 2014-05-30  Ian Lance Taylor  <iant@google.com>
17547
17548         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17549         target("sse").
17550
17551 2014-05-30  Tom de Vries  <tom@codesourcery.com>
17552
17553         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17554         Redefine as true.
17555
17556 2014-05-30  Tom de Vries  <tom@codesourcery.com>
17557
17558         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17559         * lra.c (initialize_lra_reg_info_element): Add init of
17560         actual_call_used_reg_set field.
17561         (lra): Call lra_create_live_ranges before lra_inheritance for
17562         -fuse-caller-save.
17563         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17564         -fuse-caller-save.
17565         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17566         instead of call_used_reg_set for -fuse-caller-save.
17567         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17568
17569 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17570
17571         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17572         to mov_imm.
17573         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17574
17575 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
17576
17577         * ira.c (ira_get_dup_out_num): Check for output operands at
17578         the start of the loop.  Handle cases where an included alternative
17579         follows an excluded one.
17580
17581 2014-05-29  Mike Stump  <mikestump@comcast.net>
17582
17583         PR debug/61352
17584         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17585         post ld passes when lto is used.
17586
17587 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
17588
17589         PR rtl-optimization/61325
17590         * lra-constraints.c (process_address): Rename to process_address_1.
17591         (process_address): New function.
17592
17593 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
17594
17595         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17596         TYPES_BINOPV): New static data.
17597         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17598         New builtin.
17599         * config/aarch64/aarch64-simd.md (aarch64_ext,
17600         aarch64_im_lane_boundsi): New patterns.
17601         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17602         patterns for EXT.
17603         (aarch64_evpc_ext): New function.
17604
17605         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17606
17607         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17608         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17609         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17610         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17611         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17612
17613 2014-05-29  Tom de Vries  <tom@codesourcery.com>
17614
17615         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17616
17617 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
17618             Richard Sandiford  <rdsandiford@googlemail.com>
17619
17620         * arm/iterators.md (shiftable_ops): New code iterator.
17621         (t2_binop0, arith_shift_insn): New code attributes.
17622         * arm/predicates.md (shift_nomul_operator): New predicate.
17623         * arm/arm.md (insn_enabled): Delete.
17624         (enabled): Remove insn_enabled test.
17625         (*arith_shiftsi): Delete.  Replace with ...
17626         (*<arith_shift_insn>_multsi): ... new pattern.
17627         (*<arith_shift_insn>_shiftsi): ... new pattern.
17628         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17629
17630 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
17631             Tom de Vries  <tom@codesourcery.com>
17632
17633         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17634         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17635         clobber.
17636         (mips_split_call): Use POST_CALL_TMP_REG.
17637         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17638
17639 2014-05-29  Tom de Vries  <tom@codesourcery.com>
17640
17641         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17642         with #ifdef STACK_REGS.
17643
17644 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
17645
17646         * varasm.c (get_variable_section): Walk aliases.
17647         (place_block_symbol): Walk aliases.
17648
17649 2014-05-28  Tom de Vries  <tom@codesourcery.com>
17650
17651         Revert:
17652         2014-05-28  Tom de Vries  <tom@codesourcery.com>
17653
17654         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17655         * lra.c (initialize_lra_reg_info_element): Add init of
17656         actual_call_used_reg_set field.
17657         (lra): Call lra_create_live_ranges before lra_inheritance for
17658         -fuse-caller-save.
17659         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17660         -fuse-caller-save.
17661         * lra-constraints.c (need_for_call_save_p): Use
17662         actual_call_used_reg_set instead of call_used_reg_set for
17663         -fuse-caller-save.
17664         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17665
17666 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
17667
17668         * doc/md.texi: Document that the % constraint character must
17669         be at the beginning of the string.
17670         * genoutput.c (validate_insn_alternatives): Check that '=',
17671         '+' and '%' only appear at the beginning of a constraint.
17672         * ira.c (commutative_constraint_p): Delete.
17673         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17674         at the start of the string.
17675         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17676         duplicate '='s.
17677         * config/arm/neon.md (bicdi3_neon): Likewise.
17678         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17679         (slt_si, sltu_si): Likewise.
17680         * config/vax/vax.md (sbcdi3): Likewise.
17681         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17682         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17683         (mul64): Move '%' to beginning of constraint.
17684         * config/arm/arm.md (*xordi3_insn): Likewise.
17685         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17686         (xorsi3): Likewise.
17687
17688 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
17689
17690         * doc/md.texi: Document the restrictions on the "enabled" attribute.
17691
17692 2014-05-28  Jason Merrill  <jason@redhat.com>
17693
17694         PR c++/47202
17695         * cgraph.h (symtab_node::get_comdat_group_id): New.
17696         * cgraphunit.c (analyze_functions): Call it.
17697         * symtab.c (dump_symtab_node): Likewise.
17698         * tree.c (decl_comdat_group_id): New.
17699         * tree.h: Declare it.
17700         * lto-streamer-out.c (write_symbol): Use it.
17701         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17702
17703 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17704
17705         PR bootstrap/PR61146
17706         * wide-int.cc: Do not include longlong.h when compiling with clang.
17707
17708 2014-05-28  Richard Biener  <rguenther@suse.de>
17709
17710         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17711         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17712         (vrp_visit_assignment_or_call): Print less vertical space.
17713         (vrp_visit_stmt): Likewise.
17714         (vrp_visit_phi_node): Likewise.  For a PHI argument with
17715         VR_VARYING range consider recording it as copy.
17716
17717 2014-05-28  Richard Biener  <rguenther@suse.de>
17718
17719         Revert
17720         2014-05-28  Richard Biener  <rguenther@suse.de>
17721
17722         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17723
17724 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17725
17726         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17727         sufficiently aligned and an offset is used at the same time.
17728         (expand_expr_real_1): Likewise.
17729
17730 2014-05-28  Richard Biener  <rguenther@suse.de>
17731
17732         PR middle-end/61045
17733         * fold-const.c (fold_comparison): When folding
17734         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17735         the sign of the remaining constant operand stays the same.
17736
17737 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
17738
17739         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17740         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17741         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17742         to the assembler.
17743         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17744         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17745         (m32bit-doubles) Likewise.
17746         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17747         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17748         option for RL78.
17749
17750 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17751
17752         * configure.ac ($gcc_cv_ld_clearcap): New test.
17753         * configure: Regenerate.
17754         * config.in: Regenerate.
17755         * config/sol2.opt (mclear-hwcap): New option.
17756         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17757         * config/sol2-clearcap.map: Moved here from
17758         testsuite/gcc.target/i386/clearcap.map.
17759         * config/sol2-clearcapv2.map: Move here from
17760         gcc.target/i386/clearcapv2.map.
17761         * config/t-sol2 (install): Depend on install-clearcap-map.
17762         (install-clearcap-map): New target.
17763         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17764         -mclear-hwcap.
17765
17766 2014-05-28  Richard Biener  <rguenther@suse.de>
17767
17768         * hwint.h (*_HALF_WIDE_INT*): Move to ...
17769         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17770         ... here and remove the rest.
17771         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17772
17773 2014-05-28  Richard Biener  <rguenther@suse.de>
17774
17775         PR tree-optimization/61335
17776         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17777         new range fails, drop to varying.
17778
17779 2014-05-28  Olivier Hainque  <hainque@adacore.com>
17780
17781         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17782         (CPP_SPEC): Add entry for -mcpu=8548.
17783         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17784         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17785
17786 2014-05-28  Tom de Vries  <tom@codesourcery.com>
17787
17788         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17789         * lra.c (initialize_lra_reg_info_element): Add init of
17790         actual_call_used_reg_set field.
17791         (lra): Call lra_create_live_ranges before lra_inheritance for
17792         -fuse-caller-save.
17793         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17794         -fuse-caller-save.
17795         * lra-constraints.c (need_for_call_save_p): Use
17796         actual_call_used_reg_set instead of call_used_reg_set for
17797         -fuse-caller-save.
17798         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17799
17800 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
17801             Tom de Vries  <tom@codesourcery.com>
17802
17803         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17804         to gccoptlist.
17805         (@item -fuse-caller-save): New item.
17806
17807 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
17808             Tom de Vries  <tom@codesourcery.com>
17809
17810         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17811         OPT_fuse_caller_save.
17812
17813 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
17814             Tom de Vries  <tom@codesourcery.com>
17815
17816         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17817         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17818         get_call_reg_set_usage.
17819         * resource.c (mark_set_resources, mark_target_live_regs): Use
17820         get_call_reg_set_usage.
17821         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17822         field.
17823         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17824         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17825         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17826         * ira-build.c (ira_create_allocno): Init
17827         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17828         (create_cap_allocno, propagate_allocno_info)
17829         (propagate_some_info_from_allocno)
17830         (copy_info_to_removed_store_destinations): Handle
17831         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17832         * ira-costs.c (ira_tune_allocno_costs): Use
17833         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17834
17835 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
17836             Tom de Vries  <tom@codesourcery.com>
17837
17838         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17839         and function_used_regs_valid fields.
17840         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17841         find_all_hard_reg_sets.
17842         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17843         (get_call_reg_set_usage): New function.
17844         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17845         * regs.h (get_call_reg_set_usage): Declare.
17846
17847 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
17848
17849         PR libgcc/61152
17850         * config/dbx.h (License): Add Runtime Library Exception.
17851         * config/newlib-stdint.h (License): Same.
17852         * config/rtems.h (License): Same
17853         * config/initfini-array.h (License): Same
17854         * config/v850/v850.h (License): Same.
17855         * config/v850/v850-opts.h (License): Same
17856         * config/v850/rtems.h (License): Same.
17857
17858 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
17859
17860         PR target/61044
17861         * doc/extend.texi (Local Labels): Note that label differences are
17862         not supported for AVR.
17863
17864 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
17865             Olivier Hainque  <hainque@adacore.com>
17866
17867         * rtl.h (set_for_reg_notes): Declare.
17868         * emit-rtl.c (set_for_reg_notes): New function.
17869         (set_unique_reg_note): Use it.
17870         * optabs.c (add_equal_note): Likewise
17871
17872 2014-05-27  Andrew Pinski  <apinski@cavium.com>
17873
17874         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17875         Use <w> for the register in assembly template.
17876         (stack_protect_test): Use the mode of operands[0] for the result.
17877         (stack_protect_test_<mode>): Use <w> for the register
17878         in assembly template.
17879
17880 2014-05-27  DJ Delorie  <dj@redhat.com>
17881
17882         * config/rx/rx.c (add_vector_labels): New.
17883         (rx_output_function_prologue): Call it.
17884         (rx_handle_func_attribute): Don't require empty arguments.
17885         (rx_handle_vector_attribute): New.
17886         (rx_attribute_table): Add "vector" attribute.
17887         * doc/extend.texi (interrupt, vector): Document new/changed
17888         RX-specific attributes.
17889
17890         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17891
17892 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17893
17894         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17895         predicate to detect a negative quotient.
17896
17897 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17898
17899         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17900         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17901         Add X - Y CMP 0 to X CMP Y transformation.
17902         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17903
17904 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
17905
17906         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17907         before printing.
17908
17909 2014-05-27  Steve Ellcey  <sellcey@mips.com>
17910
17911         * config/mips/mips.c: Add include of cgraph.h.
17912
17913 2014-05-27  Richard Biener  <rguenther@suse.de>
17914
17915         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17916
17917 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
17918
17919         PR libgcc/61152
17920         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17921         * config/arm/arm-cores.def (License): Same.
17922         * config/arm/arm-opts.h (License): Same.
17923         * config/arm/aout.h (License): Same.
17924         * config/arm/bpabi.h (License): Same.
17925         * config/arm/elf.h (License): Same.
17926         * config/arm/linux-elf.h (License): Same.
17927         * config/arm/linux-gas.h (License): Same.
17928         * config/arm/netbsd-elf.h (License): Same.
17929         * config/arm/uclinux-eabi.h (License): Same.
17930         * config/arm/uclinux-elf.h (License): Same.
17931         * config/arm/vxworks.h (License): Same.
17932
17933 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17934
17935         * config/arm/neon.md (neon_bswap<mode>): New pattern.
17936         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17937         (arm_init_neon_builtins): Handle NEON_BSWAP.
17938         Define required type nodes.
17939         (arm_expand_neon_builtin): Handle NEON_BSWAP.
17940         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17941         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17942         * config/arm/iterators.md (VDQHSD): New mode iterator.
17943
17944 2014-05-27  Richard Biener  <rguenther@suse.de>
17945
17946         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17947         Try using literal operands when comparing value-ranges failed.
17948
17949 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
17950
17951         * ira.c (commutative_operand): Adjust for change to recog_data.
17952         [Missing from previous commit.]
17953
17954 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
17955
17956         * system.h (TEST_BIT): New macro.
17957         * recog.h (alternative_mask): New type.
17958         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17959         (recog_data_d): Replace alternative_enabled_p array with
17960         enabled_alternatives.
17961         (target_recog): New structure.
17962         (default_target_recog, this_target_recog): Declare.
17963         (get_enabled_alternatives, recog_init): Likewise.
17964         * recog.c (default_target_recog, this_target_recog): New variables.
17965         (get_enabled_alternatives): New function.
17966         (extract_insn): Use it.
17967         (recog_init): New function.
17968         (preprocess_constraints, constrain_operands): Adjust for change to
17969         recog_data.
17970         * postreload.c (reload_cse_simplify_operands): Likewise.
17971         * reload.c (find_reloads): Likewise.
17972         * ira-costs.c (record_reg_classes): Likewise.
17973         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
17974         all alternatives after a disabled one would be skipped.
17975         (ira_implicitly_set_insn_hard_regs): Likewise.
17976         * ira.c (ira_setup_alts): Adjust for change to recog_data.
17977         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17978         with enabled_alternatives.
17979         * lra.c (free_insn_recog_data): Update accordingly.
17980         (lra_update_insn_recog_data): Likewise.
17981         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
17982         * lra-constraints.c (process_alt_operands): Likewise.  Handle
17983         only_alternative as part of the enabled mask.
17984         * target-globals.h (this_target_recog): Declare.
17985         (target_globals): Add a recog field.
17986         (restore_target_globals): Restore this_target_recog.
17987         * target-globals.c: Include recog.h.
17988         (default_target_globals): Initialize recog field.
17989         (save_target_globals): Likewise.
17990         * reginfo.c (reinit_regs): Call recog_init.
17991         * toplev.c (backend_init_target): Likewise.
17992
17993 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
17994
17995         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17996         rather than any named insn's code.
17997
17998 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
17999
18000         PR libgcc/61152
18001         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18002         * config/arm/arm-cores.def (License): Same.
18003
18004 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
18005
18006         * tree.h (decl_comdat_group): Declare.
18007         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18008         * tree.c (decl_comdat_group): Here.
18009
18010 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
18011
18012         PR rtl-optimization/61222
18013         * combine.c (simplify_shift_const_1): When moving a PLUS outside
18014         the shift, truncate the PLUS operand to the result mode.
18015
18016 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
18017
18018         PR target/61271
18019         * config/i386/i386.c (ix86_rtx_costs)
18020         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18021         Fix condition.
18022
18023 2014-05-26  Martin Jambor  <mjambor@suse.cz>
18024
18025         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18026         subreg uses.
18027
18028 2014-05-26  Richard Biener  <rguenther@suse.de>
18029
18030         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18031         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18032         Provide specializations.
18033         (wi::int_traits <HOST_WIDE_INT>,
18034         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18035
18036 2014-05-26  Alan Modra  <amodra@gmail.com>
18037
18038         PR target/61098
18039         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18040         params and return a bool.  Remove dead code.  Update comment.
18041         Assert we have a const_int source.  Remove bogus code from
18042         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
18043         handling of constants > 2G and reg_equal note, from..
18044         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
18045         return value.  Update comment.  If we can, use a new pseudo
18046         for intermediate calculations.
18047         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18048         prototype.
18049         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18050         call to rs6000_emit_set_const in splitter.
18051         (movdi_internal64+2, +3): Likewise.
18052
18053 2014-05-26  Richard Biener  <rguenther@suse.de>
18054
18055         * system.h: Define __STDC_FORMAT_MACROS before
18056         including inttypes.h.
18057         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18058         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18059         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18060         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18061         HOST_WIDEST_INT_C): Remove.
18062         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18063         if C99 inttypes.h is not available.
18064         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18065         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18066         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18067         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18068         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18069         (struct output_info): Likewise.
18070         (print_statistics): Adjust.
18071         (dump_bitmap_statistics): Likewise.
18072         * bt-load.c (migrate_btr_defs): Print with PRId64.
18073         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18074         (MAX_SAFE_MULTIPLIER): Adjust.
18075         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18076         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18077         dump_cgraph_node): Likewise.
18078         * final.c (dump_basic_block_info): Likewise.
18079         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18080         * gcov.c (format_gcov): Likewise.
18081         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
18082         for calculation.
18083         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18084         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18085         (inline_small_functions, dump_overall_stats, dump_inline_stats):
18086         Use PRId64 for dumping.
18087         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18088         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18089         (add_allocno_hard_regs): Adjust.
18090         * loop-doloop.c (doloop_modify): Print using PRId64.
18091         * loop-iv.c (inverse): Compute in uint64_t.
18092         (determine_max_iter, iv_number_of_iterations): Likewise.
18093         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18094         Print using PRId64.
18095         * lto-streamer-out.c (write_symbol): Use uint64_t.
18096         * mcf.c (CAP_INFINITY): Use int64_t maximum.
18097         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18098         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18099         * modulo-sched.c (const_iteration_count): Use int64_t.
18100         (sms_schedule): Dump using PRId64.
18101         * predict.c (dump_prediction): Likewise.
18102         * pretty-print.h (pp_widest_integer): Remove.
18103         * profile.c (get_working_sets, is_edge_inconsistent,
18104         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18105         * tree-pretty-print.c (pp_double_int): Remove case handling
18106         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18107         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18108         and adjust users.
18109         (pass_optimize_bswap::execute): Remove restriction on hosts.
18110         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18111         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18112         * tree.c (widest_int_cst_value): Remove.
18113         * tree.h (widest_int_cst_value): Likewise.
18114         * value-prof.c (dump_histogram_value): Print using PRId64.
18115         * gengtype.c (main): Also inject int64_t.
18116         * ggc-page.c (struct max_alignment): Use int64_t.
18117         * alloc-pool.c (struct allocation_object_def): Likewise.
18118         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18119         for computation.
18120         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18121         * doc/tm.texi: Regenerated.
18122         * gengtype-lex.l (IWORD): Handle [u]int64_t.
18123         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18124         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18125         mmix_output_register_setting): Use [u]int64_t in prototypes.
18126         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18127         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18128         mmix_output_octa, mmix_output_shifted_value): Adjust.
18129         (mmix_intval): Adjust.  Remove unreachable case.
18130         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18131
18132 2014-05-26  Richard Biener  <rguenther@suse.de>
18133
18134         * configure.ac: Drop __int64 type check.  Insist that we
18135         found uint64_t and int64_t.
18136         * hwint.h (HOST_BITS_PER___INT64): Remove.
18137         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18138         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18139         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18140         (HOST_WIDEST_FAST_INT): Remove __int64 case.
18141         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18142         for dst_q_src_df_rms_cdt.
18143         * configure: Regenerate.
18144         * config.in: Likewise.
18145
18146 2014-05-26  Michael Tautschnig  <mt@debian.org>
18147
18148         PR target/61249
18149         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18150         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18151
18152 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18153
18154         PR rtl-optimization/61278
18155         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18156
18157 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18158
18159         PR rtl-optimization/61220
18160         Part of PR rtl-optimization/61225
18161         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18162         insn; skip split_edge for a block with only one successor.
18163
18164 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18165
18166         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18167         for variables.
18168
18169 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18170
18171         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18172         (update_vtable_references): New function.
18173         (function_and_variable_visibility): Rewrite also vtable initializers.
18174         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18175
18176 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18177
18178         * ggc.h (ggc_grow): New function.
18179         * ggc-none.c (ggc_grow): New function.
18180         * ggc-page.c (ggc_grow): Likewise.
18181
18182 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18183
18184         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18185         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18186         comdat_can_be_unshared_p, cgraph_externally_visible_p,
18187         varpool_externally_visible_p, can_replace_by_local_alias,
18188         update_visibility_by_resolution_info, function_and_variable_visibility,
18189         pass_data_ipa_function_and_variable_visibility,
18190         make_pass_ipa_function_and_variable_visibility,
18191         whole_program_function_and_variable_visibility,
18192         pass_data_ipa_whole_program_visibility,
18193         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18194         * cgraph.h (cgraph_local_node_p): Declare.
18195         * ipa-visibility.c: New file.
18196         * Makefile.in (OBJS): Add ipa-visiblity.o
18197
18198 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18199
18200         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18201         that var decl is available.
18202
18203 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18204
18205         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18206         symtab_node pointer.
18207         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18208         (find_decls_types_r): Do not walk COMDAT_GROUP.
18209         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18210         * varasm.c (make_decl_one_only): Use set_comdat_group;
18211         create node if needed.
18212         * ipa-inline-transform.c (save_inline_function_body): Update
18213         way we decl->symtab mapping.
18214         * symtab.c (symtab_hash, hash_node, eq_node
18215         symtab_insert_node_to_hashtable): Remove.
18216         (symtab_register_node): Update.
18217         (symtab_unregister_node): Update.
18218         (symtab_get_node): Reimplement as inline function.
18219         (symtab_add_to_same_comdat_group): Update.
18220         (symtab_dissolve_same_comdat_group_list): Update.
18221         (dump_symtab_base): Update.
18222         (verify_symtab_base): Update.
18223         (symtab_make_decl_local): Update.
18224         (fixup_same_cpp_alias_visibility): Update.
18225         (symtab_nonoverwritable_alias): Update.
18226         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18227         * ipa.c (update_visibility_by_resolution_info): UPdate.
18228         * bb-reorder.c: Include cgraph.h
18229         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18230         with comdat groups.
18231         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18232         * cgraph.c (cgraph_get_create_node): Update.
18233         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18234         and comdat_group_.
18235         (symtab_get_node): Make inline.
18236         (symtab_insert_node_to_hashtable): Remove.
18237         (symtab_can_be_discarded): Update.
18238         (decl_comdat_group): New function.
18239         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18240         Update.
18241         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18242         comdat group name.
18243         (read_comdat_group): New function.
18244         (input_node, input_varpool_node): Use it.
18245         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18246         comdat groups.
18247         * mips.c (mips_start_unique_function): Likewise.
18248         (ix86_code_end): Likewise.
18249         (rs6000_code_end): Likweise.
18250         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18251
18252 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18253
18254         * gengtype-state.c (fatal_reading_state): Bring offline.
18255         * optabs.c (widening_optab_handler): Bring offline.
18256         * optabs.h (widening_optab_handler): Likewise.
18257         * final.c (get_attr_length_1): Likewise.
18258
18259 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18260
18261         * sched-int.h (sd_iterator_cond): Manually tail recurse.
18262
18263 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18264
18265         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18266         (ppc440-compare): Include shift with dot.
18267         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18268         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18269         without dot.
18270         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18271         without dot.
18272         (e6500_sfx2): Include it.
18273         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18274         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18275         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18276         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18277         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18278         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18279         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18280         *lshiftrt_internal1le, *lshiftrt_internal1be,
18281         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18282         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18283         *rotldi3_internal10le, *rotldi3_internal10be,
18284         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18285         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18286         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18287         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18288         define_insns): Use type "shift" in the appropriate alternatives.
18289
18290 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18291
18292         * config/rs6000/rs6000.md (type): Add "logical".  Delete
18293         "fast_compare".
18294         (dot): Adjust comment.
18295         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18296         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18297         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18298         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18299         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18300         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18301         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18302         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18303
18304         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18305         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18306         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18307         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18308         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18309         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18310         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18311         * config/rs6000/8540.md (ppc8540_su): Adjust.
18312         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18313         cell-cmp-microcoded): Adjust.
18314         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18315         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18316         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18317         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18318         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18319         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18320         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18321         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18322         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18323         Adjust.
18324         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18325         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18326         Adjust.  Adjust comment.
18327         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18328         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18329
18330 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18331
18332         * config/rs6000/rs6000.md (type): Add "add".
18333         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18334         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18335         define_insns): Use it.
18336         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18337
18338         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18339         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18340         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18341         * config/rs6000/601.md (ppc601-integer): Adjust.
18342         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18343         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18344         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18345         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18346         * config/rs6000/8540.md (ppc8540_su): Adjust.
18347         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18348         cell-cmp-microcoded): Adjust.
18349         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18350         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18351         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18352         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18353         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18354         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18355         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18356         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18357         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18358         Adjust.
18359         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18360         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18361         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18362         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18363
18364 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18365
18366         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18367         "delayed_compare", "var_delayed_compare".
18368         (var_shift): New attribute.
18369         (cell_micro): Adjust.
18370         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18371         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18372         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18373         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18374         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18375         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18376         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18377         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18378         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18379         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18380         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18381         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18382         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18383         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18384         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18385         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18386         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18387         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18388         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18389         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18390         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18391         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18392         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18393         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18394         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18395
18396         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18397         * config/rs6000/440.md (ppc440-integer): Adjust.
18398         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18399         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18400         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18401         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18402         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18403         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18404         * config/rs6000/8540.md (ppc8540_su): Adjust.
18405         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18406         cell-cmp-microcoded): Adjust.
18407         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18408         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18409         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18410         e500mc64_delayed): Adjust.
18411         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18412         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18413         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18414         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18415         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18416         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18417         power6-delayed-compare, power6-var-delayed-compare): Adjust.
18418         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18419         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18420         Adjust comment.
18421         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18422         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18423
18424 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18425
18426         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
18427         (bits): New mode_attr.
18428         (idiv_ldiv): Delete mode_attr.
18429         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18430         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18431         rs6000_adjust_priority, is_nonpipeline_insn,
18432         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18433
18434         * config/rs6000/40x.md (ppc403-idiv): Adjust.
18435         * config/rs6000/440.md (ppc440-idiv): Adjust.
18436         * config/rs6000/476.md (ppc476-idiv): Adjust.
18437         * config/rs6000/601.md (ppc601-idiv): Adjust.
18438         * config/rs6000/603.md (ppc603-idiv): Adjust.
18439         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18440         ppc620-ldiv): Adjust.
18441         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18442         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18443         * config/rs6000/8540.md (ppc8540_divide): Adjust.
18444         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18445         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18446         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18447         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18448         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18449         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18450         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18451         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18452         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18453         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18454         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18455         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18456         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18457         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18458         * config/rs6000/titan.md (titan_fxu_div): Adjust.
18459
18460 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18461
18462         * config/rs6000/rs6000.md (type): Delete "insert_word",
18463         "insert_dword".  Add "insert".
18464         (size): Update comment.
18465         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18466         insn_must_be_first_in_group): Adjust.
18467         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18468         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18469         *insvsi_internal6, insvdi_internal): Adjust.
18470
18471         * config/rs6000/40x.md (ppc403-integer): Adjust.
18472         * config/rs6000/440.md (ppc440-integer): Adjust.
18473         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18474         * config/rs6000/601.md (ppc601-integer): Adjust.
18475         * config/rs6000/603.md (ppc603-integer): Adjust.
18476         * config/rs6000/6xx.md (ppc604-integer): Adjust.
18477         * config/rs6000/7450.md (ppc7450-integer): Adjust.
18478         * config/rs6000/7xx.md (ppc750-integer): Adjust.
18479         * config/rs6000/8540.md (ppc8540_su): Adjust.
18480         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18481         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18482         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18483         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18484         * config/rs6000/e5500.md (e5500_sfx): Adjust.
18485         * config/rs6000/e6500.md (e6500_sfx): Adjust.
18486         * config/rs6000/mpc.md (mpccore-integer): Adjust.
18487         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18488         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18489         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18490         * config/rs6000/power7.md (power7-integer): Adjust.
18491         * config/rs6000/power8.md (power8-1cyc): Adjust.
18492         * config/rs6000/rs64.md (rs64a-integer): Adjust.
18493         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18494
18495 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18496
18497         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
18498         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18499         (size): New attribute.
18500         (dot): New attribute.
18501         (cell_micro): Adjust.
18502         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18503         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18504         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18505         umuldi3_highpart): Adjust.
18506         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18507         rs6000_adjust_priority, is_nonpipeline_insn,
18508         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18509
18510         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18511         ppc405-imul3): Adjust.
18512         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18513         * config/rs6000/476.md (ppc476-imul): Adjust.
18514         * config/rs6000/601.md (ppc601-imul): Adjust.
18515         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18516         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18517         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18518         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18519         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18520         Adjust.
18521         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18522         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18523         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18524         cell-imul): Adjust.
18525         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18526         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18527         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18528         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18529         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18530         * config/rs6000/mpc.md (mpccore-imul): Adjust.
18531         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18532         power4-lmul, power4-imul, power4-imul3): Adjust.
18533         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18534         power5-lmul, power5-imul, power5-imul3): Adjust.
18535         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18536         power6-lmul, power6-imul, power6-imul3): Adjust.
18537         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18538         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18539
18540         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18541         rs64a-lmul): Adjust.
18542         * config/rs6000/titan.md (titan_imul): Adjust.
18543
18544 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18545
18546         * config/rs6000/rs6000.md (type): Add new value "halfmul".
18547         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18548         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18549         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18550         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18551         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18552         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18553         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18554         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18555         * config/rs6000/titan.md: Delete nonsensical comment.
18556         (titan_imul): Add type imul3.
18557         (titan_mulhw): Remove type imul3; add type halfmul.
18558
18559 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18560
18561         * config/rs6000/rs6000.md (type): Reorder, reformat.
18562
18563 2014-05-23  Martin Jambor  <mjambor@suse.cz>
18564
18565         PR tree-optimization/53787
18566         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18567         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18568         analysis_done, update all uses.
18569         * ipa-prop.c: Include domwalk.h
18570         (param_analysis_info): Removed.
18571         (param_aa_status): New type.
18572         (ipa_bb_info): Likewise.
18573         (func_body_info): Likewise.
18574         (ipa_get_bb_info): New function.
18575         (aa_overwalked): Likewise.
18576         (find_dominating_aa_status): Likewise.
18577         (parm_bb_aa_status_for_bb): Likewise.
18578         (parm_preserved_before_stmt_p): Changed to use new param AA info.
18579         (load_from_unmodified_param): Accept func_body_info as a parameter
18580         instead of parms_ainfo.
18581         (parm_ref_data_preserved_p): Changed to use new param AA info.
18582         (parm_ref_data_pass_through_p): Likewise.
18583         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
18584         (compute_complex_assign_jump_func): Changed to use new param AA info.
18585         (compute_complex_ancestor_jump_func): Likewise.
18586         (ipa_compute_jump_functions_for_edge): Likewise.
18587         (ipa_compute_jump_functions): Removed.
18588         (ipa_compute_jump_functions_for_bb): New function.
18589         (ipa_analyze_indirect_call_uses): Likewise, moved variable
18590         declarations down.
18591         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18592         and info, moved variable declarations down.
18593         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18594         node and info.
18595         (ipa_analyze_stmt_uses): Likewise.
18596         (ipa_analyze_params_uses): Removed.
18597         (ipa_analyze_params_uses_in_bb): New function.
18598         (ipa_analyze_controlled_uses): Likewise.
18599         (free_ipa_bb_info): Likewise.
18600         (analysis_dom_walker): New class.
18601         (ipa_analyze_node): Handle node-specific forbidden analysis,
18602         initialize and free func_body_info, use dominator walker.
18603         (ipcp_modif_dom_walker): New class.
18604         (ipcp_transform_function): Create and free func_body_info, use
18605         ipcp_modif_dom_walker, moved a lot of functionality there.
18606
18607 2014-05-23  Marek Polacek  <polacek@redhat.com>
18608             Jakub Jelinek  <jakub@redhat.com>
18609
18610         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18611         * gcc.c (sanitize_spec_function): Likewise.
18612         * convert.c (convert_to_integer): Include "ubsan.h".  Add
18613         floating-point to integer instrumentation.
18614         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18615         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18616         SANITIZE_NONDEFAULT.
18617         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18618         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18619         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18620         * ubsan.c: Include "realmpfr.h" and "dfp.h".
18621         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18622         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18623         float/double/long double.
18624         (ubsan_instrument_float_cast): New function.
18625         * ubsan.h (ubsan_instrument_float_cast): Declare.
18626
18627 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
18628
18629         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18630         predicate.
18631         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
18632         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18633         Adjust for tailcalling through registers.
18634         * config/aarch64/aarch64.h (enum reg_class): New caller save
18635         register class.
18636         (REG_CLASS_NAMES): Likewise.
18637         (REG_CLASS_CONTENTS): Likewise.
18638         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18639         Allow tailcalling without decls.
18640
18641 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
18642
18643         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18644         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18645
18646         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18647         gsi, and variables v_* to v*.
18648
18649 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
18650
18651         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18652
18653 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
18654
18655         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18656         * omp-low.c: Update accordingly.
18657
18658         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18659         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18660         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18661         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18662         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18663         GF_OMP_TARGET_KIND_UPDATE.
18664
18665         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18666         Explicitly enumerate the expected region types.
18667
18668 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18669
18670         PR other/56955
18671         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
18672         documentation; the old documentation didn't clearly state the
18673         constraints on the contents of the pointed-to storage.
18674
18675 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18676
18677         Fix bootstrap error on ia64
18678         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18679         Return default value.
18680
18681 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18682
18683         PR tree-optimization/54733
18684         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18685         (CMPNOP): Define.
18686         (find_bswap_or_nop_load): New.
18687         (find_bswap_1): Renamed to ...
18688         (find_bswap_or_nop_1): This. Also add support for memory source.
18689         (find_bswap): Renamed to ...
18690         (find_bswap_or_nop): This. Also add support for memory source and
18691         detection of bitwise operations equivalent to load in target
18692         endianness.
18693         (execute_optimize_bswap): Likewise. Also move its leading comment back
18694         in place and split statement transformation into ...
18695         (bswap_replace): This.
18696
18697 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
18698
18699         PR rtl-optimization/61215
18700         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18701         simplify_gen_subreg until final substitution.
18702
18703 2014-05-23  Alan Modra  <amodra@gmail.com>
18704
18705         PR target/61231
18706         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18707         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18708         Use "Y" constraint rather than "m".
18709
18710 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18711
18712         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18713         define.
18714         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18715         New function declaration.
18716         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18717         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18718         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18719         (aarch64_init_builtins) : Initialize builtins
18720         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18721         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18722         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18723         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18724         and __builtins_aarch64_set_fpsr.
18725         (aarch64_atomic_assign_expand_fenv): New function.
18726         * config/aarch64/aarch64.md (set_fpcr): New pattern.
18727         (get_fpcr) : Likewise.
18728         (set_fpsr) : Likewise.
18729         (get_fpsr) : Likewise.
18730         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18731          and UNSPECV_SET_FPSR.
18732         * doc/extend.texi (AARCH64 Built-in Functions) : Document
18733         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18734         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18735
18736 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
18737
18738         PR rtl-optimization/60969
18739         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18740         constraints.  Set up mem cost for NO_REGS case.
18741
18742 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
18743
18744         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18745
18746 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
18747
18748         * config/darwin.c: Include "lto-section-names.h".
18749         (LTO_SEGMENT_NAME): Don't define.
18750         * config/i386/winnt.c: Include "lto-section-names.h".
18751         * lto-streamer.c: Include "lto-section-names.h".
18752         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18753         * lto-wrapper.c: Include "lto-section-names.h".
18754         (LTO_SECTION_NAME_PREFIX): Don't define.
18755         * lto-section-names.h: New file.
18756         * cgraphunit.c: Include "lto-section-names.h".
18757
18758 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
18759
18760         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18761
18762 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
18763
18764         PR target/61208
18765         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18766
18767 2014-05-22  Nick Clifton  <nickc@redhat.com>
18768
18769         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18770
18771 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
18772
18773         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18774         -> (T)A transformation to integer types.
18775
18776 2014-05-22  Teresa Johnson  <tejohnson@google.com>
18777
18778         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18779         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18780         (gcov_rewrite): Use gcov_nonruntime_assert.
18781         (gcov_open): Ditto.
18782         (gcov_write_words): Ditto.
18783         (gcov_write_length): Ditto.
18784         (gcov_read_words): Use gcov_nonruntime_assert, and remove
18785         gcc_assert from IN_LIBGCOV code.
18786         (gcov_read_summary): Use gcov_error to flag profile corruption.
18787         (gcov_sync): Use gcov_nonruntime_assert.
18788         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18789         (gcov_histo_index): Use gcov_nonruntime_assert.
18790         (static void gcov_histogram_merge): Ditto.
18791         (compute_working_sets): Ditto.
18792         * gcov-io.h (gcov_nonruntime_assert): Define.
18793         (gcov_error): Define for !IN_LIBGCOV
18794
18795 2014-05-22  Richard Biener  <rguenther@suse.de>
18796
18797         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18798         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18799         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18800         and deallocation site.
18801         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18802         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18803         passing through the incoming points-to set.
18804         (handle_lhs_call): Use flags argument instead of recomputing it.
18805         (find_func_aliases_for_call): Call handle_lhs_call with proper
18806         call return flags.
18807
18808 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
18809
18810         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18811         all padding bits in REAL_VALUE_TYPE are cleared.
18812
18813 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18814
18815         Cleanup and improve multipass_dfa_lookahead_guard
18816         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18817         (core2i7_first_cycle_multipass_begin,)
18818         (core2i7_first_cycle_multipass_issue,)
18819         (core2i7_first_cycle_multipass_backtrack): Update signature.
18820         * config/ia64/ia64.c
18821         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18822         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18823         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18824         hook definition.
18825         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18826         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
18827         values.
18828         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18829         return values.
18830         * doc/tm.texi: Regenerate.
18831         * doc/tm.texi.in
18832         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18833         * haifa-sched.c (ready_try): Make signed to allow negative values.
18834         (rebug_ready_list_1): Update.
18835         (choose_ready): Simplify.
18836         (sched_extend_ready_list): Update.
18837
18838 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18839
18840         Remove IA64 speculation tweaking flags
18841         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18842         speculation tuning flags.
18843         (msched-prefer-non-data-spec-insns,)
18844         (msched-prefer-non-control-spec-insns): Obsolete options.
18845         * haifa-sched.c (choose_ready): Remove handling of
18846         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18847         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18848         and PREFER_NON_DATA_SPEC.
18849         * sel-sched.c (process_spec_exprs): Remove handling of
18850         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18851
18852 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18853
18854         Improve scheduling debug output
18855         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18856         (advance_one_cycle): Update.
18857         (schedule_insn, queue_to_ready): Add debug printouts.
18858         (debug_ready_list_1): New static function.
18859         (debug_ready_list): Update.
18860         (max_issue): Add debug printouts.
18861         (dump_insn_stream): New static function.
18862         (schedule_block): Use it.  Also better indent printouts.
18863
18864 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18865
18866         Fix sched_insn debug counter
18867         * haifa-sched.c (schedule_insn): Update.
18868         (struct haifa_saved_data): Add nonscheduled_insns_begin.
18869         (save_backtrack_point, restore_backtrack_point): Update.
18870         (first_nonscheduled_insn): New static function.
18871         (queue_to_ready, choose_ready): Use it.
18872         (schedule_block): Init nonscheduled_insns_begin.
18873         (sched_emit_insn): Update.
18874
18875
18876 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
18877
18878         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18879         to GENERAL_REGS.
18880         (aarch64_secondary_reload) : LikeWise.
18881         (aarch64_class_max_nregs) : Remove CORE_REGS.
18882         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18883         (REG_CLASS_NAMES) : Likewise.
18884         (REG_CLASS_CONTENTS) : LikeWise.
18885         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18886
18887 2014-05-21  Guozhi Wei  <carrot@google.com>
18888
18889         PR target/61202
18890         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18891         constraint.
18892         (vqdmulhq_n_s16): Likewise.
18893
18894 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
18895
18896         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18897
18898 2014-05-21  Marek Polacek  <polacek@redhat.com>
18899
18900         PR sanitizer/61272
18901         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18902
18903 2014-05-21  Martin Jambor  <mjambor@suse.cz>
18904
18905         * doc/invoke.texi (Optimize Options): Document parameters
18906         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18907         ipa-cp-array-index-hint-bonus.
18908
18909 2014-05-21  Mark Wielaard  <mjw@redhat.com>
18910
18911         PR debug/16063
18912         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18913         version >= 3 or not strict DWARF.
18914         * langhooks.h (struct lang_hooks_for_types): Add
18915         enum_underlying_base_type.
18916         * langhooks.c (lhd_enum_underlying_base_type): New function.
18917         * gcc/langhooks.h (struct lang_hooks_for_types): Add
18918         enum_underlying_base_type.
18919         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18920         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18921         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18922
18923 2014-05-21  Richard Biener  <rguenther@suse.de>
18924
18925         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18926
18927 2014-05-21  John Marino  <gnugcc@marino.st>
18928
18929         * config.gcc (*-*-dragonfly*): New target.
18930         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18931         * configure: Regenerate.
18932         * config/dragonfly-stdint.h: New.
18933         * config/dragonfly.h: New.
18934         * config/dragonfly.opt: New.
18935         * config/i386/dragonfly.h: New.
18936         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18937
18938 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
18939
18940         * tree.def (VOID_CST): New.
18941         * tree-core.h (TI_VOID): New.
18942         * tree.h (void_node): New.
18943         * tree.c (tree_node_structure_for_code, tree_code_size)
18944         (iterative_hash_expr): Handle VOID_CST.
18945         (build_common_tree_nodes): Initialize void_node.
18946
18947 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
18948
18949         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18950         functions.
18951         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18952
18953         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18954         more places.
18955
18956         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18957         flag_reorder_blocks_and_partition.
18958         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18959
18960 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
18961
18962         PR target/54236
18963         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
18964         constraints.
18965         (*addc_r_t): Add new insn_and_split.
18966
18967 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
18968
18969         PR middle-end/61252
18970         * omp-low.c (handle_simd_reference): New function.
18971         (lower_rec_input_clauses): Use it.  Defer adding reference
18972         initialization even for reduction without placeholder if in simd,
18973         handle it properly later on.
18974
18975 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
18976
18977         PR tree-optimization/60899
18978         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18979         assume all static symbols will have definition wile parsing and
18980         check the do have definition later in compilation; check that
18981         variable referring symbol will be output before concluding that
18982         reference is safe; be conservative for referring local statics;
18983         be more precise about when comdat is output in other partition.
18984
18985 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
18986
18987         PR bootstrap/60984
18988         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18989         parameter.
18990         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18991         (ipa_inline): Loop inline_to_all_callers until no more aliases
18992         are removed.
18993
18994 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
18995
18996         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18997         set writeonly flag only for vars actually written to.
18998
18999 2014-05-20  Dehao Chen  <dehao@google.com>
19000
19001         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19002         and callee count to get clone count.
19003         * tree-inline.c (expand_call_inline): Use callee count instead of bb
19004         count in copy_body.
19005
19006 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19007
19008         PR rtl-optimization/61243
19009         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19010
19011 2014-05-20  Xinliang David Li  <davidxl@google.com>
19012
19013         * cgraphunit.c (walk_polymorphic_call_targets): Add
19014         dbgcnt and fopt-info support.
19015         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19016         * ipa-devirt.c (ipa_devirt): Ditto.
19017         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19018         * ipa.c (walk_polymorphic_call_targets): Ditto.
19019         * gimple-fold.c (fold_gimple_assign): Ditto.
19020         (gimple_fold_call): Ditto.
19021         * dbgcnt.def: New counter.
19022
19023 2014-05-20  DJ Delorie  <dj@redhat.com>
19024
19025         * config/msp430/msp430.md (split): Don't allow subregs when
19026         splitting SImode adds.
19027         (andneghi): Fix subtraction logic.
19028         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19029
19030 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19031
19032         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19033         symbols.
19034         * except.c (switch_to_exception_section, resolve_unique_section,
19035         get_named_text_section, default_function_rodata_section,
19036         align_variable, get_block_for_decl, default_section_type_flags):
19037         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19038         * symtab.c (symtab_add_to_same_comdat_group,
19039         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19040         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19041         Likewise.
19042         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19043         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19044         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19045         (c6x_function_in_section_p): Likewise.
19046         * config/darwin.c (machopic_select_section): Likewise.
19047         * config/arm/arm.c (arm_function_in_section_p): Likewise.
19048         * config/mips/mips.c (mips_function_rodata_section): Likewise.
19049         * config/mep/mep.c (mep_select_section): LIkewise.
19050         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19051
19052 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
19053
19054         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19055         EH region of calls to pure functions that can throw an exception.
19056         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19057         (copy_reference_ops_from_call): Also copy the EH region of the call if
19058         it can throw an exception.
19059
19060 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19061
19062         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19063         nested VEC_SELECTs that are inverses of each other.
19064
19065 2014-05-20  Richard Biener  <rguenther@suse.de>
19066
19067         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19068         (extract_and_process_scc_for_name): not here.
19069         (cond_dom_walker::before_dom_children): Only process
19070         stmts that end the BB in interesting ways.
19071         (run_scc_vn): Mark param uses as visited.
19072
19073 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19074
19075         * config/arm/arm.md (arith_shiftsi): Do not predicate for
19076         arm_restrict_it.
19077
19078 2014-05-20  Nick Clifton  <nickc@redhat.com>
19079
19080         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19081         (msp430_gimplify_va_arg_expr): New function.
19082         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19083
19084         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19085         operand 0 in order to prevent confusion about the number of
19086         registers involved.
19087
19088 2014-05-20  Richard Biener  <rguenther@suse.de>
19089
19090         PR tree-optimization/61221
19091         * tree-ssa-pre.c (el_to_update): Remove.
19092         (eliminate_dom_walker::before_dom_children): Handle released
19093         VDEFs by value-numbering them to the associated VUSE.  Update
19094         stmt immediately for substituted call address.
19095         (eliminate): Remove delayed stmt updating code.
19096         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19097         possibly late re-numbered vuses.
19098         (vn_reference_lookup_2): Adjust.
19099         (vn_reference_lookup_pieces): Likewise.
19100         (vn_reference_lookup): Likewise.
19101
19102 2014-05-20  Richard Biener  <rguenther@suse.de>
19103
19104         * config.gcc: Remove need_64bit_hwint.
19105         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19106         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19107         it to be true.
19108         * config.in: Regenerate.
19109         * configure: Likewise.
19110
19111 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
19112
19113         * doc/extend.texi: Create Label Attributes section,
19114         move all label attributes into it and reference it.
19115
19116 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
19117
19118         * arm.c (thumb1_reorg): When scanning backwards skip anything
19119         that's not a proper insn.
19120
19121 2014-05-19  Richard Biener  <rguenther@suse.de>
19122
19123         PR tree-optimization/61221
19124         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19125         Do nothing for unreachable blocks.
19126         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19127         Improve unreachability detection.
19128
19129 2014-05-19  Richard Biener  <rguenther@suse.de>
19130
19131         PR tree-optimization/61209
19132         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19133
19134 2014-05-19  Nick Clifton  <nickc@redhat.com>
19135
19136         * except.c (init_eh): Fix computation of builtin setjmp buffer
19137         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19138
19139 2014-05-19  Richard Biener  <rguenther@suse.de>
19140
19141         PR tree-optimization/61184
19142         * tree-vrp.c (is_negative_overflow_infinity): Use
19143         TREE_OVERFLOW_P and do that check first.
19144         (is_positive_overflow_infinity): Likewise.
19145         (is_overflow_infinity): Likewise.
19146         (vrp_operand_equal_p): Properly treat operands with
19147         differing overflow as not equal.
19148
19149 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
19150
19151         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19152         shift simplification where it was intended.
19153
19154 2014-05-19  Christian Bruel  <christian.bruel@st.com>
19155
19156         PR target/61195
19157         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19158
19159 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
19160
19161         PR target/61084
19162         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19163         than wide_int.
19164
19165 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19166
19167         * reg-notes.def (CROSSING_JUMP): Likewise.
19168         * rtl.h (rtx_def): Update comment for jump flag.
19169         (CROSSING_JUMP_P): Define.
19170         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19171         of a REG_CROSSING_JUMP note.
19172         * cfghooks.c (tidy_fallthru_edges): Likewise.
19173         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19174         * emit-rtl.c (try_split): Likewise.
19175         * haifa-sched.c (sched_create_recovery_edges): Likewise.
19176         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19177         * jump.c (redirect_jump_2): Likewise.
19178         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19179         (relax_delay_slots): Likewise.
19180         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19181         (bbit_di): Likewise.
19182         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19183         * config/sh/sh.md (jump_compact): Likewise.
19184         * bb-reorder.c (rotate_loop): Likewise.
19185         (pass_duplicate_computed_gotos::execute): Likewise.
19186         (add_reg_crossing_jump_notes): Rename to...
19187         (update_crossing_jump_flags): ...this.
19188         (pass_partition_blocks::execute): Update accordingly.
19189
19190 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19191
19192         * tree.h: Remove extraneous template <>.
19193
19194 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19195
19196         * ipa.c (symtab_remove_unreachable_nodes): Remove
19197         symbol from comdat group if its body was eliminated.
19198         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19199         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19200         (symtab_unregister_node): ... this one.
19201         (verify_symtab_base): More strict checking of comdats.
19202         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19203
19204 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19205
19206         * tree-pass.h (make_pass_ipa_comdats): New pass.
19207         * timevar.def (TV_IPA_COMDATS): New timevar.
19208         * passes.def (pass_ipa_comdats): Add.
19209         * Makefile.in (OBJS): Add ipa-comdats.o
19210         * ipa-comdats.c: New file.
19211
19212 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19213
19214         * ipa.c (update_visibility_by_resolution_info): New function.
19215         (function_and_variable_visibility): Use it.
19216
19217 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19218
19219         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19220         New functions.
19221         (FOR_EACH_DEFINED_SYMBOL): New macro.
19222         (varpool_first_static_initializer, varpool_next_static_initializer,
19223         varpool_first_defined_variable, varpool_next_defined_variable):
19224         Fix comments.
19225         (symtab_in_same_comdat_p): Correctly deal with inline functions.
19226
19227 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19228
19229         * ggc-page.c (ggc_handle_finalizers): Add comment.
19230
19231 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19232
19233         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19234         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19235         (ggc_internal_cleared_alloc): Likewise.
19236         * ggc-page.c (finalizer): New class.
19237         (vec_finalizer): Likewise.
19238         (globals::finalizers): New member.
19239         (globals::vec_finalizers): Likewise.
19240         (ggc_internal_alloc): Record the finalizer if any for the block being
19241         allocated.
19242         (ggc_handle_finalizers): New function.
19243         (ggc_collect): Call ggc_handle_finalizers.
19244         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19245         finalizer.
19246         (ggc_internal_cleared_alloc): Likewise.
19247         (finalize): New function.
19248         (need_finalization_p): Likewise.
19249         (ggc_alloc): Install the type's destructor as the finalizer if it
19250         might do something.
19251         (ggc_cleared_alloc): Likewise.
19252         (ggc_vec_alloc): Likewise.
19253         (ggc_cleared_vec_alloc): Likewise.
19254
19255 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19256
19257         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19258
19259 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19260
19261         * alias.c (record_alias_subset): Adjust.
19262         * bitmap.c (bitmap_element_allocate): Likewise.
19263         (bitmap_gc_alloc_stat): Likewise.
19264         * cfg.c (init_flow): Likewise.
19265         (alloc_block): Likewise.
19266         (unchecked_make_edge): Likewise.
19267         * cfgloop.c (alloc_loop): Likewise.
19268         (flow_loops_find): Likewise.
19269         (rescan_loop_exit): Likewise.
19270         * cfgrtl.c (init_rtl_bb_info): Likewise.
19271         * cgraph.c (insert_new_cgraph_node_version): Likewise.
19272         (cgraph_allocate_node): Likewise.
19273         (cgraph_create_edge_1): Likewise.
19274         (cgraph_allocate_init_indirect_info): Likewise.
19275         * cgraphclones.c (cgraph_clone_edge): Likewise.
19276         * cgraphunit.c (add_asm_node): Likewise.
19277         (init_lowered_empty_function): Likewise.
19278         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19279         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19280         (alpha_use_linkage): Likewise.
19281         * config/arc/arc.c (arc_init_machine_status): Likewise.
19282         * config/arm/arm.c (arm_init_machine_status): Likewise.
19283         * config/avr/avr.c (avr_init_machine_status): Likewise.
19284         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19285         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19286         * config/cris/cris.c (cris_init_machine_status): Likewise.
19287         * config/darwin.c (machopic_indirection_name): Likewise.
19288         (darwin_build_constant_cfstring): Likewise.
19289         (darwin_enter_string_into_cfstring_table): Likewise.
19290         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19291         * config/frv/frv.c (frv_init_machine_status): Likewise.
19292         * config/i386/i386.c (get_dllimport_decl): Likewise.
19293         (ix86_init_machine_status): Likewise.
19294         (assign_386_stack_local): Likewise.
19295         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19296         (i386_pe_maybe_record_exported_symbol): Likewise.
19297         (i386_pe_record_stub): Likewise.
19298         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19299         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19300         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19301         (m32c_note_pragma_address): Likewise.
19302         * config/mep/mep.c (mep_init_machine_status): Likewise.
19303         (mep_note_pragma_flag): Likewise.
19304         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19305         (mips16_local_alias): Likewise.
19306         (mips_init_machine_status): Likewise.
19307         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19308         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19309         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19310         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19311         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19312         * config/pa/pa.c (pa_init_machine_status): Likewise.
19313         (pa_get_deferred_plabel): Likewise.
19314         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19315         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19316         (rs6000_init_machine_status): Likewise.
19317         (output_toc): Likewise.
19318         * config/s390/s390.c (s390_init_machine_status): Likewise.
19319         * config/score/score.c (score_output_external): Likewise.
19320         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19321         * config/spu/spu.c (spu_init_machine_status): Likewise.
19322         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19323         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19324         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19325         * coverage.c (coverage_end_function): Likewise.
19326         * dbxout.c (dbxout_init): Likewise.
19327         * doc/gty.texi: Don't mention variable_size attribute.
19328         * dwarf2cfi.c (new_cfi): Adjust.
19329         (new_cfi_row): Likewise.
19330         (copy_cfi_row): Likewise.
19331         (create_cie_data): Likewise.
19332         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19333         (new_loc_descr): Likewise.
19334         (find_AT_string_in_table): Likewise.
19335         (add_addr_table_entry): Likewise.
19336         (new_die): Likewise.
19337         (add_var_loc_to_decl): Likewise.
19338         (clone_die): Likewise.
19339         (clone_as_declaration): Likewise.
19340         (break_out_comdat_types): Likewise.
19341         (new_loc_list): Likewise.
19342         (add_loc_descr_to_each): Likewise.
19343         (add_location_or_const_value_attribute): Likewise.
19344         (add_linkage_name): Likewise.
19345         (lookup_filename): Likewise.
19346         (dwarf2out_var_location): Likewise.
19347         (new_line_info_table): Likewise.
19348         (dwarf2out_init): Likewise.
19349         (mem_loc_descriptor): Likewise.
19350         (loc_descriptor): Likewise.
19351         (add_const_value_attribute): Likewise.
19352         (tree_add_const_value_attribute): Likewise.
19353         (comp_dir_string): Likewise.
19354         (dwarf2out_vms_debug_main_pointer): Likewise.
19355         (string_cst_pool_decl): Likewise.
19356         * emit-rtl.c (set_mem_attrs): Likewise.
19357         (get_reg_attrs): Likewise.
19358         (start_sequence): Likewise.
19359         (init_emit): Likewise.
19360         (init_emit_regs): Likewise.
19361         * except.c (init_eh_for_function): Likewise.
19362         (gen_eh_region): Likewise.
19363         (gen_eh_region_catch): Likewise.
19364         (gen_eh_landing_pad): Likewise.
19365         (add_call_site): Likewise.
19366         * function.c (add_frame_space): Likewise.
19367         (insert_temp_slot_address): Likewise.
19368         (assign_stack_temp_for_type): Likewise.
19369         (get_hard_reg_initial_val): Likewise.
19370         (allocate_struct_function): Likewise.
19371         (prepare_function_start): Likewise.
19372         (types_used_by_var_decl_insert): Likewise.
19373         * gengtype.c (variable_size_p): Remove function.
19374         (enum alloc_quantity): Remove enum.
19375         (write_typed_alloc_def): Remove function.
19376         (write_typed_struct_alloc_def): Likewise.
19377         (write_typed_typedef_alloc_def): Likewise.
19378         (write_typed_alloc_defns): Likewise.
19379         (main): Adjust.
19380         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19381         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19382         * ggc.h (ggc_alloc): new function.
19383         (ggc_cleared_alloc): Likewise.
19384         (ggc_vec_alloc): Template on type of vector element, and remove
19385         element size argument.
19386         (ggc_cleared_vec_alloc): Likewise.
19387         * gimple.c (gimple_build_omp_for): Adjust.
19388         (gimple_copy): Likewise.
19389         * ipa-cp.c (get_replacement_map): Likewise.
19390         (find_aggregate_values_for_callers_subset): Likewise.
19391         (known_aggs_to_agg_replacement_list): Likewise.
19392         * ipa-devirt.c (get_odr_type): Likewise.
19393         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19394         (read_agg_replacement_chain): Likewise.
19395         * loop-iv.c (get_simple_loop_desc): Likewise.
19396         * lto-cgraph.c (input_node_opt_summary): Likewise.
19397         * lto-section-in.c (lto_new_in_decl_state): Likewise.
19398         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19399         (input_eh_region): Likewise.
19400         (input_eh_lp): Likewise.
19401         (input_cfg): Likewise.
19402         * optabs.c (set_optab_libfunc): Likewise.
19403         (init_tree_optimization_optabs): Likewise.
19404         (set_conv_libfunc): Likewise.
19405         * passes.c (do_per_function_toporder): Likewise.
19406         * rtl.h: Don't use variable_size gty attribute.
19407         * sese.c (if_region_set_false_region): Adjust.
19408         * stringpool.c (gt_pch_save_stringpool): Likewise.
19409         * target-globals.c (save_target_globals): Likewise.
19410         * toplev.c (general_init): Likewise.
19411         * trans-mem.c (record_tm_replacement): Likewise.
19412         (split_bb_make_tm_edge): Likewise.
19413         * tree-cfg.c (move_sese_region_to_fn): Likewise.
19414         * tree-data-ref.h (lambda_vector_new): Likewise.
19415         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19416         * tree-iterator.c (tsi_link_before): Likewise.
19417         (tsi_link_after): Likewise.
19418         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19419         * tree-ssa-loop-niter.c (record_estimate): Likewise.
19420         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19421         * tree-ssa-operands.h: Don't use variable_size gty attribute.
19422         * tree-ssa.c (init_tree_ssa): Adjust.
19423         * tree-ssanames.c (set_range_info): Likewise.
19424         (get_ptr_info): Likewise.
19425         (duplicate_ssa_name_ptr_info): Likewise.
19426         (duplicate_ssa_name_range_info): Likewise.
19427         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19428         (unpack_ts_fixed_cst_value_fields): Likewise.
19429         * tree.c (build_fixed): Likewise.
19430         (build_real): Likewise.
19431         (build_string): Likewise.
19432         (decl_priority_info): Likewise.
19433         (decl_debug_expr_insert): Likewise.
19434         (decl_value_expr_insert): Likewise.
19435         (decl_debug_args_insert): Likewise.
19436         (type_hash_add): Likewise.
19437         (build_omp_clause): Likewise.
19438         * ubsan.c (decl_for_type_insert): Likewise.
19439         * varasm.c (get_unnamed_section): Likewise.
19440         (get_noswitch_section): Likewise.
19441         (get_section): Likewise.
19442         (get_block_for_section): Likewise.
19443         (create_block_symbol): Likewise.
19444         (build_constant_desc): Likewise.
19445         (create_constant_pool): Likewise.
19446         (force_const_mem): Likewise.
19447         (record_tm_clone_pair): Likewise.
19448         * varpool.c (varpool_create_empty_node): Likewise.
19449
19450 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19451
19452         * dwarf2out.c (tree_add_const_value_attribute): Call
19453         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19454         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19455         instead of ggc_internal_<x>alloc_stat.
19456         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19457         (ggc_realloc): Likewise.
19458         * ggc-none.c (ggc_internal_alloc): Likewise.
19459         (ggc_internal_cleared_alloc): Likewise.
19460         * ggc-page.c: Likewise.
19461         * ggc.h (ggc_internal_alloc_stat): Likewise.
19462         (ggc_internal_alloc): Remove macro.
19463         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19464         (ggc_internal_cleared_alloc): Remove macro.
19465         (GGC_RESIZEVEC): Adjust.
19466         (ggc_resizevar): Remove macro.
19467         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19468         (ggc_internal_cleared_vec_alloc_stat): Likewise.
19469         (ggc_internal_vec_cleared_alloc): Remove macro.
19470         (ggc_alloc_atomic_stat): Drop _stat suffix.
19471         (ggc_alloc_atomic): Remove macro.
19472         (ggc_alloc_cleared_atomic): Remove macro.
19473         (ggc_alloc_string_stat): Drop _stat suffix.
19474         (ggc_alloc_string): Remove macro.
19475         (ggc_alloc_rtx_def_stat): Adjust.
19476         (ggc_alloc_tree_node_stat): Likewise.
19477         (ggc_alloc_cleared_tree_node_stat): Likewise.
19478         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19479         (ggc_alloc_cleared_simd_clone_stat): Likewise.
19480         * gimple.c (gimple_build_omp_for): Likewise.
19481         (gimple_copy): Likewise.
19482         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19483         * toplev.c (realloc_for_line_map): Adjust.
19484         * tree-data-ref.h (lambda_vector_new): Likewise.
19485         * tree-phinodes.c (allocate_phi_node): Likewise.
19486         * tree.c (grow_tree_vec_stat): Likewise.
19487         * vec.h (va_gc::reserve): Adjust.
19488
19489 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
19490
19491         * config/microblaze/microblaze.c (break_handler): New Declaration.
19492         (microblaze_break_function_p,microblaze_is_break_handler): New.
19493         (compute_frame_size): Use microblaze_break_function_p.
19494         Add the test of break_handler.
19495         (microblaze_function_prologue) : Add the test of variable
19496         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
19497         (microblaze_function_epilogue) : Add the test of break_handler.
19498         (microblaze_globalize_label) : Add the test of break_handler.
19499         Check the name by BREAK_HANDLER_NAME.
19500
19501         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19502
19503         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19504         microblaze_is_break_handler test.
19505         (call_internal1,call_value_intern): Use microblaze_break_function_p.
19506         Use SYMBOL_REF_DECL.
19507
19508         * config/microblaze/microblaze-protos.h
19509         (microblaze_break_function_p,microblaze_is_break_handler):
19510         New Declaration.
19511
19512         * doc/extend.texi (MicroBlaze break_handler Functions): Document
19513         new MicroBlaze break_handler functions.
19514
19515 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
19516
19517         * doc/extend.texi (Size of an asm): Move node text according
19518         to its @menu entry position.
19519
19520 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
19521
19522         PR tree-optimization/61140
19523         PR tree-optimization/61150
19524         PR tree-optimization/61197
19525         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19526
19527 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
19528
19529         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
19530
19531 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
19532
19533         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19534         __SIZEOF_INT128__ is defined.
19535
19536 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
19537
19538         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19539         (rs6000_delegitimize_address): Use it.
19540
19541 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
19542
19543         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19544         inplace argument.  Store the new address in the original MEM when true.
19545         * emit-rtl.c (change_address_1): Likewise.
19546         (adjust_address_1, adjust_automodify_address_1, offset_address):
19547         Update accordingly.
19548         * rtl.h (plus_constant): Add an inplace argument.
19549         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
19550         when true.  Avoid generating (plus X (const_int 0)).
19551         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19552         in-place.  Pass true to plus_constant.
19553         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19554
19555 2014-05-16  Dehao Chen  <dehao@google.com>
19556
19557         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19558
19559 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
19560
19561         PR target/54089
19562         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19563         patterns.
19564         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19565
19566 2014-05-16  Dehao Chen  <dehao@google.com>
19567
19568         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19569         optimize_function_for_size_p.
19570         * regs.h (REG_FREQ_FROM_BB): Likewise.
19571
19572 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
19573
19574         PR target/51244
19575         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19576         negt_reg_operand cases.
19577         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19578         predicate.
19579         * config/sh/predicates.md (cbranch_treg_value): Simplify.
19580
19581 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
19582
19583         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19584         target variants.
19585
19586 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
19587
19588         Revert:
19589         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
19590
19591         * tree-cfg.c (dump_function_to_file): Dump the return type of
19592         functions, in a line to itself before the function body, mimicking
19593         the layout of a C function.
19594
19595 2014-05-16  Dehao Chen  <dehao@google.com>
19596
19597         * cfghooks.c (make_forwarder_block): Use direct computation to
19598         get fall-through edge's count and frequency.
19599
19600 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
19601
19602         * config/arc/arc.c (arc_init): Fix typo in error message.
19603         * config/i386/i386.c (ix86_expand_builtin): Likewise.
19604         (split_stack_prologue_scratch_regno): Likewise.
19605         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19606         word from error message.
19607
19608 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19609
19610         * ira-costs.c: Fix typo in comment.
19611
19612 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
19613
19614         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19615
19616 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
19617
19618         * varpool.c (dump_varpool_node): Dump write-only flag.
19619         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19620         write-only flag.
19621         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19622         write-only variables.
19623         * ipa.c (process_references): New function.
19624         (set_readonly_bit): New function.
19625         (set_writeonly_bit): New function.
19626         (clear_addressable_bit): New function.
19627         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19628         fix handling of aliases.
19629         * cgraph.h (struct varpool_node): Add writeonly flag.
19630
19631 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
19632
19633         PR rtl-optimization/60969
19634         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19635         Calculate costs for this case.
19636
19637 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19638
19639         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19640         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19641
19642 2014-05-16  Richard Biener  <rguenther@suse.de>
19643
19644         PR tree-optimization/61194
19645         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19646         bool patterns ending in a COND_EXPR.
19647
19648 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19649
19650         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19651
19652 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19653
19654         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19655         where we were unable to cost an RTX.
19656
19657 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19658
19659         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19660         HIGH, LO_SUM.
19661
19662 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19663             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19664
19665         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19666
19667 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19668             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19669
19670         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19671         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19672
19673 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19674             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19675
19676         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19677         operators.
19678
19679 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19680             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19681
19682         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19683         DIV/MOD.
19684
19685 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19686             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19687
19688         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19689         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19690
19691 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19692             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19693
19694         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19695         rotates and shifts.
19696
19697 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19698             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19699
19700         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19701         ZERO_EXTEND and SIGN_EXTEND better.
19702
19703 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19704             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19705
19706         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19707         logical operations.
19708
19709 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19710             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19711
19712         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19713         costs when costing loads and stores to memory.
19714
19715 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19716             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
19717
19718         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19719         for SET RTX.
19720
19721 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19722
19723         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
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_strip_shift_or_extend): Rename
19729         to...
19730         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19731         well formed.
19732         (aarch64_rtx_mult_cost): New.
19733         (aarch64_rtx_costs): Use it, refactor as appropriate.
19734
19735 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19736             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19737
19738         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19739         emit instructions, return number of instructions which would
19740         be emitted.
19741         (aarch64_add_constant): Update call to aarch64_build_constant.
19742         (aarch64_output_mi_thunk): Likewise.
19743         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19744         a CONST_DOUBLE.
19745
19746 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19747
19748         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19749         (TARGET_RTX_COSTS): Call it.
19750
19751 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19752
19753         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19754         (cortexa57_vector_cost): Likewise.
19755         (cortexa57_tunings): Use them.
19756
19757 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19758
19759         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19760         (cpu_addrcost_table): Use it.
19761         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19762         (aarch64_address_cost): Rewrite using aarch64_classify_address,
19763         move it.
19764
19765 2014-05-16  Richard Biener  <rguenther@suse.de>
19766
19767         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19768         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19769         (visit_phi): Ignore edges marked as not executable.
19770         (class cond_dom_walker): New.
19771         (cond_dom_walker::before_dom_children): Value-number
19772         control statements and mark successor edges as not
19773         executable if possible.
19774         (run_scc_vn): First walk all control statements in
19775         dominator order, marking edges as not executable.
19776         * tree-inline.c (copy_edges_for_bb): Be not confused
19777         about random edge flags.
19778
19779 2014-05-16  Richard Biener  <rguenther@suse.de>
19780
19781         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19782
19783 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
19784
19785         PR target/61193
19786         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19787         (__TM_simple_begin): Use it.
19788         (__TM_begin): Likewise.
19789
19790 2014-05-15  Martin Jambor  <mjambor@suse.cz>
19791
19792         PR ipa/61085
19793         * ipa-prop.c (update_indirect_edges_after_inlining): Check
19794         type_preserved flag when the indirect edge is polymorphic.
19795
19796 2014-05-15  Martin Jambor  <mjambor@suse.cz>
19797
19798         PR tree-optimization/61090
19799         * tree-sra.c (sra_modify_expr): Pass the current gsi to
19800         build_ref_for_model.
19801
19802 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19803
19804         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19805         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19806
19807 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
19808
19809         PR tree-optimization/61158
19810         * fold-const.c (fold_binary_loc): If X is zero-extended and
19811         shiftc >= prec, make sure zerobits is all ones instead of
19812         invoking undefined behavior.
19813
19814 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19815
19816         * regcprop.h: New file.
19817         * regcprop.c (skip_debug_insn_p): New decl.
19818         (replace_oldest_value_reg): Check skip_debug_insn_p.
19819         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19820         * shrink-wrap.c: Include regcprop.h.
19821         (prepare_shrink_wrap): Call
19822         copyprop_hardreg_forward_bb_without_debug_insn.
19823
19824 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19825
19826         * shrink-wrap.h: Update comment.
19827         * shrink-wrap.c: Update comment.
19828         (next_block_for_reg): Rename to live_edge_for_reg.
19829         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19830         (move_insn_for_shrink_wrap): Split live_edge.
19831         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19832
19833 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
19834
19835         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19836         Delete.
19837         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19838         * config/sparc/sparc.md (fptype_ut699): New attribute.
19839         (in_branch_delay): Return false if -mfix-ut699 is specified and
19840         fptype_ut699 is set to single.
19841         (truncdfsf2): Add fptype_ut699 attribute.
19842         (fix_truncdfsi2): Likewise.
19843         (floatsisf2): Change fptype attribute.
19844         (fix_truncsfsi2): Likewise.
19845         (negtf2_notv9): Delete.
19846         (negtf2_v9): Likewise.
19847         (negtf2_hq): New instruction.
19848         (negtf2): New instruction and splitter.
19849         (negdf2_notv9): Rewrite.
19850         (abstf2_notv9): Delete.
19851         (abstf2_hq_v9): Likewise.
19852         (abstf2_v9): Likewise.
19853         (abstf2_hq): New instruction.
19854         (abstf2): New instruction and splitter.
19855         (absdf2_notv9): Rewrite.
19856
19857 2014-05-14  Cary Coutant  <ccoutant@google.com>
19858
19859         PR debug/61013
19860         * opts.c (common_handle_option): Don't special-case "-g".
19861         (set_debug_level): Default to at least level 2 with "-g".
19862
19863 2014-05-14  DJ Delorie  <dj@redhat.com>
19864
19865         * config/msp430/msp430.c (msp430_builtin): Add
19866         MSP430_BUILTIN_DELAY_CYCLES.
19867         (msp430_init_builtins): Register void __delay_cycles(long long).
19868         (msp430_builtin_decl): Add it.
19869         (cg_magic_constant): New.
19870         (msp430_expand_delay_cycles): New.
19871         (msp430_expand_builtin): Call it.
19872         (msp430_print_operand_raw): Change integer printing from "int" to
19873         HOST_WIDE_INT.
19874         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19875         (delay_cycles_start): New.
19876         (delay_cycles_end): New.
19877         (delay_cycles_32): New.
19878         (delay_cycles_32x): New.
19879         (delay_cycles_16): New.
19880         (delay_cycles_16x): New.
19881         (delay_cycles_2): New.
19882         (delay_cycles_1): New.
19883         * doc/extend.texi: Document __delay_cycles().
19884
19885 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
19886
19887         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19888         length attribute computation.
19889
19890 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
19891
19892         PR debug/61188
19893         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19894
19895 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
19896
19897         PR target/61084
19898         * config/sparc/sparc.md: Fix types of low and high in DI constant
19899         splitter.  Use gen_int_mode in some other splitters.
19900
19901 2014-05-14  Martin Jambor  <mjambor@suse.cz>
19902
19903         PR ipa/60897
19904         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19905
19906 2014-05-14  James Norris  <jnorris@codesourcery.com>
19907
19908         * omp-low.c (expand_parallel_call): Remove shadow variable.
19909         (expand_omp_taskreg): Likewise.
19910
19911 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
19912
19913         * common/config/i386/i386-common.c
19914         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19915         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19916         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19917         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19918         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19919         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19920         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19921         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19922         xsavecintrin.h, xsavesintrin.h.
19923         (x86_64-*-*): Ditto.
19924         * config/i386/clflushoptintrin.h: New.
19925         * config/i386/xsavecintrin.h: Ditto.
19926         * config/i386/xsavesintrin.h: Ditto.
19927         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19928         (bit_XSAVES): Ditto.
19929         (bit_XSAVES): Ditto.
19930         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19931         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19932         -mno-clflushopt.
19933         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19934         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19935         OPTION_MASK_ISA_XSAVES.
19936         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19937         -mxsavec, -mxsaves.
19938         (PTA_CLFLUSHOPT) Define.
19939         (PTA_XSAVEC): Ditto.
19940         (PTA_XSAVES): Ditto.
19941         (ix86_option_override_internal): Handle new options.
19942         (ix86_valid_target_attribute_inner_p): Ditto.
19943         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19944         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19945         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19946         (bdesc_special_args): Add __builtin_ia32_xsaves,
19947         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19948         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19949         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19950         (ix86_expand_builtin): Handle new builtins.
19951         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19952         (TARGET_CLFLUSHOPT_P): Ditto.
19953         (TARGET_XSAVEC): Ditto.
19954         (TARGET_XSAVEC_P): Ditto.
19955         (TARGET_XSAVES): Ditto.
19956         (TARGET_XSAVES_P): Ditto.
19957         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19958         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19959         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19960         (ANY_XRSTOR): New.
19961         (ANY_XRSTOR64): Ditto.
19962         (xrstor): Ditto.
19963         (xrstor): Change into <xrstor>.
19964         (xrstor_rex64): Change into <xrstor>_rex64.
19965         (xrstor64): Change into <xrstor>64
19966         (clflushopt): New.
19967         * config/i386/i386.opt (mclflushopt): New.
19968         (mxsavec): Ditto.
19969         (mxsaves): Ditto.
19970         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19971         xsavecintrin.h.
19972         * doc/invoke.texi: Document new options.
19973
19974 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
19975
19976         PR rtl-optimization/60866
19977         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19978         Default it to -1.  Pass it down to init_simplejump_data.
19979         (init_simplejump_data): New parameter old_seqno.  Pass it down
19980         to get_seqno_for_a_jump.
19981         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
19982         initializing new jump seqno as a last resort.  Add comment.
19983         (sel_redirect_edge_and_branch): Save old seqno of the conditional
19984         jump and pass it down to sel_init_new_insn.
19985         (sel_redirect_edge_and_branch_force): Likewise.
19986
19987 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
19988
19989         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19990         shifted values to avoid build warning.
19991
19992 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
19993
19994         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19995         * cfgrtl.c (rtl_merge_blocks): Fix comment.
19996         (cfg_layout_merge_blocks): Likewise.
19997         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19998
19999 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20000
20001         PR rtl-optimization/60901
20002         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20003         bb predecessor belongs to the same scheduling region.  Adjust comment.
20004
20005 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
20006
20007         * doc/sourcebuild.texi: (dfp_hw): Document.
20008         (p8vector_hw): Likewise.
20009         (powerpc_eabi_ok): Likewise.
20010         (powerpc_elfv2): Likewise.
20011         (powerpc_htm_ok): Likewise.
20012         (ppc_recip_hw): Likewise.
20013         (vsx_hw): Likewise.
20014
20015 2014-05-13  Cary Coutant  <ccoutant@google.com>
20016
20017         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20018
20019 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
20020
20021         * gengtype-parse.c (require3): Eliminate in favor of...
20022         (require4): New.
20023         (require_template_declaration): Update to support optional single *
20024         on a type.
20025
20026         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20027         (create_user_defined_type): Handle a single level of explicit
20028         pointerness within template arguments.
20029         (struct write_types_data): Add field "kind".
20030         (filter_type_name): Handle "*" character.
20031         (write_user_func_for_structure_ptr): Require a write_types_data
20032         rather than just a prefix string, so that we can look up the kind
20033         of the wtd and use it as an index into wrote_user_func_for_ptr,
20034         ensuring that such functions are written at most once.  Support
20035         subclasses by invoking the marking function of the ultimate base class.
20036         (write_user_func_for_structure_body): Require a write_types_data
20037         rather than just a prefix string, so that we can pass this to
20038         write_user_func_for_structure_ptr.
20039         (write_func_for_structure): Likewise.
20040         (ggc_wtd): Add initializer of new "kind" field.
20041         (pch_wtd): Likewise.
20042
20043         * gengtype.h (enum write_types_kinds): New.
20044         (struct type): Add field wrote_user_func_for_ptr to the "s"
20045         union member.
20046
20047 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
20048
20049         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20050         instead of const_binop.
20051         (fold_binary_loc): Likewise.
20052
20053 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
20054
20055         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20056         calculation to match get_ref_base_and_extent.
20057
20058 2014-05-13  Catherine Moore  <clm@codesourcery.com>
20059             Sandra Loosemore  <sandra@codesourcery.com>
20060
20061         * configure.ac: Fix assembly for explicit JALR relocation check.
20062         * configure: Regenerate.
20063
20064 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20065
20066         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20067         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20068         Remove associated type declarations and initialisations.
20069         (arm_expand_neon_builtin): Likewise.
20070         (neon_emit_pair_result_insn): Delete.
20071         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20072         * config/arm/neon.md (neon_vtrn<mode>): Delete.
20073         (neon_vzip<mode>): Likewise.
20074         (neon_vuzp<mode>): Likewise.
20075
20076 2014-05-13  Richard Biener  <rguenther@suse.de>
20077
20078         PR ipa/60973
20079         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20080         it needs revisiting whether the call still may be tail-called.
20081
20082 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20083
20084         * rtl.def (SYMBOL_REF): Remove middle "0" field.
20085         * rtl.h (block_symbol): Reduce number of fields to 2.
20086         (rtx_def): Add u2.symbol_ref_flags.
20087         (SYMBOL_REF_FLAGS): Use it.
20088         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20089         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20090         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20091         Lower index of SYMBOL_REF_DATA.
20092         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20093         Print SYMBOL_REF_FLAGS at the same time.
20094         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20095
20096 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20097
20098         * rtl.def (VAR_LOCATION): Remove "i" field.
20099         * rtl.h (rtx_def): Add u2.var_location_status.
20100         (PAT_VAR_LOCATION_STATUS): Use it.
20101         (gen_rtx_VAR_LOCATION): Declare.
20102         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20103         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20104         * var-tracking.c (emit_note_insn_var_location): Remove casts.
20105
20106 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20107
20108         * rtl.def (scratch): Fix outdated comment and remove "0" field.
20109         * gengtype.c (adjust_field_rtx_def): Update accordingly.
20110
20111 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20112
20113         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20114         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20115         * rtl.h (rtx_def): Add insn_uid to u2 field.
20116         (RTX_FLAG_CHECK8): Delete in favor of...
20117         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20118         (INSN_DELETED_P): Update accordingly.
20119         (INSN_UID): Use u2.insn_uid.
20120         (INSN_CHAIN_CODE_P): Define.
20121         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20122         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20123         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20124         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20125         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20126         indices accordingly.
20127         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20128         Update indices for insn-chain rtxes.
20129         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20130         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20131         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20132         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20133         * combine.c (try_combine): Likewise.
20134         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20135
20136 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20137
20138         * rtl.def (REG): Remove middle field.
20139         * rtl.h (rtx_def): Add orignal_regno to u2.
20140         (ORIGINAL_REGNO): Use it instead of field 1.
20141         (REG_ATTRS): Lower field index accordingly.
20142         * gengtype.c (adjust_field_rtx_def): Remove handling of
20143         ORIGINAL_REGNO.  Move REG_ATTRS index down.
20144         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20145         code that prints the REGNO.
20146
20147 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20148
20149         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20150         GENERATOR_FILE.
20151
20152 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20153
20154         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20155
20156 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
20157
20158         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20159         (alloc_iv): Lower base expressions containing ADDR_EXPR.
20160
20161 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
20162
20163         * config/aarch64/aarch64-protos.h
20164         (aarch64_hard_regno_caller_save_mode): New prototype.
20165         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20166         New function.
20167         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20168
20169 2014-05-13  Christian Bruel  <christian.bruel@st.com>
20170
20171         * target.def (mode_switching): New hook vector.
20172         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20173         (mode_exit, modepriority_to_mode): Likewise.
20174         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20175         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20176         * target.h: Include tm.h and hard-reg-set.h.
20177         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20178         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20179         * doc/tm.texi Regenerate.
20180         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20181         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20182         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20183         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20184         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20185         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20186         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20187         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20188         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20189         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20190         (ix86_emit_mode_set): Hookify.
20191         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20192         Delete.
20193         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20194         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20195         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20196         (epiphany_mode_priority_to_mode): Remove declaration.
20197         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20198         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20199         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20200         Likewise.
20201         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
20202         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20203         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20204
20205 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
20206
20207         PR target/61060
20208         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20209         is const0_rtx, return immediately.  Don't test count == 0 when
20210         it is always true.
20211
20212 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20213
20214         * Makefile.in: add shrink-wrap.o.
20215         * config/i386/i386.c: include "shrink-wrap.h"
20216         * function.c: Likewise.
20217         (requires_stack_frame_p, next_block_for_reg,
20218         move_insn_for_shrink_wrap, prepare_shrink_wrap,
20219         dup_block_and_redirect): Move to shrink-wrap.c
20220         (thread_prologue_and_epilogue_insns): Extract three code segments
20221         as functions in shrink-wrap.c
20222         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20223         shrink-wrap.h
20224         * shrink-wrap.c: New file.
20225         * shrink-wrap.h: New file.
20226
20227 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
20228
20229         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
20230         reference to Solaris.
20231
20232 2014-05-12  Mike Stump  <mikestump@comcast.net>
20233
20234         PR other/31778
20235         * genattrtab.c (filename): Add.
20236         (convert_set_attr_alternative): Improve error message.
20237         (check_defs): Restore read_md_filename for error messages.
20238         (gen_insn): Save filename.
20239
20240 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
20241
20242         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20243         -fno-local-ivars and -fivar-visibility.
20244         * c-family/c.opt: Make -Wshadow also implicitly enable
20245         -Wshadow-ivar.
20246
20247 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
20248
20249         * doc/tm.texi: Remove reference to deleted macro.
20250         * doc/tm.texi.in: Likewise.
20251
20252 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20253
20254         PR target/60991
20255         * config/avr/avr.c (avr_out_store_psi): Use correct constant
20256         to restore Y.
20257
20258 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
20259
20260         PR libgcc/61152
20261         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20262         * config/arm/aout.h (License): Same.
20263         * config/arm/bpabi.h (License): Same.
20264         * config/arm/elf.h (License): Same.
20265         * config/arm/linux-elf.h (License): Same.
20266         * config/arm/linux-gas.h (License): Same.
20267         * config/arm/netbsd-elf.h (License): Same.
20268         * config/arm/uclinux-eabi.h (License): Same.
20269         * config/arm/uclinux-elf.h (License): Same.
20270         * config/arm/vxworks.h (License): Same.
20271
20272 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
20273
20274         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20275         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20276         number of operands to 3.
20277         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20278         * tree-nested.c (convert_nonlocal_omp_clauses,
20279         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20280         * gimplify.c (gimplify_scan_omp_clauses): Handle
20281         OMP_CLAUSE_LINEAR_STMT.
20282         * omp-low.c (lower_rec_input_clauses): Fix typo.
20283         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20284         cast between Fortran boolean_type_node and C _Bool if
20285         needed.
20286
20287 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
20288
20289         PR tree-optimization/61136
20290         * wide-int.h (multiple_of_p): Define a version that doesn't return
20291         the quotient.
20292         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20293         integer_zerop/const_binop pair.
20294         (multiple_of_p): Likewise, converting both operands to widest_int
20295         precision.
20296
20297 2014-05-09  Teresa Johnson  <tejohnson@google.com>
20298
20299         * cgraphunit.c (analyze_functions): Use correct dump file.
20300
20301 2014-05-09  Florian Weimer  <fweimer@redhat.com>
20302
20303         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20304         expand_used_vars.
20305         (stack_protect_return_slot_p): New function.
20306         (expand_used_vars): Call stack_protect_decl_p and
20307         stack_protect_return_slot_p for -fstack-protector-strong.
20308
20309 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
20310         Andrew Haley <aph@redhat.com>
20311         Richard Sandiford <rdsandiford@googlemail.com>
20312
20313         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20314         pages.
20315
20316 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
20317
20318         PR middle-end/61111
20319         * fold-const.c (fold_binary_loc): Changed width of mask.
20320
20321 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
20322
20323         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20324         unsigned int initializers for regno_in, regno_out.
20325
20326 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
20327
20328         PR target/61055
20329         * config/avr/avr.md (cc): Add new attribute set_vzn.
20330         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20331         Set cc insn attribute to set_vzn instead of set_zn for alternatives
20332         with INC, DEC or NEG.
20333         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20334         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20335         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20336
20337 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20338
20339         Revert:
20340         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20341
20342         * wide-int.cc (UTItype): Define.
20343         (UDWtype): Define for appropriate W_TYPE_SIZE.
20344
20345 2014-05-09  Richard Biener  <rguenther@suse.de>
20346
20347         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20348         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20349         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20350         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20351         ssa_propagate): Adjust.
20352
20353 2014-05-08  Jeff Law  <law@redhat.com>
20354
20355         PR tree-optimization/61009
20356         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20357         tri-state rather than a boolean.  When a block is too big to
20358         thread through, inform caller via negative return value.
20359         (thread_across_edge): If a block was too big for normal threading,
20360         then it's too big for a joiner too, so remove temporary equivalences
20361         and return immediately.
20362
20363 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20364             Matthias Klose  <doko@ubuntu.com>
20365
20366         PR driver/61106
20367         * optc-gen.awk: Fix option handling for -Wunused-parameter.
20368
20369 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
20370
20371         PR target/59952
20372         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20373
20374 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
20375
20376         PR target/61092
20377         * config/alpha/alpha.c: Include gimple-iterator.h.
20378         (alpha_gimple_fold_builtin): New function.  Move
20379         ALPHA_BUILTIN_UMULH folding from ...
20380         (alpha_fold_builtin): ... here.
20381         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20382
20383 2014-05-08  Wei Mi  <wmi@google.com>
20384
20385         PR target/58066
20386         * config/i386/i386.c (ix86_compute_frame_layout): Update
20387         preferred_stack_boundary for call, expanded from tls descriptor.
20388         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20389         to depend on SP register.
20390         (*tls_local_dynamic_base_32_gnu): Ditto.
20391         (*tls_local_dynamic_32_once): Ditto.
20392         (tls_global_dynamic_64_<mode>): Set
20393         ix86_tls_descriptor_calls_expanded_in_cfun.
20394         (tls_local_dynamic_base_64_<mode>): Ditto.
20395         (tls_global_dynamic_32): Set
20396         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20397         to depend on SP register.
20398         (tls_local_dynamic_base_32): Ditto.
20399
20400 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20401
20402         * config/arm/arm_neon.h: Update comment.
20403         * config/arm/neon-docgen.ml: Delete.
20404         * config/arm/neon-gen.ml: Delete.
20405         * doc/arm-neon-intrinsics.texi: Update comment.
20406
20407 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20408
20409         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20410         and v4sf versions.
20411         (vand, vorr, veor, vorn, vbic): Remove.
20412         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20413         iterator.
20414         (neon_vsub_unspec): Likewise.
20415         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20416
20417 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20418
20419         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20420         (vadd_s16): Likewise.
20421         (vadd_s32): Likewise.
20422         (vadd_f32): Likewise.
20423         (vadd_u8): Likewise.
20424         (vadd_u16): Likewise.
20425         (vadd_u32): Likewise.
20426         (vadd_s64): Likewise.
20427         (vadd_u64): Likewise.
20428         (vaddq_s8): Likewise.
20429         (vaddq_s16): Likewise.
20430         (vaddq_s32): Likewise.
20431         (vaddq_s64): Likewise.
20432         (vaddq_f32): Likewise.
20433         (vaddq_u8): Likewise.
20434         (vaddq_u16): Likewise.
20435         (vaddq_u32): Likewise.
20436         (vaddq_u64): Likewise.
20437         (vmul_s8): Likewise.
20438         (vmul_s16): Likewise.
20439         (vmul_s32): Likewise.
20440         (vmul_f32): Likewise.
20441         (vmul_u8): Likewise.
20442         (vmul_u16): Likewise.
20443         (vmul_u32): Likewise.
20444         (vmul_p8): Likewise.
20445         (vmulq_s8): Likewise.
20446         (vmulq_s16): Likewise.
20447         (vmulq_s32): Likewise.
20448         (vmulq_f32): Likewise.
20449         (vmulq_u8): Likewise.
20450         (vmulq_u16): Likewise.
20451         (vmulq_u32): Likewise.
20452         (vsub_s8): Likewise.
20453         (vsub_s16): Likewise.
20454         (vsub_s32): Likewise.
20455         (vsub_f32): Likewise.
20456         (vsub_u8): Likewise.
20457         (vsub_u16): Likewise.
20458         (vsub_u32): Likewise.
20459         (vsub_s64): Likewise.
20460         (vsub_u64): Likewise.
20461         (vsubq_s8): Likewise.
20462         (vsubq_s16): Likewise.
20463         (vsubq_s32): Likewise.
20464         (vsubq_s64): Likewise.
20465         (vsubq_f32): Likewise.
20466         (vsubq_u8): Likewise.
20467         (vsubq_u16): Likewise.
20468         (vsubq_u32): Likewise.
20469         (vsubq_u64): Likewise.
20470         (vand_s8): Likewise.
20471         (vand_s16): Likewise.
20472         (vand_s32): Likewise.
20473         (vand_u8): Likewise.
20474         (vand_u16): Likewise.
20475         (vand_u32): Likewise.
20476         (vand_s64): Likewise.
20477         (vand_u64): Likewise.
20478         (vandq_s8): Likewise.
20479         (vandq_s16): Likewise.
20480         (vandq_s32): Likewise.
20481         (vandq_s64): Likewise.
20482         (vandq_u8): Likewise.
20483         (vandq_u16): Likewise.
20484         (vandq_u32): Likewise.
20485         (vandq_u64): Likewise.
20486         (vorr_s8): Likewise.
20487         (vorr_s16): Likewise.
20488         (vorr_s32): Likewise.
20489         (vorr_u8): Likewise.
20490         (vorr_u16): Likewise.
20491         (vorr_u32): Likewise.
20492         (vorr_s64): Likewise.
20493         (vorr_u64): Likewise.
20494         (vorrq_s8): Likewise.
20495         (vorrq_s16): Likewise.
20496         (vorrq_s32): Likewise.
20497         (vorrq_s64): Likewise.
20498         (vorrq_u8): Likewise.
20499         (vorrq_u16): Likewise.
20500         (vorrq_u32): Likewise.
20501         (vorrq_u64): Likewise.
20502         (veor_s8): Likewise.
20503         (veor_s16): Likewise.
20504         (veor_s32): Likewise.
20505         (veor_u8): Likewise.
20506         (veor_u16): Likewise.
20507         (veor_u32): Likewise.
20508         (veor_s64): Likewise.
20509         (veor_u64): Likewise.
20510         (veorq_s8): Likewise.
20511         (veorq_s16): Likewise.
20512         (veorq_s32): Likewise.
20513         (veorq_s64): Likewise.
20514         (veorq_u8): Likewise.
20515         (veorq_u16): Likewise.
20516         (veorq_u32): Likewise.
20517         (veorq_u64): Likewise.
20518         (vbic_s8): Likewise.
20519         (vbic_s16): Likewise.
20520         (vbic_s32): Likewise.
20521         (vbic_u8): Likewise.
20522         (vbic_u16): Likewise.
20523         (vbic_u32): Likewise.
20524         (vbic_s64): Likewise.
20525         (vbic_u64): Likewise.
20526         (vbicq_s8): Likewise.
20527         (vbicq_s16): Likewise.
20528         (vbicq_s32): Likewise.
20529         (vbicq_s64): Likewise.
20530         (vbicq_u8): Likewise.
20531         (vbicq_u16): Likewise.
20532         (vbicq_u32): Likewise.
20533         (vbicq_u64): Likewise.
20534         (vorn_s8): Likewise.
20535         (vorn_s16): Likewise.
20536         (vorn_s32): Likewise.
20537         (vorn_u8): Likewise.
20538         (vorn_u16): Likewise.
20539         (vorn_u32): Likewise.
20540         (vorn_s64): Likewise.
20541         (vorn_u64): Likewise.
20542         (vornq_s8): Likewise.
20543         (vornq_s16): Likewise.
20544         (vornq_s32): Likewise.
20545         (vornq_s64): Likewise.
20546         (vornq_u8): Likewise.
20547         (vornq_u16): Likewise.
20548         (vornq_u32): Likewise.
20549         (vornq_u64): Likewise.
20550
20551 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20552
20553         * wide-int.cc (UTItype): Define.
20554         (UDWtype): Define for appropriate W_TYPE_SIZE.
20555
20556 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
20557
20558         PR tree-optimization/59100
20559         * tree-ssa-phiopt.c: Include tree-inline.h.
20560         (neutral_element_p, absorbing_element_p): New functions.
20561         (value_replacement): Handle conditional binary operations with a
20562         neutral or absorbing element.
20563
20564 2014-05-08  Richard Biener  <rguenther@suse.de>
20565
20566         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20567         folding the expression.
20568         (valueize_expr): Remove.
20569         (visit_reference_op_load): Do not valueize the result of
20570         vn_get_expr_for.
20571         (simplify_binary_expression): Likewise.
20572         (simplify_unary_expression): Likewise.
20573
20574 2014-05-08  Richard Biener  <rguenther@suse.de>
20575
20576         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20577         looking at TYPE_ARG_TYPES.
20578
20579 2014-05-08  Richard Biener  <rguenther@suse.de>
20580
20581         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20582         pointer propagation special-case.
20583
20584 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
20585
20586         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20587         core part of address expressions.
20588
20589 2014-05-08  Alan Modra  <amodra@gmail.com>
20590
20591         PR target/60737
20592         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20593         loads and stores when -mno-strict-align at any alignment.
20594         (expand_block_clear): Similarly.  Also correct calculation of
20595         instruction count.
20596
20597 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20598
20599         PR middle-end/39246
20600         * tree-complex.c (expand_complex_move): Keep line info when expanding
20601         complex move.
20602         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20603         of complex expression. Use new argument to display correct location
20604         for values coming from phi statement.
20605         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20606         (warn_uninitialized_phi): Pass location of phi argument to
20607         warn_uninit.
20608         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20609         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20610
20611 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
20612
20613         * config/rs6000/predicates.md (indexed_address_mem): New.
20614         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20615         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20616         fpstore_ux, fpstore_u.
20617         (sign_extend, indexed, update): New.
20618         (cell_micro): Adjust.
20619         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20620         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20621         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20622         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20623         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20624         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20625         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20626         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20627         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20628         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20629         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20630         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20631         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20632         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20633         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20634
20635         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20636         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20637         *vsx_extract_<mode>_store): Adjust.
20638         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20639         is_cracked_insn, insn_must_be_first_in_group,
20640         insn_must_be_last_in_group): Adjust.
20641
20642         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20643         Adjust.
20644         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20645         ppc440-fpstore): Adjust.
20646         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20647         ppc476-fpstore): Adjust.
20648         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20649         ppc601-fpstore): Adjust.
20650         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20651         Adjust.
20652         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20653         Adjust.
20654         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20655         ppc7450-fpstore): Adjust.
20656         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20657         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20658         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20659         Adjust.
20660         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20661         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20662         cell-fpstore, cell-fpstore-update): Adjust.
20663         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20664         ppce300c3_store, ppce300c3_fpstore): Adjust.
20665         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20666         e500mc_fpstore): Adjust.
20667         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20668         e500mc64_store, e500mc64_fpstore): Adjust.
20669         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20670         e5500_fpstore): Adjust.
20671         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20672         e6500_fpstore): Adjust.
20673         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20674         Adjust.
20675         * config/rs6000/power4.md (power4-load, power4-load-ext,
20676         power4-load-ext-update, power4-load-ext-update-indexed,
20677         power4-load-update-indexed, power4-load-update, power4-fpload,
20678         power4-fpload-update, power4-store, power4-store-update,
20679         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20680         Adjust.
20681         * config/rs6000/power5.md (power5-load, power5-load-ext,
20682         power5-load-ext-update, power5-load-ext-update-indexed,
20683         power5-load-update-indexed, power5-load-update, power5-fpload,
20684         power5-fpload-update, power5-store, power5-store-update,
20685         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20686         Adjust.
20687         * config/rs6000/power6.md (power6-load, power6-load-ext,
20688         power6-load-update, power6-load-update-indexed,
20689         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20690         power6-fpload-update, power6-store, power6-store-update,
20691         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20692         Adjust.
20693         * config/rs6000/power7.md (power7-load, power7-load-ext,
20694         power7-load-update, power7-load-update-indexed,
20695         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20696         power7-fpload-update, power7-store, power7-store-update,
20697         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20698         Adjust.
20699         * config/rs6000/power8.md (power8-load, power8-load-update,
20700         power8-load-ext, power8-load-ext-update, power8-fpload,
20701         power8-fpload-update, power8-store, power8-store-update-indexed,
20702         power8-fpstore, power8-fpstore-update): Adjust.
20703         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20704         Adjust.
20705         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20706         titan_lsu_store, titan_lsu_fpstore): Adjust.
20707         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20708
20709 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
20710
20711         PR target/60884
20712         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20713         unrolled byte insns.  Emit address increments after move insns.
20714
20715 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
20716
20717         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20718         const_gimple, rather than a gimple.
20719         (gimple_call_builtin_p): Likewise, for the three variants.
20720
20721         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20722         (gimple_call_builtin_p): Likewise, for the three variants.
20723
20724 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20725
20726         PR tree-optimization/61095
20727         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20728
20729 2014-05-07  Richard Biener  <rguenther@suse.de>
20730
20731         PR tree-optimization/61034
20732         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20733         (maybe_skip_until): Use translate to take into account
20734         lattices when trying to do disambiguations.
20735         (get_continuation_for_phi_1): Likewise.
20736         (get_continuation_for_phi): Adjust for added translate arguments.
20737         (walk_non_aliased_vuses): Likewise.
20738         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20739         (walk_non_aliased_vuses): Likewise.
20740         (call_may_clobber_ref_p_1): Declare.
20741         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20742         calls.  Stop early if we are only supposed to disambiguate.
20743         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20744
20745 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
20746
20747         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20748         Emit an error when the function has arguments.
20749
20750 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
20751
20752         * cfgloop.h (unswitch_loops): Remove.
20753         * doc/passes.texi: Remove references to loop-unswitch.c
20754         * timevar.def (TV_LOOP_UNSWITCH): Remove.
20755
20756 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
20757
20758         * tree-vect-data-refs.c (vect_grouped_load_supported): New
20759         check for loads group of length 3.
20760         (vect_permute_load_chain): New permutations for loads group of
20761         length 3.
20762         * tree-vect-stmts.c (vect_model_load_cost): Change cost
20763         of vec_perm_shuffle for the new permutations.
20764
20765 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
20766
20767         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20768         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20769         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20770         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20771         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20772         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20773         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20774         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20775
20776 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
20777
20778         * loop-unswitch.c: Delete.
20779
20780 2014-05-07  Richard Biener  <rguenther@suse.de>
20781
20782         * config.gcc: Always set need_64bit_hwint to yes.
20783
20784 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
20785
20786         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20787         of using optimize_size.
20788
20789 2014-05-06  Mike Stump  <mikestump@comcast.net>
20790
20791         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20792
20793 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
20794
20795         * config/i386/sse.md (*mov<mode>_internal)
20796         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20797         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20798         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20799         (*<code><mode>3, *andnot<mode>3<mask_name>)
20800         (<mask_codefor><code><mode>3<mask_name>): Only consider
20801         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20802
20803 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
20804
20805         Revert:
20806         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
20807
20808         * lra-constraints.c (valid_address_p): Move earlier in file.
20809         Add a constraint argument to the address_info version.
20810         (satisfies_memory_constraint_p): New function.
20811         (satisfies_address_constraint_p): Likewise.
20812         (process_alt_operands, curr_insn_transform): Use them.
20813         (process_address): Pass the constraint to valid_address_p when
20814         checking address operands.
20815
20816 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
20817
20818         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20819         to their respective blocks.  Fix inadvertent use of "node".
20820
20821 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
20822
20823         * emit-rtl.c (init_derived_machine_modes): New functionm, split
20824         out from...
20825         (init_emit_once): ...here.
20826         * rtl.h (init_derived_machine_modes): Declare.
20827         * toplev.c (do_compile): Call it even if no_backend.
20828
20829 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
20830             Mike Stump  <mikestump@comcast.net>
20831             Richard Sandiford  <rdsandiford@googlemail.com>
20832             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20833
20834         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20835         (rtx_equal_for_memref_p): Update comment.
20836         (adjust_offset_for_component_ref): Use wide-int interfaces.
20837         * builtins.c (get_object_alignment_2): Likewise.
20838         (c_readstr): Likewise.
20839         (target_char_cast): Add comment.
20840         (determine_block_size): Use wide-int interfaces.
20841         (expand_builtin_signbit): Likewise.
20842         (fold_builtin_int_roundingfn): Likewise.
20843         (fold_builtin_bitop): Likewise.
20844         (fold_builtin_bswap): Likewise.
20845         (fold_builtin_logarithm): Use signop.
20846         (fold_builtin_pow): Likewise.
20847         (fold_builtin_memory_op): Use wide-int interfaces.
20848         (fold_builtin_object_size): Likewise.
20849         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20850         nb_iterations_estimate.
20851         (record_niter_bound): Use wide-int interfaces.
20852         (get_estimated_loop_iterations_int): Likewise.
20853         (get_estimated_loop_iterations): Likewise.
20854         (get_max_loop_iterations): Likewise.
20855         * cfgloop.h: Include wide-int.h.
20856         (struct nb_iter_bound): Change bound to widest_int.
20857         (struct loop): Change nb_iterations_upper_bound and
20858         nb_iterations_estimate to widest_int.
20859         (record_niter_bound): Switch to use widest_int.
20860         (get_estimated_loop_iterations): Likewise.
20861         (get_max_loop_iterations): Likewise.
20862         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20863         update for wide-int.
20864         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20865         * combine.c (try_combine): Likewise.
20866         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20867         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20868         interfaces.
20869         (aarch64_float_const_representable_p): Likewise.
20870         * config/arc/arc.c: Include wide-int.h.
20871         (arc_can_use_doloop_p): Use wide-int interfaces.
20872         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20873         (vfp3_const_double_index): Likewise.
20874         * config/avr/avr.c (avr_out_round): Likewise.
20875         (avr_fold_builtin): Likewise.
20876         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20877         (bfin_can_use_doloop_p): Likewise.
20878         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20879         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20880         * config/i386/i386.c: Include wide-int.h.
20881         (ix86_data_alignment): Use wide-int interfaces.
20882         (ix86_local_alignment): Likewise.
20883         (ix86_emit_swsqrtsf): Update real_from_integer.
20884         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20885         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20886         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20887         (zero_constant): Likewise.
20888         (input_operand): Likewise.
20889         (splat_input_operand): Likewise.
20890         (non_logical_cint_operand): Change const_double to const_wide_int.
20891         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20892         (easy_altivec_constant): Remove comment.
20893         (paired_expand_vector_init): Use CONSTANT_P.
20894         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20895         (rs6000_emit_move): Update checks.
20896         (rs6000_aggregate_candidate): Use wide-int interfaces.
20897         (rs6000_expand_ternop_builtin): Likewise.
20898         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20899         (rs6000_assemble_integer): Likewise.
20900         (rs6000_hash_constant): Likewise.
20901         (output_toc): Likewise.
20902         (rs6000_rtx_costs): Likewise.
20903         (rs6000_emit_swrsqrt); Update call to real_from_integer.
20904         * config/rs6000/rs6000-c.c: Include wide-int.h.
20905         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20906         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20907         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20908         Handle CONST_WIDE_INT.
20909         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20910         Use tree_fits_uhwi_p.
20911         * config/sparc/sparc.c: Include wide-int.h.
20912         (sparc_fold_builtin): Use wide-int interfaces.
20913         * config/vax/vax.c: Include wide-int.h.
20914         (vax_float_literal): Use real_from_integer.
20915         * coretypes.h (struct hwivec_def): New.
20916         (hwivec): New.
20917         (const_hwivec): New.
20918         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20919         (equiv_constant): Handle CONST_WIDE_INT.
20920         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20921         (cselib_hash_rtx): Handle CONST_WIDE_INT.
20922         * dbxout.c (stabstr_U): Use wide-int interfaces.
20923         (dbxout_type): Update to use cst_fits_shwi_p.
20924         * defaults.h (LOG2_BITS_PER_UNIT): Define.
20925         (TARGET_SUPPORTS_WIDE_INT): Add default.
20926         * dfp.c: Include wide-int.h.
20927         (decimal_real_to_integer2): Use wide-int interfaces and rename to
20928         decimal_real_to_integer.
20929         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20930         decimal_real_to_integer.
20931         * doc/generic.texi (Constant expressions): Update for wide_int.
20932         * doc/rtl.texi (const_double): Likewise.
20933         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20934         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20935         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20936         (REAL_VALUE_FROM_INT): Remove.
20937         (TARGET_SUPPORTS_WIDE_INT): New.
20938         * doc/tm.texi: Regenerate.
20939         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20940         * double-int.h: Include wide-int.h.
20941         (struct wi::int_traits): New.
20942         * dwarf2out.c (get_full_len): New.
20943         (dw_val_equal_p): Add case dw_val_class_wide_int.
20944         (size_of_loc_descr): Likewise.
20945         (output_loc_operands): Likewise.
20946         (insert_double): Remove.
20947         (insert_wide_int): New.
20948         (add_AT_wide): New.
20949         (print_die): Add case dw_val_class_wide_int.
20950         (attr_checksum): Likewise.
20951         (attr_checksum_ordered): Likewise.
20952         (same_dw_val_p): Likewise.
20953         (size_of_die): Likewise.
20954         (value_format): Likewise.
20955         (output_die): Likewise.
20956         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20957         Use wide-int.
20958         (clz_loc_descriptor): Use wide-int interfaces.
20959         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
20960         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
20961         (round_up_to_align): Use wide-int interfaces.
20962         (field_byte_offset): Likewise.
20963         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
20964         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
20965         CONST_DOUBLE handling.  Use wide-int interfaces.
20966         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
20967         (gen_enumeration_type_die): Use add_AT_wide.
20968         (hash_loc_operands): Add case dw_val_class_wide_int.
20969         (compare_loc_operands): Likewise.
20970         * dwarf2out.h: Include wide-int.h.
20971         (wide_int_ptr): New.
20972         (enum dw_val_class): Add dw_val_class_wide_int.
20973         (struct dw_val_struct): Add val_wide.
20974         * emit-rtl.c (const_wide_int_htab): New.
20975         (const_wide_int_htab_hash): New.
20976         (const_wide_int_htab_eq): New.
20977         (lookup_const_wide_int): New.
20978         (const_double_htab_hash): Use wide-int interfaces.
20979         (const_double_htab_eq): Likewise.
20980         (rtx_to_double_int): Conditionally compile for wide-int.
20981         (immed_double_int_const): Rename to immed_wide_int_const and
20982         update for wide-int.
20983         (immed_double_const): Conditionally compile for wide-int.
20984         (init_emit_once): Use wide-int interfaces.
20985         * explow.c (plus_constant): Likewise.
20986         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
20987         (lshift_value): Use wide-int interfaces.
20988         (expand_mult): Likewise.
20989         (choose_multiplier): Likewise.
20990         (expand_smod_pow2): Likewise.
20991         (make_tree): Likewise.
20992         * expr.c (convert_modes): Consolidate handling of constants.
20993         Use wide-int interfaces.
20994         (emit_group_load_1): Add note.
20995         (store_expr): Update comment.
20996         (get_inner_reference): Use wide-int interfaces.
20997         (expand_constructor): Update comment.
20998         (expand_expr_real_2): Use wide-int interfaces.
20999         (expand_expr_real_1): Likewise.
21000         (reduce_to_bit_field_precision): Likewise.
21001         (const_vector_from_tree): Likewise.
21002         * final.c: Include wide-int-print.h.
21003         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
21004         * fixed-value.c: Include wide-int.h.
21005         (fixed_from_string): Use wide-int interfaces.
21006         (fixed_to_decimal): Likewise.
21007         (fixed_convert_from_real): Likewise.
21008         (real_convert_from_fixed): Likewise.
21009         * fold-const.h (mem_ref_offset): Return an offset_int.
21010         (div_if_zero_remainder): Remove code parameter.
21011         * fold-const.c (div_if_zero_remainder): Remove code parameter.
21012         Use wide-int interfaces.
21013         (may_negate_without_overflow_p): Use wide-int interfaces.
21014         (negate_expr_p): Likewise.
21015         (fold_negate_expr): Likewise.
21016         (int_const_binop_1): Likewise.
21017         (const_binop): Likewise.
21018         (fold_convert_const_int_from_int): Likewise.
21019         (fold_convert_const_int_from_real): Likewise.
21020         (fold_convert_const_int_from_fixed): Likewise.
21021         (fold_convert_const_fixed_from_int): Likewise.
21022         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
21023         (sign_bit_p): Use wide-int interfaces.
21024         (make_range_step): Likewise.
21025         (build_range_check): Likewise.  Pass an integer of the correct type
21026         instead of using integer_one_node.
21027         (range_predecessor): Pass an integer of the correct type instead
21028         of using integer_one_node.
21029         (range_successor): Likewise.
21030         (merge_ranges): Likewise.
21031         (unextend): Use wide-int interfaces.
21032         (extract_muldiv_1): Likewise.
21033         (fold_div_compare): Likewise.
21034         (fold_single_bit_test): Likewise.
21035         (fold_sign_changed_comparison): Likewise.
21036         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21037         (fold_plusminus_mult_expr): Use wide-int interfaces.
21038         (native_encode_int): Likewise.
21039         (native_interpret_int): Likewise.
21040         (fold_unary_loc): Likewise.
21041         (pointer_may_wrap_p): Likewise.
21042         (size_low_cst): Likewise.
21043         (mask_with_tz): Likewise.
21044         (fold_binary_loc): Likewise.
21045         (fold_ternary_loc): Likewise.
21046         (multiple_of_p): Likewise.
21047         (tree_call_nonnegative_warnv_p): Update calls to
21048         tree_int_cst_min_precision and real_from_integer.
21049         (fold_negate_const): Use wide-int interfaces.
21050         (fold_abs_const): Likewise.
21051         (fold_relational_const): Use tree_int_cst_lt.
21052         (round_up_loc): Use wide-int interfaces.
21053         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21054         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21055         * gengtype.c: Remove include of double-int.h.
21056         (do_typedef): Use wide-int interfaces.
21057         (open_base_files): Add wide-int.h.
21058         (main): Add offset_int and widest_int typedefs.
21059         * gengtype-lex.l: Handle "^".
21060         (CXX_KEYWORD): Add "static".
21061         * gengtype-parse.c (require3): New.
21062         (require_template_declaration): Handle constant template arguments
21063         and nested templates.
21064         * gengtype-state.c: Don't include "double-int.h".
21065         * genpreds.c (write_one_predicate_function): Update comment.
21066         (write_tm_constrs_h): Add check for hval and lval use in
21067         CONST_WIDE_INT.
21068         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21069         (add_to_sequence): Likewise.
21070         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21071         and const_double_operand.
21072         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21073         interfaces.
21074         * gimple-fold.c (get_base_constructor): Likewise.
21075         (fold_array_ctor_reference): Likewise.
21076         (fold_nonarray_ctor_reference): Likewise.
21077         (fold_const_aggregate_ref_1): Likewise.
21078         (gimple_val_nonnegative_real_p): Likewise.
21079         (gimple_fold_indirect_ref): Likewise.
21080         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21081         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21082         (struct slsr_cand_d): Change index to be widest_int.
21083         (struct incr_info_d): Change incr to be widest_int.
21084         (alloc_cand_and_find_basis): Use wide-int interfaces.
21085         (slsr_process_phi): Likewise.
21086         (backtrace_base_for_ref): Likewise.  Return a widest_int.
21087         (restructure_reference): Take a widest_int instead of a double_int.
21088         (slsr_process_ref): Use wide-int interfaces.
21089         (create_mul_ssa_cand): Likewise.
21090         (create_mul_imm_cand): Likewise.
21091         (create_add_ssa_cand): Likewise.
21092         (create_add_imm_cand): Take a widest_int instead of a double_int.
21093         (slsr_process_add): Use wide-int interfaces.
21094         (slsr_process_cast): Likewise.
21095         (slsr_process_copy): Likewise.
21096         (dump_candidate): Likewise.
21097         (dump_incr_vec): Likewise.
21098         (replace_ref): Likewise.
21099         (cand_increment): Likewise.  Return a widest_int.
21100         (cand_abs_increment): Likewise.
21101         (replace_mult_candidate): Take a widest_int instead of a double_int.
21102         (replace_unconditional_candidate): Use wide-int interfaces.
21103         (incr_vec_index): Take a widest_int instead of a double_int.
21104         (create_add_on_incoming_edge): Likewise.
21105         (create_phi_basis): Use wide-int interfaces.
21106         (replace_conditional_candidate): Likewise.
21107         (record_increment): Take a widest_int instead of a double_int.
21108         (record_phi_increments): Use wide-int interfaces.
21109         (phi_incr_cost): Take a widest_int instead of a double_int.
21110         (lowest_cost_path): Likewise.
21111         (total_savings): Likewise.
21112         (analyze_increments): Use wide-int interfaces.
21113         (ncd_with_phi): Take a widest_int instead of a double_int.
21114         (ncd_of_cand_and_phis): Likewise.
21115         (nearest_common_dominator_for_cands): Likewise.
21116         (insert_initializers): Use wide-int interfaces.
21117         (all_phi_incrs_profitable): Likewise.
21118         (replace_one_candidate): Likewise.
21119         (replace_profitable_candidates): Likewise.
21120         * godump.c: Include wide-int-print.h.
21121         (go_output_typedef): Use wide-int interfaces.
21122         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21123         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21124         (build_loop_iteration_domains): Likewise.
21125         * hooks.h: Include wide-int.h rather than double-int.h.
21126         (hook_bool_dint_dint_uint_bool_true): Delete.
21127         (hook_bool_wint_wint_uint_bool_true): Declare.
21128         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21129         (hook_bool_wint_wint_uint_bool_true): New.
21130         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21131         interfaces.
21132         (ubsan_expand_si_overflow_mul_check): Likewise.
21133         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21134         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21135         (get_ancestor_addr_info): Likewise.
21136         (ipa_modify_call_arguments): Likewise.
21137         * loop-doloop.c (doloop_modify): Likewise.
21138         (doloop_optimize): Likewise.
21139         * loop-iv.c (iv_number_of_iterations): Likewise.
21140         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21141         (unroll_loop_constant_iterations): Likewise.
21142         (decide_unroll_runtime_iterations): Likewise.
21143         (unroll_loop_runtime_iterations): Likewise.
21144         (decide_peel_simple): Likewise.
21145         (decide_unroll_stupid): Likewise.
21146         * lto-streamer-in.c (streamer_read_wi): Add.
21147         (input_cfg): Use wide-int interfaces.
21148         (lto_input_tree_1): Likewise.
21149         * lto-streamer-out.c (streamer_write_wi): Add.
21150         (hash_tree): Use wide-int interfaces.
21151         (output_cfg): Likewise.
21152         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21153         (GTFILES): Add wide-int.h and signop.h.
21154         (TAGS): Look for .cc files too.
21155         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21156         * optabs.c (expand_subword_shift): Likewise.
21157         (expand_doubleword_shift): Likewise.
21158         (expand_absneg_bit): Likewise.
21159         (expand_copysign_absneg): Likewise.
21160         (expand_copysign_bit): Likewise.
21161         * postreload.c (reload_cse_simplify_set): Likewise.
21162         * predict.c (predict_iv_comparison): Likewise.
21163         * pretty-print.h: Include wide-int-print.h.
21164         (pp_wide_int) New.
21165         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21166         * print-tree.c: Include wide-int-print.h.
21167         (print_node_brief): Use wide-int interfaces.
21168         (print_node): Likewise.
21169         * read-rtl.c (validate_const_wide_int): New.
21170         (read_rtx_code): Add CONST_WIDE_INT case.
21171         * real.c: Include wide-int.h.
21172         (real_to_integer2): Delete.
21173         (real_to_integer): New function, returning a wide_int.
21174         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21175         (ten_to_ptwo): Update call to real_from_integer.
21176         (real_digit): Likewise.
21177         * real.h: Include signop.h, wide-int.h and insn-modes.h.
21178         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21179         (REAL_VALUE_TO_INT): Delete.
21180         (real_to_integer): Declare a wide-int form.
21181         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21182         * recog.c (const_int_operand): Improve comment.
21183         (const_scalar_int_operand): New.
21184         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21185         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21186         (split_double): Likewise.
21187         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21188         (rtx_size): Likewise.
21189         (rtx_alloc_stat_v): New.
21190         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21191         (cwi_output_hex): New.
21192         (iterative_hash_rtx): Handle CONST_WIDE_INT.
21193         (cwi_check_failed_bounds): New.
21194         * rtl.def (CONST_WIDE_INT): New.
21195         * rtl.h: Include <utility> and wide-int.h.
21196         (struct hwivec_def): New.
21197         (CWI_GET_NUM_ELEM): New.
21198         (CWI_PUT_NUM_ELEM): New.
21199         (struct rtx_def): Add num_elem and hwiv.
21200         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21201         (CASE_CONST_UNIQUE): Likewise.
21202         (CASE_CONST_ANY): Likewise.
21203         (CONST_SCALAR_INT_P): Likewise.
21204         (CONST_WIDE_INT_P): New.
21205         (CWI_ELT): New.
21206         (HWIVEC_CHECK): New.
21207         (cwi_check_failed_bounds): New.
21208         (CWI_ELT): New.
21209         (HWIVEC_CHECK): New.
21210         (CONST_WIDE_INT_VEC) New.
21211         (CONST_WIDE_INT_NUNITS) New.
21212         (CONST_WIDE_INT_ELT) New.
21213         (rtx_mode_t): New type.
21214         (wi::int_traits <rtx_mode_t>): New.
21215         (wi::shwi): New.
21216         (wi::min_value): New.
21217         (wi::max_value): New.
21218         (rtx_alloc_v) New.
21219         (const_wide_int_alloc): New.
21220         (immed_wide_int_const): New.
21221         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21222         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21223         * signop.h: New file.
21224         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21225         (simplify_const_unary_operation): Use wide-int interfaces.
21226         (simplify_binary_operation_1): Likewise.
21227         (simplify_const_binary_operation): Likewise.
21228         (simplify_const_relational_operation): Likewise.
21229         (simplify_immed_subreg): Likewise.
21230         * stmt.c (expand_case): Likewise.
21231         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21232         signop rather than a bool.
21233         * stor-layout.c (layout_type): Use wide-int interfaces.
21234         (initialize_sizetypes): Update calls to
21235         set_min_and_max_values_for_integral_type.
21236         (set_min_and_max_values_for_integral_type): Take a signop rather
21237         than a bool.  Use wide-int interfaces.
21238         (fixup_signed_type): Update accordingly.  Remove
21239         HOST_BITS_PER_DOUBLE_INT limit.
21240         (fixup_unsigned_type): Likewise.
21241         * system.h (STATIC_CONSTANT_P): New.
21242         (STATIC_ASSERT): New.
21243         * target.def (can_use_doloop_p): Take widest_ints rather than
21244         double_ints.
21245         * target.h: Include wide-int.h rather than double-int.h.
21246         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21247         than double_ints.
21248         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21249         rather than INT_CST_LT_UNSIGNED.
21250         (can_use_doloop_if_innermost): Take widest_ints rather than
21251         double_ints.
21252         * tree-affine.c: Include wide-int-print.h.
21253         (double_int_ext_for_comb): Delete.
21254         (wide_int_ext_for_comb): New.
21255         (aff_combination_zero): Use wide-int interfaces.
21256         (aff_combination_const): Take a widest_int instead of a double_int.
21257         (aff_combination_elt): Use wide-int interfaces.
21258         (aff_combination_scale): Take a widest_int instead of a double_int.
21259         (aff_combination_add_elt): Likewise.
21260         (aff_combination_add_cst): Likewise.
21261         (aff_combination_add): Use wide-int interfaces.
21262         (aff_combination_convert): Likewise.
21263         (tree_to_aff_combination): Likewise.
21264         (add_elt_to_tree): Take a widest_int instead of a double_int.
21265         (aff_combination_to_tree): Use wide-int interfaces.
21266         (aff_combination_remove_elt): Likewise.
21267         (aff_combination_add_product): Take a widest_int instead of
21268         a double_int.
21269         (aff_combination_mult): Use wide-int interfaces.
21270         (aff_combination_expand): Likewise.
21271         (double_int_constant_multiple_p): Delete.
21272         (wide_int_constant_multiple_p): New.
21273         (aff_combination_constant_multiple_p): Take a widest_int pointer
21274         instead of a double_int pointer.
21275         (print_aff): Use wide-int interfaces.
21276         (get_inner_reference_aff): Take a widest_int pointer
21277         instead of a double_int pointer.
21278         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21279         * tree-affine.h: Include wide-int.h.
21280         (struct aff_comb_elt): Change type of coef to widest_int.
21281         (struct affine_tree_combination): Change type of offset to widest_int.
21282         (double_int_ext_for_comb): Delete.
21283         (wide_int_ext_for_comb): New.
21284         (aff_combination_const): Use widest_int instead of double_int.
21285         (aff_combination_scale): Likewise.
21286         (aff_combination_add_elt): Likewise.
21287         (aff_combination_constant_multiple_p): Likewise.
21288         (get_inner_reference_aff): Likewise.
21289         (aff_comb_cannot_overlap_p): Likewise.
21290         (aff_combination_zero_p): Use wide-int interfaces.
21291         * tree.c: Include tree.h.
21292         (init_ttree): Use make_int_cst.
21293         (tree_code_size): Removed code for INTEGER_CST case.
21294         (tree_size): Add INTEGER_CST case.
21295         (make_node_stat): Update comment.
21296         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21297         (build_int_cst_type): Use wide-int interfaces.
21298         (double_int_to_tree): Likewise.
21299         (double_int_fits_to_tree_p): Delete.
21300         (force_fit_type_double): Delete.
21301         (force_fit_type): New.
21302         (int_cst_hash_hash): Use wide-int interfaces.
21303         (int_cst_hash_eq): Likewise.
21304         (build_int_cst_wide): Delete.
21305         (wide_int_to_tree): New.
21306         (cache_integer_cst): Use wide-int interfaces.
21307         (build_low_bits_mask): Likewise.
21308         (cst_and_fits_in_hwi): Likewise.
21309         (real_value_from_int_cst): Likewise.
21310         (make_int_cst_stat): New.
21311         (integer_zerop): Use wide_int interfaces.
21312         (integer_onep): Likewise.
21313         (integer_all_onesp): Likewise.
21314         (integer_pow2p): Likewise.
21315         (integer_nonzerop): Likewise.
21316         (tree_log2): Likewise.
21317         (tree_floor_log2): Likewise.
21318         (tree_ctz): Likewise.
21319         (int_size_in_bytes): Likewise.
21320         (mem_ref_offset): Return an offset_int rather than a double_int.
21321         (build_type_attribute_qual_variant): Use wide_int interfaces.
21322         (type_hash_eq): Likewise
21323         (tree_int_cst_equal): Likewise.
21324         (tree_int_cst_lt): Delete.
21325         (tree_int_cst_compare): Likewise.
21326         (tree_fits_shwi_p): Use wide_int interfaces.
21327         (tree_fits_uhwi_p): Likewise.
21328         (tree_int_cst_sign_bit): Likewise.
21329         (tree_int_cst_sgn): Likewise.
21330         (tree_int_cst_min_precision): Take a signop rather than a bool.
21331         (simple_cst_equal): Use wide_int interfaces.
21332         (compare_tree_int): Likewise.
21333         (iterative_hash_expr): Likewise.
21334         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
21335         INT_CST_LT.
21336         (get_type_static_bounds): Use wide_int interfaces.
21337         (tree_int_cst_elt_check_failed): New.
21338         (build_common_tree_nodes): Reordered to set prec before filling in
21339         value.
21340         (int_cst_value): Check cst_and_fits_in_hwi.
21341         (widest_int_cst_value): Use wide_int interfaces.
21342         (upper_bound_in_type): Likewise.
21343         (lower_bound_in_type): Likewise.
21344         (num_ending_zeros): Likewise.
21345         (drop_tree_overflow): Likewise.
21346         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21347         (gen_conditions_for_pow_cst_base): Likewise.
21348         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21349         (group_case_labels_stmt): Use wide-int interfaces.
21350         (verify_gimple_assign_binary): Likewise.
21351         (print_loop): Likewise.
21352         * tree-chrec.c (tree_fold_binomial): Likewise.
21353         * tree-core.h (struct tree_base): Add int_length.
21354         (struct tree_int_cst): Change rep of value.
21355         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21356         (dr_may_alias_p): Likewise.
21357         (max_stmt_executions_tree): Likewise.
21358         * tree.def (INTEGER_CST): Update comment.
21359         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21360         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21361         * tree-dump.c: Include wide-int.h and wide-int-print.h.
21362         (dequeue_and_dump): Use wide-int interfaces.
21363         * tree.h: Include wide-int.h.
21364         (NULL_TREE): Moved to earlier loc in file.
21365         (TREE_INT_CST_ELT_CHECK): New.
21366         (tree_int_cst_elt_check_failed): New.
21367         (TYPE_SIGN): New.
21368         (TREE_INT_CST): Delete.
21369         (TREE_INT_CST_LOW): Use wide-int interfaces.
21370         (TREE_INT_CST_HIGH): Delete.
21371         (TREE_INT_CST_NUNITS): New.
21372         (TREE_INT_CST_EXT_NUNITS): Likewise.
21373         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21374         (TREE_INT_CST_ELT): Likewise.
21375         (INT_CST_LT): Delete.
21376         (tree_int_cst_elt_check): New (two forms).
21377         (type_code_size): Update comment.
21378         (make_int_cst_stat, make_int_cst): New.
21379         (tree_to_double_int): Delete.
21380         (double_int_fits_to_tree_p): Delete.
21381         (force_fit_type_double): Delete.
21382         (build_int_cstu): Replace with out-of-line function.
21383         (build_int_cst_wide): Delete.
21384         (tree_int_cst_lt): Define inline.
21385         (tree_int_cst_le): New.
21386         (tree_int_cst_compare): Define inline.
21387         (tree_int_cst_min_precision): Take a signop rather than a bool.
21388         (wi::int_traits <const_tree>): New.
21389         (wi::int_traits <tree>): New.
21390         (wi::extended_tree): New.
21391         (wi::int_traits <wi::extended_tree>): New.
21392         (wi::to_widest): New.
21393         (wi::to_offset): New.
21394         (wi::fits_to_tree_p): New.
21395         (wi::min_value): New.
21396         (wi::max_value): New.
21397         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21398         (copy_tree_body_r): Likewise.
21399         * tree-object-size.c (compute_object_offset): Likewise.
21400         (addr_object_size): Likewise.
21401         * tree-predcom.c: Include wide-int-print.h.
21402         (struct dref_d): Change type of offset to widest_int.
21403         (dump_dref): Call wide-int printer.
21404         (aff_combination_dr_offset): Use wide-int interfaces.
21405         (determine_offset): Take a widest_int pointer rather than a
21406         double_int pointer.
21407         (split_data_refs_to_components): Use wide-int interfaces.
21408         (suitable_component_p): Likewise.
21409         (order_drefs): Likewise.
21410         (add_ref_to_chain): Likewise.
21411         (valid_initializer_p): Likewise.
21412         (determine_roots_comp): Likewise.
21413         * tree-pretty-print.c: Include wide-int-print.h.
21414         (dump_generic_node): Use wide-int interfaces.
21415         * tree-sra.c (sra_ipa_modify_expr): Likewise.
21416         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21417         (move_fixed_address_to_symbol): Likewise.
21418         (move_hint_to_base): Likewise.
21419         (move_pointer_to_base): Likewise.
21420         (move_variant_to_index): Likewise.
21421         (most_expensive_mult_to_index): Likewise.
21422         (addr_to_parts): Likewise.
21423         (copy_ref_info): Likewise.
21424         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21425         (indirect_refs_may_alias_p): Likewise.
21426         (stmt_kills_ref_p_1): Likewise.
21427         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21428         * tree-ssa-ccp.c: Update comment at top of file.  Include
21429         wide-int-print.h.
21430         (struct prop_value_d): Change type of mask to widest_int.
21431         (extend_mask): New function.
21432         (dump_lattice_value): Use wide-int interfaces.
21433         (get_default_value): Likewise.
21434         (set_constant_value): Likewise.
21435         (set_value_varying): Likewise.
21436         (valid_lattice_transition): Likewise.
21437         (set_lattice_value): Likewise.
21438         (value_to_double_int): Delete.
21439         (value_to_wide_int): New.
21440         (get_value_from_alignment): Use wide-int interfaces.
21441         (get_value_for_expr): Likewise.
21442         (do_dbg_cnt): Likewise.
21443         (ccp_finalize): Likewise.
21444         (ccp_lattice_meet): Likewise.
21445         (bit_value_unop_1): Use widest_ints rather than double_ints.
21446         (bit_value_binop_1): Likewise.
21447         (bit_value_unop): Use wide-int interfaces.
21448         (bit_value_binop): Likewise.
21449         (bit_value_assume_aligned): Likewise.
21450         (evaluate_stmt): Likewise.
21451         (ccp_fold_stmt): Likewise.
21452         (visit_cond_stmt): Likewise.
21453         (ccp_visit_stmt): Likewise.
21454         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21455         (constant_pointer_difference): Likewise.
21456         (associate_pointerplus): Likewise.
21457         (combine_conversions): Likewise.
21458         * tree-ssa-loop.h: Include wide-int.h.
21459         (struct tree_niter_desc): Change type of max to widest_int.
21460         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21461         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21462         (remove_redundant_iv_tests): Likewise.
21463         (canonicalize_loop_induction_variables): Likewise.
21464         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21465         (constant_multiple_of): Take a widest_int pointer instead of
21466         a double_int pointer.
21467         (get_computation_aff): Use wide-int interfaces.
21468         (ptr_difference_cost): Likewise.
21469         (difference_cost): Likewise.
21470         (get_loop_invariant_expr_id): Likewise.
21471         (get_computation_cost_at): Likewise.
21472         (iv_elimination_compare_lt): Likewise.
21473         (may_eliminate_iv): Likewise.
21474         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21475         instead of double_int.
21476         (max_loop_iterations): Likewise.
21477         (max_stmt_executions): Likewise.
21478         (estimated_stmt_executions): Likewise.
21479         * tree-ssa-loop-niter.c: Include wide-int-print.h.
21480         (split_to_var_and_offset): Use wide-int interfaces.
21481         (determine_value_range): Likewise.
21482         (bound_difference_of_offsetted_base): Likewise.
21483         (bounds_add): Take a widest_int instead of a double_int.
21484         (number_of_iterations_ne_max): Use wide-int interfaces.
21485         (number_of_iterations_ne): Likewise.
21486         (number_of_iterations_lt_to_ne): Likewise.
21487         (assert_loop_rolls_lt): Likewise.
21488         (number_of_iterations_lt): Likewise.
21489         (number_of_iterations_le): Likewise.
21490         (number_of_iterations_cond): Likewise.
21491         (number_of_iterations_exit): Likewise.
21492         (finite_loop_p): Likewise.
21493         (derive_constant_upper_bound_assign): Likewise.
21494         (derive_constant_upper_bound): Return a widest_int.
21495         (derive_constant_upper_bound_ops): Likewise.
21496         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21497         (record_estimate): Take a widest_int rather than a double_int.
21498         (record_nonwrapping_iv): Use wide-int interfaces.
21499         (double_int_cmp): Delete.
21500         (wide_int_cmp): New.
21501         (bound_index): Take a widest_int rather than a double_int.
21502         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21503         (maybe_lower_iteration_bound): Likewise.
21504         (estimate_numbers_of_iterations_loop): Likewise.
21505         (estimated_loop_iterations): Take a widest_int pointer than than
21506         a double_int pointer.
21507         (estimated_loop_iterations_int): Use wide-int interfaces.
21508         (max_loop_iterations): Take a widest_int pointer than than
21509         a double_int pointer.
21510         (max_loop_iterations_int): Use wide-int interfaces.
21511         (max_stmt_executions): Take a widest_int pointer than than
21512         a double_int pointer.
21513         (estimated_stmt_executions): Likewise.
21514         (n_of_executions_at_most): Use wide-int interfaces.
21515         (scev_probably_wraps_p): Likewise.
21516         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21517         to real_to_integer.
21518         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21519         interfaces.
21520         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21521         double_ints.  Adjust for trailing_wide_ints <3> representation.
21522         (set_nonzero_bits): Likewise.
21523         (get_range_info): Return wide_ints rather than double_ints.
21524         Adjust for trailing_wide_ints <3> representation.
21525         (get_nonzero_bits): Likewise.
21526         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21527         representation.
21528         * tree-ssanames.h (struct range_info_def): Replace min, max and
21529         nonzero_bits with a trailing_wide_ints <3>.
21530         (set_range_info): Use wide_int_refs rather than double_ints.
21531         (set_nonzero_bits): Likewise.
21532         (get_range_info): Return wide_ints rather than double_ints.
21533         (get_nonzero_bits): Likewise.
21534         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21535         * tree-ssa-pre.c (phi_translate_1): Likewise.
21536         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21537         (acceptable_pow_call): Likewise.
21538         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21539         interfaces.
21540         (vn_reference_fold_indirect): Likewise.
21541         (vn_reference_maybe_forwprop_address): Likewise.
21542         (valueize_refs_1): Likewise.
21543         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21544         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21545         tree_int_cst_lt and tree_int_cst_le.
21546         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21547         interfaces.
21548         (streamer_alloc_tree): Likewise.
21549         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21550         (streamer_write_tree_header): Likewise.
21551         (streamer_write_integer_cst): Likewise.
21552         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21553         (build_constructors): Likewise.
21554         (array_value_type): Likewise.
21555         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21556         (vect_check_gather): Likewise.
21557         * tree-vect-generic.c (build_replicated_const): Likewise.
21558         (expand_vector_divmod): Likewise.
21559         * tree-vect-loop.c (vect_transform_loop): Likewise.
21560         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21561         (vect_do_peeling_for_alignment): Likewise.
21562         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21563         * tree-vrp.c: Include wide-int.h.
21564         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21565         (extract_range_from_assert): Use wide-int interfaces.
21566         (vrp_int_const_binop): Likewise.
21567         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21568         double_int pointers.
21569         (ranges_from_anti_range): Use wide-int interfaces.
21570         (quad_int_cmp): Delete.
21571         (quad_int_pair_sort): Likewise.
21572         (extract_range_from_binary_expr_1): Use wide-int interfaces.
21573         (extract_range_from_unary_expr_1): Likewise.
21574         (adjust_range_with_scev): Likewise.
21575         (masked_increment): Take and return wide_ints rather than double_ints.
21576         (register_edge_assert_for_2): Use wide-int interfaces.
21577         (check_array_ref): Likewise.
21578         (search_for_addr_array): Likewise.
21579         (maybe_set_nonzero_bits): Likewise.
21580         (union_ranges): Pass an integer of the correct type instead of
21581         using integer_one_node.
21582         (intersect_ranges): Likewise.
21583         (simplify_truth_ops_using_ranges): Likewise.
21584         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21585         (range_fits_type_p): Likewise.
21586         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
21587         a bool.
21588         (simplify_conversion_using_ranges): Use wide-int interfaces.
21589         (simplify_float_conversion_using_ranges): Likewise.
21590         (vrp_finalize): Likewise.
21591         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21592         (gimple_stringops_transform): Likewise.
21593         * varasm.c (decode_addr_const): Likewise.
21594         (const_hash_1): Likewise.
21595         (const_rtx_hash_1): Likewise
21596         (output_constant): Likewise.
21597         (array_size_for_constructor): Likewise.
21598         (output_constructor_regular_field): Likewise.
21599         (output_constructor_bitfield): Likewise.
21600         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21601         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21602         GENERATOR_FILEs.
21603         * gencheck.c: Define BITS_PER_UNIT.
21604         * wide-int.cc: New.
21605         * wide-int.h: New.
21606         * wide-int-print.cc: New.
21607         * wide-int-print.h: New.
21608
21609 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21610
21611         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21612
21613 2014-05-06  Richard Biener  <rguenther@suse.de>
21614
21615         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21616         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21617         (TODO_verify_all): Adjust.
21618         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21619         TODO_verify_stmts and TODO_verify_rtl_sharing.
21620         * bb-reorder.c: Likewise.
21621         * cfgexpand.c: Likewise.
21622         * cprop.c: Likewise.
21623         * cse.c: Likewise.
21624         * function.c: Likewise.
21625         * fwprop.c: Likewise.
21626         * gcse.c: Likewise.
21627         * gimple-ssa-isolate-paths.c: Likewise.
21628         * gimple-ssa-strength-reduction.c: Likewise.
21629         * ipa-split.c: Likewise.
21630         * loop-init.c: Likewise.
21631         * loop-unroll.c: Likewise.
21632         * lower-subreg.c: Likewise.
21633         * modulo-sched.c: Likewise.
21634         * postreload-gcse.c: Likewise.
21635         * predict.c: Likewise.
21636         * recog.c: Likewise.
21637         * sched-rgn.c: Likewise.
21638         * store-motion.c: Likewise.
21639         * tracer.c: Likewise.
21640         * trans-mem.c: Likewise.
21641         * tree-call-cdce.c: Likewise.
21642         * tree-cfg.c: Likewise.
21643         * tree-cfgcleanup.c: Likewise.
21644         * tree-complex.c: Likewise.
21645         * tree-eh.c: Likewise.
21646         * tree-emutls.c: Likewise.
21647         * tree-if-conv.c: Likewise.
21648         * tree-into-ssa.c: Likewise.
21649         * tree-loop-distribution.c: Likewise.
21650         * tree-object-size.c: Likewise.
21651         * tree-parloops.c: Likewise.
21652         * tree-pass.h: Likewise.
21653         * tree-sra.c: Likewise.
21654         * tree-ssa-ccp.c: Likewise.
21655         * tree-ssa-copy.c: Likewise.
21656         * tree-ssa-copyrename.c: Likewise.
21657         * tree-ssa-dce.c: Likewise.
21658         * tree-ssa-dom.c: Likewise.
21659         * tree-ssa-dse.c: Likewise.
21660         * tree-ssa-forwprop.c: Likewise.
21661         * tree-ssa-ifcombine.c: Likewise.
21662         * tree-ssa-loop-ch.c: Likewise.
21663         * tree-ssa-loop-ivcanon.c: Likewise.
21664         * tree-ssa-loop.c: Likewise.
21665         * tree-ssa-math-opts.c: Likewise.
21666         * tree-ssa-phiopt.c: Likewise.
21667         * tree-ssa-phiprop.c: Likewise.
21668         * tree-ssa-pre.c: Likewise.
21669         * tree-ssa-reassoc.c: Likewise.
21670         * tree-ssa-sink.c: Likewise.
21671         * tree-ssa-strlen.c: Likewise.
21672         * tree-ssa-tail-merge.c: Likewise.
21673         * tree-ssa-uncprop.c: Likewise.
21674         * tree-switch-conversion.c: Likewise.
21675         * tree-tailcall.c: Likewise.
21676         * tree-vect-generic.c: Likewise.
21677         * tree-vectorizer.c: Likewise.
21678         * tree-vrp.c: Likewise.
21679         * tsan.c: Likewise.
21680         * var-tracking.c: Likewise.
21681         * bt-load.c: Likewise.
21682         * cfgcleanup.c: Likewise.
21683         * combine-stack-adj.c: Likewise.
21684         * combine.c: Likewise.
21685         * compare-elim.c: Likewise.
21686         * config/epiphany/resolve-sw-modes.c: Likewise.
21687         * config/i386/i386.c: Likewise.
21688         * config/mips/mips.c: Likewise.
21689         * config/s390/s390.c: Likewise.
21690         * config/sh/sh_treg_combine.cc: Likewise.
21691         * config/sparc/sparc.c: Likewise.
21692         * dce.c: Likewise.
21693         * dse.c: Likewise.
21694         * final.c: Likewise.
21695         * ifcvt.c: Likewise.
21696         * mode-switching.c: Likewise.
21697         * passes.c: Likewise.
21698         * postreload.c: Likewise.
21699         * ree.c: Likewise.
21700         * reg-stack.c: Likewise.
21701         * regcprop.c: Likewise.
21702         * regrename.c: Likewise.
21703         * web.c: Likewise.
21704
21705 2014-05-06  Richard Biener  <rguenther@suse.de>
21706
21707         PR middle-end/61070
21708         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21709         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21710
21711 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
21712
21713         PR ipa/60965
21714         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21715
21716 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
21717             Tom de Vries  <tom@codesourcery.com>
21718
21719         * target.def (call_fusage_contains_non_callee_clobbers): New
21720         DEFHOOKPOD.
21721         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21722         Hooks to @menu.
21723         (@node Miscellaneous Register Hooks): New node.
21724         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21725         * doc/tm.texi: Regenerate.
21726
21727 2014-05-05  Marek Polacek  <polacek@redhat.com>
21728
21729         PR driver/61065
21730         * opts.c (common_handle_option): Call error_at instead of warning_at.
21731
21732 2014-05-05  Richard Biener  <rguenther@suse.de>
21733
21734         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21735         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
21736         under the TODO_verify_il umbrella.
21737
21738 2014-05-05  Richard Biener  <rguenther@suse.de>
21739
21740         * passes.c (execute_function_todo): Move TODO_verify_flow under
21741         the TODO_verify_ul umbrella.
21742
21743 2014-05-05  Richard Biener  <rguenther@suse.de>
21744
21745         PR middle-end/61010
21746         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21747         X & CST away from a CST that is the mask of a mode.
21748
21749 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21750
21751         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21752         int argument to enum machine_mode.
21753         (picochip_class_max_nregs): Ditto.
21754         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21755         (picochip_class_max_nregs): Ditto.
21756
21757 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21758
21759         * target.def: Add new target hook.
21760         * doc/tm.texi: Regenerate.
21761         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21762         * targhooks.c (default_keep_leaf_when_profiled): New function.
21763
21764         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21765         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21766
21767 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
21768
21769         PR tree-optimization/60363
21770         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21771         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
21772         (update_destination_phis): New parameter.
21773         (create_edge_and_update_destination_phis): Ditto.
21774         (ssa_fix_duplicate_block_edges): Pass new arguments.
21775         (thread_single_edge): Ditto.
21776
21777 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
21778
21779         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21780         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21781         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21782         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21783         Use RS6000_BTM_HARD_FLOAT.
21784         (BU_MISC_2): Likewise.
21785         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21786         RS6000_BTM_HARD_FLOAT.
21787         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21788         is explicitly used.
21789         (rs6000_invalid_builtin): Add hard floating builtin support.
21790         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21791         hard float builtins.
21792         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21793
21794 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21795
21796         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21797         Add missing function* argument.
21798
21799 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
21800
21801         * lra-constraints.c (valid_address_p): Move earlier in file.
21802         Add a constraint argument to the address_info version.
21803         (satisfies_memory_constraint_p): New function.
21804         (satisfies_address_constraint_p): Likewise.
21805         (process_alt_operands, curr_insn_transform): Use them.
21806         (process_address): Pass the constraint to valid_address_p when
21807         checking address operands.
21808
21809 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
21810
21811         * config/mips/mips.c (mips_isa_rev): New variable.
21812         (mips_set_architecture): Set it.
21813         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21814         from mips_isa_rev.
21815         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21816         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21817         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21818         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21819         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21820         conditions in terms of mips_isa_rev.
21821         (mips_isa_rev): Declare.
21822
21823 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21824
21825         * config/sh/sh-mem.cc: Use tabs instead of spaces.
21826         (prob_unlikely, prob_likely): Make variables const.
21827
21828 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
21829
21830         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21831
21832 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21833
21834         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21835
21836 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21837
21838         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21839         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21840         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21841         functions.
21842         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21843         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21844         sh_pass_in_reg_p.
21845         Replace usage of ROUND_REG with sh_round_reg.
21846         Use CEIL instead of ROUND_ADVANCE.
21847
21848 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
21849
21850         PR target/61026
21851         * config/sh/sh.c: Include stdlib headers before everything else.
21852
21853 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
21854
21855         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21856         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21857         (gimplify_adjust_omp_clauses): Simd region is never
21858         directly nested in combined parallel.  Instead, for linear
21859         with copyin/copyout, if in combined for simd loop, make decl
21860         firstprivate/lastprivate on OMP_FOR.
21861         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21862         expand_omp_for_static_chunk): When setting endvar, also set
21863         fd->loop.v to the same value.
21864
21865 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21866
21867         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21868
21869 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
21870
21871         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21872         expression.
21873
21874 2014-05-02  Marek Polacek  <polacek@redhat.com>
21875
21876         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21877
21878 2014-05-02  Kito Cheng  <kito@0xlab.org>
21879
21880         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21881         to a C expression marco.
21882         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21883         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21884         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21885         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21886         HONOR_REG_ALLOC_ORDER.
21887         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21888
21889 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21890
21891         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21892
21893 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21894
21895         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21896
21897 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
21898
21899         * tree-if-conv.c (is_cond_scalar_reduction): New function.
21900         (convert_scalar_cond_reduction): Likewise.
21901         (predicate_scalar_phi): Add recognition and transformation
21902         of simple conditioanl reduction to be vectorizable.
21903
21904 2014-05-01  Marek Polacek  <polacek@redhat.com>
21905
21906         PR c/43245
21907         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21908
21909 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
21910
21911         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21912         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21913         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21914         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21915         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21916         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21917         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21918         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21919
21920 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21921
21922         * config/arc/arc.opt (mlra): Move comment above option name
21923         to avoid mis-parsing as language options.
21924
21925 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21926
21927         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21928         * config/sol2.h: ... here.
21929         * config/sol2-10.h: Remove.
21930
21931         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21932         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21933         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21934         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21935         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21936         * config/sol2.h: ... here.
21937         (SECTION_NAME_FORMAT): Don't redefine.
21938         (STARTFILE_ARCH32_SPEC): Rename to ...
21939         (STARTFILE_ARCH_SPEC): ... this.
21940         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21941         * config/sparc/sol2.h: ... here.
21942         (SECTION_NAME_FORMAT): Don't undef.
21943         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21944         (SUBTARGET_EXTRA_SPECS): Remove.
21945         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21946
21947         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21948         (MD_STARTFILE_PREFIX): Remove.
21949         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21950         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21951         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21952         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21953         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21954         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21955         * config/i386/sol2.h: ... here.
21956         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21957         * config/i386/sol2-bi.h: Remove.
21958         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21959         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21960
21961         * config/i386/t-sol2-64: Rename to ...
21962         * config/i386/t-sol2: ... this.
21963         * config/sparc/t-sol2-64: Rename to ...
21964         * config/sparc/t-sol2: ... this.
21965
21966         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21967         sol2_tm_file_head, sol2_tm_file_tail.
21968         Include ${cpu_type}/sol2.h before sol2.h.
21969         Remove sol2-10.h.
21970         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21971         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21972         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21973         Reflect i386/t-sol2-64 renaming.
21974         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21975         Reflect sparc/t-sol2-64 renaming.
21976
21977 2014-04-30  Richard Biener  <rguenther@suse.de>
21978
21979         * passes.c (execute_function_todo): Move TODO_verify_stmts
21980         and TODO_verify_ssa under the TODO_verify_il umbrella.
21981         * tree-ssa.h (verify_ssa): Adjust prototype.
21982         * tree-ssa.c (verify_ssa): Add parameter to tell whether
21983         we should verify SSA operands.
21984         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21985         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21986         whether we should verify whether not throwing stmts have EH info.
21987         * graphite-scop-detection.c (create_sese_edges): Adjust.
21988         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21989         * tree-eh.c (lower_try_finally_switch): Do not add the
21990         default case label twice.
21991
21992 2014-04-30  Marek Polacek  <polacek@redhat.com>
21993
21994         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21995         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21996         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21997         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21998
21999 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22000
22001         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22002         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22003         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22004         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22005         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22006         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22007         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22008         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22009
22010 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
22011
22012         * tree-cfg.c (dump_function_to_file): Dump the return type of
22013         functions, in a line to itself before the function body, mimicking
22014         the layout of a C function.
22015
22016 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
22017
22018         PR tree-optimization/60971
22019         * tree-tailcall.c (process_assignment): Reject conversions which
22020         reduce precision.
22021
22022 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22023
22024         * calls.c (initialize_argument_information): Always treat
22025         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22026         (expand_call): Likewise.
22027         (emit_library_call_calue_1): Likewise.
22028         * expr.c (PUSH_ARGS_REVERSED): Do not define.
22029         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22030         code accordingly.
22031
22032 2014-04-29  Nick Clifton  <nickc@redhat.com>
22033
22034         * config/msp430/msp430.md (umulsidi): Fix typo.
22035         (mulhisi3): Enable even inside interrupt handlers.
22036         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22037         bigger return address pushed in large mode.
22038
22039 2014-04-29  Nick Clifton  <nickc@redhat.com>
22040
22041         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22042         (arc_init_reg_tables): Use a machine_mode enum to iterate over
22043         available modes.
22044         * config/m32r/m32r.c (init_reg_tables): Likewise.
22045         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22046         enum to hold the modes.
22047
22048 2014-04-29  Richard Biener  <rguenther@suse.de>
22049
22050         * dominance.c (free_dominance_info): Add overload with
22051         function parameter.
22052         (dom_info_state): Likewise.
22053         (dom_info_available_p): Likewise.
22054         * basic-block.h (free_dominance_info, dom_info_state,
22055         dom_info_available_p): Declare overloads.
22056         * passes.c (execute_function_todo): Verify that verifiers
22057         don't change dominator info state.  Drop dominator info
22058         for IPA pass invocations.
22059         * cgraph.c (release_function_body): Restore asserts that
22060         dominator information is released.
22061
22062 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
22063
22064         * doc/invoke.texi: Fix typo.
22065         * tree-vrp.c: Fix typos.
22066         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22067
22068 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22069
22070         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22071
22072 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
22073
22074         * config/aarch64/aarch64-builtins.c
22075         (aarch64_types_storestruct_lane_qualifiers): New.
22076         (TYPES_STORESTRUCT_LANE): Likewise.
22077         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22078         (st3_lane): Likewise.
22079         (st4_lane): Likewise.
22080         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22081         (vec_store_lanesci_lane<mode>): Likewise.
22082         (vec_store_lanesxi_lane<mode>): Likewise.
22083         (aarch64_st2_lane<VQ:mode>): Likewise.
22084         (aarch64_st3_lane<VQ:mode>): Likewise.
22085         (aarch64_st4_lane<VQ:mode>): Likewise.
22086         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22087         * config/aarch64/arm_neon.h
22088         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22089         use new macro arguments.
22090         (__ST3_LANE_FUNC): Likewise.
22091         (__ST4_LANE_FUNC): Likewise.
22092         * config/aarch64/iterators.md (V_TWO_ELEM): New.
22093         (V_THREE_ELEM): Likewise.
22094         (V_FOUR_ELEM): Likewise.
22095
22096 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
22097
22098         * doc/gimple.texi: Replace the description of the now-defunct
22099         union gimple_statement_d with a diagram showing the
22100         gimple_statement_base class hierarchy and its relationships to
22101         the GSS_ and GIMPLE_ enums.
22102
22103 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
22104
22105         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22106         * config/aarch64/aarch64.c
22107         (aarch64_cannot_change_mode_class): Weaken conditions.
22108         (aarch64_modes_tieable_p): New.
22109         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22110
22111 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
22112
22113         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22114         (loadsync_<mode>): Change mode.
22115         (load_quadpti, store_quadpti): New.
22116         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22117         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22118
22119 2014-04-28  Martin Jambor  <mjambor@suse.cz>
22120
22121         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22122         same alias type as the original statement.
22123         (subreplacement_assignment_data): New type.
22124         (handle_unscalarized_data_in_subtree): New type of parameter,
22125         generate new memory accesses with same alias type as the original
22126         statement.
22127         (load_assign_lhs_subreplacements): Likewise.
22128         (sra_modify_constructor_assign): Generate new memory accesses with
22129         same alias type as the original statement.
22130
22131 2014-04-28  Richard Biener  <rguenther@suse.de>
22132
22133         * tree-pass.h (TODO_verify_il): Define.
22134         (TODO_verify_all): Complete properly.
22135         * passes.c (execute_function_todo): Move existing loop-closed
22136         SSA verification under TODO_verify_il.
22137         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22138         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22139         Fix tree sharing issue.
22140
22141 2014-04-28  Richard Biener  <rguenther@suse.de>
22142
22143         PR middle-end/60092
22144         * builtins.def (DEF_C11_BUILTIN): Add.
22145         (BUILT_IN_ALIGNED_ALLOC): Likewise.
22146         * coretypes.h (enum function_class): Add function_c11_misc.
22147         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22148         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22149         (call_may_clobber_ref_p_1): Likewise.
22150         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22151         (mark_all_reaching_defs_necessary_1): Likewise.
22152         (propagate_necessity): Likewise.
22153         (eliminate_unnecessary_stmts): Likewise.
22154         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22155
22156 2014-04-28  Richard Biener  <rguenther@suse.de>
22157
22158         * tree-vrp.c (vrp_var_may_overflow): Remove.
22159         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22160         with overflow immediately bump to one before that value and
22161         let iteration figure out overflow status.
22162
22163 2014-04-28  Richard Biener  <rguenther@suse.de>
22164
22165         * configure.ac: Do valgrind header checks unconditionally.
22166         Add --enable-valgrind-annotations.
22167         * system.h: Guard valgrind header inclusion with
22168         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22169         * alloc-pool.c (pool_alloc, pool_free): Use
22170         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22171         to guard possibly dead code.
22172         * config.in: Regenerated.
22173         * configure: Likewise.
22174
22175 2014-04-28  Jeff Law  <law@redhat.com>
22176
22177         PR tree-optimization/60902
22178         * tree-ssa-threadedge.c
22179         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22180         over real defs when invalidating outputs from statements that do not
22181         produce useful outputs for threading.
22182
22183 2014-04-28  Richard Biener  <rguenther@suse.de>
22184
22185         PR tree-optimization/60979
22186         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22187         SCOPs that end in a block with a successor with abnormal
22188         predecessors.
22189
22190 2014-04-28  Richard Biener  <rguenther@suse.de>
22191
22192         * tree-pass.h (execute_pass_list): Adjust prototype.
22193         * passes.c (pass_manager::execute_early_local_passes): Adjust.
22194         (do_per_function): Change callback signature, push all actual
22195         work to the callbals.
22196         (do_per_function_toporder): Likewise.
22197         (execute_function_dump): Adjust.
22198         (execute_function_todo): Likewise.
22199         (clear_last_verified): Likewise.
22200         (verify_curr_properties): Likewise.
22201         (update_properties_after_pass): Likewise.
22202         (execute_pass_list_1): Split out from ...
22203         (execute_pass_list): ... here.  Adjust.
22204         (execute_ipa_pass_list): Likewise.
22205         * cgraphunit.c (cgraph_add_new_function): Adjust.
22206         (analyze_function): Likewise.
22207         (expand_function): Likewise.
22208         * cgraph.c (release_function_body): Free dominance info
22209         here instead of asserting it was magically freed elsewhere.
22210
22211 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
22212
22213         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22214         * configure: Regenerate.
22215         * config/sparc/sparc.opt (muser-mode): New option.
22216         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22217         for LEON3.
22218         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22219         * doc/invoke.texi (SPARC options): Document -muser-mode.
22220
22221 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
22222
22223         * cselib.c (find_slot_memmode): Delete.
22224         (cselib_hasher): Change compare_type to a struct.
22225         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
22226         constants.
22227         (preserve_constants_and_equivs): Adjust for new compare_type.
22228         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
22229         (wrap_constant): Delete.
22230         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22231
22232 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
22233
22234         * doc/install.texi (Building with profile feedback): Remove
22235         outdated sentence.
22236
22237 2014-04-26  Tom de Vries  <tom@codesourcery.com>
22238
22239         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22240         array accesses.
22241
22242 2014-04-25  Cary Coutant  <ccoutant@google.com>
22243
22244         PR debug/60929
22245         * dwarf2out.c (should_move_die_to_comdat): A type definition
22246         can contain a subprogram definition, but don't move it to a
22247         comdat unit.
22248         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22249         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22250         from original DIE.
22251         (clone_tree_hash): Rename to...
22252         (clone_tree_partial): ...this; change callers.  Copy
22253         DW_TAG_subprogram DIEs as declarations.
22254         (copy_decls_walk): Don't copy children of a declaration into a
22255         type unit.
22256
22257 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
22258
22259         PR target/60969
22260         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22261         alternative 12.
22262
22263 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
22264
22265         * config/arm/predicates.md (call_insn_operand): Add long_call check.
22266         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22267         reg for long_call.
22268         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22269         restriction.
22270
22271 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22272
22273         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22274
22275 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22276
22277         PR tree-optimization/60930
22278         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
22279         creating a multiply candidate by folding two constant
22280         multiplicands when the result overflows.
22281
22282 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
22283
22284         PR tree-optimization/60960
22285         * tree-vect-generic.c (expand_vector_operation): Only call
22286         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22287
22288 2014-04-25  Tom de Vries  <tom@codesourcery.com>
22289
22290         * expr.c (clobber_reg_mode): New function.
22291         * expr.h (clobber_reg): New function.
22292
22293 2014-04-25  Tom de Vries  <tom@codesourcery.com>
22294
22295         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22296         clobbers.
22297
22298 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
22299             Tom de Vries  <tom@codesourcery.com>
22300
22301         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22302         handle.
22303         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22304         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22305         new argument to find_all_hard_reg_sets call.
22306
22307 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22308
22309         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22310         Use HOST_WIDE_INT_C for mask literal.
22311         (aarch_rev16_shleft_mask_imm_p): Likewise.
22312
22313 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
22314
22315         PR target/60941
22316         * config/sparc/sparc.md (ashlsi3_extend): Delete.
22317
22318 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
22319
22320         PR preprocessor/56540
22321         * config/i386/i386-c.c (ix86_target_macros): Define
22322         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22323
22324 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22325
22326         * configure.ac (tga_func): Remove.
22327         (LIB_TLS_SPEC): Remove.
22328         * configure: Regenerate.
22329         * config.in: Regenerate.
22330         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22331
22332 2014-04-25  Richard Biener  <rguenther@suse.de>
22333
22334         PR ipa/60912
22335         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22336         call stmt use/clobber sets during stmt walk instead of
22337         walking the possibly incomplete set of caller edges.
22338
22339 2014-04-25  Richard Biener  <rguenther@suse.de>
22340
22341         PR ipa/60911
22342         * passes.c (apply_ipa_transforms): Inline into only caller ...
22343         (execute_one_pass): ... here.  Properly bring in function
22344         bodies for nodes we want to apply IPA transforms to.
22345
22346 2014-04-24  Cong Hou  <congh@google.com>
22347
22348         PR tree-optimization/60896
22349         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22350         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22351         (vect_mark_pattern_stmts): Set the def type of all statements in
22352         PATTERN_DEF_SEQ as vect_internal_def.
22353
22354 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
22355
22356         * doc/extend.texi (PowerPC Built-in Functions): Document new
22357         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22358         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22359
22360         * config/rs6000/predicates.md (const_0_to_3_operand): New
22361         predicate to match 0..3 integer constants.
22362
22363         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22364         to support adding miscellaneous builtin functions.
22365         (BU_DFP_MISC_2): Likewise.
22366         (BU_P7_MISC_1): Likewise.
22367         (BU_P7_MISC_2): Likewise.
22368         (BU_P8V_MISC_3): Likewise.
22369         (BU_MISC_1): Likewise.
22370         (BU_MISC_2): Likewise.
22371         (DIVWE): Add extended divide builtin functions.
22372         (DIVWEO): Likewise.
22373         (DIVWEU): Likewise.
22374         (DIVWEUO): Likewise.
22375         (DIVDE): Likewise.
22376         (DIVDEO): Likewise.
22377         (DIVDEU): Likewise.
22378         (DIVDEUO): Likewise.
22379         (DXEX): Add decimal floating-point builtin functions.
22380         (DXEXQ): Likewise.
22381         (DDEDPD): Likewise.
22382         (DDEDPDQ): Likewise.
22383         (DENBCD): Likewise.
22384         (DENBCDQ): Likewise.
22385         (DIEX): Likewise.
22386         (DIEXQ): Likewise.
22387         (DSCLI): Likewise.
22388         (DSCLIQ): Likewise.
22389         (DSCRI): Likewise.
22390         (DSCRIQ): Likewise.
22391         (CDTBCD): Add new BCD builtin functions.
22392         (CBCDTD): Likewise.
22393         (ADDG6S): Likewise.
22394         (BCDADD): Likewise.
22395         (BCDADD_LT): Likewise.
22396         (BCDADD_EQ): Likewise.
22397         (BCDADD_GT): Likewise.
22398         (BCDADD_OV): Likewise.
22399         (BCDSUB): Likewise.
22400         (BCDSUB_LT): Likewise.
22401         (BCDSUB_EQ): Likewise.
22402         (BCDSUB_GT): Likewise.
22403         (BCDSUB_OV): Likewise.
22404         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22405         (UNPACK_TD): Likewise.
22406         (PACK_TF): Likewise.
22407         (UNPACK_TF): Likewise.
22408         (UNPACK_TF_0): Likewise.
22409         (UNPACK_TF_1): Likewise.
22410         (PACK_V1TI): Likewise.
22411         (UNPACK_V1TI): Likewise.
22412
22413         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22414         support for decimal floating point builtin functions.
22415         (rs6000_expand_ternop_builtin): Add checks for the new builtin
22416         functions that take constant arguments.
22417         (rs6000_invalid_builtin): Add decimal floating point builtin support.
22418         (rs6000_init_builtins): Setup long double, _Decimal64, and
22419         _Decimal128 types for new builtin functions.
22420         (builtin_function_type): Set the unsigned flags appropriately for
22421         the new builtin functions.
22422         (rs6000_opt_masks): Add support for decimal floating point builtin
22423         functions.
22424
22425         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22426         floating point builtin functions.
22427         (RS6000_BTM_COMMON): Likewise.
22428         (RS6000_BTI_long_double): Likewise.
22429         (RS6000_BTI_dfloat64): Likewise.
22430         (RS6000_BTI_dfloat128): Likewise.
22431         (long_double_type_internal_node): Likewise.
22432         (dfloat64_type_internal_node): Likewise.
22433         (dfloat128_type_internal_node): Likewise.
22434
22435         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22436         2.07 bcd arithmetic instructions.
22437         (UNSPEC_BCDSUB): Likewise.
22438         (UNSPEC_BCD_OVERFLOW): Likewise.
22439         (UNSPEC_BCD_ADD_SUB): Likewise.
22440         (bcd_add_sub): Likewise.
22441         (BCD_TEST): Likewise.
22442         (bcd<bcd_add_sub>): Likewise.
22443         (bcd<bcd_add_sub>_test): Likewise.
22444         (bcd<bcd_add_sub>_test2): Likewise.
22445         (bcd<bcd_add_sub>_<code>): Likewise.
22446         (peephole2 for combined bcd ops): Likewise.
22447
22448         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22449         decimal floating point builtin functions.
22450         (UNSPEC_DENBCD): Likewise.
22451         (UNSPEC_DXEX): Likewise.
22452         (UNSPEC_DIEX): Likewise.
22453         (UNSPEC_DSCLI): Likewise.
22454         (UNSPEC_DSCRI): Likewise.
22455         (D64_D128): Likewise.
22456         (dfp_suffix): Likewise.
22457         (dfp_ddedpd_<mode>): Likewise.
22458         (dfp_denbcd_<mode>): Likewise.
22459         (dfp_dxex_<mode>): Likewise.
22460         (dfp_diex_<mode>): Likewise.
22461         (dfp_dscli_<mode>): Likewise.
22462         (dfp_dscri_<mode>): Likewise.
22463
22464         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22465         builtin functions.
22466         (UNSPEC_CDTBCD): Likewise.
22467         (UNSPEC_CBCDTD): Likewise.
22468         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22469         (UNSPEC_DIVEO): Likewise.
22470         (UNSPEC_DIVEU): Likewise.
22471         (UNSPEC_DIVEUO): Likewise.
22472         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22473         pack/unpack 128-bit types.
22474         (UNSPEC_PACK_128BIT): Likewise.
22475         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22476         (udiv<mode>3): Use idiv_ldiv mode attribute.
22477         (div<mode>3): Likewise.
22478         (addg6s): Add new BCD builtin functions.
22479         (cdtbcd): Likewise.
22480         (cbcdtd): Likewise.
22481         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22482         (div_extend): Likewise.
22483         (div<div_extend>_<mode>"): Likewise.
22484         (FP128_64): Add support for new builtin functions to pack/unpack
22485         128-bit types.
22486         (unpack<mode>): Likewise.
22487         (unpacktf_0): Likewise.
22488         (unpacktf_1): Likewise.
22489         (unpack<mode>_dm): Likewise.
22490         (unpack<mode>_nodm): Likewise.
22491         (pack<mode>): Likewise.
22492         (unpackv1ti): Likewise.
22493         (packv1ti): Likewise.
22494
22495 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
22496
22497         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22498         is disabled.
22499
22500 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
22501
22502         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22503         * gimplify.c (omp_is_private): Change last argument's type to int.
22504         Only diagnose lastprivate if the simd argument is 1, only diagnose
22505         linear if the simd argument is 2.
22506         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
22507         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
22508         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
22509         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22510         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22511         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22512         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22513         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22514         * tree-nested.c (convert_nonlocal_omp_clauses,
22515         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22516
22517 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
22518
22519         PR target/60822
22520         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22521         operand 1.
22522
22523 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
22524
22525         * flag-types.h (enum ivar_visibility): Add.
22526
22527 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
22528
22529         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22530         function * argument.
22531
22532 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
22533
22534         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22535
22536 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
22537             Tom de Vries  <tom@codesourcery.com>
22538
22539         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22540         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22541         reg-note.
22542         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22543         * emit-rtl.c (try_split): Same.
22544
22545 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
22546             Tom de Vries  <tom@codesourcery.com>
22547
22548         * common.opt (fuse-caller-save): New option.
22549
22550 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
22551
22552         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22553         elements for big-endian.
22554
22555 2014-04-24  Richard Biener  <rguenther@suse.de>
22556
22557         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22558         during TER and instead use the sepops interface for expanding
22559         non-GIMPLE_SINGLE_RHS.
22560
22561 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22562
22563         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22564         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22565
22566 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22567
22568         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22569         assembler 64-bit option.
22570         * configure: Regenerate.
22571
22572 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22573
22574         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22575         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22576         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22577         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22578         (TARGET_CRYPTO): Take TARGET_SIMD into account.
22579
22580 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22581
22582         * config/aarch64/aarch64-builtins.c
22583         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22584         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22585         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22586         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22587         builtins.
22588         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22589         (Vrevsuff): New mode attribute.
22590
22591 2014-04-24  Terry Guo  <terry.guo@arm.com>
22592
22593         * config/arm/arm.h (machine_function): Define variable
22594         after_arm_reorg here.
22595         * config/arm/arm.c (after_arm_reorg): Remove the definition.
22596         (arm_split_constant): Update the way to access variable
22597         after_arm_reorg.
22598         (arm_reorg): Ditto.
22599         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22600
22601 2014-04-23  Tom de Vries  <tom@codesourcery.com>
22602
22603         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22604
22605 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
22606
22607         * is-a.h: Update comments to reflect the following changes to the
22608         "pointerness" of the API, making the template parameter match the
22609         return type, allowing use of is-a.h with typedefs of pointers.
22610         (is_a_helper::cast): Return a T rather then a pointer to a T, so
22611         that the return type matches the parameter to the is_a_helper.
22612         (as_a): Likewise.
22613         (dyn_cast): Likewise.
22614
22615         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22616         pointer from the is-a.h API.
22617
22618         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22619         (is_a_helper <cgraph_node *>::test): ...this, matching change to
22620         is-a.h API.
22621         (is_a_helper <varpool_node>::test): Likewise, convert to...
22622         (is_a_helper <varpool_node *>::test): ...this.
22623
22624         (varpool_first_variable): Update for removal of implicit pointer
22625         from the is-a.h API.
22626         (varpool_next_variable): Likewise.
22627         (varpool_first_static_initializer): Likewise.
22628         (varpool_next_static_initializer): Likewise.
22629         (varpool_first_defined_variable): Likewise.
22630         (varpool_next_defined_variable): Likewise.
22631         (cgraph_first_defined_function): Likewise.
22632         (cgraph_next_defined_function): Likewise.
22633         (cgraph_first_function): Likewise.
22634         (cgraph_next_function): Likewise.
22635         (cgraph_first_function_with_gimple_body): Likewise.
22636         (cgraph_next_function_with_gimple_body): Likewise.
22637         (cgraph_alias_target): Likewise.
22638         (varpool_alias_target): Likewise.
22639         (cgraph_function_or_thunk_node): Likewise.
22640         (varpool_variable_node): Likewise.
22641         (symtab_real_symbol_p): Likewise.
22642         * cgraphunit.c (referred_to_p): Likewise.
22643         (analyze_functions): Likewise.
22644         (handle_alias_pairs): Likewise.
22645         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22646         * gimple-ssa.h (gimple_vuse_op): Likewise.
22647         (gimple_vdef_op): Likewise.
22648         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22649         * gimple.c (gimple_build_asm_1): Likewise.
22650         (gimple_build_try): Likewise.
22651         (gimple_build_resx): Likewise.
22652         (gimple_build_eh_dispatch): Likewise.
22653         (gimple_build_omp_for): Likewise.
22654         (gimple_omp_for_set_clauses): Likewise.
22655
22656         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22657         (is_a_helper <gimple_statement_asm *>::test): ...this.
22658         (is_a_helper <gimple_statement_bind>::test): Convert to...
22659         (is_a_helper <gimple_statement_bind *>::test): ...this.
22660         (is_a_helper <gimple_statement_call>::test): Convert to...
22661         (is_a_helper <gimple_statement_call *>::test): ...this.
22662         (is_a_helper <gimple_statement_catch>::test): Convert to...
22663         (is_a_helper <gimple_statement_catch *>::test): ...this.
22664         (is_a_helper <gimple_statement_resx>::test): Convert to...
22665         (is_a_helper <gimple_statement_resx *>::test): ...this.
22666         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22667         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22668         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22669         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22670         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22671         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22672         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22673         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22674         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22675         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22676         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22677         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22678         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22679         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22680         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22681         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22682         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22683         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22684         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22685         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22686         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22687         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22688         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22689         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22690         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22691         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22692         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22693         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22694         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22695         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22696         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22697         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22698         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22699         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22700         (is_a_helper <gimple_statement_phi>::test): Convert to...
22701         (is_a_helper <gimple_statement_phi *>::test): ...this.
22702         (is_a_helper <gimple_statement_transaction>::test): Convert to...
22703         (is_a_helper <gimple_statement_transaction *>::test): ...this.
22704         (is_a_helper <gimple_statement_try>::test): Convert to...
22705         (is_a_helper <gimple_statement_try *>::test): ...this.
22706         (is_a_helper <gimple_statement_wce>::test): Convert to...
22707         (is_a_helper <gimple_statement_wce *>::test): ...this.
22708         (is_a_helper <const gimple_statement_asm>::test): Convert to...
22709         (is_a_helper <const gimple_statement_asm *>::test): ...this.
22710         (is_a_helper <const gimple_statement_bind>::test): Convert to...
22711         (is_a_helper <const gimple_statement_bind *>::test): ...this.
22712         (is_a_helper <const gimple_statement_call>::test): Convert to...
22713         (is_a_helper <const gimple_statement_call *>::test): ...this.
22714         (is_a_helper <const gimple_statement_catch>::test): Convert to...
22715         (is_a_helper <const gimple_statement_catch *>::test): ...this.
22716         (is_a_helper <const gimple_statement_resx>::test): Convert to...
22717         (is_a_helper <const gimple_statement_resx *>::test): ...this.
22718         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22719         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22720         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22721         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22722         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22723         Convert to...
22724         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22725         ...this.
22726         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22727         Convert to...
22728         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22729         ...this.
22730         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22731         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22732         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22733         to...
22734         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22735         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22736         to...
22737         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22738         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22739         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22740         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22741         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22742         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22743         to...
22744         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22745         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22746         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22747         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22748         to...
22749         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22750         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22751         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22752         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22753         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22754         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22755         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22756         (is_a_helper <const gimple_statement_phi>::test): Convert to...
22757         (is_a_helper <const gimple_statement_phi *>::test): ...this.
22758         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22759         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22760         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22761         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22762         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22763         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22764         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22765         to...
22766         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22767         ...this.
22768         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22769         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22770
22771         (gimple_use_ops): Update for removal of implicit pointer from the
22772         is-a.h API.
22773         (gimple_set_use_ops): Likewise.
22774         (gimple_vuse): Likewise.
22775         (gimple_vdef): Likewise.
22776         (gimple_vuse_ptr): Likewise.
22777         (gimple_vdef_ptr): Likewise.
22778         (gimple_set_vuse): Likewise.
22779         (gimple_set_vdef): Likewise.
22780         (gimple_omp_return_set_lhs): Likewise.
22781         (gimple_omp_return_lhs): Likewise.
22782         (gimple_omp_return_lhs_ptr): Likewise.
22783         (gimple_call_fntype): Likewise.
22784         (gimple_call_set_fntype): Likewise.
22785         (gimple_call_set_internal_fn): Likewise.
22786         (gimple_call_use_set): Likewise.
22787         (gimple_call_clobber_set): Likewise.
22788         (gimple_bind_vars): Likewise.
22789         (gimple_bind_set_vars): Likewise.
22790         (gimple_bind_body_ptr): Likewise.
22791         (gimple_bind_set_body): Likewise.
22792         (gimple_bind_add_stmt): Likewise.
22793         (gimple_bind_block): Likewise.
22794         (gimple_bind_set_block): Likewise.
22795         (gimple_asm_ninputs): Likewise.
22796         (gimple_asm_noutputs): Likewise.
22797         (gimple_asm_nclobbers): Likewise.
22798         (gimple_asm_nlabels): Likewise.
22799         (gimple_asm_input_op): Likewise.
22800         (gimple_asm_input_op_ptr): Likewise.
22801         (gimple_asm_output_op): Likewise.
22802         (gimple_asm_output_op_ptr): Likewise.
22803         (gimple_asm_set_output_op): Likewise.
22804         (gimple_asm_clobber_op): Likewise.
22805         (gimple_asm_set_clobber_op): Likewise.
22806         (gimple_asm_label_op): Likewise.
22807         (gimple_asm_set_label_op): Likewise.
22808         (gimple_asm_string): Likewise.
22809         (gimple_catch_types): Likewise.
22810         (gimple_catch_types_ptr): Likewise.
22811         (gimple_catch_handler_ptr): Likewise.
22812         (gimple_catch_set_types): Likewise.
22813         (gimple_catch_set_handler): Likewise.
22814         (gimple_eh_filter_types): Likewise.
22815         (gimple_eh_filter_types_ptr): Likewise.
22816         (gimple_eh_filter_failure_ptr): Likewise.
22817         (gimple_eh_filter_set_types): Likewise.
22818         (gimple_eh_filter_set_failure): Likewise.
22819         (gimple_eh_must_not_throw_fndecl): Likewise.
22820         (gimple_eh_must_not_throw_set_fndecl): Likewise.
22821         (gimple_eh_else_n_body_ptr): Likewise.
22822         (gimple_eh_else_e_body_ptr): Likewise.
22823         (gimple_eh_else_set_n_body): Likewise.
22824         (gimple_eh_else_set_e_body): Likewise.
22825         (gimple_try_eval_ptr): Likewise.
22826         (gimple_try_cleanup_ptr): Likewise.
22827         (gimple_try_set_eval): Likewise.
22828         (gimple_try_set_cleanup): Likewise.
22829         (gimple_wce_cleanup_ptr): Likewise.
22830         (gimple_wce_set_cleanup): Likewise.
22831         (gimple_phi_capacity): Likewise.
22832         (gimple_phi_num_args): Likewise.
22833         (gimple_phi_result): Likewise.
22834         (gimple_phi_result_ptr): Likewise.
22835         (gimple_phi_set_result): Likewise.
22836         (gimple_phi_arg): Likewise.
22837         (gimple_phi_set_arg): Likewise.
22838         (gimple_resx_region): Likewise.
22839         (gimple_resx_set_region): Likewise.
22840         (gimple_eh_dispatch_region): Likewise.
22841         (gimple_eh_dispatch_set_region): Likewise.
22842         (gimple_omp_critical_name): Likewise.
22843         (gimple_omp_critical_name_ptr): Likewise.
22844         (gimple_omp_critical_set_name): Likewise.
22845         (gimple_omp_for_clauses): Likewise.
22846         (gimple_omp_for_clauses_ptr): Likewise.
22847         (gimple_omp_for_set_clauses): Likewise.
22848         (gimple_omp_for_collapse): Likewise.
22849         (gimple_omp_for_index): Likewise.
22850         (gimple_omp_for_index_ptr): Likewise.
22851         (gimple_omp_for_set_index): Likewise.
22852         (gimple_omp_for_initial): Likewise.
22853         (gimple_omp_for_initial_ptr): Likewise.
22854         (gimple_omp_for_set_initial): Likewise.
22855         (gimple_omp_for_final): Likewise.
22856         (gimple_omp_for_final_ptr): Likewise.
22857         (gimple_omp_for_set_final): Likewise.
22858         (gimple_omp_for_incr): Likewise.
22859         (gimple_omp_for_incr_ptr): Likewise.
22860         (gimple_omp_for_set_incr): Likewise.
22861         (gimple_omp_for_pre_body_ptr): Likewise.
22862         (gimple_omp_for_set_pre_body): Likewise.
22863         (gimple_omp_parallel_clauses): Likewise.
22864         (gimple_omp_parallel_clauses_ptr): Likewise.
22865         (gimple_omp_parallel_set_clauses): Likewise.
22866         (gimple_omp_parallel_child_fn): Likewise.
22867         (gimple_omp_parallel_child_fn_ptr): Likewise.
22868         (gimple_omp_parallel_set_child_fn): Likewise.
22869         (gimple_omp_parallel_data_arg): Likewise.
22870         (gimple_omp_parallel_data_arg_ptr): Likewise.
22871         (gimple_omp_parallel_set_data_arg): Likewise.
22872         (gimple_omp_task_clauses): Likewise.
22873         (gimple_omp_task_clauses_ptr): Likewise.
22874         (gimple_omp_task_set_clauses): Likewise.
22875         (gimple_omp_task_child_fn): Likewise.
22876         (gimple_omp_task_child_fn_ptr): Likewise.
22877         (gimple_omp_task_set_child_fn): Likewise.
22878         (gimple_omp_task_data_arg): Likewise.
22879         (gimple_omp_task_data_arg_ptr): Likewise.
22880         (gimple_omp_task_set_data_arg): Likewise.
22881         (gimple_omp_taskreg_clauses): Likewise.
22882         (gimple_omp_taskreg_clauses_ptr): Likewise.
22883         (gimple_omp_taskreg_set_clauses): Likewise.
22884         (gimple_omp_taskreg_child_fn): Likewise.
22885         (gimple_omp_taskreg_child_fn_ptr): Likewise.
22886         (gimple_omp_taskreg_set_child_fn): Likewise.
22887         (gimple_omp_taskreg_data_arg): Likewise.
22888         (gimple_omp_taskreg_data_arg_ptr): Likewise.
22889         (gimple_omp_taskreg_set_data_arg): Likewise.
22890         (gimple_omp_task_copy_fn): Likewise.
22891         (gimple_omp_task_copy_fn_ptr): Likewise.
22892         (gimple_omp_task_set_copy_fn): Likewise.
22893         (gimple_omp_task_arg_size): Likewise.
22894         (gimple_omp_task_arg_size_ptr): Likewise.
22895         (gimple_omp_task_set_arg_size): Likewise.
22896         (gimple_omp_task_arg_align): Likewise.
22897         (gimple_omp_task_arg_align_ptr): Likewise.
22898         (gimple_omp_task_set_arg_align): Likewise.
22899         (gimple_omp_single_clauses): Likewise.
22900         (gimple_omp_single_clauses_ptr): Likewise.
22901         (gimple_omp_single_set_clauses): Likewise.
22902         (gimple_omp_target_clauses): Likewise.
22903         (gimple_omp_target_clauses_ptr): Likewise.
22904         (gimple_omp_target_set_clauses): Likewise.
22905         (gimple_omp_target_child_fn): Likewise.
22906         (gimple_omp_target_child_fn_ptr): Likewise.
22907         (gimple_omp_target_set_child_fn): Likewise.
22908         (gimple_omp_target_data_arg): Likewise.
22909         (gimple_omp_target_data_arg_ptr): Likewise.
22910         (gimple_omp_target_set_data_arg): Likewise.
22911         (gimple_omp_teams_clauses): Likewise.
22912         (gimple_omp_teams_clauses_ptr): Likewise.
22913         (gimple_omp_teams_set_clauses): Likewise.
22914         (gimple_omp_sections_clauses): Likewise.
22915         (gimple_omp_sections_clauses_ptr): Likewise.
22916         (gimple_omp_sections_set_clauses): Likewise.
22917         (gimple_omp_sections_control): Likewise.
22918         (gimple_omp_sections_control_ptr): Likewise.
22919         (gimple_omp_sections_set_control): Likewise.
22920         (gimple_omp_for_set_cond): Likewise.
22921         (gimple_omp_for_cond): Likewise.
22922         (gimple_omp_atomic_store_set_val): Likewise.
22923         (gimple_omp_atomic_store_val): Likewise.
22924         (gimple_omp_atomic_store_val_ptr): Likewise.
22925         (gimple_omp_atomic_load_set_lhs): Likewise.
22926         (gimple_omp_atomic_load_lhs): Likewise.
22927         (gimple_omp_atomic_load_lhs_ptr): Likewise.
22928         (gimple_omp_atomic_load_set_rhs): Likewise.
22929         (gimple_omp_atomic_load_rhs): Likewise.
22930         (gimple_omp_atomic_load_rhs_ptr): Likewise.
22931         (gimple_omp_continue_control_def): Likewise.
22932         (gimple_omp_continue_control_def_ptr): Likewise.
22933         (gimple_omp_continue_set_control_def): Likewise.
22934         (gimple_omp_continue_control_use): Likewise.
22935         (gimple_omp_continue_control_use_ptr): Likewise.
22936         (gimple_omp_continue_set_control_use): Likewise.
22937         (gimple_transaction_body_ptr): Likewise.
22938         (gimple_transaction_label): Likewise.
22939         (gimple_transaction_label_ptr): Likewise.
22940         (gimple_transaction_set_body): Likewise.
22941         (gimple_transaction_set_label): Likewise.
22942
22943         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22944         * ipa-inline-analysis.c (inline_write_summary): Likewise.
22945         * ipa-ref.c (ipa_record_reference): Likewise.
22946         * ipa-reference.c (analyze_function): Likewise.
22947         (ipa_reference_write_optimization_summary): Likewise.
22948         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22949         (address_taken_from_non_vtable_p): Likewise.
22950         (comdat_can_be_unshared_p_1): Likewise.
22951         * lto-cgraph.c (lto_output_ref): Likewise.
22952         (add_references): Likewise.
22953         (compute_ltrans_boundary): Likewise.
22954         (output_symtab): Likewise.
22955         (input_ref): Likewise.
22956         (input_cgraph_1): Likewise.
22957         (output_cgraph_opt_summary): Likewise.
22958         * lto-streamer-out.c (lto_output): Likewise.
22959         (output_symbol_p): Likewise.
22960         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22961         (lsei_start_function_in_partition): Likewise.
22962         (lsei_next_variable_in_partition): Likewise.
22963         (lsei_start_variable_in_partition): Likewise.
22964         * symtab.c (insert_to_assembler_name_hash): Likewise.
22965         (unlink_from_assembler_name_hash): Likewise.
22966         (symtab_unregister_node): Likewise.
22967         (symtab_remove_node): Likewise.
22968         (dump_symtab_node): Likewise.
22969         (verify_symtab_base): Likewise.
22970         (verify_symtab_node): Likewise.
22971         (symtab_make_decl_local): Likewise.
22972         (symtab_alias_ultimate_target): Likewise.
22973         (symtab_resolve_alias): Likewise.
22974         (symtab_get_symbol_partitioning_class): Likewise.
22975         * tree-phinodes.c (allocate_phi_node): Likewise.
22976         (reserve_phi_args_for_new_edge): Likewise.
22977         (remove_phi_args): Likewise.
22978         * varpool.c (varpool_node_for_asm): Likewise.
22979         (varpool_remove_unreferenced_decls): Likewise.
22980
22981 2014-04-23  Jeff Law  <law@redhat.com>
22982
22983         PR tree-optimization/60902
22984         * tree-ssa-threadedge.c
22985         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22986         invalidate outputs from statements that do not produce useful
22987         outputs for threading.
22988
22989 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
22990
22991         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22992         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22993         machine descriptions for Stack Smashing Protector.
22994
22995 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
22996
22997         * aarch64.md (<optab>_rol<mode>3): New pattern.
22998         (<optab>_rolsi3_uxtw): Likewise.
22999         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23000
23001 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
23002
23003         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23004         (arm_cortex_a12_tune): Likewise.
23005
23006 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23007
23008         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23009
23010 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23011
23012         * config/arm/arm.md (arm_rev16si2): New pattern.
23013         (arm_rev16si2_alt): Likewise.
23014         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23015
23016 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23017
23018         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23019         (rev16<mode>2_alt): Likewise.
23020         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23021         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23022         (aarch_rev16_shleft_mask_imm_p): Likewise.
23023         (aarch_rev16_p_1): Likewise.
23024         (aarch_rev16_p): Likewise.
23025         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23026         (aarch_rev16_shright_mask_imm_p): Likewise.
23027         (aarch_rev16_shleft_mask_imm_p): Likewise.
23028
23029 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23030
23031         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23032         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23033         rev cost.
23034         (cortex_a53_extra_costs): Likewise.
23035         (cortex_a57_extra_costs): Likewise.
23036         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23037         (cortexa7_extra_costs): Likewise.
23038         (cortexa8_extra_costs): Likewise.
23039         (cortexa12_extra_costs): Likewise.
23040         (cortexa15_extra_costs): Likewise.
23041         (v7m_extra_costs): Likewise.
23042         (arm_new_rtx_costs): Handle BSWAP.
23043
23044 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23045
23046         * config/arm/arm.c (cortexa8_extra_costs): New table.
23047         (arm_cortex_a8_tune): New tuning struct.
23048         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23049
23050 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23051
23052         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23053
23054 2014-04-23  Richard Biener  <rguenther@suse.de>
23055
23056         * Makefile.in (OBJS): Remove loop-unswitch.o.
23057         * tree-pass.h (make_pass_rtl_unswitch): Remove.
23058         * passes.def (pass_rtl_unswitch): Likewise.
23059         * loop-init.c (gate_rtl_unswitch): Likewise.
23060         (rtl_unswitch): Likewise.
23061         (pass_data_rtl_unswitch): Likewise.
23062         (pass_rtl_unswitch): Likewise.
23063         (make_pass_rtl_unswitch): Likewise.
23064         * rtl.h (reversed_condition): Likewise.
23065         (compare_and_jump_seq): Likewise.
23066         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23067         and make static.
23068         * loop-unroll.c (compare_and_jump_seq): Likewise.
23069
23070 2014-04-23  Richard Biener  <rguenther@suse.de>
23071
23072         PR tree-optimization/60903
23073         * tree-ssa-loop-im.c (analyze_memory_references): Remove
23074         commented code block.
23075         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23076         loop flags to newly created BBs and edges.
23077
23078 2014-04-23  Nick Clifton  <nickc@redhat.com>
23079
23080         * config/msp430/msp430.c (msp430_handle_option): Move function
23081         to msp430-common.c
23082         (msp430_option_override): Simplify mcu and mcpu option handling.
23083         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
23084         support for -mhwmult command line option.
23085         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
23086         -mhwmult command line option.
23087         (msp430_hwmult_enabled): Delete.
23088         (msp43o_output_labelref): Add support for -mhwmult command line option.
23089         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23090         (umulsidi3): Likewise.
23091         * config/msp430/msp430.opt (mmcu): Add Report attribute.
23092         (mcpu, mlarge, msmall): Likewise.
23093         (mhwmult): New option.
23094         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23095         prototype.
23096         (msp430_is_f5_mcu): Remove prototype.
23097         (msp430_use_f5_series_hwmult): Add prototype.
23098         * config/msp430/msp430-opts.h: New file.
23099         * common/config/msp430: New directory.
23100         * common/config/msp430/msp430-common.c: New file.
23101         * config.gcc (msp430): Remove target_has_targetm_common.
23102         * doc/invoke.texi: Document -mhwmult command line option.
23103
23104 2014-04-23  Nick Clifton  <nickc@redhat.com>
23105
23106         * config/i386/cygwin.h (ENDFILE_SPEC): Include
23107         default-manifest.o if it can be found in the search path.
23108         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23109
23110 2014-04-23  Terry Guo  <terry.guo@arm.com>
23111
23112         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23113
23114 2014-04-23  Richard Biener  <rguenther@suse.de>
23115
23116         PR middle-end/60895
23117         * tree-inline.c (declare_return_variable): Use mark_addressable.
23118
23119 2014-04-23  Richard Biener  <rguenther@suse.de>
23120
23121         PR middle-end/60891
23122         * loop-init.c (loop_optimizer_init): Make sure to apply
23123         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23124
23125 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23126
23127         PR sanitizer/60275
23128         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23129         New options.
23130         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23131         if flag_sanitize_undefined_trap_on_error.
23132         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23133         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23134         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23135         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23136         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23137         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23138         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23139         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23140         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23141         * ubsan.c (ubsan_instrument_unreachable): Return
23142         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23143         (ubsan_expand_null_ifn): Emit __builtin_trap ()
23144         if flag_sanitize_undefined_trap_on_error and
23145         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23146         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23147         instrument_bool_enum_load): Emit __builtin_trap () if
23148         flag_sanitize_undefined_trap_on_error and
23149         __builtin_handle_*_abort () if !flag_sanitize_recover.
23150         * doc/invoke.texi (-fsanitize-recover,
23151         -fsanitize-undefined-trap-on-error): Document.
23152
23153 2014-04-22  Christian Bruel  <christian.bruel@st.com>
23154
23155         * config/sh/sh.md (mov<mode>): Replace movQIHI.
23156          Force immediates to SImode.
23157
23158 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
23159
23160         * config/nios2/nios2.md (UNSPEC_ROUND): New.
23161         (lroundsfsi2): New.
23162         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23163         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23164         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23165         (nios2_fpu_insn): Add entry for round.
23166         (N2FPU_NO_ERRNO_P): Define.
23167         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23168         flag_errno_math.
23169         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23170
23171 2014-04-22  Richard Henderson  <rth@redhat.com>
23172
23173         * config/aarch64/aarch64 (addti3, subti3): New expanders.
23174         (add<GPI>3_compare0): Remove leading * from name.
23175         (add<GPI>3_carryin): Likewise.
23176         (sub<GPI>3_compare0): Likewise.
23177         (sub<GPI>3_carryin): Likewise.
23178         (<su_optab>mulditi3): New expander.
23179         (multi3): New expander.
23180         (madd<GPI>): Remove leading * from name.
23181
23182 2014-04-22  Martin Jambor  <mjambor@suse.cz>
23183
23184         * cgraphclones.c (cgraph_function_versioning): Copy
23185         ipa_transforms_to_apply instead of asserting it is empty.
23186
23187 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
23188
23189         PR target/60868
23190         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23191         on count_exp to get mode.
23192
23193 2014-04-22  Andrew Pinski  <apinski@cavium.com>
23194
23195         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23196         Handle TLS for ILP32.
23197         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23198         (tlsie_small_<mode>): this and handle PTR.
23199         (tlsie_small_sidi): New pattern.
23200         (tlsle_small): Change to an expand to handle ILP32.
23201         (tlsle_small_<mode>): New pattern.
23202         (tlsdesc_small): Rename to ...
23203         (tlsdesc_small_<mode>): this and handle PTR.
23204
23205 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23206
23207         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23208
23209 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23210
23211         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23212         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23213         (aarch64_types_signed_poly_qualifiers): Likewise.
23214         (aarch64_types_unsigned_signed_qualifiers): Likewise.
23215         (aarch64_types_poly_signed_qualifiers): Likewise.
23216         (TYPES_REINTERP_SS): Type macro added.
23217         (TYPES_REINTERP_SU): Likewise.
23218         (TYPES_REINTERP_SP): Likewise.
23219         (TYPES_REINTERP_US): Likewise.
23220         (TYPES_REINTERP_PS): Likewise.
23221         (aarch64_fold_builtin): New expression folding added.
23222         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23223         Declarations removed.
23224         (REINTERP_SS): Declarations added.
23225         (REINTERP_US): Likewise.
23226         (REINTERP_PS): Likewise.
23227         (REINTERP_SU): Likewise.
23228         (REINTERP_SP): Likewise.
23229         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23230         (vreinterpretq_p8_f64): Likewise.
23231         (vreinterpret_p16_f64): Likewise.
23232         (vreinterpretq_p16_f64): Likewise.
23233         (vreinterpret_f32_f64): Likewise.
23234         (vreinterpretq_f32_f64): Likewise.
23235         (vreinterpret_f64_f32): Likewise.
23236         (vreinterpret_f64_p8): Likewise.
23237         (vreinterpret_f64_p16): Likewise.
23238         (vreinterpret_f64_s8): Likewise.
23239         (vreinterpret_f64_s16): Likewise.
23240         (vreinterpret_f64_s32): Likewise.
23241         (vreinterpret_f64_s64): Likewise.
23242         (vreinterpret_f64_u8): Likewise.
23243         (vreinterpret_f64_u16): Likewise.
23244         (vreinterpret_f64_u32): Likewise.
23245         (vreinterpret_f64_u64): Likewise.
23246         (vreinterpretq_f64_f32): Likewise.
23247         (vreinterpretq_f64_p8): Likewise.
23248         (vreinterpretq_f64_p16): Likewise.
23249         (vreinterpretq_f64_s8): Likewise.
23250         (vreinterpretq_f64_s16): Likewise.
23251         (vreinterpretq_f64_s32): Likewise.
23252         (vreinterpretq_f64_s64): Likewise.
23253         (vreinterpretq_f64_u8): Likewise.
23254         (vreinterpretq_f64_u16): Likewise.
23255         (vreinterpretq_f64_u32): Likewise.
23256         (vreinterpretq_f64_u64): Likewise.
23257         (vreinterpret_s64_f64): Likewise.
23258         (vreinterpretq_s64_f64): Likewise.
23259         (vreinterpret_u64_f64): Likewise.
23260         (vreinterpretq_u64_f64): Likewise.
23261         (vreinterpret_s8_f64): Likewise.
23262         (vreinterpretq_s8_f64): Likewise.
23263         (vreinterpret_s16_f64): Likewise.
23264         (vreinterpretq_s16_f64): Likewise.
23265         (vreinterpret_s32_f64): Likewise.
23266         (vreinterpretq_s32_f64): Likewise.
23267         (vreinterpret_u8_f64): Likewise.
23268         (vreinterpretq_u8_f64): Likewise.
23269         (vreinterpret_u16_f64): Likewise.
23270         (vreinterpretq_u16_f64): Likewise.
23271         (vreinterpret_u32_f64): Likewise.
23272         (vreinterpretq_u32_f64): Likewise.
23273
23274 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23275
23276         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23277         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23278         (vreinterpret_p8_s8): Likewise.
23279         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23280         (vreinterpret_p8_s16): Likewise.
23281         (vreinterpret_p8_s32): Likewise.
23282         (vreinterpret_p8_s64): Likewise.
23283         (vreinterpret_p8_f32): Likewise.
23284         (vreinterpret_p8_u8): Likewise.
23285         (vreinterpret_p8_u16): Likewise.
23286         (vreinterpret_p8_u32): Likewise.
23287         (vreinterpret_p8_u64): Likewise.
23288         (vreinterpret_p8_p16): Likewise.
23289         (vreinterpretq_p8_s8): Likewise.
23290         (vreinterpretq_p8_s16): Likewise.
23291         (vreinterpretq_p8_s32): Likewise.
23292         (vreinterpretq_p8_s64): Likewise.
23293         (vreinterpretq_p8_f32): Likewise.
23294         (vreinterpretq_p8_u8): Likewise.
23295         (vreinterpretq_p8_u16): Likewise.
23296         (vreinterpretq_p8_u32): Likewise.
23297         (vreinterpretq_p8_u64): Likewise.
23298         (vreinterpretq_p8_p16): Likewise.
23299         (vreinterpret_p16_s8): Likewise.
23300         (vreinterpret_p16_s16): Likewise.
23301         (vreinterpret_p16_s32): Likewise.
23302         (vreinterpret_p16_s64): Likewise.
23303         (vreinterpret_p16_f32): Likewise.
23304         (vreinterpret_p16_u8): Likewise.
23305         (vreinterpret_p16_u16): Likewise.
23306         (vreinterpret_p16_u32): Likewise.
23307         (vreinterpret_p16_u64): Likewise.
23308         (vreinterpret_p16_p8): Likewise.
23309         (vreinterpretq_p16_s8): Likewise.
23310         (vreinterpretq_p16_s16): Likewise.
23311         (vreinterpretq_p16_s32): Likewise.
23312         (vreinterpretq_p16_s64): Likewise.
23313         (vreinterpretq_p16_f32): Likewise.
23314         (vreinterpretq_p16_u8): Likewise.
23315         (vreinterpretq_p16_u16): Likewise.
23316         (vreinterpretq_p16_u32): Likewise.
23317         (vreinterpretq_p16_u64): Likewise.
23318         (vreinterpretq_p16_p8): Likewise.
23319         (vreinterpret_f32_s8): Likewise.
23320         (vreinterpret_f32_s16): Likewise.
23321         (vreinterpret_f32_s32): Likewise.
23322         (vreinterpret_f32_s64): Likewise.
23323         (vreinterpret_f32_u8): Likewise.
23324         (vreinterpret_f32_u16): Likewise.
23325         (vreinterpret_f32_u32): Likewise.
23326         (vreinterpret_f32_u64): Likewise.
23327         (vreinterpret_f32_p8): Likewise.
23328         (vreinterpret_f32_p16): Likewise.
23329         (vreinterpretq_f32_s8): Likewise.
23330         (vreinterpretq_f32_s16): Likewise.
23331         (vreinterpretq_f32_s32): Likewise.
23332         (vreinterpretq_f32_s64): Likewise.
23333         (vreinterpretq_f32_u8): Likewise.
23334         (vreinterpretq_f32_u16): Likewise.
23335         (vreinterpretq_f32_u32): Likewise.
23336         (vreinterpretq_f32_u64): Likewise.
23337         (vreinterpretq_f32_p8): Likewise.
23338         (vreinterpretq_f32_p16): Likewise.
23339         (vreinterpret_s64_s8): Likewise.
23340         (vreinterpret_s64_s16): Likewise.
23341         (vreinterpret_s64_s32): Likewise.
23342         (vreinterpret_s64_f32): Likewise.
23343         (vreinterpret_s64_u8): Likewise.
23344         (vreinterpret_s64_u16): Likewise.
23345         (vreinterpret_s64_u32): Likewise.
23346         (vreinterpret_s64_u64): Likewise.
23347         (vreinterpret_s64_p8): Likewise.
23348         (vreinterpret_s64_p16): Likewise.
23349         (vreinterpretq_s64_s8): Likewise.
23350         (vreinterpretq_s64_s16): Likewise.
23351         (vreinterpretq_s64_s32): Likewise.
23352         (vreinterpretq_s64_f32): Likewise.
23353         (vreinterpretq_s64_u8): Likewise.
23354         (vreinterpretq_s64_u16): Likewise.
23355         (vreinterpretq_s64_u32): Likewise.
23356         (vreinterpretq_s64_u64): Likewise.
23357         (vreinterpretq_s64_p8): Likewise.
23358         (vreinterpretq_s64_p16): Likewise.
23359         (vreinterpret_u64_s8): Likewise.
23360         (vreinterpret_u64_s16): Likewise.
23361         (vreinterpret_u64_s32): Likewise.
23362         (vreinterpret_u64_s64): Likewise.
23363         (vreinterpret_u64_f32): Likewise.
23364         (vreinterpret_u64_u8): Likewise.
23365         (vreinterpret_u64_u16): Likewise.
23366         (vreinterpret_u64_u32): Likewise.
23367         (vreinterpret_u64_p8): Likewise.
23368         (vreinterpret_u64_p16): Likewise.
23369         (vreinterpretq_u64_s8): Likewise.
23370         (vreinterpretq_u64_s16): Likewise.
23371         (vreinterpretq_u64_s32): Likewise.
23372         (vreinterpretq_u64_s64): Likewise.
23373         (vreinterpretq_u64_f32): Likewise.
23374         (vreinterpretq_u64_u8): Likewise.
23375         (vreinterpretq_u64_u16): Likewise.
23376         (vreinterpretq_u64_u32): Likewise.
23377         (vreinterpretq_u64_p8): Likewise.
23378         (vreinterpretq_u64_p16): Likewise.
23379         (vreinterpret_s8_s16): Likewise.
23380         (vreinterpret_s8_s32): Likewise.
23381         (vreinterpret_s8_s64): Likewise.
23382         (vreinterpret_s8_f32): Likewise.
23383         (vreinterpret_s8_u8): Likewise.
23384         (vreinterpret_s8_u16): Likewise.
23385         (vreinterpret_s8_u32): Likewise.
23386         (vreinterpret_s8_u64): Likewise.
23387         (vreinterpret_s8_p8): Likewise.
23388         (vreinterpret_s8_p16): Likewise.
23389         (vreinterpretq_s8_s16): Likewise.
23390         (vreinterpretq_s8_s32): Likewise.
23391         (vreinterpretq_s8_s64): Likewise.
23392         (vreinterpretq_s8_f32): Likewise.
23393         (vreinterpretq_s8_u8): Likewise.
23394         (vreinterpretq_s8_u16): Likewise.
23395         (vreinterpretq_s8_u32): Likewise.
23396         (vreinterpretq_s8_u64): Likewise.
23397         (vreinterpretq_s8_p8): Likewise.
23398         (vreinterpretq_s8_p16): Likewise.
23399         (vreinterpret_s16_s8): Likewise.
23400         (vreinterpret_s16_s32): Likewise.
23401         (vreinterpret_s16_s64): Likewise.
23402         (vreinterpret_s16_f32): Likewise.
23403         (vreinterpret_s16_u8): Likewise.
23404         (vreinterpret_s16_u16): Likewise.
23405         (vreinterpret_s16_u32): Likewise.
23406         (vreinterpret_s16_u64): Likewise.
23407         (vreinterpret_s16_p8): Likewise.
23408         (vreinterpret_s16_p16): Likewise.
23409         (vreinterpretq_s16_s8): Likewise.
23410         (vreinterpretq_s16_s32): Likewise.
23411         (vreinterpretq_s16_s64): Likewise.
23412         (vreinterpretq_s16_f32): Likewise.
23413         (vreinterpretq_s16_u8): Likewise.
23414         (vreinterpretq_s16_u16): Likewise.
23415         (vreinterpretq_s16_u32): Likewise.
23416         (vreinterpretq_s16_u64): Likewise.
23417         (vreinterpretq_s16_p8): Likewise.
23418         (vreinterpretq_s16_p16): Likewise.
23419         (vreinterpret_s32_s8): Likewise.
23420         (vreinterpret_s32_s16): Likewise.
23421         (vreinterpret_s32_s64): Likewise.
23422         (vreinterpret_s32_f32): Likewise.
23423         (vreinterpret_s32_u8): Likewise.
23424         (vreinterpret_s32_u16): Likewise.
23425         (vreinterpret_s32_u32): Likewise.
23426         (vreinterpret_s32_u64): Likewise.
23427         (vreinterpret_s32_p8): Likewise.
23428         (vreinterpret_s32_p16): Likewise.
23429         (vreinterpretq_s32_s8): Likewise.
23430         (vreinterpretq_s32_s16): Likewise.
23431         (vreinterpretq_s32_s64): Likewise.
23432         (vreinterpretq_s32_f32): Likewise.
23433         (vreinterpretq_s32_u8): Likewise.
23434         (vreinterpretq_s32_u16): Likewise.
23435         (vreinterpretq_s32_u32): Likewise.
23436         (vreinterpretq_s32_u64): Likewise.
23437         (vreinterpretq_s32_p8): Likewise.
23438         (vreinterpretq_s32_p16): Likewise.
23439         (vreinterpret_u8_s8): Likewise.
23440         (vreinterpret_u8_s16): Likewise.
23441         (vreinterpret_u8_s32): Likewise.
23442         (vreinterpret_u8_s64): Likewise.
23443         (vreinterpret_u8_f32): Likewise.
23444         (vreinterpret_u8_u16): Likewise.
23445         (vreinterpret_u8_u32): Likewise.
23446         (vreinterpret_u8_u64): Likewise.
23447         (vreinterpret_u8_p8): Likewise.
23448         (vreinterpret_u8_p16): Likewise.
23449         (vreinterpretq_u8_s8): Likewise.
23450         (vreinterpretq_u8_s16): Likewise.
23451         (vreinterpretq_u8_s32): Likewise.
23452         (vreinterpretq_u8_s64): Likewise.
23453         (vreinterpretq_u8_f32): Likewise.
23454         (vreinterpretq_u8_u16): Likewise.
23455         (vreinterpretq_u8_u32): Likewise.
23456         (vreinterpretq_u8_u64): Likewise.
23457         (vreinterpretq_u8_p8): Likewise.
23458         (vreinterpretq_u8_p16): Likewise.
23459         (vreinterpret_u16_s8): Likewise.
23460         (vreinterpret_u16_s16): Likewise.
23461         (vreinterpret_u16_s32): Likewise.
23462         (vreinterpret_u16_s64): Likewise.
23463         (vreinterpret_u16_f32): Likewise.
23464         (vreinterpret_u16_u8): Likewise.
23465         (vreinterpret_u16_u32): Likewise.
23466         (vreinterpret_u16_u64): Likewise.
23467         (vreinterpret_u16_p8): Likewise.
23468         (vreinterpret_u16_p16): Likewise.
23469         (vreinterpretq_u16_s8): Likewise.
23470         (vreinterpretq_u16_s16): Likewise.
23471         (vreinterpretq_u16_s32): Likewise.
23472         (vreinterpretq_u16_s64): Likewise.
23473         (vreinterpretq_u16_f32): Likewise.
23474         (vreinterpretq_u16_u8): Likewise.
23475         (vreinterpretq_u16_u32): Likewise.
23476         (vreinterpretq_u16_u64): Likewise.
23477         (vreinterpretq_u16_p8): Likewise.
23478         (vreinterpretq_u16_p16): Likewise.
23479         (vreinterpret_u32_s8): Likewise.
23480         (vreinterpret_u32_s16): Likewise.
23481         (vreinterpret_u32_s32): Likewise.
23482         (vreinterpret_u32_s64): Likewise.
23483         (vreinterpret_u32_f32): Likewise.
23484         (vreinterpret_u32_u8): Likewise.
23485         (vreinterpret_u32_u16): Likewise.
23486         (vreinterpret_u32_u64): Likewise.
23487         (vreinterpret_u32_p8): Likewise.
23488         (vreinterpret_u32_p16): Likewise.
23489         (vreinterpretq_u32_s8): Likewise.
23490         (vreinterpretq_u32_s16): Likewise.
23491         (vreinterpretq_u32_s32): Likewise.
23492         (vreinterpretq_u32_s64): Likewise.
23493         (vreinterpretq_u32_f32): Likewise.
23494         (vreinterpretq_u32_u8): Likewise.
23495         (vreinterpretq_u32_u16): Likewise.
23496         (vreinterpretq_u32_u64): Likewise.
23497         (vreinterpretq_u32_p8): Likewise.
23498         (vreinterpretq_u32_p16): Likewise.
23499
23500 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23501
23502         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23503         Pattern extended.
23504         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23505         (sqabs): Likewise.
23506         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23507         (vqnegd_s64): Likewise.
23508         (vqabs_s64): Likewise.
23509         (vqabsd_s64): Likewise.
23510
23511 2014-04-22  Richard Henderson  <rth@redhat.com>
23512
23513         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23514         computation to the top of the loop.
23515
23516 2014-04-22  Renlin  <renlin.li@arm.com>
23517             Jiong Wang  <jiong.wang@arm.com>
23518
23519         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23520         * config/aarch64/aarch64.c (aarch64_layout_frame)
23521         (aarch64_initial_elimination_offset): Likewise.
23522
23523 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23524
23525         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23526         Fix indentation.
23527
23528 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
23529
23530         * machmode.h (bitwise_mode_for_mode): Declare.
23531         * stor-layout.h (bitwise_type_for_mode): Likewise.
23532         * stor-layout.c (bitwise_mode_for_mode): New function.
23533         (bitwise_type_for_mode): Likewise.
23534         * builtins.c (fold_builtin_memory_op): Use it instead of
23535         int_mode_for_mode and build_nonstandard_integer_type.
23536
23537 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23538
23539         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23540         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23541         (*-*-solaris2*): Simplify.
23542         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23543         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23544         *-*-solaris2.9* handling.
23545
23546         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23547         as bug.
23548         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23549         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23550         handling, simplify.
23551         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23552         * configure: Regenerate.
23553
23554         * config/i386/sol2-9.h: Remove.
23555
23556         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23557         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23558         Remove Solaris 9 references.
23559
23560 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
23561
23562         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23563         (floatuns<GPI:mode><GPF:mode>2): Remove.
23564         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23565         and floatuns conversions.
23566         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23567         and floatuns conversions.
23568         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23569         (w1,w2): New mode attributes for inequal width conversions.
23570
23571 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
23572
23573         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23574         the output asm format.
23575
23576 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
23577
23578         * config/aarch64/aarch64-simd.md
23579         (aarch64_cm<optab>di): Always split.
23580         (*aarch64_cm<optab>di): New.
23581         (aarch64_cmtstdi): Always split.
23582         (*aarch64_cmtstdi): New.
23583
23584 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23585
23586         PR tree-optimization/60823
23587         * omp-low.c (ipa_simd_modify_function_body): Go through
23588         all SSA_NAMEs and for those refering to vector arguments
23589         which are going to be replaced adjust SSA_NAME_VAR and,
23590         if it is a default definition, change it into a non-default
23591         definition assigned at the beginning of function from new_decl.
23592         (ipa_simd_modify_stmt_ops): Rewritten.
23593         * tree-dfa.c (set_ssa_default_def): When removing default def,
23594         check for NULL loc instead of NULL *loc.
23595
23596 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23597
23598         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23599         restrictions on core registers for DImode values in Thumb2.
23600
23601 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
23602
23603         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23604         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23605
23606 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
23607
23608         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23609         (*iordi_notzesidi_di): Likewise.
23610         (*iordi_notsesidi_di): Likewise.
23611
23612 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
23613
23614         * config/arm/arm-protos.h (tune_params): New struct members.
23615         * config/arm/arm.c: Initialise tune_params per processor.
23616         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23617         for speed, based on new tune_params.
23618
23619 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23620
23621         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23622         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23623         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23624         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23625         * config/aarch64/arm_neon.h (vrnd_f64): Added.
23626         (vrnda_f64): Likewise.
23627         (vrndi_f64): Likewise.
23628         (vrndm_f64): Likewise.
23629         (vrndn_f64): Likewise.
23630         (vrndp_f64): Likewise.
23631         (vrndx_f64): Likewise.
23632
23633 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23634
23635         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23636         GET_MODE_SIZE argument is enum machine_mode.
23637
23638 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23639
23640         PR target/60910
23641         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23642         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23643
23644 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
23645
23646         PR middle-end/60281
23647         * asan.c (asan_emit_stack_protection): Force the base to align to
23648         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
23649         appropriate bits if STRICT_ALIGNMENT.
23650         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23651         when asan is on.
23652         (expand_used_vars): Leave a space in the stack frame for alignment
23653         if STRICT_ALIGNMENT.
23654
23655 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
23656
23657         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23658         than a gimple.
23659         (gimple_store_p): Likewise.
23660         (gimple_assign_load_p): Likewise.
23661         (gimple_assign_cast_p): Likewise.
23662         (gimple_clobber_p): Likewise.
23663
23664         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23665         rather than a gimple.
23666         (gimple_assign_cast_p): Likewise.
23667
23668 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
23669
23670         PR target/60735
23671         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23672         If mode is DDmode and TARGET_E500_DOUBLE allow move.
23673
23674         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23675         more debug information for E500 if -mdebug=reg.
23676
23677 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
23678
23679         PR target/60909
23680         * config/i386/i386.c (ix86_expand_builtin)
23681         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23682         register for target RTX.
23683         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23684
23685 2014-04-18  Cong Hou  <congh@google.com>
23686
23687         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23688         the widen-mult pattern by handling two operands with different sizes,
23689         and operands whose size is smaller than half of the result type.
23690
23691 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
23692
23693         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23694         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23695         (do_estimate_edge_time): Compute it.
23696         * ipa-inline.c (want_inline_small_function_p): Bypass
23697         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23698
23699 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
23700
23701         * ipa-inline.c (spec_rem): New static variable.
23702         (dump_overall_stats): New function.
23703         (dump_inline_stats): New function.
23704
23705 2014-04-18  Richard Henderson  <rth@redhat.com>
23706
23707         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23708         to GET_MODE_SIZE, not a reg_class_t.
23709
23710 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23711
23712         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23713         (vsx_xxmrglw_<mode>): Likewise.
23714
23715 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
23716
23717         PR target/60876
23718         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23719         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23720         (rs6000_init_hard_regno_mode_ok): Likewise.
23721
23722 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
23723
23724         * ipa-inline.c (inline_small_functions): Account only non-cold
23725         functions.
23726         * doc/invoke.texi (inline-unit-growth): Update documentation.
23727
23728 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
23729
23730         * config/rs6000/rs6000.md (addti3, subti3): New.
23731
23732 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
23733
23734         PR target/60863
23735         * config/i386/i386.c (ix86_expand_clear): Remove outdated
23736         comment.  Check optimize_insn_for_size_p instead of
23737         optimize_insn_for_speed_p.
23738
23739 2014-04-17  Martin Jambor  <mjambor@suse.cz>
23740
23741         * gimple-iterator.c (gsi_start_edge): New function.
23742         * gimple-iterator.h (gsi_start_edge): Declare.
23743         * tree-sra.c (single_non_eh_succ): New function.
23744         (disqualify_ops_if_throwing_stmt): Renamed to
23745         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
23746         having one non-EH successor BB.
23747         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23748         generate loads into replacements.
23749         (sra_modify_assign): Likewise and and also use the simple path for
23750         such statements.
23751         (sra_modify_function_body): Commit statements on edges.
23752
23753 2014-04-17  Richard Biener  <rguenther@suse.de>
23754
23755         PR middle-end/60849
23756         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23757         comparison results and add clarifying comment.
23758
23759 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
23760
23761         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23762         (blank_mode): Initialize it.
23763         (emit_mode_size_inline, emit_mode_nunits_inline,
23764         emit_mode_inner_inline): New functions.
23765         (emit_insn_modes_h): Call them and surround their output with
23766         #if GCC_VERSION >= 4001 ... #endif.
23767         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23768         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23769         mode_* arrays if the argument is __builtin_constant_p.
23770         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23771         is enum machine_mode.
23772
23773 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23774
23775         * passes.c (opt_pass::execute): Adjust.
23776         (pass_manager::execute_pass_mode_switching): Likewise.
23777         (early_local_passes::execute): Likewise.
23778         (execute_one_pass): Pass cfun to the pass's execute method.
23779         * tree-pass.h (opt_pass::execute): Add function * argument.
23780         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23781         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23782         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23783         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23784         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23785         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23786         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23787         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23788         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23789         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23790         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23791         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23792         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23793         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23794         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23795         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23796         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23797         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23798         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23799         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23800         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23801         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23802         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23803         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23804         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23805         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23806         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23807         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23808         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23809         Adjust.
23810
23811 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23812
23813         * passes.c (opt_pass::gate): Take function * argument.
23814         (gate_all_early_local_passes): Merge into
23815         (early_local_passes::gate): this.
23816         (gate_all_early_optimizations): Merge into
23817         (all_early_optimizations::gate): this.
23818         (gate_all_optimizations): Mege into
23819         (all_optimizations::gate): this.
23820         (gate_all_optimizations_g): Merge into
23821         (all_optimizations_g::gate): this.
23822         (gate_rest_of_compilation): Mege into
23823         (rest_of_compilation::gate): this.
23824         (gate_postreload): Merge into
23825         (postreload::gate): this.
23826         (dump_one_pass): Pass cfun to the pass's gate method.
23827         (execute_ipa_summary_passes): Likewise.
23828         (execute_one_pass): Likewise.
23829         (ipa_write_summaries_2): Likewise.
23830         (ipa_write_optimization_summaries_1): Likewise.
23831         (ipa_read_summaries_1): Likewise.
23832         (ipa_read_optimization_summaries_1): Likewise.
23833         (execute_ipa_stmt_fixups): Likewise.
23834         * tree-pass.h (opt_pass::gate): Add function * argument.
23835         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23836         combine-stack-adj.c, combine.c, compare-elim.c,
23837         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23838         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23839         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23840         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
23841         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23842         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23843         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23844         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23845         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23846         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23847         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23848         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23849         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23850         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23851         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23852         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23853         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23854         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23855         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23856         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23857         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23858         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23859         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23860         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23861         var-tracking.c, vtable-verify.c, web.c: Adjust.
23862
23863 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23864
23865         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23866         * configure: Regenerate.
23867
23868 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23869
23870         * passes.c (dump_one_pass): don't check pass->has_gate.
23871         (execute_ipa_summary_passes): Likewise.
23872         (execute_one_pass): Likewise.
23873         (ipa_write_summaries_2): Likewise.
23874         (ipa_write_optimization_summaries_1): Likewise.
23875         (ipa_read_optimization_summaries_1): Likewise.
23876         (execute_ipa_stmt_fixups): Likewise.
23877         * tree-pass.h (pass_data::has_gate): Remove.
23878         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23879         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23880         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23881         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23882         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23883         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23884         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23885         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23886         gimple-low.c, gimple-ssa-isolate-paths.c,
23887         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23888         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23889         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23890         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23891         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23892         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23893         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23894         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23895         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23896         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23897         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23898         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23899         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23900         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23901         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23902         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23903         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23904         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23905         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23906         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23907         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23908         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23909         Adjust.
23910
23911 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23912
23913         * pass_manager.h (pass_manager::register_dump_files_1): Remove
23914         declaration.
23915         * passes.c (pass_manager::register_dump_files_1): Merge into
23916         (pass_manager::register_dump_files): this, and remove its handling of
23917         properties since the pass always has the properties anyway.
23918         (pass_manager::pass_manager): Adjust.
23919
23920 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
23921
23922         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23923         * passes.c (pass_manager::register_dump_files_1): Remove dead code
23924         dealing with properties.
23925         (pass_manager::register_dump_files): Adjust.
23926
23927 2014-03-20  Mark Wielaard  <mjw@redhat.com>
23928
23929         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23930         then represent the bound as normal constant value.
23931
23932 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
23933
23934         PR target/60847
23935         Forward port from 4.8 branch
23936         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
23937
23938         * config/i386/bmiintrin.h (_blsi_u32): New.
23939         (_blsi_u64): Ditto.
23940         (_blsr_u32): Ditto.
23941         (_blsr_u64): Ditto.
23942         (_blsmsk_u32): Ditto.
23943         (_blsmsk_u64): Ditto.
23944         (_tzcnt_u32): Ditto.
23945         (_tzcnt_u64): Ditto.
23946
23947 2014-04-17  Kito Cheng  <kito@0xlab.org>
23948
23949         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23950
23951 2014-04-17  Richard Biener  <rguenther@suse.de>
23952
23953         PR middle-end/60849
23954         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23955         boolean results for comparisons.
23956
23957 2014-04-17  Richard Biener  <rguenther@suse.de>
23958
23959         PR tree-optimization/60836
23960         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23961         initial PHI args to be gimple values.
23962
23963 2014-04-17  Richard Biener  <rguenther@suse.de>
23964
23965         PR tree-optimization/60841
23966         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23967         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23968         of stmts to SLP build.
23969         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23970         (vect_analyze_slp): Likewise.
23971         (vect_analyze_slp_instance): Likewise.
23972         (vect_build_slp_tree): Limit overall SLP tree growth.
23973         * tree-vectorizer.h (vect_analyze_data_refs,
23974         vect_analyze_slp): Adjust prototypes.
23975
23976 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
23977
23978         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23979         Silvermont.
23980
23981 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
23982
23983         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23984         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23985         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23986         for TARGET_SLOW_PSHUFB
23987
23988 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
23989
23990         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23991         * config/i386/i386.c (intel_cost): Ditto.
23992
23993 2014-04-17  Joey Ye  <joey.ye@arm.com>
23994
23995         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23996
23997 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
23998
23999         * opts.c (common_handle_option): Disable -fipa-reference coorectly
24000         with -fuse-profile.
24001
24002 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24003
24004         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24005         (type_all_derivations_known_p): New predicate.
24006         (type_all_ctors_visible_p): New predicate.
24007         (type_possibly_instantiated_p): New predicate.
24008         (get_odr_type): Compute all_derivations_known.
24009         (dump_odr_type): Dump the flag.
24010         (maybe_record_type): Cleanup.
24011         (record_target_from_binfo): Add bases_to_consider array;
24012         record bases for types w/o instances and skip CXX destructor.
24013         (possible_polymorphic_call_targets_1): Add bases_to_consider
24014         and consider_construction parameters; check if type may have instance.
24015         (get_polymorphic_call_info): Set maybe_in_construction to true
24016         when we know nothing.
24017         (record_targets_from_bases): Skip CXX destructors; they are
24018         never called for types in construction.
24019         (possible_polymorphic_call_targets): Do not record target when
24020         type may not have instance.
24021
24022 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24023
24024         PR ipa/60854
24025         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24026         external aliases alive, too.
24027
24028 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
24029
24030         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24031         definition.
24032
24033 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
24034
24035         * final.c (compute_alignments): Do not apply loop alignment to a block
24036         falling through to the exit.
24037
24038 2014-04-16  Catherine Moore  <clm@codesourcery.com>
24039
24040         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24041         Adjust constraints for microMIPS store patterns.
24042
24043 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
24044
24045         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24046
24047 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
24048
24049         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24050         (append_use): Run at -O0.
24051         (append_vdef): Likewise.
24052         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24053         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24054
24055 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
24056
24057         PR tree-optimization/60844
24058         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24059         (propagate_op_to_single_use, remove_visited_stmt_chain,
24060         linearize_expr, repropagate_negates, reassociate_bb): Use it
24061         instead of gsi_remove.
24062
24063 2014-04-16  Martin Jambor  <mjambor@suse.cz>
24064
24065         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24066         ipa_transforms_to_apply.
24067         (cgraph_function_versioning): Assert that old_node has empty
24068         ipa_transforms_to_apply.
24069         * trans-mem.c (ipa_tm_create_version): Likewise.
24070         * tree-inline.c (tree_function_versioning): Do not duplicate
24071         ipa_transforms_to_apply.
24072
24073 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24074
24075         PR target/60817
24076         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24077         x86_64-*-* cases.
24078         Pass necessary as flags on 64-bit Solaris/x86.
24079         Use lowercase relocs for x86_64-*-*.
24080         * configure: Regenerate.
24081
24082 2014-04-15  Jan Hubicka  <jh@suse.cz>
24083
24084         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24085         (maybe_record_node, likely_target_p): Use it.
24086
24087 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24088
24089         PR target/60839
24090         Revert following patch
24091
24092         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24093
24094         PR target/60735
24095         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24096         software floating point or no floating point registers, do not
24097         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
24098         in GPRs that occurs after we tested for GPRs that would never be
24099         true.
24100
24101         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24102         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24103         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
24104         specifically allow DDmode, since that does not use the SPE SIMD
24105         instructions.
24106
24107 2014-03-21  Mark Wielaard  <mjw@redhat.com>
24108
24109         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24110         as unsigned or int depending on type and value used.
24111
24112 2014-04-15  Richard Biener  <rguenther@suse.de>
24113
24114         PR rtl-optimization/56965
24115         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24116         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24117         ... here.
24118         * alias.c (true_dependence_1): Do not call
24119         nonoverlapping_component_refs_p.
24120         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24121         nonoverlapping_component_refs_p.
24122         (indirect_refs_may_alias_p): Likewise.
24123
24124 2014-04-15  Teresa Johnson  <tejohnson@google.com>
24125
24126         * cfg.c (dump_bb_info): Fix flags check.
24127         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24128
24129 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24130
24131         PR rtl-optimization/60663
24132         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24133         avoid 0 cost.
24134
24135 2014-04-15  Richard Biener  <rguenther@suse.de>
24136
24137         * lto-streamer.h (LTO_major_version): Bump to 4.
24138
24139 2014-04-15  Richard Biener  <rguenther@suse.de>
24140
24141         * common.opt (lto_partition_model): New enum.
24142         (flto-partition=): Merge separate options with a single with argument,
24143         add -flto-partition=one support.
24144         * flag-types.h (enum lto_partition_model): Declare.
24145         * opts.c (finish_options): Remove duplicate -flto-partition=
24146         option check.
24147         * lto-wrapper.c (run_gcc): Adjust.
24148
24149 2014-04-15  Richard Biener  <rguenther@suse.de>
24150
24151         * alias.c (ncr_compar): New function.
24152         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24153
24154 2014-04-15  Richard Biener  <rguenther@suse.de>
24155
24156         * alias.c (record_component_aliases): Do not walk BINFOs.
24157
24158 2014-04-15  Richard Biener  <rguenther@suse.de>
24159
24160         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24161         Add struct function argument and adjust.
24162         (find_func_aliases_for_call): Likewise.
24163         (find_func_aliases): Likewise.
24164         (find_func_clobbers): Likewise.
24165         (intra_create_variable_infos): Likewise.
24166         (compute_points_to_sets): Likewise.
24167         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
24168
24169 2014-04-15  Richard Biener  <rguenther@suse.de>
24170
24171         * tree.c (iterative_hash_expr): Use enum tree_code_class
24172         to store TREE_CODE_CLASS.
24173         (tree_block): Likewise.
24174         (tree_set_block): Likewise.
24175         * tree.h (fold_build_pointer_plus_loc): Use
24176         convert_to_ptrofftype_loc.
24177
24178 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
24179
24180         PR plugins/59335
24181         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24182         added in 4.9.
24183
24184 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
24185
24186         * cfgloop.h (struct loop): Move force_vectorize down.
24187         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24188         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24189         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24190         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24191         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24192         * tree-core.h (enum annot_expr_kind): Add new kind values.
24193         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24194         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24195         kinds.
24196         * tree.def (ANNOTATE_EXPR): Tweak comment.
24197
24198 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
24199
24200         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24201         cxa_pure_virtual).
24202
24203 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
24204
24205         * tree.h (TYPE_IDENTIFIER): Declare.
24206         * tree.c (subrange_type_for_debug_p): Use it.
24207         * godump.c (go_format_type): Likewise.
24208         * dwarf2out.c (is_cxx_auto, modified_type_die,
24209         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24210         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24211
24212 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
24213
24214         PR lto/60820
24215         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24216
24217 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
24218
24219         * config/i386/i386.c (examine_argument): Return bool.  Return true if
24220         parameter should be passed in memory.
24221         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24222         (construct_container): Update calls to examine_argument.
24223         (function_arg_advance_64): Ditto.
24224         (return_in_memory_32): Merge with ix86_return_in_memory.
24225         (return_in_memory_64): Ditto.
24226         (return_in_memory_ms_64): Ditto.
24227
24228 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
24229
24230         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24231         * coverage.c (coverage_compute_profile_id): Handle externally visible
24232         symbols.
24233
24234 2014-04-14  Martin Jambor  <mjambor@suse.cz>
24235
24236         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24237         DECL_DISREGARD_INLINE_LIMITS functions.
24238
24239 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
24240
24241         PR target/60827
24242         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24243
24244 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
24245
24246         PR target/60827
24247         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24248         optimize_insn_for_speed_p instead of
24249         optimize_function_for_speed_p.
24250
24251 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
24252
24253         * doc/invoke.texi (free): Document AArch64.
24254
24255 2014-04-14  Richard Biener  <rguenther@suse.de>
24256
24257         PR tree-optimization/60042
24258         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24259         (insert_into_preds_of_block): Do not prevent PHI insertion
24260         for REFERENCE exprs here ...
24261         (eliminate_dom_walker::before_dom_children): ... but prevent
24262         their use here under similar conditions when applied to the
24263         IL after PRE optimizations.
24264
24265 2014-04-14  Richard Biener  <rguenther@suse.de>
24266
24267         * passes.def: Move early points-to after early SRA.
24268
24269 2014-04-14  Richard Biener  <rguenther@suse.de>
24270
24271         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24272         check for which sign-changes we allow when forwarding
24273         a converted value into a switch.
24274
24275 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
24276
24277         * stor-layout.c (place_field): Finalize non-constant offset for the
24278         field, if any.
24279
24280 2014-04-14  Richard Biener  <rguenther@suse.de>
24281
24282         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24283         as argument.
24284         (expand_switch_using_bit_tests_p): Likewise.
24285         (process_switch): Compute and pass on speed_p based on the
24286         switch stmt.
24287         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24288         optimize_bb_for_speed_p.
24289
24290 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
24291
24292         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24293         * function.h (struct function): Rename has_force_vect_loops into
24294         has_force_vectorize_loops.
24295         * lto-streamer-in.c (input_cfg): Adjust for renaming.
24296         (input_struct_function_base): Likewise.
24297         * lto-streamer-out.c (output_cfg): Likewise.
24298         (output_struct_function_base): Likewise.
24299         * omp-low.c (expand_omp_simd): Likewise.
24300         * tree-cfg.c (move_sese_region_to_fn): Likewise.
24301         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24302         (version_loop_for_if_conversion): Likewise.
24303         (tree_if_conversion): Likewise.
24304         (main_tree_if_conversion): Likewise.
24305         (gate_tree_if_conversion): Likewise.
24306         * tree-inline.c (copy_loops): Likewise.
24307         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24308         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24309         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24310         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24311         * tree-vectorizer.c (vectorize_loops): Likewise.
24312         * tree-vectorizer.h (unlimited_cost_model): Likewise.
24313
24314 2014-04-14  Richard Biener  <rguenther@suse.de>
24315
24316         PR lto/60720
24317         * lto-streamer-out.c (wrap_refs): New function.
24318         (lto_output): Wrap symbol references in global initializes in
24319         type-preserving MEM_REFs.
24320
24321 2014-04-14  Christian Bruel  <christian.bruel@st.com>
24322
24323         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24324
24325 2014-04-14  Christian Bruel  <christian.bruel@st.com>
24326
24327         * config/sh/sh.md (setmemqi): New expand pattern.
24328         * config/sh/sh.h (CLEAR_RATIO): Define.
24329         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24330         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24331
24332 2014-04-14  Richard Biener  <rguenther@suse.de>
24333
24334         PR middle-end/55022
24335         * fold-const.c (negate_expr_p): Don't negate directional rounding
24336         division.
24337         (fold_negate_expr): Likewise.
24338
24339 2014-04-14  Richard Biener  <rguenther@suse.de>
24340
24341         PR tree-optimization/59817
24342         PR tree-optimization/60453
24343         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24344         recursion to catch all CHRECs in the scalar evolution and restrict
24345         the predicate for the remains appropriately.
24346
24347 2014-04-12  Catherine Moore  <clm@codesourcery.com>
24348
24349         * config/mips/constraints.md: Add new register constraint "kb".
24350         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24351         (*movhi_internal): Likewise.
24352         (*movqi_internal): Likewise.
24353         * config/mips/mips.h (M16_STORE_REGS): New register class.
24354         (REG_CLASS_NAMES): Add M16_STORE_REGS.
24355         (REG_CLASS_CONTENTS): Likewise.
24356         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24357
24358 2014-04-11  Tobias Burnus  <burnus@net-b.de>
24359
24360         PR c/60194
24361         * doc/invoke.texi (-Wformat-signedness): Document it.
24362         (Wformat=2): Mention that this enables -Wformat-signedness.
24363
24364 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24365
24366         * common/config/epiphany/epiphany-common.c
24367         (epiphany_option_optimization_table): Enable section anchors by
24368         default at -O1 or higher.
24369         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24370         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24371         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24372         carries no extra cost.
24373         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24374         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24375         * config/epiphany/predicates.md (memclob_operand): New predicate.
24376         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24377         Use memclob_operand predicate and X constraint for operand 3.
24378
24379 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24380
24381         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24382         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24383         its operands.
24384
24385 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24386
24387         PR rtl-optimization/60651
24388         * mode-switching.c (optimize_mode_switching): Make sure to emit
24389         sets of a lower numbered entity before sets of a higher numbered
24390         entity to a mode of the same or lower priority.
24391         When creating a seginfo for a basic block that starts with a code
24392         label, move the insertion point past the code label.
24393         (new_seginfo): Document and enforce requirement that
24394         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24395         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24396         * doc/tm.texi: Regenerate.
24397
24398 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24399
24400         PR target/60811
24401         * config/arc/arc.c (arc_save_restore): Fix assert typo.
24402
24403 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
24404
24405         * BASE-VER: Set to 4.10.0.
24406
24407 2014-04-11  Tobias Burnus  <burnus@net-b.de>
24408
24409         PR other/59055
24410         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24411         * doc/gcc.texi (Service): Update description in the @menu
24412         * doc/invoke.texi (Option Summary): Remove misplaced and
24413         duplicated @menu.
24414
24415 2014-04-11  Steve Ellcey  <sellcey@mips.com>
24416             Jakub Jelinek  <jakub@redhat.com>
24417
24418         PR middle-end/60556
24419         * expr.c (convert_move): Use emit_store_flag_force instead of
24420         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
24421         argument to it.
24422
24423 2014-04-11  Richard Biener  <rguenther@suse.de>
24424
24425         PR middle-end/60797
24426         * varasm.c (assemble_alias): Avoid endless error reporting
24427         recursion by setting TREE_ASM_WRITTEN.
24428
24429 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24430
24431         * config/s390/s390.md: Add a splitter for NOT rtx.
24432
24433 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
24434
24435         PR rtl-optimization/60663
24436         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24437
24438 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
24439             Jakub Jelinek  <jakub@redhat.com>
24440
24441         PR lto/60567
24442         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24443         flag from decl_node to node.
24444
24445 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24446
24447         PR debug/60655
24448         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24449         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24450         ameliorating the cases where it can be.
24451
24452 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
24453
24454         Revert
24455         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
24456
24457         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24458         (loadsync_<mode>): Change mode.
24459         (load_quadpti, store_quadpti): New.
24460         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24461         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24462         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24463
24464 2014-04-09  Cong Hou  <congh@google.com>
24465
24466         PR testsuite/60773
24467         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24468         documentation.
24469
24470 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24471
24472         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24473         instead of vnor to exploit possible fusion opportunity in the
24474         future.
24475         (altivec_expand_vec_perm_const_le): Likewise.
24476
24477 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
24478
24479         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24480         (loadsync_<mode>): Change mode.
24481         (load_quadpti, store_quadpti): New.
24482         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24483         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24484
24485 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
24486
24487         PR target/60763
24488         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24489         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24490         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24491
24492 2014-04-08  Richard Biener  <rguenther@suse.de>
24493
24494         PR middle-end/60706
24495         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24496         a 64bit widest int print double-int similar to on HWI64 hosts.
24497
24498 2014-04-08  Richard Biener  <rguenther@suse.de>
24499
24500         PR tree-optimization/60785
24501         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24502         default defs properly.
24503
24504 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
24505
24506         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24507         (Weffc++): Likewise.
24508
24509 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
24510
24511         * ipa-devirt.c (maybe_record_node): When node is not recorded,
24512         set completep to false rather than true.
24513
24514 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
24515
24516         PR target/60504
24517         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24518         ARM_TARGET2_DWARF_FORMAT.
24519
24520 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
24521
24522         PR target/60609
24523         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24524         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24525         ADDR_DIFF_VEC.
24526
24527 2014-04-07  Richard Biener  <rguenther@suse.de>
24528
24529         PR tree-optimization/60766
24530         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24531         (may_eliminate_iv): Convert cand_value_at result to desired type.
24532
24533 2014-04-07  Jason Merrill  <jason@redhat.com>
24534
24535         PR c++/60731
24536         * common.opt (-fno-gnu-unique): Add.
24537         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24538
24539 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24540
24541         * haifa-sched.c: Fix outdated function reference and minor
24542         grammar errors in introductory comment.
24543
24544 2014-04-07  Richard Biener  <rguenther@suse.de>
24545
24546         PR middle-end/60750
24547         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24548         for noreturn calls.
24549         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24550
24551 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
24552
24553         PR debug/55794
24554         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24555         size accounting for thunks.
24556         (pa_asm_output_mi_thunk): Use final_start_function() and
24557         final_end_function() to output function start and end directives.
24558
24559 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
24560
24561         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24562         device specific ISA/ feature information. Remove short_sp and
24563         errata_skip ds.  Add avr_device_specific_features enum to have device
24564         specific info.
24565         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24566         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24567         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24568         updated device specific info.
24569         * config/avr/avr-mcus.def: Merge device specific details to
24570         dev_attribute field.
24571         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24572         errata_skip.
24573         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24574         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24575         assembler if RMW isa supported by current device.
24576         * config/avr/genmultilib.awk: Update as device info structure changed.
24577         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24578
24579 2014-04-04  Cong Hou  <congh@google.com>
24580
24581         PR tree-optimization/60656
24582         * tree-vect-stmts.c (supportable_widening_operation):
24583         Fix a bug that elements in a vector with vect_used_by_reduction
24584         property are incorrectly reordered when the operation on it is not
24585         consistant with the one in reduction operation.
24586
24587 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
24588
24589         PR rtl-optimization/60155
24590         * gcse.c (record_set_data): New function.
24591         (single_set_gcse): New function.
24592         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24593         (hoist_code): Likewise.
24594         (get_pressure_class_and_nregs): Likewise.
24595
24596 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
24597
24598         * explow.c (probe_stack_range): Emit a final optimization blockage.
24599
24600 2014-04-04  Anthony Green  <green@moxielogic.com>
24601
24602         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24603         typos.
24604
24605 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
24606
24607         PR ipa/59626
24608         * lto-cgraph.c (input_overwrite_node): Check that partitioning
24609         flags are set only during streaming.
24610         * ipa.c (process_references, walk_polymorphic_call_targets,
24611         symtab_remove_unreachable_nodes): Drop bodies of always inline
24612         after early inlining.
24613         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24614
24615 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
24616         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24617
24618         PR debug/60655
24619         * dwarf2out.c (const_ok_for_output_1): Reject expressions
24620         containing a NOT.
24621
24622 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24623
24624         PR bootstrap/60743
24625         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24626         duration.
24627         (cortex_a53_fdivd): Likewise.
24628
24629 2014-04-04  Martin Jambor  <mjambor@suse.cz>
24630
24631         PR ipa/60640
24632         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24633         Adjust all callers.
24634         * cgraph.c (clone_of_p): Also return true if thunks match.
24635         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24636         cgraph_function_or_thunk_node and an obsolete comment.
24637         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24638         file.
24639         (build_function_decl_skip_args): Likewise.
24640         (set_new_clone_decl_and_node_flags): New function.
24641         (duplicate_thunk_for_node): Likewise.
24642         (redirect_edge_duplicating_thunks): Likewise.
24643         (cgraph_clone_node): New parameter args_to_skip, pass it to
24644         redirect_edge_duplicating_thunks which is called instead of
24645         cgraph_redirect_edge_callee.
24646         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24647         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24648
24649 2014-04-04  Jeff Law  <law@redhat.com>
24650
24651         PR target/60657
24652         * config/arm/predicates.md (const_int_I_operand): New predicate.
24653         (const_int_M_operand): Similarly.
24654         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24655         const_int_operand.
24656         (insv_t2, extv_reg, extzv_t2): Likewise.
24657         (load_multiple_with_writeback): Similarly for const_int_I_operand.
24658         (pop_multiple_with_writeback_and_return): Likewise.
24659         (vfp_pop_multiple_with_writeback): Likewise
24660
24661 2014-04-04  Richard Biener  <rguenther@suse.de>
24662
24663         PR ipa/60746
24664         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24665         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24666         non-GIMPLE_LABELs.
24667         * gimplify.h (gimple_add_tmp_var_fn): Declare.
24668         * gimplify.c (gimple_add_tmp_var_fn): New function.
24669         * gimple-expr.h (create_tmp_reg_fn): Declare.
24670         * gimple-expr.c (create_tmp_reg_fn): New function.
24671         * gimple-low.c (record_vars_into): Don't change cfun.
24672         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24673         code generation without cfun.
24674
24675 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
24676
24677         PR bootstrap/60719
24678         * Makefile.in (install-driver): Fix shell scripting.
24679
24680 2014-04-03  Cong Hou  <congh@google.com>
24681
24682         PR tree-optimization/60505
24683         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24684         threshold of number of iterations below which no vectorization
24685         will be done.
24686         * tree-vect-loop.c (new_loop_vec_info):
24687         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24688         * tree-vect-loop.c (vect_analyze_loop_operations):
24689         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24690         * tree-vect-loop.c (vect_transform_loop):
24691         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24692         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24693         of iterations of the loop and see if we should build the epilogue.
24694
24695 2014-04-03  Richard Biener  <rguenther@suse.de>
24696
24697         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24698         (streamer_tree_cache_create): Adjust.
24699         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24700         to allow optional nodes array.
24701         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24702         (streamer_tree_cache_append): Likewise.
24703         (streamer_tree_cache_create): Create nodes array optionally
24704         as specified by parameter.
24705         * lto-streamer-out.c (create_output_block): Avoid maintaining
24706         the node array in the writer cache.
24707         (DFS_write_tree): Remove assertion.
24708         (produce_asm_for_decls): Free the out decl state hash table early.
24709         * lto-streamer-in.c (lto_data_in_create): Adjust for
24710         streamer_tree_cache_create prototype change.
24711
24712 2014-04-03  Richard Biener  <rguenther@suse.de>
24713
24714         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24715         set TREE_CHAIN to NULL_TREE.
24716
24717 2014-04-03  Richard Biener  <rguenther@suse.de>
24718
24719         PR tree-optimization/60740
24720         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24721         over all GIMPLE_COND operands.
24722
24723 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
24724
24725         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24726         (Weffc++): Remove Scott's numbering, merge lists and reference
24727         Wnon-virtual-dtor.
24728
24729 2014-04-03  Nick Clifton  <nickc@redhat.com>
24730
24731         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24732         properly.
24733
24734 2014-04-03  Martin Jambor  <mjambor@suse.cz>
24735
24736         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24737         mention gcc_unreachable before failing.
24738         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24739         removed symbols.
24740
24741 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
24742
24743         PR ipa/60659
24744         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24745         inconsistent code and instead mark the context inconsistent.
24746         (possible_polymorphic_call_targets): For inconsistent contexts
24747         return empty complete list.
24748
24749 2014-04-02  Anthony Green  <green@moxielogic.com>
24750
24751         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24752         (extendqisi2, extendhisi2): Define.
24753         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24754         (WCHAR_TYPE): Change to unsigned int.
24755
24756 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24757
24758         PR tree-optimization/60733
24759         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24760         insertion point for PHI candidates to be the end of the feeding
24761         block for the PHI argument.
24762
24763 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
24764
24765         PR rtl-optimization/60650
24766         * lra-constraints.c (process_alt_operands): Decrease reject for
24767         earlyclobber matching.
24768
24769 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24770
24771         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24772
24773 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24774
24775         * config/spu/spu.c (pad_bb): Do not crash when the last
24776         insn is CODE_FOR_blockage.
24777
24778 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24779
24780         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24781         lies outside the target mode.
24782
24783 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24784
24785         PR target/60735
24786         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24787         software floating point or no floating point registers, do not
24788         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
24789         in GPRs that occurs after we tested for GPRs that would never be
24790         true.
24791
24792         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24793         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24794         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
24795         specifically allow DDmode, since that does not use the SPE SIMD
24796         instructions.
24797
24798 2014-04-02  Richard Biener  <rguenther@suse.de>
24799
24800         PR middle-end/60729
24801         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24802         MODE_INTs.  Properly use negv_optab.
24803         (expand_abs): Likewise.
24804
24805 2014-04-02  Richard Biener  <rguenther@suse.de>
24806
24807         PR bootstrap/60719
24808         * Makefile.in (install-driver): Guard extra installs with special
24809         names properly.
24810
24811 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
24812
24813         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24814         Document vec_vgbbd.
24815
24816 2014-04-01  Richard Henderson  <rth@redhat.com>
24817
24818         PR target/60704
24819         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24820         alternative enabled before register allocation.
24821
24822 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
24823
24824         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24825         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24826         typo.
24827         (nios2_large_got_address): Remove unneeded 'sym' parameter.
24828         (nios2_got_address): Update nios2_large_got_address call site.
24829         (nios2_delegitimize_address): New function.
24830         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24831         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24832         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24833
24834 2014-04-01  Martin Husemann  <martin@duskware.de>
24835
24836         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24837         for -mabi=32.
24838
24839 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
24840
24841         PR rtl-optimization/60604
24842         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24843         check from register_operand.
24844         (register_operand): Redefine in terms of general_operand.
24845         (nonmemory_operand): Use register_operand for the non-constant cases.
24846
24847 2014-04-01  Richard Biener  <rguenther@suse.de>
24848
24849         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24850
24851 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24852
24853         * doc/invoke.texi (mapp-regs): Clarify.
24854
24855 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
24856
24857         * config/i386/avx512fintrin.h (__v32hi): Define type.
24858         (__v64qi): Likewise.
24859         (_mm512_set1_epi8): Define.
24860         (_mm512_set1_epi16): Define.
24861         (_mm512_set4_epi32): Define.
24862         (_mm512_set4_epi64): Define.
24863         (_mm512_set4_pd): Define.
24864         (_mm512_set4_ps): Define.
24865         (_mm512_setr4_epi64): Define.
24866         (_mm512_setr4_epi32): Define.
24867         (_mm512_setr4_pd): Define.
24868         (_mm512_setr4_ps): Define.
24869         (_mm512_setzero_epi32): Define.
24870
24871 2014-03-31  Martin Jambor  <mjambor@suse.cz>
24872
24873         PR middle-end/60647
24874         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24875         callsite_arguments_match_p.  Updated all callers.  Also check types of
24876         corresponding formal parameters and actual arguments.
24877         (not_all_callers_have_enough_arguments_p) Renamed to
24878         some_callers_have_mismatched_arguments_p.
24879
24880 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
24881
24882         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24883
24884 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
24885
24886         PR target/60034
24887         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24888         section anchor.
24889
24890 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
24891
24892         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24893         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24894         Split out
24895         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24896         Use FMAMODE_NOVF512 mode iterator.
24897         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24898         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24899         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24900         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24901         Split out
24902         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24903         Use VF_128_256 mode iterator.
24904         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24905         Ditto.
24906
24907 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
24908
24909         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24910         static chain if needed.
24911
24912 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
24913
24914         PR target/60697
24915         * lra-constraints.c (index_part_to_reg): New.
24916         (process_address): Use it.
24917
24918 2014-03-27  Jeff Law  <law@redhat.com>
24919             Jakub Jelinek  <jakub@redhat.com>
24920
24921         PR target/60648
24922         * expr.c (do_tablejump): Use simplify_gen_binary rather than
24923         gen_rtx_{PLUS,MULT} to build up the address expression.
24924
24925         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24926         creating non-canonical RTL.
24927
24928 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
24929
24930         PR ipa/60243
24931         * ipa-inline.c (want_inline_small_function_p): Short circuit large
24932         functions; reorganize to make cheap checks first.
24933         (inline_small_functions): Do not estimate growth when dumping;
24934         it is expensive.
24935         * ipa-inline.h (inline_summary): Add min_size.
24936         (growth_likely_positive): New function.
24937         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24938         (set_cond_stmt_execution_predicate): Cleanup.
24939         (estimate_edge_size_and_time): Compute min_size.
24940         (estimate_calls_size_and_time): Likewise.
24941         (estimate_node_size_and_time): Likewise.
24942         (inline_update_overall_summary): Update min_size.
24943         (do_estimate_edge_time): Likewise.
24944         (do_estimate_edge_size): Update.
24945         (do_estimate_edge_hints): Update.
24946         (growth_likely_positive): New function.
24947
24948 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
24949
24950         PR target/60693
24951         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24952         also if addr has VOIDmode.
24953
24954 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24955
24956         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24957         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24958         Declare extern.
24959         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24960         instructions as well as AdvancedSIMD loads.
24961
24962 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24963
24964         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24965         Use crypto_aese type.
24966         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24967         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24968         crypto_aese, crypto_aesmc.  Move to types.md.
24969         * config/arm/types.md (crypto_aes): Split into crypto_aese,
24970         crypto_aesmc.
24971         * config/arm/iterators.md (crypto_type): Likewise.
24972
24973 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
24974
24975         * cgraph.c: Include expr.h and tree-dfa.h.
24976         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24977         remove LHS.
24978
24979 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
24980
24981         PR target/60675
24982         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24983         regs from checking multi-reg pseudos.
24984
24985 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24986
24987         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24988
24989 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24990
24991         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24992         if it would clobber the stack pointer, even temporarily.
24993
24994 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
24995
24996         * mode-switching.c: Make small adjustments to the top comment.
24997
24998 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
24999
25000         * config/rs6000/constraints.md (wD constraint): New constraint to
25001         match the constant integer to get the top DImode/DFmode out of a
25002         vector in a VSX register.
25003
25004         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25005         match the constant integer to get the top DImode/DFmode out of a
25006         vector in a VSX register.
25007
25008         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25009         for ISA 2.07.
25010
25011         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25012         vbpermq builtins.
25013
25014         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25015         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25016
25017         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25018         Optimize vec_extract of 64-bit values, where the value being
25019         extracted is in the top word, where we can use scalar
25020         instructions.  Add direct move and store support.  Combine the big
25021         endian/little endian vector select load support into a single insn.
25022         (vsx_extract_<mode>_internal1): Likewise.
25023         (vsx_extract_<mode>_internal2): Likewise.
25024         (vsx_extract_<mode>_load): Likewise.
25025         (vsx_extract_<mode>_store): Likewise.
25026         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25027         combined into vsx_extract_<mode>_load.
25028         (vsx_extract_<mode>_one_le): Likewise.
25029
25030         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25031         define the top 64-bit vector element.
25032
25033         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25034         constraint.
25035
25036         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25037         Document vec_vbpermq builtin.
25038
25039         PR target/60672
25040         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25041         enable use of xxsldwi and xxpermdi builtin functions.
25042         (vec_xxpermdi): Likewise.
25043
25044         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25045         Document use of vec_xxsldwi and vec_xxpermdi builtins.
25046
25047 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25048
25049         PR rtl-optimization/60650
25050         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25051         first_p.  Use it.
25052         (find_spills_for): New.
25053         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25054         Spill all pseudos on the second iteration.
25055
25056 2014-03-27  Marek Polacek  <polacek@redhat.com>
25057
25058         PR c/50347
25059         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25060         types.
25061
25062 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25063
25064         * config/s390/s390.c (s390_can_use_return_insn): Check for
25065         call-saved FPRs on 31 bit.
25066
25067 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
25068
25069         PR middle-end/60682
25070         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25071         if they need regimplification, just drop them instead of
25072         calling gimple_regimplify_operands on them.
25073
25074 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25075
25076         PR target/60580
25077         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25078         (aarch64_frame_pointer_required): Adjust logic.
25079         (aarch64_can_eliminate): Adjust logic.
25080         (aarch64_override_options_after_change): Adjust logic.
25081
25082 2014-03-27  Dehao Chen  <dehao@google.com>
25083
25084         * ipa-inline.c (early_inliner): Update node's inline info.
25085
25086 2014-03-26  Dehao Chen  <dehao@google.com>
25087
25088         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25089         compiler inserted conditional jumps for NAN float check.
25090
25091 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
25092
25093         * ubsan.h (ubsan_create_data): Change second argument's type
25094         to const location_t *.
25095         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25096         _("<unknown>").
25097         (ubsan_create_data): Change second argument to const location_t *PLOC.
25098         Create Loc field whenever PLOC is non-NULL.
25099         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25100         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25101         callers.
25102
25103         PR other/59545
25104         * real.c (real_to_integer2): Change type of low to UHWI.
25105
25106 2014-03-26  Tobias Burnus  <burnus@net-b.de>
25107
25108         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25109         (CILK_SELF_SPECS): New define.
25110         (driver_self_specs): Use it.
25111
25112 2014-03-26  Richard Biener  <rguenther@suse.de>
25113
25114         * tree-pretty-print.c (percent_K_format): Implement special
25115         case for LTO and its stripped down BLOCK tree.
25116
25117 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
25118
25119         PR sanitizer/60636
25120         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25121
25122         * tree-vrp.c (simplify_internal_call_using_ranges): If only
25123         one range is range_int_cst_p, but not both, at least optimize
25124         addition/subtraction of 0 and multiplication by 0 or 1.
25125         * gimple-fold.c (gimple_fold_call): Fold
25126         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25127         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25128         INTEGER_CSTs, try to fold at least x * 0 and y - y.
25129
25130 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25131
25132         PR rtl-optimization/60452
25133         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25134         <case REG>: Return 1 for invalid offsets from the frame pointer.
25135
25136 2014-03-26  Marek Polacek  <polacek@redhat.com>
25137
25138         PR c/37428
25139         * doc/extend.texi (C Extensions): Mention variable-length arrays in
25140         a structure/union.
25141
25142 2014-03-26  Marek Polacek  <polacek@redhat.com>
25143
25144         PR c/39525
25145         * doc/extend.texi (Designated Inits): Describe what happens to omitted
25146         field members.
25147
25148 2014-03-26  Marek Polacek  <polacek@redhat.com>
25149
25150         PR other/59545
25151         * ira-color.c (update_conflict_hard_regno_costs): Perform the
25152         multiplication in unsigned type.
25153
25154 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
25155
25156         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25157
25158 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
25159
25160         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25161
25162 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
25163
25164         PR ipa/60315
25165         * cif-code.def (UNREACHABLE) New code.
25166         * ipa-inline.c (inline_small_functions): Skip edges to
25167         __builtlin_unreachable.
25168         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25169         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25170         predicate to __bulitin_unreachable.
25171         (set_cond_stmt_execution_predicate): Fix issue when
25172         invert_tree_comparison returns ERROR_MARK.
25173         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25174         propagate to inline clones.
25175         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25176         to unreachable.
25177         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25178         * cgraphclones.c (cgraph_clone_node): If call destination is already
25179         ureachable, do not redirect it back.
25180         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25181         unreachable.
25182
25183 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
25184
25185         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25186         Do not modify inline clones.
25187
25188 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
25189
25190         * config/i386/i386.md (general_sext_operand): New mode attr.
25191         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25192         don't generate (sign_extend (const_int)).
25193         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25194         operands[2].  Use We constraint instead of <i> and
25195         <general_sext_operand> predicate instead of <general_operand>.
25196         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25197         * config/i386/constraints.md (We): New constraint.
25198         * config/i386/predicates.md (x86_64_sext_operand,
25199         sext_operand): New predicates.
25200
25201 2014-03-25  Martin Jambor  <mjambor@suse.cz>
25202
25203         PR ipa/60600
25204         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25205         inconsistent devirtualizations to __builtin_unreachable.
25206
25207 2014-03-25  Marek Polacek  <polacek@redhat.com>
25208
25209         PR c/35449
25210         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25211
25212 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
25213
25214         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25215         order of elements for big-endian.
25216
25217 2014-03-25  Richard Biener  <rguenther@suse.de>
25218
25219         PR middle-end/60635
25220         * gimplify-me.c (gimple_regimplify_operands): Update the
25221         re-gimplifed stmt.
25222
25223 2014-03-25  Martin Jambor  <mjambor@suse.cz>
25224
25225         PR ipa/59176
25226         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25227         (lto_output_varpool_node): Likewise.
25228         (input_overwrite_node): Likewise.
25229         (input_varpool_node): Likewise.
25230
25231 2014-03-25  Richard Biener  <rguenther@suse.de>
25232
25233         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25234         (run_gcc): Likewise.
25235
25236 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
25237
25238         * combine.c (simplify_compare_const): Add MODE argument.
25239         Handle mode_width 0 as very large mode_width.
25240         (try_combine, simplify_comparison): Adjust callers.
25241
25242         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25243         type to avoid signed integer overflow.
25244         * explow.c (plus_constant): Likewise.
25245
25246 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25247
25248         * doc/generic.texi: Correct typos.
25249
25250 2014-03-24  Tobias Burnus  <burnus@net-b.de>
25251
25252         * doc/invoke.texi (-flto): Expand section about
25253         using static libraries with LTO.
25254
25255 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25256
25257         PR rtl-optimization/60501
25258         * optabs.def (addptr3_optab): New optab.
25259         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25260         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25261         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25262
25263         * lra.c (emit_add3_insn): Use the addptr pattern if available.
25264
25265         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25266
25267 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
25268
25269         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25270         _mm512_set1_pd.
25271
25272         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25273         (_mm256_undefined_ps): Define.
25274         (_mm256_undefined_pd): Define.
25275         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25276         (_mm_undefined_pd): Define.
25277         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25278         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25279         (_mm512_undefined_ps): Define.
25280         (_mm512_undefined_pd): Define.
25281         Use _mm*_undefined_*.
25282         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25283
25284 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
25285
25286         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25287         (lshr_simd): DI mode added.
25288         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25289         (aarch64_ushr_simddi): Likewise.
25290         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25291         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25292         (vshrd_n_u64): Likewise.
25293
25294 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25295
25296         * Makefile.in (s-macro_list): Depend on cc1.
25297
25298 2014-03-23  Teresa Johnson  <tejohnson@google.com>
25299
25300         * ipa-utils.c (ipa_print_order): Use specified dump file.
25301
25302 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
25303
25304         PR rtl-optimization/60601
25305         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25306
25307         * gcc.c (eval_spec_function): Initialize save_growing_value.
25308
25309 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
25310
25311         PR sanitizer/60613
25312         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25313         code == MINUS_EXPR, never swap op0 with op1.
25314
25315         * toplev.c (init_local_tick): Avoid signed integer multiplication
25316         overflow.
25317         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25318         shift by first operand's bitsize.
25319
25320 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
25321
25322         PR target/60610
25323         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25324         redefine to 1 or 0.
25325         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25326         TARGET_ISA_64BIT_P(x).
25327
25328 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25329
25330         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25331         pattern for vector nor instead of subtract from splat(-1).
25332         (altivec_expand_vec_perm_const_le): Likewise.
25333
25334 2014-03-21  Richard Henderson  <rth@twiddle.net>
25335
25336         PR target/60598
25337         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25338         related insns after epilogue_completed.
25339
25340 2014-03-21  Martin Jambor  <mjambor@suse.cz>
25341
25342         PR ipa/59176
25343         * cgraph.h (symtab_node): New flag body_removed.
25344         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25345         when removing bodies.
25346         * symtab.c (dump_symtab_base): Dump body_removed flag.
25347         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25348         had their bodies removed.
25349
25350 2014-03-21  Martin Jambor  <mjambor@suse.cz>
25351
25352         PR ipa/60419
25353         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25354         in the border.
25355
25356 2014-03-21  Richard Biener  <rguenther@suse.de>
25357
25358         PR tree-optimization/60577
25359         * tree-core.h (struct tree_base): Document nothrow_flag use
25360         in DECL_NONALIASED.
25361         * tree.h (DECL_NONALIASED): New.
25362         (may_be_aliased): Adjust.
25363         * coverage.c (build_var): Set DECL_NONALIASED.
25364
25365 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25366
25367         * expr.c (expand_expr_real_1): Remove outdated comment.
25368
25369 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
25370
25371         PR middle-end/60597
25372         * ira.c (adjust_cleared_regs): Call copy_rtx on
25373         *reg_equiv[REGNO (loc)].src_p before passing it to
25374         simplify_replace_fn_rtx.
25375
25376         PR target/60568
25377         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25378         into CONST, put pic register as first operand of PLUS.  Use
25379         gen_const_mem for both 32-bit and 64-bit PIC got loads.
25380
25381 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25382
25383         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25384
25385 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25386
25387         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25388         around for store forwarding issue in the FPU on the UT699.
25389         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25390         loads and operations if -mfix-ut699 is specified.
25391         (divtf3_hq): Tweak attribute.
25392         (sqrttf2_hq): Likewise.
25393
25394 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25395
25396         * calls.c (store_one_arg): Remove incorrect const qualification on the
25397         type of the temporary.
25398         * cfgexpand.c (expand_return): Likewise.
25399         * expr.c (expand_constructor): Likewise.
25400         (expand_expr_real_1): Likewise.
25401
25402 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25403
25404         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25405         of parts.
25406
25407 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25408
25409         PR target/60039
25410         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25411
25412 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
25413
25414         * config/arm/aarch-common-protos.h
25415         (alu_cost_table): Fix spelling of "extend".
25416         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25417
25418 2014-03-19  Richard Biener  <rguenther@suse.de>
25419
25420         PR middle-end/60553
25421         * tree-core.h (tree_type_common): Re-order pointer members
25422         to reduce recursion depth during GC walks.
25423
25424 2014-03-19  Marek Polacek  <polacek@redhat.com>
25425
25426         PR sanitizer/60569
25427         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25428         before accessing it.
25429
25430 2014-03-19  Richard Biener  <rguenther@suse.de>
25431
25432         PR lto/59543
25433         * lto-streamer-in.c (input_function): In WPA stage do not drop
25434         debug stmts.
25435
25436 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
25437
25438         PR tree-optimization/60559
25439         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25440         with build_zero_cst assignment.
25441
25442 2014-03-18  Kai Tietz  <ktietz@redhat.com>
25443
25444         PR rtl-optimization/56356
25445         * sdbout.c (sdbout_parms): Verify that parms'
25446         incoming argument is valid.
25447         (sdbout_reg_parms): Likewise.
25448
25449 2014-03-18  Richard Henderson  <rth@redhat.com>
25450
25451         PR target/60562
25452         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25453         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
25454         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25455
25456 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
25457
25458         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25459         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25460         Italicize plugin event names in description.  Explain that
25461         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
25462         Remind that no GCC functions should be called after PLUGIN_FINISH.
25463         Explain what pragmas with expansion are.
25464
25465 2014-03-18  Martin Liska  <mliska@suse.cz>
25466
25467         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25468         gimple call statement is update.
25469         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25470         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25471
25472 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
25473
25474         PR sanitizer/60557
25475         * ubsan.c (ubsan_instrument_unreachable): Call
25476         initialize_sanitizer_builtins.
25477         (ubsan_pass): Likewise.
25478
25479         PR sanitizer/60535
25480         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25481         varpool_finalize_decl instead of rest_of_decl_compilation.
25482
25483 2014-03-18  Richard Biener  <rguenther@suse.de>
25484
25485         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25486         by using bitmap_and_compl instead of bitmap_and_compl_into.
25487         (df_rd_transfer_function): Likewise.
25488
25489 2014-03-18  Richard Biener  <rguenther@suse.de>
25490
25491         * doc/lto.texi (fresolution): Fix typo.
25492
25493 2014-03-18  Richard Biener  <rguenther@suse.de>
25494
25495         * doc/invoke.texi (flto): Update for changes in 4.9.
25496
25497 2014-03-18  Richard Biener  <rguenther@suse.de>
25498
25499         * doc/loop.texi: Remove section on the removed lambda framework.
25500         Update loop docs with recent changes in preserving loop structure.
25501
25502 2014-03-18  Richard Biener  <rguenther@suse.de>
25503
25504         * doc/lto.texi (-fresolution): Document.
25505
25506 2014-03-18  Richard Biener  <rguenther@suse.de>
25507
25508         * doc/contrib.texi: Adjust my name.
25509
25510 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
25511
25512         PR ipa/58721
25513         * internal-fn.c: Include diagnostic-core.h.
25514         (expand_BUILTIN_EXPECT): New function.
25515         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25516         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25517         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25518         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25519         IFN_BUILTIN_EXPECT.
25520         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25521         Revert 3 argument __builtin_expect code.
25522         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25523         * gimple-fold.c (gimple_fold_call): Likewise.
25524         * tree.h (fold_builtin_expect): New prototype.
25525         * builtins.c (build_builtin_expect_predicate): Add predictor
25526         argument, if non-NULL, create 3 argument __builtin_expect.
25527         (fold_builtin_expect): No longer static.  Add ARG2 argument,
25528         pass it through to build_builtin_expect_predicate.
25529         (fold_builtin_2): Adjust caller.
25530         (fold_builtin_3): Handle BUILT_IN_EXPECT.
25531         * internal-fn.def (BUILTIN_EXPECT): New.
25532
25533 2014-03-18  Tobias Burnus  <burnus@net-b.de>
25534
25535         PR ipa/58721
25536         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25537         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25538         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25539
25540 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
25541
25542         PR ipa/58721
25543         * predict.c (combine_predictions_for_bb): Fix up formatting.
25544         (expr_expected_value_1, expr_expected_value): Add predictor argument,
25545         fill what it points to if non-NULL.
25546         (tree_predict_by_opcode): Adjust caller, use the predictor.
25547         * predict.def (PRED_COMPARE_AND_SWAP): Add.
25548
25549 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
25550
25551         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25552         proper constant for the store mode.
25553
25554 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
25555
25556         * symtab.c (change_decl_assembler_name): Fix transparent alias
25557         chain construction.
25558
25559 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
25560
25561         * config/aarch64/aarch64.c: Correct the comments about the
25562         aarch64 stack layout.
25563
25564 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
25565
25566         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25567         check for GF_OMP_FOR_KIND_FOR.
25568
25569 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
25570
25571         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25572         ymm and zmm register names.
25573
25574 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
25575
25576         PR target/60516
25577         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25578         note creation for the 2010-08-31 changes.
25579
25580 2014-03-17  Marek Polacek  <polacek@redhat.com>
25581
25582         PR middle-end/60534
25583         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25584         as -fno-tree-loop-vectorize.
25585         (expand_omp_simd): Likewise.
25586
25587 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
25588
25589         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25590         (eligible_for_call_delay): New prototype.
25591         * config/sparc/sparc.c (tls_call_delay): Rename into...
25592         (eligible_for_call_delay): ...this.  Return false if the instruction
25593         cannot be put in the delay slot of a branch.
25594         (eligible_for_restore_insn): Simplify.
25595         (eligible_for_return_delay): Return false if the instruction cannot be
25596         put in the delay slot of a branch and simplify.
25597         (eligible_for_sibcall_delay): Return false if the instruction cannot be
25598         put in the delay slot of a branch.
25599         * config/sparc/sparc.md (fix_ut699): New attribute.
25600         (tls_call_delay): Delete.
25601         (in_call_delay): Reimplement.
25602         (eligible_for_sibcall_delay): Rename into...
25603         (in_sibcall_delay): ...this.
25604         (eligible_for_return_delay): Rename into...
25605         (in_return_delay): ...this.
25606         (in_branch_delay): Reimplement.
25607         (in_uncond_branch_delay): Delete.
25608         (in_annul_branch_delay): Delete.
25609
25610 2014-03-14  Richard Henderson  <rth@redhat.com>
25611
25612         PR target/60525
25613         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25614         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25615         (*floathi<X87MODEF>2_i387_with_temp): Remove.
25616         (floathi splitters): Remove.
25617         (float<SWI48x>xf2): New pattern.
25618         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
25619         code that tried to handle DImode for 32-bit, but which was excluded
25620         by the pattern's condition.  Drop allocation of stack temporary.
25621         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25622         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25623         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25624         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25625         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25626         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25627         (*float<SWI48><MODEF>2_sse_interunit): Remove.
25628         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25629         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25630         (*float<SWI48x><X87MODEF>2_i387): Remove.
25631         (all float _with_temp splitters): Remove.
25632         (*float<SWI48x><MODEF>2_i387): New pattern.
25633         (*float<SWI48><MODEF>2_sse): New pattern.
25634         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25635         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25636
25637 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
25638             Marek Polacek  <polacek@redhat.com>
25639
25640         PR middle-end/60484
25641         * common.opt (dump_base_name_prefixed): New Variable.
25642         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25643         if x_dump_base_name_prefixed is already set, set it at the end.
25644
25645 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
25646
25647         PR rtl-optimization/60508
25648         * lra-constraints.c (get_reload_reg): Add new parameter
25649         in_subreg_p.
25650         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25651         Pass the new parameter values.
25652
25653 2014-03-14  Richard Biener  <rguenther@suse.de>
25654
25655         * common.opt: Revert unintented changes from r205065.
25656         * opts.c: Likewise.
25657
25658 2014-03-14  Richard Biener  <rguenther@suse.de>
25659
25660         PR middle-end/60518
25661         * cfghooks.c (split_block): Properly adjust all loops the
25662         block was a latch of.
25663
25664 2014-03-14  Martin Jambor  <mjambor@suse.cz>
25665
25666         PR lto/60461
25667         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25668         and simplify it.
25669
25670 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
25671
25672         PR target/59396
25673         * config/avr/avr.c (avr_set_current_function): Pass function name
25674         through default_strip_name_encoding before sanity checking instead
25675         of skipping the first char of the assembler name.
25676
25677 2014-03-13  Richard Henderson  <rth@redhat.com>
25678
25679         PR debug/60438
25680         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25681         (ix86_force_to_memory, ix86_free_from_memory): Remove.
25682         * config/i386/i386-protos.h: Likewise.
25683         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25684         in the expander instead of a splitter.
25685         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25686         any possibility of requiring a memory.
25687         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25688         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25689         (fp branch splitters): Update for ix86_split_fp_branch.
25690         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25691         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25692         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25693         (*fop_<MODEF>_2_i387): Remove f/r alternative.
25694         (*fop_<MODEF>_3_i387): Likewise.
25695         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25696         (splitters for the fop_* register patterns): Remove.
25697         (fscalexf4_i387): Rename from *fscalexf4_i387.
25698         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25699
25700 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
25701
25702         PR tree-optimization/59779
25703         * tree-dfa.c (get_ref_base_and_extent): Use double_int
25704         type for bitsize and maxsize instead of HOST_WIDE_INT.
25705
25706 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
25707
25708         PR rtl-optimization/57320
25709         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25710         the CFG after thread_prologue_and_epilogue_insns.
25711
25712 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
25713
25714         PR rtl-optimization/57189
25715         * lra-constraints.c (process_alt_operands): Disfavor spilling
25716         vector pseudos.
25717
25718 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
25719
25720         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25721
25722 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
25723
25724         PR tree-optimization/59025
25725         PR middle-end/60418
25726         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25727         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25728
25729 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
25730
25731         PR target/60486
25732         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25733         calls of avr_out_plus_1.
25734
25735 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
25736
25737         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25738         BB's single pred and update the father loop's latch info later.
25739
25740 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
25741
25742         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25743         (VEC_M): Likewise.
25744         (VEC_N): Likewise.
25745         (VEC_R): Likewise.
25746         (VEC_base): Likewise.
25747         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25748         registers, we need to swap double words in little endian mode.
25749
25750         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25751         to be a container mode for 128-bit integer operations added in ISA
25752         2.07.  Unlike TImode and PTImode, the preferred register set is
25753         the Altivec/VMX registers for the 128-bit operations.
25754
25755         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25756         declarations.
25757         (rs6000_split_128bit_ok_p): Likewise.
25758
25759         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25760         macros for creating ISA 2.07 normal and overloaded builtin
25761         functions with 3 arguments.
25762         (BU_P8V_OVERLOAD_3): Likewise.
25763         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25764         for use as overloaded functions.
25765         (VPERM_1TI_UNS): Likewise.
25766         (VSEL_1TI): Likewise.
25767         (VSEL_1TI_UNS): Likewise.
25768         (ST_INTERNAL_1ti): Likewise.
25769         (LD_INTERNAL_1ti): Likewise.
25770         (XXSEL_1TI): Likewise.
25771         (XXSEL_1TI_UNS): Likewise.
25772         (VPERM_1TI): Likewise.
25773         (VPERM_1TI_UNS): Likewise.
25774         (XXPERMDI_1TI): Likewise.
25775         (SET_1TI): Likewise.
25776         (LXVD2X_V1TI): Likewise.
25777         (STXVD2X_V1TI): Likewise.
25778         (VEC_INIT_V1TI): Likewise.
25779         (VEC_SET_V1TI): Likewise.
25780         (VEC_EXT_V1TI): Likewise.
25781         (EQV_V1TI): Likewise.
25782         (NAND_V1TI): Likewise.
25783         (ORC_V1TI): Likewise.
25784         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25785         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
25786         overloaded builtin.
25787         (VADDUQM): Likewise.
25788         (VSUBCUQ): Likewise.
25789         (VADDEUQM): Likewise.
25790         (VADDECUQ): Likewise.
25791         (VSUBEUQM): Likewise.
25792         (VSUBECUQ): Likewise.
25793
25794         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25795         __int128_t and __uint128_t types.
25796         (__uint128_type): Likewise.
25797         (altivec_categorize_keyword): Add support for vector __int128_t,
25798         vector __uint128_t, vector __int128, and vector unsigned __int128
25799         as a container type for TImode operations that need to be done in
25800         VSX/Altivec registers.
25801         (rs6000_macro_to_expand): Likewise.
25802         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25803         to support 128-bit integer instructions vaddcuq, vadduqm,
25804         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25805         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25806
25807         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25808         for V1TImode, and set up preferences to use VSX/Altivec registers.
25809         Setup VSX reload handlers.
25810         (rs6000_debug_reg_global): Likewise.
25811         (rs6000_init_hard_regno_mode_ok): Likewise.
25812         (rs6000_preferred_simd_mode): Likewise.
25813         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25814         (easy_altivec_constant): Likewise.
25815         (output_vec_const_move): Likewise.
25816         (rs6000_expand_vector_set): Convert V1TImode set and extract to
25817         simple move.
25818         (rs6000_expand_vector_extract): Likewise.
25819         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25820         addressing.
25821         (rs6000_const_vec): Add support for V1TImode.
25822         (rs6000_emit_le_vsx_load): Swap double words when loading or
25823         storing TImode/V1TImode.
25824         (rs6000_emit_le_vsx_store): Likewise.
25825         (rs6000_emit_le_vsx_move): Likewise.
25826         (rs6000_emit_move): Add support for V1TImode.
25827         (altivec_expand_ld_builtin): Likewise.
25828         (altivec_expand_st_builtin): Likewise.
25829         (altivec_expand_vec_init_builtin): Likewise.
25830         (altivec_expand_builtin): Likewise.
25831         (rs6000_init_builtins): Add support for V1TImode type.  Add
25832         support for ISA 2.07 128-bit integer builtins.  Define type names
25833         for the VSX/Altivec vector types.
25834         (altivec_init_builtins): Add support for overloaded vector
25835         functions with V1TImode type.
25836         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25837         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25838         external function.
25839         (rs6000_split_128bit_ok_p): Likewise.
25840         (rs6000_handle_altivec_attribute): Create V1TImode from vector
25841         __int128_t and vector __uint128_t.
25842
25843         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25844         and mode attributes.
25845         (VSX_M): Likewise.
25846         (VSX_M2): Likewise.
25847         (VSm): Likewise.
25848         (VSs): Likewise.
25849         (VSr): Likewise.
25850         (VSv): Likewise.
25851         (VS_scalar): Likewise.
25852         (VS_double): Likewise.
25853         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25854
25855         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25856         we support the ISA 2.07 128-bit integer arithmetic instructions.
25857         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25858         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25859         and TImode types for use with the builtin functions.
25860         (V1TI_type_node): Likewise.
25861         (unsigned_V1TI_type_node): Likewise.
25862         (intTI_type_internal_node): Likewise.
25863         (uintTI_type_internal_node): Likewise.
25864
25865         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25866         128-bit builtin functions.
25867         (UNSPEC_VADDEUQM): Likewise.
25868         (UNSPEC_VADDECUQ): Likewise.
25869         (UNSPEC_VSUBCUQ): Likewise.
25870         (UNSPEC_VSUBEUQM): Likewise.
25871         (UNSPEC_VSUBECUQ): Likewise.
25872         (VM): Add V1TImode to vector mode iterators.
25873         (VM2): Likewise.
25874         (VI_unit): Likewise.
25875         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25876         (altivec_vaddcuq): Likewise.
25877         (altivec_vsubuqm): Likewise.
25878         (altivec_vsubcuq): Likewise.
25879         (altivec_vaddeuqm): Likewise.
25880         (altivec_vaddecuq): Likewise.
25881         (altivec_vsubeuqm): Likewise.
25882         (altivec_vsubecuq): Likewise.
25883
25884         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25885         mode iterators.
25886         (BOOL_128): Likewise.
25887         (BOOL_REGS_OUTPUT): Likewise.
25888         (BOOL_REGS_OP1): Likewise.
25889         (BOOL_REGS_OP2): Likewise.
25890         (BOOL_REGS_UNARY): Likewise.
25891         (BOOL_REGS_AND_CR0): Likewise.
25892
25893         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25894         128-bit integer builtin support.
25895         (vec_vadduqm): Likewise.
25896         (vec_vaddecuq): Likewise.
25897         (vec_vaddeuqm): Likewise.
25898         (vec_vsubecuq): Likewise.
25899         (vec_vsubeuqm): Likewise.
25900         (vec_vsubcuq): Likewise.
25901         (vec_vsubuqm): Likewise.
25902
25903         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25904         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25905         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25906         128-bit integer add/subtract to ISA 2.07.
25907
25908 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
25909
25910         * config/arc/arc.c (arc_predicate_delay_insns):
25911         Fix third argument passed to conditionalize_nonjump.
25912
25913 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
25914
25915         * config/aarch64/aarch64-builtins.c
25916         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25917         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25918         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25919         instead of __builtin_lfloor.
25920         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25921
25922 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
25923
25924         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25925         (tree_ssa_ifcombine_bb_1): New function.
25926         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
25927         is an empty forwarder block to then_bb or vice versa and then_bb
25928         and else_bb are effectively swapped.
25929
25930 2014-03-12  Christian Bruel  <christian.bruel@st.com>
25931
25932         PR target/60264
25933         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25934         REG_CFA_DEF_CFA note.
25935         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25936         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25937
25938 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25939
25940         PR tree-optimization/60454
25941         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25942
25943 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25944
25945         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25946         Do not define target_cpu_default2 to generic.
25947         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25948         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25949         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25950
25951 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
25952             Marc Glisse  <marc.glisse@inria.fr>
25953
25954         PR tree-optimization/60502
25955         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25956         instead of build_low_bits_mask.
25957
25958 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
25959
25960         PR middle-end/60482
25961         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25962         if there are multiple uses, but op doesn't live on E edge.
25963         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25964         clobber stmts before __builtin_unreachable.
25965
25966 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
25967
25968         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25969         hard_frame_pointer_rtx.
25970         * cse.c (cse_insn): Remove volatile check.
25971         * cselib.c (cselib_process_insn): Likewise.
25972         * dse.c (scan_insn): Likewise.
25973
25974 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25975
25976         * config/arc/arc.c (conditionalize_nonjump): New function,
25977         broken out of ...
25978         (arc_ifcvt): ... this.
25979         (arc_predicate_delay_insns): Use it.
25980
25981 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
25982
25983         * config/arc/predicates.md (extend_operand): During/after reload,
25984         allow const_int_operand.
25985         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25986         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
25987         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25988         to "i".
25989         (umulsi3_highpart_i): Likewise.
25990
25991 2014-03-11  Richard Biener  <rguenther@suse.de>
25992
25993         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25994         Add asserts to guard possible wrong-code bugs.
25995
25996 2014-03-11  Richard Biener  <rguenther@suse.de>
25997
25998         PR tree-optimization/60429
25999         PR tree-optimization/60485
26000         * tree-ssa-structalias.c (set_union_with_increment): Properly
26001         take into account all fields that overlap the shifted vars.
26002         (do_sd_constraint): Likewise.
26003         (do_ds_constraint): Likewise.
26004         (get_constraint_for_ptr_offset): Likewise.
26005
26006 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
26007
26008         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26009         (nios2_compute_frame_layout):
26010         Add calculation of cfun->machine->fp_save_offset.
26011         (nios2_expand_prologue): Correct setting of frame pointer register
26012         in prologue.
26013         (nios2_expand_epilogue): Update recovery of stack pointer from
26014         frame pointer accordingly.
26015         (nios2_initial_elimination_offset): Update calculation of offset
26016         for eliminating to HARD_FRAME_POINTER_REGNUM.
26017
26018 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
26019
26020         PR ipa/60457
26021         * ipa.c (symtab_remove_unreachable_nodes): Don't call
26022         cgraph_get_create_node on VAR_DECLs.
26023
26024 2014-03-10  Richard Biener  <rguenther@suse.de>
26025
26026         PR middle-end/60474
26027         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26028
26029 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
26030
26031         * config/vms/vms.opt (vms_float_format): New variable.
26032
26033 2014-03-08  Tobias Burnus  <burnus@net-b.de>
26034
26035         * doc/invoke.texi (-fcilkplus): Update implementation status.
26036
26037 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
26038             Richard Biener  <rguenther@suse.de>
26039
26040         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26041         consistently accross all TUs.
26042         (run_gcc): Enable -fshort-double automatically at link at link-time
26043         and disallow override.
26044
26045 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
26046
26047         PR target/58271
26048         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26049         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26050         if they can't be used.
26051
26052 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26053
26054         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26055         for Solaris 11/x86 ld.
26056         * configure: Regenerate.
26057
26058 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26059
26060         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26061         (LIB_TLS_SPEC): Save as ld_tls_libs.
26062         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26063         (HAVE_AS_IX86_TLSLDM): New test.
26064         * configure, config.in: Regenerate.
26065         * config/i386/i386.c (legitimize_tls_address): Fall back to
26066         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26067         cannot support TLS_MODEL_LOCAL_DYNAMIC.
26068         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26069         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26070
26071 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
26072
26073         * common.opt (fira-loop-pressure): Mark as optimization.
26074
26075 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
26076
26077         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26078         an OpenMP mappable type.
26079
26080 2014-03-06  Matthias Klose  <doko@ubuntu.com>
26081
26082         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26083         MULTILIB_OSDIRNAMES is not defined.
26084
26085 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
26086             Meador Inge  <meadori@codesourcery.com>
26087
26088         PR target/58595
26089         * config/arm/arm.c (arm_tls_symbol_p): Remove.
26090         (arm_legitimize_address): Call legitimize_tls_address for any
26091         arm_tls_referenced_p expression, handle constant addend.  Call it
26092         before testing for !TARGET_ARM.
26093         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26094
26095 2014-03-06  Richard Biener  <rguenther@suse.de>
26096
26097         PR middle-end/60445
26098         PR lto/60424
26099         PR lto/60427
26100         Revert
26101         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
26102
26103         * tree-streamer.c (record_common_node): Assert we don't record
26104         nodes with type double.
26105         (preload_common_node): Skip type double, complex double and double
26106         pointer since it is now frontend dependent due to fshort-double option.
26107
26108 2014-03-06  Richard Biener  <rguenther@suse.de>
26109
26110         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26111         or -fno-lto is specified and the linker has full plugin support.
26112         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26113         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26114         * lto-wrapper.c (merge_and_complain): Merge compile-time
26115         optimization levels.
26116         (run_gcc): And pass it through to the link options.
26117
26118 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
26119
26120         PR debug/60381
26121         Revert:
26122         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26123         PR debug/59992
26124         * cselib.c (remove_useless_values): Skip to avoid quadratic
26125         behavior if the condition moved from...
26126         (cselib_process_insn): ... here holds.
26127
26128 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
26129
26130         PR plugins/59335
26131         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26132         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26133
26134         PR plugins/59335
26135         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26136         (TM_H): Add x86-tune.def.
26137
26138 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26139
26140         * config/aarch64/aarch64.c (generic_tunings):
26141         Use cortexa57_extra_costs.
26142
26143 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
26144
26145         PR lto/60404
26146         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26147         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26148         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26149         cost for in_lto_p.
26150
26151 2014-03-04  Heiher  <r@hev.cc>
26152
26153         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26154         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26155
26156 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
26157
26158         * config/i386/predicates.md (const2356_operand): Change to ...
26159         (const2367_operand): ... this.
26160         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26161         const2367_operand.
26162         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26163         (*avx512pf_scatterpf<mode>sf): Ditto.
26164         (avx512pf_scatterpf<mode>df): Ditto.
26165         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26166         (*avx512pf_scatterpf<mode>df): Ditto.
26167         * config/i386/i386.c (ix86_expand_builtin): Update
26168         incorrect hint operand error message.
26169
26170 2014-03-04  Richard Biener  <rguenther@suse.de>
26171
26172         * lto-section-in.c (lto_get_section_data): Fix const cast.
26173
26174 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
26175
26176         * tree-streamer.c (record_common_node): Assert we don't record
26177         nodes with type double.
26178         (preload_common_node): Skip type double, complex double and double
26179         pointer since it is now frontend dependent due to fshort-double option.
26180
26181 2014-03-04  Richard Biener  <rguenther@suse.de>
26182
26183         PR lto/60405
26184         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26185         (lto_input_toplevel_asms): Likewise.
26186         * lto-section-in.c (lto_get_section_data): Instead do it here
26187         for every section.
26188
26189 2014-03-04  Richard Biener  <rguenther@suse.de>
26190
26191         PR tree-optimization/60382
26192         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26193         dead PHIs a reduction.
26194
26195 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
26196
26197         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26198         hint value.
26199         (_mm_prefetch): Move out of GCC target("sse") pragma.
26200         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26201         GCC target("prfchw") pragma.
26202         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26203         for locality <= 2.
26204         * config/i386/i386.c (ix86_option_override_internal): Enable
26205         -mprfchw with -mprefetchwt1.
26206
26207 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
26208
26209         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26210         Mark as varying.
26211
26212 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
26213
26214         * opts.h (CL_PCH_IGNORE): Define.
26215         * targhooks.c (option_affects_pch_p):
26216         Return false for options that have CL_PCH_IGNORE set.
26217         * opt-functions.awk: Process PchIgnore.
26218         * doc/options.texi: Document PchIgnore.
26219
26220         * config/arc/arc.opt (misize): Add PchIgnore property.
26221
26222 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26223
26224         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26225         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26226         constraint on constants to permit them being loaded into
26227         GENERAL_REGS or BASE_REGS.
26228
26229 2014-03-03  Nick Clifton  <nickc@redhat.com>
26230
26231         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26232         anti-cacnonical alternatives.
26233         (negandhi3_real): New pattern.
26234         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26235
26236 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26237
26238         * config/avr/avr-mcus.def: Remove atxmega16x1.
26239         * config/avr/avr-tables.opt: Regenerate.
26240         * config/avr/t-multilib: Regenerate.
26241         * doc/avr-mmcu.texi: Regenerate.
26242
26243 2014-03-03  Tobias Grosser  <tobias@grosser.es>
26244             Mircea Namolaru  <mircea.namolaru@inria.fr>
26245
26246         PR tree-optimization/58028
26247         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26248         scalar dimensions.
26249
26250 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26251
26252         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26253         not handled by recognizers.
26254
26255 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
26256
26257         PR middle-end/60175
26258         * function.c (expand_function_end): Don't emit
26259         clobber_return_register sequence if clobber_after is a BARRIER.
26260         * cfgexpand.c (construct_exit_block): Append instructions before
26261         return_label to prev_bb.
26262
26263 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26264
26265         * config/rs6000/constraints.md: Document reserved use of "wc".
26266
26267 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
26268
26269         PR ipa/60150
26270         * ipa.c (function_and_variable_visibility): When dissolving comdat
26271         group, also set all symbols to local.
26272
26273 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
26274
26275         PR ipa/60306
26276
26277         Revert:
26278         2013-12-14  Jan Hubicka  <jh@suse.cz>
26279         PR middle-end/58477
26280         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26281
26282 2014-03-02  Jon Beniston  <jon@beniston.com>
26283
26284         PR bootstrap/48230
26285         PR bootstrap/50927
26286         PR bootstrap/52466
26287         PR target/46898
26288         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26289           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26290         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26291         (simple_return, *simple_return): New patterns
26292         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26293         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26294
26295 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
26296
26297         * dwarf2out.c (gen_subprogram_die): Tidy.
26298
26299 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
26300
26301         PR target/60071
26302         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26303         (*mov_t_msb_neg_negc): ... this new insn.
26304
26305 2014-02-28  Jason Merrill  <jason@redhat.com>
26306
26307         PR c++/58678
26308         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26309         function.
26310
26311 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
26312
26313         PR c++/60314
26314         * dwarf2out.c (decltype_auto_die): New static.
26315         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26316         (gen_type_die_with_usage): Handle 'decltype(auto)'.
26317         (is_cxx_auto): Likewise.
26318
26319 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
26320
26321         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26322         we are not using general regs only.
26323
26324 2014-02-28  Richard Biener  <rguenther@suse.de>
26325
26326         PR target/60280
26327         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26328         previous fix and only allow to remove trivial pre-headers
26329         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26330         (remove_forwarder_block): Properly update the latch of a loop.
26331
26332 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26333
26334         PR debug/59992
26335         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26336         (cselib_preserved_hash_table): New.
26337         (preserve_constants_and_equivs): Move preserved vals to it.
26338         (cselib_find_slot): Look it up first.
26339         (cselib_init): Initialize it.
26340         (cselib_finish): Release it.
26341         (dump_cselib_table): Dump it.
26342
26343 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26344
26345         PR debug/59992
26346         * cselib.c (remove_useless_values): Skip to avoid quadratic
26347         behavior if the condition moved from...
26348         (cselib_process_insn): ... here holds.
26349
26350 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26351
26352         PR debug/57232
26353         * var-tracking.c (vt_initialize): Apply the same condition to
26354         preserve the CFA base value.
26355
26356 2014-02-28  Joey Ye  <joey.ye@arm.com>
26357
26358         PR target/PR60169
26359         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26360         if reload in progress or completed.
26361
26362 2014-02-28  Tobias Burnus  <burnus@net-b.de>
26363
26364         PR middle-end/60147
26365         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26366         NAMELIST_DECL.
26367
26368 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26369
26370         * doc/tm.texi.in (Condition Code Status): Update documention for
26371         relative locations of cc0-setter and cc0-user.
26372
26373 2014-02-27  Jeff Law  <law@redhat.com>
26374
26375         PR rtl-optimization/52714
26376         * combine.c (try_combine): When splitting an unrecognized PARALLEL
26377         into two independent simple sets, if I3 is a jump, ensure the
26378         pattern we place into I3 is a (set (pc) ...).
26379
26380 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
26381             Jeff Law  <law@redhat.com>
26382
26383         PR rtl-optimization/49847
26384         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26385         are in different blocks.
26386         * doc/tm.texi (Condition Code Status): Update documention for
26387         relative locations of cc0-setter and cc0-user.
26388
26389 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
26390
26391         PR target/59222
26392         * lra.c (lra_emit_add): Check SUBREG too.
26393
26394 2014-02-27  Andreas Schwab  <schwab@suse.de>
26395
26396         * config/m68k/m68k.c (m68k_option_override): Disable
26397         -flive-range-shrinkage for classic m68k.
26398         (m68k_override_options_after_change): Likewise.
26399
26400 2014-02-27  Marek Polacek  <polacek@redhat.com>
26401
26402         PR middle-end/59223
26403         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26404         -Wmaybe-uninitialized.
26405
26406 2014-02-27  Alan Modra  <amodra@gmail.com>
26407
26408         PR target/57936
26409         * reload1.c (emit_input_reload_insns): When reload_override_in,
26410         set old to rl->in_reg when rl->in_reg is a subreg.
26411
26412 2014-02-26  Richard Biener  <rguenther@suse.de>
26413
26414         PR bootstrap/60343
26415         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26416
26417 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
26418
26419         * common/config/i386/predicates.md (const1256_operand): Remove.
26420         (const2356_operand): New.
26421         (const_1_to_2_operand): Remove.
26422         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26423         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26424         (*avx512pf_gatherpf<mode>sf): Ditto.
26425         (avx512pf_gatherpf<mode>df): Ditto.
26426         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26427         (*avx512pf_gatherpf<mode>df): Ditto.
26428         (avx512pf_scatterpf<mode>sf): Ditto.
26429         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26430         (*avx512pf_scatterpf<mode>sf): Ditto.
26431         (avx512pf_scatterpf<mode>df): Ditto.
26432         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26433         (*avx512pf_scatterpf<mode>df): Ditto.
26434         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26435
26436 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
26437
26438         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26439         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26440         (_mm512_mask_testn_epi64_mask): Move to ...
26441         * config/i386/avx512cdintrin.h: Here.
26442         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26443         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26444         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26445         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26446         TARGET_AVX512F from TARGET_AVX512CD.
26447
26448 2014-02-26  Richard Biener  <rguenther@suse.de>
26449
26450         PR ipa/60327
26451         * ipa.c (walk_polymorphic_call_targets): Properly guard
26452         call to inline_update_overall_summary.
26453
26454 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
26455
26456         PR target/60280
26457         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26458         and latches only if requested.  Fix latch if it is removed.
26459         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26460         LOOPS_HAVE_PREHEADERS.
26461
26462 2014-02-25  Andrew Pinski  <apinski@cavium.com>
26463
26464         * builtins.c (expand_builtin_thread_pointer): Create a new target
26465         when the target is NULL.
26466
26467 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
26468
26469         PR rtl-optimization/60317
26470         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26471         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26472         * lra-assigns.c: Include params.h.
26473         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26474         other reload pseudos considerations.
26475
26476 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26477
26478         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26479         to use canonical form for nor<mode>3.
26480
26481 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26482
26483         PR target/55426
26484         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26485         conversions.
26486
26487 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
26488
26489         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26490         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26491         (ix86_handle_option): Handle OPT_mprefetchwt1.
26492         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26493         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26494         PREFETCHWT1 CPUID.
26495         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26496         OPTION_MASK_ISA_PREFETCHWT1.
26497         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26498         (PTA_PREFETCHWT1): New.
26499         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26500         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26501         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26502         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26503         (*prefetch_avx512pf_<mode>_: Change into ...
26504         (*prefetch_prefetchwt1_<mode>: This.
26505         * config/i386/i386.opt (mprefetchwt1): New.
26506         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26507         (_mm_prefetch): Handle intent to write.
26508         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26509
26510 2014-02-25  Richard Biener  <rguenther@suse.de>
26511
26512         PR middle-end/60291
26513         * emit-rtl.c (mem_attrs_htab): Remove.
26514         (mem_attrs_htab_hash): Likewise.
26515         (mem_attrs_htab_eq): Likewise.
26516         (set_mem_attrs): Always allocate new mem-attrs when something changed.
26517         (init_emit_once): Do not allocate mem_attrs_htab.
26518
26519 2014-02-25  Richard Biener  <rguenther@suse.de>
26520
26521         PR lto/60319
26522         * lto-opts.c (lto_write_options): Output non-explicit conservative
26523         -fwrapv, -fno-trapv and -fno-strict-overflow.
26524         * lto-wrapper.c (merge_and_complain): Handle merging those options.
26525         (run_gcc): And pass them through.
26526
26527 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
26528
26529         * sel-sched.c (calculate_new_fences): New parameter ptime.
26530         Calculate it as a maximum over all fence cycles.
26531         (sel_sched_region_2): Adjust the call to calculate_new_fences.
26532         Print the final schedule timing when sched_verbose.
26533
26534 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
26535
26536         PR rtl-optimization/60292
26537         * sel-sched.c (fill_vec_av_set): Do not reset target availability
26538         bit fot the fence instruction.
26539
26540 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
26541
26542         * calls.h: Fix typo in comment.
26543
26544 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
26545
26546         * config/pa/pa.c (pa_output_move_double): Don't valididate when
26547         adjusting offsetable addresses.
26548
26549 2014-02-24  Guozhi Wei  <carrot@google.com>
26550
26551         * sparseset.h (sparseset_pop): Fix the wrong index.
26552
26553 2014-02-24  Walter Lee  <walt@tilera.com>
26554
26555         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26556         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26557         triplet.
26558         * common/config/tilegx/tilegx-common.c
26559         (TARGET_DEFAULT_TARGET_FLAGS): Define.
26560         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26561         (LINK_SPEC): Ditto.
26562         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26563         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26564         (tilegx_gimplify_va_arg_expr): Handle big endian.
26565         (tilegx_expand_unaligned_load): Ditto.
26566         (tilegx_expand_unaligned_store): Ditto.
26567         (TARGET_RETURN_IN_MSB): New.
26568         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26569         (TARGET_ENDIAN_DEFAULT): New.
26570         (TARGET_BIG_ENDIAN): Handle big endian.
26571         (BYTES_BIG_ENDIAN): Ditto.
26572         (WORDS_BIG_ENDIAN): Ditto.
26573         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26574         (ENDIAN_SPEC): New.
26575         (EXTRA_SPECS): New.
26576         * config/tilegx/tilegx.md (extv): Handle big endian.
26577         (extzv): Ditto.
26578         (insn_st<n>): Ditto.
26579         (insn_st<n>_add<bitsuffix>): Ditto.
26580         (insn_stnt<n>): Ditto.
26581         (insn_stnt<n>_add<bitsuffix>):Ditto.
26582         (vec_interleave_highv8qi): Handle big endian.
26583         (vec_interleave_highv8qi_be): New.
26584         (vec_interleave_highv8qi_le): New.
26585         (insn_v1int_h): Handle big endian.
26586         (vec_interleave_lowv8qi): Handle big endian.
26587         (vec_interleave_lowv8qi_be): New.
26588         (vec_interleave_lowv8qi_le): New.
26589         (insn_v1int_l): Handle big endian.
26590         (vec_interleave_highv4hi): Handle big endian.
26591         (vec_interleave_highv4hi_be): New.
26592         (vec_interleave_highv4hi_le): New.
26593         (insn_v2int_h): Handle big endian.
26594         (vec_interleave_lowv4hi): Handle big endian.
26595         (vec_interleave_lowv4hi_be): New.
26596         (vec_interleave_lowv4hi_le): New.
26597         (insn_v2int_l): Handle big endian.
26598         (vec_interleave_highv2si): Handle big endian.
26599         (vec_interleave_highv2si_be): New.
26600         (vec_interleave_highv2si_le): New.
26601         (insn_v4int_h): Handle big endian.
26602         (vec_interleave_lowv2si): Handle big endian.
26603         (vec_interleave_lowv2si_be): New.
26604         (vec_interleave_lowv2si_le): New.
26605         (insn_v4int_l): Handle big endian.
26606         * config/tilegx/tilegx.opt (mbig-endian): New option.
26607         (mlittle-endian): New option.
26608         * doc/install.texi: Document tilegxbe-linux.
26609         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26610
26611 2014-02-24  Martin Jambor  <mjambor@suse.cz>
26612
26613         PR ipa/60266
26614         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26615         there are no parameter descriptors.
26616
26617 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
26618
26619         PR rtl-optimization/60268
26620         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26621         initialization to ...
26622         (sched_rgn_init): ... here.
26623         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26624
26625 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
26626
26627         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26628         names.
26629
26630 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
26631
26632         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26633         definition.
26634
26635 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
26636
26637         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26638         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26639
26640 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
26641
26642         * config/microblaze/predicates.md: Add cmp_op predicate.
26643         * config/microblaze/microblaze.md: Add branch_compare instruction
26644         which uses cmp_op predicate and emits cmp insn before branch.
26645         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26646         to microblaze_expand_conditional_branch and consolidate logic.
26647         (microblaze_expand_conditional_branch): emit branch_compare
26648         insn instead of handling cmp op separate from branch insn.
26649
26650 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26651
26652         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26653         to permit subregs.
26654
26655 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26656
26657         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26658         define_insn with define_expand and new define_insn
26659         *altivec_lve<VI_char>x_internal.
26660         (altivec_stve<VI_char>x): Replace define_insn with define_expand
26661         and new define_insn *altivec_stve<VI_char>x_internal.
26662         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26663         prototype.
26664         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26665         lve*x built-ins.
26666         (altivec_expand_stvex_be): New function.
26667
26668 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
26669
26670         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26671         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26672         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26673         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26674
26675 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
26676
26677         PR target/60298
26678         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26679         instead of emit_move_insn.
26680
26681 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26682
26683         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26684         vspltw with vsldoi.
26685         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26686         gen_altivec_vsumsws.
26687
26688 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26689
26690         * config/rs6000/altivec.md (altivec_lvxl): Rename as
26691         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26692         (altivec_lvxl_<mode>): New define_expand incorporating
26693         -maltivec=be semantics where needed.
26694         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26695         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26696         semantics where needed.
26697         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26698         (altivec_stvx_<mode>): New define_expand incorporating
26699         -maltivec=be semantics where needed.
26700         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26701         VM2 iterator instead of V4SI.
26702         (altivec_stvxl_<mode>): New define_expand incorporating
26703         -maltivec=be semantics where needed.
26704         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26705         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26706         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26707         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26708         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26709         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26710         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26711         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26712         ALTIVEC_BUILTIN_STVXL.
26713         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26714         (altivec_expand_stvx_be): Likewise.
26715         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26716         (altivec_expand_lvx_be): Likewise.
26717         (altivec_expand_stvx_be): Likewise.
26718         (altivec_expand_builtin): Add cases for
26719         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26720         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26721         (altivec_init_builtins): Add definitions for
26722         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26723         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26724
26725 2014-02-21  Catherine Moore  <clm@codesourcery.com>
26726
26727         * doc/invoke.texi (mvirt, mno-virt): Document.
26728         * config/mips/mips.opt (mvirt): New option.
26729         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26730
26731 2014-02-21  Richard Biener  <rguenther@suse.de>
26732
26733         PR tree-optimization/60276
26734         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26735         (STMT_VINFO_MIN_NEG_DIST): New macro.
26736         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26737         STMT_VINFO_MIN_NEG_DIST.
26738         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26739         made for negative dependence distances still hold.
26740
26741 2014-02-21  Richard Biener  <rguenther@suse.de>
26742
26743         PR middle-end/60291
26744         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26745         DECL_INITIAL for globals not in the current function context.
26746
26747 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
26748
26749         PR tree-optimization/56490
26750         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26751         * tree-ssa-uninit.c: Include params.h.
26752         (compute_control_dep_chain): Add num_calls argument, return false
26753         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26754         num_calls to recursive call.
26755         (find_predicates): Change dep_chain into normal array,
26756         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26757         variable and adjust compute_control_dep_chain caller.
26758         (find_def_preds): Likewise.
26759
26760 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
26761
26762         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26763         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26764
26765 2014-02-21  Nick Clifton  <nickc@redhat.com>
26766
26767         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26768         (pushhi1): Likewise.
26769         (popqi1): Add mode to pre_dec.
26770         (pophi1): Likewise.
26771
26772 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
26773
26774         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26775         mode for mask of V8SFmode permutation.
26776
26777 2014-02-20  Richard Henderson  <rth@redhat.com>
26778
26779         PR c++/60272
26780         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26781         a new pseudo for OLDVAL.
26782
26783 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
26784
26785         PR target/57896
26786         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26787         gen_reg_rtx if d->testing_p.
26788         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26789         if d->testing_p and we will certainly return true.
26790         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
26791         if d->testing_p.
26792
26793 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
26794
26795         * emit-rtl.c (gen_reg_rtx): Assert that
26796         crtl->emit.regno_pointer_align_length is non-zero.
26797
26798 2014-02-20  Richard Henderson  <rth@redhat.com>
26799
26800         PR c++/60272
26801         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26802         on failure the store back into EXPECT.
26803
26804 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
26805             Sandra Loosemore  <sandra@codesourcery.com>
26806
26807         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26808         * config/nios2/nios2.c (nios2_function_profiler): Add
26809         -fPIC (flag_pic == 2) support.
26810         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26811         (nios2_large_offset_p): New function.
26812         (nios2_unspec_reloc_p): Move up position, update to use
26813         nios2_large_offset_p.
26814         (nios2_unspec_address): Remove function.
26815         (nios2_unspec_offset): New function.
26816         (nios2_large_got_address): New function.
26817         (nios2_got_address): Add large offset support.
26818         (nios2_legitimize_tls_address): Update usage of removed and new
26819         functions.
26820         (nios2_symbol_binds_local_p): New function.
26821         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26822         (nios2_legitimize_address): Update to use nios2_large_offset_p.
26823         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26824         (nios2_print_operand): Merge H/L processing, add hiadj/lo
26825         processing for (const (unspec ...)).
26826         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26827
26828 2014-02-20  Richard Biener  <rguenther@suse.de>
26829
26830         * tree-cfg.c (replace_uses_by): Mark altered BBs before
26831         doing the substitution.
26832         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26833
26834 2014-02-20  Martin Jambor  <mjambor@suse.cz>
26835
26836         PR ipa/55260
26837         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26838         info when checking whether lattices are bottom.
26839
26840 2014-02-20  Richard Biener  <rguenther@suse.de>
26841
26842         PR middle-end/60221
26843         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26844         regions at -O0.
26845
26846 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
26847
26848         PR ipa/58555
26849         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26850         parameter specifying the scaling.
26851         (inline_call): Update.
26852         (want_inline_recursively): Guard division by zero.
26853         (recursive_inlining): Update.
26854         * ipa-inline.h (clone_inlined_nodes): Update.
26855
26856 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
26857
26858         PR target/60204
26859         * config/i386/i386.c (classify_argument): Pass structures of size
26860         64 bytes or less in register.
26861
26862 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
26863             Kirill Yukhin  <kirill.yukhin@intel.com>
26864
26865         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26866         (_mm_rcp28_round_ss): Ditto.
26867         (_mm_rsqrt28_round_sd): Ditto.
26868         (_mm_rsqrt28_round_ss): Ditto.
26869         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26870         (_mm_rcp14_round_ss): Ditto.
26871         (_mm_rsqrt14_round_sd): Ditto.
26872         (_mm_rsqrt14_round_ss): Ditto.
26873         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26874         the first input operand, get rid of match_dup.
26875         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26876         attribute to sse.
26877         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26878         Ditto.
26879         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26880         operand as the first input operand, set type attribute.
26881         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26882         Set type attribute.
26883         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26884         operand as the first input operand, set type attribute.
26885
26886 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26887
26888         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26889         bit of zero.
26890
26891 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
26892
26893         PR target/60207
26894         * config/i386/i386.c (construct_container): Remove TFmode check
26895         for X86_64_INTEGER_CLASS.
26896
26897 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
26898
26899         PR target/59794
26900         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26901         only when -Wpsabi is enabled.
26902
26903 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
26904
26905          PR target/59799
26906         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26907         passing arrays in registers are the same as for structs, so remove the
26908         special case for them.
26909
26910 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
26911
26912         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26913         destination type, extract only the valid bits if the source type is not
26914         integral and has a different mode.
26915
26916 2014-02-19  Richard Biener  <rguenther@suse.de>
26917
26918         PR ipa/60243
26919         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26920         for all calls.
26921
26922 2014-02-19  Richard Biener  <rguenther@suse.de>
26923
26924         PR ipa/60243
26925         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26926         (ipa_modify_call_arguments): Emit an argument load explicitely and
26927         preserve virtual SSA form there and for the replacement call.
26928         Do not update SSA form nor free dominance info.
26929
26930 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
26931
26932         * ipa.c (function_and_variable_visibility): Also clear WEAK
26933         flag when disolving COMDAT_GROUP.
26934
26935 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
26936
26937         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26938         * ipa-prop.c (ipa_set_jf_known_type): Return early when
26939         not devirtualizing.
26940         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26941         do more sanity checks.
26942         (detect_type_change): Return true when giving up early.
26943         (compute_complex_assign_jump_func): Fix type parameter of
26944         ipa_set_ancestor_jf.
26945         (compute_complex_ancestor_jump_func): Likewise.
26946         (update_jump_functions_after_inlining): Fix updating of
26947         ancestor function.
26948         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26949
26950 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
26951
26952         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26953         inline clones when edge disappears.
26954
26955 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
26956
26957         PR target/60203
26958         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26959         Split 64-bit moves into 2 patterns.  Do not allow the use of
26960         direct move for TDmode in little endian, since the decimal value
26961         has little endian bytes within a word, but the 64-bit pieces are
26962         ordered in a big endian fashion, and normal subreg's of TDmode are
26963         not allowed.
26964         (mov<mode>_64bit_dm): Likewise.
26965         (movtd_64bit_nodm): Likewise.
26966
26967 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
26968
26969         PR tree-optimization/60174
26970         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26971         statement of an SSA_NAME that occurs in an abnormal PHI node.
26972
26973 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
26974
26975         PR sanitizer/60142
26976         * final.c (SEEN_BB): Remove.
26977         (SEEN_NOTE, SEEN_EMITTED): Renumber.
26978         (final_scan_insn): Don't force_source_line on second
26979         NOTE_INSN_BASIC_BLOCK.
26980
26981 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
26982
26983         PR target/60205
26984         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26985         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26986         (type_natural_mode): Warn ABI change when %zmm register is not
26987         available for AVX512F vector value passing.
26988
26989 2014-02-18  Kai Tietz  <ktietz@redhat.com>
26990
26991         PR target/60193
26992         * config/i386/i386.c (ix86_expand_prologue): Use value in
26993         rax register as displacement when restoring %r10 or %rax.
26994         Fix wrong offset when restoring both registers.
26995
26996 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
26997
26998         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26999         assertion with conditional return.
27000
27001 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27002             Uros Bizjak  <ubizjak@gmail.com>
27003
27004         PR driver/60233
27005         * config/i386/driver-i386.c (host_detect_local_cpu): If
27006         YMM state is not saved by the OS, also clear has_f16c.  Move
27007         CPUID 0x80000001 handling before YMM state saving checking.
27008
27009 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
27010
27011         PR rtl-optimization/58960
27012         * haifa-sched.c (alloc_global_sched_pressure_data): New,
27013         factored out from ...
27014         (sched_init): ... here.
27015         (free_global_sched_pressure_data): New, factored out from ...
27016         (sched_finish): ... here.
27017         * sched-int.h (free_global_sched_pressure_data): Declare.
27018         * sched-rgn.c (nr_regions_initial): New static global.
27019         (haifa_find_rgns): Initialize it.
27020         (schedule_region): Disable sched-pressure for the newly
27021         generated regions.
27022
27023 2014-02-17  Richard Biener  <rguenther@suse.de>
27024
27025         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27026         release SSA defs of pattern stmts.
27027
27028 2014-02-17  Richard Biener  <rguenther@suse.de>
27029
27030         * tree-inline.c (expand_call_inline): Release the virtual
27031         operand defined by the call we are about to inline.
27032
27033 2014-02-17  Richard Biener  <rguenther@suse.de>
27034
27035         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27036
27037 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
27038             Ilya Tocar  <ilya.tocar@intel.com>
27039
27040         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27041         arguments order in builtin.
27042         (_mm512_permutexvar_epi64): Ditto.
27043         (_mm512_mask_permutexvar_epi64): Ditto
27044         (_mm512_maskz_permutexvar_epi32): Ditto
27045         (_mm512_permutexvar_epi32): Ditto
27046         (_mm512_mask_permutexvar_epi32): Ditto
27047
27048 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27049
27050         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27051         (p8_vmrgow): Likewise.
27052
27053 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27054
27055         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27056         endian targets.
27057
27058 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
27059
27060         PR target/60203
27061         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27062         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27063         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
27064         using direct move instructions on ISA 2.07.  Also adjust
27065         instruction length for 64-bit.
27066         (mov<mode>_64bit, TFmode/TDmode): Likewise.
27067         (mov<mode>_32bit, TFmode/TDmode): Likewise.
27068
27069 2014-02-15  Alan Modra  <amodra@gmail.com>
27070
27071         PR target/58675
27072         PR target/57935
27073         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27074         find_replacement on parts of insn rtl that might be reloaded.
27075
27076 2014-02-15  Richard Biener  <rguenther@suse.de>
27077
27078         PR tree-optimization/60183
27079         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27080         (tree_ssa_phiprop): Calculate and free post-dominators.
27081
27082 2014-02-14  Jeff Law  <law@redhat.com>
27083
27084         PR rtl-optimization/60131
27085         * ree.c (get_extended_src_reg): New function.
27086         (combine_reaching_defs): Use it rather than assuming location of REG.
27087         (find_and_remove_re): Verify first operand of extension is
27088         a REG before adding the insns to the copy list.
27089
27090 2014-02-14  Roland McGrath  <mcgrathr@google.com>
27091
27092         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27093         * configure: Regenerated.
27094         * config.in: Regenerated.
27095         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27096         instead of ASM_SHORT.
27097
27098 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
27099             Richard Earnshaw  <rearnsha@arm.com>
27100
27101         PR rtl-optimization/59535
27102         * lra-constraints.c (process_alt_operands): Encourage alternative
27103         when unassigned pseudo class is superset of the alternative class.
27104         (inherit_reload_reg): Don't inherit when optimizing for code size.
27105         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27106         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27107         modes not less than 4 for Thumb1.
27108
27109 2014-02-14  Kyle McMartin  <kyle@redhat.com>
27110
27111         PR pch/60010
27112         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27113
27114 2014-02-14  Richard Biener  <rguenther@suse.de>
27115
27116         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27117         (get_frame_arg): Drop the assert with langhook types_compatible_p.
27118         Do not strip INDIRECT_REFs.
27119
27120 2014-02-14  Richard Biener  <rguenther@suse.de>
27121
27122         PR lto/60179
27123         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27124         DECL_FUNCTION_SPECIFIC_TARGET.
27125         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27126         * tree-streamer-out.c (pack_ts_target_option): Remove.
27127         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27128         (write_ts_function_decl_tree_pointers): Do not stream
27129         DECL_FUNCTION_SPECIFIC_TARGET.
27130         * tree-streamer-in.c (unpack_ts_target_option): Remove.
27131         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27132         (lto_input_ts_function_decl_tree_pointers): Do not stream
27133         DECL_FUNCTION_SPECIFIC_TARGET.
27134
27135 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
27136
27137         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27138         (get_initial_def_for_induction, vectorizable_induction): Ignore
27139         debug stmts when looking for exit_phi.
27140         (vectorizable_live_operation): Fix up condition.
27141
27142 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27143
27144         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27145         nreverse() because it changes the content of original tree list.
27146
27147 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27148
27149         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27150         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27151
27152 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27153
27154         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27155         GNU coding standards.
27156
27157 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
27158
27159         PR debug/60152
27160         * dwarf2out.c (gen_subprogram_die): Don't call
27161         add_calling_convention_attribute if subr_die is old_die.
27162
27163 2014-02-13  Sharad Singhai  <singhai@google.com>
27164
27165         * doc/optinfo.texi: Fix order of nodes.
27166
27167 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
27168
27169         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27170         operands[2], not operands[3].
27171
27172 2014-02-13  Richard Biener  <rguenther@suse.de>
27173
27174         PR bootstrap/59878
27175         * doc/install.texi (ISL): Update recommended version to 0.12.2,
27176         mention the possibility of an in-tree build.
27177         (CLooG): Update recommended version to 0.18.1, mention the
27178         possibility of an in-tree build and clarify that the ISL
27179         bundled with CLooG does not work.
27180
27181 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
27182
27183         PR target/43546
27184         * expr.c (compress_float_constant): If x is a hard register,
27185         extend into a pseudo and then move to x.
27186
27187 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27188
27189         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27190         caused by bad second argument to warning_at() with -mhotpatch and
27191         nested functions (e.g. with gfortran).
27192
27193 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
27194
27195         * opts.c (option_name): Remove "enabled by default" rider.
27196
27197 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
27198
27199         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27200
27201 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27202             Uros Bizjak  <ubizjak@gmail.com>
27203
27204         PR target/60151
27205         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27206         * configure: Regenerated.
27207
27208 2014-02-12  Richard Biener  <rguenther@suse.de>
27209
27210         * vec.c (vec_prefix::calculate_allocation): Move as
27211         inline variant to vec.h.
27212         (vec_prefix::calculate_allocation_1): New out-of-line version.
27213         * vec.h (vec_prefix::calculate_allocation_1): Declare.
27214         (vec_prefix::m_has_auto_buf): Rename to ...
27215         (vec_prefix::m_using_auto_storage): ... this.
27216         (vec_prefix::calculate_allocation): Inline the easy cases
27217         and dispatch to calculate_allocation_1 which doesn't need the
27218         prefix address.
27219         (va_heap::reserve): Use gcc_checking_assert.
27220         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27221         m_using_auto_storage.
27222         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27223         member and adjust.
27224         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27225         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27226         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27227
27228 2014-02-12  Richard Biener  <rguenther@suse.de>
27229
27230         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27231         when we found a dependence.
27232
27233 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
27234
27235         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27236         common code...
27237         (maybe_fold_stmt): ... into this new function.
27238         * omp-low.c (lower_omp): Update comment.
27239
27240         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27241         last use.
27242
27243         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27244         dereference.
27245
27246 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
27247
27248         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27249         identifiers in comments.
27250         (cortexa53_extra_costs): Likewise.
27251         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27252         (cortexa7_extra_costs): Likewise.
27253         (cortexa12_extra_costs): Likewise.
27254         (cortexa15_extra_costs): Likewise.
27255         (v7m_extra_costs): Likewise.
27256
27257 2014-02-12  Richard Biener  <rguenther@suse.de>
27258
27259         PR middle-end/60092
27260         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27261         of posix_memalign being successful.
27262         (lower_stmt): Restrict lowering of posix_memalign to when
27263         -ftree-bit-ccp is enabled.
27264
27265 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27266
27267         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27268         arg_loc.
27269         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27270
27271 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
27272
27273         PR rtl-optimization/60116
27274         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27275         other_insn once the combination has been validated.
27276
27277 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
27278
27279         PR lto/59468
27280         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27281         and wrapper.
27282         * ipa-devirt.c: Include demangle.h
27283         (odr_violation_reported): New static variable.
27284         (add_type_duplicate): Update odr_violations.
27285         (maybe_record_node): Add completep parameter; update it.
27286         (record_target_from_binfo): Add COMPLETEP parameter;
27287         update it as needed.
27288         (possible_polymorphic_call_targets_1): Likewise.
27289         (struct polymorphic_call_target_d): Add nonconstruction_targets;
27290         rename FINAL to COMPLETE.
27291         (record_targets_from_bases): Sanity check we found the binfo;
27292         fix COMPLETEP updating.
27293         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27294         parameter, fix computing of COMPLETEP.
27295         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27296         at LTO time do demangling.
27297         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27298         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27299         parameter.
27300         (gimple_get_virt_method_for_binfo): Likewise.
27301         * gimple-fold.h (gimple_get_virt_method_for_binfo,
27302         gimple_get_virt_method_for_vtable): Update prototypes.
27303
27304 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
27305
27306         PR target/49008
27307         * genautomata.c (add_presence_absence): Fix typo with
27308         {final_}presence_list.
27309
27310 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27311
27312         PR target/60137
27313         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27314         for VSX/Altivec vectors that land in GPR registers.
27315
27316 2014-02-11  Richard Henderson  <rth@redhat.com>
27317             Jakub Jelinek  <jakub@redhat.com>
27318
27319         PR debug/59776
27320         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27321         around drhs if type conversion to lacc->type is not useless.
27322
27323 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27324
27325         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27326         tuning struct.
27327         (cortex-a57.cortex-a53): Likewise.
27328         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27329
27330 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27331
27332         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27333         arm_restrict_it.
27334
27335 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
27336
27337         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27338         add_options_for_arm_vfp3.
27339
27340 2014-02-11  Jeff Law  <law@redhat.com>
27341
27342         PR middle-end/54041
27343         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27344         object with an undesirable mode.
27345
27346 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27347
27348         PR libgomp/60107
27349         * config/i386/sol2-9.h: New file.
27350         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27351         *-*-solaris2.9*): Use it.
27352
27353 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
27354
27355         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27356         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27357
27358 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
27359
27360         * config/microblaze/microblaze.c: Extend mcpu version format
27361
27362 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
27363
27364         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27365
27366 2014-02-10  Richard Henderson  <rth@redhat.com>
27367
27368         PR target/59927
27369         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27370         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27371         ms-abi vs -mno-accumulate-outgoing-args.
27372         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27373         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27374         respect to ms-abi.
27375
27376 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27377
27378         PR middle-end/60080
27379         * cfgexpand.c (expand_asm_operands): Attach source location to
27380         ASM_INPUT rtx objects.
27381         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27382
27383 2014-02-10  Nick Clifton  <nickc@redhat.com>
27384
27385         * config/mn10300/mn10300.c (popcount): New function.
27386         (mn10300_expand_prologue): Include saved registers in stack usage
27387         count.
27388
27389 2014-02-10  Jeff Law  <law@redhat.com>
27390
27391         PR middle-end/52306
27392         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27393         when changing the SET_DEST of a prior insn to avoid an input reload.
27394
27395 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27396
27397         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27398         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27399         -mcall-openbsd, or -mcall-linux.
27400         (CC1_ENDIAN_BIG_SPEC): Remove.
27401         (CC1_ENDIAN_LITTLE_SPEC): Remove.
27402         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27403         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27404         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27405         and %cc1_endian_default.
27406         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27407
27408 2014-02-10  Richard Biener  <rguenther@suse.de>
27409
27410         PR tree-optimization/60115
27411         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27412         MEM_REF handling.  Properly verify that the accesses are not
27413         out of the objects bound.
27414
27415 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27416
27417         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27418         coretex to cortex.
27419
27420 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
27421
27422         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27423         proper constants and fix formatting.
27424         (possible_polymorphic_call_targets): Fix formatting.
27425
27426 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
27427             Ilya Tocar  <ilya.tocar@intel.com>
27428
27429         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27430         (_mm512_loadu_epi32): Renamed into...
27431         (_mm512_loadu_si512): This.
27432         (_mm512_storeu_epi32): Renamed into...
27433         (_mm512_storeu_si512): This.
27434         (_mm512_maskz_ceil_ps): Removed.
27435         (_mm512_maskz_ceil_pd): Ditto.
27436         (_mm512_maskz_floor_ps): Ditto.
27437         (_mm512_maskz_floor_pd): Ditto.
27438         (_mm512_floor_round_ps): Ditto.
27439         (_mm512_floor_round_pd): Ditto.
27440         (_mm512_ceil_round_ps): Ditto.
27441         (_mm512_ceil_round_pd): Ditto.
27442         (_mm512_mask_floor_round_ps): Ditto.
27443         (_mm512_mask_floor_round_pd): Ditto.
27444         (_mm512_mask_ceil_round_ps): Ditto.
27445         (_mm512_mask_ceil_round_pd): Ditto.
27446         (_mm512_maskz_floor_round_ps): Ditto.
27447         (_mm512_maskz_floor_round_pd): Ditto.
27448         (_mm512_maskz_ceil_round_ps): Ditto.
27449         (_mm512_maskz_ceil_round_pd): Ditto.
27450         (_mm512_expand_pd): Ditto.
27451         (_mm512_expand_ps): Ditto.
27452         * config/i386/i386.c (ix86_builtins): Remove
27453         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27454         (bdesc_args): Ditto.
27455         * config/i386/predicates.md (const1256_operand): New.
27456         (const_1_to_2_operand): Ditto.
27457         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27458         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27459         (*avx512pf_gatherpf<mode>sf): Ditto.
27460         (avx512pf_gatherpf<mode>df): Ditto.
27461         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27462         (*avx512pf_gatherpf<mode>df): Ditto.
27463         (avx512pf_scatterpf<mode>sf): Ditto.
27464         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27465         (*avx512pf_scatterpf<mode>sf): Ditto.
27466         (avx512pf_scatterpf<mode>df): Ditto.
27467         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27468         (*avx512pf_scatterpf<mode>df): Ditto.
27469         (avx512f_expand<mode>): Removed.
27470         (<shift_insn><mode>3<mask_name>): Change predicate type.
27471
27472 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
27473
27474         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27475         not at the end of datarefs vector use ordered_remove to avoid
27476         reordering datarefs vector.
27477
27478         PR c/59984
27479         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27480         mark local addressable non-static vars as GOVD_PRIVATE
27481         instead of GOVD_LOCAL.
27482         * omp-low.c (lower_omp_for): Move gimple_bind_vars
27483         and BLOCK_VARS of gimple_bind_block to new_stmt rather
27484         than copying them.
27485
27486         PR middle-end/60092
27487         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27488         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27489         assume_aligned or alloc_align attributes.
27490         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27491         arguments.  Handle also assume_aligned and alloc_align attributes.
27492         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
27493         calls to functions with assume_aligned or alloc_align attributes.
27494         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27495
27496 2014-02-08  Terry Guo  <terry.guo@arm.com>
27497
27498         * doc/invoke.texi: Document ARM -march=armv7e-m.
27499
27500 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
27501
27502         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27503         flag on __cilkrts_rethrow builtin.
27504
27505         PR ipa/60026
27506         * ipa-cp.c (determine_versionability): Fail at -O0
27507         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27508         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27509
27510         Revert:
27511         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
27512
27513         PR ipa/60026
27514         * tree-inline.c (copy_forbidden): Fail for
27515         __attribute__((optimize (0))) functions.
27516
27517 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
27518
27519         * varpool.c: Include pointer-set.h.
27520         (varpool_remove_unreferenced_decls): Variables in other partitions
27521         will not be output; be however careful to not lose information
27522         about partitioning.
27523
27524 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
27525
27526         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27527         lookup in the vtable constructor.
27528
27529 2014-02-07  Jeff Law  <law@redhat.com>
27530
27531         PR target/40977
27532         * config/m68k/m68k.md (ashldi_extsi): Turn into a
27533         define_insn_and_split.
27534
27535         * ipa-inline.c (inline_small_functions): Fix typos.
27536
27537 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27538
27539         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27540         (s390_can_use_return_insn): Declare.
27541         * config/s390/s390.h (EPILOGUE_USES): Define.
27542         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27543         instructions.
27544         (s390_chunkify_start): Handle return JUMP_LABELs.
27545         (s390_early_mach): Emit a main_pool instruction on the entry edge.
27546         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27547         (s390_can_use_return_insn): New functions.
27548         (s390_fix_long_loop_prediction): Handle conditional returns.
27549         (TARGET_SET_UP_BY_PROLOGUE): Define.
27550         * config/s390/s390.md (ANY_RETURN): New code iterator.
27551         (*creturn, *csimple_return, return, simple_return): New patterns.
27552
27553 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27554
27555         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27556         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
27557         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
27558         REG_CFA_RESTORE list when deciding not to restore a register.
27559
27560 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27561
27562         * config/s390/s390.c: Include tree-pass.h and context.h.
27563         (s390_early_mach): New function, split out from...
27564         (s390_emit_prologue): ...here.
27565         (pass_data_s390_early_mach): New pass structure.
27566         (pass_s390_early_mach): New class.
27567         (s390_option_override): Create and register early_mach pass.
27568         Move to end of file.
27569
27570 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27571
27572         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27573         to match for the exit block.
27574
27575 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27576
27577         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27578         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27579         Reject misaligned operands.
27580
27581 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27582
27583         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27584
27585 2014-02-07  Richard Biener  <rguenther@suse.de>
27586
27587         PR middle-end/60092
27588         * gimple-low.c (lower_builtin_posix_memalign): New function.
27589         (lower_stmt): Call it to lower posix_memalign in a way
27590         to make alignment info accessible.
27591
27592 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
27593
27594         PR c++/60082
27595         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27596         __builtin_setjmp_receiver.
27597
27598 2014-02-07  Richard Biener  <rguenther@suse.de>
27599
27600         PR middle-end/60092
27601         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27602         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27603         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27604         Handle BUILT_IN_POSIX_MEMALIGN.
27605         (find_func_clobbers): Likewise.
27606         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27607         (call_may_clobber_ref_p_1): Likewise.
27608
27609 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27610
27611         PR ipa/59918
27612         * ipa-devirt.c (record_target_from_binfo): Remove overactive
27613         sanity check.
27614
27615 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27616
27617         PR ipa/59469
27618         * lto-cgraph.c (lto_output_node): Use
27619         symtab_get_symbol_partitioning_class.
27620         (lto_output_varpool_node): likewise.
27621         (symtab_get_symbol_partitioning_class): Move here from
27622         lto/lto-partition.c
27623         * cgraph.h (symbol_partitioning_class): Likewise.
27624         (symtab_get_symbol_partitioning_class): Declare.
27625
27626 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27627
27628         * ggc.h (ggc_internal_cleared_alloc): New macro.
27629         * vec.h (vec_safe_copy): Handle memory stats.
27630         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27631         * target-globals.c (save_target_globals): Likewise.
27632
27633 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27634
27635         PR target/60077
27636         * expr.c (emit_move_resolve_push): Export; be bit more selective
27637         on when to clear alias set.
27638         * expr.h (emit_move_resolve_push): Declare.
27639         * function.h (struct function): Add tail_call_marked.
27640         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27641         * config/i386/i386-protos.h (ix86_expand_push): Remove.
27642         * config/i386/i386.md (TImode move expander): De not call
27643         ix86_expand_push.
27644         (FP push expanders): Preserve memory attributes.
27645         * config/i386/sse.md (push<mode>1): Remove.
27646         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27647         (ix86_expand_push): Remove.
27648         * config/i386/mmx.md (push<mode>1): Remove.
27649
27650 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
27651
27652         PR rtl-optimization/60030
27653         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27654         lopart with paradoxical subreg before shifting it up by hprec.
27655
27656 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27657
27658         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27659         Remove extra newline at end of file.
27660         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27661         (arm_issue_rate): Handle cortexa57.
27662         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27663         (cortex-a57.cortex-a53): Likewise.
27664
27665 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
27666
27667         PR target/59575
27668         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27669         don't record in REG_FRAME_RELATED_EXPR registers not set in that
27670         bitmask.
27671         (arm_expand_prologue): Adjust all callers.
27672         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27673         info, registers also at the lowest numbered registers side.  Use
27674         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27675         XEXP.
27676
27677         PR debug/59992
27678         * var-tracking.c (adjust_mems): Before adding a SET to
27679         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27680
27681 2014-02-06  Alan Modra  <amodra@gmail.com>
27682
27683         PR target/60032
27684         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27685         change SDmode to DDmode when lra_in_progress.
27686
27687 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
27688
27689         PR middle-end/59150
27690         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27691         free_data_ref on the dr first, and before goto again also set dr
27692         to the next dr.  For simd_lane_access, free old datarefs[i] before
27693         overwriting it.  For get_vectype_for_scalar_type failure, don't
27694         free_data_ref if simd_lane_access.
27695
27696         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27697
27698         PR target/60062
27699         * tree.h (opts_for_fn): New inline function.
27700         (opt_for_fn): Define.
27701         * config/i386/i386.c (ix86_function_regparm): Use
27702         opt_for_fn (decl, optimize) instead of optimize.
27703
27704 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27705
27706         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27707         for SYMBOL_REF in large memory model.
27708
27709 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27710
27711         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27712         and crypto support.
27713         (cortex-a57): Likewise.
27714         (cortex-a57.cortex-a53): Likewise.
27715
27716 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
27717             Kugan Vivekanandarajah  <kuganv@linaro.org>
27718
27719         * config/arm/arm.c (arm_vector_alignment_reachable): Check
27720         unaligned_access.
27721         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27722
27723 2014-02-06  Richard Biener  <rguenther@suse.de>
27724
27725         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27726         set_loop_copy and initialize_original_copy_tables.
27727
27728 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
27729
27730         * config/aarch64/aarch64-simd.md
27731         (aarch64_ashr_simddi): Change QI to SI.
27732
27733 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
27734             Jakub Jelinek  <jakub@redhat.com>
27735
27736         PR middle-end/60013
27737         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27738         of the dataflow.
27739
27740 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27741
27742         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27743         CODE_FOR_altivec_vpku[hw]um to
27744         CODE_FOR_altivec_vpku[hw]um_direct.
27745         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27746         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27747         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27748         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27749
27750 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27751
27752         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27753         generation for -maltivec=be.
27754         (altivec_vsumsws): Simplify redundant test.
27755
27756 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27757
27758         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27759         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27760         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27761         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27762         gen_altivec_vpkuwum.
27763         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27764         BYTES_BIG_ENDIAN.
27765         (altivec_vpks<VI_char>ss): Likewise.
27766         (altivec_vpks<VI_char>us): Likewise.
27767         (altivec_vpku<VI_char>us): Likewise.
27768         (altivec_vpku<VI_char>um): Likewise.
27769         (altivec_vpku<VI_char>um_direct): New (copy of
27770         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27771         internal use).
27772         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27773         target is little endian and -maltivec=be is not specified.
27774         (*altivec_vupkhs<VU_char>_direct): New (copy of
27775         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27776         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27777         target is little endian and -maltivec=be is not specified.
27778         (*altivec_vupkls<VU_char>_direct): New (copy of
27779         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27780         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27781         little endian and -maltivec=be is not specified.
27782         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27783         little endian and -maltivec=be is not specified.
27784
27785 2014-02-05  Richard Henderson  <rth@redhat.com>
27786
27787         PR debug/52727
27788         * combine-stack-adj.c: Revert r206943.
27789         * sched-int.h (struct deps_desc): Add last_args_size.
27790         * sched-deps.c (init_deps): Initialize it.
27791         (sched_analyze_insn): Add OUTPUT dependencies between insns that
27792         contain REG_ARGS_SIZE notes.
27793
27794 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
27795
27796         * lto-cgraph.c (asm_nodes_output): Make global.
27797         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27798         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27799         (driver_handle_option): Handle OPT_fwpa.
27800
27801 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
27802
27803         PR ipa/59947
27804         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27805         a comment typo and formatting issue.  If odr_hash hasn't been
27806         created, return vNULL and set *completep to false.
27807
27808         PR middle-end/57499
27809         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27810         bb with no successors.
27811
27812 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
27813
27814         PR target/59718
27815         * doc/invoke.texi (-march): Clarify documentation for ARM.
27816         (-mtune): Likewise.
27817         (-mcpu): Likewise.
27818
27819 2014-02-05  Richard Biener  <rguenther@suse.de>
27820
27821         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27822         when not vectorizing because of too many alias checks.
27823         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27824         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27825
27826 2014-02-05  Nick Clifton  <nickc@redhat.com>
27827
27828         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27829         accept extended registers in any mode when compiling for the MN10300.
27830
27831 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
27832
27833         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27834         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27835         sanitization attributes.
27836         (can_inline_edge_p): Likewise.
27837         (sanitize_attrs_match_for_inline_p): New function.
27838
27839 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
27840
27841         * ipa-prop.c (detect_type_change): Shor circuit testing of
27842         type changes on THIS pointer.
27843
27844 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
27845
27846         PR target/59777
27847         * config/pa/pa.c (legitimize_tls_address): Return original address
27848         if not passed a SYMBOL_REF rtx.
27849         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27850         addresses.
27851         (pa_emit_move_sequence): Simplify TLS source operands.
27852         (pa_legitimate_constant_p): Reject all TLS constants.
27853         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27854         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27855
27856 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
27857
27858         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27859         groups when we know they are controlled by LTO.
27860         * varasm.c (default_binds_local_p_1): If object is in other partition,
27861         it will be resolved locally.
27862
27863 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27864
27865         * config/host-linux.c (linux_gt_pch_use_address): Don't
27866         use SSIZE_MAX because it is not always defined.
27867
27868 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
27869
27870         PR bootstrap/59913
27871         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27872         threshold for pseudo splitting.
27873         (update_ebb_live_info): Process call argument hard registers and
27874         hard registers from insn definition too.
27875         (max_small_class_regs_num): New constant.
27876         (inherit_in_ebb): Update live hard regs through EBBs.  Update
27877         reloads_num only for small register classes.  Don't split for
27878         outputs of jumps.
27879
27880 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
27881
27882         PR ipa/60058
27883         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27884         is non-null.
27885
27886 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
27887
27888         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27889         visibility is safe.
27890
27891 2014-02-04  Marek Polacek  <polacek@redhat.com>
27892
27893         * gdbinit.in (pel): Define.
27894
27895 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27896
27897         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27898         behavior.
27899
27900 2014-02-04  Richard Biener  <rguenther@suse.de>
27901
27902         PR lto/59723
27903         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27904         in function context local.
27905         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27906         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27907         similar to LTO_imported_decl_ref.
27908
27909 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
27910
27911         PR tree-optimization/60002
27912         * cgraphclones.c (build_function_decl_skip_args): Clear
27913         DECL_LANG_SPECIFIC.
27914
27915         PR tree-optimization/60023
27916         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27917         false to gsi_replace.
27918         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27919         has been in some EH region and vec_stmt could throw, add
27920         vec_stmt into the same EH region.
27921         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27922         has no lhs, ignore it.
27923         * internal-fn.c (expand_MASK_LOAD): Likewise.
27924
27925         PR ipa/60026
27926         * tree-inline.c (copy_forbidden): Fail for
27927         __attribute__((optimize (0))) functions.
27928
27929         PR other/58712
27930         * omp-low.c (simd_clone_struct_copy): If from->inbranch
27931         is set, copy one less argument.
27932         (expand_simd_clones): Don't subtract clone_info->inbranch
27933         from simd_clone_struct_alloc argument.
27934
27935         PR rtl-optimization/57915
27936         * recog.c (simplify_while_replacing): If all unary/binary/relational
27937         operation arguments are constant, attempt to simplify those.
27938
27939         PR middle-end/59261
27940         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27941         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27942
27943 2014-02-04  Richard Biener  <rguenther@suse.de>
27944
27945         PR tree-optimization/60012
27946         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27947         TBAA disambiguation to all DDRs.
27948
27949 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27950
27951         PR target/59788
27952         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27953         (LINK_SPEC): Use it for -shared, -shared-libgcc.
27954
27955 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
27956
27957         PR ipa/59882
27958         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27959
27960 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
27961
27962         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27963         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27964
27965 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
27966
27967         PR ipa/59831
27968         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27969         to figure out targets of polymorphic calls with known decl.
27970         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27971         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27972         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27973         (get_polymorphic_call_info): ... here.
27974         (get_polymorphic_call_info_from_invariant): New function.
27975
27976 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
27977
27978         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27979         lookup via vtable pointer; check for type consistency
27980         and turn inconsitent facts into UNREACHABLE.
27981         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27982         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27983         type inconsistent querries; return UNREACHABLE instead.
27984
27985 2014-02-03  Richard Henderson  <rth@twiddle.net>
27986
27987         PR tree-opt/59924
27988         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27989         already processed this node.
27990         (normalize_one_pred_1): Pass along mark_set.
27991         (normalize_one_pred): Create and destroy a pointer_set_t.
27992         (normalize_one_pred_chain): Likewise.
27993
27994 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
27995
27996         PR gcov-profile/58602
27997         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27998
27999 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28000
28001         PR ipa/59831
28002         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28003         -fno-devirtualize; try to devirtualize by the knowledge of
28004         virtual table pointer given by aggregate propagation.
28005         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28006         (ipa_print_node_jump_functions): Dump also offset that
28007         is relevant for polymorphic calls.
28008         (determine_known_aggregate_parts): Add arg_type parameter; use it
28009         instead of determining the type from pointer type.
28010         (ipa_compute_jump_functions_for_edge): Update call of
28011         determine_known_aggregate_parts.
28012         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28013         (gimple_get_virt_method_for_binfo): ... here; simplify using
28014         vtable_pointer_value_to_vtable.
28015         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28016         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28017         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28018         (vtable_pointer_value_to_vtable): Break out from ...; handle also
28019         POINTER_PLUS_EXPR.
28020         (vtable_pointer_value_to_binfo): ... here.
28021         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28022
28023 2014-02-03  Teresa Johnson  <tejohnson@google.com>
28024
28025         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28026         redef of outer loop index variable.
28027
28028 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
28029
28030         PR c++/53017
28031         PR c++/59211
28032         * doc/extend.texi (Function Attributes): Typo.
28033
28034 2014-02-03  Cong Hou  <congh@google.com>
28035
28036         PR tree-optimization/60000
28037         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28038         if the vectorized statement is a store.  A store statement can only
28039         appear at the end of pattern statements.
28040
28041 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
28042
28043         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28044         (ix86_option_override_internal): Default long double to 64-bit for
28045         32-bit Bionic and to 128-bit for 64-bit Bionic.
28046
28047         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28048         TARGET_LONG_DOUBLE_128 is true.
28049         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28050
28051         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28052         (mlong-double-64): Negate -mlong-double-128.
28053         (mlong-double-128): New option.
28054
28055         * config/i386/i386-c.c (ix86_target_macros): Define
28056         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28057
28058         * doc/invoke.texi: Document -mlong-double-128.
28059
28060 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
28061
28062         PR rtl-optimization/60024
28063         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28064
28065 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
28066
28067         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28068
28069 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
28070
28071         PR rtl-optimization/57662
28072         * sel-sched.c (code_motion_path_driver): Do not mark already not
28073         existing blocks in the visiting bitmap.
28074
28075 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
28076
28077         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28078         on the insn being emitted.
28079
28080 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
28081             Will Deacon  <will.deacon@arm.com>
28082
28083         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28084
28085 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28086
28087         * config/arm/arm-tables.opt: Regenerate.
28088
28089 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28090
28091         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28092         for vector types other than V16QImode.
28093         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28094         define_expand, and call altivec_expand_vec_perm_le when producing
28095         code with little endian element order.
28096         (*altivec_vperm_<mode>_internal): New insn having previous
28097         behavior of altivec_vperm_<mode>.
28098         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28099         altivec_expand_vec_perm_le when producing code with little endian
28100         element order.
28101         (*altivec_vperm_<mode>_uns_internal): New insn having previous
28102         behavior of altivec_vperm_<mode>_uns.
28103
28104 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28105
28106         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28107         (altivec_vsumsws): Add handling for -maltivec=be with a little
28108         endian target.
28109         (altivec_vsumsws_direct): New.
28110         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28111         gen_altivec_vsumsws.
28112
28113 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
28114
28115         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28116         vtable_pointer_value_to_binfo): New functions.
28117         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28118         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28119
28120 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
28121
28122         * config/nios2/nios2.md (load_got_register): Initialize GOT
28123         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28124         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28125
28126 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
28127
28128         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28129         preserverd by passthrough, do not propagate the type.
28130
28131 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28132
28133         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28134         (mips_atomic_assign_expand_fenv): New function.
28135         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28136
28137 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28138
28139         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28140         (__builtin_mips_set_fcsr): Likewise.
28141         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28142         MIPS_USI_FTYPE_VOID.
28143         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28144         (mips16_expand_set_fcsr): Likewise.
28145         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28146         (mips16_set_fcsr_stub): Likewise.
28147         (mips16_get_fcsr_one_only_stub): New class.
28148         (mips16_set_fcsr_one_only_stub): Likewise.
28149         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28150         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28151         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28152         (hard_float): New availability predicate.
28153         (mips_builtins): Add get_fcsr and set_fcsr.
28154         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28155         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28156         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28157         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28158         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28159         patterns.
28160
28161 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28162
28163         * config/mips/mips.c (mips_one_only_stub): New class.
28164         (mips_need_mips16_rdhwr_p): Replace with...
28165         (mips16_rdhwr_stub): ...this new variable.
28166         (mips16_stub_call_address): New function.
28167         (mips16_rdhwr_one_only_stub): New class.
28168         (mips_expand_thread_pointer): Use mips16_stub_call_address.
28169         (mips_output_mips16_rdhwr): Delete.
28170         (mips_finish_stub): New function.
28171         (mips_code_end): Use it to handle rdhwr stubs.
28172
28173 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
28174
28175         PR target/60017
28176         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28177         when calculating size of integer atomic types.
28178
28179 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
28180
28181         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28182
28183 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
28184
28185         PR tree-optimization/60003
28186         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28187         * profile.c (branch_prob): Use gimple_call_builtin_p
28188         to check for BUILT_IN_SETJMP_RECEIVER.
28189         * tree-inline.c (copy_bb): Call notice_special_calls.
28190
28191 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
28192
28193         PR bootstrap/59985
28194         * lra-constraints.c (process_alt_operands): Update reload_sum only
28195         on the first pass.
28196
28197 2014-01-31  Richard Henderson  <rth@redhat.com>
28198
28199         PR middle-end/60004
28200         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28201         until after else_eh is processed.
28202
28203 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
28204
28205         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28206         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28207         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28208         in smmintrin.h, remove them.
28209         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28210         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28211         * config/i386/i386.md (ROUND_SAE): Fix value.
28212         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28213         (const48_operand): New.
28214         * config/i386/subst.md (round), (round_expand): Use
28215         const_4_or_8_to_11_operand.
28216         (round_saeonly), (round_saeonly_expand): Use const48_operand.
28217
28218 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
28219
28220         * config/i386/constraints.md (Yk): Swap meaning with k.
28221         * config/i386/i386.md (movhi_internal): Change Yk to k.
28222         (movqi_internal): Ditto.
28223         (*k<logic><mode>): Ditto.
28224         (*andhi_1): Ditto.
28225         (*andqi_1): Ditto.
28226         (kandn<mode>): Ditto.
28227         (*<code>hi_1): Ditto.
28228         (*<code>qi_1): Ditto.
28229         (kxnor<mode>): Ditto.
28230         (kortestzhi): Ditto.
28231         (kortestchi): Ditto.
28232         (kunpckhi): Ditto.
28233         (*one_cmplhi2_1): Ditto.
28234         (*one_cmplqi2_1): Ditto.
28235         * config/i386/sse.md (): Change k to Yk.
28236         (avx512f_load<mode>_mask): Ditto.
28237         (avx512f_blendm<mode>): Ditto.
28238         (avx512f_store<mode>_mask): Ditto.
28239         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28240         (avx512f_storedqu<mode>_mask): Ditto.
28241         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28242         Ditto.
28243         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28244         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28245         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28246         (avx512f_maskcmp<mode>3): Ditto.
28247         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28248         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28249         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28250         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28251         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28252         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28253         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28254         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28255         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28256         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28257         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28258         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28259         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28260         (vec_extract_lo_<mode>_maskm): Ditto.
28261         (vec_extract_hi_<mode>_maskm): Ditto.
28262         (avx512f_vternlog<mode>_mask): Ditto.
28263         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28264         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28265         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28266         (avx512f_<code>v8div16qi2_mask): Ditto.
28267         (avx512f_<code>v8div16qi2_mask_store): Ditto.
28268         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28269         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28270         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28271         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28272         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28273         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28274         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28275         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28276         (avx512cd_maskb_vec_dupv8di): Ditto.
28277         (avx512cd_maskw_vec_dupv16si): Ditto.
28278         (avx512f_vpermi2var<mode>3_maskz): Ditto.
28279         (avx512f_vpermi2var<mode>3_mask): Ditto.
28280         (avx512f_vpermi2var<mode>3_mask): Ditto.
28281         (avx512f_vpermt2var<mode>3_maskz): Ditto.
28282         (*avx512f_gathersi<mode>): Ditto.
28283         (*avx512f_gathersi<mode>_2): Ditto.
28284         (*avx512f_gatherdi<mode>): Ditto.
28285         (*avx512f_gatherdi<mode>_2): Ditto.
28286         (*avx512f_scattersi<mode>): Ditto.
28287         (*avx512f_scatterdi<mode>): Ditto.
28288         (avx512f_compress<mode>_mask): Ditto.
28289         (avx512f_compressstore<mode>_mask): Ditto.
28290         (avx512f_expand<mode>_mask): Ditto.
28291         * config/i386/subst.md (mask): Change k to Yk.
28292         (mask_scalar_merge): Ditto.
28293         (sd): Ditto.
28294
28295 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
28296
28297         * doc/extend.texi (Vector Extensions): Document ?: in C++.
28298
28299 2014-01-31  Richard Biener  <rguenther@suse.de>
28300
28301         PR middle-end/59990
28302         * builtins.c (fold_builtin_memory_op): Make sure to not
28303         use a floating-point mode or a boolean or enumeral type for
28304         the copy operation.
28305
28306 2014-01-30  DJ Delorie  <dj@redhat.com>
28307
28308         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28309         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28310         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28311         whenever main() has an epilogue.
28312
28313 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28314
28315         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28316         unused variable "field".
28317         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28318         (vsx_mergeh_<mode>): Likewise.
28319         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28320         (altivec_vmrghh): Likewise.
28321         (altivec_vmrghw): Likewise.
28322         (altivec_vmrglb): Likewise.
28323         (altivec_vmrglh): Likewise.
28324         (altivec_vmrglw): Likewise.
28325         (altivec_vspltb): Add missing uses.
28326         (altivec_vsplth): Likewise.
28327         (altivec_vspltw): Likewise.
28328         (altivec_vspltsf): Likewise.
28329
28330 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
28331
28332         PR target/59923
28333         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28334         frame related instructions.
28335
28336 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
28337
28338         PR rtl-optimization/59959
28339         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28340         any reload of register whose subreg is invalid.
28341
28342 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
28343
28344         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28345         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28346         Add missing return type - void.
28347
28348 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28349
28350         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28351         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28352         remove element index adjustment for endian (now handled in vsx.md
28353         and altivec.md).
28354         (altivec_expand_vec_perm_const): Use
28355         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28356         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28357         (vsx_xxspltw_<mode>): Adjust element index for little endian.
28358         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28359         define_expand and a new define_insn *altivec_vspltb_internal;
28360         adjust for -maltivec=be on a little endian target.
28361         (altivec_vspltb_direct): New.
28362         (altivec_vsplth): Divide into a define_expand and a new
28363         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28364         little endian target.
28365         (altivec_vsplth_direct): New.
28366         (altivec_vspltw): Divide into a define_expand and a new
28367         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28368         little endian target.
28369         (altivec_vspltw_direct): New.
28370         (altivec_vspltsf): Divide into a define_expand and a new
28371         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28372         a little endian target.
28373
28374 2014-01-30  Richard Biener  <rguenther@suse.de>
28375
28376         PR tree-optimization/59993
28377         * tree-ssa-forwprop.c (associate_pointerplus): Check we
28378         can propagate form the earlier stmt and avoid the transform
28379         when the intermediate result is needed.
28380
28381 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
28382
28383         * README.Portability: Fix typo.
28384
28385 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
28386
28387         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28388         comparison_operator with ordered_comparison_operator.
28389
28390 2014-01-30  Nick Clifton  <nickc@redhat.com>
28391
28392         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28393         Rename to mn10300_store_multiple_regs.
28394         * config/mn10300/mn10300.c: Likewise.
28395         * config/mn10300/mn10300.md (store_movm): Fix typo: call
28396         store_multiple_regs.
28397         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28398         Call mn10300_store_multiple_regs.
28399
28400 2014-01-30  Nick Clifton  <nickc@redhat.com>
28401             DJ Delorie  <dj@redhat.com>
28402
28403         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28404         %fp 2 to keep registers after it properly word-aligned.
28405         (rl78_alloc_physical_registers_umul): Handle the case where both
28406         input operands are the same.
28407
28408 2014-01-30  Richard Biener  <rguenther@suse.de>
28409
28410         PR tree-optimization/59903
28411         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28412         check properly.
28413
28414 2014-01-30  Jason Merrill  <jason@redhat.com>
28415
28416         PR c++/59633
28417         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28418
28419         PR c++/59645
28420         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28421
28422 2014-01-30  Richard Biener  <rguenther@suse.de>
28423
28424         PR tree-optimization/59951
28425         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28426
28427 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
28428
28429         PR target/59784
28430         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28431         SFmode to DFmode case.
28432
28433 2014-01-29  DJ Delorie  <dj@redhat.com>
28434
28435         * config/msp430/msp430.opt (-minrt): New.
28436         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28437         if -minrt given.
28438         (ENDFILE_SPEC): Likewise.
28439
28440 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
28441
28442         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28443         (estimate_function_body_sizes): Use it.
28444
28445 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
28446
28447         PR c++/58561
28448         * dwarf2out.c (is_cxx_auto): New.
28449         (is_base_type): Use it.
28450         (gen_type_die_with_usage): Likewise.
28451
28452 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28453
28454         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
28455         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28456         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28457         -maltivec=be with LE targets.
28458         (vsx_mergeh_<mode>): Likewise.
28459         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28460         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28461         (altivec_vmrghb): Replace with define_expand and new
28462         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28463         (altivec_vmrghb_direct): New define_insn.
28464         (altivec_vmrghh): Replace with define_expand and new
28465         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28466         (altivec_vmrghh_direct): New define_insn.
28467         (altivec_vmrghw): Replace with define_expand and new
28468         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28469         (altivec_vmrghw_direct): New define_insn.
28470         (*altivec_vmrghsf): Adjust for endianness.
28471         (altivec_vmrglb): Replace with define_expand and new
28472         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28473         (altivec_vmrglb_direct): New define_insn.
28474         (altivec_vmrglh): Replace with define_expand and new
28475         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28476         (altivec_vmrglh_direct): New define_insn.
28477         (altivec_vmrglw): Replace with define_expand and new
28478         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28479         (altivec_vmrglw_direct): New define_insn.
28480         (*altivec_vmrglsf): Adjust for endianness.
28481         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28482         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28483         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28484         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28485         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28486         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28487         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28488         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28489
28490 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28491
28492         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28493         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28494         whitespace.
28495
28496 2014-01-29  Richard Biener  <rguenther@suse.de>
28497
28498         PR tree-optimization/58742
28499         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28500         associate_pointerplus_align.
28501         (associate_pointerplus_diff): New function.
28502         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
28503         and associate_pointerplus_diff.
28504
28505 2014-01-29  Richard Biener  <rguenther@suse.de>
28506
28507         * lto-streamer.h (LTO_major_version): Bump to 3.
28508         (LTO_minor_version): Reset to 0.
28509
28510 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
28511
28512         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28513         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28514         (arm_file_start): Generate correct asm header for armv7ve.
28515         * config/arm/bpabi.h: Add multilib support for armv7ve.
28516         * config/arm/driver-arm.c: Change the architectures of cortex-a7
28517         and cortex-a15 to armv7ve.
28518         * config/arm/t-aprofile: Add multilib support for armv7ve.
28519         * doc/invoke.texi: Document -march=armv7ve.
28520
28521 2014-01-29  Richard Biener  <rguenther@suse.de>
28522
28523         PR tree-optimization/58742
28524         * tree-ssa-forwprop.c (associate_plusminus): Return true
28525         if we changed sth, defer EH cleanup to ...
28526         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
28527         (simplify_mult): New function.
28528
28529 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
28530
28531         PR middle-end/59917
28532         PR tree-optimization/59920
28533         * tree.c (build_common_builtin_nodes): Remove
28534         __builtin_setjmp_dispatcher initialization.
28535         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28536         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28537         instead of gsi_after_labels + manually skipping debug stmts.
28538         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28539         ignore bbs with IFN_ABNORMAL_DISPATCHER.
28540         * tree-inline.c (copy_edges_for_bb): Remove
28541         can_make_abnormal_goto argument, instead add abnormal_goto_dest
28542         argument.  Ignore computed_goto_p stmts.  Don't call
28543         make_abnormal_goto_edges.  If a call might need abnormal edges
28544         for non-local gotos, see if it already has an edge to
28545         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28546         with true argument, don't do anything then, otherwise add
28547         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28548         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28549         caller.
28550         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28551         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28552         (lower_stmt): Don't set data->calls_builtin_setjmp.
28553         (lower_builtin_setjmp): Adjust comment.
28554         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28555         * tree-cfg.c (found_computed_goto): Remove.
28556         (factor_computed_gotos): Remove.
28557         (make_goto_expr_edges): Return bool, true for computed gotos.
28558         Don't call make_abnormal_goto_edges.
28559         (build_gimple_cfg): Don't set found_computed_goto, don't call
28560         factor_computed_gotos.
28561         (computed_goto_p): No longer static.
28562         (make_blocks): Don't set found_computed_goto.
28563         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28564         (make_edges): If make_goto_expr_edges returns true, push bb
28565         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28566         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28567         vector.  Record mapping between bbs and OpenMP regions if there
28568         are any, adjust make_gimple_omp_edges caller.  Call
28569         handle_abnormal_edges.
28570         (make_abnormal_goto_edges): Remove.
28571         * tree-cfg.h (make_abnormal_goto_edges): Remove.
28572         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28573         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28574         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28575         * internal-fn.def (ABNORMAL_DISPATCHER): New.
28576         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28577         filling *region also set *region_idx to (*region)->entry->index.
28578
28579         PR other/58712
28580         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28581         For REGs set ORIGINAL_REGNO.
28582
28583 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
28584
28585         * doc/md.texi: Mention that a target shouldn't implement
28586         vec_widen_(s|u)mul_even/odd pair if it is less efficient
28587         than hi/lo pair.
28588
28589 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
28590
28591         PR tree-optimization/59594
28592         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28593         a copy of the datarefs vector rather than the vector itself.
28594
28595 2014-01-28  Jason Merrill  <jason@redhat.com>
28596
28597         PR c++/53756
28598         * dwarf2out.c (auto_die): New static.
28599         (gen_type_die_with_usage): Handle C++1y 'auto'.
28600         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28601         on definition.
28602
28603 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
28604
28605         PR target/59672
28606         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28607         (SPEC_X32): Likewise.
28608         (SPEC_64): Likewise.
28609         * config/i386/i386.c (ix86_option_override_internal): Turn off
28610         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28611         for TARGET_16BIT.
28612         (x86_file_start): Output .code16gcc for TARGET_16BIT.
28613         * config/i386/i386.h (TARGET_16BIT): New macro.
28614         (TARGET_16BIT_P): Likewise.
28615         * config/i386/i386.opt: Add m16.
28616         * doc/invoke.texi: Document -m16.
28617
28618 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
28619
28620         PR preprocessor/59935
28621         * input.c (location_get_source_line): Bail out on when line number
28622         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28623
28624 2014-01-28  Richard Biener  <rguenther@suse.de>
28625
28626         PR tree-optimization/58742
28627         * tree-ssa-forwprop.c (associate_plusminus): Handle
28628         pointer subtraction of the form (T)(P + A) - (T)P.
28629
28630 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28631
28632         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28633         at const_int_cost.
28634
28635 2014-01-28  Richard Biener  <rguenther@suse.de>
28636
28637         Revert
28638         2014-01-28  Richard Biener  <rguenther@suse.de>
28639
28640         PR rtl-optimization/45364
28641         PR rtl-optimization/59890
28642         * var-tracking.c (local_get_addr_clear_given_value): Handle
28643         already cleared slot.
28644         (val_reset): Handle not allocated local_get_addr_cache.
28645         (vt_find_locations): Use post-order on the inverted CFG.
28646
28647 2014-01-28  Richard Biener  <rguenther@suse.de>
28648
28649         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28650
28651 2014-01-28  Richard Biener  <rguenther@suse.de>
28652
28653         PR rtl-optimization/45364
28654         PR rtl-optimization/59890
28655         * var-tracking.c (local_get_addr_clear_given_value): Handle
28656         already cleared slot.
28657         (val_reset): Handle not allocated local_get_addr_cache.
28658         (vt_find_locations): Use post-order on the inverted CFG.
28659
28660 2014-01-28  Alan Modra  <amodra@gmail.com>
28661
28662         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28663         * configure.ac <recursive call for build != host>: Define
28664         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28665         and LD_FOR_BUILD too.
28666         * configure: Regenerate.
28667
28668 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
28669
28670         * config/i386/i386.c (get_builtin_code_for_version): Separate
28671         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28672         Broadwell from Haswell.
28673
28674 2014-01-27  Steve Ellcey  <sellcey@mips.com>
28675
28676         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28677         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28678         * config/mips/mips.c (mips_option_override): Change setting
28679         of TARGET_DSP.
28680         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28681         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28682         Change from Mask to Var.
28683
28684 2014-01-27  Jeff Law  <law@redhat.com>
28685
28686         * ipa-inline.c (inline_small_functions): Fix typo.
28687
28688 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
28689
28690         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28691         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28692         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28693         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28694         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28695         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28696         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28697         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28698         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28699         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28700         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28701         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28702         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28703         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28704         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28705         (_mm512_storeu_epi64): Ditto.
28706         (_mm512_cmpge_epi32_mask): Ditto.
28707         (_mm512_cmpge_epu32_mask): Ditto.
28708         (_mm512_cmpge_epi64_mask): Ditto.
28709         (_mm512_cmpge_epu64_mask): Ditto.
28710         (_mm512_cmple_epi32_mask): Ditto.
28711         (_mm512_cmple_epu32_mask): Ditto.
28712         (_mm512_cmple_epi64_mask): Ditto.
28713         (_mm512_cmple_epu64_mask): Ditto.
28714         (_mm512_cmplt_epi32_mask): Ditto.
28715         (_mm512_cmplt_epu32_mask): Ditto.
28716         (_mm512_cmplt_epi64_mask): Ditto.
28717         (_mm512_cmplt_epu64_mask): Ditto.
28718         (_mm512_cmpneq_epi32_mask): Ditto.
28719         (_mm512_cmpneq_epu32_mask): Ditto.
28720         (_mm512_cmpneq_epi64_mask): Ditto.
28721         (_mm512_cmpneq_epu64_mask): Ditto.
28722         (_mm512_expand_pd): Ditto.
28723         (_mm512_expand_ps): Ditto.
28724         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28725         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28726         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28727         * config/i386/i386.c (ix86_builtins): Add
28728         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28729         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28730         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28731         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28732         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28733         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28734         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28735         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28736         IX86_BUILTIN_PMOVUSQW512_MEM.
28737         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28738         __builtin_ia32_pmovsqd512mem_mask,
28739         __builtin_ia32_pmovqd512mem_mask,
28740         __builtin_ia32_pmovusqw512mem_mask,
28741         __builtin_ia32_pmovsqw512mem_mask,
28742         __builtin_ia32_pmovqw512mem_mask,
28743         __builtin_ia32_pmovusdw512mem_mask,
28744         __builtin_ia32_pmovsdw512mem_mask,
28745         __builtin_ia32_pmovdw512mem_mask,
28746         __builtin_ia32_pmovqb512mem_mask,
28747         __builtin_ia32_pmovusqb512mem_mask,
28748         __builtin_ia32_pmovsqb512mem_mask,
28749         __builtin_ia32_pmovusdb512mem_mask,
28750         __builtin_ia32_pmovsdb512mem_mask,
28751         __builtin_ia32_pmovdb512mem_mask.
28752         (bdesc_args): Add __builtin_ia32_expanddf512,
28753         __builtin_ia32_expandsf512.
28754         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28755         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28756         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28757         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28758         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28759         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28760         (avx512f_<code>v8div16qi2_mask_store): This.
28761         (avx512f_expand<mode>): New.
28762
28763 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
28764
28765         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28766         New.
28767         (_mm512_mask_prefetch_i64gather_pd): Ditto.
28768         (_mm512_prefetch_i32scatter_pd): Ditto.
28769         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28770         (_mm512_prefetch_i64scatter_pd): Ditto.
28771         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28772         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28773         (_mm512_mask_prefetch_i64gather_ps): Ditto.
28774         (_mm512_prefetch_i32scatter_ps): Ditto.
28775         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28776         (_mm512_prefetch_i64scatter_ps): Ditto.
28777         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28778         * config/i386/i386-builtin-types.def: Define
28779         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28780         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28781         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28782         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28783         IX86_BUILTIN_SCATTERPFQPD.
28784         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28785         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28786         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28787         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28788         __builtin_ia32_scatterpfqps.
28789         (ix86_expand_builtin): Expand new built-ins.
28790         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28791         fix memory access data type.
28792         (*avx512pf_gatherpf<mode>_mask): Ditto.
28793         (*avx512pf_gatherpf<mode>): Ditto.
28794         (avx512pf_scatterpf<mode>): Ditto.
28795         (*avx512pf_scatterpf<mode>_mask): Ditto.
28796         (*avx512pf_scatterpf<mode>): Ditto.
28797         (GATHER_SCATTER_SF_MEM_MODE): New.
28798         (avx512pf_gatherpf<mode>df): Ditto.
28799         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28800         (*avx512pf_scatterpf<mode>df): Ditto.
28801
28802 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
28803
28804         PR bootstrap/59934
28805         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28806         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28807         reached.
28808
28809 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
28810
28811         * common/config/arm/arm-common.c
28812         (arm_rewrite_mcpu): Handle multiple names.
28813         * config/arm/arm.h
28814         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28815
28816 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
28817
28818         * gimple-builder.h (create_gimple_tmp): Delete.
28819
28820 2014-01-27  Christian Bruel  <christian.bruel@st.com>
28821
28822         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28823         words comparisons.
28824
28825 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
28826
28827         * config/pa/pa.md (call): Generate indirect long calls to non-local
28828         functions when outputing 32-bit code.
28829         (call_value): Likewise except for special call to buggy powf function.
28830
28831         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28832         portable runtime and PIC indirect calls.
28833         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28834         and PIC call sequences.  Use ldo instead of blr to set return register
28835         in PIC call sequence.
28836
28837 2014-01-25  Walter Lee  <walt@tilera.com>
28838
28839         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28840         avoid clobbering a live register.
28841
28842 2014-01-25  Walter Lee  <walt@tilera.com>
28843
28844         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28845         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28846         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28847         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28848
28849 2014-01-25  Walter Lee  <walt@tilera.com>
28850
28851         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28852         arguments on even registers.
28853         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28854         STACK_BOUNDARY.
28855         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28856         (BIGGEST_ALIGNMENT): Ditto.
28857         (BIGGEST_FIELD_ALIGNMENT): Ditto.
28858
28859 2014-01-25  Walter Lee  <walt@tilera.com>
28860
28861         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28862         insns before bundling.
28863         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28864
28865 2014-01-25  Walter Lee  <walt@tilera.com>
28866
28867         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28868         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28869         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28870
28871 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
28872
28873         * config/mips/constraints.md (kl): Delete.
28874         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28875         define expands, using...
28876         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28877         instructions for MIPS16.
28878         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28879         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28880
28881 2014-01-25  Walter Lee  <walt@tilera.com>
28882
28883         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28884         (clzdi2): Ditto.
28885         (ffsdi2): Ditto.
28886
28887 2014-01-25  Walter Lee  <walt@tilera.com>
28888
28889         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28890         (TARGET_EXPAND_TO_RTL_HOOK): Define.
28891
28892 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
28893
28894         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28895         Handle XOR.
28896
28897 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
28898
28899         * print-rtl.c (in_call_function_usage): New var.
28900         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28901         EXPR_LIST mode as mode and not as reg note name.
28902
28903         PR middle-end/59561
28904         * cfgloopmanip.c (copy_loop_info): If
28905         loop->warned_aggressive_loop_optimizations, make sure
28906         the flag is set in target loop too.
28907
28908 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
28909
28910         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28911         flag_cilkplus.
28912         * builtins.def: Likewise.
28913         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28914         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28915         * ira.c (ira_setup_eliminable_regset): Likewise.
28916         * omp-low.c (gate_expand_omp): Likewise.
28917         (execute_lower_omp): Likewise.
28918         (diagnose_sb_0): Likewise.
28919         (gate_diagnose_omp_blocks): Likewise.
28920         (simd_clone_clauses_extract): Likewise.
28921         (gate): Likewise.
28922
28923 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28924
28925         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28926         correction for little endian...
28927         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28928         here.
28929
28930 2014-01-24  Jeff Law  <law@redhat.com>
28931
28932         PR tree-optimization/59919
28933         * tree-vrp.c (find_assert_locations_1): Do not register asserts
28934         for non-returning calls.
28935
28936 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
28937
28938         * common/config/aarch64/aarch64-common.c
28939         (aarch64_rewrite_mcpu): Handle multiple names.
28940         * config/aarch64/aarch64.h
28941         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28942
28943 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
28944
28945         * input.c (add_file_to_cache_tab): Handle the case where fopen
28946         returns NULL.
28947
28948 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
28949
28950         PR target/59929
28951         * config/i386/i386.md (pushsf splitter): Get stack adjustment
28952         from push operand if code of push isn't PRE_DEC.
28953
28954 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
28955
28956         PR target/59909
28957         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28958         -mquad-memory-atomic.  Update -mquad-memory documentation to say
28959         it is only used for non-atomic loads/stores.
28960
28961         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28962         -mquad-memory or -mquad-memory-atomic switches.
28963
28964         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28965         -mquad-memory-atomic to ISA 2.07 support.
28966
28967         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28968         to separate support of normal quad word memory operations (ldq, stq)
28969         from the atomic quad word memory operations.
28970
28971         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28972         support to separate non-atomic quad word operations from atomic
28973         quad word operations.  Disable non-atomic quad word operations in
28974         little endian mode so that we don't have to swap words after the
28975         load and before the store.
28976         (quad_load_store_p): Add comment about atomic quad word support.
28977         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28978         options printed with -mdebug=reg.
28979
28980         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28981         -mquad-memory-atomic as the test for whether we have quad word
28982         atomic instructions.
28983         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28984         or -mp8-vector are used, allow byte/half-word atomic operations.
28985
28986         * config/rs6000/sync.md (load_lockedti): Insure that the address
28987         is a proper indexed or indirect address for the lqarx instruction.
28988         On little endian systems, swap the hi/lo registers after the lqarx
28989         instruction.
28990         (load_lockedpti): Use indexed_or_indirect_operand predicate to
28991         insure the address is valid for the lqarx instruction.
28992         (store_conditionalti): Insure that the address is a proper indexed
28993         or indirect address for the stqcrx. instruction.  On little endian
28994         systems, swap the hi/lo registers before doing the stqcrx.
28995         instruction.
28996         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28997         insure the address is valid for the stqcrx. instruction.
28998
28999         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29000         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29001         type of quad memory support is available.
29002
29003 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
29004
29005         PR regression/59915
29006         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29007         there is a danger of looping.
29008
29009 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
29010
29011         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29012         force flag_ira_loop_pressure if set via command line.
29013
29014 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29015
29016         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29017         (ashr_simd): New builtin handling DI mode.
29018         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29019         (aarch64_sshr_simddi): New match pattern.
29020         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29021         (vshrd_n_s64): Likewise.
29022         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29023
29024 2014-01-23  Nick Clifton  <nickc@redhat.com>
29025
29026         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29027         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29028         favour of mcu specific scripts.
29029         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29030         430x multilibs.
29031
29032 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
29033             Alex Velenko  <Alex.Velenko@arm.com>
29034
29035         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29036         (vaddv_s16): Likewise.
29037         (vaddv_s32): Likewise.
29038         (vaddv_u8): Likewise.
29039         (vaddv_u16): Likewise.
29040         (vaddv_u32): Likewise.
29041         (vaddvq_s8): Likewise.
29042         (vaddvq_s16): Likewise.
29043         (vaddvq_s32): Likewise.
29044         (vaddvq_s64): Likewise.
29045         (vaddvq_u8): Likewise.
29046         (vaddvq_u16): Likewise.
29047         (vaddvq_u32): Likewise.
29048         (vaddvq_u64): Likewise.
29049         (vaddv_f32): Likewise.
29050         (vaddvq_f32): Likewise.
29051         (vaddvq_f64): Likewise.
29052         (vmaxv_f32): Likewise.
29053         (vmaxv_s8): Likewise.
29054         (vmaxv_s16): Likewise.
29055         (vmaxv_s32): Likewise.
29056         (vmaxv_u8): Likewise.
29057         (vmaxv_u16): Likewise.
29058         (vmaxv_u32): Likewise.
29059         (vmaxvq_f32): Likewise.
29060         (vmaxvq_f64): Likewise.
29061         (vmaxvq_s8): Likewise.
29062         (vmaxvq_s16): Likewise.
29063         (vmaxvq_s32): Likewise.
29064         (vmaxvq_u8): Likewise.
29065         (vmaxvq_u16): Likewise.
29066         (vmaxvq_u32): Likewise.
29067         (vmaxnmv_f32): Likewise.
29068         (vmaxnmvq_f32): Likewise.
29069         (vmaxnmvq_f64): Likewise.
29070         (vminv_f32): Likewise.
29071         (vminv_s8): Likewise.
29072         (vminv_s16): Likewise.
29073         (vminv_s32): Likewise.
29074         (vminv_u8): Likewise.
29075         (vminv_u16): Likewise.
29076         (vminv_u32): Likewise.
29077         (vminvq_f32): Likewise.
29078         (vminvq_f64): Likewise.
29079         (vminvq_s8): Likewise.
29080         (vminvq_s16): Likewise.
29081         (vminvq_s32): Likewise.
29082         (vminvq_u8): Likewise.
29083         (vminvq_u16): Likewise.
29084         (vminvq_u32): Likewise.
29085         (vminnmv_f32): Likewise.
29086         (vminnmvq_f32): Likewise.
29087         (vminnmvq_f64): Likewise.
29088
29089 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
29090
29091         * config/aarch64/aarch64-simd.md
29092         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29093         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29094         (*aarch64_mul3_elt<mode>): Likewise.
29095         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29096         (*aarch64_mul3_elt_to_64v2df): Likewise.
29097         (*aarch64_mla_elt<mode>): Likewise.
29098         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29099         (*aarch64_mls_elt<mode>): Likewise.
29100         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29101         (*aarch64_fma4_elt<mode>): Likewise.
29102         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29103         (*aarch64_fma4_elt_to_64v2df): Likewise.
29104         (*aarch64_fnma4_elt<mode>): Likewise.
29105         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29106         (*aarch64_fnma4_elt_to_64v2df): Likewise.
29107         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29108         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29109         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29110         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29111         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29112         (aarch64_sqdmull_lane<mode>_internal): Likewise.
29113         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29114
29115 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29116
29117         * config/aarch64/aarch64-simd.md
29118         (aarch64_be_checked_get_lane<mode>): New define_expand.
29119         * config/aarch64/aarch64-simd-builtins.def
29120         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29121         New builtin definition.
29122         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29123         Use new safe be builtin.
29124
29125 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29126
29127         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29128         New define_insn.
29129         (aarch64_be_st1<mode>): Likewise.
29130         (aarch_ld1<VALL:mode>): Define_expand modified.
29131         (aarch_st1<VALL:mode>): Likewise.
29132         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29133         (UNSPEC_ST1): Likewise.
29134
29135 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
29136
29137         * config/microblaze/microblaze.md: Add trap insn and attribute
29138
29139 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
29140
29141         PR preprocessor/58580
29142         * input.h (location_get_source_line): Take an additional line_size
29143         parameter.
29144         (void diagnostics_file_cache_fini): Declare new function.
29145         * input.c (struct fcache): New type.
29146         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29147         New static constants.
29148         (diagnostic_file_cache_init, total_lines_num)
29149         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29150         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29151         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29152         (get_next_line, read_next_line, goto_next_line, read_line_num):
29153         New static function definitions.
29154         (diagnostic_file_cache_fini): New function.
29155         (location_get_source_line): Take an additional output line_len
29156         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
29157         read_line_num.
29158         * diagnostic.c (diagnostic_finish): Call
29159         diagnostic_file_cache_fini.
29160         (adjust_line): Take an additional input parameter for the length
29161         of the line, rather than calculating it with strlen.
29162         (diagnostic_show_locus): Adjust the use of
29163         location_get_source_line and adjust_line with respect to their new
29164         signature.  While displaying a line now, do not stop at the first
29165         null byte.  Rather, display the zero byte as a space and keep
29166         going until we reach the size of the line.
29167         * Makefile.in: Add vec.o to OBJS-libcommon
29168
29169 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
29170             Ilya Tocar  <ilya.tocar@intel.com>
29171
29172         * config/i386/avx512fintrin.h (_mm512_kmov): New.
29173         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29174         (__builtin_ia32_kmov16): Ditto.
29175         * config/i386/i386.md (UNSPEC_KMOV): New.
29176         (kmovw): Ditto.
29177
29178 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
29179
29180         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29181         (_mm512_storeu_si512): Ditto.
29182
29183 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
29184
29185         PR target/52125
29186         * rtl.h (get_referenced_operands): Declare.
29187         * recog.c (get_referenced_operands): New function.
29188         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29189         operands have been referenced when recording LO_SUM references.
29190
29191 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
29192
29193         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29194
29195 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
29196
29197         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29198         Enable for generic and recent AMD targets.
29199
29200 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
29201
29202         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29203         ARG_SIZE note when adjustment was eliminated.
29204
29205 2014-01-22  Jeff Law  <law@redhat.com>
29206
29207         PR tree-optimization/59597
29208         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29209         in file.  Accept new argument REGISTERING and use it to modify
29210         dump output appropriately.
29211         (register_jump_thread): Corresponding changes.
29212         (mark_threaded_blocks): Reinstate code to cancel unprofitable
29213         thread paths involving joiner blocks.  Add code to dump cancelled
29214         jump threading paths.
29215
29216 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
29217
29218         PR rtl-optimization/59477
29219         * lra-constraints.c (inherit_in_ebb): Process call for living hard
29220         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
29221
29222 2014-01-22  Tom Tromey  <tromey@redhat.com>
29223
29224         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29225         PARAMS.
29226         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29227
29228 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29229
29230         PR rtl-optimization/59896
29231         * lra-constraints.c (process_alt_operands): Check unused note for
29232         matched operands of insn with no output reloads.
29233
29234 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
29235
29236         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29237         (mips_move_from_gpr_cost): Likewise.
29238
29239 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29240
29241         PR rtl-optimization/59858
29242         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29243         ira_class_hard_regs_num.
29244         (process_alt_operands): Increase reject for dying matched operand.
29245
29246 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
29247
29248         PR target/59003
29249         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29250         smaller than size, perform several stores or loads and stores
29251         at dst + count - size to store or copy all of size bytes, rather
29252         than just last modesize bytes.
29253
29254 2014-01-20  DJ Delorie  <dj@redhat.com>
29255
29256         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29257         that CLOBBERs are REGs before propogating their values.
29258
29259 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
29260
29261         PR middle-end/59789
29262         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29263         (cgraph_inline_failed_type): New function.
29264         * cgraph.h (DEFCIFCODE): Add type.
29265         (cgraph_inline_failed_type_t): New enum.
29266         (cgraph_inline_failed_type): New prototype.
29267         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29268         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29269         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29270         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29271         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29272         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29273         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29274         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29275         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29276         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29277         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29278         OPTIMIZATION_MISMATCH.
29279         * tree-inline.c (expand_call_inline): Emit errors during
29280         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29281
29282 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
29283
29284         PR target/59685
29285         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29286         mode attribute in insn output.
29287
29288 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
29289
29290         * output.h (output_constant): Delete.
29291         * varasm.c (output_constant): Make private.
29292
29293 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
29294
29295         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29296
29297 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
29298
29299         PR middle-end/59860
29300         * tree.h (fold_builtin_strcat): New prototype.
29301         * builtins.c (fold_builtin_strcat): No longer static.  Add len
29302         argument, if non-NULL, don't call c_strlen.  Optimize
29303         directly into __builtin_memcpy instead of __builtin_strcpy.
29304         (fold_builtin_2): Adjust fold_builtin_strcat caller.
29305         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29306
29307 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
29308
29309         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29310         for SImode_address_operand operands, having only a REG argument.
29311
29312 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29313
29314         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29315         loader name using mbig-endian.
29316         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29317
29318 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
29319
29320         * doc/invoke.texi (-march): Clarify documentation for AArch64.
29321         (-mtune): Likewise.
29322         (-mcpu): Likewise.
29323
29324 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
29325
29326         * config/aarch64/aarch64-protos.h
29327         (aarch64_cannot_change_mode_class_ptr): Declare.
29328         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29329         aarch64_cannot_change_mode_class_ptr): New.
29330         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29331         backend hook aarch64_cannot_change_mode_class.
29332
29333 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
29334
29335         * common/config/aarch64/aarch64-common.c
29336         (aarch64_handle_option): Don't handle any option order logic here.
29337         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29338         selected_cpu, warn on architecture version mismatch.
29339         (aarch64_override_options): Fix parsing order for option strings.
29340
29341 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29342             Iain Sandoe  <iain@codesourcery.com>
29343
29344         PR bootstrap/59496
29345         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29346         warning.  Amend comment to reflect current functionality.
29347
29348 2014-01-20  Richard Biener  <rguenther@suse.de>
29349
29350         PR middle-end/59860
29351         * builtins.c (fold_builtin_strcat): Remove case better handled
29352         by tree-ssa-strlen.c.
29353
29354 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
29355
29356         * config/aarch64/aarch64.opt
29357         (mcpu, march, mtune): Make case-insensitive.
29358
29359 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
29360
29361         PR target/59880
29362         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29363         if operands[1] is a REG or ZERO_EXTEND of a REG.
29364
29365 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
29366
29367         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29368
29369 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
29370
29371         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29372         long non-pic millicode calls.
29373
29374 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29375
29376         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29377
29378 2014-01-19  Kito Cheng  <kito@0xlab.org>
29379
29380         * builtins.c (expand_movstr): Check movstr expand done or fail.
29381
29382 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
29383             H.J. Lu  <hongjiu.lu@intel.com>
29384
29385         PR target/59379
29386         * config/i386/i386.md (*lea<mode>): Zero-extend return register
29387         to DImode for zero-extended addresses.
29388
29389 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
29390
29391         PR rtl-optimization/57763
29392         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29393         on the new indirect jump_insn and increment LABEL_NUSES (label).
29394
29395 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
29396
29397         PR bootstrap/59580
29398         PR bootstrap/59583
29399         * config.gcc (x86_archs): New variable.
29400         (x86_64_archs): Likewise.
29401         (x86_cpus): Likewise.
29402         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29403         --with-arch/--with-cpu= options.
29404         Support --with-arch=/--with-cpu={nehalem,westmere,
29405         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29406
29407 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
29408
29409         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29410         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
29411
29412 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
29413
29414         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29415
29416 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
29417
29418         PR target/58944
29419         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29420         clear cpp_get_options (parse_in)->warn_unused_macros for
29421         ix86_target_macros_internal with cpp_define.
29422
29423 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
29424
29425         * jump.c (delete_related_insns): Keep (use (insn))s.
29426         * reorg.c (redundant_insn): Check for barriers too.
29427
29428 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29429
29430         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29431
29432 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
29433
29434         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29435         call to $$dyncall when TARGET_LONG_CALLS is true.
29436
29437 2014-01-17  Jeff Law  <law@redhat.com>
29438
29439         * ree.c (combine_set_extension): Temporarily disable test for
29440         changing number of hard registers.
29441
29442 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
29443
29444         PR middle-end/58125
29445         * ipa-inline-analysis.c (inline_free_summary):
29446         Do not free summary of aliases.
29447
29448 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
29449
29450         PR middle-end/59706
29451         * gimplify.c (gimplify_expr): Use create_tmp_var
29452         instead of create_tmp_var_raw.  If cond doesn't have
29453         integral type, don't add the IFN_ANNOTATE builtin at all.
29454
29455 2014-01-17  Martin Jambor  <mjambor@suse.cz>
29456
29457         PR ipa/59736
29458         * ipa-cp.c (prev_edge_clone): New variable.
29459         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29460         Also resize prev_edge_clone vector.
29461         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29462         (ipcp_edge_removal_hook): New function.
29463         (ipcp_driver): Register ipcp_edge_removal_hook.
29464
29465 2014-01-17  Andrew Pinski  <apinski@cavium.com>
29466             Steve Ellcey  <sellcey@mips.com>
29467
29468         PR target/59462
29469         * config/mips/mips.c (mips_print_operand): Check operand mode instead
29470         of operator mode.
29471
29472 2014-01-17  Jeff Law  <law@redhat.com>
29473
29474         PR middle-end/57904
29475         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29476         so that pass_ccp runs first.
29477
29478 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29479
29480         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29481         (ix86_adjust_cost): Use !TARGET_XXX.
29482         (do_reorder_for_imul): Likewise.
29483         (swap_top_of_ready_list): Likewise.
29484         (ix86_sched_reorder): Likewise.
29485
29486 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29487
29488         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29489         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
29490         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
29491         (intel_memset): New.  Duplicate slm_memset.
29492         (intel_cost): New.  Duplicate slm_cost.
29493         (m_INTEL): New macro.
29494         (processor_target_table): Add "intel".
29495         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29496         with PROCESSOR_INTEL for "intel".
29497         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
29498         PROCESSOR_SILVERMONT.
29499         (ix86_issue_rate): Likewise.
29500         (ix86_adjust_cost): Likewise.
29501         (ia32_multipass_dfa_lookahead): Likewise.
29502         (swap_top_of_ready_list): Likewise.
29503         (ix86_sched_reorder): Likewise.
29504         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29505         instead of TARGET_OPT_AGU.
29506         * config/i386/i386.h (TARGET_INTEL): New.
29507         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29508         (processor_type): Add PROCESSOR_INTEL.
29509         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29510         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29511
29512 2014-01-17  Marek Polacek  <polacek@redhat.com>
29513
29514         PR c/58346
29515         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29516         size is zero.
29517
29518 2014-01-17  Richard Biener  <rguenther@suse.de>
29519
29520         PR tree-optimization/46590
29521         * opts.c (default_options_table): Add entries for
29522         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29523         all enabled at -O1 but not for -Og.
29524         * common.opt (fbranch-count-reg): Remove Init(1).
29525         (fmove-loop-invariants): Likewise.
29526         (ftree-pta): Likewise.
29527
29528 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
29529
29530         * config/i386/i386.c (ix86_data_alignment): For compatibility with
29531         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29532         decls to at least the GCC 4.8 used alignments.
29533
29534         PR fortran/59440
29535         * tree-nested.c (convert_nonlocal_reference_stmt,
29536         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29537         of GIMPLE_BIND stmts, adjust associated decls.
29538
29539 2014-01-17  Richard Biener  <rguenther@suse.de>
29540
29541         PR tree-optimization/46590
29542         * vec.h (vec<>::bseach): New member function implementing
29543         binary search according to C89 bsearch.
29544         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29545         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29546         bitmap pointer again.  Make accesses_in_loop a flat array.
29547         (mem_ref_obstack): New global.
29548         (outermost_indep_loop): Adjust for mem_ref->stored changes.
29549         (mark_ref_stored): Likewise.
29550         (ref_indep_loop_p_2): Likewise.
29551         (set_ref_stored_in_loop): New helper function.
29552         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29553         (memref_free): Adjust.
29554         (record_mem_ref_loc): Simplify.
29555         (gather_mem_refs_stmt): Adjust.
29556         (sort_locs_in_loop_postorder_cmp): New function.
29557         (analyze_memory_references): Sort accesses_in_loop after
29558         loop postorder number.
29559         (find_ref_loc_in_loop_cmp): New function.
29560         (for_all_locs_in_loop): Find relevant cluster of locs in
29561         accesses_in_loop and iterate without recursion.
29562         (execute_sm): Avoid uninit warning.
29563         (struct ref_always_accessed): Simplify.
29564         (ref_always_accessed::operator ()): Likewise.
29565         (ref_always_accessed_p): Likewise.
29566         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29567         loop postorder numbers here.
29568         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29569         numbers.
29570
29571 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
29572
29573         PR c++/57945
29574         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29575         on decls for which assemble_alias has been called.
29576
29577 2014-01-17  Nick Clifton  <nickc@redhat.com>
29578
29579         * config/msp430/msp430.opt: (mcpu): New option.
29580         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29581         (msp430_option_override): Parse target_cpu.  If the MCU name
29582         matches a generic string, clear target_mcu.
29583         (msp430_attr): Allow numeric interrupt values up to 63.
29584         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29585         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29586         option.
29587         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29588         Add mcpu matches.
29589         * config/msp430/msp430.md (popm): Use %J rather than %I.
29590         (addsi3): Use msp430_nonimmediate_operand for operand 2.
29591         (addhi_cy_i): Use immediate_operand for operand 2.
29592         * doc/invoke.texi: Document -mcpu option.
29593
29594 2014-01-17  Richard Biener  <rguenther@suse.de>
29595
29596         PR rtl-optimization/38518
29597         * df.h (df_analyze_loop): Declare.
29598         * df-core.c: Include cfgloop.h.
29599         (df_analyze_1): Split out main part of df_analyze.
29600         (df_analyze): Adjust.
29601         (loop_inverted_post_order_compute): New function.
29602         (loop_post_order_compute): Likewise.
29603         (df_analyze_loop): New function avoiding whole-function
29604         postorder computes.
29605         * loop-invariant.c (find_defs): Use df_analyze_loop.
29606         (find_invariants): Adjust.
29607         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29608
29609 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
29610
29611         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29612         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29613
29614 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
29615
29616         * ipa-ref.c (ipa_remove_stmt_references): Fix references
29617         traversal when removing references.
29618
29619 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
29620
29621         PR ipa/59775
29622         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29623
29624 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
29625
29626         PR middle-end/56791
29627         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29628         pushing a reload for an autoinc when we had previously reloaded an
29629         inner part of the address.
29630
29631 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
29632
29633         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29634         field.
29635         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29636         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29637         when not giving up or versioning for alias only because of
29638         loop->safelen.
29639         (vect_analyze_data_ref_dependences): Set to true.
29640         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29641         is a GIMPLE_PHI.
29642         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29643         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29644         to the condition.
29645
29646         PR middle-end/58344
29647         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29648
29649         PR target/59839
29650         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29651         operand 0 predicate for gathers, use a new pseudo as subtarget.
29652
29653 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
29654
29655         PR middle-end/59609
29656         * lra-constraints.c (process_alt_operands): Add printing debug info.
29657         Check absence of input/output reloads for matched operands too.
29658
29659 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
29660
29661         PR rtl-optimization/59835
29662         * ira.c (ira_init_register_move_cost): Increase cost for
29663         impossible modes.
29664
29665 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
29666
29667         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29668
29669 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
29670
29671         PR target/59780
29672         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29673         non-register objects.  Use gen_(high/low)part more consistently.
29674         Fix assertions.
29675
29676 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
29677
29678         PR target/59844
29679         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29680         endian support, remove tests for WORDS_BIG_ENDIAN.
29681         (p8_mfvsrd_3_<mode>): Likewise.
29682         (reload_gpr_from_vsx<mode>): Likewise.
29683         (reload_gpr_from_vsxsf): Likewise.
29684         (p8_mfvsrd_4_disf): Likewise.
29685
29686 2014-01-16  Richard Biener  <rguenther@suse.de>
29687
29688         PR rtl-optimization/46590
29689         * lcm.c (compute_antinout_edge): Use postorder iteration.
29690         (compute_laterin): Use inverted postorder iteration.
29691
29692 2014-01-16  Nick Clifton  <nickc@redhat.com>
29693
29694         PR middle-end/28865
29695         * varasm.c (output_constant): Return the number of bytes actually
29696         emitted.
29697         (output_constructor_array_range): Update the field size with the
29698         number of bytes emitted by output_constant.
29699         (output_constructor_regular_field): Likewise.  Also do not
29700         complain if the total number of bytes emitted is now greater
29701         than the expected fieldpos.
29702         * output.h (output_constant): Update prototype and descriptive comment.
29703
29704 2014-01-16  Marek Polacek  <polacek@redhat.com>
29705
29706         PR middle-end/59827
29707         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29708         it is error_mark_node.
29709
29710 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
29711
29712         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29713         VALID_AVX256_REG_OR_OI_MODE.
29714
29715 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
29716
29717         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29718         current procedure should be profiled.
29719
29720 2014-01-15  Andrew Pinski  <apinski@cavium.com>
29721
29722         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29723         of moving from/to the STACK_REG register class.
29724
29725 2014-01-15  Richard Henderson  <rth@redhat.com>
29726
29727         PR debug/54694
29728         * reginfo.c (global_regs_decl): Globalize.
29729         * rtl.h (global_regs_decl): Declare.
29730         * ira.c (do_reload): Diagnose frame_pointer_needed and it
29731         reserved via global_regs.
29732
29733 2014-01-15  Teresa Johnson  <tejohnson@google.com>
29734
29735         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29736
29737 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
29738
29739         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29740         and vmulosh rather than call gen_vec_widen_smult_*.
29741         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29742         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29743         (vec_widen_smult_even_v16qi): Likewise.
29744         (vec_widen_umult_even_v8hi): Likewise.
29745         (vec_widen_smult_even_v8hi): Likewise.
29746         (vec_widen_umult_odd_v16qi): Likewise.
29747         (vec_widen_smult_odd_v16qi): Likewise.
29748         (vec_widen_umult_odd_v8hi): Likewise.
29749         (vec_widen_smult_odd_v8hi): Likewise.
29750         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29751         vmuloub rather than call gen_vec_widen_umult_*.
29752         (vec_widen_umult_lo_v16qi): Likewise.
29753         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29754         vmulosb rather than call gen_vec_widen_smult_*.
29755         (vec_widen_smult_lo_v16qi): Likewise.
29756         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29757         rather than call gen_vec_widen_umult_*.
29758         (vec_widen_umult_lo_v8hi): Likewise.
29759         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29760         rather than call gen_vec_widen_smult_*.
29761         (vec_widen_smult_lo_v8hi): Likewise.
29762
29763 2014-01-15  Jeff Law  <law@redhat.com>
29764
29765         PR tree-optimization/59747
29766         * ree.c (find_and_remove_re): Properly handle case where a second
29767         eliminated extension requires widening a copy created for elimination
29768         of a prior extension.
29769         (combine_set_extension): Ensure that the number of hard regs needed
29770         for a destination register does not change when we widen it.
29771
29772 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29773
29774         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29775         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29776         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29777         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29778         (avr-*-rtems*): Likewise.
29779         (bfin*-rtems*): Likewise.
29780         (moxie-*-rtems*): Likewise.
29781         (h8300-*-rtems*): Likewise.
29782         (i[34567]86-*-rtems*): Likewise.
29783         (lm32-*-rtems*): Likewise.
29784         (m32r-*-rtems*): Likewise.
29785         (m68k-*-rtems*): Likewise.
29786         (microblaze*-*-rtems*): Likewise.
29787         (mips*-*-rtems*): Likewise.
29788         (powerpc-*-rtems*): Likewise.
29789         (sh-*-rtems*): Likewise.
29790         (sparc-*-rtems*): Likewise.
29791         (sparc64-*-rtems*): Likewise.
29792         (v850-*-rtems*): Likewise.
29793         (m32c-*-rtems*): Likewise.
29794
29795 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
29796
29797         PR rtl-optimization/59511
29798         * ira.c (ira_init_register_move_cost): Use memory costs for some
29799         cases of register move cost calculations.
29800         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29801         instead of BB frequency.
29802         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29803         * lra-assigns.c (find_hard_regno_for): Ditto.
29804
29805 2014-01-15  Richard Biener  <rguenther@suse.de>
29806
29807         PR tree-optimization/59822
29808         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29809         (vectorizable_load): Use it to hoist defs of uses of invariant
29810         loads out of the loop.
29811
29812 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
29813             Kugan Vivekanandarajah  <kuganv@linaro.org>
29814
29815         PR target/59695
29816         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29817         truncation.
29818
29819 2014-01-15  Richard Biener  <rguenther@suse.de>
29820
29821         PR rtl-optimization/59802
29822         * lcm.c (compute_available): Use inverted postorder to seed
29823         the initial worklist.
29824
29825 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29826
29827         PR target/59803
29828         * config/s390/s390.c (s390_preferred_reload_class): Don't return
29829         ADDR_REGS for invalid symrefs in non-PIC code.
29830
29831 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
29832
29833         PR other/58712
29834         * builtins.c (determine_block_size): Initialize *probable_max_size
29835         even if len_rtx is CONST_INT.
29836
29837 2014-01-14  Andrew Pinski  <apinski@cavium.com>
29838
29839         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29840         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29841         (cortexa53_tunings): Likewise.
29842         (aarch64_sched_issue_rate): New function.
29843         (TARGET_SCHED_ISSUE_RATE): Define.
29844
29845 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
29846
29847         * ira-costs.c (find_costs_and_classes): Add missed
29848         ira_init_register_move_cost_if_necessary.
29849
29850 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
29851
29852         PR target/59787
29853         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29854
29855 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
29856
29857         PR target/59794
29858         * config/i386/i386.c (type_natural_mode): Add a bool parameter
29859         to indicate if type is used for function return value.  Warn ABI
29860         change if the vector mode isn't available for function return value.
29861         (ix86_function_arg_advance): Pass false to type_natural_mode.
29862         (ix86_function_arg): Likewise.
29863         (ix86_gimplify_va_arg): Likewise.
29864         (function_arg_32): Don't warn ABI change.
29865         (ix86_function_value): Pass true to type_natural_mode.
29866         (ix86_return_in_memory): Likewise.
29867         (ix86_struct_value_rtx): Removed.
29868         (TARGET_STRUCT_VALUE_RTX): Likewise.
29869
29870 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29871
29872         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29873         converting a conditional jump into a conditional return.
29874
29875 2014-01-14  Richard Biener  <rguenther@suse.de>
29876
29877         PR tree-optimization/58921
29878         PR tree-optimization/59006
29879         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29880         hoisting invariant stmts.
29881         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29882         invariant loads on the preheader edge if possible.
29883
29884 2014-01-14  Joey Ye  <joey.ye@arm.com>
29885
29886         * doc/plugin.texi (Building GCC plugins): Update to C++.
29887
29888 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
29889
29890         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29891         (_mm_rcp28_round_ss): Ditto.
29892         (_mm_rsqrt28_round_sd): Ditto.
29893         (_mm_rsqrt28_round_ss): Ditto.
29894         (_mm_rcp28_sd): Ditto.
29895         (_mm_rcp28_ss): Ditto.
29896         (_mm_rsqrt28_sd): Ditto.
29897         (_mm_rsqrt28_ss): Ditto.
29898         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29899         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29900         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29901         (IX86_BUILTIN_RCP28SD): Ditto.
29902         (IX86_BUILTIN_RCP28SS): Ditto.
29903         (IX86_BUILTIN_RSQRT28SD): Ditto.
29904         (IX86_BUILTIN_RSQRT28SS): Ditto.
29905         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29906         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29907         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29908         (ix86_expand_special_args_builtin): Expand new FTYPE.
29909         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29910         (srcp14<mode>): Make insn unary.
29911         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29912         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29913         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29914         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29915         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29916         Fix rounding: make it SAE only.
29917         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29918         Ditto.
29919         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29920         Ditto.
29921         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29922         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29923         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29924         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29925         (round_saeonly_mask_scalar_operand4): Ditto.
29926         (round_saeonly_mask_scalar_op3): Ditto.
29927         (round_saeonly_mask_scalar_op4): Ditto.
29928
29929 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29930
29931         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29932         Implement -maltivec=be for vec_insert and vec_extract.
29933
29934 2014-01-10  DJ Delorie  <dj@redhat.com>
29935
29936         * config/msp430/msp430.md (call_internal): Don't allow memory
29937         references with SP as the base register.
29938         (call_value_internal): Likewise.
29939         * config/msp430/constraints.md (Yc): New.  For memory references
29940         that don't use SP as a base register.
29941
29942         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29943         "an integer without a # prefix"
29944         * config/msp430/msp430.md (epilogue_helper): Use it.
29945
29946 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
29947
29948         PR target/59617
29949         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29950         AVX512F gather builtins.
29951         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29952         on gather decls with INTEGER_TYPE masktype.
29953         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29954         directly into the builtin rather than hoisting it before loop.
29955
29956         PR tree-optimization/59387
29957         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29958         (scev_const_prop): If folded_casts and type has undefined overflow,
29959         use force_gimple_operand instead of force_gimple_operand_gsi and
29960         for each added stmt if it is assign with
29961         arith_code_with_undefined_signed_overflow, call
29962         rewrite_to_defined_overflow.
29963         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29964         gimple-fold.h instead.
29965         (arith_code_with_undefined_signed_overflow,
29966         rewrite_to_defined_overflow): Moved to ...
29967         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29968         rewrite_to_defined_overflow): ... here.  No longer static.
29969         Include gimplify-me.h.
29970         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29971         rewrite_to_defined_overflow): New prototypes.
29972
29973 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29974
29975         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29976
29977 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
29978
29979         * builtins.c (get_object_alignment_2): Minor tweak.
29980         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29981
29982 2014-01-13  Christian Bruel  <christian.bruel@st.com>
29983
29984         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29985         optimized non constant lengths.
29986
29987 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
29988
29989         PR libgomp/59194
29990         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29991         load as __atomic_load_N if possible.
29992
29993 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
29994
29995         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29996         target parameter.
29997         (rs6000_expand_builtin): Adjust call.
29998
29999 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30000
30001         PR target/58115
30002         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30003         * config/rs6000/rs6000.c: Include target-globals.h.
30004         (rs6000_set_current_function): Instead of doing target_reinit
30005         unconditionally, use save_target_globals_default_opts and
30006         restore_target_globals.
30007
30008         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30009         FPSCR.
30010         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30011         (rs6000_expand_builtin): Handle mffs and mtfsf.
30012         (rs6000_init_builtins): Define mffs and mtfsf.
30013         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30014         (rs6000_mffs): New pattern.
30015         (rs6000_mtfsf): New pattern.
30016
30017 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
30018
30019         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30020         Start narrowing with START.  Apply candidate-use pair
30021         and check overall cost in narrowing.
30022         (iv_ca_prune): Pass new argument.
30023
30024 2014-01-10  Jeff Law  <law@redhat.com>
30025
30026         PR middle-end/59743
30027         * ree.c (combine_reaching_defs): Ensure the defining statement
30028         occurs before the extension when optimizing extensions with
30029         different source and destination hard registers.
30030
30031 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
30032
30033         PR ipa/58585
30034         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30035         vtables into the type inheritance graph.
30036
30037 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30038
30039         PR rtl-optimization/59754
30040         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30041         modes in the REGNO != REGNO case.
30042
30043 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30044
30045         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30046
30047 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30048
30049         PR tree-optimization/59745
30050         * tree-predcom.c (tree_predictive_commoning_loop): Call
30051         free_affine_expand_cache if giving up because components is NULL.
30052
30053         * target-globals.c (save_target_globals): Allocate < 4KB structs using
30054         GC in payload of target_globals struct instead of allocating them on
30055         the heap and the larger structs separately using GC.
30056         * target-globals.h (struct target_globals): Make regs, hard_regs,
30057         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30058         of GTY((skip)) and change type to void *.
30059         (reset_target_globals): Cast loads from those fields to corresponding
30060         types.
30061
30062 2014-01-10  Steve Ellcey  <sellcey@mips.com>
30063
30064         PR plugins/59335
30065         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30066         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30067         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30068
30069 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
30070
30071         PR target/59744
30072         * aarch64-modes.def (CC_Zmode): New flags mode.
30073         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30074         represents an equality.
30075         (aarch64_get_condition_code): Handle CC_Zmode.
30076         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30077
30078 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30079
30080         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30081         extraction in good case.
30082
30083 2014-01-10  Richard Biener  <rguenther@suse.de>
30084
30085         PR tree-optimization/59374
30086         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30087         checking after SLP discovery.  Mark stmts not participating
30088         in any SLP instance properly.
30089
30090 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30091
30092         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30093         when handling a SET rtx.
30094
30095 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30096
30097         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30098         (cortex-a57): Likewise.
30099         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30100
30101 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30102
30103         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30104         non-iwmmxt builtins.
30105
30106 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
30107
30108         PR ipa/58252
30109         PR ipa/59226
30110         * ipa-devirt.c record_target_from_binfo): Take as argument
30111         stack of binfos and lookup matching one for virtual inheritance.
30112         (possible_polymorphic_call_targets_1): Update.
30113
30114 2014-01-10  Huacai Chen  <chenhc@lemote.com>
30115
30116         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30117         kernel strings for Loongson-2E/2F/3A.
30118
30119 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30120
30121         PR middle-end/59670
30122         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30123         is_gimple_call before calling gimple_call_internal_p.
30124
30125 2014-01-09  Steve Ellcey  <sellcey@mips.com>
30126
30127         * Makefile.in (TREE_FLOW_H): Remove.
30128         (TREE_SSA_H): Add file names from tree-flow.h.
30129         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30130         * tree.h: Remove tree-flow.h reference.
30131         * hash-table.h: Remove tree-flow.h reference.
30132         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30133         reference with tree-ssa-loop.h.
30134
30135 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30136
30137         * doc/invoke.texi: Add -maltivec={be,le} options, and document
30138         default element-order behavior for -maltivec.
30139         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30140         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30141         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30142         when targeting big endian, at least for now.
30143         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30144
30145 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
30146
30147         PR middle-end/47735
30148         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30149         var satisfies use_register_for_decl, just take into account type
30150         alignment, rather than decl alignment.
30151
30152         PR tree-optimization/59622
30153         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
30154         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30155         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30156         Don't devirtualize for inplace at all.  For targets.length () == 1,
30157         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30158
30159 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
30160
30161         * config/i386/i386.md (cpu): Remove the unused btver1.
30162
30163 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
30164
30165         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30166
30167 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
30168
30169         PR target/58115
30170         * tree-core.h (struct target_globals): New forward declaration.
30171         (struct tree_target_option): Add globals field.
30172         * tree.h (TREE_TARGET_GLOBALS): Define.
30173         (prepare_target_option_nodes_for_pch): New prototype.
30174         * target-globals.h (struct target_globals): Define even if
30175         !SWITCHABLE_TARGET.
30176         * tree.c (prepare_target_option_node_for_pch,
30177         prepare_target_option_nodes_for_pch): New functions.
30178         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30179         * config/i386/i386.c: Include target-globals.h.
30180         (ix86_set_current_function): Instead of doing target_reinit
30181         unconditionally, use save_target_globals_default_opts and
30182         restore_target_globals.
30183
30184 2014-01-09  Richard Biener  <rguenther@suse.de>
30185
30186         PR tree-optimization/59715
30187         * tree-cfg.h (split_critical_edges): Declare.
30188         * tree-cfg.c (split_critical_edges): Export.
30189         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30190
30191 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30192
30193         * cfgexpand.c (expand_stack_vars): Optionally disable
30194         asan stack protection.
30195         (expand_used_vars): Likewise.
30196         (partition_stack_vars): Likewise.
30197         * asan.c (asan_emit_stack_protection): Optionally disable
30198         after return stack usage.
30199         (instrument_derefs): Optionally disable memory access instrumentation.
30200         (instrument_builtin_call): Likewise.
30201         (instrument_strlen_call): Likewise.
30202         (asan_protect_global): Optionally disable global variables protection.
30203         * doc/invoke.texi: Added doc for new options.
30204         * params.def: Added new options.
30205         * params.h: Likewise.
30206
30207 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
30208
30209         PR rtl-optimization/59724
30210         * ifcvt.c (cond_exec_process_if_block): Don't call
30211         flow_find_head_matching_sequence with 0 longest_match.
30212         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30213         non-active insns if !stop_after.
30214         (try_head_merge_bb): Revert 2014-01-07 changes.
30215
30216 2014-01-08  Jeff Law  <law@redhat.com>
30217
30218         * ree.c (get_sub_rtx): New function, extracted from...
30219         (merge_def_and_ext): Here.
30220         (combine_reaching_defs): Use get_sub_rtx.
30221
30222 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
30223
30224         * cgraph.h (varpool_variable_node): Do not choke on null node.
30225
30226 2014-01-08  Catherine Moore  <clm@codesourcery.com>
30227
30228         * config/mips/mips.md (simple_return): Attempt to use JRC
30229         for microMIPS.
30230         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30231
30232 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
30233
30234         PR rtl-optimization/59137
30235         * reorg.c (steal_delay_list_from_target): Call update_block for
30236         elided insns.
30237         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30238
30239 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30240
30241         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30242         two duplicate entries.
30243
30244 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
30245
30246         Revert:
30247         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
30248
30249         * config/mips/mips.c (mips_truncated_op_cost): New function.
30250         (mips_rtx_costs): Adjust test for BADDU.
30251         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30252
30253         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
30254
30255         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30256         (*baddu_si): ...this new pattern.
30257
30258 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
30259
30260         PR ipa/59722
30261         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30262
30263 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30264
30265         PR middle-end/57748
30266         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30267         inner_reference_p.
30268         (expand_expr, expand_normal): Adjust.
30269         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30270         inner_reference_p. Use inner_reference_p to expand inner references.
30271         (store_expr): Adjust.
30272         * cfgexpand.c (expand_call_stmt): Adjust.
30273
30274 2014-01-08  Rong Xu  <xur@google.com>
30275
30276         * gcov-io.c (gcov_var): Move from gcov-io.h.
30277         (gcov_position): Ditto.
30278         (gcov_is_error): Ditto.
30279         (gcov_rewrite): Ditto.
30280         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30281         only part to libgcc/libgcov.h.
30282
30283 2014-01-08  Marek Polacek  <polacek@redhat.com>
30284
30285         PR middle-end/59669
30286         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30287
30288 2014-01-08  Marek Polacek  <polacek@redhat.com>
30289
30290         PR sanitizer/59667
30291         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30292
30293 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
30294
30295         PR rtl-optimization/59649
30296         * stor-layout.c (get_mode_bounds): For BImode return
30297         0 and STORE_FLAG_VALUE.
30298
30299 2014-01-08  Richard Biener  <rguenther@suse.de>
30300
30301         PR middle-end/59630
30302         * gimple.h (is_gimple_builtin_call): Remove.
30303         (gimple_builtin_call_types_compatible_p): New.
30304         (gimple_call_builtin_p): New overload.
30305         * gimple.c (is_gimple_builtin_call): Remove.
30306         (validate_call): Rename to ...
30307         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
30308         check return types.
30309         (validate_type): New static function.
30310         (gimple_call_builtin_p): New overload and adjust.
30311         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30312         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
30313         (gimple_fold_stmt_to_constant_1): Likewise.
30314         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30315
30316 2014-01-08  Richard Biener  <rguenther@suse.de>
30317
30318         PR middle-end/59471
30319         * gimplify.c (gimplify_expr): Gimplify register-register type
30320         VIEW_CONVERT_EXPRs to separate stmts.
30321
30322 2014-01-07  Jeff Law  <law@redhat.com>
30323
30324         PR middle-end/53623
30325         * ree.c (combine_set_extension): Handle case where source
30326         and destination registers in an extension insn are different.
30327         (combine_reaching_defs): Allow source and destination registers
30328         in extension to be different under limited circumstances.
30329         (add_removable_extension): Remove restriction that the
30330         source and destination registers in the extension are the same.
30331         (find_and_remove_re): Emit a copy from the extension's
30332         destination to its source after the defining insn if
30333         the source and destination registers are different.
30334
30335         PR middle-end/59285
30336         * ifcvt.c (merge_if_block): If we are merging a block with more than
30337         one successor with a block with no successors, remove any BARRIER
30338         after the second block.
30339
30340 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
30341
30342         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30343
30344 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
30345
30346         PR target/59652
30347         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30348         for 14-bit register offsets when INT14_OK_STRICT is false.
30349
30350 2014-01-07  Roland Stigge  <stigge@antcom.de>
30351             Michael Meissner  <meissner@linux.vnet.ibm.com>
30352
30353         PR 57386/target
30354         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30355         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
30356
30357 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
30358
30359         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30360         -mcpu.
30361
30362 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
30363
30364         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30365         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30366         rtx is const0_rtx or not.
30367
30368 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
30369
30370         PR target/58115
30371         * target-globals.c (save_target_globals): Remove this_fn_optab
30372         handling.
30373         * toplev.c: Include optabs.h.
30374         (target_reinit): Temporarily restore the global options if another
30375         set of options are in force.
30376
30377 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
30378
30379         PR rtl-optimization/58668
30380         * cfgcleanup.c (flow_find_cross_jump): Don't count
30381         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
30382         to determine what is counted.
30383         (flow_find_head_matching_sequence): Use active_insn_p to determine
30384         what is counted.
30385         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30386         counting change.
30387         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30388         determine what is counted.
30389
30390         PR tree-optimization/59643
30391         * tree-predcom.c (split_data_refs_to_components): If one dr is
30392         read and one write, determine_offset fails and the write isn't
30393         in the bad component, just put the read into the bad component.
30394
30395 2014-01-07  Mike Stump  <mikestump@comcast.net>
30396             Jakub Jelinek  <jakub@redhat.com>
30397
30398         PR pch/59436
30399         * tree-core.h (struct tree_optimization_option): Change optabs
30400         type from unsigned char * to void *.
30401         * optabs.c (init_tree_optimization_optabs): Adjust
30402         TREE_OPTIMIZATION_OPTABS initialization.
30403
30404 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
30405
30406         PR target/59644
30407         * config/i386/i386.h (struct machine_function): Add
30408         no_drap_save_restore field.
30409         * config/i386/i386.c (ix86_save_reg): Use
30410         !cfun->machine->no_drap_save_restore instead of
30411         crtl->stack_realign_needed.
30412         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30413         this function clears frame_pointer_needed.  Set
30414         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30415         and DRAP reg is needed.
30416
30417 2014-01-06  Marek Polacek  <polacek@redhat.com>
30418
30419         PR c/57773
30420         * doc/implement-c.texi: Mention that other integer types are
30421         permitted as bit-field types in strictly conforming mode.
30422
30423 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
30424
30425         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30426         is newly allocated.
30427
30428 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
30429
30430         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30431
30432 2014-01-06  Martin Jambor  <mjambor@suse.cz>
30433
30434         PR ipa/59008
30435         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30436         to int.
30437         * ipa-prop.c (ipa_print_node_params): Fix indentation.
30438
30439 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
30440
30441         PR debug/59350
30442         PR debug/59510
30443         * var-tracking.c (add_stores): Preserve the value of the source even if
30444         we don't record the store.
30445
30446 2014-01-06  Terry Guo  <terry.guo@arm.com>
30447
30448         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30449
30450 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
30451
30452         PR bootstrap/59541
30453         * config/darwin.c (darwin_function_section): Adjust return values to
30454         correspond to optimisation changes made in r206070.
30455
30456 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
30457
30458         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30459         from prefetch_block tune setting.
30460         (nocona_cost): Correct size of prefetch block to 64.
30461
30462 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30463
30464         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30465         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30466         used to save the static chain register in the computation of the offset
30467         from which the FP registers need to be restored.
30468
30469 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
30470
30471         PR tree-optimization/59519
30472         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30473         ICE if get_current_def (current_new_name) is already non-NULL, as long
30474         as it is a phi result of some other phi in *new_exit_bb that has
30475         the same argument.
30476
30477         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30478         or vmovdqu* for misaligned_operand.
30479         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30480         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30481         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30482         aligned_mem for AVX512F masked aligned load and store builtins and for
30483         non-temporal moves.
30484
30485 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
30486
30487         PR tree-optimization/59651
30488         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30489         Address range for negative step should be added by TYPE_SIZE_UNIT.
30490
30491 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
30492
30493         * config/m68k/m68k.c (handle_move_double): Handle pushes with
30494         overlapping registers also for registers other than the stack pointer.
30495
30496 2014-01-03  Marek Polacek  <polacek@redhat.com>
30497
30498         PR other/59661
30499         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30500         __builtin_FILE.
30501
30502 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
30503
30504         PR target/59625
30505         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30506         asm goto as jump.
30507
30508         * config/i386/i386.md (MODE_SIZE): New mode attribute.
30509         (push splitter): Use <P:MODE_SIZE> instead of
30510         GET_MODE_SIZE (<P:MODE>mode).
30511         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30512         (mov -1, reg peephole2): Likewise.
30513         * config/i386/sse.md (*mov<mode>_internal,
30514         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30515         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30516         *<code><mode>3, *andnot<mode>3<mask_name>,
30517         <mask_codefor><code><mode>3<mask_name>): Likewise.
30518         * config/i386/subst.md (mask_mode512bit_condition,
30519         sd_mask_mode512bit_condition): Likewise.
30520
30521 2014-01-02  Xinliang David Li  <davidxl@google.com>
30522
30523         PR tree-optimization/59303
30524         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30525         (dump_predicates): Better output format.
30526         (pred_equal_p): New function.
30527         (is_neq_relop_p): Ditto.
30528         (is_neq_zero_form_p): Ditto.
30529         (pred_expr_equal_p): Ditto.
30530         (pred_neg_p): Ditto.
30531         (simplify_pred): Ditto.
30532         (simplify_preds_2): Ditto.
30533         (simplify_preds_3): Ditto.
30534         (simplify_preds_4): Ditto.
30535         (simplify_preds): Ditto.
30536         (push_pred): Ditto.
30537         (push_to_worklist): Ditto.
30538         (get_pred_info_from_cmp): Ditto.
30539         (is_degenerated_phi): Ditto.
30540         (normalize_one_pred_1): Ditto.
30541         (normalize_one_pred): Ditto.
30542         (normalize_one_pred_chain): Ditto.
30543         (normalize_preds): Ditto.
30544         (normalize_cond_1): Remove function.
30545         (normalize_cond): Ditto.
30546         (is_gcond_subset_of): Ditto.
30547         (is_subset_of_any): Ditto.
30548         (is_or_set_subset_of): Ditto.
30549         (is_and_set_subset_of): Ditto.
30550         (is_norm_cond_subset_of): Ditto.
30551         (pred_chain_length_cmp): Ditto.
30552         (convert_control_dep_chain_into_preds): Type change.
30553         (find_predicates): Ditto.
30554         (find_def_preds): Ditto.
30555         (destroy_predicates_vecs): Ditto.
30556         (find_matching_predicates_in_rest_chains): Ditto.
30557         (use_pred_not_overlap_with_undef_path_pred): Ditto.
30558         (is_pred_expr_subset): Ditto.
30559         (is_pred_chain_subset_of): Ditto.
30560         (is_included_in): Ditto.
30561         (is_superset_of): Ditto.
30562
30563 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30564
30565         Update copyright years.
30566
30567 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30568
30569         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30570         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30571         config/arc/arc.md, config/arc/arc.opt,
30572         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30573         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30574         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30575         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30576         config/linux-protos.h, config/linux.c, config/winnt-c.c,
30577         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30578         vtable-verify.c, vtable-verify.h: Use the standard form for the
30579         copyright notice.
30580
30581 2014-01-02  Tobias Burnus  <burnus@net-b.de>
30582
30583         * gcc.c (process_command): Update copyright notice dates.
30584         * gcov-dump.c: Ditto.
30585         * gcov.c: Ditto.
30586         * doc/cpp.texi: Bump @copying's copyright year.
30587         * doc/cppinternals.texi: Ditto.
30588         * doc/gcc.texi: Ditto.
30589         * doc/gccint.texi: Ditto.
30590         * doc/gcov.texi: Ditto.
30591         * doc/install.texi: Ditto.
30592         * doc/invoke.texi: Ditto.
30593
30594 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30595
30596         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30597
30598 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
30599
30600         * config/i386/sse.md (*mov<mode>_internal): Guard
30601         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30602
30603         PR rtl-optimization/59647
30604         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30605         new_rtx into UNSIGNED_FLOAT rtxes.
30606 \f
30607 Copyright (C) 2014 Free Software Foundation, Inc.
30608
30609 Copying and distribution of this file, with or without modification,
30610 are permitted in any medium without royalty provided the copyright
30611 notice and this notice are preserved.