AVX-512. Extend max/min insn patterns.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3             Anna Tikhonova  <anna.tikhonova@intel.com>
4             Ilya Tocar  <ilya.tocar@intel.com>
5             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6             Ilya Verbin  <ilya.verbin@intel.com>
7             Kirill Yukhin  <kirill.yukhin@intel.com>
8             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9
10         * config/i386/sse.md (VI128_256): Delete.
11         (define_mode_iterator VI124_256): New.
12         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
13         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
14         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
15         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
16         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
17         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
18         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
19         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
20         iterator.
21         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
22         in presence of AVX-512.
23
24 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
26             Anna Tikhonova  <anna.tikhonova@intel.com>
27             Ilya Tocar  <ilya.tocar@intel.com>
28             Andrey Turetskiy  <andrey.turetskiy@intel.com>
29             Ilya Verbin  <ilya.verbin@intel.com>
30             Kirill Yukhin  <kirill.yukhin@intel.com>
31             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
32
33         * config/i386/sse.md
34         (define_expand "<avx512>_gathersi<mode>"): Rename from
35         "avx512f_gathersi<mode>".
36         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
37         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
38         (define_expand "<avx512>_gatherdi<mode>"): Rename from
39         "avx512f_gatherdi<mode>".
40         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
41         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
42         wide versions.
43         (define_expand "<avx512>_scattersi<mode>"): Rename from
44         "avx512f_scattersi<mode>".
45         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
46         (define_expand "<avx512>_scatterdi<mode>"): Rename from
47         "avx512f_scatterdi<mode>".
48         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
49
50 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
51
52         * ira.h (ira_finish_once): Delete.
53         * ira-int.h (target_ira_int::~target_ira_int): Declare.
54         (target_ira_int::free_ira_costs): Likewise.
55         (target_ira_int::free_register_move_costs): Likewise.
56         (ira_finish_costs_once): Delete.
57         * ira.c (free_register_move_costs): Replace with...
58         (target_ira_int::free_register_move_costs): ...this new function.
59         (target_ira_int::~target_ira_int): Define.
60         (ira_init): Call free_register_move_costs as a member function rather
61         than a global function.
62         (ira_finish_once): Delete.
63         * ira-costs.c (free_ira_costs): Replace with...
64         (target_ira_int::free_ira_costs): ...this new function.
65         (ira_init_costs): Call free_ira_costs as a member function rather
66         than a global function.
67         (ira_finish_costs_once): Delete.
68         * target-globals.c (target_globals::~target_globals): Call the
69         target_ira_int destructor.
70         * toplev.c: Include lra.h.
71         (finalize): Call lra_finish_once rather than ira_finish_once.
72
73 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
74
75         * common.opt (flto-odr-type-merging): New flag.
76         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
77         (types_same_for_odr): Likewise.
78         (odr_subtypes_equivalent_p): Likewise.
79         (add_type_duplicate): Do not walk type variants.
80         (register_odr_type): New function.
81         * ipa-utils.h (register_odr_type): Declare.
82         (odr_type_p): New function.
83         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
84         TYPE_DECLs
85         * doc/invoke.texi (-flto-odr-type-merging): Document.
86         * tree.c (need_assembler_name_p): Compute ODR names when asked
87         for it.
88         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
89
90 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
91
92         PR target/63228
93         * config/i386/i386.c (ix86_option_override_internal): Also turn
94         off OPTION_MASK_ABI_X32 for -m16.
95
96 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
97
98         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
99         GPR instead of P.
100
101 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
102
103         PR target/58757
104         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
105         Directly forward to __*_DENORM_MIN__.
106
107 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
108
109         * rtl.h (LABEL_REF_LABEL): New macro.
110
111         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
112         of XEXP (, 0), where we know that we have a LABEL_REF.
113         * cfgbuild.c (make_edges): Likewise.
114         (purge_dead_tablejump_edges): Likewise.
115         * cfgexpand.c (convert_debug_memory_address): Likewise.
116         * cfgrtl.c (patch_jump_insn): Likewise.
117         * combine.c (distribute_notes): Likewise.
118         * cse.c (hash_rtx_cb): Likewise.
119         (exp_equiv_p): Likewise.
120         (fold_rtx): Likewise.
121         (check_for_label_ref): Likewise.
122         * cselib.c (rtx_equal_for_cselib_1): Likewise.
123         (cselib_hash_rtx): Likewise.
124         * emit-rtl.c (mark_label_nuses): Likewise.
125         * explow.c (convert_memory_address_addr_space): Likewise.
126         * final.c (output_asm_label): Likewise.
127         (output_addr_const): Likewise.
128         * gcse.c (add_label_notes): Likewise.
129         * genconfig.c (walk_insn_part): Likewise.
130         * genrecog.c (validate_pattern): Likewise.
131         * ifcvt.c (cond_exec_get_condition): Likewise.
132         (noce_emit_store_flag): Likewise.
133         (noce_get_alt_condition): Likewise.
134         (noce_get_condition): Likewise.
135         * jump.c (maybe_propagate_label_ref): Likewise.
136         (mark_jump_label_1): Likewise.
137         (redirect_exp_1): Likewise.
138         (rtx_renumbered_equal_p): Likewise.
139         * lra-constraints.c (operands_match_p): Likewise.
140         * reload.c (operands_match_p): Likewise.
141         (find_reloads): Likewise.
142         * reload1.c (set_label_offsets): Likewise.
143         * reorg.c (get_branch_condition): Likewise.
144         * rtl.c (rtx_equal_p_cb): Likewise.
145         (rtx_equal_p): Likewise.
146         * rtlanal.c (reg_mentioned_p): Likewise.
147         (rtx_referenced_p): Likewise.
148         (get_condition): Likewise.
149         * sched-vis.c (print_value): Likewise.
150         * varasm.c (const_hash_1): Likewise.
151         (compare_constant): Likewise.
152         (const_rtx_hash_1): Likewise.
153         (output_constant_pool_1): Likewise.
154
155 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
156
157         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
158         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
159         instead of minus.
160         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
161         cr6_test_for_lt_reverse): Ditto.
162
163 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
164
165         PR c++/61489
166         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
167
168 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
169
170         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
171         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
172         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
173         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
174         Delete.
175
176         (aarch64_fold_builtin): Remove all reinterpret cases.
177
178         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
179
180         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
181
182         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
183         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
184         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
185         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
186         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
187         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
188         aarch64_reinterpretv2df<mode>): Delete.
189
190         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
191
192         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
193         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
194         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
195         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
196         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
197         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
198         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
199         vreinterpret_u32_f64): Use cast.
200
201         * config/aarch64/iterators.md (VD_RE): Delete.
202
203 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
204
205         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
206         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
207         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
208         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
209         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
210         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
211         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
212         Replace inline assembler with __aarch64_vset_lane_any.
213
214 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
215
216         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
217         types.
218         (vmull_high_lane_s32): Likewise.
219         (vmull_high_lane_u16): Likewise.
220         (vmull_high_lane_u32): Likewise.
221
222 2014-09-11  Jason Merrill  <jason@redhat.com>
223
224         PR c++/58678
225         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
226
227 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
228
229         PR target/63223
230         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
231         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
232         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
233
234 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
235             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
236             Anna Tikhonova  <anna.tikhonova@intel.com>
237             Ilya Tocar  <ilya.tocar@intel.com>
238             Andrey Turetskiy  <andrey.turetskiy@intel.com>
239             Ilya Verbin  <ilya.verbin@intel.com>
240             Kirill Yukhin  <kirill.yukhin@intel.com>
241             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
242
243         * config/i386/sse.md
244         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
245         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
246         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
247         New.
248         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
249         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
250         iterator.
251         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
252         New.
253         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
254         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
255         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
256         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
257         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
258         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
259         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
260         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
261         iterator.
262         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
263         New.
264         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
265         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
266         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
267
268 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
269
270         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
271         to access removed nodes.
272
273 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
274
275         PR tree-optimization/63186
276         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
277         (mark_nonssa_use): Likewise.
278         (verify_non_ssa_vars): Verify all header blocks for label
279         definitions.
280
281 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
282             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
283             Anna Tikhonova  <anna.tikhonova@intel.com>
284             Ilya Tocar  <ilya.tocar@intel.com>
285             Andrey Turetskiy  <andrey.turetskiy@intel.com>
286             Ilya Verbin  <ilya.verbin@intel.com>
287             Kirill Yukhin  <kirill.yukhin@intel.com>
288             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
289
290         * config/i386/sse.md
291         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
292         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
293         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
294         "<avx2_avx512f>_permvar<mode><mask_name>".
295         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
296         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
297         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
298         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
299         Ditto.
300         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
301         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
302         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
303         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
304
305 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
306
307         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
308         V2DF, V4SF, DF, and DI modes.
309         (vsx_fmav2df2): Likewise.
310         (vsx_float_fix_<mode>2): Likewise.
311         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
312
313 2014-09-10  Xinliang David Li  <davidxl@google.com>
314
315         PR target/63209
316         * config/arm/arm.md (movcond_addsi): Handle case where source
317         and target operands are the same.
318
319 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
320
321         * final.c (this_is_asm_operands): Strengthen this variable from
322         rtx to const rtx_insn *.
323         * output.h (this_is_asm_operands): Likewise.
324         * rtl-error.c (location_for_asm): Strengthen param "insn" from
325         const_rtx to const rtx_insn *.
326         (diagnostic_for_asm): Likewise.
327         * rtl-error.h (error_for_asm): Likewise.
328         (warning_for_asm): Likewise.
329
330 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
331
332         * genextract.c (print_header): When writing out insn_extract to
333         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
334         * recog.h (insn_extract): Strengthen the param from rtx to
335         rtx_insn *.
336
337 2014-09-10  Mike Stump  <mikestump@comcast.net>
338
339         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
340         8.6.1.
341
342 2014-09-10  Martin Jambor  <mjambor@suse.cz>
343
344         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
345         (analyze): Do not set analyze flag if expand_thunk returns false;.
346         (create_wrapper): Likewise.
347         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
348
349 2014-09-10  Martin Jambor  <mjambor@suse.cz>
350
351         PR ipa/61654
352         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
353         new decl properly.  Analyze the new thunk if it is expanded.
354
355 2014-09-10  Andreas Schwab  <schwab@suse.de>
356
357         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
358         [USED_FOR_TARGET]: Define.
359
360 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
361
362         * config/mips/mips.c (mips_secondary_reload_class): Handle
363         regno < 0 case.
364
365 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
366
367         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
368         assignment.
369
370 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
371
372         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
373         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
374         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
375         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
376         flag_delete_null_pointer_checks for them.
377         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
378         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
379         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
380         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
381         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
382         stmt's iterator.
383         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
384         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
385         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
386         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
387         * doc/invoke.texi (-fsanitize=nonnull-attribute,
388         -fsanitize=returns-nonnull-attribute): Document.
389
390         * ubsan.h (struct ubsan_mismatch_data): Removed.
391         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
392         * ubsan.c (ubsan_source_location): For unknown locations,
393         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
394         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
395         Allow more than one location and arbitrary extra arguments passed
396         in ... instead of through MISMATCH pointer.
397         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
398         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
399         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
400         callers.
401
402 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
403             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
404             Anna Tikhonova  <anna.tikhonova@intel.com>
405             Ilya Tocar  <ilya.tocar@intel.com>
406             Andrey Turetskiy  <andrey.turetskiy@intel.com>
407             Ilya Verbin  <ilya.verbin@intel.com>
408             Kirill Yukhin  <kirill.yukhin@intel.com>
409             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
410
411         * config/i386/sse.md
412         (define_mode_iterator VI48F): New.
413         (define_insn "<avx512>_compress<mode>_mask"): Rename from
414         "avx512f_compress<mode>_mask" and update mode iterator.
415         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
416         "avx512f_compressstore<mode>_mask" and update mode iterator.
417         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
418         "avx512f_expand<mode>_maskz" and update mode iterator.
419         (define_insn "<avx512>_expand<mode>_mask"): Rename from
420         "avx512f_expand<mode>_mask" and update mode iterator.
421
422 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
423             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
424             Anna Tikhonova  <anna.tikhonova@intel.com>
425             Ilya Tocar  <ilya.tocar@intel.com>
426             Andrey Turetskiy  <andrey.turetskiy@intel.com>
427             Ilya Verbin  <ilya.verbin@intel.com>
428             Kirill Yukhin  <kirill.yukhin@intel.com>
429             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
430
431         * config/i386/i386.c
432         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
433         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
434         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
435         avx512dq_rangepv4sf_mask.
436         * config/i386/sse.md
437         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
438         UNSPEC_RANGE.
439         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
440         (define_insn "reduces<mode>"): Ditto.
441         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
442         Ditto.
443         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
444         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
445         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
446
447 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
448             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
449             Anna Tikhonova  <anna.tikhonova@intel.com>
450             Ilya Tocar  <ilya.tocar@intel.com>
451             Andrey Turetskiy  <andrey.turetskiy@intel.com>
452             Ilya Verbin  <ilya.verbin@intel.com>
453             Kirill Yukhin  <kirill.yukhin@intel.com>
454             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
455
456         * config/i386/i386.c
457         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
458         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
459         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
460         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
461         avx512vl_getmantv2df_mask.
462         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
463         avx512f_vgetmantv4sf_round.
464         * config/i386/sse.md
465         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
466         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
467         mode iterator.
468         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
469         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
470         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
471         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
472         iterator..
473         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
474         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
475         update mode iterator.
476         (define_expand
477         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
478         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
479         mode iterator.
480         (define_insn
481         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
482         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
483         update mode iterator.
484         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
485         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
486         iterator..
487         (define_insn
488         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
489         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
490         mode iterator..
491         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
492         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
493         update mode iterator.
494         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
495         "avx512f_getmant<mode><round_saeonly_name>".
496
497 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
498
499         PR ipa/63166
500         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
501
502 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
503             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
504             Anna Tikhonova  <anna.tikhonova@intel.com>
505             Ilya Tocar  <ilya.tocar@intel.com>
506             Andrey Turetskiy  <andrey.turetskiy@intel.com>
507             Ilya Verbin  <ilya.verbin@intel.com>
508             Kirill Yukhin  <kirill.yukhin@intel.com>
509             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
510
511         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
512         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
513         (define_mode_iterator FMAMODE_AVX512): New.
514         (define_mode_iterator FMAMODE): Remove conditions.
515         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
516         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
517         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
518         mode iterator.
519         (define_mode_iterator FMAMODE_NOVF512): Remove.
520         (define_insn "*fma_fmadd_<mode>"): Rename from
521         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
522         FMAMODE mode iterator.
523         (define_mode_iterator VF_SF_AVX512VL): New.
524         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
525         Use VF_SF_AVX512VL mode iterator.
526         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
527         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
528         iterator.
529         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
530         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
531         iterator.
532         (define_insn "*fma_fmsub_<mode>"): Rename from
533         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
534         FMAMODE mode iterator.
535         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
536         Use VF_SF_AVX512VL mode iterator.
537         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
538         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
539         iterator.
540         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
541         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
542         iterator.
543         (define_insn "*fma_fnmadd_<mode>"): Rename from
544         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
545         use FMAMODE mode iterator.
546         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
547         Use VF_SF_AVX512VL mode iterator.
548         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
549         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
550         iterator.
551         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
552         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
553         iterator.
554         (define_insn "*fma_fnmsub_<mode>"): Rename from
555         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
556         FMAMODE mode iterator.
557         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
558         Use VF_SF_AVX512VL mode iterator.
559         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
560         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
561         iterator.
562         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
563         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
564         iterator.
565         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
566         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
567         use VF_AVX512VL mode iterator.
568         (define_insn "*fma_fmaddsub_<mode>"): Rename from
569         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
570         remove subst usage.
571         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
572         Use VF_SF_AVX512VL mode iterator.
573         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
574         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
575         iterator.
576         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
577         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
578         iterator.
579         (define_insn "*fma_fmsubadd_<mode>"): Rename from
580         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
581         remove usage of subst.
582         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
583         Use VF_SF_AVX512VL mode iterator.
584         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
585         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
586         iterator.
587         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
588         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
589         iterator.
590
591 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
592
593         Revert r213751:
594         * calls.c (precompute_arguments): Check
595          promoted_for_signed_and_unsigned_p and set the promoted mode.
596         (promoted_for_signed_and_unsigned_p): New function.
597         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
598         and set the promoted mode.
599         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
600         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
601         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
602
603 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
604
605         * opth-gen.awk: Generate mapping from cpp message reasons to the
606         options that enable them.
607         * doc/options.texi (CppReason): Document.
608
609 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
610
611         * doc/invoke.texi (Wnormalized=): Update.
612
613 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
614
615         PR target/63195
616         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
617         operands.  Split off the constant operand alternative to ...
618         (*bool<mode>3_imm): New.
619
620 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
621
622         * rtl.h (single_set_2): Strengthen first param from const_rtx to
623         const rtx_insn *, and move prototype to above...
624         (single_set): ...this.  Convert this from a macro to an inline
625         function, enforcing the requirement that the param is a const
626         rtx_insn *.
627         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
628
629         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
630         Strengthen both params from rtx to rtx_insn *.
631         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
632         Likewise; introduce locals "producer_set", "consumer_set", using
633         them in place of "producer" and "consumer" when dealing with SET
634         rather than insn.
635         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
636         when invoking single_set in region guarded by INSN_P.
637         (avr_out_bitop): Likewise.
638         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
639         region guarded by GET_CODE check, using methods to strengthen
640         local "this_insn" from rtx to rtx_insn *, and for clarity.
641         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
642         Strengthen local "insn" from rtx to rtx_insn *.
643         (define_insn_and_split "xload<mode>_A"): Likewise.
644         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
645         "insn".
646         (find_load): Likewise for return type.
647         (workaround_speculation): Likewise for both locals named
648         "load_insn".
649         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
650         local "cc0_user".
651         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
652         for local "prev".
653         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
654         param 2.
655         * config/h8300/h8300.c (notice_update_cc): Likewise.
656         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
657         "insn" and "dep_insn".
658         (exact_store_load_dependency): Likewise for both params.
659         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
660         since this now clashes with inline function.  Instead, delay
661         calling single_set until the point where its needed, and then
662         assign the result to "compare_set" and rework the conditional that
663         follows.
664         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
665         local "last" from rtx to rtx_insn *.
666         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
667         second param.
668         (mips_store_data_bypass_p): Likewise for both params.
669         * config/mips/mips.c (mips_load_store_insns): Likewise for second
670         param.
671         (mips_store_data_bypass_p): Likewise for both params.
672         (mips_orphaned_high_part_p): Likewise for param "insn".
673         * config/mn10300/mn10300.c (extract_bundle): Likewise.
674         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
675         Introduce local rtx "insn2_pat".
676         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
677         "ninsn".
678         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
679         Introduce local rtx "set", using it in place of "insn" for the
680         result of single_set.  This appears to fix a bug, since the call
681         to find_regno_note on a SET does nothing.
682         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
683         params from rtx to rtx_insn *.
684         (set_to_load_agen): Likewise.
685         * config/s390/s390.c (s390_label_align): Likewise for local
686         "prev_insn".  Introduce new rtx locals "set" and "src", using
687         them in place of "prev_insn" for the results of single_set
688         and SET_SRC respectively.
689         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
690         Introduce new rtx local "set" using in place of "jump" for the
691         result of single_set.  Use SET_SRC (set) rather than plain
692         XEXP (set, 1).
693         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
694         rtx to rtx_insn *.
695         (noncall_uses_reg): Likewise.
696         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
697         guarded by GET_CODE check, using its methods for clarity, and to
698         enable strengthening local "this_insn" from rtx to rtx_insn *.
699         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
700         "insn" from rtx to rtx_insn *.
701         (define_expand "umulhisi3"): Likewise.
702         (define_expand "smulsi3_highpart"): Likewise.
703         (define_expand "umulsi3_highpart"): Likewise.
704         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
705         local "after".  Replace GET_CODE check with a dyn_cast,
706         introducing new local rtx_sequence * "seq", using insn method for
707         typesafety.
708
709         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
710         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
711         place of "insn" once we're dealing with patterns rather than the
712         input insn.
713         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
714         (scan_trace): Likewise for local "elt", updating lookups within
715         sequence to use insn method rather than element method.
716         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
717         to rtx_insn *.
718         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
719         * ifcvt.c (noce_try_abs): Likewise for local "insn".
720         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
721         invoking single_set.
722         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
723         "insn" from rtx to rtx_insn *.
724         (skip_usage_debug_insns): Likewise for return type, adding a
725         checked cast.
726         (check_secondary_memory_needed_p): Likewise for local "insn".
727         (inherit_reload_reg): Likewise.
728         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
729         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
730         checked casts.
731         (store_data_bypass_p): Likewise for both params.
732         (if_test_bypass_p): Likewise.
733         * recog.h (store_data_bypass_p): Likewise for both params.
734         (if_test_bypass_p): Likewise.
735         * reload.c (find_equiv_reg): Likewise for local "where".
736         * reorg.c (delete_jump): Likewise for param "insn".
737         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
738         to const rtx_insn *.
739         * store-motion.c (replace_store_insn): Likewise for param "del".
740         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
741         and use its methods for clarity, and to strengthen local "del"
742         from rtx to rtx_insn *.
743         (build_store_vectors): Use insn method of "st" when calling
744         replace_store_insn for typesafety and clarity.
745
746 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
747
748         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
749         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
750         on how to make it legal in future.
751
752 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
753
754         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
755         to rtx_insn *.
756         (restinsn): Likewise.
757         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
758         Likewise for param.
759         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
760         Likewise.
761         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
762         first param.
763         (arc_hazard): Likewise for both params.
764         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
765         checked casts to rtx_sequence * and uses of the insn method for
766         type-safety.
767         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
768         (arc_adjust_insn_length): Likewise for param "insn".
769         (struct insn_length_parameters_s): Likewise for first param of
770         "get_variants" callback field.
771         (arc_get_insn_variants): Likewise for first param and local
772         "inner".  Replace a check of GET_CODE with a dyn_cast to
773         rtx_sequence *, using methods for type-safety and clarity.
774         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
775         rtx_sequence * and uses of the insn method for type-safety when
776         invoking arc_adjust_insn_length.
777         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
778         for param.
779         (arm_address_offset_is_imm): Likewise.
780         (struct tune_params): Likewise for params 1 and 3 of the
781         "sched_adjust_cost" callback field.
782         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
783         params 1 and 3 ("insn" and "dep").
784         (xscale_sched_adjust_cost): Likewise.
785         (fa726te_sched_adjust_cost): Likewise.
786         (cortexa7_older_only): Likewise for param "insn".
787         (cortexa7_younger): Likewise.
788         (arm_attr_length_move_neon): Likewise.
789         (arm_address_offset_is_imm): Likewise.
790         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
791         * config/avr/avr.c (avr_notice_update_cc): Likewise.
792         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
793         (workaround_speculation): Likewise for local "last_condjump".
794         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
795         (shadow_or_blockage_p): Likewise.
796         (get_unit_reqs): Likewise.
797         (get_unit_operand_masks): Likewise.
798         (c6x_registers_update): Likewise.
799         (returning_call_p): Likewise.
800         (can_use_callp): Likewise.
801         (convert_to_callp): Likewise.
802         (find_last_same_clock): Likwise for local "t".
803         (reorg_split_calls): Likewise for local "shadow".
804         (hwloop_pattern_reg): Likewise for param "insn".
805         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
806         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
807         (frv_extract_membar): Likewise.
808         (frv_optimize_membar_local): Strengthen param "last_membar" from
809         rtx * to rtx_insn **.
810         (frv_optimize_membar_global): Strengthen param "membar" from rtx
811         to rtx_insn *.
812         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
813         to rtx_insn **.
814         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
815         both params from rtx to rtx_insn *.
816         (ia64_ld_address_bypass_p): Likewise.
817         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
818         "insn".
819         (ia64_safe_type): Likewise.
820         (group_barrier_needed): Likewise.
821         (safe_group_barrier_needed): Likewise.
822         (ia64_single_set): Likewise.
823         (is_load_p): Likewise.
824         (record_memory_reference): Likewise.
825         (get_mode_no_for_insn): Likewise.
826         (important_for_bundling_p): Likewise.
827         (unknown_for_bundling_p): Likewise.
828         (ia64_st_address_bypass_p): Likewise for both params.
829         (ia64_ld_address_bypass_p): Likewise.
830         (expand_vselect): Introduce new local rtx_insn * "insn", using it
831         in place of rtx "x" after the emit_insn call.
832         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
833         Strengthen param from rtx to rtx_insn *.
834         (ix86_agi_dependent): Likewise for both params.
835         (ix86_attr_length_immediate_default): Likewise for param 1.
836         (ix86_attr_length_address_default): Likewise for param.
837         (ix86_attr_length_vex_default): Likewise for param 1.
838         * config/i386/i386.c (ix86_attr_length_immediate_default):
839         Likewise for param "insn".
840         (ix86_attr_length_address_default): Likewise.
841         (ix86_attr_length_vex_default): Likewise.
842         (ix86_agi_dependent): Likewise for both params.
843         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
844         (vselect_insn): Likewise for this variable.
845         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
846         for param 1.
847         (m68k_sched_attr_opy_type): Likewise.
848         * config/m68k/m68k.c (sched_get_operand): Likewise.
849         (sched_attr_op_type): Likewise.
850         (m68k_sched_attr_opx_type): Likewise.
851         (m68k_sched_attr_opy_type): Likewise.
852         (sched_get_reg_operand): Likewise.
853         (sched_get_mem_operand): Likewise.
854         (m68k_sched_address_bypass_p): Likewise for both params.
855         (sched_get_indexed_address_scale): Likewise.
856         (m68k_sched_indexed_address_bypass_p): Likewise.
857         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
858         (m68k_sched_indexed_address_bypass_p): Likewise.
859         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
860         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
861         removing another.
862         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
863         params from rtx to rtx_insn *.
864         (mips_fmadd_bypass): Likewise.
865         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
866         (mips_linked_madd_p): Likewise.
867         (mips_macc_chains_last_hilo): Likewise for this variable.
868         (mips_macc_chains_record): Likewise for param.
869         (vr4130_last_insn): Likewise for this variable.
870         (vr4130_swap_insns_p): Likewise for both params.
871         (mips_ls2_variable_issue): Likewise for param.
872         (mips_need_noat_wrapper_p): Likewise for param "insn".
873         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
874         in place of "x" after the emit_insn.
875         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
876         params from rtx to rtx_insn *.
877         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
878         (pa_combine_instructions): Introduce local "par" for result of
879         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
880         to make_insn_raw.
881         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
882         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
883         (rl78_alloc_physical_registers_op1): Likewise.
884         (rl78_alloc_physical_registers_op2): Likewise.
885         (rl78_alloc_physical_registers_ro1): Likewise.
886         (rl78_alloc_physical_registers_cmp): Likewise.
887         (rl78_alloc_physical_registers_umul): Likewise.
888         (rl78_alloc_address_registers_macax): Likewise.
889         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
890         * config/s390/predicates.md (execute_operation): Likewise for
891         local "insn".
892         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
893         params.
894         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
895         (addr_generation_dependency_p): Likewise for param "insn".
896         (s390_agen_dep_p): Likewise for both params.
897         (s390_fpload_toreg): Likewise for param "insn".
898         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
899         * config/sh/sh.c (sh_loop_align): Likewise for param and local
900         "next".
901         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
902         * config/sh/sh_treg_combine.cc
903         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
904         and local "i".
905         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
906         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
907         "and_insn", "load", "shift".
908         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
909         "insn".
910         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
911         for XEXP (note, 0) of the REG_CC_SETTER note.
912         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
913         rtx_insn *, eliminating a checked cast made redundant by this.
914         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
915         to rtx_insn *.
916         * genattr.c (main): When writing out the prototype to
917         const_num_delay_slots, strengthen the param from rtx to
918         rtx_insn *.
919         * genattrtab.c (write_const_num_delay_slots): Likewise when
920         writing out the implementation of const_num_delay_slots.
921         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
922         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
923         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
924         favor of new rtx locals "src" and "set" and new local rtx_insn *
925         "insn" and "seq".
926         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
927         to rtx_insn *.
928         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
929         locals "cond", "if_then_else", "set" and new rtx_insn * locals
930         "insn" and "seq".
931         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
932         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
933         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
934         the top-level scope, replacing with new more tightly-scoped rtx
935         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
936         "new_insn", "copy_of_insn_b", and make local rtx "set" more
937         tightly-scoped.
938         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
939         rtx_insn *.
940         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
941         "move_insn".
942         (ira_setup_alts): Likewise for param "insn".
943         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
944         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
945         and an rtx_insn *.
946         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
947         new more-tightly scoped rtx locals "add3_insn", "insn",
948         "add2_insn" and rtx_insn * "move_insn".
949         * postreload-gcse.c (eliminate_partially_redundant_load): Add
950         checked cast on result of gen_move_insn when invoking
951         extract_insn.
952         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
953         rtx_insn *.
954         (verify_changes): Add a checked cast on "object" when invoking
955         insn_invalid_p.
956         (extract_insn_cached): Strengthen param "insn" from rtx to
957         rtx_insn *.
958         (extract_constrain_insn_cached): Likewise.
959         (extract_insn): Likewise.
960         * recog.h (insn_invalid_p): Likewise for param 1.
961         (recog_memoized): Likewise for param.
962         (extract_insn): Likewise.
963         (extract_constrain_insn_cached): Likewise.
964         (extract_insn_cached): Likewise.
965         * reload.c (can_reload_into): Likewise for local "test_insn".
966         * reload.h (cleanup_subreg_operands): Likewise for param.
967         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
968         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
969         result of emit_insn.  Remove a checked cast made redundant by this
970         change.
971         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
972         rtx to rtx_insn *.
973         * sel-sched.c (get_reg_class): Likewise.
974
975 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
976         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
977
978          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
979          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
980         Define.
981         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
982
983 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
984
985         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
986         const rtx_insn *, and from rtx to rtx_insn * for the other
987         overloaded variant.
988         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
989         INSN_LOCATION, since we know INSN_P holds.
990         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
991         (insn_file): Likewise.
992         (insn_scope): Likewise.
993         (insn_location): Likewise.
994
995         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
996         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
997         for the result of gen_load_const_gp.
998         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
999         param from rtx to rtx_insn *.
1000         * config/rs6000/rs6000.c (output_call): Likewise.
1001         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1002         introducing a checked cast to rtx_sequence * and use of the insn
1003         method.
1004         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1005         from rtx to rtx_insn *.
1006         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1007         (insn_line): Likewise.
1008         (insn_file): Likewise.
1009         (insn_location): Likewise.
1010         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1011         from rtx to rtx_insn *.
1012         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1013         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1014         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1015         via a checked cast.
1016         * reorg.c (relax_delay_slots): Strengthen locals named "after"
1017         from rtx to rtx_insn *; use methods of "pat" for type-safety.
1018
1019 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1020
1021         * combine.c (try_combine): Eliminate checked cast on result of
1022         gen_rtx_INSN.
1023         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1024         autogenerated one by strengthening the return type and params 2 and 3
1025         from rtx to rtx_insn *, and by naming the params.
1026         * gengenrtl.c (special_rtx): Add INSN to those that are
1027         special-cased.
1028         * rtl.h (gen_rtx_INSN): New prototype.
1029
1030 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
1031
1032         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1033         than NULL_RTX.
1034         (no_equiv): Likewise.
1035         (update_equiv_regs): Likewise.
1036         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
1037         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1038         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
1039         clarity.
1040         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1041         from rtx to rtx_insn_list *.
1042         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1043         rtx_insn_list * and use methods for clarity and typesafety.
1044         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1045         "list".
1046         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
1047         redundant check on INSN_P (insns): this cannot hold, as "insns" is
1048         an INSN_LIST, not an insn.
1049         (reverse_equiv_p): Strengthen local "insns" from rtx to
1050         rtx_insn_list * and use methods for clarity and typesafety.
1051         (contains_reloaded_insn_p): Likewise for local "list".
1052
1053 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
1054
1055         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1056         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1057         (arm_builtin_vectorized_function): Likewise.
1058         * config/arm/arm_neon_builtins.def: New macro for copysignf.
1059         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1060
1061 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
1062
1063         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1064         * builtins.h (default_target_builtins): Likewise.
1065         * gcse.h (default_target_gcse): Likewise.
1066         * target-globals.h (target_globals): Add a destructor.  Convert
1067         void-pointer fields back to their real type and change from
1068         GTY((atomic)) to GTY((skip)).
1069         (restore_target_globals): Remove casts accordingly.
1070         * target-globals.c (save_target_globals): Use XCNEW rather than
1071         ggc_internal_cleared_alloc to allocate non-GC structures.
1072         Use ggc_cleared_alloc to allocate the target_globals structure
1073         itself.
1074         (target_globals::~target_globals): Define.
1075
1076 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1077
1078         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1079         mnemonic instead of fldmfdd.
1080         * config/arm/arm.c (vfp_output_fstmd): Rename to...
1081         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
1082         Output vpush when address register is SP.
1083         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1084         (vfp_output_vstmd): ... This.
1085         * config/arm/vfp.md (push_multi_vfp): Update call to
1086         vfp_output_vstmd.
1087
1088 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1089
1090         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1091
1092 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1093
1094         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1095         (*sqrtdf2_vfp): Likewise.
1096         (*cmpsf_vfp): Likewise.
1097         (*cmpsf_trap_vfp): Likewise.
1098         (*cmpdf_vfp): Likewise.
1099         (*cmpdf_trap_vfp): Likewise.
1100
1101 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1102
1103         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1104         (*truncdfsf2_vfp): Likewise.
1105         (*truncsisf2_vfp): Likewise.
1106         (*truncsidf2_vfp): Likewise.
1107         (fixuns_truncsfsi2): Likewise.
1108         (fixuns_truncdfsi2): Likewise.
1109         (*floatsisf2_vfp): Likewise.
1110         (*floatsidf2_vfp): Likewise.
1111         (floatunssisf2): Likewise.
1112         (floatunssidf2): Likewise.
1113
1114 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1115
1116         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1117         (*muldf3_vfp): Likewise.
1118         (*mulsf3negsf_vfp): Likewise.
1119         (*muldf3negdf_vfp): Likewise.
1120         (*mulsf3addsf_vfp): Likewise.
1121         (*muldf3adddf_vfp): Likewise.
1122         (*mulsf3subsf_vfp): Likewise.
1123         (*muldf3subdf_vfp): Likewise.
1124         (*mulsf3negsfaddsf_vfp): Likewise.
1125         (*fmuldf3negdfadddf_vfp): Likewise.
1126         (*mulsf3negsfsubsf_vfp): Likewise.
1127         (*muldf3negdfsubdf_vfp): Likewise.
1128
1129 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1130
1131         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1132         (*absdf2_vfp): Likewise.
1133         (*negsf2_vfp): Likewise.
1134         (*negdf2_vfp): Likewise.
1135         (*addsf3_vfp): Likewise.
1136         (*adddf3_vfp): Likewise.
1137         (*subsf3_vfp): Likewise.
1138         (*subdf3_vfp): Likewise.
1139         (*divsf3_vfp): Likewise.
1140         (*divdf3_vfp): Likewise.
1141
1142 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1143
1144         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1145         multiple.
1146         (arm_print_operand): Don't convert real values to decimal
1147         representation in default case.
1148         (fp_immediate_constant): Delete.
1149         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1150         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1151         syntax.
1152         (*thumb2_movsi_vfp): Likewise.
1153         (*movdi_vfp): Likewise.
1154         (*movdi_vfp_cortexa8): Likewise.
1155         (*movhf_vfp_neon): Likewise.
1156         (*movhf_vfp): Likewise.
1157         (*movsf_vfp): Likewise.
1158         (*thumb2_movsf_vfp): Likewise.
1159         (*movdf_vfp): Likewise.
1160         (*thumb2_movdf_vfp): Likewise.
1161         (*movsfcc_vfp): Likewise.
1162         (*thumb2_movsfcc_vfp): Likewise.
1163         (*movdfcc_vfp): Likewise.
1164         (*thumb2_movdfcc_vfp): Likewise.
1165
1166 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
1167
1168         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1169         (-mtune): Likewise.
1170         (-mcpu): Likewise.
1171
1172 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1173
1174         PR target/61749
1175         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1176         Use qualifier_immediate for last operand.  Rename to...
1177         (aarch64_types_ternop_lane_qualifiers): ... This.
1178         (TYPES_QUADOP): Rename to...
1179         (TYPES_TERNOP_LANE): ... This.
1180         (aarch64_simd_expand_args): Return const0_rtx when encountering user
1181         error.  Change return of 0 to return of NULL_RTX.
1182         (aarch64_crc32_expand_builtin): Likewise.
1183         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1184         ICE when expanding unknown builtin.
1185         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1186         TERNOP_LANE qualifiers.
1187         (sqdmlsl_lane): Likewise.
1188         (sqdmlal_laneq): Likewise.
1189         (sqdmlsl_laneq): Likewise.
1190         (sqdmlal2_lane): Likewise.
1191         (sqdmlsl2_lane): Likewise.
1192         (sqdmlal2_laneq): Likewise.
1193         (sqdmlsl2_laneq): Likewise.
1194
1195 2014-09-09  Nick Clifton  <nickc@redhat.com>
1196
1197         * doc/invoke.texi (Optimization Options): Add missing @gol to the
1198         end of a line.
1199         (S/390 and zSeries Options): Remove superfluous word from the
1200         description of the -mhotpatch option.
1201
1202 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1203
1204         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1205         * ira.c: #include "shrink-wrap.h"
1206         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1207         * ifcvt.c: #include "shrink-wrap.h"
1208         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1209
1210 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
1211
1212         * common/config/picochip/picochip-common.c: Remove.
1213         * config.gcc: Remove support for picochip.
1214         * config/picochip/constraints.md: Remove.
1215         * config/picochip/dfa_space.md: Remove.
1216         * config/picochip/dfa_speed.md: Remove.
1217         * config/picochip/picochip-protos.h: Remove.
1218         * config/picochip/picochip.c: Remove.
1219         * config/picochip/picochip.h: Remove.
1220         * config/picochip/picochip.md: Remove.
1221         * config/picochip/picochip.opt: Remove.
1222         * config/picochip/predicates.md: Remove.
1223         * config/picochip/t-picochip: Remove.
1224         * doc/md.texi: Don't document picochi.
1225
1226 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1227
1228         * basic-block.h (control_flow_insn_p): Strengthen param from
1229         const_rtx to const rtx_insn *.
1230         * cfgbuild.c (control_flow_insn_p): Likewise.
1231
1232 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
1233
1234         * gcse.c (modify_mem_list): Strengthen this variable from
1235         vec<rtx> * to vec<rtx_insn *> *.
1236         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1237         vec<rtx_insn *>.
1238         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1239         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1240         (record_last_mem_set_info): Strengthen param "insn" from rtx to
1241         rtx_insn *.
1242         (record_last_set_info): Likewise for local "last_set_insn".
1243
1244 2014-09-08  DJ Delorie  <dj@redhat.com>
1245
1246         * doc/invoke.texi (MSP430 Options): Add -minrt.
1247
1248 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1249
1250         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
1251         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1252         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1253         handling SH_SPLAT.
1254         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1255         of extracted lane.
1256         (adjust_splat): New function.
1257         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1258         (dump_swap_insn_table): Add case for SH_SPLAT.
1259
1260 2014-09-08  Richard Biener  <rguenther@suse.de>
1261
1262         PR ipa/63196
1263         * tree-inline.c (copy_loops): The source loop header should
1264         always be non-NULL.
1265         (tree_function_versioning): If loops need fixup after removing
1266         unreachable blocks fix them.
1267         * omp-low.c (simd_clone_adjust): Do not add incr block to
1268         loop under construction.
1269
1270 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1271
1272         * config/aarch64/aarch64-builtins.c
1273         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1274
1275 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1276
1277         * config/i386/cygming.h (TF_SIZE): Remove.
1278         * config/i386/darwin.h (TF_SIZE): Remove.
1279         * config/i386/dragonfly.h (TF_SIZE): Remove.
1280         * config/i386/freebsd.h (TF_SIZE): Remove.
1281         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1282         * config/i386/openbsdelf.h (TF_SIZE): Remove.
1283         * config/i386/sol2.h (TF_SIZE): Remove.
1284         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1285         * config/ia64/linux.h (TF_SIZE): Remove.
1286         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1287         * doc/tm.texi: Regenerate.
1288         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1289
1290 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1291
1292         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1293         Remove.
1294         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1295         Remove.
1296         * doc/tm.texi: Regenerate.
1297         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1298         Poison.
1299         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1300         * config/cris/cris.h (__make_dp): Remove.
1301
1302 2014-09-08  Richard Biener  <rguenther@suse.de>
1303
1304         PR bootstrap/63204
1305         * cfgloop.c (mark_loop_for_removal): Track former header
1306         unconditionally.
1307         * cfgloop.h (struct loop): Add former_header member unconditionally.
1308         * loop-init.c (fix_loop_structure): Enable bogus loop removal
1309         diagnostic unconditionally.
1310
1311 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1312
1313         PR target/63190
1314         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1315         constraint for operand0 and remove write only modifier from operand3.
1316
1317 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
1318
1319         PR rtl-optimization/62208
1320         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1321         rather than const0_rtx in eq/ne-xor simplifications.
1322
1323 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
1324
1325         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1326         (arc_output_mi_thunk): Likewise.
1327
1328         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1329         arguments to silence bogus warning.
1330
1331 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
1332
1333         PR middle-end/63171
1334         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1335
1336 2014-09-06  Tom de Vries  <tom@codesourcery.com>
1337
1338         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1339         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1340         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1341
1342 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
1343
1344         PR target/63188
1345         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1346         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1347
1348 2014-09-05  Easwaran Raman  <eraman@google.com>
1349
1350         PR rtl-optimization/62146
1351         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1352         hoisted instruction unconditional.
1353
1354 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
1355
1356         PR target/63187
1357         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1358         Do not allow any_mask_operand for operands[2].
1359         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1360
1361 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1362
1363         * config/arc/arc.c (arc_print_operand): Use insn method of
1364         final_sequence for type-safety.
1365         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1366         "insn" from rtx to rtx_insn *.
1367         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1368         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1369         Likewise for locals "branch", "label".
1370         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1371         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
1372         (same_cmp_following_p): Likewise for locals "i2", "i3".
1373         * config/sh/sh_optimize_sett_clrt.cc
1374         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1375         param "cbranch_insn".
1376         * function.c (convert_jumps_to_returns): Likewis for local "jump".
1377         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1378         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1379         const rtx_insn *.
1380         (condjump_p): Likewise.
1381         (condjump_in_parallel_p): Likewise.
1382         (pc_set): Likewise.
1383         (any_uncondjump_p): Likewise.
1384         (any_condjump_p): Likewise.
1385         (condjump_label): Likewise.
1386         (returnjump_p): Strengthen param "insn" from rtx to
1387         const rtx_insn *.
1388         (onlyjump_p): Strengthen param "insn" from const_rtx to
1389         const rtx_insn *.
1390         (jump_to_label_p): Likewise.
1391         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1392         (invert_jump): Likewise.
1393         * reorg.c (simplejump_or_return_p): Add checked cast when calling
1394         simplejump_p.
1395         (get_jump_flags): Strengthen param "insn" from rtx to
1396         const rtx_insn *.
1397         (get_branch_condition): Likewise.
1398         (condition_dominates_p): Likewise.
1399         (make_return_insns): Move declaration of local "pat" earlier, to
1400         after we've handled NONJUMP_INSN_P and non-sequences, using its
1401         methods to simplify the code and for type-safety.
1402         * rtl.h (find_constant_src): Strengthen param from const_rtx to
1403         const rtx_insn *.
1404         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1405         (condjump_p): Strengthen param from const_rtx to
1406         const rtx_insn *.
1407         (any_condjump_p): Likewise.
1408         (any_uncondjump_p): Likewise.
1409         (pc_set): Likewise.
1410         (condjump_label): Likewise.
1411         (simplejump_p): Likewise.
1412         (returnjump_p): Likewise.
1413         (onlyjump_p): Likewise.
1414         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1415         (invert_jump): Likewise.
1416         (condjump_in_parallel_p): Strengthen param from const_rtx to
1417         const rtx_insn *.
1418         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1419         to const rtx_insn *.
1420         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1421         to const rtx_insn *.
1422         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1423
1424 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1425
1426         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1427         above the conditional, and convert the check on GET_CODE to a
1428         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1429         the conditional.  Simplify the conditional by using methods of
1430         "trial_seq".
1431
1432 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1433
1434         * haifa-sched.c (check_clobbered_conditions): Strengthen local
1435         "link" from rtx to rtx_insn_list *, and use its methods for
1436         clarity and type-safety.
1437         (toggle_cancelled_flags): Likewise.
1438         (restore_last_backtrack_point): Likewise.
1439         (queue_to_ready): Use insn method of "link" in one place.
1440         (schedule_block): Strengthen local "link" from rtx to
1441         rtx_insn_list *, and use its methods for clarity and type-safety.
1442
1443 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1444
1445         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1446         param "insn" from const_rtx to const rtx_insn *.
1447         (sched_get_reverse_condition_uncached): Likewise.
1448         (sched_get_condition_with_rev): Likewise.
1449         (sched_has_condition_p): Likewise.
1450         (sched_insns_conditions_mutex_p): Likewise for both params.
1451         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1452         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1453         (setup_insn_reg_uses): Move local "list" to be more tightly
1454         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
1455         its methods for clarity and type-safety.
1456         (sched_analyze_1): Strengthen local "pending" from rtx to
1457         rtx_insn_list *, and local "pending_mem" from rtx to
1458         rtx_expr_list *.  Use methods of each for clarity and type-safety.
1459         (sched_analyze_2): Likewise.
1460         (sched_analyze_insn): Likewise.
1461
1462         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1463         param from const_rtx to const rtx_insn *.
1464         (sched_insns_conditions_mutex_p): Likewise for both params.
1465         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1466         param.
1467
1468         * system.h (CONST_CAST_RTX_INSN): New macro.
1469
1470 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1471
1472         * recog.c (peep2_attempt): Strengthen return type from rtx to
1473         rtx_insn *.
1474         (peep2_update_life): Likewise for params "last", "prev", removing
1475         a checked cast made redundant by this.
1476         (peephole2_optimize): Likewise for local "last".
1477
1478 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1479
1480         * basic-block.h (set_block_for_insn): Eliminate this macro in
1481         favor of...
1482         * rtl.h (set_block_for_insn): New inline function, imposing the
1483         requirement that the "insn" param is an rtx_insn *.
1484
1485 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1486
1487         * caller-save.c (setup_save_areas): Strengthen local "insn" from
1488         rtx to rtx_insn *.
1489         * final.c (get_call_reg_set_usage): Likewise for first param,
1490         eliminating a checked cast.
1491         * regs.h (get_call_reg_set_usage): Likewise for first param.
1492         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1493         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1494         cast, replacing references to "x" with "call_insn" where
1495         appropriate.
1496         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1497         rtx_insn *, adding a checked cast.
1498
1499 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1500
1501         * output.h (final_scan_insn): Strengthen first param from rtx to
1502         rtx_insn *.
1503
1504         * final.c (final_scan_insn): Likewise, renaming it back from
1505         "uncast_insn" to "insn", eliminating the checked cast.
1506
1507         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1508         "vec" with an rtx_sequence * "seq", taking a copy of
1509         "final_sequence", and using methods of "seq" for clarity, and for
1510         type-safety in the calls to final_scan_insn.
1511         * config/mips/mips.c (mips_output_conditional_branch): Use methods
1512         of "final_sequence" for clarity, and for type-safety in the call to
1513         final_scan_insn.
1514         * config/sh/sh.c (print_slot): Strengthen param from rtx to
1515         rtx_sequence * and rename from "insn" to "seq".
1516
1517 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1518
1519         * jump.c (delete_related_insns): Introduce a new local "table" by
1520         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1521         get_labels method of "table" to simplify access to the labels in
1522         the jump table.
1523
1524 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1525
1526         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1527         f_minmaxs, f_minmaxd types.
1528
1529 2014-09-05  Richard Biener  <rguenther@suse.de>
1530
1531         * cfgloop.c (mark_loop_for_removal): Record former header
1532         when ENABLE_CHECKING.
1533         * cfgloop.h (strut loop): Add former_header member when
1534         ENABLE_CHECKING.
1535         * loop-init.c (fix_loop_structure): Sanity check loops
1536         marked for removal if they re-appeared.
1537
1538 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1539
1540         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1541         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1542
1543         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1544         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1545         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1546         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1547         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1548         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1549         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1550         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1551         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1552         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1553         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1554         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1555         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1556         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1557         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1558         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1559         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1560         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1561         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1562         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1563         with int{32,16,8}_t.
1564
1565 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1566
1567         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1568         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1569         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1570         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1571         Remove temporary __asm__ and reimplement.
1572
1573 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1574
1575         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1576         handling cmge, cmgt, cmeq, cmtst.
1577
1578         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1579         cmlt, cmgeu, cmgtu, cmtst): Remove.
1580
1581         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1582         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1583         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1584         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1585
1586 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1587
1588         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1589         TYPES_TST): Define.
1590         (aarch64_fold_builtin): Update pattern for cmtst.
1591
1592         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1593         Declare.
1594
1595         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1596
1597         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1598         Switch operands, separate out more cases, refactor.
1599
1600         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1601
1602         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1603         argument; rename old version to...
1604         (aarch64_const_vec_all_same_in_range_p): ...this.
1605         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1606
1607         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1608
1609 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1610
1611         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1612         Remove qualifier_const_pointer, update comment.
1613
1614 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1615
1616         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1617
1618 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1619
1620         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1621         varargs with pointer parameter.
1622         (aarch64_simd_expand_builtin): pass pointer into previous.
1623
1624 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1625
1626         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1627         alus_ext.
1628
1629 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
1630
1631         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1632         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1633         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1634         Replace temporary asm with call to builtin.
1635         (vrbit_p8, vrbitq_p8): New functions.
1636
1637 2014-09-05  Richard Biener  <rguenther@suse.de>
1638
1639         * cfgloop.c (mark_loop_for_removal): New function.
1640         * cfgloop.h (mark_loop_for_removal): Declare.
1641         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1642         (merge_blocks): Likewise.
1643         (duplicate_block): Likewise.
1644         * except.c (sjlj_emit_dispatch_table): Likewise.
1645         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1646         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1647         (thread_through_loop_header): Likewise.
1648
1649 2014-09-05  Richard Biener  <rguenther@suse.de>
1650
1651         PR middle-end/63148
1652         * fold-const.c (try_move_mult_to_index): Remove.
1653         (fold_binary_loc): Do not call it.
1654         * tree-data-ref.c (dr_analyze_indices): Strip conversions
1655         from the base object again.
1656
1657 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
1658
1659         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1660         DImode.
1661
1662 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
1663
1664         PR target/55701
1665         * config/arm/arm.md (setmem): New pattern.
1666         * config/arm/arm-protos.h (struct tune_params): New fields.
1667         (arm_gen_setmem): New prototype.
1668         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1669         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1670         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1671         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1672         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1673         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1674         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1675         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1676         (arm_const_inline_cost): New function.
1677         (arm_block_set_max_insns): New function.
1678         (arm_block_set_non_vect_profit_p): New function.
1679         (arm_block_set_vect_profit_p): New function.
1680         (arm_block_set_unaligned_vect): New function.
1681         (arm_block_set_aligned_vect): New function.
1682         (arm_block_set_unaligned_non_vect): New function.
1683         (arm_block_set_aligned_non_vect): New function.
1684         (arm_block_set_vect, arm_gen_setmem): New functions.
1685
1686 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
1687
1688         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1689
1690 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
1691
1692         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1693
1694 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1695
1696         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1697         an rtx.
1698         * valtrack.h: Adjust.
1699
1700 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1701
1702         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1703         an rtx.
1704         (emit_jump_insn_before_noloc): Likewise.
1705         (emit_call_insn_before_noloc): Likewise.
1706         (emit_label_before): Likewise.
1707         (emit_label_after): Likewise.
1708         (emit_insn_before_setloc): Likewise.
1709         (emit_jump_insn_before_setloc): Likewise.
1710         (emit_call_insn_before_setloc): Likewise.
1711         (emit_call_insn_before): Likewise.
1712         * rtl.h: Adjust.
1713
1714 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1715
1716         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1717         rtx_insn *, eliminating a checked cast.
1718
1719 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1720
1721         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1722         const_rtx to const rtx_insn *.
1723         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1724         cast.
1725
1726 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1727
1728         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1729         fixup_args_size_notes.
1730         * expr.c (fixup_args_size_notes): Strengthen first two params from
1731         rtx to rtx_insn *, eliminating a checked cast.
1732         * rtl.h (fixup_args_size_notes): Strengthen first two params from
1733         rtx to rtx_insn *.
1734
1735 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
1736
1737         * haifa-sched.c (get_ready_element): Strengthen return type from
1738         rtx to rtx_insn *.
1739         * sched-int.h (get_ready_element): Likewise.
1740
1741 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
1742
1743         PR target/63165
1744         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1745         indexed_or_indirect_operand instead of memory_operand.
1746         (floatsi<mode>2_lfiwzx_mem): Ditto.
1747
1748 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1749
1750         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1751         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1752         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1753
1754 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
1755
1756         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1757         rtx.
1758         (get_last_nonnote_insn): Likewise.
1759         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1760         * resource.c (find_basic_block): Likewise.
1761         * rtl.h: Adjust.
1762         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1763         const_rtx.
1764
1765 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
1766
1767         * genattr.c (main): Within the prototype of insn_latency written
1768         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1769         * genautomata.c (output_internal_maximal_insn_latency_func):
1770         Within the implementation of insn_latency written out to
1771         insn-automata.c, strengthen both params from rtx to rtx_insn *,
1772         eliminating a pair of checked casts.
1773
1774 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
1775
1776         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1777         rtx_insn *.
1778
1779         * rtl.h (eh_returnjump_p): Likewise.
1780
1781 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
1782
1783         * Makefile.in (TAGS): Handle constructs in timevar.def.
1784
1785 2014-09-04  Guozhi Wei  <carrot@google.com>
1786
1787         PR target/62040
1788         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1789         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1790         it into two patterns.
1791         (move_lo_quad_internal_be_<mode>): Likewise.
1792
1793 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1794
1795         * doc/options.texi: Document that Var and Init are required if CPP
1796         is given.
1797         * optc-gen.awk: Require Var and Init if CPP is given.
1798         * common.opt (Wpedantic): Use Init.
1799
1800 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1801
1802         * config/rs6000/rs6000.c (special_handling_values): Add
1803         SH_EXTRACT.
1804         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1805         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
1806         as swappable with special handling SH_EXTRACT.  Remove
1807         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1808         optimization.
1809         (adjust_extract): New function.
1810         (handle_special_swappables): Add default to case statement; add
1811         case for SH_EXTRACT that calls adjust_extract.
1812         (dump_swap_insn_table): Handle SH_EXTRACT.
1813
1814 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1815
1816         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1817         selection of 0th memory doubleword, regardless of endianness.
1818
1819 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1820
1821         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1822
1823 2014-09-04  Alan Modra  <amodra@gmail.com>
1824
1825         PR debug/60655
1826         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1827         can't be output.
1828
1829 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
1830
1831         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1832         * targhooks.c (default_dwarf_frame_reg_mode): New function.
1833         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1834         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1835         * doc/tm.texi: Regenerate.
1836         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1837         selection logic to default_dwarf_frame_reg_mode.
1838
1839 2014-09-03  Marek Polacek  <polacek@redhat.com>
1840
1841         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1842         by -Wall.
1843
1844 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
1845
1846         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1847         the automodified register.
1848
1849 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
1850
1851         * output.h (get_some_local_dynamic_name): Declare.
1852         * final.c (some_local_dynamic_name): New variable.
1853         (get_some_local_dynamic_name): New function.
1854         (final_end_function): Clear some_local_dynamic_name.
1855         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1856         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1857         (print_operand): Report an error if '%&' is used inappropriately.
1858         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1859         (get_some_local_dynamic_name_1): Delete.
1860         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1861         (rs6000_get_some_local_dynamic_name): Delete.
1862         (rs6000_get_some_local_dynamic_name_1): Delete.
1863         (print_operand): Report an error if '%&' is used inappropriately.
1864         * config/s390/s390.c (machine_function): Remove some_ld_name.
1865         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1866         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1867         * config/sparc/sparc.c: Include rtl-iter.h.
1868         (machine_function): Remove some_ld_name.
1869         (sparc_print_operand): Report an error if '%&' is used inappropriately.
1870         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1871
1872 2014-09-03  Richard Henderson  <rth@redhat.com>
1873
1874         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1875         (aarch64_popwb_pair_reg): Remove.
1876         (aarch64_set_frame_expr): Remove.
1877         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1878         the restore ops performed by the insns generated.
1879         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1880         insn.  Perform the calls_eh_return addition later; do not attempt to
1881         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
1882         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1883         special markup at all.  Load cfun->machine->frame.hard_fp_offset
1884         into a local variable.
1885         (aarch64_frame_pointer_required): Don't check calls_alloca.
1886
1887 2014-09-03  Richard Biener  <rguenther@suse.de>
1888
1889         * opts.c (default_options_optimization): Adjust
1890         max-combine-insns to 2 for -Og.
1891
1892 2014-09-03  Martin Jambor  <mjambor@suse.cz>
1893
1894         PR ipa/62015
1895         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1896         pass-trough jump functions correctly.
1897
1898 2014-09-03  Martin Jambor  <mjambor@suse.cz>
1899
1900         PR ipa/61986
1901         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1902         created replacements in ascending order of offsets.
1903         (known_aggs_to_agg_replacement_list): Likewise.
1904
1905 2014-09-03  Martin Liska  <mliska@suse.cz>
1906
1907         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1908         is set to set uninitialized value for vnresult.
1909
1910 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1911
1912         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1913         for TARGET_MUST_PASS_IN_STACK.
1914
1915 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1916
1917         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1918         for TARGET_ARG_PARTIAL_BYTES.
1919
1920 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1921
1922         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1923         instructions for varargs implementation.
1924         (nds32_expand_epilogue): Emit stack adjustment instructions for
1925         varargs implementation.
1926
1927 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1928
1929         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1930         optimization detection.
1931
1932 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1933
1934         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1935         arguments.
1936         (nds32_function_arg_advance): Deal with nameless arguments.
1937         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1938         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1939         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1940
1941 2014-09-03  Richard Biener  <rguenther@suse.de>
1942
1943         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1944         (struct bb_bitmap_sets): Remove deferred member.
1945         (BB_DEFERRED): Remove.
1946         (defer_or_phi_translate_block): Remove.
1947         (compute_antic_aux): Remove deferring of blocks, assert
1948         proper iteration order.
1949         (compute_antic): Do not set BB_DEFERRED.
1950         (eliminate): Allocate el_avail of proper size initially.
1951
1952 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1953
1954         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1955         according to the value of crtl->args.pretend_args_size.
1956
1957 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1958
1959         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1960         varargs information.
1961
1962 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1963
1964         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1965         implementation for TARGET_SETUP_INCOMING_VARARGS.
1966         (nds32_strict_argument_naming): Refine comment.
1967         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1968         Define for future implementation.
1969
1970 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
1971
1972         * config/i386/adxintrin.h (_subborrow_u32): New.
1973         (_addcarry_u32): Ditto.
1974         (_subborrow_u64): Ditto.
1975         (_addcarry_u64): Ditto.
1976         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1977         IX86_BUILTIN_SBB64.
1978         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1979         __builtin_ia32_sbb_u64
1980
1981 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1982
1983         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1984         GPR-specific stuff.
1985         (nds32_function_arg_advance): Likewise.
1986         (nds32_init_cumulative_args): Likewise.
1987         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1988         (NDS32_FIRST_GPR_REGNUM): Define.
1989         (NDS32_LAST_GPR_REGNUM): Define.
1990         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1991         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1992         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1993         (machine_function): Use GRP-specific stuff.
1994
1995 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
1996
1997         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1998         (nds32_expand_epilogue): Likewise.
1999         (nds32_expand_prologue_v3push): Likewise.
2000         (nds32_expand_epilogue_v3pop): Likewise.
2001
2002 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2003
2004         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2005         v3push/v3pop for variadic function.
2006         * config/nds32/nds32.md (prologue, epilogue): Likewise.
2007
2008 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2009
2010         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2011         Check rtx for varargs implementation.
2012         (nds32_output_stack_pop): Likewise.
2013         * config/nds32/nds32-protos.h: Have a rtx argument for
2014         nds32_output_stack_push and nds32_output_stack_pop.
2015         * config/nds32/nds32.md: Likewise.
2016
2017 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2018
2019         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2020         to check if FUNC is an interrupt service routine.
2021         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2022
2023 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2024
2025         * config/nds32/nds32.h (machine_function): Add some fields for variadic
2026         arguments implementation.
2027
2028 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2029
2030         * config/nds32/nds32-predicates.c
2031         (nds32_valid_stack_push_pop): Rename to ...
2032         (nds32_valid_stack_push_pop_p): ... this.
2033         * config/nds32/nds32-protos.h: Likewise.
2034         * config/nds32/predicates.md: Likewise.
2035
2036 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2037
2038         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2039         (nds32_emit_stack_v3push): ... this.
2040         (nds32_gen_stack_v3pop): Rename to ...
2041         (nds32_emit_stack_v3pop): ... this and consider CFA restore
2042         information.
2043
2044 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2045
2046         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2047         (nds32_emit_stack_push_multiple): ... this.
2048         (nds32_gen_stack_pop_multiple): Rename to ...
2049         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2050         information.
2051
2052 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2053
2054         PR target/61078
2055         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2056         and add a second splitter to handle the remaining cases.
2057
2058 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
2059
2060         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2061
2062 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2063
2064         * cfgexpand.c (label_rtx_for_bb): Change type to
2065         hash_map<basic_block, rtx_code_label *> *.
2066         (expand_gimple_basic_block): Adjust.
2067         (pass_expand::execute): Likewise.
2068
2069 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2070
2071         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2072         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2073         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2074         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2075         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2076         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2077         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2078         of rtx.
2079
2080 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
2081
2082         * alloc-pool.c: Include coretypes.h.
2083         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2084         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2085         hash_set instead of htab.
2086         * ggc-page.c (in_gc): New variable.
2087         (ggc_free): Do nothing if a collection is taking place.
2088         (ggc_collect): Set in_gc appropriately.
2089         * ggc.h (gt_ggc_mx(const char *)): New function.
2090         (gt_pch_nx(const char *)): Likewise.
2091         (gt_ggc_mx(int)): Likewise.
2092         (gt_pch_nx(int)): Likewise.
2093         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2094         (hash_map::hash_entry::pch_nx): Likewise.
2095         (hash_map::hash_entry::pch_nx_helper): Likewise.
2096 (hash_map::hash_map): Adjust.
2097 (hash_map::create_ggc): New function.
2098 (gt_ggc_mx): Likewise.
2099 (gt_pch_nx): Likewise.
2100         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2101 (default_hashset_traits::pch_nx): Likewise.
2102 (hash_set::hash_entry::ggc_mx): Likewise.
2103 (hash_set::hash_entry::pch_nx): Likewise.
2104 (hash_set::hash_entry::pch_nx_helper): Likewise.
2105 (hash_set::hash_set): Adjust.
2106 (hash_set::create_ggc): New function.
2107 (hash_set::elements): Likewise.
2108 (gt_ggc_mx): Likewise.
2109 (gt_pch_nx): Likewise.
2110         * hash-table.h (hash_table::hash_table): Adjust.
2111 (hash_table::m_ggc): New member.
2112         (hash_table::~hash_table): Adjust.
2113         (hash_table::expand): Likewise.
2114         (hash_table::empty): Likewise.
2115 (gt_ggc_mx): New function.
2116         (hashtab_entry_note_pointers): Likewise.
2117 (gt_pch_nx): Likewise.
2118
2119 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2120
2121         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
2122         built-in definition.
2123         (XVCVUXDDP_SCALE): Likewise.
2124         (XVCVDPSXDS_SCALE): Likewise.
2125         (XVCVDPUXDS_SCALE): Likewise.
2126         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
2127         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2128         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2129         VSX_BUILTIN_XVCVDPUXDS_SCALE.
2130         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2131         prototype.
2132         * config/rs6000/rs6000.c (real.h): New include.
2133         (rs6000_scale_v2df): New function.
2134         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2135         (UNSPEC_VSX_XVCVUXDDP): Likewise.
2136         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2137         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2138         (vsx_xvcvsxddp_scale): New define_expand.
2139         (vsx_xvcvsxddp): New define_insn.
2140         (vsx_xvcvuxddp_scale): New define_expand.
2141         (vsx_xvcvuxddp): New define_insn.
2142         (vsx_xvcvdpsxds_scale): New define_expand.
2143         (vsx_xvcvdpsxds): New define_insn.
2144         (vsx_xvcvdpuxds_scale): New define_expand.
2145         (vsx_xvcvdpuxds): New define_insn.
2146         * doc/extend.texi (vec_ctf): Add new prototypes.
2147         (vec_cts): Likewise.
2148         (vec_ctu): Likewise.
2149         (vec_splat): Likewise.
2150         (vec_div): Likewise.
2151         (vec_mul): Likewise.
2152
2153 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2154
2155         PR target/62275
2156         * config/arm/neon.md
2157         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2158         <v_cmp_result>): New pattern.
2159         * config/arm/iterators.md (NEON_VCVT): New int iterator.
2160         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2161         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2162         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2163         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2164         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2165
2166 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2167
2168         PR target/62275
2169         * config/arm/iterators.md (FIXUORS): New code iterator.
2170         (VCVT): New int iterator.
2171         (su_optab): New code attribute.
2172         (su): Likewise.
2173         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2174
2175 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2176
2177         * config/aarch64/predicates.md (aarch64_comparison_operation):
2178         New special predicate.
2179         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2180         aarch64_comparison_operation instead of matching an operator.
2181         Update operand numbers.
2182         (csinc3<mode>_insn): Likewise.
2183         (*csinv3<mode>_insn): Likewise.
2184         (*csneg3<mode>_insn): Likewise.
2185         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2186         * config/aarch64/aarch64.c (aarch64_get_condition_code):
2187         Return -1 instead of aborting on invalid condition codes.
2188         (aarch64_print_operand): Update aarch64_get_condition_code callsites
2189         to assert that the returned condition code is valid.
2190         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2191
2192 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
2193
2194         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2195         tree.def, and gimple.def
2196
2197 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
2198             Balaji V. Iyer  <balaji.v.iyer@intel.com>
2199             Igor Zamyatin  <igor.zamyatin@intel.com>
2200
2201         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2202         (__cilkrts_cilk_for_64): Likewise.
2203         * cilk-common.c (declare_cilk_for_builtin): New function.
2204         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2205         __cilkrts_cilk_for_64 bultins.
2206         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2207         CILK_TI_F_LOOP_64.
2208         (cilk_for_32_fndecl): New define.
2209         (cilk_for_64_fndecl): Likewise.
2210         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2211         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2212         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2213         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2214         GF_OMP_FOR_COMBINED_INTO.
2215         * gimplify.c (gimplify_scan_omp_clauses): Added
2216         OMP_CLAUSE__CILK_FOR_COUNT_ case.
2217         (gimplify_adjust_omp_clauses): Ditto.
2218         (gimplify_omp_for): Added CILK_FOR case.
2219         (gimplify_expr): Ditto.
2220         * omp-low.c: Include cilk.h.
2221         (extract_omp_for_data): Set appropriate kind for
2222         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2223         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2224         (create_omp_child_function_name): Added second argument to handle
2225         cilk_for case.
2226         (cilk_for_check_loop_diff_type): New function.
2227         (expand_cilk_for_call): Likewise.
2228         (expand_cilk_for): Likewise.
2229         (create_omp_child_function): Set cilk_for_count; handle the cases when
2230         it is true; call create_omp_child_function_name with second argument.
2231         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2232         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2233         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2234         * tree-nested.c (convert_nonlocal_omp_clauses): Added
2235         OMP_CLAUSE__CILK_FOR_COUNT_ case.
2236         (convert_local_omp_clauses): Ditto.
2237         * tree-pretty-print.c (dump_omp_clause): Added
2238         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2239         (dump_generic_node): Added CILK_FOR case.
2240         * tree.c (omp_clause_num_ops): New element
2241         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2242         (omp_clause_code_name): New element _Cilk_for_count_.
2243         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2244         * tree.def: Add tree code for CILK_FOR.
2245
2246 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2247
2248         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2249         (ppc403-compare): Add "exts with dot" case.
2250         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2251         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2252         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2253         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2254         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2255         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2256         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2257         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2258         cell-cmp-microcoded): Similarly.
2259         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2260         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2261         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2262         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2263         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2264         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2265         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2266         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2267         (power6-compare): Add "exts with dot" case.
2268         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2269         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2270         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2271
2272         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2273         if avoiding Cell microcode.
2274         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2275         (is_cracked_insn): Ditto.
2276         (insn_must_be_first_in_group): Ditto.
2277         * config/rs6000/rs6000.md (dot): Adjust comment.
2278         (cell_micro): Handle exts+dot.
2279         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2280         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2281         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2282         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2283         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2284         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2285         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2286
2287 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2288
2289         * config/rs6000/rs6000.md (QHSI): Delete.
2290         (EXTQI, EXTHI, EXTSI): New mode iterators.
2291         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2292         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2293         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2294         9 anonymous instructions, and 8 splitters): Delete.
2295         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2296         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2297         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2298         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2299         *zero_extendsi<mode>2_dot2): New.
2300
2301 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2302
2303         * config/rs6000/rs6000.md (any_extend): New code iterator.
2304         (u, su): New code attributes.
2305         (dmode, DMODE): New mode attributes.
2306         (<su>mul<mode>3_highpart): New.
2307         (*<su>mul<mode>3_highpart): New.
2308         (<su>mulsi3_highpart_le): New.
2309         (<su>muldi3_highpart_le): New.
2310         (<su>mulsi3_highpart_64): New.
2311         (<u>mul<mode><dmode>3): New.
2312         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2313         splitters): Delete.
2314         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2315         splitters): Delete.
2316
2317 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
2318
2319         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2320         *mulsi3_internal2, and two splitters): Delete.
2321         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2322         Delete.
2323         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2324
2325 2014-09-02  Richard Biener  <rguenther@suse.de>
2326
2327         PR tree-optimization/62695
2328         * tree-ssa-structalias.c (find_func_clobbers): Add missing
2329         vector truncate.
2330
2331 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
2332
2333         PR target/62312
2334         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2335
2336 2014-09-01  Andi Kleen  <ak@linux.intel.com>
2337
2338         * file-find.c (add_prefix_begin): Add.
2339         (do_add_prefix): Rename from add_prefix with first argument.
2340         (add_prefix): Add new wrapper.
2341         * file-find.h (add_prefix_begin): Add.
2342         * gcc-ar.c (main): Support -B option.
2343
2344 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2345
2346         * genemit.c: Include dumpfile.h.
2347         (gen_split): Print name of splitter function to dump file.
2348
2349 2014-09-01  Richard Biener  <rguenther@suse.de>
2350
2351         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2352         Use stack auto_vecs for constraint expressions.
2353         (find_func_aliases_for_call): Likewise.
2354         (find_func_aliases): Likewise.
2355         (find_func_clobbers): Likewise.
2356
2357 2014-09-01  Richard Biener  <rguenther@suse.de>
2358
2359         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2360         operands vector in most cases.  Remove redundant code.
2361
2362 2014-09-01  Olivier Hainque  <hainque@adacore.com>
2363
2364         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2365         $WIND_BASE instead of designating a harcoded arbitrary home dir.
2366         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2367
2368 2014-09-01  Richard Biener  <rguenther@suse.de>
2369
2370         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2371         copy_reference_ops_from_call, vn_nary_op_compute_hash,
2372         vn_reference_compute_hash, vn_reference_insert): Remove.
2373         (vn_reference_lookup_call): New function.
2374         * tree-ssa-sccvn.c (vn_reference_compute_hash,
2375         copy_reference_ops_from_ref, copy_reference_ops_from_call,
2376         vn_reference_insert, vn_nary_op_compute_hash): Make static.
2377         (create_reference_ops_from_call): Remove.
2378         (vn_reference_lookup_3): Properly update shared_lookup_references.
2379         (vn_reference_lookup_pieces): Assert that we updated
2380         shared_lookup_references properly.
2381         (vn_reference_lookup): Likewise.
2382         (vn_reference_lookup_call): New function.
2383         (visit_reference_op_call): Use it.  Avoid re-building the
2384         reference ops.
2385         (visit_reference_op_load): Remove redundant lookup.
2386         (visit_reference_op_store): Perform special tail-merging work
2387         only when possibly doing tail-merging.
2388         (visit_use): Likewise.
2389         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2390
2391 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
2392
2393         PR target/62025
2394         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2395         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2396         (find_inc): Revert 2014-08-13 change.
2397
2398 2014-09-01  Marek Polacek  <polacek@redhat.com>
2399
2400         PR middle-end/61903
2401         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2402         Change the type of V to unsigned HOST_WIDE_INT.
2403
2404 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2405
2406         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2407         the size of byte markers.
2408         (do_shift_rotate): Fix confusion between host, target and marker byte
2409         size.
2410         (verify_symbolic_number_p): Likewise.
2411         (find_bswap_or_nop_1): Likewise.
2412         (find_bswap_or_nop): Likewise.
2413
2414 2014-09-01  Olivier Hainque  <hainque@adacore.com>
2415
2416         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2417         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2418
2419 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
2420
2421         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2422         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2423         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2424
2425 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
2426
2427         PR sanitizer/61897
2428         PR sanitizer/62140
2429         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2430         (build_check_stmt): Likewise.
2431         (instrument_strlen_call): Likewise.
2432         (asan_expand_check_ifn): Likewise and fix types.
2433         (maybe_cast_to_ptrmode): New function.
2434
2435 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2436
2437         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2438
2439 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
2440
2441         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2442
2443 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
2444
2445         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2446         prefix to function labels when generating fast indirect calls.
2447
2448 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
2449
2450         PR bootstrap/62304
2451
2452         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2453         param back from rtx_insn * to rtx.  Rename param from "label" to
2454         "label_or_return", reintroducing "label" as an rtx_insn * after
2455         we've ensured it's not a RETURN.
2456         (first_active_target_insn): Likewise for return type and param;
2457         add a checked cast to rtx_insn * once we've ensured "insn" is not
2458         a RETURN.
2459         (steal_delay_list_from_target): Convert param "pnew_thread" back
2460         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
2461         with JUMP_LABEL.
2462         (own_thread_p): Convert param "thread" back from an rtx_insn * to
2463         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
2464         cast once we've established we're not dealing with a RETURN,
2465         renaming subsequent uses of "thread" to "thread_insn".
2466         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2467         to JUMP_LABEL.
2468         (follow_jumps): Convert return type and param "label" from
2469         rtx_insn * back to rtx.  Move initialization of "value" to after
2470         the handling for ANY_RETURN_P, adding a checked cast there to
2471         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
2472         rename to "this_label_or_return", reintroducing "this_label" as
2473         an rtx_insn * once we've handled the case where it could be an
2474         ANY_RETURN_P.
2475         (fill_slots_from_thread): Rename param "thread" to
2476         "thread_or_return", converting from an rtx_insn * back to an rtx.
2477         Reintroduce name "thread" as an rtx_insn * local with a checked
2478         cast once we've handled the case of it being an ANY_RETURN_P.
2479         Convert local "new_thread" from an rtx_insn * back to an rtx.
2480         Add a checked cast when assigning to "trial" from "new_thread".
2481         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
2482         checked cast to rtx_insn * from "new_thread" when invoking
2483         get_label_before.
2484         (fill_eager_delay_slots): Convert locals "target_label",
2485         "insn_at_target" from rtx_insn * back to rtx.
2486         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2487         (relax_delay_slots): Convert locals "trial", "target_label" from
2488         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
2489         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
2490         invoking update_block.
2491         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2492         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2493
2494         * resource.h (mark_target_live_regs): Undo erroneous conversion
2495         of second param of r214693, converting it back from rtx_insn * to
2496         rtx, since it could be a RETURN.
2497
2498         * resource.c (find_dead_or_set_registers): Similarly, convert
2499         param "jump_target" back from an rtx_insn ** to an rtx *, as we
2500         could be writing back a RETURN.  Rename local rtx_insn * "next" to
2501         "next_insn", and introduce "lab_or_return" as a local rtx,
2502         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2503         (mark_target_live_regs): Undo erroneous conversion
2504         of second param of r214693, converting it back from rtx_insn * to
2505         rtx, since it could be a RETURN.  Rename it from "target" to
2506         "target_maybe_return", reintroducing the name "target" as a local
2507         rtx_insn * with a checked cast, after we've handled the case of
2508         ANY_RETURN_P.
2509
2510 2014-08-29  DJ Delorie  <dj@redhat.com>
2511
2512         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2513         pointer size up to a power of two.
2514         * defaults.h (DWARF2_ADDR_SIZE): Round up.
2515         (POINTER_SIZE_UNITS): New, rounded up value.
2516         * dwarf2asm.c (size_of_encoded_value): Use it.
2517         (dw2_output_indirect_constant_1): Likewise.
2518         * expmed.c (init_expmed_one_conv): We now know the sizes of
2519         partial int modes.
2520         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2521         * optabs.c (expand_float): Use precision, not size.
2522         (expand_fix): Likewise.
2523         * simplify-rtx (simplify_unary_operation_1): Likewise.
2524         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2525         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2526         (default_assemble_integer) Likewise.
2527         (dump_tm_clone_pairs): Likewise.
2528         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2529         * var-tracking.c (adjust_mems): Allow partial-int modes also.
2530         (prepare_call_arguments): Likewise.
2531         * stor-layout.c (finalize_type_size): Preserve precision.
2532         (layout_type): Use precision, not size.
2533
2534         * expr.c (convert_move): If the target has an explicit converter,
2535         use it.
2536
2537 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
2538
2539         * gdbinit.in: Skip various inline functions in rtl.h when
2540         stepping.
2541
2542 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
2543
2544         PR bootstrap/62301
2545         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2546
2547 2014-08-29  Richard Biener  <rguenther@suse.de>
2548
2549         PR tree-optimization/62291
2550         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2551         exactly the vector size needed and use quick_push.
2552         (phi_translate_1): Adjust comment.
2553         (valid_in_sets): Remove block argument and remove pointless
2554         checking of NAMEs.
2555         (dependent_clean): Adjust for removal of block argument.
2556         (clean): Likewise.
2557         (compute_antic_aux): Likewise.
2558         (compute_partial_antic_aux): Likewise.
2559
2560 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2561             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2562             Anna Tikhonova  <anna.tikhonova@intel.com>
2563             Ilya Tocar  <ilya.tocar@intel.com>
2564             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2565             Ilya Verbin  <ilya.verbin@intel.com>
2566             Kirill Yukhin  <kirill.yukhin@intel.com>
2567             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2568
2569         * config/i386/sse.md
2570         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2571         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2572         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2573         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2574
2575 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2576             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2577             Anna Tikhonova  <anna.tikhonova@intel.com>
2578             Ilya Tocar  <ilya.tocar@intel.com>
2579             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2580             Ilya Verbin  <ilya.verbin@intel.com>
2581             Kirill Yukhin  <kirill.yukhin@intel.com>
2582             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2583
2584         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2585         * config/i386/sse.md
2586         (define_mode_iterator VI4_128_8_256): New.
2587         (define_mode_iterator VI2_128_4_256): Ditto.
2588         (define_mode_iterator PMOV_DST_MODE): Rename into
2589         (define_mode_iterator PMOV_DST_MODE_1): this.
2590         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2591         Use PMOV_DST_MODE_1 mode iterator.
2592         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2593         Ditto.
2594         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2595         Ditto.
2596         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2597         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2598         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2599         (define_mode_iterator PMOV_DST_MODE_2): New.
2600         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2601         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2602         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2603         Ditto.
2604         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2605         (define_mode_attr pmov_dst_3): Ditto.
2606         (define_mode_attr pmov_dst_zeroed_3): Ditto.
2607         (define_mode_attr pmov_suff_3): Ditto.
2608         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2609         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2610         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2611         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2612         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2613         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2614         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2615         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2616         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2617         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2618         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2619         (define_mode_attr pmov_dst_4): Ditto.
2620         (define_mode_attr pmov_dst_zeroed_4): Ditto.
2621         (define_mode_attr pmov_suff_4): Ditto.
2622         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2623         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2624         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2625         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2626         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2627         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2628         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2629         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2630         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2631         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2632         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2633
2634 2014-08-29  Richard Biener  <rguenther@suse.de>
2635
2636         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2637         NON_LVALUE_EXPR in gimple.
2638
2639 2014-08-29  Richard Biener  <rguenther@suse.de>
2640
2641         PR middle-end/62292
2642         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2643         from previous refactoring.
2644         (gimple_fold_builtin_strncpy): Likewise.
2645
2646 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
2647
2648         PR bootstrap/62300
2649         * function.c (assign_parm_setup_reg): Remove erroneous checked
2650         cast to rtx_insn * on result of gen_extend_insn in favor of
2651         introducing a new local rtx "pat".
2652
2653 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2654
2655         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2656         to silence warning.
2657         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2658
2659 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2660
2661         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2662         (next_insn): Likewise.
2663         * emit-rtl.c (next_insn): Likewise.
2664         (previous_insn): Likewise.
2665         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2666         "insn" and "next" from rtx to rtx_insn *.
2667         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2668         "insn", "insn1", "vliw_start",  "prologue_end_note",
2669         "last_insn_in_packet".
2670
2671 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2672
2673         * shrink-wrap.h (active_insn_between): Strengthen both params from
2674         rtx to rtx_insn *.
2675         * function.c (active_insn_between): Likewise.
2676
2677 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2678
2679         * genattr.c (main): When writing out insn-attr.h, strengthen param
2680         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2681         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2682         writing out the definition of dfa_clear_single_insn_cache to the
2683         generated insn-automata.c
2684
2685 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2686
2687         * resource.h (clear_hashed_info_for_insn): Strengthen param from
2688         rtx to rtx_insn *.
2689         (incr_ticks_for_insn): Likewise.
2690         (init_resource_info): Likewise.
2691
2692         * resource.c (init_resource_info): Likewise.
2693         (clear_hashed_info_for_insn): Likewise.
2694         (incr_ticks_for_insn): Likewise.
2695
2696         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2697         rtx to rtx_insn *.
2698         (steal_delay_list_from_target): Use methods of "seq".
2699         (try_merge_delay_insns): Use methods of "merged_insns".
2700         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2701         (reorg_redirect_jump): Likewise for param "jump".
2702
2703 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2704
2705         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2706         rtx to rtx_insn *.
2707         * config/s390/s390.c (s390_split_branches): Eliminate top-level
2708         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2709         "set_insn".
2710         (s390_mainpool_finish): In three places, split out a local rtx
2711         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2712         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
2713          and split another local rtx "insn" out into rtx "pat" and
2714         rtx_insn * "insn".
2715         * config/sh/sh.c (output_branchy_insn): Rather than working
2716         directly on operands[9], introduce local rtx_code_label *
2717         variables named "lab" in two places, working on them, and then
2718         assigning them to operands[9], so that the intervening operations
2719         are known by the type system to be on insns.
2720
2721 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2722
2723         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2724         const rtx_insn *.
2725
2726         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2727         in invocation of INSN_HAS_LOCATION.
2728
2729 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2730
2731         * config/rs6000/altivec.h (vec_xl): New #define.
2732         (vec_xst): Likewise.
2733         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2734         (XXSPLTD_V2DI): Likewise.
2735         (DIV_V2DI): Likewise.
2736         (UDIV_V2DI): Likewise.
2737         (MUL_V2DI): Likewise.
2738         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2739         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2740         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2741         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2742         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2743         (UNSPEC_VSX_DIVSD): Likewise.
2744         (UNSPEC_VSX_DIVUD): Likewise.
2745         (UNSPEC_VSX_MULSD): Likewise.
2746         (vsx_mul_v2di): New insn-and-split.
2747         (vsx_div_v2di): Likewise.
2748         (vsx_udiv_v2di): Likewise.
2749         (vsx_xxspltd_<mode>): New insn.
2750
2751 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
2752
2753         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2754         NEXT_INSN.
2755         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2756         (NEXT_INSN): Likewise.
2757         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2758         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2759         const rtx_insn *.
2760         (no_labels_between_p): Likewise for both params.
2761
2762         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2763         cast when using NEXT_INSN on operands[2].
2764         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2765         "insn" from rtx to rtx_insn *, adding a checked cast.
2766         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2767         rtx_insn *.
2768         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2769         for third param.
2770         (arc_text_label): Likewise for param "insn".
2771         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2772         "insn".
2773         (arc_ccfsm_record_condition): Likewise for param "jump".
2774         (arc_text_label): Likewise for local "label".
2775         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2776         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2777         a method for typesafety.  Add a checked cast.
2778         * config/arc/constraints.md (Clb): Add a checked cast when getting
2779         the CODE_LABEL from a LABEL_REF.
2780         * config/arm/arm.c (require_pic_register): Strengthen locals
2781         "seq", "insn" from rtx to rtx_insn *.
2782         (create_fix_barrier): Likewise for locals "selected", "next".
2783         (thumb1_reorg): Likewise for locals "prev", "insn".
2784         (arm_expand_prologue): Likewise for local "last".
2785         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2786         operands[0].
2787         (thumb2_output_casesi): Likewise for operands[2].
2788         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2789         strengthen local "insn" from rtx to rtx_insn *.
2790         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2791         type and param "insn".
2792         (find_prev_insn_start): Likewise.
2793         (hwloop_optimize): Likewise for locals "insn", "last_insn",
2794         "prev".
2795         (gen_one_bundle): Likewise for loal "t".
2796         (find_load): Likewise for param "insn".
2797         (workaround_speculation): Likewise for locals "insn", "next",
2798         "target", "next_tgt".
2799         * config/c6x/c6x.c (assign_reservations): Likewise for both params
2800         and for locals "insn", "within", "last".
2801         (count_unit_reqs): Likewise for params "head", "tail" and local
2802         "insn".
2803         (try_rename_operands): Likewise for params "head", "tail".
2804         (reshuffle_units): Likewise for locals "head", "tail", "insn".
2805         (struct c6x_sched_context): Likewise for fields
2806         "last_scheduled_insn", "last_scheduled_iter0".
2807         (init_sched_state): Replace NULL_RTX with NULL.
2808         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2809         to rtx_insn *.
2810         (undo_split_delayed_nonbranch): Likewise for param and for local
2811         "prev".
2812         (conditionalize_after_sched): Likewise for local "insn".
2813         (bb_earliest_end_cycle): Likewise.
2814         (filter_insns_above): Likewise for locals "insn", "next".
2815         (hwloop_optimize): Remove redundant checked cast.
2816         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2817         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2818         NULL_RTX with NULL.
2819         (cris_simple_epilogue): Likewise.
2820         (cris_expand_prologue): Likewise.
2821         (cris_expand_epilogue): Likewise.
2822         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2823         local "insn" from rtx to rtx_insn *.
2824         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2825         (struct frv_packet_group): Likewise for the elements within array
2826         fields "insns", "sorted", and for field "nop".
2827         (frv_packet): Likewise for the elements within array field
2828         "insns".
2829         (frv_add_insn_to_packet): Likewise for param "insn".
2830         (frv_insert_nop_in_packet): Likewise for param "insn" and local
2831         "last".
2832         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2833         (frv_sort_insn_group_1): Likewise for local "insn".
2834         (frv_optimize_membar_local): Likewise.
2835         (frv_align_label): Likewise for locals "x", "last", "barrier",
2836         "label".
2837         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2838         local.
2839         (ia64_sched_init): Likewise for local "insn".
2840         (scheduled_good_insn): Likewise for param "last".
2841         (struct _ia64_sched_context): Likewise for field
2842         "last_scheduled_insn".
2843         (ia64_init_sched_context): Replace NULL_RTX with NULL.
2844         (struct bundle_state): Likewise for field "insn".
2845         (issue_nops_and_insn): Likewise for param "insn".
2846         (get_next_important_insn): Likewise for return type and both
2847         params.
2848         (ia64_add_bundle_selector_before): Likewise for param "insn".
2849         (bundling): Likewise for params "prev_head_insn", "tail" and
2850         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
2851         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2852         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2853         Strengthen final param from rtx to rtx_insn *.
2854         (iq2000_move_1word): Likewise for second param.
2855         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2856         param "cur_insn" and local "next_insn".
2857         (iq2000_move_1word): Likewise for param "insn".
2858         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2859         casts when using NEXT_INSN on operands[1].
2860         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2861         "insn" from rtx to rtx_insn *.
2862         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2863         "x", introducing local rtx_insn * "insn" for when working with the
2864         CODE_LABEL of the LABEL_REF.
2865         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2866         rtx_insn *.
2867         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2868         param.
2869         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2870         type.
2871         (conditionalize_block): Likewise for return type and param.
2872         (mcore_is_dead): Likewise for param "first" and local "insn".
2873         (emit_new_cond_insn): Likewise for return type.
2874         (conditionalize_block): Likewise for return type, param, and
2875         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2876         "newinsn".
2877         (conditionalize_optimization): Likewise for local "insn".
2878         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2879         using NEXT_INSN.
2880         * config/microblaze/microblaze.md: Add checked casts when using
2881         NEXT_INSN.
2882         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2883         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2884         and rtx_insn * "insn".
2885         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2886         checked cast when using NEXT_INSN on operands[2].
2887         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2888         local "insn" from rtx to rtx_insn *.
2889         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2890         Likewise.
2891         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2892         Add a checked cast when using NEXT_INSN on operands[1].
2893         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2894         rtx to rtx_insn *.
2895         (pa_output_cbranch): Likewise for final param.
2896         (pa_output_lbranch): Likewise for second param.
2897         (pa_output_bb): Likewise for third param.
2898         (pa_output_bvb): Likewise.
2899         (pa_output_dbra): Likewise for second param.
2900         (pa_output_movb): Likewise.
2901         (pa_output_parallel_movb): Likewise.
2902         (pa_output_parallel_addb): Likewise.
2903         (pa_output_millicode_call): Likewise for first param.
2904         (pa_output_mul_insn): Likewise for second param.
2905         (pa_output_div_insn): Likewise for third param.
2906         (pa_output_mod_insn): Likewise for second param.
2907         (pa_jump_in_call_delay): Likewise for param.
2908         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2909         (pa_output_div_insn): Likewise.
2910         (pa_output_mod_insn): Likewise.
2911         (pa_output_cbranch): Likewise.
2912         (pa_output_lbranch): Likewise.
2913         (pa_output_bb): Likewise.
2914         (pa_output_bvb): Likewise.
2915         (pa_output_dbra): Likewise.
2916         (pa_output_movb): Likewise.
2917         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2918         to simplify and for typesafety.
2919         (pa_output_call): Use method of rtx_sequence *.
2920         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2921         (pa_jump_in_call_delay): Likewise.
2922         (pa_output_parallel_movb): Likewise.
2923         (pa_output_parallel_addb): Likewise.
2924         (pa_following_call): Likewise.
2925         (pa_combine_instructions): Likewise for locals "anchor",
2926         "floater".
2927         (pa_can_combine_p): Likewise for params "anchor", "floater" and
2928         locals "start", "end".
2929         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2930         param "insn" and local "local_insn".
2931         (picochip_final_prescan_insn): Likewise for local "local_insn".
2932         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2933         local "insn".
2934         (uses_TOC): Likewise.
2935         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2936         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2937         splitting out to more tightly-scoped locals, 3 as rtx and one as
2938         rtx_insn *.
2939         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2940         to rtx_insn *.
2941         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2942         where needed.
2943         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2944         to rtx_insn *.
2945         (fixup_addr_diff_vecs): Likewise.
2946         (reg_unused_after): Likewise for param 2.
2947         (sh_can_redirect_branch): Likewise for both params.
2948         (check_use_sfunc_addr): Likewise for param 1.
2949         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2950         (find_barrier): Likewise for local "last_got".
2951         (gen_block_redirect): Likewise for return type, param "jump" and
2952         locals "prev", "scan", "next", "insn".
2953         (struct far_branch): Likewise for fields "near_label",
2954         "insert_place", "far_label".
2955         (gen_far_branch): Likewise for local "jump".
2956         (fixup_addr_diff_vecs): Likewise for param "first" and locals
2957         "insn", "prev".
2958         (barrier_align): Likewise for param and for locals "prev", "x".
2959         Introduce local rtx_sequence * "prev_seq" and use insn method for
2960         typesafety and clarity.
2961         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2962         (get_dest_uid): Likewise for local "dest".
2963         (split_branches): Likewise for locals "next", "beyond", "label",
2964         "block", "far_label".  Add checked casts when assigning to
2965         bp->far_label and "far_label".
2966         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2967         (sequence_insn_p): Likewise.
2968         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
2969         more loop-scoped rtx "insn" when walking LABEL_REFS.
2970         (sh_can_redirect_branch): Strengthen both params from rtx to
2971         rtx_insn *.
2972         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
2973         new local rtx_sequence * "seq" via a dyn_cast, and use a method
2974         for clarity and typesafety.
2975         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2976         "insn" from rtx to rtx_insn *.
2977         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2978         when using NEXT_INSN on the CODE_LABEL in operands[2].
2979         (define_insn "casesi_worker_2"): Likewise.
2980         (define_insn "casesi_shift_media"): Likewise.
2981         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2982         operands[3].
2983         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2984         Strengthen field "insn" from rtx to rtx_insn *.
2985         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2986         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2987         param "start_insn" and local "start_insn".
2988         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2989         field "insn".
2990         (find_set_of_reg_bb): Likewise for param "insn".
2991         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2992         (trace_reg_uses): Likewise for param "start_insn".
2993         (sh_treg_combine::cbranch_trace): Likewise for field
2994         "cbranch_insn".
2995         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2996         param "insn".
2997         (sh_treg_combine::record_set_of_reg): Likewise for param
2998         "start_insn" and local "i".
2999         (sh_treg_combine::can_remove_cstore): Likewise for local
3000         "prev_insn".
3001         (sh_treg_combine::try_optimize_cbranch): Likewise for param
3002         "insn".
3003         (sh_treg_combine::execute): Likewise for local "i".
3004         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3005         param.
3006         (sparc_check_64): Likewise for second param.
3007         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3008         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
3009         dyn_cast, using its insn method for typesafety and clarity.
3010         (empty_delay_slot): Strengthen param "insn" from rtx to
3011         rtx_insn *.
3012         (set_extends): Likewise.
3013         (sparc_check_64): Likewise.
3014         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3015         for locals "seq", "last_insn".
3016         (combine_bnp): Likewise for param "insn".
3017         (xstormy16_reorg): Likewise for local "insn".
3018         * config/v850/v850.c (substitute_ep_register): Likewise for params
3019         "first_insn", "last_insn" and local "insn".
3020         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3021         elements of "regs" array, and local "insn".
3022         * except.c (emit_note_eh_region_end): Likewise for param "insn".
3023         * final.c (final_sequence): Strengthen this global from rtx to
3024         rtx_sequence *.
3025         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3026         rtx_insn *.
3027         (final_scan_insn): Update assignment to "final_sequence" to be
3028         from "seq", the cast version of "body", for type-safety.
3029         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3030         "insns" from rtx to rtx_insn *.
3031         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3032         * genattr.c (main): When writing out generated insn-attr.h,
3033         strengthen params 1 and 3 of eligible_for_delay,
3034         eligible_for_annul_true, eligible_for_annul_false from rtx to
3035         rtx_insn *.
3036         * genattrtab.c (write_eligible_delay): Likewise when writing out
3037         generated insn-attrtab.c; also local "insn" the generated
3038         functions.
3039         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3040         to rtx_insn *.
3041         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3042         "start_label" from rtx to rtx_insn *.
3043         * ira.c (decrease_live_ranges_number): Likewise for local "p".
3044         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3045         "insns" and local "insn".
3046         (validate_equiv_mem): Likewise for param "start" and local "insn".
3047         (memref_used_between_p): Likewise for params "start", "end" and
3048         local "insn".
3049         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3050         final param.
3051         * loop-doloop.c (doloop_optimize): Within region guarded by
3052         INSN_P (doloop_pat), introduce a new local rtx_insn *
3053         "doloop_insn" via a checked cast, and use it for typesafety,
3054         eventually writing the value back into doloop_pat.
3055         * output.h (final_sequence): Strengthen this global from rtx to
3056         rtx_sequence *.
3057         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3058         reintroducing "insn" as an rtx_insn * via a checked cast.
3059         Strengthen param "attempt" and local "new_insn"from rtx to
3060         rtx_insn *.
3061         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3062         to rtx_insn *.
3063         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3064         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3065         "p" in favor of more tightly-scoped replacements, sometimes rtx
3066         and sometimes rtx_insn *, as appropriate.
3067         (delete_output_reload): Eliminate top-level rtx "i1", splitting
3068         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3069         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
3070         local "trial" from rtx to rtx_insn *.
3071         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3072         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
3073         rtx_sequence * and use methods for clarity and typesafety.
3074         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3075         rtx to rtx_insn *.  Strenghten local "li" from rtx to
3076         rtx_insn_list * and use its methods for clarity and typesafety.
3077         (steal_delay_list_from_target): Strengthen param "insn" from rtx
3078         to rtx_insn *.
3079         (steal_delay_list_from_fallthrough): Likewise.
3080         (try_merge_delay_insns): Likewise for param "thread" and locals
3081         "trial", "next_trial", "delay_insn".
3082         (redundant_insn): Likewise for param "target" and local "trial".
3083         (own_thread_p): Likewise for param "thread" and locals
3084         "active_insn", "insn".
3085         (get_label_before): Likewise for param "insn".
3086         (fill_simple_delay_slots): Likewise for local "new_label"; use
3087         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3088         (label_before_next_insn): Strengthen return type and local "insn"
3089         from rtx to rtx_insn *.
3090         (relax_delay_slots): Likewise for locals "other", "tmp".
3091         (make_return_insns): Likewise for param "first" and locals "insn",
3092         "jump_insn", "prev".  Move declaration of "pat" to its assignment
3093         and strengthen from rtx to rtx_sequence *.  Use its methods for
3094         clarity and typesafety.
3095         * rtlanal.c (no_labels_between_p): Strengthen params from
3096         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
3097         rtx_insn *.
3098         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3099         from const_rtx to const rtx_insn *.
3100         (reg_set_between_p): Rename param "from_insn" to
3101         "uncast_from_insn", and reintroduce "from_insn" as a
3102         const rtx_insn * via a checked cast.
3103         (modified_between_p): Likewise for param "start" as "uncast_start".
3104         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3105         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3106         "tmp", head" from rtx to rtx_insn *.
3107         (recompute_rev_top_order): Likewise for local "insn".
3108         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3109         * store-motion.c (build_store_vectors): Likewise for local "insn".
3110         Strengthen local "st" from rtx to rtx_insn_list * and use methods
3111         for clarity and typesafety.
3112         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3113         rtx to rtx_insn *.
3114         (computation_cost): Likewise for local "seq".
3115         (get_address_cost): Likewise.
3116
3117 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3118
3119         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3120         const rtx_insn *.
3121         (label_is_jump_target_p): Likewise for second param.
3122
3123         * rtlanal.c (tablejump_p): Likewise for param "insn".
3124         (label_is_jump_target_p): Likewise for param "jump_insn".
3125
3126 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3127
3128         * rtl.h (find_first_parameter_load): Strengthen return type and
3129         both params from rtx to rtx_insn *.
3130         * rtlanal.c (find_first_parameter_load): Strengthen return type,
3131         both params and locals "before", "first_set" from rtx to
3132         rtx_insn *.  Remove now-redundant cast.
3133         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3134
3135 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3136
3137         * rtl.h (find_last_value): Delete.
3138         * rtlanal.c (find_last_value): Delete.
3139
3140 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3141
3142         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3143         from rtx to rtx_insn *.
3144         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3145         rtx "note" with new local rtx_insn * "new_head" when calculating
3146         head insn of new basic block.
3147         * combine.c (combine_split_insns): Strengthen return type and local
3148         "ret" from rtx to rtx_insn *.
3149         (likely_spilled_retval_p): Likewise for locals "use" and "p".
3150         (try_combine): Eliminate local "m_split", splitting into new
3151         locals "m_split_insn" and "m_split_pat".
3152         (find_split_point): Strengthen local "seq" from rtx into
3153         rtx_insn *.
3154         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3155         locals "label", "branch".
3156         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3157         for local "insn".
3158         (define_expand "umulsi3_highpart"): Likewise for local "insn".
3159         * dse.c (note_add_store_info): Likewise for fields "first",
3160         "current".
3161         (note_add_store): Likewise for local "insn".
3162         (emit_inc_dec_insn_before): Likewise for locals "insn",
3163         "new_insn", "cur".
3164         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3165         (replace_read): Likewise for locals "insns", "this_insn".
3166         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3167         (notice_eh_throw): Likewise for param "insn".
3168         (before_next_cfi_note): Likewise for return type, param, and local
3169         "prev".
3170         (connect_traces): Likewise for local "note".
3171         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3172         (verify_rtl_sharing): Likewise.
3173         (unshare_all_rtl_in_chain): Likewise for param "insn".
3174         (get_first_nonnote_insn): Likewise for local "insn".
3175         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
3176         "seq" and use its methods to clarify things.
3177         (next_insn): Strengthen return type from rtx to rtx_insn *.
3178         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3179         local rtx_insn * using a checked cast, dropping a checked cast
3180         made redundant by this change.  Use a cast to and method of
3181         rtx_sequence to clarify the code.
3182         (previous_insn): Rename param "insn" to "uncast_insn" and
3183         reintroduce "insn" as a local rtx_insn * using a checked cast,
3184         dropping a checked cast made redundant by this change.  Use a cast
3185         to and method of rtx_sequence to clarify the code.
3186         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3187         reintroduce "insn" as a local rtx_insn * using a checked cast,
3188         dropping a checked cast made redundant by this change.
3189         (next_nonnote_insn_bb): Likewise.
3190         (prev_nonnote_insn): Likewise.
3191         (prev_nonnote_insn_bb): Likewise.
3192         (next_nondebug_insn): Likewise.
3193         (prev_nondebug_insn): Likewise.
3194         (next_nonnote_nondebug_insn): Likewise.
3195         (prev_nonnote_nondebug_insn): Likewise.
3196         (next_real_insn): Likewise.
3197         (prev_real_insn): Likewise.
3198         (next_active_insn): Likewise.
3199         (prev_active_insn): Likewise.
3200         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
3201         clarity.
3202         (prev_cc0_setter): Likewise.
3203         (try_split): Rename param "trial" to "uncast_trial" and
3204         reintroduce "insn" as a local rtx_insn * using a checked cast,
3205         dropping checked casts made redundant by this change.
3206         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3207         rtx to rtx_insn *.
3208         (remove_insn): Rename param "insn" to "uncast_insn" and
3209         reintroduce "insn" as a local rtx_insn * using a checked cast.
3210         (emit_pattern_after_setloc): Likewise for param "after", as
3211         "uncast_after".
3212         (emit_pattern_after): Likewise.  Strengthen local "prev" from
3213         rtx to rtx_insn *.
3214         (emit_pattern_before_setloc): Rename param "before" to
3215         "uncast_before" and reintroduce "before" as a local rtx_insn *
3216         using a checked cast.  Strengthen locals "first", "last" from
3217         rtx to rtx_insn *.
3218         (emit_pattern_before): Likewise rename/cast param "before" to
3219         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3220         * except.c (copy_reg_eh_region_note_forward): Strengthen param
3221         "first" and local "insn" from rtx to rtx_insn *.
3222         (copy_reg_eh_region_note_backward): Likewise for param "last"
3223         and local "insn".
3224         * expr.c (fixup_args_size_notes): Rename param "last" to
3225         "uncast_last" and reintroduce "last" as a local rtx_insn *
3226         using a checked cast.  Strengthen local "insn" from rtx to
3227         rtx_insn *.
3228         * function.c (set_insn_locations): Strengthen param "insn" from
3229         rtx to rtx_insn *.
3230         (record_insns): Likewise for param "insns" and local "tmp".
3231         (active_insn_between): Rename param "tail" to
3232         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3233         using a checked cast.
3234         (thread_prologue_and_epilogue_insns): Split out top-level local
3235         rtx "seq" into three different rtx_insn * locals.  Strengthen
3236         local "prologue_seq" from rtx to rtx_insn *.
3237         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3238         from rtx to rtx_insn *.
3239         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3240         (priority): Likewise for locals "prev_first", "twin".
3241         (setup_insn_max_reg_pressure): Likewise for param "after".
3242         (sched_setup_bb_reg_pressure_info): Likewise.
3243         (no_real_insns_p): Strengthen params from const_rtx to
3244         const rtx_insn *.
3245         (schedule_block): Strengthen local "next_tail" from rtx to
3246         rtx_insn *.
3247         * ifcvt.c (find_active_insn_before): Strengthen return type and
3248         param "insn" from rtx to rtx_insn *.
3249         (find_active_insn_after): Likewise.
3250         (cond_exec_process_insns): Likewise for param "start" and local "insn".
3251         (cond_exec_process_if_block): Likewise for locals "then_start",
3252         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3253         (noce_process_if_block): Likewise for local "jump".
3254         (merge_if_block): Likewise for two locals named "end".
3255         (cond_exec_find_if_block): Likewise for local "last_insn".
3256         * jump.c (delete_related_insns): Rename param "insn" to
3257         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3258         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
3259         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3260         NULL.
3261         (split_reg): Likewise.
3262         * lra.c (lra_process_new_insns): Likewise.
3263         * modulo-sched.c (permute_partial_schedule): Strengthen param
3264         "last" from rtx to rtx_insn *.
3265         * optabs.c (add_equal_note): Likewise for param "insns" and local
3266         "last_insn".
3267         (expand_binop_directly): Add checked casts to rtx_insn * within
3268         NEXT_INSN (pat) uses.
3269         (expand_unop_direct): Likewise.
3270         (maybe_emit_unop_insn): Likewise.
3271         * recog.c (peep2_attempt): Strengthen locals "last",
3272         "before_try", "x" from rtx to rtx_insn *.
3273         * reorg.c (optimize_skip): Strengthen return type and local
3274         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
3275         and locals "trial", "next_trial" from rtx to rtx_insn *.
3276         * resource.c (next_insn_no_annul): Strengthen return type and
3277         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
3278         rtx_sequence to clarify the code.
3279         (mark_referenced_resources): Add a checked cast to rtx_insn *
3280         within PREV_INSN (x).
3281         (find_dead_or_set_registers): Strengthen return type, param
3282         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3283         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
3284         to rtx_insn **.
3285         (mark_target_live_regs): Strengthen params "insns" and "target",
3286         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3287         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
3288         the code.
3289         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3290         from rtx to rtx_insn *.
3291         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3292         from rtx to rtx_insn *.
3293         (copy_reg_eh_region_note_backward): Likewise.
3294         (unshare_all_rtl_in_chain): Likewise for sole param.
3295         (dump_rtl_slim): Strengthen second and third params from const_rtx
3296         to const rtx_insn *.
3297         * sched-deps.c (sched_free_deps): Strengthen params "head" and
3298         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3299         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3300         "next_tail" from rtx to rtx_insn *.
3301         (begin_move_insn): Likewise for local "next".
3302         * sched-int.h (sched_free_deps): Likewise for first and second
3303         params.
3304         (no_real_insns_p): Strengthen both params from const_rtx to
3305         const rtx_insn *.
3306         (sched_setup_bb_reg_pressure_info): Strengthen second params from
3307         rtx to rtx_insn *.
3308         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3309         "next_tail".
3310         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3311         and locals "insn", "tail" from const_rtx to const rtx_insn *.
3312         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3313         rtx_insn *.
3314         (debug_rtl_slim): Strengthen params "first" and "last" from
3315         const_rtx to const rtx_insn *.
3316         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3317         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3318         (convert_to_simple_return): Likewise for param "returnjump".
3319         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3320         "prologue_seq".
3321         (convert_to_simple_return): Likewise for param "returnjump".
3322         * valtrack.c (propagate_for_debug): Likewise for params
3323         "insn", "last".
3324         * valtrack.h (propagate_for_debug): Likewise for second param.
3325
3326 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3327
3328         * output.h (insn_current_reference_address): Strengthen param
3329         from rtx to rtx_insn *.
3330         * final.c (insn_current_reference_address): Likewise.
3331
3332 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3333
3334         * basic-block.h (inside_basic_block_p): Strengthen param from
3335         const_rtx to const rtx_insn *.
3336         * cfgbuild.c (inside_basic_block_p): Likewise.
3337
3338 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3339
3340         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3341         rtx_insn *.
3342         (get_trace_info): Likewise for param "insn".
3343         (save_point_p): Likewise.
3344         (maybe_record_trace_start): Likewise for both params.
3345         (maybe_record_trace_start_abnormal): Likewise.
3346         (create_trace_edges): Likewise for sole param and for three of the
3347         locals named "lab".
3348         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3349         to rtx_insn *, and update a call to pat->element to pat->insn.
3350
3351 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3352
3353         * function.h (struct expr_status): Convert field "x_forced_labels"
3354         from rtx_expr_list * to rtx_insn_list *.
3355
3356         * cfgbuild.c (make_edges): Convert local "x" from an
3357         rtx_expr_list * to an rtx_insn_list *, replacing use of
3358         "element" method with "insn" method.
3359         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3360         * except.c (sjlj_emit_dispatch_table): Replace use of
3361         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3362         forced_labels.
3363         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3364         rtx_expr_list * to an rtx_insn_list *, replacing use of
3365         "element" method with "insn" method.
3366         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3367         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3368         rtx_insn *, adding a checked cast.  Replace use of
3369         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3370         forced_labels.
3371         (expand_label): Likewise for local "label_r".
3372
3373 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3374
3375         * function.h (struct rtl_data): Convert field
3376         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3377         rtx_insn_list *.
3378         * rtl.h (remove_node_from_insn_list): New prototype.
3379
3380         * builtins.c (expand_builtin): When prepending to
3381         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3382         gen_rtx_EXPR_LIST.
3383         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3384         to rtx_insn_list *, and use its "insn" method rather than
3385         "element" method.
3386         * cfgrtl.c (delete_insn): Use new function
3387         remove_node_from_insn_list rather than
3388         remove_node_from_expr_list.
3389         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3390         to rtx_insn_list *, and use its "insn" method rather than
3391         "element" method.
3392         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3393         * reload1.c (set_initial_label_offsets): Likewise for local "x".
3394         * rtlanal.c (remove_node_from_insn_list): New function, adapted
3395         from remove_node_from_expr_list.
3396         * stmt.c (expand_label): When prepending to
3397         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3398         gen_rtx_EXPR_LIST.
3399
3400 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3401
3402         * function.h (struct rtl_data): Strengthen fields "x_return_label"
3403         and "x_naked_return_label" from rtx to rtx_code_label *.
3404
3405 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3406
3407         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3408         (SET_NEXT_INSN): Likewise.
3409         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3410
3411         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3412         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
3413         to split out the SEQUENCE from local "bundle", strengthening the
3414         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3415         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3416         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3417         and the type of the elements of the "slot" array from rtx to
3418         rtx_insn *.
3419         (reorg_split_calls): Likewise for locals "insn" and "next", and
3420         the type of the elements of the "slot" array.
3421
3422         * config/frv/frv.c (frv_nops): Likewise for the elements of this
3423         array.
3424         (frv_function_prologue): Likewise for locals "insn", "next",
3425         "last_call".
3426         (frv_register_nop): Introduce a local "nop_insn" to be the
3427         rtx_insn * containing rtx "nop".
3428
3429         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3430         used as an insn and sometimes as a pattern, so rename it to
3431         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3432         using it where dealing with the core insn.
3433
3434         * config/picochip/picochip.c (reorder_var_tracking_notes):
3435         Strengthen locals "insn", "next", "last_insn", "queue",
3436         "next_queue", "prev" from rtx to rtx_insn *.
3437
3438         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3439         the second param is an rtx_insn ** rather than an rtx **.
3440         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3441         from rtx to rtx_sequence *, and introduce local named "sequence",
3442         using methods of rtx_sequence to clarify the code.
3443         (remove_insn): Introduce local rtx_sequence * named "sequence" and
3444         use its methods.
3445         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3446         Rename param "after" to "uncast_after", reintroducing "after" as a
3447         local rtx_insn * with a checked cast.
3448         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3449         reintroducing "after" as a local rtx_insn * with a checked cast.
3450         Strengthen local "last" from rtx to rtx_insn * and remove the
3451         now-redundant checked casts.
3452         (copy_delay_slot_insn): Strengthen return type and param from rtx
3453         to rtx_insn *.
3454
3455         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3456         "last" from rtx to rtx_insn *.
3457
3458 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
3459
3460         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3461         param from rtx to rtx_insn *.
3462
3463         * emit-rtl.c (copy_delay_slot_insn): Likewise.
3464
3465         * reorg.c (skip_consecutive_labels): Strengthen return type, param
3466         and local "insn" from rtx to rtx_insn *.
3467         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3468         (unfilled_slots_next): Likewise.
3469         (function_return_label): Strengthen from rtx to rtx_code_label *.
3470         (function_simple_return_label): Likewise.
3471         (first_active_target_insn): Strengthen return type and param from
3472         rtx to rtx_insn *.
3473         (find_end_label): Strengthen return type from rtx to
3474         rtx_code_label *; strengthen locals as appropriate.
3475         (emit_delay_sequence): Strengthen return type, param "insn" and
3476         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
3477         and local "li" from rtx to rtx_insn_list *, using methods of
3478         rtx_insn_list for clarity and typesafety.
3479         (add_to_delay_list): Strengthen return type and param "insn" from
3480         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
3481         rtx_insn_list * and use methods of rtx_insn_list.
3482         (delete_from_delay_slot): Strengthen return type, param "insn",
3483         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3484         Strengthen local "seq" from rtx to rtx_sequence *, and local
3485         "delay_list" from rtx to rtx_insn_list *, using methods of
3486         rtx_sequence for clarity and type-safety.
3487         (delete_scheduled_jump): Add checked cast when invoking
3488         delete_from_delay_slot.  Strengthen local "trial" from rtx to
3489         rtx_insn *.
3490         (optimize_skip): Strengthen return type and local "delay_list"
3491         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
3492         rtx_insn *.
3493         (steal_delay_list_from_target): Strengthen return type, param
3494         "delay_list" and local "new_delay_list" from rtx to
3495         rtx_insn_list *.  Strengthen param "seq" from rtx to
3496         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
3497         rtx_insn **.
3498         Split out local "temp" into multiple more-tightly scoped locals:
3499         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
3500         of rtx_insn_list and rtx_sequence for clarity and typesafety.
3501         Strengthen locals named "trial" from rtx to rtx_insn *.
3502         (steal_delay_list_from_fallthrough): Strengthen return type and
3503         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
3504         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
3505         Strengthen local "trial" from rtx to rtx_insn *.
3506         (try_merge_delay_insns): Strength local "merged_insns" from rtx
3507         to rtx_insn_list * and use its methods.  Strengthen local "pat"
3508         from rtx to rtx_sequence * and use its methods.  Strengthen locals
3509         "dtrial" and "new_rtx" from rtx to rtx_insn *.
3510         (get_label_before): Strengthen return type and local "label" from
3511         rtx to rtx_insn *.
3512         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3513         "next_trial", "next", prev".  Strengthen local "delay_list" from
3514         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
3515         rtx_insn **.
3516         (follow_jumps): Strengthen return type, param "label" and locals
3517         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3518         (fill_slots_from_thread): Strengthen return type, param
3519         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
3520         "insn", "thread", "opposite_thread" and locals "new_thread",
3521         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
3522         "sequence" from a checked cast to rtx_sequence so that we can call
3523         steal_delay_list_from_target and steal_delay_list_from_fallthrough
3524         with an rtx_sequence *.
3525         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3526         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3527         Strengthen local "delay_list" from rtx to rtx_insn_list *.
3528         (relax_delay_slots): Strengthen param "first" and locals "insn",
3529         "next", "trial", "delay_insn", "target_label" from rtx to
3530         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
3531         Introduce a local "trial_seq" for PATTERN (trial) of type
3532         rtx_sequence *, in both cases using methods of rtx_sequence.
3533         (dbr_schedule): Strengthen param "first" and locals "insn",
3534         "next", "epilogue_insn" from rtx to rtx_insn *.
3535
3536 2014-08-28  Richard Biener  <rguenther@suse.de>
3537
3538         PR tree-optimization/62283
3539         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3540         Do not peel loops for alignment where the vector loop likely
3541         doesn't run at least VF times.
3542
3543 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
3544
3545         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3546         important_candidates.  Consider all important candidates if
3547         IVS doesn't give any result.  Remove check on ivs->upto.
3548         (try_add_cand_for): Call iv_ca_add_use only once.
3549
3550 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3551             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3552             Anna Tikhonova  <anna.tikhonova@intel.com>
3553             Ilya Tocar  <ilya.tocar@intel.com>
3554             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3555             Ilya Verbin  <ilya.verbin@intel.com>
3556             Kirill Yukhin  <kirill.yukhin@intel.com>
3557             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3558
3559         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3560         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3561         masking.
3562         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3563         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3564         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3565         (define_insn "*mul<mode>3"): Add EVEX version.
3566
3567 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3568             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3569             Anna Tikhonova  <anna.tikhonova@intel.com>
3570             Ilya Tocar  <ilya.tocar@intel.com>
3571             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3572             Ilya Verbin  <ilya.verbin@intel.com>
3573             Kirill Yukhin  <kirill.yukhin@intel.com>
3574             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3575
3576         * config/i386/sse.md
3577         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3578         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3579         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3580         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3581         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3582         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3583         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3584         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3585         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3586         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3587         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3588         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3589         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3590         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3591         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3592         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3593
3594 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3595             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3596             Anna Tikhonova  <anna.tikhonova@intel.com>
3597             Ilya Tocar  <ilya.tocar@intel.com>
3598             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3599             Ilya Verbin  <ilya.verbin@intel.com>
3600             Kirill Yukhin  <kirill.yukhin@intel.com>
3601             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3602
3603         * config/i386/sse.md
3604         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3605         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3606         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3607
3608 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3609             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3610             Anna Tikhonova  <anna.tikhonova@intel.com>
3611             Ilya Tocar  <ilya.tocar@intel.com>
3612             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3613             Ilya Verbin  <ilya.verbin@intel.com>
3614             Kirill Yukhin  <kirill.yukhin@intel.com>
3615             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3616
3617         * config/i386/sse.md
3618         (define_mode_iterator VI128_256): New.
3619         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3620
3621 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3622             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3623             Anna Tikhonova  <anna.tikhonova@intel.com>
3624             Ilya Tocar  <ilya.tocar@intel.com>
3625             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3626             Ilya Verbin  <ilya.verbin@intel.com>
3627             Kirill Yukhin  <kirill.yukhin@intel.com>
3628             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3629
3630         * config/i386/sse.md
3631         (define_mode_iterator VI8_256_512): New.
3632         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3633         Ditto.
3634         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3635         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3636         Ditto.
3637         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3638
3639 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3640
3641         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
3642         pointer to the cumulative reloc value and return the value for
3643         this reloc instead.
3644         (compute_reloc_for_rtx): Take a const_rtx.  Call
3645         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3646         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
3647         for_each_rtx for the CONST case.
3648
3649 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3650
3651         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3652         (mark_constants_in_pattern): ...this new function to iterate over
3653         all the subrtxes.
3654         (mark_constants): Update accordingly.
3655
3656 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3657
3658         * varasm.c: Include rtl-iter.h.
3659         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3660         Remove the pointer to the cumulative hashval_t and just return
3661         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
3662         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3663         Accumulate the hashval_ts here instead of const_rtx_hash_1.
3664
3665 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3666
3667         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3668         Give real type of data parameter.  Remove return value.
3669         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3670         to iterate over subrtxes.
3671
3672 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3673
3674         * var-tracking.c (use_narrower_mode_test): Turn from being a
3675         for_each_rtx callback to being a function that examines each
3676         subrtx itself.
3677         (adjust_mems): Update accordingly.
3678
3679 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3680
3681         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3682         callback to being a function that examines each subrtx itself.
3683         Remove handling of null rtxes.
3684         (add_uses): Update accordingly.
3685
3686 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3687
3688         * var-tracking.c: Include rtl-iter.h.
3689         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3690         to being a function that examines each subrtx itself.
3691         (use_type): Update accordingly.
3692
3693 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3694
3695         * store-motion.c: Include rtl-iter.h.
3696         (extract_mentioned_regs_1): Delete.
3697         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3698         for_each_rtx to iterate over subrtxes.
3699
3700 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3701
3702         * sel-sched.c: Include rtl-iter.h
3703         (count_occurrences_1): Delete.
3704         (count_occurrences_equiv): Turn rtxes into const_rtxes.
3705         Use FOR_EACH_SUBRTX rather than for_each_rtx.
3706
3707 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3708
3709         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3710         * rtlanal.c (tls_referenced_p_1): Delete.
3711         (tls_referenced_p): Take a const_rtx rather than an rtx.
3712         Use FOR_EACH_SUBRTX rather than for_each_rtx.
3713
3714 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3715
3716         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3717         (for_each_inc_dec): Take an rtx rather than an rtx *.
3718         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3719         (cselib_record_sets): Likewise.
3720         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3721         (check_for_inc_dec): Likewise.
3722         * rtlanal.c (for_each_inc_dec_ops): Delete.
3723         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3724         rather than a pointer to the memory address.  Replace
3725         for_each_inc_dec_ops argument with separate function and data
3726         arguments.  Abort on non-autoinc addresses.
3727         (for_each_inc_dec_find_mem): Delete.
3728         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
3729         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3730
3731 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3732
3733         * rtl.h (find_all_hard_regs): Declare.
3734         * rtlanal.c (find_all_hard_regs): New function.
3735         (record_hard_reg_uses_1): Delete.
3736         (record_hard_reg_uses): Use find_all_hard_regs.
3737
3738 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3739
3740         * rtl.h (replace_label_data): Delete.
3741         (replace_label): Take the old label, new label and update-nuses flag
3742         as direct arguments.  Return void.
3743         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3744         * rtlanal.c (replace_label): Update interface as above.  Handle
3745         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
3746         iterator.  Use FOR_EACH_SUBRTX_PTR.
3747
3748 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3749
3750         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3751         with const_rtx parameters.
3752         * varasm.c (get_pool_constant): Likewise.
3753         * rtlanal.c (rtx_referenced_p_1): Delete.
3754         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3755         Assert that the rtx we're looking for is nonnull.  Allow searches
3756         for constant pool SYMBOL_REFs.
3757
3758 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3759
3760         * reload1.c: Include rtl-iter.h.
3761         (note_reg_elim_costly): Turn from being a for_each_rtx callback
3762         to being a function that examines each subrtx itself.
3763         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3764
3765 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3766
3767         * regcprop.c (cprop_find_used_regs_1): Delete.
3768         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3769
3770 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3771
3772         * regcprop.c: Include rtl-iter.h.
3773         (kill_value): Take a const_rtx.
3774         (kill_autoinc_value): Turn from being a for_each_rtx callback
3775         to being a function that examines each subrtx itself.
3776         (copyprop_hardreg_forward_1): Update accordingly.
3777
3778 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3779
3780         * reg-stack.c: Include rtl-iter.h.
3781         (subst_stack_regs_in_debug_insn): Delete.
3782         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3783         instead of for_each_rtx.
3784
3785 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3786
3787         * lower-subreg.c (find_decomposable_subregs): Turn from being
3788         a for_each_rtx callback to being a function that examines each
3789         subrtx itself.  Remove handling of null rtxes.
3790         (decompose_multiword_subregs): Update accordingly.
3791
3792 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3793
3794         * lower-subreg.c (adjust_decomposed_uses): Delete.
3795         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3796         Remove handling of null rtxes.
3797
3798 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3799
3800         * lower-subreg.c: Include rtl-iter.h.
3801         (resolve_subreg_use): Turn from being a for_each_rtx callback
3802         to being a function that examines each subrtx itself.  Remove
3803         handling of null rtxes.
3804         (resolve_reg_notes, resolve_simple_move): Update accordingly.
3805         (decompose_multiword_subregs): Likewise.
3806
3807 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3808
3809         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3810         to being a function that examines each subrtx itself.
3811         (simplify_using_condition, simplify_using_initial_values): Update
3812         accordingly.
3813
3814 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3815
3816         * loop-iv.c: Include rtl-iter.h.
3817         (find_single_def_src): New function.
3818         (replace_single_def_regs): Turn from being a for_each_rtx callback
3819         to being a function that examines each subrtx itself.
3820         (replace_in_expr, simplify_using_initial_values): Update accordingly.
3821
3822 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3823
3824         * jump.c (eh_returnjump_p_1): Delete.
3825         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3826         Remove handling of null rtxes.
3827
3828 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3829
3830         * jump.c: Include rtl-iter.h.
3831         (returnjump_p_1): Delete.
3832         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3833         Remove handling of null rtxes.
3834
3835 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3836
3837         * ira.c: Include rtl-iter.h.
3838         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3839         to being a function that examines each subrtx itself.  Remove
3840         handling of null rtxes.
3841         (update_equiv_regs): Update call accordingly.
3842
3843 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3844
3845         * fwprop.c: Include rtl-iter.h.
3846         (varying_mem_p): Turn from being a for_each_rtx callback to being
3847         a function that examines each subrtx itself.
3848         (propagate_rtx): Update accordingly.
3849
3850 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3851
3852         * function.c: Include rtl-iter.h
3853         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3854         callback to being a function that examines each subrtx itself.
3855         Return the changed flag.
3856         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3857         (instantiate_virtual_regs): Update calls accordingly.
3858
3859 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3860
3861         * final.c: Include rtl-iter.h.
3862         (mark_symbol_ref_as_used): Delete.
3863         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3864         for_each_rtx.
3865
3866 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3867
3868         * emit-rtl.c: Include rtl-iter.h.
3869         (find_auto_inc): Turn from being a for_each_rtx callback to being
3870         a function that examines each subrtx itself.  Assume the first operand
3871         to an RTX_AUTOINC is the automodified register.
3872         (try_split): Update call accordingly.
3873
3874 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3875
3876         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3877         Return a bool, inverting the result so that 0/false means "not ok".
3878         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3879         subrtxes of a CONST.
3880         (mem_loc_descriptor, add_const_value_attribute)
3881         (resolve_addr_in_expr): Update calls accordingly.
3882
3883 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3884
3885         * dwarf2out.c: Include rtl-iter.h.
3886         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3887         Remove unused data parameter.  Return a bool, inverting the result
3888         so that 0/false means "not ok".
3889         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
3890         instead of for_each_rtx.
3891
3892 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3893
3894         * dse.c: Include rtl-iter.h.
3895         (check_mem_read_rtx): Change void * parameter to real type.
3896         Remove return value.
3897         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
3898         for_each_rtx.  Don't handle null rtxes.
3899
3900 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3901
3902         * df-problems.c: Include rtl-iter.h.
3903         (find_memory): Turn from being a for_each_rtx callback to being
3904         a function that examines each subrtx itself.  Continue to look for
3905         volatile references even after a nonvolatile one has been found.
3906         (can_move_insns_across): Update calls accordingly.
3907
3908 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3909
3910         * ddg.c (walk_mems_2, walk_mems_1): Delete.
3911         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3912         to iterate over subrtxes.  Return a bool rather than an int.
3913
3914 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3915
3916         * ddg.c: Include rtl-iter.h.
3917         (mark_mem_use_1): Rename to...
3918         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
3919         instead of for_each_rtx.
3920         (mem_read_insn_p): Update accordingly.
3921
3922 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3923
3924         * cse.c (change_cc_mode_args): Delete.
3925         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3926         a function that examines each subrtx itself.  Take the fields of
3927         change_cc_mode_args as argument and return void.
3928         (cse_change_cc_mode_insn): Update calls accordingly.
3929
3930 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3931
3932         * cse.c (is_dead_reg): Change argument to const_rtx.
3933         (dead_debug_insn_data): Delete.
3934         (is_dead_debug_insn): Expand commentary.  Turn from being a
3935         for_each_rtx callback to being a function that examines
3936         each subrtx itself.  Take the fields of dead_debug_insn_data
3937         as argument.
3938         (delete_trivially_dead_insns): Update call accordingly.
3939
3940 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3941
3942         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
3943         being a for_each_rtx callback to being a function that examines
3944         each subrtx itself.
3945         (cse_extended_basic_block): Update call accordingly.
3946
3947 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3948
3949         * cse.c (check_dependence_data): Delete.
3950         (check_dependence): Change from being a for_each_rtx callback to being
3951         a function that examines all subrtxes itself.  Don't handle null rtxes.
3952         (invalidate): Update call accordingly.
3953
3954 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3955
3956         * cse.c: Include rtl-iter.h.
3957         (approx_reg_cost_1): Delete.
3958         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3959         Don't handle null rtxes.
3960
3961 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3962
3963         * cfgcleanup.c: Include rtl-iter.h.
3964         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3965         to being a function that examines each subrtx itself.
3966         (thread_jump): Update accordingly.
3967
3968 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3969
3970         * combine-stack-adj.c: Include rtl-iter.h.
3971         (record_stack_refs_data): Delete.
3972         (record_stack_refs): Turn from being a for_each_rtx callback
3973         to being a function that examines each subrtx itself.
3974         Take a pointer to the reflist.  Invert sense of return value
3975         so that true means success and false means failure.  Don't
3976         handle null rtxes.
3977         (combine_stack_adjustments_for_block): Update accordingly.
3978
3979 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3980
3981         * combine.c (record_truncated_value): Turn from being a for_each_rtx
3982         callback to a function that takes an rtx and returns a bool
3983         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3984         for_each_rtx.
3985
3986 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3987
3988         * combine.c: Include rtl-iter.h.
3989         (unmentioned_reg_p_1): Delete.
3990         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3991         Don't handle null rtxes.
3992
3993 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3994
3995         * calls.c: Include rtl-iter.h.
3996         (internal_arg_pointer_based_exp_1): Delete.
3997         (internal_arg_pointer_based_exp): Take a const_rtx.
3998         Use FOR_EACH_SUBRTX to iterate over subrtxes.
3999
4000 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4001
4002         * caller-save.c: Include rtl-iter.h.
4003         (add_used_regs_1): Delete.
4004         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4005         to iterate over subrtxes.  Assert that any remaining pseudos
4006         have been spilled.
4007
4008 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4009
4010         * bt-load.c: Include rtl-iter.h.
4011         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4012         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
4013         to iterate over subrtxes.
4014         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4015         find_btr_use rather than btr_referenced_p.
4016
4017 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4018
4019         * alias.c: Include rtl-iter.h.
4020         (refs_newer_value_cb): Delete.
4021         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4022
4023 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4024
4025         * rtl-iter.h: New file.
4026         * rtlanal.c: Include it.
4027         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4028         (generic_subrtx_iterator <T>::add_single_to_queue)
4029         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4030         (generic_subrtx_iterator <T>::free_array): New functions.
4031         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4032         (generic_subrtx_iterator <const_rtx_accessor>)
4033         (generic_subrtx_iterator <rtx_var_accessor>
4034         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4035         (setup_reg_subrtx_bounds): New function.
4036         (init_rtlanal): Call it.
4037
4038 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4039
4040         PR target/62261
4041         * config/sh/sh.md (ashlsi3): Handle negative shift count for
4042         TARGET_SHMEDIA.
4043         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4044
4045 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
4046
4047         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4048
4049 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4050
4051         * rtl.h (JUMP_LABEL_AS_INSN): New.
4052
4053 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4054
4055         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4056         rtx_expr_list **.
4057         (alloc_EXPR_LIST): Strengthen return type from rtx to
4058         rtx_expr_list *.
4059         (remove_free_EXPR_LIST_node): Likewise for param.
4060         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4061         from rtx to rtx_expr_list *.
4062         * sched-int.h (struct deps_desc): Strengthen fields
4063         "pending_read_mems" and "pending_write_mems" from rtx to
4064         rtx_expr_list *.
4065
4066         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4067         rtx to rtx_expr_list *.
4068         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4069         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4070         rtx_expr_list **.
4071         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
4072         from rtx to rtx_expr_list *.
4073         * loop-iv.c (simplify_using_initial_values): Strengthen local
4074         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4075         "pnote_next" from rtx * to rtx_expr_list **.
4076         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
4077         param "exprp" from rtx * to rtx_expr_list **.
4078         (add_insn_mem_dependence): Strengthen local "mem_list" from
4079         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
4080         to rtx_expr_list *.
4081         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4082         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
4083         param "old_mems_p" from rtx * to rtx_expr_list **.
4084         * var-tracking.c (struct adjust_mem_data): Strengthen field
4085         "side_effects" from rtx to rtx_expr_list *.
4086         (adjust_insn): Replace NULL_RTX with NULL when assigning to
4087         rtx_expr_list *.
4088         (prepare_call_arguments): Likewise.
4089
4090 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4091
4092         * function.h (struct rtl_data): Strengthen field
4093         "x_stack_slot_list" from rtx to rtx_expr_list *.
4094
4095         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4096         when assigning to stack_slot_list.
4097
4098 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4099
4100         * function.h (struct rtl_data): Strengthen field
4101         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4102         * rtl.h (remove_node_from_expr_list): Strengthen second param from
4103         rtx * to rtx_expr_list **.
4104
4105         * cfgbuild.c (make_edges): In loop over
4106         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4107         rtx_expr_list *, and use methods of the latter class to clarify
4108         the code.
4109         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4110         rtx_expr_list *, and use methods of the latter class to clarify
4111         the code.
4112         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4113         * reload1.c (set_initial_label_offsets): Likewise for local "x".
4114         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4115         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
4116         to rtx_expr_list *.  Use methods of the latter class to clarify
4117         the code.
4118
4119 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4120
4121         * function.h (struct expr_status): Strengthen field
4122         "x_forced_labels" from rtx to rtx_expr_list *.
4123
4124         * cfgbuild.c (make_edges): Split local "x" into two locals,
4125         strengthening one from rtx to rtx_expr_list *, and using methods
4126         of said class.
4127         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4128         loop over forced_labels, introduce strengthen it from rtx to
4129         rtx_expr_list *, using methods to clarify the code.
4130         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4131         to rtx_expr_list *, using methods of said class to clarify the
4132         code.
4133         * reload1.c (set_initial_label_offsets): Split local "x" into two
4134         per-loop variables, strengthening the first from rtx to
4135         rtx_expr_list * and using methods.
4136
4137 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4138
4139         * coretypes.h (class rtx_expr_list): Add forward declaration.
4140         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4141         * gengenrtl.c (special_rtx): Add EXPR_LIST.
4142         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4143         invariant: GET_CODE (X) == EXPR_LIST.
4144         (is_a_helper <rtx_expr_list *>::test): New.
4145         (rtx_expr_list::next): New.
4146         (rtx_expr_list::element): New.
4147         (gen_rtx_EXPR_LIST): New.
4148
4149 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4150
4151         * varasm.c (mark_constants): Convert a GET_CODE check into a
4152         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4153         Use methods of rtx_sequence to clarify the code.
4154
4155 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4156
4157         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4158         local "seq" via a checked cast, and use methods of rtx_sequence
4159         to simplify the code.
4160
4161 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4162
4163         * resource.c (mark_referenced_resources): Strengthen local
4164         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4165         using methods of rtx_sequence to clarify the code.
4166         (find_dead_or_set_registers): Within the switch statement, convert
4167         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
4168         the JUMP_P handling, introduce another local "seq", adding a
4169         checked cast to rtx_sequence *.  In both cases, use methods of
4170         rtx_sequence to clarify the code.
4171         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4172         via a checked cast, and use methods of rtx_sequence to simplify
4173         the code.
4174
4175 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4176
4177         * reorg.c (redundant_insn): In two places in the function, replace
4178         a check of GET_CODE with a dyn_cast, introducing local "seq", and
4179         usings methods of rtx_sequence to clarify the code.
4180
4181 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4182
4183         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4184         local "seq" with a checked cast, and use methods of rtx_sequence
4185         to clarify the code.
4186
4187 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4188
4189         * function.c (contains): Introduce local "seq" for PATTERN (insn),
4190         with a checked cast, in the region for where we know it's a
4191         SEQUENCE.  Use methods of rtx_sequence.
4192
4193 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4194
4195         * final.c (get_attr_length_1): Replace GET_CODE check with a
4196         dyn_cast, introducing local "seq" and the use of methods of
4197         rtx_sequence.
4198         (shorten_branches): Likewise, introducing local "body_seq".
4199         Strengthen local "inner_insn" from rtx to rtx_insn *.
4200         (reemit_insn_block_notes): Replace GET_CODE check with a
4201         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4202         Use methods of rtx_sequence.
4203         (final_scan_insn): Likewise, introducing local "seq" for when
4204         "body" is known to be a SEQUENCE, using its methods.
4205
4206 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4207
4208         * except.c (can_throw_external): Strengthen local "seq" from rtx
4209         to rtx_sequence *.  Use methods of rtx_sequence.
4210         (insn_nothrow_p): Likewise.
4211
4212 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4213
4214         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4215         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4216         Use methods of rtx_sequence.
4217         (scan_trace): Likewise for local "pat".
4218
4219 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4220
4221         * coretypes.h (class rtx_sequence): Add forward declaration.
4222         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4223         invariant: GET_CODE (X) == SEQUENCE.
4224         (is_a_helper <rtx_sequence *>::test): New.
4225         (is_a_helper <const rtx_sequence *>::test): New.
4226         (rtx_sequence::len): New.
4227         (rtx_sequence::element): New.
4228         (rtx_sequence::insn): New.
4229
4230 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4231
4232         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4233         rtx_insn_list **.
4234         (alloc_INSN_LIST): Strengthen return type from rtx to
4235         rtx_insn_list *.
4236         (copy_INSN_LIST): Likewise for return type and param.
4237         (concat_INSN_LIST): Likewise for both params and return type.
4238         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4239         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
4240         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4241         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
4242
4243         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4244         "implicit_sets", "control_uses", "clobbers" from rtx to
4245         rtx_insn_list *.
4246         (struct deps_desc): Likewise for fields "pending_read_insns",
4247         "pending_write_insns", "pending_jump_insns",
4248         "last_pending_memory_flush", "last_function_call",
4249         "last_function_call_may_noreturn", "sched_before_next_call",
4250         "sched_before_next_jump".
4251         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4252         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4253
4254         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4255         from rtx to rtx_insn_list *.
4256         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4257         rtx_insn_list *.
4258
4259         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4260         to rtx_insn_list **.
4261         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4262         rtx_insn_list *.
4263         (queue_insn): Likewise for local "link".
4264         (struct haifa_saved_data): Strengthen field "insn_queue" from
4265         rtx * to rtx_insn_list **.
4266         (save_backtrack_point): Update allocation of save->insn_queue to
4267         reflect the strengthening of elements from rtx to rtx_insn_list *.
4268         (queue_to_ready): Strengthen local "link" from rtx to
4269         rtx_insn_list *; use methods "next" and "insn" when traversing the
4270         list.
4271         (early_queue_to_ready): Likewise for locals "link", "next_link",
4272         "prev_link".
4273         (schedule_block): Update allocation of insn_queue to reflect the
4274         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
4275         local "link" from rtx to rtx_insn_list *, and use methods when
4276         working it.
4277         (add_to_speculative_block): Strengthen locals "twins" and
4278         "next_node" from rtx to rtx_insn_list *, and use methods when
4279         working with them.  Strengthen local "twin" from rtx to
4280         rtx_insn *, eliminating a checked cast.
4281         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4282         from rtx to rtx_insn_list *, and use methods when working with
4283         them.
4284
4285         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4286         from rtx to rtx_insn_list *, adding a checked cast.
4287         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4288         rtx_insn_list **.
4289         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4290         "newlink" from rtx to rtx_insn_list *.  Strengthen local
4291         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
4292         from rtx to rtx_insn *.
4293         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4294         from rtx to rtx_insn_list *.  Use methods of the latter class.
4295         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4296         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4297         (remove_free_INSN_LIST_node): Strengthen return type and local
4298         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
4299         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
4300         rtx_insn_list *, using "insn" method.
4301
4302         * sched-deps.c (add_dependence_list):  Strengthen param "list"
4303         from rtx to rtx_insn_list *, and use methods when working with it.
4304         (add_dependence_list_and_free):  Strengthen param "listp" from
4305         rtx * to rtx_insn_list **.
4306         (remove_from_dependence_list): Strenghten param "listp" from rtx *
4307         to rtx_insn_list **, and use methods when working with *listp.
4308         (remove_from_both_dependence_lists): Strengthen param "listp" from
4309         rtx * to rtx_insn_list **
4310         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4311         to rtx_insn_list **.  Eliminate local "link", in favor of two new
4312         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4313         respectively.
4314         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4315         by introducing local "cond_deps".
4316         (remove_from_deps): Strengthen param "insn" from rtx to
4317         rtx_insn *.
4318
4319         * sched-rgn.c (concat_insn_mem_list): Strengthen param
4320         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4321         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4322         Use methods of rtx_insn_list.
4323
4324         * store-motion.c (struct st_expr): Strengthen fields
4325         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4326         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4327         rtx_insn_list *.
4328         (find_moveable_store): Split out "tmp" into multiple more-tightly
4329         scoped locals.  Use methods of rtx_insn_list *.
4330         (compute_store_table): Strengthen local "tmp" from rtx to
4331         rtx_insn *.  Use methods of rtx_insn_list *.
4332
4333 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4334
4335         * coretypes.h (class rtx_insn_list): Add forward declaration.
4336         * rtl.h (class rtx_insn_list): New subclass of rtx_def
4337         (is_a_helper <rtx_insn_list *>::test): New.
4338         (rtx_insn_list::next): New.
4339         (rtx_insn_list::insn): New.
4340         (gen_rtx_INSN_LIST): Add prototype.
4341         * emit-rtl.c (gen_rtx_INSN_LIST): New.
4342         * gengenrtl.c (special_rtx): Add INSN_LIST.
4343
4344 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4345
4346         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4347         "prev" from rtx to rtx_insn *.
4348
4349 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4350
4351         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4352         functions.  Require merely an rtx for now, not an rtx_insn *.
4353         (BLOCK_FOR_INSN): Likewise.
4354         (INSN_LOCATION): Likewise.
4355         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4356
4357 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4358
4359         * rtl.h (PATTERN): Convert this macro into a pair of inline
4360         functions, for now, requiring const_rtx and rtx.
4361
4362 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4363
4364         * target.def (unwind_emit): Strengthen param "insn" from rtx to
4365         rtx_insn *.
4366         (final_postscan_insn): Likewise.
4367         (adjust_cost): Likewise.
4368         (adjust_priority): Likewise.
4369         (variable_issue): Likewise.
4370         (macro_fusion_pair_p): Likewise.
4371         (dfa_post_cycle_insn): Likewise.
4372         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4373         (first_cycle_multipass_issue): Likewise.
4374         (dfa_new_cycle): Likewise.
4375         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4376         (speculate_insn): Likewise for param "insn".
4377         (gen_spec_check): Likewise for params "insn" and "label".
4378         (get_insn_spec_ds): Likewise for param "insn".
4379         (get_insn_checked_ds): Likewise.
4380         (dispatch_do): Likewise.
4381         (dispatch): Likewise.
4382         (cannot_copy_insn_p): Likewise.
4383         (invalid_within_doloop): Likewise.
4384         (legitimate_combined_insn): Likewise.
4385         (needed): Likewise.
4386         (after): Likewise.
4387
4388         * doc/tm.texi: Automatically updated to reflect changes to
4389         target.def.
4390
4391         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4392         working with insn.
4393         (schedule_block): Likewise.
4394         (sched_init): Likewise.
4395         (sched_speculate_insn): Strengthen param "insn" from rtx to
4396         rtx_insn *.
4397         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4398         working with insn.
4399         * hooks.c (hook_bool_rtx_true): Rename to...
4400         hook_bool_rtx_insn_true): ...this, and strengthen first param from
4401         rtx to rtx_insn *.
4402         (hook_constcharptr_const_rtx_null): Rename to...
4403         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4404         first param from const_rtx to const rtx_insn *.
4405         (hook_bool_rtx_int_false): Rename to...
4406         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4407         param from rtx to rtx_insn *.
4408         (hook_void_rtx_int): Rename to...
4409         (hook_void_rtx_insn_int): ...this, and strengthen first param from
4410         rtx to rtx_insn *.
4411
4412         * hooks.h (hook_bool_rtx_true): Rename to...
4413         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4414         rtx to rtx_insn *.
4415         (hook_bool_rtx_int_false): Rename to...
4416         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4417         param from rtx to rtx_insn *.
4418         (hook_void_rtx_int): Rename to...
4419         (hook_void_rtx_insn_int): ...this, and strengthen first param from
4420         rtx to rtx_insn *.
4421         (hook_constcharptr_const_rtx_null): Rename to...
4422         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4423         first param from const_rtx to const rtx_insn *.
4424
4425         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4426         and local "prev" from rtx to rtx_insn *.
4427
4428         * sched-int.h (sched_speculate_insn): Strengthen first param from
4429         rtx to rtx_insn *.
4430
4431         * sel-sched.c (create_speculation_check): Likewise for local "label".
4432         * targhooks.c (default_invalid_within_doloop): Strengthen param
4433         "insn" from const_rtx to const rtx_insn *.
4434         * targhooks.h (default_invalid_within_doloop): Strengthen param
4435         from const_rtx to const rtx_insn *.
4436
4437         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4438         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4439
4440         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4441         "insn".
4442         (arc_invalid_within_doloop): Likewise, with const.
4443
4444         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4445         (arm_cannot_copy_insn_p): Likewise for param "insn".
4446         (arm_unwind_emit): Likewise.
4447
4448         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4449         "dep_insn".
4450
4451         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4452         (c6x_variable_issue): Likewise.  Removed now-redundant checked
4453         cast.
4454         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4455
4456         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4457         Likewise for param "insn".
4458         (epiphany_mode_after): Likewise.
4459         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4460         params "insn", "dep_insn".
4461         (epiphany_mode_needed): Likewise for param "insn".
4462         (epiphany_mode_after): Likewise.
4463
4464         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4465         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4466         (ix86_avx_u128_mode_needed): Likewise.
4467         (ix86_i387_mode_needed): Likewise.
4468         (ix86_mode_needed): Likewise.
4469         (ix86_avx_u128_mode_after): Likewise.
4470         (ix86_mode_after): Likewise.
4471         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4472         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4473         (ix86_adjust_priority): Likewise for param "insn".
4474         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4475         (do_dispatch): Likewise.
4476         (has_dispatch): Likewise.
4477         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4478
4479         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4480         reflect renaming of default hook implementation from
4481         hook_constcharptr_const_rtx_null to
4482         hook_constcharptr_const_rtx_insn_null.
4483         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4484         rtx to rtx_insn *.
4485         (ia64_variable_issue): Likewise for param "insn".
4486         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4487         (ia64_dfa_new_cycle): Likewise.
4488         (ia64_get_insn_spec_ds): Likewise.
4489         (ia64_get_insn_checked_ds): Likewise.
4490         (ia64_speculate_insn): Likewise.
4491         (ia64_gen_spec_check): Likewise for params "insn", "label".
4492         (ia64_asm_unwind_emit): Likewise for param "insn".
4493
4494         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4495
4496         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4497         "insn", "def_insn".
4498         (m68k_sched_variable_issue): Likewise for param "insn".
4499
4500         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4501         "def_insn".
4502
4503         * config/microblaze/microblaze.c (microblaze_adjust_cost):
4504         Likewise for params "insn", "dep".
4505
4506         * config/mips/mips.c (mips_adjust_cost): Likewise.
4507         (mips_variable_issue): Likewise for param "insn".
4508         (mips_final_postscan_insn): Likewise.
4509
4510         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4511         for params "insn", "dep".
4512
4513         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4514         "dep_insn".
4515         (pa_adjust_priority): Likewise for param "insn".
4516
4517         * config/picochip/picochip.c (picochip_sched_adjust_cost):
4518         Likewise for params "insn", "dep_insn".
4519
4520         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4521         param "insn".
4522         (rs6000_variable_issue): Likewise.
4523         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4524         (rs6000_debug_adjust_cost): Likewise.
4525         (rs6000_adjust_priority): Likewise for param "insn".
4526         (rs6000_use_sched_lookahead_guard): Likewise.
4527         (get_next_active_insn): Likewise for return type and both params.
4528         (redefine_groups): Likewise for params "prev_head_insn", "tail"
4529         and locals "insn", "next_insn".
4530         (pad_groups): Likewise.
4531
4532         * config/s390/s390.c (s390_adjust_priority): Likewise for param
4533         "insn".
4534         (s390_cannot_copy_insn_p): Likewise.
4535         (s390_sched_variable_issue): Likewise for third param, eliminating
4536         checked cast.
4537         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4538         default hook implementation from hook_constcharptr_const_rtx_null
4539         to hook_constcharptr_const_rtx_insn_null.
4540
4541         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4542         from rtx to rtx_insn *.
4543         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4544         (sh_variable_issue): Likewise for param "insn".
4545         (sh_dfa_new_cycle): Likewise.
4546         (sh_mode_needed): Likewise.
4547         (sh_mode_after): Likewise.
4548
4549         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4550         params "insn", "dep_insn".
4551         (hypersparc_adjust_cost): Likewise.
4552         (sparc_adjust_cost): Likewise.
4553
4554         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4555         param, eliminated checked cast.
4556         (spu_sched_adjust_cost): Likewise for first and third params.
4557
4558         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4559         params "insn" and "dep_insn" from rtx to rtx_insn *.
4560
4561         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4562
4563 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
4564
4565         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4566         (set_is_load_p): ...this, updating to work on a SET pattern rather
4567         than an insn.
4568         (is_store_insn): Rename to...
4569         (set_is_store_p): ...this, updating to work on a SET pattern
4570         rather than an insn.
4571         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4572         top of function to where it is needed.  Rewrite the bogus
4573         condition that checks for "insn" and "dep" being PARALLEL to
4574         instead use single_set, introducing locals "insn_set" and
4575         "dep_set".  Given that we only ever returned "cost" for a non-pair
4576         of SETs, bail out early if we don't have a pair of SET.
4577         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4578         use the new locals "insn_set" and "dep_set", and update calls to
4579         is_load_insn and is_store_insn to be calls to set_is_load_p and
4580         set_is_store_p.
4581
4582 2014-08-27  Guozhi Wei  <carrot@google.com>
4583
4584         PR target/62262
4585         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4586         amount before using it.
4587
4588 2014-08-27  Richard Biener  <rguenther@suse.de>
4589
4590         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4591         get_maxval_strlen inside a more useful API.
4592         (gimple_fold_builtin_with_strlen): Remove and fold into ...
4593         (gimple_fold_builtin): ... caller.
4594         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4595         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4596         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4597         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4598         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4599         gimple_fold_builtin_sprintf): Adjust to compute maxval
4600         themselves.
4601
4602 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
4603
4604         PR other/62248
4605         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4606
4607 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4608             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4609             Anna Tikhonova  <anna.tikhonova@intel.com>
4610             Ilya Tocar  <ilya.tocar@intel.com>
4611             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4612             Ilya Verbin  <ilya.verbin@intel.com>
4613             Kirill Yukhin  <kirill.yukhin@intel.com>
4614             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4615
4616         * config/i386/sse.md
4617         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4618         Use `concat_tg_mode' attribute to determine asm register size.
4619
4620 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4621             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4622             Anna Tikhonova  <anna.tikhonova@intel.com>
4623             Ilya Tocar  <ilya.tocar@intel.com>
4624             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4625             Ilya Verbin  <ilya.verbin@intel.com>
4626             Kirill Yukhin  <kirill.yukhin@intel.com>
4627             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4628
4629         * config/i386/sse.md
4630         (define_mode_iterator VI48_AVX512VL): New.
4631         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4632         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4633         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4634         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4635         with VI1): Change mode iterator.
4636         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4637         with VI_ULOADSTORE_BW_AVX512VL): New.
4638         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4639         with VI_ULOADSTORE_F_AVX512VL): Ditto.
4640         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4641         with VI1): Change mode iterator.
4642         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4643         with VI_ULOADSTORE_BW_AVX512VL): New.
4644         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4645         with VI_ULOADSTORE_F_AVX512VL): Ditto.
4646         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4647         with VI1): Change mode iterator.
4648         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4649         with VI_ULOADSTORE_BW_AVX512VL): New.
4650         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4651         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4652         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4653         (define_insn "<avx512>_storedqu<mode>_mask" with
4654         VI48_AVX512VL): New.
4655         (define_insn "<avx512>_storedqu<mode>_mask" with
4656         VI12_AVX512VL): Ditto.
4657
4658 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4659             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4660             Anna Tikhonova  <anna.tikhonova@intel.com>
4661             Ilya Tocar  <ilya.tocar@intel.com>
4662             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4663             Ilya Verbin  <ilya.verbin@intel.com>
4664             Kirill Yukhin  <kirill.yukhin@intel.com>
4665             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4666
4667         * config/i386/sse.md
4668         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4669         (define_mode_iterator VI48_AVX512BW): New.
4670         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4671         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4672         with VI48_AVX2_48_AVX512F): New.
4673         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4674         with VI2_AVX512VL): Ditto.
4675
4676 2014-08-27  Richard Biener  <rguenther@suse.de>
4677
4678         PR middle-end/62239
4679         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4680         (fold_builtin_3): Do not fold strcat_chk here.
4681         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4682         from builtins.c.
4683         (gimple_fold_builtin): Fold strcat_chk here.
4684
4685 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
4686
4687         * dwarf2out.h (dwarf2out_decl): Remove prototype.
4688         * dwarf2out.c (dwarf2out_decl): Make static.
4689
4690 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
4691
4692         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4693
4694 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4695
4696         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4697         from rtx to rtx_insn *.
4698         (cselib_lookup_from_insn): Likewise for final param.
4699         (cselib_subst_to_values_from_insn): Likewise.
4700         (cselib_add_permanent_equiv): Likewise.
4701
4702         * cselib.c (cselib_current_insn): Likewise for this variable.
4703         (cselib_subst_to_values_from_insn): Likewise for param "insn".
4704         (cselib_lookup_from_insn): Likewise.
4705         (cselib_add_permanent_equiv): Likewise for param "insn" and local
4706         "save_cselib_current_insn".
4707         (cselib_process_insn): Replace use of NULL_RTX with NULL.
4708
4709         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4710         from rtx to rtx_insn *.
4711
4712 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4713
4714         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4715         rtx_insn *.
4716
4717 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4718
4719         * df.h (df_dump_insn_problem_function): Strengthen first param of
4720         this callback from const_rtx to const rtx_insn *.
4721         (struct df_insn_info): Strengthen field "insn" from rtx to
4722         rtx_insn *.
4723         (DF_REF_INSN): Eliminate this function, reinstating the older
4724         macro definition.
4725         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4726         (df_reg_defined): Likewise.
4727         (df_find_use): Likewise.
4728         (df_reg_used): Likewise.
4729         (df_dump_insn_top): Strengthen param 1 from const_rtx to
4730         const rtx_insn *.
4731         (df_dump_insn_bottom): Likewise.
4732         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4733         (df_insn_debug_regno): Likewise.
4734         (debug_df_insn): Likewise.
4735         (df_rd_simulate_one_insn): Likewise for param 2.
4736         (df_word_lr_simulate_defs): Likewise for param 1.
4737         (df_word_lr_simulate_uses): Likewise.
4738         (df_md_simulate_one_insn): Likewise for param 2.
4739         (df_simulate_find_noclobber_defs): Likewise for param 1.
4740         (df_simulate_find_defs): Likewise.
4741         (df_simulate_defs): Likewise.
4742         (df_simulate_uses): Likewise.
4743         (df_simulate_one_insn_backwards): Likewise for param 2.
4744         (df_simulate_one_insn_forwards): Likewise.
4745         (df_uses_create): Likewise for param 2.
4746         (df_insn_create_insn_record): Likewise for param 1.
4747         (df_insn_delete): Likewise.
4748         (df_insn_rescan): Likewise.
4749         (df_insn_rescan_debug_internal): Likewise.
4750         (df_insn_change_bb): Likewise.
4751         (df_notes_rescan): Likewise.
4752         * rtl.h (remove_death): Likewise for param 2.
4753         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4754         const rtx_insn *.
4755         * sched-int.h (reemit_notes): Strengthen param from rtx to
4756         rtx_insn *.
4757         * valtrack.h (propagate_for_debug): Likewise for param 1.
4758
4759         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4760         local "tmp_rtx" from const_rtx to const rtx_insn *.
4761         * combine.c (remove_death): Strengthen param "insn" from rtx to
4762         rtx_insn *.
4763         (move_deaths): Likewise for local "where_dead".
4764         * cse.c (delete_trivially_dead_insns): Introduce local
4765         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4766         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4767         rtx_insn *.
4768         (df_reg_defined): Likewise.
4769         (df_find_use): Likewise.
4770         (df_reg_used): Likewise.
4771         (df_dump_insn_problem_data): Strengthen param "insn" from
4772         const_rtx to const rtx_insn *.
4773         (df_dump_insn_top): Likewise.
4774         (df_dump_insn_bottom): Likewise.
4775         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4776         (df_insn_debug_regno): Likewise.
4777         (debug_df_insn): Likewise.
4778         (DF_REF_INSN): Delete.
4779         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4780         from rtx to rtx_insn *.
4781         (df_chain_insn_top_dump): Strengthen param "insn" from
4782         const_rtx to const rtx_insn *.
4783         (df_chain_insn_bottom_dump): Likewise.
4784         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4785         rtx_insn *.
4786         (df_word_lr_simulate_uses): Likewise.
4787         (df_print_note): Likewise.
4788         (df_remove_dead_and_unused_notes): Likewise.
4789         (df_set_unused_notes_for_mw): Likewise.
4790         (df_set_dead_notes_for_mw): Likewise.
4791         (df_create_unused_note): Likewise.
4792         (df_simulate_find_defs): Likewise.
4793         (df_simulate_find_uses): Likewise.
4794         (df_simulate_find_noclobber_defs): Likewise.
4795         (df_simulate_defs): Likewise.
4796         (df_simulate_uses): Likewise.
4797         (df_simulate_one_insn_backwards): Likewise.
4798         (df_simulate_one_insn_forwards): Likewise.
4799         (df_md_simulate_one_insn): Likewise.
4800         * df-scan.c (df_uses_create): Likewise.
4801         (df_insn_create_insn_record): Likewise.
4802         (df_insn_delete): Likewise.
4803         (df_insn_rescan): Likewise.
4804         (df_insn_rescan_debug_internal): Likewise.
4805         (df_insn_change_bb): Likewise.
4806         (df_notes_rescan): Likewise.
4807         (df_refs_add_to_chains): Likewise.
4808         (df_insn_refs_verify): Likewise.
4809         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4810         when invoking df_insn_delete.
4811         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4812         (set_unique_reg_note): Add checked cast.
4813         * final.c (cleanup_subreg_operands): Likewise.
4814         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4815         "insn" from rtx to rtx_insn *.
4816         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4817         "last" from rtx to rtx_insn *.
4818         * ira-emit.c (change_regs_in_insn): New function.
4819         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4820         Invoke change_regs_in_insn rather than change_regs.
4821         * ira.c (update_equiv_regs): Strengthen locals "insn",
4822         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
4823         for_each_rtx_in_insn rather than for_each_rtx.
4824         * recog.c (confirm_change_group): Add checked casts.
4825         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4826         Add checked cast.
4827         (peep2_fill_buffer): Add checked cast.
4828         * rtlanal.c (remove_note): Likewise.
4829         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4830         locals "next" "end" from rtx to rtx_insn *.
4831
4832 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4833
4834         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4835         to rtx_insn *.
4836         (struct reg_use_data): Likewise for field "insn".
4837         (insn_cost): Likewise for param.
4838         (real_insn_for_shadow): Likewise for return type and param.
4839         (increase_insn_priority): Likewise for param 1.
4840         (debug_dependencies): Likewise for both params.
4841
4842         * haifa-sched.c (insn_delay): Likewise for param "insn".
4843         (real_insn_for_shadow): Likewise for return type and param "insn".
4844         (update_insn_after_change): Likewise for param "insn".
4845         (recompute_todo_spec): Likewise for param "next" and locals "pro",
4846         "other".
4847         (insn_cost): Likewise for param "insn".
4848         (increase_insn_priority): Likewise.
4849         (calculate_reg_deaths): Likewise.
4850         (setup_insn_reg_pressure_info): Likewise.
4851         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4852         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4853         (model_recompute): Likewise.
4854         (must_restore_pattern_p): Likewise for param "next".
4855         (model_excess_cost): Likewise for param "insn".
4856         (queue_remove): Likewise.
4857         (adjust_priority): Likewise for param "prev".
4858         (update_register_pressure): Likewise for param "insn".
4859         (setup_insn_max_reg_pressure): Likewise for local "insn".
4860         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4861         (model_add_to_schedule): Likewise.
4862         (model_reset_queue_indices): Likewise for local "insn".
4863         (unschedule_insns_until): Strengthen local "recompute_vec" from
4864         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
4865         "con" from rtx to rtx_insn *.
4866         (restore_last_backtrack_point): Likewise for both locals "x". Add
4867         checked casts.
4868         (estimate_insn_tick): Likewise for param "insn".
4869         (commit_schedule): Likewise for params "prev_head", "tail" and
4870         local "x".
4871         (verify_shadows): Likewise for locals "i1", "i2".
4872         (dump_insn_stream): Likewise for params "head", "tail" and locals
4873         "next_tail", "insn".
4874         (schedule_block): Likewise for locals "insn", "x".  Add a checked
4875         cast.
4876         (fix_inter_tick): Likewise for params "head", "tail".
4877         (create_check_block_twin): Likewise for local "jump".
4878         (haifa_change_pattern): Likewise for param "insn".
4879         (haifa_speculate_insn): Likewise.
4880         (dump_new_block_header): Likewise for params "head", "tail".
4881         (fix_jump_move): Likewise for param "jump".
4882         (move_block_after_check): Likewise.
4883         (sched_init_insn_luid): Likewise for param "insn".
4884         (sched_init_luids): Likewise for local "insn".
4885         (insn_luid): Likewise for param "insn".
4886         (init_h_i_d): Likewise.
4887         (haifa_init_h_i_d): Likewise for local "insn".
4888         (haifa_init_insn): Likewise for param "insn".
4889         * sched-deps.c (add_dependence): Likewise for local "real_pro",
4890         "other".
4891         (create_insn_reg_use): Likewise for param "insn".
4892         (setup_insn_reg_uses): Likewise.  Add a checked cast.
4893         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4894         "tail" from rtx to rtx_insn *.
4895         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4896         "insn", "next_tail".
4897
4898 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4899
4900         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4901         from rtx to rtx_insn *.
4902         (model_add_to_schedule): Likewise for locals "start", "end",
4903         "iter".
4904
4905 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4906
4907         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4908         rtx_insn *.
4909         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
4910         "to" and locals "insn", "next", "copy".  Remove now-redundant
4911         checked cast.
4912
4913 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4914
4915         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4916         rtx_insn * and param 4 from rtx * to rtx_insn **.
4917         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4918         param 2 from rtx * to rtx_insn **.
4919
4920         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4921         rtx_insn * and final param from rtx * to rtx_insn **.
4922
4923         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4924         from rtx to rtx_insn *.
4925         (try_head_merge_bb): Likewise for both locals named "move_upto".
4926         * df-problems.c (can_move_insns_across): Likewise for params
4927         "from", "to", "across_from", "across_to" and locals "insn",
4928         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
4929         rtx_insn **.
4930         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4931         from rtx to rtx_insn *.
4932         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4933         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
4934         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4935         rtx_insn *.
4936         (noce_try_abs): Likewise.
4937         (noce_get_condition): Likewise for param "jump".  Strengthen param
4938         "earliest" from rtx * to rtx_insn **.
4939         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4940         rtx_insn *.
4941         (find_cond_trap): Likewise.
4942         (dead_or_predicable): Likewise for local "earliest".
4943         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
4944         checked cast.
4945         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4946         and local "prev".  Strengthen param "earliest" from rtx * to
4947         rtx_insn **.
4948         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4949         Strengthen param "earliest" from rtx * to rtx_insn **.
4950
4951 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4952
4953         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4954         "to" and local "insn" from rtx to rtx_insn *.
4955
4956 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4957
4958         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4959         from rtx to rtx_insn *.
4960         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4961         (code_motion_path_driver): Likewise for local "last_insn".
4962         (simplify_changed_insns): Likewise for local "insn".
4963
4964 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4965
4966         * rtl.h (push_to_sequence): Strengthen param from rtx to
4967         rtx_insn *.
4968         (push_to_sequence2): Likewise for both params.
4969         (delete_insns_since): Likewise for param.
4970         (reorder_insns_nobb): Likewise for all three params.
4971         (set_new_first_and_last_insn): Likewise for both params.
4972
4973         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4974         rtx_insn *.  Remove now-redundant cast.
4975         (set_last_insn): Likewise.
4976
4977         * builtins.c (expand_builtin_return): Strengthen local
4978         "call_fusage" from rtx to rtx_insn *.
4979         * cfgrtl.c (create_basic_block_structure): Likewise for local
4980         "after".
4981         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4982         "first", "last" and local "insn".
4983         (delete_insns_since): Likewise for param "from".
4984         (reorder_insns_nobb): Likewise for params "from", "to", "after"
4985         and local "x".
4986         (push_to_sequence): Likewise for param "first" and local "last".
4987         (push_to_sequence2): Likewise for params "first" and "last".
4988         * lra.c (emit_add3_insn): Likewise for local "last".
4989         (lra_emit_add): Likewise.
4990         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4991         "last_insn".
4992         (process_address_1): Likewise for locals "insn", last".
4993         * modulo-sched.c (ps_first_note): Likewise for return type.
4994         * optabs.c (expand_binop_directly): Likewise for param "last".
4995
4996 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
4997
4998         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4999         to rtx_insn*.
5000         * emit-rtl.c (get_last_insn_anywhere): Likewise.
5001
5002 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5003
5004         * function.h (struct sequence_stack): Strengthen fields "first"
5005         and "last" from rtx to rtx_insn *.
5006         (struct emit_status): Likewise for fields "x_first_insn" and
5007         "x_last_insn".
5008
5009         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5010         (set_first_insn): Add checked cast.
5011         (get_last_insn): Remove now-redundant checked cast.
5012         (set_last_insn): Add checked cast.
5013
5014         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5015         "saved_first" and "saved_last" from rtx to rtx_insn *.
5016
5017 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5018
5019         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5020         (unlink_insn_chain): Strengthen both params from rtx to
5021         rtx_insn *.
5022
5023         * cfgrtl.c (cfg_layout_function_header): Likewise for this
5024         variable.
5025         (unlink_insn_chain): Likewise for params "first" and "last".
5026         Remove now-redundant checked cast.
5027         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5028         (fixup_reorder_chain): Strengthen local "insn" from rtx to
5029         rtx_insn *.
5030         * emit-rtl.c (link_insn_into_chain): Likewise for all three
5031         params.
5032         (add_insn): Likewise for param "insn" and local "prev".
5033         (add_insn_after_nobb): Likewise for both params and local "next".
5034         (add_insn_before_nobb): Likewise for both params and local "prev".
5035         (add_insn_after): Rename param "after" to "uncast_after",
5036         introducing local "after" with another checked cast.
5037         (add_insn_before): Rename params "insn" and "before", giving them
5038         "uncast_" prefixes, adding the old names back using checked casts.
5039         (emit_note_after): Likewise for param "after".
5040         (emit_note_before): Likewise for param "before".
5041         (emit_label): Add a checked cast.
5042
5043 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5044
5045         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
5046         "insn" from rtx to rtx_insn *.
5047
5048         * cselib.c (cselib_record_sets_hook): Likewise.
5049
5050         * var-tracking.c (add_with_sets): Likewise, renaming back from
5051         "uncast_insn" to "insn" and eliminating the checked cast from rtx
5052         to rtx_insn *.
5053
5054 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5055
5056         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5057         and "header_" from rtx to rtx_insn *.
5058         (struct basic_block_d): Likewise for field "head_" within "x"
5059         field of union basic_block_il_dependent.
5060         (BB_HEAD): Drop function...
5061         (SET_BB_HEAD): ...and this function in favor of...
5062         (BB_HEAD): ...reinstate macro.
5063         (BB_END): Drop function...
5064         (SET_BB_END): ...and this function in favor of...
5065         (BB_END): ...reinstate macro.
5066         (BB_HEADER): Drop function...
5067         (SET_BB_HEADER): ...and this function in favor of...
5068         (BB_HEADER): ...reinstate macro.
5069
5070         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5071         (fix_crossing_unconditional_branches): Likewise.
5072         * caller-save.c (save_call_clobbered_regs): Likewise.
5073         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5074         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5075         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5076         (merge_blocks_move_successor_nojumps): Likewise.
5077         (outgoing_edges_match): Update use of for_each_rtx to
5078         for_each_rtx_in_insn.
5079         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5080         (expand_gimple_cond): Likewise.
5081         (expand_gimple_tailcall): Likewise.
5082         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5083         SET_BB_END.
5084         (construct_exit_block): Drop use of SET_BB_END.
5085         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5086         rtx_insn *.
5087         (delete_insn): Rename param "insn" to "uncast_insn", introducing
5088         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
5089         SET_BB_HEAD and SET_BB_END.
5090         (create_basic_block_structure): Drop use of SET_BB_HEAD and
5091         SET_BB_END.
5092         (rtl_delete_block): Drop use of SET_BB_HEAD.
5093         (rtl_split_block): Drop use of SET_BB_END.
5094         (emit_nop_for_unique_locus_between): Likewise.
5095         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5096         (block_label): Drop use of SET_BB_HEAD.
5097         (fixup_abnormal_edges): Drop use of SET_BB_END.
5098         (record_effective_endpoints): Drop use of SET_BB_HEADER.
5099         (relink_block_chain): Likewise.
5100         (fixup_reorder_chain): Drop use of SET_BB_END.
5101         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5102         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5103         rtx_insn **.  Drop use of SET_BB_HEADER.
5104         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5105         SET_BB_HEAD.
5106         (BB_HEAD): Delete this function.
5107         (SET_BB_HEAD): Likewise.
5108         (BB_END): Likewise.
5109         (SET_BB_END): Likewise.
5110         (BB_HEADER): Likewise.
5111         (SET_BB_HEADER): Likewise.
5112         * emit-rtl.c (add_insn_after):  Rename param "insn" to
5113         "uncast_insn", adding a new local "insn" and a checked cast to
5114         rtx_insn *.  Drop use of SET_BB_END.
5115         (remove_insn): Strengthen locals "next" and "prev" from rtx to
5116         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
5117         (reorder_insns): Drop use of SET_BB_END.
5118         (emit_insn_after_1): Strengthen param "first" and locals "last",
5119         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
5120         (emit_pattern_after_noloc): Add checked cast.
5121         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5122         (restore_other_notes): Likewise.
5123         (move_insn): Likewise.
5124         (sched_extend_bb): Likewise.
5125         (fix_jump_move): Likewise.
5126         * ifcvt.c (noce_process_if_block): Likewise.
5127         (dead_or_predicable): Likewise.
5128         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5129         * reg-stack.c (change_stack): Drop use of SET_BB_END.
5130         * sel-sched-ir.c (sel_move_insn): Likewise.
5131         * sel-sched.c (move_nop_to_previous_block): Likewise.
5132
5133         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5134         SET_BB_END.
5135         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5136
5137 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5138
5139         * basic-block.h (create_basic_block_structure): Strengthen params
5140         1 "head" and 2 "end" from rtx to rtx_insn *.
5141         * cfgrtl.c (create_basic_block_structure): Likewise.
5142         (rtl_create_basic_block): Update casts from void * to rtx to
5143         rtx_insn *, so that we can pass them as rtx_insn * to
5144         create_basic_block_structure.
5145         * sel-sched-ir.c (sel_create_basic_block): Likewise.
5146
5147 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5148
5149         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5150         rtx_insn **.
5151         (check_for_inc_dec): Strengthen param "insn" from rtx to
5152         rtx_insn *.
5153
5154         * cselib.h (cselib_process_insn): Likewise.
5155
5156         * cselib.c (cselib_record_sets): Likewise.
5157         (cselib_process_insn): Likewise.
5158
5159         * dse.c (struct insn_info): Likewise for field "insn".
5160         (check_for_inc_dec_1): Likewise for local "insn".
5161         (check_for_inc_dec): Likewise for param "insn".
5162         (scan_insn): Likewise.
5163         (dse_step1): Likewise for local "insn".
5164
5165         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5166         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
5167
5168 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5169
5170         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5171         from rtx to rtx_insn *.
5172         (DEP_PRO): Delete this function and...
5173         (SET_DEP_PRO): ...this function in favor of...
5174         (DEP_PRO): ...reinstate this macro.
5175         (DEP_CON): Delete this function and...
5176         (SET_DEP_CON): ...this function in favor of...
5177         (DEP_CON): ...reinstate this old macro.
5178         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5179         (init_dep): Likewise.
5180         (set_priorities): Likewise for both params.
5181         (sd_copy_back_deps): Likewise for params 1 and 2.
5182
5183         * haifa-sched.c (priority): Likewise for param "insn" and local
5184         "next".
5185         (set_priorities): Likewise for params "head" and "tail" and local
5186         "insn".
5187         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5188         local "consumer".
5189         (add_to_speculative_block): Add a checked cast.
5190         (create_check_block_twin): Drop use of SET_DEP_CON.
5191         (add_jump_dependencies): Strengthen params "insn" and "jump" from
5192         rtx to rtx_insn *.
5193
5194         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5195         Drop use of SET_DEP_PRO
5196         (init_dep): Strengthen params "pro" and "con" from rtx to
5197         rtx_insn *.
5198         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
5199         use of SET_DEP_CON.
5200         (DEP_PRO): Delete.
5201         (DEP_CON): Delete.
5202         (SET_DEP_PRO): Delete.
5203         (SET_DEP_CON): Delete.
5204
5205 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5206
5207         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5208         from rtx to rtx_insn *.
5209         (VINSN_INSN_RTX): Eliminate rvalue function and...
5210         (SET_VINSN_INSN): ...lvalue function in favor of...
5211         (VINSN_INSN_RTX): reinstate this old macro.
5212
5213         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5214         in favor of VINSN_INSN_RTX.
5215         (VINSN_INSN_RTX): Delete this function.
5216         (SET_VINSN_INSN_RTX): Likewise.
5217
5218 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5219
5220         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5221         (BND_TO): Delete this function and...
5222         (SET_BND_TO): ...this functions in favor of...
5223         (BND_TO): ...reinstating this macro.
5224         (struct _fence): Strengthen field "executing_insns" from
5225         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
5226         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5227         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5228         and param "insn" from rtx to insn_t.
5229         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5230         rtx_insn *.
5231
5232         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5233         vec<rtx_insn *> .
5234         (rtx_vec_t): Likewise.
5235         (struct sched_deps_info_def): Strengthen param of "start_insn"
5236         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
5237         "note_mem_dep" callback and first param of "note_dep" callback.
5238
5239         * haifa-sched.c (add_to_speculative_block): Strengthen param
5240         "insn" from rtx to rtx_insn *.
5241         (clear_priorities): Likewise.
5242         (calc_priorities): Likewise for local "insn".
5243
5244         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5245         Remove redundant checked cast.
5246         (haifa_note_mem_dep): Likewise for param "pending_insn".
5247         (haifa_note_dep): Likewise for param "elem".
5248         (note_mem_dep): Likewise for param "e".
5249         (sched_analyze_1): Add checked casts.
5250         (sched_analyze_2): Likewise.
5251
5252         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5253         from rtx to rtx_insn *.
5254         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5255         from vec<rtx> * to vec<rtx_insn *> *.
5256
5257         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5258         scaffolding.
5259         (flist_add): Strengthen param "executing_insns" from
5260         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5261         (advance_deps_context): Remove now-redundant checked cast.
5262         (init_fences): Replace uses of NULL_RTX with NULL.
5263         (merge_fences): Strengthen params "last_scheduled_insn" and
5264         "sched_next" from rtx to rtx_insn * and "executing_insns" from
5265         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5266         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5267         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5268         an instruction, rather than doing double-duty as a pattern.
5269         (return_nop_to_pool): Update for change of insn_t.
5270         (deps_init_id): Remove now-redundant checked cast.
5271         (struct sched_scan_info_def): Strengthen param of "init_insn"
5272         callback from rtx to insn_t.
5273         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5274         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5275         NULL.
5276         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5277         "end" from rtx to rtx_insn *.
5278         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5279         (rtx insn_rtx, bool force_unique_p)
5280         (BND_TO): Delete function.
5281         (SET_BND_TO): Delete function.
5282
5283         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5284         rtx to rtx_insn *.
5285         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5286         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5287         rtx to rtx_insn *.
5288         (undo_transformations): Likewise for param "insn".
5289         (update_liveness_on_insn): Likewise.
5290         (compute_live_below_insn): Likewise for param "insn" and local
5291         "succ".
5292         (update_data_sets): Likewise for param "insn".
5293         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5294         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5295         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5296         rtx_insn *.
5297         (move_cond_jump): Likewise for param "insn".
5298         (move_cond_jump): Drop use of SET_BND_TO.
5299         (compute_av_set_on_boundaries): Likewise.
5300         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5301         (update_and_record_unavailable_insns): Strengthen local "bb_end"
5302         from rtx to rtx_insn *.
5303         (maybe_emit_renaming_copy): Likewise for param "insn".
5304         (maybe_emit_speculative_check): Likewise.
5305         (handle_emitting_transformations): Likewise.
5306         (remove_insn_from_stream): Likewise.
5307         (code_motion_process_successors): Strengthen local "succ" from rtx
5308         to insn_t.
5309
5310 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5311
5312         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5313         ilist_t, not _xlist_t;
5314         (ILIST_INSN): Define in terms of new union field "insn".
5315         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5316         _XLIST_NEXT.
5317         (struct _list_node): Add new field "insn" to the union, of type
5318         insn_t.
5319         (ilist_add): Replace macro with an inline function, requiring an
5320         insn_t.
5321         (ilist_remove): Define this macro directly in terms of
5322         _list_remove, rather than indirectly via _xlist_remove.
5323         (ilist_clear): Likewise, in terms of _list_clear rather than
5324         _xlist_clear.
5325         (ilist_is_in_p): Replace macro with an inline function, requiring
5326         an insn_t.
5327         (_list_iter_cond_insn): New function.
5328         (ilist_iter_remove): Define this macro directly in terms of
5329         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5330         (ilist_iterator): Define directly in terms of _list_iterator
5331         rather than indirectly through _xlist_iterator.
5332         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5333         than in terms of _FOR_EACH_X.
5334         (FOR_EACH_INSN_1): Likewise.
5335
5336 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
5337
5338         PR target/60606
5339         PR target/61330
5340         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5341         DECL_HARD_REGISTER and return for invalid register specifications.
5342         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5343         DECL_HARD_REGISTER, call expand_one_error_var.
5344         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5345         CC_REGNUM with non-MODE_CC modes.
5346         (arm_regno_class): Return NO_REGS for PC_REGNUM.
5347
5348 2014-08-26  Marek Polacek  <polacek@redhat.com>
5349
5350         PR c/61271
5351         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5352
5353 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
5354
5355         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5356         qi cost; add di cost.
5357         (cortexa57_addrcost_table): Likewise.
5358
5359 2014-08-26  Marek Polacek  <polacek@redhat.com>
5360
5361         PR c/61271
5362         * expr.c (is_aligning_offset): Remove logical not.
5363
5364 2014-08-26  Marek Polacek  <polacek@redhat.com>
5365
5366         PR c/61271
5367         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5368         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5369
5370 2014-08-26  Richard Biener  <rguenther@suse.de>
5371
5372         PR tree-optimization/62175
5373         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5374         expand possibly trapping operations.
5375
5376 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
5377
5378         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5379         "insn" from rtx to rtx_insn *.
5380         (permute_load): Likewise for param "insn".
5381         (permute_store): Likewise.
5382         (handle_special_swappables): Likewise for local "insn".
5383         (replace_swap_with_copy): Likewise for locals "insn" and
5384         "new_insn".
5385         (rs6000_analyze_swaps): Likewise for local "insn".
5386
5387 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5388
5389         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5390         to rtx_insn *.
5391
5392 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5393
5394         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5395         "note_list" from rtx to rtx_insn *.
5396         (BB_NOTE_LIST): Replace this function and...
5397         (SET_BB_NOTE_LIST): ...this function with...
5398         (BB_NOTE_LIST): ...the former macro implementation.
5399
5400         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5401         local "from_start" from rtx to rtx_insn *.  Strengthen param
5402         "to_endp" from rtx * to rtx_insn **.
5403
5404         * haifa-sched.c (concat_note_lists): Likewise.
5405         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5406         BB_NOTE_LIST.
5407         (sel_restore_notes): Likewise.
5408         (move_bb_info): Likewise.
5409         (BB_NOTE_LIST): Delete this function.
5410         (SET_BB_NOTE_LIST): Delete this function.
5411         * sel-sched.c (create_block_for_bookkeeping): Eliminate
5412         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5413
5414 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5415
5416         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5417         from rtx * to rtx_insn **.
5418         (reorder2): Likewise.
5419         (dependencies_evaluation_hook): Strengthen params "head", "tail"
5420         from rtx to rtx_insn *.
5421
5422         * doc/tm.texi: Update mechanically for above change to target.def.
5423
5424         * sched-int.h (note_list): Strengthen this variable from rtx to
5425         rtx_insn *.
5426         (remove_notes): Likewise for both params.
5427         (restore_other_notes): Likewise for return type and first param.
5428         (struct ready_list): Strengthen field "vec" from rtx * to
5429         rtx_insn **.
5430         (struct dep_replacement): Strenghten field "insn" from rtx to
5431         rtx_insn *.
5432         (struct deps_desc): Likewise for fields "last_debug_insn",
5433         "last_args_size".
5434         (struct haifa_sched_info): Likewise for callback field
5435         "can_schedule_ready_p"'s param, for first param of "new_ready"
5436         callback field, for both params of "rank" callback field, for
5437         first field of "print_insn" callback field (with a const), for
5438         both params of "contributes_to_priority" callback, for param
5439         of "insn_finishes_block_p" callback, for fields "prev_head",
5440         "next_tail", "head", "tail", for first param of "add_remove_insn"
5441         callback, for first param of "begin_schedule_ready" callback, for
5442         both params of "begin_move_insn" callback, and for second param
5443         of "advance_target_bb" callback.
5444         (add_dependence): Likewise for params 1 and 2.
5445         (sched_analyze): Likewise for params 2 and 3.
5446         (deps_analyze_insn): Likewise for param 2.
5447         (ready_element): Likewise for return type.
5448         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5449         (try_ready): Strenghten param from rtx to rtx_insn *.
5450         (sched_emit_insn): Likewise for return type.
5451         (record_delay_slot_pair): Likewise for params 1 and 2.
5452         (add_delay_dependencies): Likewise for param.
5453         (contributes_to_priority): Likewise for both params.
5454         (find_modifiable_mems): Likewise.
5455
5456         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
5457         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
5458         "first_older_only_insn" from rtx to rtx_insn *.
5459         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
5460         rtx_insn **.
5461
5462         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5463         "last_scheduled_iter0" from rtx to rtx_insn *.
5464         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5465         (c6x_sched_reorder_1): Strengthen param "ready" and locals
5466         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
5467         "insn" from rtx to rtx_insn *.
5468         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5469         rtx_insn **.
5470         (c6x_sched_reorder2): Strengthen param "ready" and locals
5471         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5472         "insn" from rtx to rtx_insn *.
5473         (c6x_variable_issue):  Add a checked cast when assigning from insn
5474         to ss.last_scheduled_iter0.
5475         (split_delayed_branch): Strengthen param "insn" and local "i1"
5476         from rtx to rtx_insn *.
5477         (split_delayed_nonbranch): Likewise.
5478         (undo_split_delayed_nonbranch): Likewise for local "insn".
5479         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5480         "entry_after", "end_packet", "head_insn", "tail_insn",
5481         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5482         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5483         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
5484         but add a checked cast on loop->start_label.  Consolidate calls to
5485         avoid assigning result of gen_spkernel to "insn", now an
5486         rtx_insn *.
5487
5488         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5489         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
5490         rtx to rtx_insn *.
5491         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5492         rtx_insn **.  Strengthen locals "top", "next" from rtx to
5493         rtx_insn *.
5494         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5495         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
5496         (add_parameter_dependencies): Strengthen params "call", "head" and
5497         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5498         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5499         (add_dependee_for_func_arg): Likewise for param "arg" and local
5500         "insn".
5501         (ix86_dependencies_evaluation_hook): Likewise for params "head",
5502         "tail" and locals "insn", "first_arg".
5503
5504         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5505         for params "head", "tail" and locals "insn", "next", "next_tail".
5506         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5507         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5508         "insn", "lowest", "highest" from rtx to rtx_insn *.
5509         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5510         rtx_insn **.
5511         (ia64_sched_reorder2): Likewise.
5512
5513         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5514         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
5515         from rtx * to rtx_insn **.
5516         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5517         rtx_insn **.
5518         (mep_print_sched_insn): Strengthen param "insn" from rtx to
5519         rtx_insn *.
5520         (mep_sched_reorder): Strengthen param "ready" from rtx * to
5521         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
5522         to rtx_insn *.
5523
5524         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5525         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
5526         to rtx_insn *.
5527         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5528         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
5529         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5530         rtx_insn **.
5531         (vr4130_reorder): Likewise.
5532         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
5533         rtx to rtx_insn *.
5534         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5535         rtx_insn **.
5536         (mips_sched_reorder): Likewise.
5537         (mips_sched_reorder2): Likewise.
5538
5539         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5540
5541         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5542         Strengthen local "tmp" from rtx to rtx_insn *.
5543         (rs6000_sched_reorder2): Likewise.
5544
5545         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5546         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5547         (s390_sched_reorder): Strengthen param "ready" from rtx * to
5548         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
5549
5550         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5551         "tmp2" from rtx to rtx_insn *.
5552         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5553         Strengthen local "insn" from rtx to rtx_insn *.
5554         (ready_reorder): Strengthen param "ready" from rtx * to
5555         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5556         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
5557         (sh_reorder2): Likewise.
5558
5559         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
5560         local "insn" from rtx to rtx_insn *.
5561
5562         * haifa-sched.c (note_list): Strengthen this variable from rtx to
5563         rtx_insn *.
5564         (scheduled_insns): Strengthen this variable from vec<rtx> to
5565         vec<rtx_insn *>.
5566         (set_modulo_params): Likewise for locals "i1", "i2".
5567         (record_delay_slot_pair): Likewise for params "i1", "i2".
5568         (add_delay_dependencies): Likewise for param "insn".
5569         (cond_clobbered_p): Likewise.
5570         (recompute_todo_spec): Likewise for local "prev".
5571         (last_scheduled_insn): Likewise for this variable.
5572         (nonscheduled_insns_begin): Likewise.
5573         (model_set_excess_costs): Strengthen param "insns" from rtx * to
5574         rtx_insn **.
5575         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5576         rtx_insn *.
5577         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5578         Strengthen local "insn" from rtx to rtx_insn *.
5579         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5580         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5581         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5582         (ready_remove_first): Likewise for return type and local "t".
5583         (ready_element): Likewise for return type.
5584         (ready_remove): Likewise for return type and local "t".
5585         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5586         (check_clobbered_conditions): Strengthen local "x" from rtx to
5587         rtx_insn *, adding a checked cast.
5588         (schedule_insn): Likewise for param "insn".
5589         (remove_notes): Likewise for params "head", "tail" and locals
5590         "next_tail", "insn", "next".
5591         (struct haifa_saved_data): Likewise for fields
5592         "last_scheduled_insn", "nonscheduled_insns_begin".
5593         (save_backtrack_point): Update for change to field "vec" of
5594         struct ready_list.
5595         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5596         rtx_insn **.
5597         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
5598         from rtx to rtx_insn *
5599         (resolve_dependencies): Strengthen param "insn" from rtx to
5600         rtx_insn *
5601         (restore_other_notes): Likewise for return type, for param "head"
5602         and local "note_head".
5603         (undo_all_replacements): Likewise for local "insn".
5604         (first_nonscheduled_insn): Likewise for return type and local "insn".
5605         (queue_to_ready): Likewise for local "insn", adding checked casts.
5606         (early_queue_to_ready): Likewise for local "insn".
5607         (debug_ready_list_1): Strengthen local "p" from rtx * to
5608         rtx_insn **.
5609         (move_insn): Strengthen param "insn" and local "note" from rtx to
5610         rtx_insn *
5611         (insn_finishes_cycle_p): Likewise for param "insn".
5612         (max_issue): Likewise for local "insn".
5613         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
5614         to rtx_insn **.
5615         (commit_schedule): Strengthen param "prev_head" and local "insn"
5616         from rtx to rtx_insn *
5617         (prune_ready_list): Likewise for local "insn".
5618         (schedule_block): Likewise for locals "prev_head", "head", "tail",
5619         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5620         (set_priorities): Likewise for local "prev_head".
5621         (try_ready): Likewise for param "next".
5622         (fix_tick_ready): Likewise.
5623         (change_queue_index): Likewise.
5624         (sched_extend_ready_list): Update for change to field "vec" of
5625         struct ready_list.
5626         (generate_recovery_code): Strengthen param "insn" from rtx to
5627         rtx_insn *.
5628         (begin_speculative_block): Likewise.
5629         (create_check_block_twin): Likewise for param "insn" and locals
5630         "label", "check", "twin".  Introduce local "check_pat" to avoid
5631         "check" being used as a plain rtx before being used as an insn.
5632         (fix_recovery_deps): Add a checked cast to rtx_insn * when
5633         extracting elements from ready_list.
5634         (sched_remove_insn): Strengthen param "insn" from rtx to
5635         rtx_insn *.
5636         (sched_emit_insn): Likewise for return type.
5637         (ready_remove_first_dispatch): Likewise for return type and local
5638         "insn".
5639
5640         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5641
5642         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5643         const rtx_insn *.
5644
5645         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5646         from rtx to rtx_insn *.
5647         (add_dependence_list): Likewise for param "insn".  Add a checked
5648         cast.
5649         (add_dependence_list_and_free): Strengthen param "insn" from rtx
5650         to rtx_insn *.  Strengthen param "list_p" from rtx * to
5651         rtx_insn **.
5652         (chain_to_prev_insn): Strengthen param "insn" and locals
5653         "prec_nonnote", "i" from rtx to rtx_insn *.
5654         (flush_pending_lists): Likewise for param "insn".
5655         (cur_insn): Likewise for this variable.
5656         (haifa_start_insn): Add a checked cast.
5657         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5658         (sched_analyze_reg): Likewise for param "insn".
5659         (sched_analyze_1): Likewise.
5660         (sched_analyze_2): Likewise.  Add checked casts.
5661         (sched_analyze_insn): Likewise.  Also for local "prev".
5662         (deps_analyze_insn): Likewise for param "insn".
5663         (sched_analyze): Likewise for params "head", "tail" and local "insn".
5664         (add_dependence_1): Likewise for params "insn", "elem".
5665         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5666         (parse_add_or_inc): Likewise for param "insn".
5667         (find_inc): Likewise for local "inc_cand".
5668         (find_modifiable_mems): Likewise for params "head", "tail" and
5669         locals "insn", "next_tail".
5670
5671         * sched-ebb.c (init_ready_list): Likewise for local "insn".
5672         (begin_schedule_ready): Likewise for param "insn".
5673         (begin_move_insn): Likewise for params "insn" and "last".
5674         (ebb_print_insn): Strengthen param "insn" from const_rtx to
5675         const rtx_insn *.
5676         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5677         (ebb_contributes_to_priority): Likewise for params "next", "insn".
5678         (ebb_add_remove_insn): Likewise for param "insn".
5679         (advance_target_bb): Likewise.
5680
5681         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5682         "insn".
5683         (check_live): Likewise for param "insn".
5684         (init_ready_list): Likewise for local "insn".
5685         (can_schedule_ready_p): Likewise for param "insn".
5686         (begin_schedule_ready): Likewise.
5687         (new_ready): Likewise for param "next".
5688         (rgn_print_insn): Likewise for param "insn".
5689         (rgn_rank): Likewise for params "insn1", "insn2".
5690         (contributes_to_priority): Likewise for params "next", "insn".
5691         (rgn_insn_finishes_block_p): Likewise for param "insn".
5692         (add_branch_dependences): Likewise for params "head", "tail" and
5693         locals "insn", "last".
5694         (rgn_add_remove_insn): Likewise for param "insn".
5695         (advance_target_bb): Likewise.
5696
5697         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5698         const_rtx to const rtx_insn *.
5699
5700         * sel-sched-dump.h (sel_print_insn): Likewise.
5701
5702         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5703         (deps_init_id): Likewise.
5704
5705         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5706         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5707         rtx_insn **.
5708
5709 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5710
5711         * output.h (final_start_function): Strengthen param 1 from rtx to
5712         rtx_insn *.
5713
5714         * final.c (final_start_function): Likewise, renaming back from
5715         "uncast_first" to "first", and dropping the checked cast from rtx
5716         to rtx_insn *.
5717
5718 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5719
5720         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5721         * final.c (final): Likewise.  Rename param back from
5722         "uncast_first" to "first" and eliminate the checked cast from rtx
5723         to rtx_insn *.
5724
5725 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5726
5727         * output.h (shorten_branches): Strengthen param from rtx to
5728         rtx_insn *.
5729
5730         * final.c (shorten_branches): Likewise, renaming param back from
5731         "uncast_first" to "first", and dropping the checked cast from rtx
5732         to rtx_insn *.
5733
5734         * genattr.c (gen_attr): Likewise when writing out the prototype of
5735         shorten_branches.
5736
5737 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5738
5739         * sched-int.h (struct haifa_sched_info): Strengthen fields
5740         "prev_head" and "next_tail" from rtx to rtx_insn *.
5741
5742 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5743
5744         * rtl.h (rtx_jump_table_data::get_labels): New method.
5745         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5746         with use of the new rtx_jump_table_data::get_labels method.
5747         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5748         to rtx_jump_table_data *.  Simplify by using get_labels method.
5749         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5750         a dyn_cast, introducing local "table", using it to replace
5751         label-lookup logic with a get_labels method call.
5752         (patch_jump_insn): Simplify using get_labels method.
5753         * dwarf2cfi.c (create_trace_edges): Likewise.
5754         * rtlanal.c (label_is_jump_target_p): Likewise.
5755
5756 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5757
5758         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5759         to rtx_insn *.
5760
5761         * emit-rtl.c (unshare_all_rtl_1): Likewise.
5762         (unshare_all_rtl_again): Likewise, also for local "p".
5763
5764 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5765
5766         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5767         to rtx_insn *.
5768         * cfgrtl.c (delete_insn_and_edges): Likewise.
5769
5770 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5771
5772         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5773         from rtx to rtx_insn *.
5774
5775         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5776
5777 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5778
5779         * function.c (thread_prologue_and_epilogue_insns): Likewise for
5780         locals "returnjump", "epilogue_end", "insn", "next".
5781
5782         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5783         "returnjump" from rtx * to rtx_insn **.
5784         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5785
5786 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5787
5788         * basic-block.h (struct edge_def). Strengthen "r" within
5789         union edge_def_insns from rtx to rtx_insn *.
5790
5791         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5792         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
5793         rtx_insn *.
5794         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5795         from rtx to rtx_insn *.
5796         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5797         rtx_insn *.
5798         * postreload-gcse.c (reg_killed_on_edge): Likewise.
5799         (reg_used_on_edge): Likewise.
5800         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5801         (gt_pch_nx): New overload for rtx_insn *&.
5802         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5803         from rtx to rtx_insn *.
5804
5805 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5806
5807         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5808         from rtx to rtx_insn *.
5809         (BB_FOOTER): Replace function with access macro.
5810         (SET_BB_FOOTER): Delete.
5811
5812         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5813         with BB_FOOTER.
5814         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5815         (emit_barrier_after_bb): Likewise.
5816         (record_effective_endpoints): Likewise.
5817         (relink_block_chain): Likewise.
5818         (fixup_fallthru_exit_predecessor): Likewise.
5819         (cfg_layout_duplicate_bb): Likewise.
5820         (cfg_layout_split_block): Likewise.
5821         (cfg_layout_delete_block): Likewise.
5822         (cfg_layout_merge_blocks): Likewise.
5823         (BB_FOOTER): Delete function.
5824         (SET_BB_FOOTER): Delete function.
5825         * combine.c (update_cfg_for_uncondjump): Replace uses of
5826         SET_BB_FOOTER with BB_FOOTER.
5827
5828 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5829
5830         * except.h (struct eh_landing_pad_d): Strengthen field
5831         "landing_pad" from rtx to rtx_code_label *.
5832
5833         * except.c (sjlj_emit_dispatch_table): Likewise for param
5834         "dispatch_label"
5835         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5836
5837 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5838
5839         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5840         first param from rtx to rtx_insn *.
5841         * config/xtensa/xtensa.c (struct machine_function): Likewise for
5842         field "set_frame_ptr_insn".
5843         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5844         "csend" from rtx to rtx_code_label *.
5845         (xtensa_expand_atomic): Likewise for local "csloop".
5846         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5847         rtx_insn *.
5848         (xtensa_call_tls_desc): Likewise for return type and locals
5849         "call_insn", "insns".
5850         (xtensa_legitimize_tls_address): Likewise for local "insns".
5851         (xtensa_expand_prologue): Likewise for locals "insn", "first".
5852
5853 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5854
5855         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5856         first param from rtx to rtx_insn *.
5857         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5858         "insn".
5859
5860 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5861
5862         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5863         Strengthen param 1 from rtx to rtx_insn *.
5864         (tilepro_output_cbranch): Likewise.
5865         (tilepro_adjust_insn_length): Likewise.
5866         (tilepro_final_prescan_insn): Likewise for sole param.
5867
5868         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5869         Likewise for local "last".
5870         (cbranch_predicted_p): Likewise for param "insn".
5871         (tilepro_output_simple_cbranch_with_opcode): Likewise.
5872         (tilepro_output_cbranch_with_opcode): Likewise.
5873         (tilepro_output_cbranch): Likewise.
5874         (frame_emit_load): Likewise for return type and locals "seq",
5875         "insn".
5876         (emit_sp_adjust): Likewise for return type and local "insn".
5877         (tilepro_expand_epilogue): Likewise for locals "last_insn",
5878         "insn".
5879         (tilepro_adjust_insn_length): Likewise for param "insn".
5880         (next_insn_to_bundle): Likewise for return type and params
5881         "r", "end".
5882         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5883         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5884         local "new_insns".
5885         (match_addli_pcrel): Likewise for param "insn".
5886         (replace_addli_pcrel): Likewise.
5887         (match_auli_pcrel): Likewise.
5888         (replace_auli_pcrel): Likewise.
5889         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5890         "next_insn".
5891         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5892         "queue", "next_queue", "prev".
5893         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5894         (tilepro_final_prescan_insn): Likewise for param "insn".
5895
5896 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5897
5898         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5899         Strengthen param 1 from rtx to rtx_insn *.
5900         (tilegx_output_cbranch): Likewise.
5901         (tilegx_adjust_insn_length): Likewise.
5902         (tilegx_final_prescan_insn): Likewise for sole param.
5903
5904         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5905         or local "last".
5906         (cbranch_predicted_p): Likewise for param "insn".
5907         (tilegx_output_simple_cbranch_with_opcode): Likewise.
5908         (tilegx_output_cbranch_with_opcode): Likewise.
5909         (tilegx_output_cbranch): Likewise.
5910         (frame_emit_load): Likewise for return type.
5911         (set_frame_related_p): Likewise for locals "seq", "insn".
5912         (emit_sp_adjust): Likewise for return type, and for local "insn".
5913         Introduce local "pat" for use in place of "insn" where the latter
5914         isn't an instruction.
5915         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5916         from rtx to rtx_insn *.
5917         (tilegx_adjust_insn_length): Likewise for param "insn".
5918         (next_insn_to_bundle): Likewise for return type and params "r" and
5919         "end".
5920         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5921         "end".
5922         (replace_insns): Likewise for params "old_insn", "new_insns".
5923         (replace_mov_pcrel_step1): Likewise for param "insn" and local
5924         "new_insns".
5925         (replace_mov_pcrel_step2): Likewise.
5926         (replace_mov_pcrel_step3): Likewise.
5927         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5928         "next_insn".
5929         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5930         "queue", "next_queue", "prev".
5931         (tilegx_output_mi_thunk): Likewise for local "insn".
5932         (tilegx_final_prescan_insn): Likewise for param "insn".
5933
5934 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5935
5936         * config/spu/spu.c (frame_emit_store): Strengthen return type from
5937         rtx to rtx_insn *.
5938         (frame_emit_load): Likewise.
5939         (frame_emit_add_imm): Likewise, also for local "insn".
5940         (spu_expand_prologue): Likewise for local "insn".
5941         (struct spu_bb_info): Likewise for field "prop_jump".
5942         (emit_nop_for_insn): Likewise for param "insn" and local
5943         "new_insn".
5944         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5945         "hbr_insn".
5946         (spu_emit_branch_hint): Likewise for params "before", "branch" and
5947         locals "hint", "insn".
5948         (get_branch_target): Likewise for param "branch".
5949         (insn_clobbers_hbr): Likewise for param "insn".
5950         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5951         locals "insn", "before_4", "before_16".
5952         (insert_hbrp): Likewise for local "insn".
5953         (spu_machine_dependent_reorg): Likewise for locals "branch",
5954         "insn", "next", "bbend".
5955         (uses_ls_unit): Likewise for param "insn".
5956         (get_pipe): Likewise.
5957         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5958         introducing a checked cast.
5959         (spu_sched_adjust_cost): Likewise for params "insn" and
5960         "dep_insn".
5961         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5962         (spu_sms_res_mii): Likewise.
5963
5964 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5965
5966         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5967         from rtx to rtx_insn *.
5968         (output_cbranch): Likewise for param 6.
5969         (output_return): Likewise for param 1.
5970         (output_sibcall): Likewise.
5971         (output_v8plus_shift): Likewise.
5972         (output_v8plus_mult): Likewise.
5973         (output_v9branch): Likewise for param 7.
5974         (output_cbcond):  Likewise for param 3.
5975
5976         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5977         for local "insn".
5978         (sparc_legitimize_pic_address): Likewise.
5979         (sparc_emit_call_insn): Likewise.
5980         (emit_save_or_restore_regs): Likewise.
5981         (emit_window_save): Likewise for return type and local "insn".
5982         (sparc_expand_prologue): Likewise for local "insn".
5983         (sparc_flat_expand_prologue): Likewise.
5984         (output_return): Likewise for param "insn".
5985         (output_sibcall): Likewise for param "insn" and local "delay".
5986         (output_ubranch): Likewise for param "insn".
5987         (output_cbranch): Likewise.
5988         (output_cbcond): Likewise.
5989         (output_v9branch): Likewise.
5990         (output_v8plus_shift): Likewise.
5991         (sparc_output_mi_thunk): Likewise for local "insn".
5992         (get_some_local_dynamic_name): Likewise.
5993         (output_v8plus_mult): Likewise for param "insn".
5994
5995 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5996
5997         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5998         from rtx to rtx_insn *.
5999         (output_branchy_insn): Likewise for param 3.
6000         (output_far_jump): Likewise for param 1.
6001         (final_prescan_insn): Likewise.
6002         (sh_insn_length_adjustment): Likewise for sole param.
6003
6004         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6005         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6006         rtx_code_label *.
6007         (sh_emit_compare_and_set): Likewise for local "lab".
6008         (output_far_jump): Strengthen param "insn" and local "prev" from
6009         rtx to rtx_insn *.
6010         (output_branchy_insn): Likewise for param "insn" and local
6011         "next_insn".
6012         (output_ieee_ccmpeq): Likewise for param "insn".
6013         (struct label_ref_list_d): Strengthen field "label" from rtx to
6014         rtx_code_label *.
6015         (pool_node): Likewise.
6016         (pool_window_label): Likewise for this global.
6017         (add_constant): Likewise for return type and locals "lab", "new_rtx".
6018         (dump_table): Strengthen params "start", "barrier" and local
6019         "scan" from rtx to rtx_insn *.
6020         (broken_move): Likewise for param "insn".
6021         (untangle_mova): Likewise for params "first_mova" and "new_mova".
6022         Strengthen param "first_mova" from rtx * to rtx_insn **.
6023         (mova_p): Likewise for param "insn".
6024         (fixup_mova): Likewise for param "mova".
6025         (find_barrier): Likewise for return type, params "mova" and
6026         "from", and locals "barrier_before_mova", "found_barrier",
6027         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
6028         "label" from rtx to rtx_code_label *.
6029         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6030         rtx to rtx_insn *.
6031         (sh_reorg): Likewise for locals "link", "scan", "barrier".
6032         (split_branches): Likewise for param "first" and local "insn".
6033         (final_prescan_insn): Likewise for param "insn".
6034         (sequence_insn_p): Likewise for locals "prev", "next".
6035         (sh_insn_length_adjustment): Likewise for param "insn".
6036         (sh_can_redirect_branch): Likewise for local "insn".
6037         (find_r0_life_regions): Likewise for locals "end", "insn".
6038         (sh_output_mi_thunk): Likewise for local "insns".
6039
6040 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6041
6042         * config/score/score.c (score_output_mi_thunk): Strengthen local
6043         "insn" from rtx to rtx_insn *.
6044         (score_prologue): Likewise.
6045
6046 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6047
6048         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6049         1 from rtx to rtx_insn *.
6050         (s390_emit_jump): Likewise for return type.
6051         (s390_emit_call): Likewise.
6052         (s390_load_got): Likewise.
6053
6054         * config/s390/s390.c (last_scheduled_insn): Likewise for this
6055         variable.
6056         (s390_match_ccmode): Likewise for param "insn".
6057         (s390_emit_jump): Likewise for return type.
6058         (s390_split_branches): Likewise for local "label".
6059         (struct constant): Strengthen field "label" from rtx to
6060         rtx_code_label *.
6061         (struct constant_pool): Likewise for field "label".  Strengthen
6062         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6063         rtx_insn *.
6064         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6065         insns.
6066         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6067         (s390_end_pool): Likewise.
6068         (s390_dump_pool): Likewise for local "insn".
6069         (s390_mainpool_start): Likewise.
6070         (s390_chunkify_start): Likewise.
6071         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6072         with insns.  Strengthen locals "label", "jump", "barrier", "next",
6073         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6074         (s390_chunkify_finish): Strengthen local "insn" from rtx to
6075         rtx_insn *.
6076         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6077         "jump", "label", "next_insn".
6078         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6079         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6080         "tbegin_insn".
6081         (s390_load_got): Likewise for return type and local "insns".
6082         (s390_save_gprs_to_fprs): Likewise for local "insn".
6083         (s390_restore_gprs_from_fprs): Likewise.
6084         (pass_s390_early_mach::execute): Likewise.
6085         (s390_emit_prologue): Likewise for local "insns".
6086         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6087         rtx_code_label *.
6088         (s390_emit_call): Strengthen return type and local "insn" from
6089         rtx to rtx_insn *.
6090         (s390_emit_tpf_eh_return): Likewise for local "insn".
6091         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6092         "next_insn", introducing locals "s_pat", "rpat" to allow this.
6093         (s390_fix_long_loop_prediction): Likewise for param "insn" and
6094         local "cur_insn".
6095         (s390_non_addr_reg_read_p): Likewise for param "insn".
6096         (find_cond_jump): Likewise for return type and param "insn".
6097         (s390_swap_cmp): Likewise for param "insn".
6098         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6099         "prev_insn", "next_insn".
6100         (s390_reorg): Likewise for locals "insn", "target".
6101         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6102         (s390_sched_variable_issue): For now, rename param "insn" to
6103         "uncast_insn", introducing a checked cast.
6104         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6105         insn.
6106         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6107         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
6108
6109 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6110
6111         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6112         param from rtx to rtx_insn *.
6113         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6114
6115 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6116
6117         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6118         4 from rtx to rtx_insn *.
6119         (rs6000_final_prescan_insn): Likewise for first param.
6120         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6121         local "insn".
6122         (rs6000_get_some_local_dynamic_name): Likewise.
6123         (output_cbranch): Likewise for param "insn".
6124         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6125         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6126         (rs6000_emit_allocate_stack): Likewise for local "insn".
6127         (load_cr_save): Likewise.
6128         (restore_saved_cr): Likewise.
6129         (restore_saved_lr): Likewise.
6130         (emit_cfa_restores): Likewise.
6131         (rs6000_output_function_epilogue): Likewise for locals "insn" and
6132         "deleted_debug_label".
6133         (rs6000_output_mi_thunk): Likewise for local "insn".
6134         (rs6000_final_prescan_insn): Likewise for param "insn".
6135
6136 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6137
6138         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6139         Strengthen param "insn" from rtx to rtx_insn *.
6140         * config/picochip/picochip.c (picochip_current_prescan_insn):
6141         Likewise for this variable.
6142         (picochip_final_prescan_insn): Likewise for param "insn".
6143
6144 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6145
6146         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6147         from rtx to rtx_insn *.
6148         (pa_output_indirect_call): Likewise.
6149         (pa_adjust_insn_length): Likewise.
6150         (pa_attr_length_millicode_call): Likewise.
6151         (pa_attr_length_call): Likewise.
6152         (pa_attr_length_indirect_call): Likewise.
6153
6154         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6155         "insn".
6156         (pa_attr_length_millicode_call): Likewise.
6157         (pa_attr_length_call): Likewise.
6158         (pa_output_call): Likewise.
6159         (pa_attr_length_indirect_call): Likewise.
6160         (pa_output_indirect_call): Likewise.
6161
6162 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6163
6164         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6165         Strengthen first param from rtx to rtx_insn *.
6166         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6167         param "insn".
6168
6169 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6170
6171         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6172         type from rtx to rtx_insn *.
6173         (mips_expand_call): Likewise.
6174         (mips_adjust_insn_length): Likewise for first param.
6175         (mips_output_conditional_branch): Likewise.
6176         (mips_output_order_conditional_branch): Likewise.
6177         (mips_final_prescan_insn): Likewise.
6178
6179         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6180         rtx_insn * for the SEQUENCE case.
6181         (SEQ_END): Likewise.
6182         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6183         (mips_emit_call_insn): Likewise, also for local "insn".
6184         (mips16_gp_pseudo_reg): Likewise for local "scan".
6185         (mips16_build_call_stub): Likewise for return type and for local
6186         "insn".  Introduce a new local "pattern" so that "insn" can indeed
6187         be an insn.
6188         (mips_expand_call): Strengthen return type and local "insn" from
6189         rtx to rtx_insn *.
6190         (mips_block_move_loop): Strengthen local "label" from rtx to
6191         rtx_code_label *.
6192         (mips_expand_synci_loop): Likewise for locals "label",
6193         "end_label".
6194         (mips_set_frame_expr): Strengthen local "insn" from rtx to
6195         rtx_insn *.
6196         (mips16e_collect_argument_saves): Likewise for locals "insn",
6197         "next".
6198         (mips_find_gp_ref): Likewise for param of callback for "pred"
6199         param, and for local "insn".
6200         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6201         (mips_insn_has_flexible_gp_ref_p): Likewise.
6202         (mips_epilogue_emit_cfa_restores): Likewise for return type and
6203         local "insn".
6204         (mips_epilogue_set_cfa): Likewise for local "insn".
6205         (mips_expand_epilogue): Likewise.
6206         (mips_adjust_insn_length): Likewise for param "insn".
6207         (mips_output_conditional_branch): Likewise.
6208         (mips_output_order_conditional_branch): Likewise.
6209         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6210         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6211         "falu2_turn_enabled_insn".
6212         (mips_builtin_branch_and_move): Strengthen locals "true_label",
6213         "done_label" from rtx to rtx_code_label *.
6214         (struct mips16_constant): Likewise for field "label".
6215         (mips16_add_constant): Likewise for return type.
6216         (mips16_emit_constants_1): Strengthen return type and param "insn"
6217         from rtx to rtx_insn *.
6218         (mips16_emit_constants): Likewise for param "insn".
6219         (mips16_insn_length): Likewise.
6220         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6221         to rtx_code_label *.
6222         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6223         from rtx to rtx_insn *.
6224         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6225         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
6226         (r10k_simplify_address): Strengthen param "insn" and local
6227         "def_insn" from rtx to rtx_insn *.
6228         (r10k_safe_address_p): Strengthen param "insn" from rtx to
6229         rtx_insn *.
6230         (r10k_needs_protection_p_1): Update target type of cast of data
6231         from to rtx to rtx_insn *.
6232         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6233         rtx * to rtx_insn **.
6234         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6235         rtx_insn *.
6236         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6237         (mips_call_expr_from_insn): Likewise for param "insn".
6238         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6239         (mips_find_pic_call_symbol): Likewise for param "insn".
6240         (mips_annotate_pic_calls): Likewise for local "insn".
6241         (mips_sim_insn): Likewise for this variable.
6242         (struct mips_sim): Likewise for field "insn" within elements of
6243         last_set array.
6244         (mips_sim_wait_reg): Likewise for param "insn".
6245         (mips_sim_wait_regs): Likewise.
6246         (mips_sim_wait_units): Likewise.
6247         (mips_sim_wait_insn): Likewise.
6248         (mips_sim_issue_insn): Likewise.
6249         (mips_sim_finish_insn): Likewise.
6250         (mips_seq_time): Likewise for param "seq" and local "insn".
6251         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6252         locals "first", "second".
6253         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6254         "last", "last2", "next".
6255         (mips_avoid_hazard): Likewise for params "after", "insn".
6256         (mips_reorg_process_insns): Likewise for locals "insn",
6257         "last_insn", "subinsn", "next_insn".
6258         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6259         (mips16_split_long_branches): Likewise for locals "insn" "jump",
6260         "jump_sequence".
6261         (mips_output_mi_thunk): Likewise for local "insn".
6262         (mips_final_prescan_insn): Likewise for param "insn".
6263
6264 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6265
6266         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6267         Strengthen return type and local "insns" from rtx to rtx_insn *.
6268         (microblaze_legitimize_tls_address): Likewise for local "insns".
6269         (microblaze_block_move_loop): Strengthen local "label" from rtx
6270         to rtx_code_label *.
6271         (microblaze_expand_prologue): Strengthen two locals named "insn"
6272         from rtx to rtx_insn *.
6273         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6274         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6275         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
6276         to rtx_code_label *.
6277
6278 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6279
6280         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6281         param from rtx to rtx_insn *.
6282         (mep_reuse_lo): Likewise for third param.
6283         (mep_use_post_modify_p): Likewise for first param.
6284         (mep_core_address_length): Likewise.
6285         (mep_cop_address_length): Likewise.
6286         (mep_final_prescan_insn): Likewise.
6287         (mep_store_data_bypass_p): Likewise for both params.
6288         (mep_mul_hilo_bypass_p): Likewise.
6289         (mep_ipipe_ldc_p): Likewise for param.
6290
6291         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6292         (mep_rewrite_mult): Likewise.
6293         (mep_rewrite_mulsi3): Likewise.
6294         (mep_rewrite_maddsi3): Likewise.
6295         (mep_reuse_lo_p_1): Likewise.
6296         (mep_reuse_lo_p): Likewise.
6297         (mep_frame_expr): Likewise.
6298         (mep_make_parallel): Likewise for both params.
6299         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6300         local "insn".
6301         (mep_use_post_modify_p): Likewise for param "insn".
6302         (mep_core_address_length): Likewise.
6303         (mep_cop_address_length): Likewise.
6304         (mep_reg_set_in_function): Likewise for local "insn".
6305         (mep_asm_without_operands_p): Likewise.
6306         (F): Likewise for return type and param "x".
6307         (add_constant): Likewise for local "insn".
6308         (maybe_dead_move): Likewise for return type and local "insn".
6309         (mep_expand_prologue): Likewise for local "insn".
6310         (mep_final_prescan_insn): Likewise for param "insn".
6311         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6312         "next", "follow", "x".
6313         (mep_insert_repeat_label_last): Likewise for return type, param
6314         "last_insn", and locals "next", "prev".  Strengthen param "label"
6315         from rtx to rtx_code_label *.
6316         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6317         rtx_insn *.
6318         (struct mep_doloop_end): Likewise for fields "insn" and
6319         "fallthrough".
6320         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6321         Strengthen local "repeat_label" from rtx to rtx_code_label *.
6322         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6323         rtx_insn *.
6324         (mep_invert_branch): Likewise for params "insn" and "after".
6325         (mep_reorg_erepeat): Likewise for param "insns" and locals
6326         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
6327         "l" from rtx to rtx_code_label *.
6328         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6329         from rtx to rtx_insn *.
6330         (mep_reorg_addcombine): Likewise for param "insns" and locals
6331         "i", "n".
6332         (add_sp_insn_p): Likewise for param "insn".
6333         (mep_reorg_noframe): Likewise for param "insns" and locals
6334         "start_frame_insn", "end_frame_insn", "next".
6335         (mep_reorg): Likewise for local "insns".
6336         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
6337         cast.
6338         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6339         (mep_mul_hilo_bypass_p): Likewise.
6340         (mep_ipipe_ldc_p): Likewise for param "insn".
6341         (mep_make_bundle): Likewise for return type, param "cop" and local
6342         "insn", splitting out the latter into a new local "seq" for when it
6343         is a SEQUENCE rather than an insn.
6344         (core_insn_p): Likewise for param "insn".
6345         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6346         "last", "first", "note", "prev", "core_insn".
6347
6348 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6349
6350         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6351         rtx to rtx_insn *.
6352         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6353         (m68k_final_prescan_insn): Likewise for first param.
6354
6355         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6356         (m68k_set_frame_related): Likewise for param "insn".
6357         (output_btst): Likewise for param "insn".
6358         (m68k_final_prescan_insn): Likewise.
6359         (m68k_move_to_reg): Likewise for local "insn".
6360         (m68k_call_tls_get_addr): Likewise for local "insns".
6361         (m68k_call_m68k_read_tp): Likewise.
6362         (strict_low_part_peephole_ok): Likewise for param "first_insn".
6363         (m68k_output_mi_thunk): Likewise for local "insn".
6364
6365 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6366
6367         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6368         first param from rtx to rtx_insn *.
6369         (iq2000_adjust_insn_length): Likewise.
6370         (iq2000_output_conditional_branch): Likewise.
6371         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6372         "insn" and local "nop_insn".
6373         (iq2000_annotate_frame_insn): Likewise for param "insn".
6374         (iq2000_expand_prologue): Likewise for both locals "insn".
6375         (iq2000_adjust_insn_length): Likewise for param "insn".
6376         (iq2000_output_conditional_branch): Likewise.
6377
6378 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6379
6380         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6381         "insns" from rtx to rtx_insn *.
6382         (ia64_emit_cond_move): Likewise for locals "insn", "first".
6383         (struct spill_fill_data): Likewise for field "init_after" and for
6384         elements of array field "prev_insn".
6385         (spill_restore_mem): Likewise for locals "insn", "first".
6386         (do_spill): Likewise for local "insn".
6387         (do_restore): Likewise.
6388         (ia64_expand_prologue): Likewise.
6389         (ia64_expand_epilogue): Likewise.
6390         (emit_insn_group_barriers): Likewise for locals "insn",
6391         "last_label".
6392         (emit_all_insn_group_barriers): Likewise for locals "insn",
6393         "last".
6394         (dfa_stop_insn): Likewise for this global.
6395         (dfa_pre_cycle_insn): Likewise.
6396         (ia64_nop): Likewise.
6397         (final_emit_insn_group_barriers): Likewise for locals "insn",
6398         "last".
6399         (emit_predicate_relation_info): Likewise for locals "head", "n",
6400         "insn", "b", "a".
6401         (ia64_reorg): Likewise for local "insn".
6402         (ia64_output_mi_thunk): Likewise.
6403         (expand_vec_perm_interleave_2): Likewise for local "seq".
6404
6405 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6406
6407         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6408         param 1 "insn" from rtx to rtx_insn *.
6409         (ix86_use_lea_for_mov): Likewise.
6410         (ix86_avoid_lea_for_addr): Likewise.
6411         (ix86_split_lea_for_addr): Likewise.
6412         (ix86_lea_for_add_ok): Likewise.
6413         (ix86_output_call_insn): Likewise.
6414
6415         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6416         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6417         (ix86_output_function_epilogue): Likewise for locals "insn",
6418         "deleted_debug_label".
6419         (legitimize_tls_address): Likewise for local "insn".
6420         (get_some_local_dynamic_name): Likewise.
6421         (increase_distance): Likewise for params "prev", "next".
6422         (distance_non_agu_define_in_bb): Likewise for params "insn",
6423         "start" and locals "prev", "next".
6424         (distance_non_agu_define): Likewise for param "insn".
6425         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6426         locals "next", "prev".
6427         (distance_agu_use): Likewise for param "insn".
6428         (ix86_lea_outperforms): Likewise.
6429         (ix86_ok_to_clobber_flags): Likewise.
6430         (ix86_avoid_lea_for_add): Likewise.
6431         (ix86_use_lea_for_mov): Likewise.
6432         (ix86_avoid_lea_for_addr): Likewise.
6433         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6434         (ix86_split_lea_for_addr): Likewise for param "insn".
6435         (ix86_lea_for_add_ok): Likewise for param "insn".
6436         (ix86_expand_carry_flag_compare): Likewise for local
6437         "compare_seq".
6438         (ix86_expand_int_movcc): Likewise.
6439         (ix86_output_call_insn): Likewise for param "insn".
6440         (ix86_output_call_insn): Likewise for local "i".
6441         (x86_output_mi_thunk): Introduce local "insn", using it in place
6442         of "tmp" when dealing with insns.
6443         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6444         "start".
6445         (ix86_pad_returns): Likewise for locals "ret", "prev".
6446         (ix86_count_insn_bb): Likewise for local "insn".
6447         (ix86_pad_short_function): Likewise for locals "ret", "insn".
6448         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6449         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6450         (expand_vec_perm_interleave2): Likewise for local "seq".
6451         (expand_vec_perm_vperm2f128_vblend): Likewise.
6452         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
6453         call to for_each_rtx with for_each_rtx_in_insn.
6454
6455 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6456
6457         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6458         "label" from rtx to rtx_code_label *.
6459         (ix86_expand_prologue): Likewise.
6460         (ix86_expand_split_stack_prologue): Likewise for locals "label",
6461         "varargs_label".
6462         (ix86_split_idivmod): Likewise for locals "end_label" and
6463         "qimode_label".
6464         (ix86_expand_branch): Likewise for local "label2".
6465         (ix86_expand_aligntest): Likewise for return type and local "label".
6466         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6467         "top_label".
6468         (expand_movmem_epilogue): Likewise for the various locals named
6469         "label".
6470         (expand_setmem_epilogue): Likewise.
6471         (expand_small_movmem_or_setmem): Likewise for local "label".
6472         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6473         Strengthen param "done_label" from rtx * to rtx_code_label **.
6474         Strengthen locals "loop_label" and "label" from rtx to
6475         rtx_code_label *.
6476         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6477         Likewise for locals "loop_label", "label".
6478         (ix86_expand_set_or_movmem): Likewise for locals "label",
6479         "jump_around_label", "hot_label".
6480         (ix86_expand_strlensi_unroll_1): Likewise for locals
6481         "align_2_label", align_3_label", "align_4_label", "end_0_label",
6482         "end_2_label".
6483         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6484         (void ix86_emit_i387_log1p): Likewise for locals "label1",
6485         "label2", "jump_label".
6486         (ix86_expand_sse_compare_and_jump): Likewise for return type and
6487         local "label".
6488         (ix86_expand_lfloorceil): Likewise for local "label".
6489         (ix86_expand_rint): Likewise.
6490         (ix86_expand_floorceildf_32): Likewise.
6491         (ix86_expand_floorceil): Likewise.
6492         (ix86_expand_rounddf_32): Likewise.
6493         (ix86_expand_trunc): Likewise.
6494         (ix86_expand_truncdf_32): Likewise.
6495         (ix86_expand_round): Likewise.
6496
6497 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6498
6499         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6500         first param from rtx to rtx_insn *.
6501         (h8300_insn_length_from_table): Likewise.
6502         * config/h8300/h8300.c (F): Likewise for return type and param
6503         "x".
6504         (Fpa): Add a checked cast to rtx_insn *.
6505         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6506         rtx_insn *.
6507         (final_prescan_insn): Likewise for param "insn".
6508         (h8300_binary_length): Likewise.
6509         (h8300_insn_length_from_table): Likewise.
6510
6511 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6512
6513         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6514         Strengthen first param "insn" from rtx to rtx_insn *.
6515
6516         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6517         Likewise.
6518         (frame_insn): Likewise for return type.  Introduce local "insn"
6519         for use in place of local "x" for use as an rtx_insn *.
6520         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6521         (epiphany_expand_prologue): Likewise for local "insn".
6522         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6523         * config/epiphany/resolve-sw-modes.c
6524         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6525         "seq".
6526
6527 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6528
6529         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6530         param from rtx to rtx_insn *.
6531         (c6x_final_prescan_insn): Likewise for first param.
6532
6533         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6534         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6535         (c6x_expand_compare): Strengthen local "insns" from rtx to
6536         rtx_insn *.
6537         (c6x_get_unit_specifier): Likewise for param "insn".
6538         (c6x_print_unit_specifier_field): Likewise.
6539         (c6x_final_prescan_insn): Likewise.
6540         (emit_add_sp_const): Likewise for local "insn".
6541         (c6x_expand_prologue): Likewise.
6542
6543 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6544
6545         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6546         param 1 from rtx to rtx_insn *.
6547         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6548         the various locals named "insn".
6549         (expand_epilogue_reg_restore): Likewise.
6550         (frame_related_constant_load): Likewise.
6551         (add_to_reg): Likewise.
6552         (emit_link_insn): Likewise.
6553         (do_link): Likewise.
6554         (expand_interrupt_handler_prologue): Likewise.
6555         (branch_dest): Likewise for param "branch".
6556         (asm_conditional_branch): Likewise for param "insn".
6557         (gen_one_bundle): Likewise for elements of param "slot" and local
6558         "t".
6559         (bfin_gen_bundles): Likewise for locals "insn", "next" and
6560         elements of local "slot".
6561         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6562         "queue", "next_queue", "prev".
6563         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6564         (add_sched_insns_for_speculation): Likewise for local "insn".
6565
6566 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6567
6568         * config/avr/avr-protos.h (output_movqi): Strengthen first param
6569         from rtx to rtx_insn *.
6570         (output_movhi): Likewise.
6571         (output_movsisf): Likewise.
6572         (avr_out_tstsi): Likewise.
6573         (avr_out_tsthi): Likewise.
6574         (avr_out_tstpsi): Likewise.
6575         (avr_out_compare): Likewise.
6576         (avr_out_compare64): Likewise.
6577         (avr_out_movpsi): Likewise.
6578         (ashlqi3_out): Likewise.
6579         (ashlhi3_out): Likewise.
6580         (ashlsi3_out): Likewise.
6581         (ashrqi3_out): Likewise.
6582         (ashrhi3_out): Likewise.
6583         (ashrsi3_out): Likewise.
6584         (lshrqi3_out): Likewise.
6585         (lshrhi3_out): Likewise.
6586         (lshrsi3_out): Likewise.
6587         (avr_out_ashlpsi3): Likewise.
6588         (avr_out_ashrpsi3): Likewise.
6589         (avr_out_lshrpsi3): Likewise.
6590         (avr_out_fract): Likewise.
6591         (avr_out_sbxx_branch): Likewise.
6592         (avr_out_round): Likewise.
6593         (avr_out_xload): Likewise.
6594         (avr_out_movmem): Likewise.
6595         (adjust_insn_length): Likewise.
6596         (avr_out_lpm): Likewise.
6597         (reg_unused_after): Likewise.
6598         (_reg_unused_after): Likewise.
6599         (avr_jump_mode): Likewise for second param.
6600         (jump_over_one_insn): Likewise for first param.
6601         (avr_final_prescan_insn): Likewise.
6602         (out_shift_with_cnt): Likewise for second param.
6603
6604         * config/avr/avr.c (get_sequence_length): Likewise for param
6605         "insns" and local "insn".
6606         (emit_push_byte): Likewise for local "insn".
6607         (emit_push_sfr): Likewise.
6608         (avr_prologue_setup_frame): Likewise for locals "insn",
6609         "fp_plus_insns", "sp_plus_insns".
6610         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6611         "sp_plus_insns".
6612         (avr_jump_mode): Likewise for param "insn".
6613         (avr_final_prescan_insn): Likewise.
6614         (avr_find_unused_d_reg): Likewise.
6615         (avr_out_lpm_no_lpmx): Likewise.
6616         (avr_out_lpm): Likewise.
6617         (avr_out_xload): Likewise.
6618         (output_movqi): Likewise.
6619         (output_movhi): Likewise.
6620         (out_movqi_r_mr): Likewise.
6621         (out_movhi_r_mr): Likewise.
6622         (out_movsi_r_mr): Likewise.
6623         (out_movsi_mr_r): Likewise.
6624         (output_movsisf): Likewise.
6625         (avr_out_load_psi): Likewise.
6626         (avr_out_store_psi): Likewise.
6627         (avr_out_movpsi): Likewise.
6628         (out_movqi_mr_r): Likewise.
6629         (avr_out_movhi_mr_r_xmega): Likewise.
6630         (out_movhi_mr_r): Likewise.
6631         (compare_condition): Likewise for param "insn" and local "next".
6632         (compare_sign_p): Likewise for param "insn".
6633         (compare_diff_p): Likewise.
6634         (compare_eq_p): Likewise.
6635         (avr_out_compare): Likewise.
6636         (avr_out_compare64): Likewise.
6637         (avr_out_tsthi): Likewise.
6638         (avr_out_tstpsi): Likewise.
6639         (avr_out_tstsi): Likewise.
6640         (out_shift_with_cnt): Likewise.
6641         (ashlqi3_out): Likewise.
6642         (ashlhi3_out): Likewise.
6643         (avr_out_ashlpsi3): Likewise.
6644         (ashlsi3_out): Likewise.
6645         (ashrqi3_out): Likewise.
6646         (ashrhi3_out): Likewise.
6647         (avr_out_ashrpsi3): Likewise.
6648         (ashrsi3_out): Likewise.
6649         (lshrqi3_out): Likewise.
6650         (lshrhi3_out): Likewise.
6651         (avr_out_lshrpsi3): Likewise.
6652         (lshrsi3_out): Likewise.
6653         (avr_out_fract): Likewise.
6654         (avr_out_round): Likewise.
6655         (avr_adjust_insn_length): Likewise.
6656         (reg_unused_after): Likewise.
6657         (_reg_unused_after): Likewise.
6658         (avr_compare_pattern): Likewise.
6659         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6660         and locals "branch1", "branch2", "insn2", "jump".
6661         (avr_reorg): Likewise for local "insn".
6662         (avr_2word_insn_p): Likewise for param "insn".
6663         (jump_over_one_insn_p): Likewise.
6664         (avr_out_sbxx_branch): Likewise.
6665         (avr_out_movmem): Likewise.
6666
6667 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6668
6669         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6670         param from rtx to rtx_insn *.
6671         (thumb1_final_prescan_insn): Likewise.
6672         (thumb2_final_prescan_insn): Likewise.
6673
6674         * config/arm/arm.c (emit_set_insn): Strengthen return type from
6675         rtx to rtx_insn *.
6676         (struct minipool_node): Likewise for field "insn".
6677         (dump_minipool): Likewise for param "scan".
6678         (create_fix_barrier): Likewise for local "from".  Strengthen local
6679         "label" from rtx to rtx_code_label *.
6680         (push_minipool_barrier): Strengthen param "insn" from rtx to
6681         rtx_insn *.
6682         (push_minipool_fix): Likewise.
6683         (note_invalid_constants): Likewise.
6684         (thumb2_reorg): Likewise for local "insn".
6685         (arm_reorg): Likewise.
6686         (thumb2_final_prescan_insn): Likewise for param
6687         "insn" and local "first_insn".
6688         (arm_final_prescan_insn): Likewise for param "insn" and locals
6689         "start_insn", "this_insn".
6690         (arm_debugger_arg_offset): Likewise for param "insn".
6691         (thumb1_emit_multi_reg_push): Likewise for return type and local
6692         "insn".
6693         (thumb1_final_prescan_insn): Likewise for param "insn".
6694         (thumb_far_jump_used_p): Likewise for local "insn".
6695         (thumb1_expand_prologue): Likewise.
6696         (arm_expand_epilogue_apcs_frame): Likewise.
6697         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6698         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6699         from rtx to rtx_code_label *.
6700         (arm_split_atomic_op): Likewise for local "label".
6701         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6702
6703 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6704
6705         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6706         first param from rtx to rtx_insn *.
6707         (arc_verify_short): Likewise.
6708         (arc_short_long): Likewise.
6709         (arc_need_delay): Likewise.
6710
6711         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6712         "target_insn".
6713         (arc_ccfsm_advance): Likewise for param "insn" and locals
6714         "start_insn", "this_insn".
6715         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6716         (arc_ccfsm_post_advance): Likewise for param "insn".
6717         (arc_next_active_insn): Likewise for return type and param "insn".
6718         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
6719         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6720         (output_short_suffix): Likewise for local "insn".
6721         (arc_final_prescan_insn): Likewise for param "insn".  Remove
6722         now-redundant checked cast.
6723         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6724         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6725         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
6726         for use where lc_set became an insn.
6727         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6728         rtx to rtx_insn *.
6729         (arc_get_insn_variants): Likewise for local "prev".
6730         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6731         "next".
6732         (arc_predicate_delay_insns): Likewise for local "insn".
6733         (arc_pad_return): Likewise for local "prev".  For now, add a
6734         checked cast when extracting the insn from "final_sequence".
6735         (arc_short_long): Likewise for param "insn".
6736         (arc_need_delay): Likewise for param "insn" and local "next".
6737         (arc_label_align): Likewise for locals "prev", "next".
6738
6739 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6740
6741         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6742         "insn" from rtx to rtx_insn *.
6743         (alpha_gp_save_rtx): Likewise for local "seq".
6744         (alpha_instantiate_decls): Likewise for local "top".
6745         (get_some_local_dynamic_name): Likewise for local "insn".
6746         (alpha_does_function_need_gp): Likewise.
6747         (set_frame_related_p): Likewise for return type and for locals
6748         "seq" and "insn".
6749         (emit_frame_store_1): Likewise for local "insn".
6750         (alpha_expand_prologue): Likewise for locals "insn", "seq".
6751         (alpha_end_function): Likewise for local "insn".
6752         (alpha_output_mi_thunk_osf): Likewise.
6753         (alphaev4_insn_pipe): Likewise for param "insn".
6754         (alphaev5_insn_pipe): Likewise.
6755         (alphaev4_next_group): Likewise for return type and param 1
6756         "insn".
6757         (alphaev5_next_group): Likewise.
6758         (alpha_align_insns_1): Likewise for return type and param 1 of
6759         callback param "next_group", and for locals "i", "next", "prev",
6760         "where", "where2", "insn".
6761
6762 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
6763
6764         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6765         rather than modifying the stmt.
6766
6767 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6768
6769         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6770         cgraph_state conversion.
6771
6772 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
6773
6774         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6775         Strengthen local "insns" from rtx to rtx_insn *.
6776         (aarch64_set_frame_expr): Likewise for local "insn".
6777         (aarch64_save_or_restore_fprs): Likewise.
6778         (aarch64_save_or_restore_callee_save_registers): Likewise.
6779         (aarch64_expand_prologue): Likewise.
6780         (aarch64_expand_epilogue): Likewise.
6781         (aarch64_output_mi_thunk): Likewise.
6782         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6783         "label2" from rtx to rtx_code_label *.
6784         (aarch64_split_atomic_op): Likewise for local "label".
6785
6786 2014-08-25  Martin Liska  <mliska@suse.cz>
6787
6788         * cgraph.h (symtab_node):
6789         (bool needed_p (void)): created from decide_is_symbol_needed
6790         (bool referred_to_p (void)): created from referred_to_p
6791         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6792         * cgraph.h (cgraph_node):
6793         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6794         (void expand (void)): created from expand_function
6795         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6796         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6797         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6798         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6799         * cgraph.h (varpool_node):
6800         (static void add (tree decl): created from varpool_add_new_variable
6801         * cgraph.h (cgraph_edge):
6802         void remove (void);
6803         (void remove_caller (void)): created from cgraph_edge_remove_caller
6804         (void remove_callee (void)): created from cgraph_edge_remove_callee
6805         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6806           created from cgraph_set_call_stmt
6807         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6808         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6809         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6810           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6811         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6812           created from cgraph_speculative_call_info
6813         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6814           int freq_scale, bool update_original)): created from cgraph_clone_edge
6815         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6816         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6817         (bool recursive_p (void)): created from cgraph_edge_recursive_p
6818         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6819         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6820         (static void rebuild_references (void)): created from cgraph_rebuild_references
6821         * cgraph.h (symbol_table):
6822         (create_reference): renamed from add_reference
6823         (maybe_create_reference): renamed from maybe_add_reference
6824         (void register_symbol (symtab_node *node)): new function
6825         (void clear_asm_symbols (void)): new function
6826         (void unregister (symtab_node *node)): new function
6827         (void release_symbol (cgraph_node *node, int uid)): new function
6828         (cgraph_node * allocate_cgraph_symbol (void)): new function
6829         (void initialize (void)): created from cgraph_init
6830         (symtab_node *first_symbol (void)):new function
6831         (asm_node *first_asm_symbol (void)):new function
6832         (symtab_node *first_defined_symbol (void)):new function
6833         (varpool_node *first_variable (void)):new function
6834         (varpool_node *next_variable (varpool_node *node)):new function
6835         (varpool_node *first_static_initializer (void)):new function
6836         (varpool_node *next_static_initializer (varpool_node *node)):new function
6837         (varpool_node *first_defined_variable (void)):new function
6838         (varpool_node *next_defined_variable (varpool_node *node)):new function
6839         (cgraph_node *first_defined_function (void)):new function
6840         (cgraph_node *next_defined_function (cgraph_node *node)):new function
6841         (cgraph_node *first_function (void)):new function
6842         (cgraph_node *next_function (cgraph_node *node)):new function
6843         (cgraph_node *first_function_with_gimple_body (void)):new function
6844         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6845         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6846           created from symtab_remove_unreachable_nodes
6847         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6848         (void process_new_functions (void)): created from cgraph_process_new_functions
6849         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6850         (bool output_variables (void)): created from varpool_node::output_variables
6851         (void output_asm_statements (void)): created from output_asm_statements
6852         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6853         (void compile (void)): created from compile
6854         (void output_weakrefs (void)): created from output_weakrefs
6855         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6856         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6857           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6858         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6859         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6860           created from cgraph_next_function_with_gimple_body
6861         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6862           created from cgraph_remove_edge_removal_hook
6863         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6864           created from cgraph_add_node_removal_hook
6865         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6866           created from cgraph_remove_node_removal_hook
6867         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6868           created from varpool_add_node_removal_hook
6869         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6870           created from varpool_remove_node_removal_hook
6871         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6872           created from cgraph_add_function_insertion_hook
6873         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6874           created from cgraph_remove_function_insertion_hook
6875         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6876           created from varpool_add_variable_insertion_hook
6877         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6878           created from varpool_remove_variable_insertion_hook
6879         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6880           created from cgraph_add_edge_duplication_hook
6881         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6882           created from cgraph_remove_edge_duplication_hook
6883         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6884           created from cgraph_add_node_duplication_hook
6885         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6886           created from cgraph_remove_node_duplication_hook
6887         (void call_edge_removal_hooks (cgraph_edge *e)):
6888           created from cgraph_call_edge_removal_hooks
6889         (void call_cgraph_insertion_hooks (cgraph_node *node)):
6890           created from call_function_insertion_hooks 
6891         (void call_cgraph_removal_hooks (cgraph_node *node)):
6892           created from cgraph_call_node_removal_hooks 
6893         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6894           created from cgraph_node::call_duplication_hooks 
6895         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6896           created from cgraph_call_edge_duplication_hooks
6897         (void call_varpool_removal_hooks (varpool_node *node)):
6898           created from varpool_call_node_removal_hooks
6899         (void call_varpool_insertion_hooks (varpool_node *node)):
6900           created from varpool_call_variable_insertion_hooks
6901         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6902           created from insert_to_assembler_name_hash
6903         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6904           created from unlink_from_assembler_name_hash
6905         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6906           created from symtab_prevail_in_asm_name_hash
6907         (void symtab_initialize_asm_name_hash (void)):
6908           created from symtab_initialize_asm_name_hash
6909         (void change_decl_assembler_name (tree decl, tree name)):
6910           created from change_decl_assembler_name
6911         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6912         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6913           created from decl_assembler_name_hash
6914         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6915           created from decl_assembler_name_equal
6916         (static hashval_t hash_node_by_assembler_name (const void *p)):
6917           created from hash_node_by_assembler_name
6918         (static int eq_assembler_name (const void *p1, const void *p2)):
6919           created from eq_assembler_name
6920
6921 2014-08-25  Marek Polacek  <polacek@redhat.com>
6922
6923         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6924
6925 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
6926
6927         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6928         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6929         SWI1248_AVX512BW mode iterator.
6930
6931 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
6932
6933         PR target/62111
6934         * config/sh/predicates.md (general_extend_operand): Disable
6935         TRUNCATE before reload completes.
6936
6937 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
6938
6939         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6940
6941 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
6942
6943         PR target/61996
6944         * config/sh/sh.opt (musermode): Allow negative form.
6945         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6946         targets that don't support it.
6947         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6948         Document -mno-usermode option.
6949
6950 2014-08-24  Kito Cheng  <kito@0xlab.org>
6951
6952         * system.h (CALLER_SAVE_PROFITABLE): Poison.
6953         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6954         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6955         * doc/tm.texi: Regenerate.
6956
6957 2014-08-24  Kito Cheng  <kito@0xlab.org>
6958
6959         * ira.c: Fix typo in comment.
6960
6961 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
6962
6963         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6964         Deprecate c++1y. Change language to reflect greater confidence in C++14.
6965
6966 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
6967
6968         PR target/62038
6969         * config/pa/pa.c (pa_output_function_epilogue): Don't set
6970         last_address when the current function is a thunk.
6971         (pa_asm_output_mi_thunk): When we don't have named sections or they
6972         are not being used, check that thunk can reach the stub table with a
6973         short branch.
6974
6975 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6976
6977         * web.c (union_match_dups): Strengthen param "insn" from rtx to
6978         rtx_insn *.
6979         (pass_web::execute): Likewise for local "insn".
6980
6981 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
6982
6983         * var-tracking.c (struct micro_operation_def): Strengthen field
6984         "insn" from rtx to rtx_insn *.
6985         (struct emit_note_data_def): Likewise.
6986         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6987         (vt_stack_adjustments): Likewise for local "insn".
6988         (adjust_insn): Likewise for param "insn".
6989         (val_store): Likewise.
6990         (val_resolve): Likewise.
6991         (struct count_use_info): Likewise for field "insn".
6992         (log_op_type): Likewise for param "insn".
6993         (reverse_op): Likewise.
6994         (prepare_call_arguments): Likewise.
6995         (add_with_sets):  The initial param takes an insn, but we can't
6996         yet strengthen it from rtx to rtx_insn * since it's used as a
6997         cselib_record_sets_hook callback.  For now rename initial param
6998         from "insn" to "uncast_insn", and introduce a local "insn" of
6999         the stronger rtx_insn * type, with a checked cast.
7000         (compute_bb_dataflow): Strengthen local "insn" from rtx to
7001         rtx_insn *.
7002         (emit_note_insn_var_location): Likewise.
7003         (emit_notes_for_changes): Likewise.
7004         (emit_notes_for_differences): Likewise.
7005         (next_non_note_insn_var_location): Likewise for return type and
7006         for param "insn".
7007         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7008         (vt_initialize): Likewise for local "insn".
7009         (delete_debug_insns): Likewise for locals "insn" and "next".
7010
7011 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7012
7013         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7014         rtx_insn *.
7015         (mark_constant_pool): Likewise for local "insn".
7016
7017 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7018
7019         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7020         rtx to rtx_insn *.
7021         (dead_debug_promote_uses): Likewise.
7022         (dead_debug_insert_temp): Likewise.
7023
7024 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
7025
7026         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7027         from const_rtx to const rtx_insn *.
7028         (store_killed_after): Likewise.  Strengthen locals "last", "act"
7029         from rtx to rtx_insn *.
7030         (store_killed_before): Strengthen param "insn" from const_rtx to
7031         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
7032         (find_moveable_store): Strengthen param "insn" from rtx to
7033         rtx_insn *.
7034         (compute_store_table): Likewise for local "insn".
7035         (insert_insn_start_basic_block): Likewise for param "insn" and
7036         locals "prev", "before", "insn".
7037         (insert_store): For now, add a checked cast to rtx_insn * on the
7038         result of gen_move_insn.
7039         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7040         to rtx_insn *.
7041         (replace_store_insn): Likewise.  For now, add a checked cast to
7042         rtx_insn * on the result of gen_move_insn.
7043
7044 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7045
7046         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7047         rtx_insn *.
7048         (expand_sjlj_dispatch_table): Likewise.
7049
7050 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7051
7052         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7053         "insn" from rtx to rtx_insn *.
7054
7055 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7056
7057         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7058         "insn" from rtx to rtx_insn *.
7059         (dup_block_and_redirect): Likewise for param 3 "before".
7060
7061         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7062         from rtx to rtx_insn *.
7063         (move_insn_for_shrink_wrap): Likewise.
7064         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7065         (dup_block_and_redirect): Likewise for param "before" and local
7066         "insn".
7067         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7068         "end".
7069         (convert_to_simple_return): Likewise for local "start".
7070
7071         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7072         Strengthen local "insn" from rtx to rtx_insn *, for use when
7073         invoking requires_stack_frame_p.
7074
7075 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7076
7077         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7078         rtx_insn *.
7079         (speculate_expr): Likewise for locals "orig_insn_rtx",
7080         "spec_insn_rtx".
7081         (eq_transformed_insns): Likewise for locals "i1", "i2".
7082         (check_for_new_jump): Likewise for return type and local "end".
7083         (find_new_jump): Likewise for return type and local "jump".
7084         (sel_split_edge): Likewise for local "jump".
7085         (sel_create_recovery_block): Likewise.
7086         (sel_redirect_edge_and_branch_force): Likewise.
7087         (sel_redirect_edge_and_branch): Likewise.
7088
7089 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7090
7091         * sel-sched.c (substitute_reg_in_expr): Strengthen local
7092         "new_insn" from rtx to rtx_insn *.
7093         (create_insn_rtx_with_rhs): Likewise for return type and for local
7094         "insn_rtx".
7095         (create_insn_rtx_with_lhs): Likewise.
7096         (create_speculation_check): Likewise for local "insn_rtx".
7097         (implicit_clobber_conflict_p): Likewise for local "insn".
7098         (get_expr_cost): Likewise.
7099         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7100         (move_cond_jump): Likewise for locals "next", "prev", "link",
7101         "head", "from", "to".
7102
7103 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7104
7105         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7106         "next" from rtx to rtx_insn *.
7107         (find_conditional_protection): Likewise for local "next".
7108         (is_conditionally_protected): Likewise for local "insn1".
7109         (is_pfree): Likewise for locals "insn1", "insn2".
7110
7111 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7112
7113         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7114         from rtx to rtx_insn *.
7115
7116         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7117         locals "insn1", "insn2" from rtx to rtx_insn *.
7118         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7119         locals "insn", "prev", "last_jump", "next_tail".
7120         (schedule_ebb): Likewise for params "head", "tail".
7121         (schedule_ebbs): Likewise for locals "tail", "head".
7122
7123         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7124         to rtx_insn on "last_insn" in one of the invocations of
7125         schedule_ebb.
7126
7127 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7128
7129         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7130         "elem", "insn" from rtx to rtx_insn *.
7131         (change_spec_dep_to_hard): Likewise.
7132         (get_back_and_forw_lists): Likewise for local "con".
7133         (sd_add_dep): Likewise for locals "elem", "insn".
7134         (sd_resolve_dep): Likewise for locals "pro", "con".
7135         (sd_unresolve_dep): Likewise.
7136         (sd_delete_dep): Likewise.
7137         (chain_to_prev_insn): Likewise for local "pro".
7138         (find_inc): Likewise for locals "pro", "con".
7139
7140 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7141
7142         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7143         to rtx_insn *.
7144         (reg_set_between_p): Strengthen local "insn" from const_rtx to
7145         const rtx_insn *.
7146         (modified_between_p): Strengthen local "insn" from rtx to
7147         rtx_insn *.
7148         (remove_reg_equal_equiv_notes_for_regno): Likewise.
7149         (keep_with_call_p): Strengthen local "i2" from const_rtx to
7150         const rtx_insn *.
7151
7152 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7153
7154         * resource.c (next_insn_no_annul): Strengthen local "next" from
7155         rtx to rtx_insn *.
7156         (mark_referenced_resources): Likewise for local "insn".
7157
7158 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7159
7160         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7161         to rtx_insn *.
7162         (find_reloads): Likewise for param 1.
7163         (subst_reloads): Likewise for sole param.
7164         (find_equiv_reg): Likwise for param 2.
7165         (regno_clobbered_p): Likwise for param 2.
7166         (reload): Likewise for param 1.
7167
7168         * caller-save.c (save_call_clobbered_regs): Strengthen local
7169         "insn" from rtx to rtx_insn *.
7170         (insert_one_insn): Likewise for local "insn".
7171
7172         * reload.c (this_insn): Likewise for this global.
7173         (find_reloads): Likewise for param "insn".
7174         (find_reloads_toplev): Likewise.
7175         (find_reloads_address): Likewise.
7176         (subst_reg_equivs): Likewise.
7177         (update_auto_inc_notes): Likewise.
7178         (find_reloads_address_1): Likewise.
7179         (find_reloads_subreg_address): Likewise.
7180         (subst_reloads): Likewise.
7181         (find_equiv_reg): Likewise, also for local "p".
7182         (regno_clobbered_p): Likewise for param "insn".
7183
7184         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7185         array.
7186         (spill_reg_store): Likewise for the elements of this array.
7187         (remove_init_insns): Likewise for local "equiv_insn".
7188         (will_delete_init_insn_p): Likewise for param "insn".
7189         (reload): Likewise for param ""first" and local "insn".
7190         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7191         rtx_insn *.
7192         (calculate_elim_costs_all_insns): Likewise.
7193         (delete_caller_save_insns): Likewise.
7194         (spill_failure): Likewise for param "insn".
7195         (delete_dead_insn): Likewise.
7196         (set_label_offsets): Likewise.
7197         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7198         "prev_insn".
7199         (elimination_costs_in_insn): Likewise for param "insn".
7200         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7201         when referring to an insn.
7202         (set_initial_label_offsets): Likewise.
7203         (set_offsets_for_label): Strengthen param "insn" from rtx to
7204         rtx_insn *.
7205         (init_eliminable_invariants): Likewise for param "first" and local
7206         "insn".
7207         (fixup_eh_region_note): Likewise for param "insn".
7208         (reload_as_needed): Likewise for locals "prev", "insn",
7209         "old_next", "old_prev", "next".
7210         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7211         "last".
7212         (reload_inheritance_insn): Strengthen elements of this array from
7213         rtx to rtx_insn *.
7214         (failed_reload): Likewise for param "insn".
7215         (choose_reload_regs): Likewise for local "insn".  Replace use of
7216         NULL_RTX with NULL when referring to an insn.
7217         (input_reload_insns): Strengthen elements of this array from rtx
7218         to rtx_insn *.
7219         (other_input_address_reload_insns): Likewise for this global.
7220         (other_input_reload_insns): Likewise for this global.
7221         (input_address_reload_insns): Likwise for the elements of this
7222         array.
7223         (inpaddr_address_reload_insns): Likwise for the elements of this
7224         array.
7225         (output_reload_insns): Likewise for the elements of this array.
7226         (output_address_reload_insns): Likewise for the elements of this
7227         array.
7228         (outaddr_address_reload_insns): Likewise for the elements of this
7229         array.
7230         (operand_reload_insns): Likewise for this global.
7231         (other_operand_reload_insns): Likewise for this global.
7232         (other_output_reload_insns): Likewise for the elements of this
7233         array.
7234         (new_spill_reg_store): Likewise for the elements of this
7235         array.
7236         (emit_input_reload_insns): Likewise for locals "insn", "temp".
7237         Strengthen local "where" from rtx * to rtx_insn **.
7238         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7239         from rtx to rtx_insn *.
7240         (do_input_reload): Likewise for local "insn".
7241         (do_output_reload): Likewise for local "insn".
7242         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7243         (emit_insn_if_valid_for_reload): Likewise for return type and local
7244         "last".  Add checked cast to rtx_insn when returning "insn" since
7245         this has been through emit_insn.
7246         (gen_reload): Strengthen return type and locals "last", "insn", "set"
7247         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
7248         returning "insn" since it's been through
7249         emit_insn_if_valid_for_reload at this point.
7250         (delete_output_reload): Strengthen param "insn" and locals
7251         "output_reload_insn", "i2" from rtx to rtx_insn *.
7252         (delete_address_reloads): Likewise for params "dead_insn",
7253         "current_insn" and locals "prev", "next".
7254         (delete_address_reloads_1): Likewise for params "dead_insn",
7255         "current_insn" and locals "prev", "i2".
7256         (inc_for_reload): Likewise for locals "last", "add_insn".
7257         (add_auto_inc_notes): Strengthen param "insn" from rtx to
7258         rtx_insn *.
7259
7260         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7261         param of this duplicate of the prototype from reload.h
7262
7263 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7264
7265         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7266         rtx to rtx_insn *.
7267         (regstat_bb_compute_calls_crossed): Likewise.
7268
7269 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7270
7271         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7272         to rtx_insn *.
7273         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7274         with an insn.
7275         (regrename_analyze): Strengthen local "insn" from rtx to
7276         rtx_insn *.
7277         (scan_rtx_reg): Likewise for param "insn".
7278         (scan_rtx_address): Likewise.
7279         (scan_rtx): Likewise.
7280         (restore_operands): Likewise.
7281         (record_out_operands): Likewise.
7282         (build_def_use): Likewise for local "insn".  Replace use of
7283         NULL_RTX with NULL when dealing with an insn.
7284
7285 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7286
7287         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7288         * reginfo.c (reg_scan): Likewise, also for local "insn".
7289         (reg_scan_mark_refs): Likewise for param "insn".
7290         (init_subregs_of_mode): Likewise for local "insn".
7291
7292 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7293
7294         * regcprop.c (struct queued_debug_insn_change): Strengthen field
7295         "insn" from rtx to rtx_insn *.
7296         (replace_oldest_value_reg): Likewise for param "insn".
7297         (replace_oldest_value_addr): Likewise.
7298         (replace_oldest_value_mem): Likewise.
7299         (apply_debug_insn_changes): Likewise for local "last_insn".
7300         (copyprop_hardreg_forward_1): Likewise for local "insn".
7301
7302 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7303
7304         * reg-stack.c (next_flags_user): Strengthen return type and param
7305         "insn" from rtx to rtx_insn *.
7306         (straighten_stack): Likewise for param "insn".
7307         (check_asm_stack_operands): Likewise.
7308         (remove_regno_note): Likewise.
7309         (emit_pop_insn): Likewise for return type, param "insn", local
7310         "pop_insn".
7311         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
7312         "limit" from rtx to rtx_insn *.
7313         (swap_to_top): Likewise for param "insn".
7314         (move_for_stack_reg): Likewise.
7315         (move_nan_for_stack_reg): Likewise.
7316         (swap_rtx_condition): Likewise.
7317         (compare_for_stack_reg): Likewise.
7318         (subst_all_stack_regs_in_debug_insn): Likewise.
7319         (subst_stack_regs_pat): Likewise, and local "insn2".
7320         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7321         rtx_insn *.
7322         (subst_stack_regs): Likewise.
7323         (change_stack): Likewise.
7324         (convert_regs_1): Likewise for locals "insn", "next".
7325
7326 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7327
7328         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7329         rtx_insn *.
7330         (combine_set_extension): Likewise for param "curr_insn".
7331         (transform_ifelse): Likewise for param "def_insn".
7332         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
7333         from vec<rtx> * to vec<rtx_insn *> *.
7334         (is_cond_copy_insn): Likewise for param "insn".
7335         (struct ext_state): Strengthen the four vec fields from vec<rtx>
7336         to vec<rtx_insn *>.
7337         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7338         local "def_insn" from rtx to rtx_insn *.
7339         (get_sub_rtx): Likewise for param "def_insn".
7340         (merge_def_and_ext): Likewise.
7341         (combine_reaching_defs): Likewise.
7342         (add_removable_extension): Likewise for param "insn".
7343         (find_removable_extensions): Likewise for local "insn".
7344         (find_and_remove_re): Likewise for locals "curr_insn" and
7345         "def_insn".  Strengthen locals "reinsn_del_list" and
7346         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7347
7348 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7349
7350         * recog.c (split_insn): Strengthen param "insn" and locals
7351         "first", "last" from rtx to rtx_insn *.
7352         (split_all_insns): Likewise for locals "insn", "next".
7353         (split_all_insns_noflow): Likewise.
7354
7355 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7356
7357         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7358         const rtx_insn *.
7359         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7360         (debug_rtx_find): Likewise for param 1 "x".
7361
7362         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7363         const_rtx to const rtx_insn *.  Likewise for local "insn".
7364         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7365         (debug_rtx_find): Likewise for param 1 "x".
7366         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7367         from const_rtx to const rtx_insn * within the appropriate cases of
7368         the switch statement.
7369
7370         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7371         Strengthen local "insns" from rtx to rtx_insn * since this is
7372         passed to a call to debug_rtx_list.
7373
7374 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7375
7376         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7377         to rtx_insn *.
7378
7379         * function.c (stack_protect_epilogue): Add checked cast to
7380         rtx_insn for now when invoking predict_insn_def.
7381
7382         * predict.c (predict_insn): Strengthen param "insn" from rtx to
7383         rtx_insn *.
7384         (predict_insn_def): Likewise.
7385         (rtl_predict_edge): Likewise for local "last_insn".
7386         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7387         const rtx_insn *.
7388         (combine_predictions_for_insn): Strengthen param "insn" from rtx
7389         to rtx_insn *.
7390         (bb_estimate_probability_locally): Likewise for local "last_insn".
7391         (expensive_function_p): Likewise for local "insn".
7392
7393         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7394         local "jmp", since this is used when invoking predict_insn_def.
7395
7396 2014-08-22  Marek Polacek  <polacek@redhat.com>
7397
7398         PR c++/62199
7399         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7400
7401 2014-08-22  Marek Polacek  <polacek@redhat.com>
7402
7403         PR c/61271
7404         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7405         a comparison in parens.
7406         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7407         in parens.
7408
7409 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7410
7411         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7412         rtx_insn *.
7413
7414         * cprop.c (fis_get_condition): Likewise.
7415
7416         * postreload.c (reload_cse_regs): Likewise for param "first".
7417         (reload_cse_simplify): Likewise for param "insn".
7418         (reload_cse_regs_1): Likewise for local "insn".
7419         (reload_cse_simplify_set): Likewise for param "insn".
7420         (reload_cse_simplify_operands): Likewise.
7421         (struct reg_use): Likewise for field "insn".
7422         (reload_combine_purge_insn_uses): Likewise for param "insn".
7423         (fixup_debug_insns): Likewise for params "from", "to" and local
7424         "insn".
7425         (try_replace_in_use): Likewise for local "use_insn".
7426         (reload_combine_recognize_const_pattern): Likewise for param
7427         "insn" and locals "add_moved_after_insn", "use_insn".
7428         (reload_combine_recognize_pattern): Likewise for param "insn" and
7429         local "prev".
7430         (reload_combine): Likewise for locals "insn", "prev".
7431         (reload_combine_note_use): Likewise for param "insn".
7432         (move2add_use_add2_insn): Likewise.
7433         (move2add_use_add3_insn): Likewise.
7434         (reload_cse_move2add): Likewise, also for local "next".
7435         (move2add_note_store): Likewise for local "insn".
7436
7437 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7438
7439         * postreload-gcse.c (struct occr): Strengthen field "insn" from
7440         rtx to rtx_insn *.
7441         (struct unoccr): Likewise.
7442         (struct modifies_mem): Likewise.
7443         (alloc_mem): Likewise for local "insn".
7444         (insert_expr_in_table): Likewise for param "insn".
7445         (dump_expr_hash_table_entry): Likewise for local "insn".
7446         (oprs_unchanged_p): Likewise for param "insn".
7447         (load_killed_in_block_p): Likewise for local "setter".
7448         (record_last_reg_set_info): Likewise for param "insn".
7449         (record_last_reg_set_info_regno): Likewise.
7450         (record_last_mem_set_info): Likewise.
7451         (record_last_set_info): Likewise for local "last_set_insn".
7452         (record_opr_changes): Likewise for param "insn".
7453         (hash_scan_set): Likewise.
7454         (compute_hash_table): Likewise for local "insn".
7455         (get_avail_load_store_reg): Likewise for param "insn".
7456         (eliminate_partially_redundant_load): Likewise, also for locals
7457         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
7458         RTX for insns.
7459         (eliminate_partially_redundant_loads): Likewise for local "insn".
7460
7461 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7462
7463         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7464         rtx to rtx_insn *.
7465         (expand_binop): Likewise for locals "entry_last", "last", "insns"
7466         (expand_twoval_unop): Likewise for locals entry_last", "last".
7467         (expand_twoval_binop): Likewise.
7468         (expand_twoval_binop_libfunc): Likewise for local "insns".
7469         (widen_leading): Likewise for local "last".
7470         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
7471         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7472         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7473         (expand_parity): Likewise for locals "last" and "seq".
7474         (expand_ffs): Likewise for local "seq".  Strengthen local
7475         "nonzero_label" from rtx to rtx_code_label *.
7476         (expand_absneg_bit): Strengthen local "insns" from rtx to
7477         rtx_insn *.
7478         (expand_unop_direct): Likewise for local "last".
7479         (expand_unop): Likewise for locals "last", "insns".
7480         (expand_abs_nojump): Likewise for local "last".
7481         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7482         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7483         rtx_insn *.
7484         (expand_copysign_absneg): Strengthen local "label" from rtx to
7485         rtx_code_label *.
7486         (expand_copysign_bit): Strengthen local "insns" from rtx to
7487         rtx_insn *.
7488         (struct no_conflict_data): Likewise for fields "first", "insn".
7489         (emit_libcall_block_1): Likewise for param "insns" and locals
7490         "next", "last", "insn".
7491         (emit_libcall_block): For now, add a checked cast to rtx_insn *
7492         on "insns" when invoking emit_libcall_block_1.  Ultimately we
7493         want to strengthen insns itself.
7494         (prepare_cmp_insn): Strengthen local "last" from rtx to
7495         rtx_insn *.
7496         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7497         (prepare_float_lib_cmp): Likewise for local "insns".
7498         (emit_conditional_move): Likewise for local "last".
7499         (emit_conditional_add): Likewise.
7500         (have_sub2_insn): Likewise for local "seq".
7501         (expand_float): Likewise for local "insns".  Strengthen locals
7502         "label", "neglabel" from rtx to rtx_code_label *.
7503         (expand_fix): Likewise for locals "last", "insn", "insns" (to
7504         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7505         (expand_fixed_convert): Likewise for local "insns" (to
7506         rtx_insn *).
7507         (expand_sfix_optab): Likewise for local "last".
7508         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7509         to rtx_code_label *.
7510         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7511         from rtx to rtx_insn *.
7512         (expand_atomic_fetch_op): Likewise for local "insn".
7513         (maybe_legitimize_operand_same_code): Likewise for local "last".
7514         (maybe_legitimize_operands): Likewise.
7515
7516 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7517
7518         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7519         "insn" from rtx to rtx_insn *.
7520         (ps_rtl_insn): Likewise for return type.
7521         (doloop_register_get): Likewise for params "head", "tail" and
7522         locals "insn", "first_insn_not_to_check".
7523         (schedule_reg_move): Likewise for local "this_insn".
7524         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7525         of gen_move_insn for now.
7526         (reset_sched_times): Strengthen local "insn" from rtx to
7527         rtx_insn *.
7528         (permute_partial_schedule): Likewise.
7529         (duplicate_insns_of_cycles): Likewise for local "u_insn".
7530         (dump_insn_location): Likewise for param "insn".
7531         (loop_canon_p): Likewise for local "insn".
7532         (sms_schedule): Likewise.
7533         (print_partial_schedule): Likewise.
7534         (ps_has_conflicts): Likewise.
7535
7536 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7537
7538         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7539         "tailp" from rtx * to rtx_insn **.
7540
7541         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7542         from rtx to rtx_insn *.
7543         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7544         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
7545         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7546         rtx to rtx_insn *.
7547         * modulo-sched.c (const_iteration_count): Strengthen return type
7548         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
7549         use of NULL_RTX with NULL when working with insns.
7550         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7551         to rtx_insn *.
7552         (sms_schedule): Likewise.
7553         * sched-rgn.c (init_ready_list): Likewise, also for locals
7554         "src_head" and "src_next_tail".
7555         (compute_block_dependences): Likewise.
7556         (free_block_dependencies): Likewise.
7557         (debug_rgn_dependencies): Likewise.
7558         (free_rgn_deps): Likewise.
7559         (compute_priorities): Likewise.
7560         (schedule_region): Likewise.
7561         * sel-sched.c (find_ebb_boundaries): Likewise.
7562
7563         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7564         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7565
7566 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7567
7568         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7569         from rtx to rtx_insn *.
7570         (new_seginfo): Likewise for param "insn".
7571         (create_pre_exit): Likewise for locals "last_insn",
7572         "before_return_copy", "return_copy".
7573         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7574         "mode_set".
7575
7576 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7577
7578         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7579         from rtx to rtx_insn *.
7580         (lra_push_insn): Likewise for 1st param.
7581         (lra_push_insn_and_update_insn_regno_info): Likewise.
7582         (lra_pop_insn): Likewise for return type.
7583         (lra_invalidate_insn_data): Likewise for 1st param.
7584         (lra_set_insn_deleted): Likewise.
7585         (lra_delete_dead_insn): Likewise.
7586         (lra_process_new_insns): Likewise for first 3 params.
7587         (lra_set_insn_recog_data): Likewise for 1st param.
7588         (lra_update_insn_recog_data): Likewise.
7589         (lra_set_used_insn_alternative): Likewise.
7590         (lra_invalidate_insn_regno_info): Likewise.
7591         (lra_update_insn_regno_info): Likewise.
7592         (lra_former_scratch_operand_p): Likewise.
7593         (lra_eliminate_regs_1): Likewise.
7594         (lra_get_insn_recog_data): Likewise.
7595
7596         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7597         rtx to rtx_insn *.
7598
7599         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7600         "mv1" and "mv2".
7601         (substitute_within_insn): New.
7602         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7603         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
7604         Replace call to "substitute" with call to substitute_within_insn.
7605
7606         * lra-constraints.c (curr_insn): Strengthen from rtx to
7607         rtx_insn *.
7608         (get_equiv_with_elimination): Likewise for param "insn".
7609         (match_reload): Strengthen params "before" and "after" from rtx *
7610         to rtx_insn **.
7611         (emit_spill_move): Likewise for return type.  Add a checked cast
7612         to rtx_insn * on result of gen_move_insn for now.
7613         (check_and_process_move): Likewise for local "before".  Replace
7614         NULL_RTX with NULL when referring to insns.
7615         (process_addr_reg): Strengthen params "before" and "after" from
7616         rtx * to rtx_insn **.
7617         (insert_move_for_subreg): Likewise.
7618         (simplify_operand_subreg): Strengthen locals "before" and "after"
7619         from rtx to rtx_insn *.
7620         (process_address_1): Strengthen params "before" and "after" from
7621         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
7622         rtx to rtx_insn *.
7623         (process_address): Strengthen params "before" and "after" from
7624         rtx * to rtx_insn **.
7625         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7626         (curr_insn_transform): Strengthen locals "before" and "after"
7627         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
7628         to insns.
7629         (loc_equivalence_callback): Update cast of "data", changing
7630         resulting type from rtx to rtx_insn *.
7631         (substitute_pseudo_within_insn): New.
7632         (inherit_reload_reg): Strengthen param "insn" from rtx to
7633         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
7634         NULL when referring to insns.  Add a checked cast to rtx_insn *
7635         when using usage_insn to invoke lra_update_insn_regno_info.
7636         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7637         likewise for locals "restore", "save".  Add checked casts to
7638         rtx_insn * when using usage_insn to invoke
7639         lra_update_insn_regno_info and lra_process_new_insns.  Replace
7640         NULL_RTX with NULL when referring to insns.
7641         (split_if_necessary): Strengthen param "insn" from rtx to
7642         rtx_insn *.
7643         (update_ebb_live_info): Likewise for params "head", "tail" and local
7644         "prev_insn".
7645         (get_last_insertion_point): Likewise for return type and local "insn".
7646         (get_live_on_other_edges): Likewise for local "last".
7647         (inherit_in_ebb): Likewise for params "head", "tail" and locals
7648         "prev_insn", "next_insn", "restore".
7649         (remove_inheritance_pseudos): Likewise for local "prev_insn".
7650         (undo_optional_reloads): Likewise for local "insn".
7651
7652         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7653         "insn".
7654         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7655         insns.
7656         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7657         rtx_insn *.
7658         (spill_pseudos): Likewise for local "insn".
7659         (init_elimination): Likewise.
7660         (process_insn_for_elimination): Likewise for param "insn".
7661
7662         * lra-lives.c (curr_insn): Likewise.;
7663
7664         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7665         (remove_pseudos): Likewise for param "insn".
7666         (spill_pseudos): Likewise for local "insn".
7667         (lra_final_code_change): Likewise for locals "insn", "curr".
7668
7669         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7670         (lra_set_insn_deleted): Likewise.
7671         (lra_delete_dead_insn): Likewise, and for local "prev".
7672         (new_insn_reg): Likewise for param "insn".
7673         (lra_set_insn_recog_data): Likewise.
7674         (lra_update_insn_recog_data): Likewise.
7675         (lra_set_used_insn_alternative): Likewise.
7676         (get_insn_freq): Likewise.
7677         (invalidate_insn_data_regno_info): Likewise.
7678         (lra_invalidate_insn_regno_info): Likewise.
7679         (lra_update_insn_regno_info): Likewise.
7680         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7681         vec<rtx_insn *>.
7682         (lra_push_insn_1): Strengthen param "insn" from rtx to
7683         rtx_insn *.
7684         (lra_push_insn): Likewise.
7685         (lra_push_insn_and_update_insn_regno_info): Likewise.
7686         (lra_pop_insn): Likewise for return type and local "insn".
7687         (push_insns): Likewise for params "from", "to", and local "insn".
7688         (setup_sp_offset): Likewise for params "from", "last" and locals
7689         "before", "insn".
7690         (lra_process_new_insns): Likewise for params "insn", "before",
7691         "after" and local "last".
7692         (struct sloc): Likewise for field "insn".
7693         (lra_former_scratch_operand_p): Likewise for param "insn".
7694         (remove_scratches): Likewise for locals "insn", "last".
7695         (check_rtl): Likewise for local "insn".
7696         (add_auto_inc_notes): Likewise for param "insn".
7697         (update_inc_notes): Likewise for local "insn".
7698         (lra): Replace NULL_RTX with NULL when referring to insn.
7699
7700 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7701
7702         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7703         to rtx_insn *.
7704         (resolve_reg_notes): Likewise.
7705         (resolve_simple_move): Likewise for return type, param "insn", and
7706         locals "insns", "minsn".
7707         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7708         (resolve_use): Likewise.
7709         (resolve_debug): Likewise.
7710         (find_decomposable_shift_zext): Likewise.
7711         (resolve_shift_zext): Likewise for return type, param "insn", and
7712         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
7713         (decompose_multiword_subregs): Likewise for local "insn",
7714         "orig_insn", "decomposed_shift", "end".
7715
7716 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7717
7718         * basic-block.h (basic_block split_edge_and_insert): Strengthen
7719         param "insns" from rtx to rtx_insn *.
7720
7721         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7722         rtx to rtx_insn *.
7723         (struct iv_to_split): Likewise.
7724         (loop_exit_at_end_p): Likewise for local "insn".
7725         (split_edge_and_insert): Likewise for param "insns".
7726         (compare_and_jump_seq): Likewise for return type, param "cinsn",
7727         and locals "seq", "jump".
7728         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7729         "branch_code"; update invocations of compare_and_jump_seq to
7730         eliminate NULL_RTX in favor of NULL.
7731         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7732         rtx to rtx_insn *.
7733         (reset_debug_uses_in_loop): Likewise.
7734         (analyze_insn_to_expand_var): Likewise for param "insn".
7735         (analyze_iv_to_split_insn): Likewise.
7736         (analyze_insns_in_loop): Likewise for local "insn".
7737         (insert_base_initialization): Likewise for param
7738         "insn" and local "seq".
7739         (split_iv): Likewise for param "insn" and local "seq".
7740         (expand_var_during_unrolling): Likewise for param "insn".
7741         (insert_var_expansion_initialization): Likewise for local "seq".
7742         (combine_var_copies_in_loop_exit): Likewise.
7743         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7744         "insn".
7745         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7746         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7747         "next".
7748
7749 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7750
7751         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7752         rtx_insn *.
7753         (iv_analyze_result): Likewise.
7754         (iv_analyze_expr): Likewise.
7755         (biv_p): Likewise.
7756
7757         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7758         local "def_insn" from rtx to rtx_insn *.
7759         (get_biv_step_1): Likewise for local "insn".
7760         (iv_analyze_expr): Likewise for param "insn".
7761         (iv_analyze_def): Likewise for local "insn".
7762         (iv_analyze_op): Likewise for param "insn".
7763         (iv_analyze): Likewise.
7764         (iv_analyze_result): Likewise.
7765         (biv_p): Likewise.
7766         (suitable_set_for_replacement): Likewise.
7767         (simplify_using_initial_values): Likewise for local "insn".
7768         (iv_number_of_iterations): Likewise for param "insn".
7769         (check_simple_exit): Add checked cast to rtx_insn when invoking
7770         iv_number_of_iterations for now (until get_condition is
7771         strengthened).
7772
7773         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7774         "insn" from rtx to rtx_insn *.
7775         (analyze_insns_in_loop): Likewise for local "insn".
7776
7777 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7778
7779         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7780         to rtx_insn *.
7781         (struct invariant): Likewise.
7782         (hash_invariant_expr_1): Likewise for param "insn".
7783         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7784         (find_exits): Likewise for local "insn".
7785         (create_new_invariant): Likewise for param "insn".
7786         (check_dependencies): Likewise.
7787         (find_invariant_insn): Likewise.
7788         (record_uses): Likewise.
7789         (find_invariants_insn): Likewise.
7790         (find_invariants_bb): Likewise for local "insn".
7791         (get_pressure_class_and_nregs): Likewise for param "insn".
7792         (calculate_loop_reg_pressure): Likewise for local "insn".
7793
7794 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7795
7796         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7797         to rtx_insn *.
7798         (add_test): Likewise for locals "seq", "jump".
7799         (doloop_modify): Likewise for locals "sequence", "jump_insn".
7800
7801 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7802
7803         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7804         rtx_insn *.
7805         (rebuild_jump_labels_chain): Likewise for param "chain".
7806
7807         * cfgexpand.c (pass_expand::execute): Add checked cast to
7808         rtx_insn * when calling rebuild_jump_labels_chain in region where
7809         we know e->insns.r is non-NULL.
7810
7811         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7812         rtx_insn *.
7813         (rebuild_jump_labels): Likewise.
7814         (rebuild_jump_labels_chain): Likewise for param "chain".
7815         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7816         (init_label_info): Likewise for param "f".
7817         (maybe_propagate_label_ref): Likewise for params "jump_insn",
7818         "prev_nonjump_insn".
7819         (mark_all_labels): Likewise for param "f" and locals "insn",
7820         "prev_nonjump_insn".
7821
7822 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7823
7824         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7825         from rtx to rtx_insn *insn.
7826         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7827         (ira_add_allocno_copy): Likewise.
7828         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7829         rtx to rtx_insn *.
7830         (ira_create_copy): Likewise.
7831         (ira_add_allocno_copy): Likewise.
7832         (create_bb_allocnos): Likewise for local "insn".
7833         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7834         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7835         process_regs_for_copy for rtx_insn * param.
7836         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7837         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
7838         process_regs_for_copy for rtx_insn * param.
7839         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7840         * ira-costs.c (record_reg_classes): Likewise for param "insn".
7841         (record_operand_costs): Likewise.
7842         (scan_one_insn): Likewise for return type, and for param "insn".
7843         (process_bb_for_costs): Likewise for local "insn".
7844         (process_bb_node_for_hard_reg_moves): Likewise.
7845         * ira-emit.c (struct move): Likewise for field "insn".
7846         (create_move): Eliminate use of NULL_RTX when dealing with an
7847         rtx_insn *.
7848         (emit_move_list): Strengthen return type and locals "result",
7849         "insn" from rtx to rtx_insn *insn.
7850         (emit_moves): Likewise for locals "insns", "tmp".
7851         (ira_emit): Likewise for local "insn".
7852         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7853         "insn".
7854         (find_call_crossed_cheap_reg): Likewise.
7855         (process_bb_node_lives): Likewise for local "insn".
7856         * ira.c (decrease_live_ranges_number): Likewise.
7857         (compute_regs_asm_clobbered): Likewise.
7858         (build_insn_chain): Likewise.
7859         (find_moveable_pseudos): Likewise, also locals "def_insn",
7860         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
7861         to rtx_insn **.  Add a checked cast when assigning from
7862         "closest_use" into closest_uses array in a region where we know
7863         it's a non-NULL insn.
7864         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7865         to rtx_insn *.
7866         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7867         "last_interesting_insn", "uin".
7868         (move_unallocated_pseudos): Likewise for locals "def_insn",
7869         "move_insn", "newinsn".
7870
7871 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7872
7873         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7874         Strengthen locals "done_label", "do_error" from rtx to
7875         rtx_code_label *.
7876         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7877         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
7878         rtx_code_label *.
7879         (ubsan_expand_si_overflow_neg_check): Likewise for locals
7880         "done_label", "do_error" to rtx_code_label * and local  "last" to
7881         rtx_insn *.
7882         (ubsan_expand_si_overflow_mul_check): Likewise for locals
7883         "done_label", "do_error", "large_op0", "small_op0_large_op1",
7884         "one_small_one_large", "both_ops_large", "after_hipart_neg",
7885         "after_lopart_neg", "do_overflow", "hipart_different"  to
7886         rtx_code_label * and local  "last" to rtx_insn *.
7887
7888 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7889
7890         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7891         "insn" and "move_insn" from rtx to rtx_insn *.
7892
7893 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7894
7895         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7896         rtx_insn *.
7897         (cheap_bb_rtx_cost_p): Likewise.
7898         (first_active_insn): Likewise for return type and local "insn".
7899         (last_active_insn):  Likewise for return type and locals "insn",
7900         "head".
7901         (struct noce_if_info): Likewise for fields "jump", "insn_a",
7902         "insn_b".
7903         (end_ifcvt_sequence): Likewise for return type and locals "insn",
7904         "seq".
7905         (noce_try_move): Likewise for local "seq".
7906         (noce_try_store_flag): Likewise.
7907         (noce_try_store_flag_constants): Likewise.
7908         (noce_try_addcc): Likewise.
7909         (noce_try_store_flag_mask): Likewise.
7910         (noce_try_cmove): Likewise.
7911         (noce_try_minmax): Likewise.
7912         (noce_try_abs): Likewise.
7913         (noce_try_sign_mask): Likewise.
7914         (noce_try_bitop): Likewise.
7915         (noce_can_store_speculate_p): Likewise for local "insn".
7916         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7917         seq".
7918         (check_cond_move_block): Likewise for local "insn".
7919         (cond_move_convert_if_block): Likewise.
7920         (cond_move_process_if_block): Likewise for locals "seq",
7921         "loc_insn".
7922         (noce_find_if_block): Likewise for local "jump".
7923         (merge_if_block): Likewise for local "last".
7924         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7925         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7926         (block_has_only_trap): Likewise for return type and local "trap".
7927         (find_if_case_1): Likewise for local "jump".
7928         (dead_or_predicable): Likewise for locals "head", "end", "jump",
7929         "insn".
7930
7931 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7932
7933         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7934         "last_insn", "loop_end" from rtx to rtx_insn *.
7935
7936         * hw-doloop.c (scan_loop): Likewise for local "insn".
7937         (discover_loop): Likewise for param "tail_insn".
7938         (discover_loops): Likewise for local "tail".
7939
7940         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7941         cast to rtx_insn * when assigning from an rtx local to a
7942         hwloop_info's "last_insn" field.
7943
7944 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7945
7946         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7947         (add_delay_dependencies): Strengthen local "pro" from rtx to
7948         rtx_insn *.
7949         (recompute_todo_spec): Likewise.
7950         (dep_cost_1): Likewise for locals "insn", "used".
7951         (schedule_insn): Likewise for local "dbg".
7952         (schedule_insn): Likewise for locals "pro", "next".
7953         (unschedule_insns_until): Likewise for local "con".
7954         (restore_pattern): Likewise for local "next".
7955         (estimate_insn_tick): Likewise for local "pro".
7956         (resolve_dependencies): Likewise for local "next".
7957         (fix_inter_tick): Likewise.
7958         (fix_tick_ready): Likewise for local "pro".
7959         (add_to_speculative_block): Likewise for locals "check", "twin",
7960         "pro".
7961         (sched_extend_bb): Likewise for locals "end", "insn".
7962         (init_before_recovery): Likewise for local "x".
7963         (sched_create_recovery_block): Likewise for local "barrier".
7964         (create_check_block_twin): Likewise for local "pro".
7965         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7966         "consumer".
7967         (unlink_bb_notes): Update for change to type of bb_header.
7968         Strengthen locals "prev", "label", "note", "next" from rtx to
7969         rtx_insn *.
7970         (clear_priorities): Likewise for local "pro".
7971
7972 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
7973
7974         * gcse.c (struct occr): Strengthen field "insn" from rtx to
7975         rtx_insn *.
7976         (test_insn): Likewise for this global.
7977         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7978         const rtx_insn *.
7979         (oprs_anticipatable_p): Likewise.
7980         (oprs_available_p): Likewise.
7981         (insert_expr_in_table): Strengthen param "insn" from  rtx to
7982         rtx_insn *.
7983         (hash_scan_set): Likewise.
7984         (hash_scan_clobber): Likewise.
7985         (hash_scan_call): Likewise.
7986         (hash_scan_insn): Likewise.
7987         (compute_hash_table_work): Likewise for local "insn".
7988         (process_insert_insn): Likewise for return type and local "pat".
7989         (insert_insn_end_basic_block): Likewise for locals "new_insn",
7990         "pat", "pat_end", "maybe_cc0_setter".
7991         (pre_edge_insert): Likewise for local "insn".
7992         (pre_insert_copy_insn): Likewise for param "insn".
7993         (pre_insert_copies): Likewise for local "insn".
7994         (struct set_data): Likewise for field "insn".
7995         (single_set_gcse): Likewise for param "insn".
7996         (gcse_emit_move_after): Likewise.
7997         (pre_delete): Likewise for local "insn".
7998         (update_bb_reg_pressure): Likewise for param "from" and local
7999         "insn".
8000         (should_hoist_expr_to_dom): Likewise for param "from".
8001         (hoist_code): Likewise for local "insn".
8002         (get_pressure_class_and_nregs): Likewise for param "insn".
8003         (calculate_bb_reg_pressure): Likewise for local "insn".
8004         (compute_ld_motion_mems): Likewise.
8005
8006 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8007
8008         * genpeep.c (main): Rename param back from "uncast_ins1" to
8009         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
8010         checked cast.
8011
8012         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8013
8014 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8015
8016         PR target/62195
8017         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8018         documentation to state it is only for VSX operations.
8019
8020         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8021         constraint only active if VSX.
8022
8023         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8024         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8025         (lfiwzx): Likewise.
8026
8027 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8028
8029         * fwprop.c (single_def_use_dom_walker::before_dom_children):
8030         Strengthen local "insn" from rtx to rtx_insn *.
8031         (use_killed_between): Likewise for param "target_insn".
8032         (all_uses_available_at): Likewise for param "target_insn" and
8033         local "next".
8034         (update_df_init): Likewise for params "def_insn", "insn".
8035         (update_df): Likewise for param "insn".
8036         (try_fwprop_subst): Likewise for param "def_insn" and local
8037         "insn".
8038         (free_load_extend): Likewise for param "insn".
8039         (forward_propagate_subreg): Likewise for param "def_insn" and
8040         local "use_insn".
8041         (forward_propagate_asm): Likewise for param "def_insn" and local
8042         "use_insn".
8043         (forward_propagate_and_simplify): Likewise for param "def_insn"
8044         and local "use_insn".
8045         (forward_propagate_into): Likewise for locals "def_insn" and
8046         "use_insn".
8047
8048 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8049
8050         * function.c (emit_initial_value_sets): Strengthen local "seq"
8051         from rtx to rtx_insn *.
8052         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8053         local "seq".
8054         (instantiate_virtual_regs): Likewise for local "insn".
8055         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8056         (reorder_blocks_1): Likewise for param "insns" and local "insn".
8057         (expand_function_end): Likewise for locals "insn" and "seq".
8058         (epilogue_done): Likewise for local "insn".
8059         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8060         "last", "trial".
8061         (reposition_prologue_and_epilogue_notes): Likewise for locals
8062         "insn", "last", "note", "first".
8063         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8064         (pass_match_asm_constraints::execute): Likewise for local "insn".
8065
8066 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8067
8068         * output.h (final_scan_insn): Strengthen return type from rtx to
8069         rtx_insn *.
8070         (final_forward_branch_p): Likewise for param.
8071         (current_output_insn): Likewise for this global.
8072
8073         * final.c (rtx debug_insn): Likewise for this variable.
8074         (current_output_insn): Likewise.
8075         (get_attr_length_1): Rename param "insn" to "uncast_insn",
8076         adding "insn" back in as an rtx_insn * with a checked cast, so
8077         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8078         first param.
8079         (compute_alignments): Strengthen local "label" from rtx to
8080         rtx_insn *.
8081         (shorten_branches): Rename param from "first" to "uncast_first",
8082         introducing a new local rtx_insn * "first" using a checked cast to
8083         effectively strengthen "first" from rtx to rtx_insn * without
8084         affecting the type signature.  Strengthen locals "insn", "seq",
8085         "next", "label" from rtx to rtx_insn *.
8086         (change_scope): Strengthen param "orig_insn" and local "insn" from
8087         rtx to rtx_insn *.
8088         (final_start_function): Rename param from "first" to "uncast_first",
8089         introducing a new local rtx_insn * "first" using a checked cast to
8090         effectively strengthen "first" from rtx to rtx_insn * without
8091         affecting the type signature.  Strengthen local "insn" from rtx to
8092         rtx_insn *.
8093         (dump_basic_block_info): Strengthen param "insn" from rtx to
8094         rtx_insn *.
8095         (final): Rename param from "first" to "uncast_first",
8096         introducing a new local rtx_insn * "first" using a checked cast to
8097         effectively strengthen "first" from rtx to rtx_insn * without
8098         affecting the type signature.  Strengthen locals "insn", "next"
8099         from rtx to rtx_insn *.
8100         (output_alternate_entry_point): Strengthen param "insn" from rtx to
8101         rtx_insn *.
8102         (call_from_call_insn): Strengthen param "insn" from rtx to
8103         rtx_call_insn *.
8104         (final_scan_insn): Rename param from "insn" to "uncast_insn",
8105         introducing a new local rtx_insn * "insn" using a checked cast to
8106         effectively strengthen "insn" from rtx to rtx_insn * without
8107         affecting the type signature.  Strengthen return type and locals
8108         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
8109         now-redundant checked cast to rtx_insn * from both invocations of
8110         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
8111         introducing a local "call_insn" for use when invoking
8112         call_from_call_insn.
8113         (notice_source_line): Strengthen param "insn" from rtx to
8114         rtx_insn *.
8115         (leaf_function_p): Likewise for local "insn".
8116         (final_forward_branch_p): Likewise.
8117         (leaf_renumber_regs): Likewise for param "first".
8118         (rest_of_clean_state): Likewise for locals "insn" and "next".
8119         (self_recursive_call_p): Likewise for param "insn".
8120         (collect_fn_hard_reg_usage): Likewise for local "insn".
8121         (get_call_fndecl): Likewise for param "insn".
8122         (get_call_cgraph_rtl_info): Likewise.
8123         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8124         introducing a new local rtx_insn * "insn" using a checked cast to
8125         effectively strengthen "insn" from rtx to rtx_insn * without
8126         affecting the type signature.
8127
8128         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8129         cast when assigning from param "insn" to current_output_insn.
8130         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8131         so that we can assign it back to current_output_insn.
8132
8133 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8134
8135         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8136         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8137         atmxt540s and atmxt540sreva devices.
8138         * config/avr/avr-tables.opt: Regenerate.
8139         * config/avr/t-multilib: Regenerate.
8140         * doc/avr-mmcu.texi: Regenerate.
8141
8142 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8143
8144         * expr.c (convert_move): Strengthen local "insns" from rtx to
8145         rtx_insn *.
8146         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8147         "top_label" from rtx to rtx_code_label *.
8148         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8149         rtx_insn *.
8150         (emit_single_push_insn): Likewise for locals "prev", "last".
8151         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8152         to rtx_code_label *.
8153         (store_constructor): Likewise for locals "loop_start", "loop_end".
8154         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8155         rtx_insn *.
8156         (expand_expr_real_2): Likewise.
8157         (expand_expr_real_1): Strengthen local "label" from rtx to
8158         rtx_code_label *.
8159
8160 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8161
8162         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8163         from rtx to rtx_insn *.
8164         (store_bit_field_1): Likewise.
8165         (extract_bit_field_1): Likewise.
8166         (expand_mult_const): Likewise for local "insns".
8167         (expmed_mult_highpart): Strengthen local "label" from rtx to
8168         rtx_code_label *.
8169         (expand_smod_pow2): Likewise.
8170         (expand_sdiv_pow2): Likewise.
8171         (expand_divmod): Strengthen locals "last", "insn" from rtx to
8172         rtx_insn *.  Strengthen locals "label", "label1", "label2",
8173         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8174         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8175         (emit_store_flag): Likewise.
8176         (emit_store_flag_force): Strengthen local "label" from rtx to
8177         rtx_code_label *.
8178         (do_cmp_and_jump): Likewise for param "label".
8179
8180 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8181
8182         * explow.c (force_reg): Strengthen local "insn" from rtx to
8183         rtx_insn *.
8184         (adjust_stack_1): Likewise.
8185         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
8186         "final_label", "available_label", "space_available" from rtx to
8187         rtx_code_label *.
8188         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8189         (anti_adjust_stack_and_probe): Likewise.
8190
8191 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8192
8193         * except.h (sjlj_emit_function_exit_after): Strengthen param
8194         "after" from rtx to rtx_insn *.  This is only called with
8195         result of get_last_insn (in function.c) so type-change should be
8196         self-contained.
8197
8198         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8199         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8200         to rtx_insn *.  These fields are only used from except.c so this
8201         type-change should be self-contained to this patch.
8202
8203         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8204         local "last" from rtx to rtx_insn *.
8205         (dw2_build_landing_pads): Likewise for local "seq".
8206         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8207         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8208         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
8209         rtx to rtx_insn *.
8210         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8211         to rtx_insn *.
8212         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8213         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8214         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8215         referring to an insn.  Strengthen local "dispatch_label" from
8216         rtx to rtx_code_label *.
8217         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8218         rtx_insn *.
8219         (expand_eh_return): Strengthen local "around_label" from
8220         rtx to rtx_code_label *.
8221         (convert_to_eh_region_ranges): Strengthen locals "iter",
8222         "last_action_insn", "first_no_action_insn",
8223         "first_no_action_insn_before_switch",
8224         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8225
8226 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8227
8228         * dwarf2out.c (last_var_location_insn): Strengthen this variable
8229         from rtx to rtx_insn *.
8230         (cached_next_real_insn): Likewise.
8231         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8232         working with insns.
8233         (dwarf2out_var_location): Strengthen locals "next_real",
8234         "next_note", "expected_next_loc_note", "last_start", "insn" from
8235         rtx to rtx_insn *.
8236
8237 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8238
8239         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8240         from rtx to rtx_insn *.
8241         (create_pseudo_cfg): Likewise for local "insn".
8242
8243 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8244
8245         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8246         from rtx to rtx_insn *.
8247         (df_bb_regno_last_def_find): Likewise.
8248
8249         * df-problems.c (df_rd_bb_local_compute): Likewise.
8250         (df_lr_bb_local_compute): Likewise.
8251         (df_live_bb_local_compute): Likewise.
8252         (df_chain_remove_problem): Likewise.
8253         (df_chain_create_bb): Likewise.
8254         (df_word_lr_bb_local_compute): Likewise.
8255         (df_remove_dead_eq_notes): Likewise for param "insn".
8256         (df_note_bb_compute): Likewise for local "insn".
8257         (simulate_backwards_to_point): Likewise.
8258         (df_md_bb_local_compute): Likewise.
8259
8260         * df-scan.c (df_scan_free_bb_info): Likewise.
8261         (df_scan_start_dump): Likewise.
8262         (df_scan_start_block): Likewise.
8263         (df_install_ref_incremental): Likewise for local "insn".
8264         (df_insn_rescan_all): Likewise.
8265         (df_reorganize_refs_by_reg_by_insn): Likewise.
8266         (df_reorganize_refs_by_insn_bb): Likewise.
8267         (df_recompute_luids): Likewise.
8268         (df_bb_refs_record): Likewise.
8269         (df_update_entry_exit_and_calls): Likewise.
8270         (df_bb_verify): Likewise.
8271
8272 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8273
8274         * ddg.h (struct ddg_node): Strengthen fields "insn" and
8275         "first_note" from rtx to rtx_insn *.
8276         (get_node_of_insn): Likewise for param 2 "insn".
8277         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8278
8279         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8280         rtx_insn *.
8281         (mem_write_insn_p): Likewise.
8282         (mem_access_insn_p): Likewise.
8283         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8284         (def_has_ccmode_p): Likewise for param "insn".
8285         (add_cross_iteration_register_deps): Likewise for locals
8286         "def_insn" and "use_insn".
8287         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8288         (build_intra_loop_deps): Likewise for local "src_insn".
8289         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8290         to rtx_insn *.
8291         (get_node_of_insn): Likewise for param "insn".
8292
8293 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8294
8295         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8296         (deletable_insn_p): Strengthen param "insn" from rtx to
8297         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
8298         find_call_stack_args, since this is guarded by CALL_P (insn).
8299         (marked_insn_p): Strengthen param "insn" from rtx to
8300         rtx_insn *.
8301         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
8302         invoking find_call_stack_args, since this is guarded by
8303         CALL_P (insn).
8304         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8305         rtx_insn *; we know this is an insn since this was called by
8306         mark_nonreg_stores.
8307         (mark_nonreg_stores_2): Likewise.
8308         (mark_nonreg_stores): Strengthen param "insn" from rtx to
8309         rtx_insn *.
8310         (find_call_stack_args): Strengthen param "call_insn" from rtx to
8311         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8312         to rtx_insn *.
8313         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8314         from rtx to rtx_insn *.
8315         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8316         "next", "ref_insn".
8317         (delete_unmarked_insns): Likewise for locals "insn", "next".
8318         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8319         (mark_reg_dependencies): Likewise for param "insn".
8320         (rest_of_handle_ud_dce): Likewise for local "insn".
8321         (word_dce_process_block): Likewise.
8322         (dce_process_block): Likewise.
8323
8324 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8325
8326         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8327         from rtx to rtx_insn *.
8328         (struct change_cc_mode_args): Likewise for field "insn".
8329         (this_insn): Strengthen from rtx to rtx_insn *.
8330         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8331         with insn.
8332         (validate_canon_reg): Strengthen param "insn" from rtx to
8333         rtx_insn *.
8334         (canon_reg): Likewise.
8335         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
8336         dealing with insn.
8337         (record_jump_equiv): Strengthen param "insn" from rtx to
8338         rtx_insn *.
8339         (try_back_substitute_reg): Likewise, also for locals "prev",
8340         "bb_head".
8341         (find_sets_in_insn): Likewise for param "insn".
8342         (canonicalize_insn): Likewise.
8343         (cse_insn): Likewise.  Add a checked cast.
8344         (invalidate_from_clobbers): Likewise for param "insn".
8345         (invalidate_from_sets_and_clobbers): Likewise.
8346         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8347         dealing with insn.
8348         (cse_prescan_path): Strengthen local "insn" from rtx to
8349         rtx_insn *.
8350         (cse_extended_basic_block): Likewise for locals "insn" and
8351         "prev_insn".
8352         (cse_main): Likewise for param "f".
8353         (check_for_label_ref): Likewise for local "insn".
8354         (set_live_p): Likewise for second param ("insn").
8355         (insn_live_p): Likewise for first param ("insn") and for local
8356         "next".
8357         (cse_change_cc_mode_insn): Likewise for first param "insn".
8358         (cse_change_cc_mode_insns): Likewise for first and second params
8359         "start" and "end".
8360         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8361         and "end".
8362         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8363         "cc_src_insn".
8364
8365 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8366             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8367             Anna Tikhonova  <anna.tikhonova@intel.com>
8368             Ilya Tocar  <ilya.tocar@intel.com>
8369             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8370             Ilya Verbin  <ilya.verbin@intel.com>
8371             Kirill Yukhin  <kirill.yukhin@intel.com>
8372             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8373
8374         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8375         New.
8376         * config/i386/sse.md
8377         (define_mode_iterator VI248_AVX2): Delete.
8378         (define_mode_iterator VI2_AVX2_AVX512BW): New.
8379         (define_mode_iterator VI48_AVX2): Ditto.
8380         (define_insn <shift_insn><mode>3): Delete.
8381         (define_insn "<shift_insn><mode>3<mask_name>" with
8382         VI2_AVX2_AVX512BW): New.
8383         (define_insn "<shift_insn><mode>3<mask_name>" with
8384         VI48_AVX2): Ditto.
8385
8386 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8387             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8388             Anna Tikhonova  <anna.tikhonova@intel.com>
8389             Ilya Tocar  <ilya.tocar@intel.com>
8390             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8391             Ilya Verbin  <ilya.verbin@intel.com>
8392             Kirill Yukhin  <kirill.yukhin@intel.com>
8393             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8394
8395         * config/i386/sse.md
8396         (define_mode_iterator VI4F_BRCST32x2): New.
8397         (define_mode_attr 64x2_mode): Ditto.
8398         (define_mode_attr 32x2mode): Ditto.
8399         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8400         with VI4F_BRCST32x2): Ditto.
8401         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8402         with V16FI mode iterator): Ditto.
8403         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8404         with V16FI): Ditto.
8405         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8406         with VI8F_BRCST64x2): Ditto.
8407
8408 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8409             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8410             Anna Tikhonova  <anna.tikhonova@intel.com>
8411             Ilya Tocar  <ilya.tocar@intel.com>
8412             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8413             Ilya Verbin  <ilya.verbin@intel.com>
8414             Kirill Yukhin  <kirill.yukhin@intel.com>
8415             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8416
8417         * config/i386/sse.md
8418         (define_mode_iterator VI8_AVX512VL): New.
8419         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8420
8421 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8422
8423         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8424         (define_mode_iterator V48_AVX512VL): New.
8425         (define_mode_iterator V12_AVX512VL): Ditto.
8426         (define_insn <avx512>_load<mode>_mask): Split into two similar
8427         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8428         Refactor output template.
8429         (define_insn "<avx512>_store<mode>_mask"): Ditto.
8430
8431 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8432
8433         * cprop.c (struct occr): Strengthen field "insn" from rtx to
8434         rtx_insn *.
8435         (reg_available_p): Likewise for param "insn".
8436         (insert_set_in_table): Likewise.
8437         (hash_scan_set): Likewise.
8438         (hash_scan_insn): Likewise.
8439         (make_set_regs_unavailable): Likewise.
8440         (compute_hash_table_work): Likewise for local "insn".
8441         (reg_not_set_p): Strengthen param "insn" from const_rtx to
8442         const rtx_insn *.
8443         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8444         (try_replace_reg): Likewise.
8445         (find_avail_set): Likewise.
8446         (cprop_jump): Likewise for params "setcc", "jump".
8447         (constprop_register): Likewise for param "insn".
8448         (cprop_insn): Likewise.
8449         (do_local_cprop): Likewise.
8450         (local_cprop_pass): Likewise for local "insn".
8451         (bypass_block): Likewise for params "setcc" and "jump".
8452         (bypass_conditional_jumps): Likewise for locals "setcc" and
8453         "insn".
8454         (one_cprop_pass): Likewise for local "insn".
8455
8456 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8457
8458         * compare-elim.c (struct comparison_use): Strengthen field "insn"
8459         from rtx to rtx_insn *.
8460         (struct comparison): Likewise, also for field "prev_clobber".
8461         (conforming_compare): Likewise for param "insn".
8462         (arithmetic_flags_clobber_p): Likewise.
8463         (find_flags_uses_in_insn): Likewise.
8464         (find_comparison_dom_walker::before_dom_children): Likewise for
8465         locals "insn", "next", "last_clobber".
8466         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8467
8468 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8469
8470         * combine-stack-adj.c (struct csa_reflist): Strengthen field
8471         "insn" from rtx to rtx_insn *.
8472         (single_set_for_csa): Likewise for param "insn".
8473         (record_one_stack_ref): Likewise.
8474         (try_apply_stack_adjustment): Likewise.
8475         (struct record_stack_refs_data): Likewise for field "insn".
8476         (maybe_move_args_size_note): Likewise for params "last" and "insn".
8477         (prev_active_insn_bb): Likewise for return type and param "insn".
8478         (next_active_insn_bb): Likewise.
8479         (force_move_args_size_note): Likewise for params "prev" and "last"
8480         and locals "test", "next_candidate", "prev_candidate".
8481         (combine_stack_adjustments_for_block): Strengthen locals
8482         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8483         rtx_insn *.
8484
8485 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8486
8487         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8488         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8489         (subst_insn): Likewise for this variable.
8490         (added_links_insn): Likewise.
8491         (struct insn_link): Likewise for field "insn".
8492         (alloc_insn_link): Likewise for param "insn".
8493         (struct undobuf): Likewise for field "other_insn".
8494         (find_single_use): Likewise for param "insn" and local "next".
8495         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8496         (delete_noop_moves): Likewise for locals "insn", "next".
8497         (create_log_links): Likewise for locals "insn", "use_insn".
8498         Strengthen local "next_use" from rtx * to rtx_insn **.
8499         (insn_a_feeds_b): Likewise for params "a", "b".
8500         (combine_instructions): Likewise for param "f" and locals "insn",
8501         "next", "prev", "first", "last_combined_insn", "link", "link1",
8502         "temp".  Replace use of NULL_RTX with NULL when referring to
8503         insns.
8504         (setup_incoming_promotions): Likewise for param "first"
8505         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8506         (can_combine_p): Likewise for params "insn", "i3", "pred",
8507         "pred2", "succ", "succ2" and for local "p".
8508         (combinable_i3pat): Likewise for param "i3".
8509         (cant_combine_insn_p): Likewise for param "insn".
8510         (likely_spilled_retval_p): Likewise.
8511         (adjust_for_new_dest): Likewise.
8512         (update_cfg_for_uncondjump): Likewise, also for local "insn".
8513         (try_combine): Likewise for return type and for params "i3", "i2",
8514         "i1", "i0", "last_combined_insn", and for locals "insn",
8515         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8516         "i0_insn".  Eliminate local "tem" in favor of new locals
8517         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
8518         checked cast for now to rtx_insn * on the return type of
8519         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
8520         insns.
8521         (find_split_point): Strengthen param "insn" from rtx to
8522         rtx_insn *.
8523         (simplify_set): Likewise for local "other_insn".
8524         (recog_for_combine): Likewise for param "insn".
8525         (record_value_for_reg): Likewise.
8526         (record_dead_and_set_regs_1): Likewise for local
8527         "record_dead_insn".
8528         (record_dead_and_set_regs): Likewise for param "insn".
8529         (record_promoted_value): Likewise.
8530         (check_promoted_subreg): Likewise.
8531         (get_last_value_validate): Likewise.
8532         (reg_dead_at_p): Likewise.
8533         (move_deaths): Likewise for param "to_insn".
8534         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8535         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
8536         in favor of new locals "tem_note" and "tem_insn", the latter being
8537         an rtx_insn *.
8538         (distribute_links): Strengthen locals "place", "insn" from rtx to
8539         rtx_insn *.
8540
8541 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8542
8543         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8544         than a const_rtx.
8545         (can_delete_label_p): Require a const rtx_code_label * rather than
8546         a const_rtx.
8547         (delete_insn): Add checked cast to rtx_code_label * when we know
8548         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
8549         rtx to rtx_insn *.
8550         (delete_insn_chain): Strengthen locals "prev" and "current" from
8551         rtx to rtx_insn *.  Add a checked cast when assigning from
8552         "finish" (strengthening the params will come later).  Add a
8553         checked cast to rtx_note * in region where we know
8554         NOTE_P (current).
8555         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8556         rtx_insn *.
8557         (compute_bb_for_insn): Likewise.
8558         (free_bb_for_insn): Likewise for local "insn".
8559         (compute_bb_for_insn): Likewise.
8560         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8561         local "insn" from rtx to rtx_insn *
8562         (flow_active_insn_p): Require a const rtx_insn * rather than a
8563         const_rtx.
8564         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8565         rtx_insn *.
8566         (can_fallthru): Likewise for locals "insn" and "insn2".
8567         (bb_note): Likewise for local "note".
8568         (first_insn_after_basic_block_note): Likewise for local "note" and
8569         for return type.
8570         (rtl_split_block): Likewise for locals "insn" and "next".
8571         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8572         "end".
8573         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8574         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8575         "prev", "tmp".
8576         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8577         them), "kill_from", "barrier", "new_insn".
8578         (patch_jump_insn): Likewise for params "insn", "old_label".
8579         (redirect_branch_edge): Likewise for locals "old_label", "insn".
8580         (force_nonfallthru_and_redirect): Likewise for locals "insn",
8581         "old_label", "new_label".
8582         (rtl_tidy_fallthru_edge): Likewise for local "q".
8583         (rtl_split_edge): Likewise for locals "before", "last".
8584         (commit_one_edge_insertion): Likewise for locals "before",
8585         "after", "insns", "tmp", "last", adding a checked cast where
8586         currently necessary.
8587         (commit_edge_insertions): Likewise.
8588         (rtl_dump_bb): Likewise for locals "insn", "last".
8589         (print_rtl_with_bb): Likewise for local "x".
8590         (rtl_verify_bb_insns): Likewise for local "x".
8591         (rtl_verify_bb_pointers): Likewise for local "insn".
8592         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8593         "head", "end".
8594         (rtl_verify_fallthru): Likewise for local "insn".
8595         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8596         (purge_dead_edges): Likewise for local "insn".
8597         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8598         (skip_insns_after_block): Likewise for return type and for locals
8599         "insn", "last_insn", "next_head", "prev".
8600         (record_effective_endpoints): Likewise for locals "next_insn",
8601         "insn", "end".
8602         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8603         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8604         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8605         (duplicate_insn_chain): For now, add checked cast from rtx to
8606         rtx_insn * when returning insn.
8607         (cfg_layout_duplicate_bb): Likewise for local "insn".
8608         (cfg_layout_delete_block): Likewise for locals "insn", "next",
8609         "prev", "remaints".
8610         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8611         (rtl_block_empty_p): Likewise.
8612         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8613         "split_point", "last".
8614         (rtl_block_ends_with_call_p): Likewise for local "insn".
8615         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8616         const rtx_insn *.
8617         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8618         "split_at_insn" from rtx to rtx_insn *.
8619         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8620         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8621         to const rtx_insn *.
8622         (rtl_account_profile_record): Likewise.
8623
8624 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8625
8626         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8627         rtx to rtx_insn *.
8628         (average_num_loop_insns): Likewise.
8629         (init_set_costs): Likewise for local "seq".
8630         (seq_cost): Likewise for param "seq", from const_rtx to const
8631         rtx_insn *.
8632
8633 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8634
8635         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8636         rtx to rtx_insn *.
8637
8638 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8639
8640         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8641         "f1" and "f2" from rtx * to rtx_insn **.
8642         (flow_find_head_matching_sequence): Likewise.
8643
8644         * cfgcleanup.c (try_simplify_condjump): Strengthen local
8645         "cbranch_insn" from rtx to rtx_insn *.
8646         (thread_jump): Likewise for local "insn".
8647         (try_forward_edges): Likewise for local "last".
8648         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8649         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8650         "real_b_end".
8651         (can_replace_by): Likewise for params "i1", "i2".
8652         (old_insns_match_p): Likewise.
8653         (merge_notes): Likewise.
8654         (walk_to_nondebug_insn): Likewise for param "i1".
8655         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8656         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
8657         "afterlast1", "afterlast2" from rtx to rtx_insn *.
8658         (flow_find_head_matching_sequence): Strengthen params "f1" and
8659         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
8660         "last1", "last2", "beforelast1", "beforelast2" from rtx to
8661         rtx_insn *.
8662         (outgoing_edges_match): Likewise for locals "last1", "last2".
8663         (try_crossjump_to_edge): Likewise for local "insn".
8664         Replace call to for_each_rtx with for_each_rtx_in_insn.
8665
8666         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8667         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8668         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
8669         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8670         (try_optimize_cfg): Strengthen local "last" from rtx to
8671         rtx_insn *.
8672         (delete_dead_jumptables): Likewise for locals "insn", "next",
8673         "label".
8674
8675         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8676         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8677         "rtx else_first_tail", to reflect the basic-block.h changes above.
8678
8679 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8680
8681         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8682         rtx_insn *.
8683         (purge_dead_tablejump_edges): Likewise.
8684         (find_bb_boundaries): Likewise for locals "insn", "end",
8685         "flow_transfer_insn".
8686
8687 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8688
8689         * caller-save.c (save_call_clobbered_regs): Strengthen locals
8690         "ins" and "prev" from rtx to rtx_insn *.
8691
8692 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8693
8694         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8695         rtx_insn *.
8696         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8697         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8698         "scan_start".
8699         (load_register_parameters): Likewise for local "before_arg".
8700         (check_sibcall_argument_overlap): Likewise for param "insn".
8701         (expand_call): Likewise for locals "normal_call_insns",
8702         "tail_call_insns", "insns", "before_call", "after_args",
8703         "before_arg", "last", "prev".  Strengthen one of the "last" from
8704         rtx to rtx_call_insn *.
8705         (fixup_tail_calls): Strengthen local "insn" from rtx to
8706         rtx_insn *.
8707         (emit_library_call_value_1): Likewise for locals "before_call" and
8708         "last".
8709
8710 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8711
8712         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8713         and "last" from rtx to rtx_insn *.
8714         (expand_builtin_nonlocal_goto): Likewise for local "insn".
8715         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8716         rtx_call_insn *.
8717         (expand_errno_check): Strengthen local "lab" from rtx to
8718         rtx_code_label *.
8719         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8720         rtx_insn *.
8721         (expand_builtin_mathfn_2): Likewise.
8722         (expand_builtin_mathfn_ternary): Likewise.
8723         (expand_builtin_mathfn_3): Likewise.
8724         (expand_builtin_interclass_mathfn): Likewise for local "last".
8725         (expand_builtin_int_roundingfn): Likewise for local "insns".
8726         (expand_builtin_int_roundingfn_2): Likewise.
8727         (expand_builtin_strlen): Likewise for local "before_strlen".
8728         (expand_builtin_strncmp): Likewise for local "seq".
8729         (expand_builtin_signbit): Likewise for local "last".
8730         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8731         from rtx to rtx_code_label *.
8732         (expand_stack_restore):  Strengthen local "prev" from rtx to
8733         rtx_insn *.
8734
8735 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8736
8737         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8738         to rtx_insn *.
8739         (struct btr_def_s): Likewise.
8740         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8741         const rtx_insn *.
8742         (add_btr_def): Likewise.
8743         (new_btr_user): Likewise.
8744         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8745         rtx to rtx_insn *.
8746         (link_btr_uses): Likewise.
8747         (move_btr_def): Likewise for locals "insp", "old_insn",
8748         "new_insn".  Add checked cast to rtx_insn * for now on result of
8749         gen_move_insn.
8750         (can_move_up): Strengthen param "insn" from const_rtx to
8751         const rtx_insn *.
8752
8753 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8754
8755         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8756         rtx_insn *.
8757         (get_uncond_jump_length): Likewise for locals "label", "jump".
8758         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8759         "jump", "insn".
8760         (add_labels_and_missing_jumps): Likewise for local "new_jump".
8761         (fix_up_fall_thru_edges): Likewise for local "old_jump".
8762         (find_jump_block): Likewise for local "insn".
8763         (fix_crossing_conditional_branches): Likewise for locals
8764         "old_jump", "new_jump".
8765         (fix_crossing_unconditional_branches): Likewise for locals
8766         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8767         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8768
8769 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8770
8771         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8772         rtx to rtx_insn *.
8773         (struct mem_insn): Likewise for field "insn".
8774         (reg_next_use): Strengthen from rtx * to rtx_insn **.
8775         (reg_next_inc_use): Likewise.
8776         (reg_next_def): Likewise.
8777         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8778         from rtx to rtx_insn *.
8779         (move_insn_before): Likewise for param "next_insn" and local "insns".
8780         (attempt_change): Likewise for local "mov_insn".
8781         (try_merge): Likewise for param "last_insn".
8782         (get_next_ref): Likewise for return type and local "insn".
8783         Strengthen param "next_array" from rtx * to rtx_insn **.
8784         (parse_add_or_inc): Strengthen param "insn" from rtx to
8785         rtx_insn *.
8786         (find_inc): Likewise for locals "insn" and "other_insn" (three of
8787         the latter).
8788         (merge_in_block): Likewise for locals "insn", "curr",
8789         "other_insn".
8790         (pass_inc_dec::execute): Update allocations of the arrays to
8791         reflect the stronger types.
8792
8793 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8794
8795         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8796         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
8797         from rtx to rtx_code_label *.
8798
8799 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8800
8801         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8802         to rtx_insn *.
8803
8804 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8805
8806         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8807         generated a warning and prevented bootstrapping the compiler.
8808
8809 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8810
8811         * rtl.h (delete_related_insns): Strengthen return type from rtx to
8812         rtx_insn *.
8813
8814         * jump.c (delete_related_insns): Likewise, also for locals "next"
8815         and "prev".
8816
8817 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8818
8819         * genautomata.c (output_internal_insn_latency_func): When writing
8820         the function "internal_insn_latency" to insn-automata.c,
8821         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8822         allowing the optional guard function of (define_bypass) clauses to
8823         expect a pair of rtx_insn *, rather than a pair of rtx.
8824         (output_insn_latency_func): When writing the function
8825         "insn_latency", add an "uncast_" prefix to params "insn" and
8826         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8827         using checked casts from the params, thus enabling the above
8828         change to the generated "internal_insn_latency" function.
8829
8830 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
8831
8832         PR tree-optimization/62091
8833         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8834         handle correctly arrays.
8835         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8836         inheritance binfos.
8837         (record_known_type): Walk into inner type.
8838         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8839         condition on no type changes.
8840
8841 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8842
8843         * genattrtab.c (write_attr_get): Within the generated get_attr_
8844         functions, rename param "insn" to "uncast_insn" and reintroduce
8845         "insn" as an local rtx_insn * using a checked cast, so that "insn"
8846         is an rtx_insn * within insn-attrtab.c
8847
8848 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8849
8850         * output.h (peephole): Strengthen return type from rtx to
8851         rtx_insn *.
8852         * rtl.h (delete_for_peephole): Likewise for both params.
8853         * genpeep.c (main): In generated "peephole" function, strengthen
8854         return type and local "insn" from rtx to rtx_insn *.  For now,
8855         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8856         rtx_insn *, with a checked cast.
8857         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8858         locals "insn", "next", "prev" from rtx to rtx_insn *.
8859
8860 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
8861
8862         PR tree-optimization/62112
8863         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8864         * gimple-iterator.h (gsi_replace): Return bool.
8865         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8866         moved from ref_may_alias_global_p.
8867         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8868         New overloads.
8869         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8870         (stmt_kills_ref_p_1): Rename...
8871         (stmt_kills_ref_p): ... to this.
8872         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8873         stmt_kills_ref_p): Declare.
8874         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8875         Move the self-assignment case...
8876         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8877
8878 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8879
8880         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8881
8882         * emit-rtl.c (try_split): Likewise, also for locals "before" and
8883         "after".  For now, don't strengthen param "trial", which requires
8884         adding checked casts when returning it.
8885
8886 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8887
8888         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8889         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
8890         "var_location" hook from rtx to rtx_insn *.
8891         (debug_nothing_rtx): Delete in favor of...
8892         (debug_nothing_rtx_code_label): New prototype.
8893         (debug_nothing_rtx_rtx): Delete unused prototype.
8894         (debug_nothing_rtx_insn): New prototype.
8895
8896         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8897         invoking debug_hooks->var_location (in two places, one in a NOTE
8898         case of a switch statement, the other guarded by a CALL_P
8899         conditional.  Add checked cast to rtx_code_label * when invoking
8900         debug_hooks->label (within CODE_LABEL case of switch statement).
8901
8902         * dbxout.c (dbx_debug_hooks): Update "label" hook from
8903         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
8904         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8905         (xcoff_debug_hooks): Likewise.
8906         * debug.c (do_nothing_debug_hooks): Likewise.
8907         (debug_nothing_rtx): Delete in favor of...
8908         (debug_nothing_rtx_insn): New function.
8909         (debug_nothing_rtx_rtx): Delete unused function.
8910         (debug_nothing_rtx_code_label): New function.
8911         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8912         debug_nothing_rtx to debug_nothing_rtx_code_label.
8913         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8914         to rtx_insn *.
8915         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8916         debug_nothing_rtx to debug_nothing_rtx_insn.
8917         (sdbout_label): Strengthen param "insn" from rtx to
8918         rtx_code_label *.
8919         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8920         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
8921         "var_location" hook from debug_nothing_rtx to
8922         debug_nothing_rtx_insn.
8923
8924 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
8925
8926         * recog.h (insn_output_fn): Update this function typedef to match
8927         the changes below to the generated output functions, strengthening
8928         the 2nd param from rtx to rtx_insn *.
8929
8930         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8931         insn when invoking an output function, to match the new signature
8932         of insn_output_fn with a stronger second param.
8933
8934         * genconditions.c (write_header): In the generated code for
8935         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8936         to match the other changes in this patch.
8937
8938         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8939         the generated "gen_" functions from rtx to rtx_insn * within their
8940         implementations.
8941
8942         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8943         the subfunctions within the generated "recog_", "split", "peephole2"
8944         function trees from rtx to rtx_insn *.  For now, the top-level
8945         generated functions ("recog", "split", "peephole2") continue to
8946         take a plain rtx for "insn", to avoid introducing dependencies on
8947         other patches.  Rename this 2nd param from "insn" to
8948         "uncast_insn", and reintroduce "insn" as a local variable of type
8949         rtx_insn *, initialized at the top of the generated function with
8950         a checked cast on "uncast_insn".
8951         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8952         the generated "gen_" functions from rtx to rtx_insn * within their
8953         prototypes.
8954
8955         * genoutput.c (process_template): Strengthen the 2nd param within
8956         the generated "output_" functions "insn" from rtx to rtx_insn *.
8957
8958 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
8959
8960         * tree-profile.c (tree_profiling): Skip external functions
8961         when doing coverage instrumentation.
8962         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8963
8964 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8965
8966         * config/rs6000/altivec.h (vec_cpsgn): New #define.
8967         (vec_mergee): Likewise.
8968         (vec_mergeo): Likewise.
8969         (vec_cntlz): Likewise.
8970         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8971         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8972         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8973         VMRGEW, and VMRGOW.
8974         * doc/extend.texi: Document various forms of vec_cpsgn,
8975         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8976         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8977         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8978         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8979         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8980
8981 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8982
8983         * config/rs6000/rs6000.c (context.h): New include.
8984         (tree-pass.h): Likewise.
8985         (make_pass_analyze_swaps): New decl.
8986         (rs6000_option_override): Register pass_analyze_swaps.
8987         (swap_web_entry): New subsclass of web_entry_base (df.h).
8988         (special_handling_values): New enum.
8989         (union_defs): New function.
8990         (union_uses): Likewise.
8991         (insn_is_load_p): Likewise.
8992         (insn_is_store_p): Likewise.
8993         (insn_is_swap_p): Likewise.
8994         (rtx_is_swappable_p): Likewise.
8995         (insn_is_swappable_p): Likewise.
8996         (chain_purpose): New enum.
8997         (chain_contains_only_swaps): New function.
8998         (mark_swaps_for_removal): Likewise.
8999         (swap_const_vector_halves): Likewise.
9000         (adjust_subreg_index): Likewise.
9001         (permute_load): Likewise.
9002         (permute_store): Likewise.
9003         (handle_special_swappables): Likewise.
9004         (replace_swap_with_copy): Likewise.
9005         (dump_swap_insn_table): Likewise.
9006         (rs6000_analyze_swaps): Likewise.
9007         (pass_data_analyze_swaps): New pass_data.
9008         (pass_analyze_swaps): New rtl_opt_pass.
9009         (make_pass_analyze_swaps): New function.
9010         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9011
9012 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9013
9014         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9015         type from rtx to rtx_insn *.
9016         (create_copy_of_insn_rtx): Likewise.
9017         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9018         (create_copy_of_insn_rtx): Likewise, also for local "res".
9019
9020 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9021
9022         * rtl.h (find_first_parameter_load): Strengthen return type from
9023         rtx to rtx_insn *.
9024         * rtlanal.c (find_first_parameter_load): Strengthen return type
9025         from rtx to rtx_insn *.  Add checked cast for now, to postpone
9026         strengthening the params.
9027
9028 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9029
9030         PR fortran/44054
9031         * diagnostic.c: Set default caret.
9032         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9033         line is needed.
9034         * diagnostic.h (struct diagnostic_context):
9035
9036 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9037
9038         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9039         (sel_bb_head): Strengthen return type insn_t (currently just an
9040         rtx) to rtx_insn *.
9041         (sel_bb_end): Likewise.
9042
9043         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9044         (sel_bb_head): Strengthen return type and local "head" from
9045         insn_t (currently just an rtx) to rtx_insn *.
9046         (sel_bb_end): Likewise for return type.
9047         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9048         working with insn.
9049
9050 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
9051
9052         * basic-block.h (get_last_bb_insn): Strengthen return type from
9053         rtx to rtx_insn *.
9054         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9055         end".
9056
9057 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9058
9059         PR fortran/44054
9060         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9061          to here ...
9062         (diagnostic_report_diagnostic): ... from here.
9063         * toplev.c (general_init): Move code to c-family.
9064
9065 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9066
9067         * df.h (web_entry_base): Replace existing struct web_entry with a
9068         new class web_entry_base with only the predecessor member.
9069         (unionfind_root): Remove declaration and move to class member.
9070         (unionfind_union): Remove declaration and move to friend
9071         function.
9072         (union_defs): Remove declaration.
9073         * web.c (web_entry_base::unionfind_root): Modify to be member
9074         function and adjust accessors.
9075         (unionfind_union): Modify to be friend function and adjust
9076         accessors.
9077         (web_entry): New subclass of web_entry_base containing the reg
9078         member.
9079         (union_match_dups): Modify for struct -> class changes.
9080         (union_defs): Likewise.
9081         (entry_register): Likewise.
9082         (pass_web::execute): Likewise.
9083
9084 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
9085
9086         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9087         builtin define __VEC_ELEMENT_REG_ORDER__.
9088
9089 2014-08-20  Martin Jambor  <mjambor@suse.cz>
9090             Wei Mi  <wmi@google.com>
9091
9092         PR ipa/60449
9093         PR middle-end/61776
9094         * tree-ssa-operands.c (update_stmt_operands): Remove
9095         MODIFIED_NORETURN_CALLS.
9096         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9097         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9098         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9099         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9100         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9101         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9102         (gimple_call_set_ctrl_altering): New func.
9103         (gimple_call_ctrl_altering_p): Ditto.
9104         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9105         (make_blocks): Use gimple_call_initialize_ctrl_altering.
9106         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9107         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9108         remove MODIFIED_NORETURN_CALLS.
9109
9110 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9111
9112         * coverage.c (coverage_compute_profile_id): Return non-0;
9113         also handle symbols with unique name.
9114         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9115
9116 2014-08-20  Steve Ellcey  <sellcey@mips.com>
9117
9118         PR middle-end/49191
9119         * doc/sourcebuild.texi (non_strict_align): New.
9120
9121 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
9122
9123         * cgraphunit.c (ipa_passes, compile): Reshedule
9124         symtab_remove_unreachable_nodes passes; update comments.
9125         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9126         TODO_remove_functions before the pass; the functions ought to be
9127         already removed.
9128         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9129         TODO_remove_functions.
9130         * passes.c (pass_data_early_local_passes): Do not schedule function
9131         removal.
9132         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9133
9134 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9135
9136         PR c/59304
9137         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9138         before setting the option.
9139         * diagnostic.c (diagnostic_classify_diagnostic): Record
9140         command-line status.
9141
9142 2014-08-20  Richard Biener  <rguenther@suse.de>
9143
9144         PR lto/62190
9145         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9146         to build uint{16,32,64}_type_node.
9147
9148 2014-08-20  Terry Guo  <terry.guo@arm.com>
9149
9150         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9151         with immediate_operand.
9152
9153 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
9154
9155         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9156         "insn" from an as_a to a safe_as_a, for the case when "insn" is
9157         NULL.
9158
9159 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9160
9161         PR preprocessor/51303
9162         * incpath.c (remove_duplicates): Use cpp_warning.
9163
9164 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9165
9166         PR c/60975
9167         PR c/53063
9168         * doc/options.texi (CPP): Document it.
9169         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9170         * optc-gen.awk: Handle CPP.
9171         * opth-gen.awk: Likewise.
9172
9173 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9174
9175         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9176         rtx_insn *.
9177         (duplicate_insn_chain): Likewise.
9178         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9179         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
9180         checked cast for now (until we can strengthen the params in the
9181         same way).
9182         (duplicate_insn_chain): Likewise.
9183
9184 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9185
9186         * rtl.h (next_cc0_user): Strengthen return type from rtx to
9187         rtx_insn *.
9188         (prev_cc0_setter): Likewise.
9189
9190         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9191         rtx_insn *, adding checked casts for now as necessary.
9192         (prev_cc0_setter): Likewise.
9193
9194 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9195
9196         * expr.h (emit_move_insn): Strengthen return type from rtx to
9197         rtx_insn *.
9198         (emit_move_insn_1): Likewise.
9199         (emit_move_complex_push): Likewise.
9200         (emit_move_complex_parts): Likewise.
9201
9202         * expr.c (emit_move_via_integer): Strengthen return type from rtx
9203         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
9204         with insns.
9205         (emit_move_complex_push): Strengthen return type from rtx to
9206         rtx_insn *.
9207         (emit_move_complex): Likewise, also for local "ret".
9208         (emit_move_ccmode): Likewise.
9209         (emit_move_multi_word): Likewise for return type and locals
9210         "last_insn", "seq".
9211         (emit_move_insn_1): Likewise for return type and locals "result",
9212         "ret".
9213         (emit_move_insn): Likewise for return type and local "last_insn".
9214         (compress_float_constant): Likewise.
9215
9216 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9217
9218         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9219         from rtx to rtx_insn *.
9220
9221         * rtl.h (emit_insn_before): Likewise.
9222         (emit_insn_before_noloc): Likewise.
9223         (emit_insn_before_setloc): Likewise.
9224         (emit_jump_insn_before): Likewise.
9225         (emit_jump_insn_before_noloc): Likewise.
9226         (emit_jump_insn_before_setloc): Likewise.
9227         (emit_call_insn_before): Likewise.
9228         (emit_call_insn_before_noloc): Likewise.
9229         (emit_call_insn_before_setloc): Likewise.
9230         (emit_debug_insn_before): Likewise.
9231         (emit_debug_insn_before_noloc): Likewise.
9232         (emit_debug_insn_before_setloc): Likewise.
9233         (emit_label_before): Likewise.
9234         (emit_insn_after): Likewise.
9235         (emit_insn_after_noloc): Likewise.
9236         (emit_insn_after_setloc): Likewise.
9237         (emit_jump_insn_after): Likewise.
9238         (emit_jump_insn_after_noloc): Likewise.
9239         (emit_jump_insn_after_setloc): Likewise.
9240         (emit_call_insn_after): Likewise.
9241         (emit_call_insn_after_noloc): Likewise.
9242         (emit_call_insn_after_setloc): Likewise.
9243         (emit_debug_insn_after): Likewise.
9244         (emit_debug_insn_after_noloc): Likewise.
9245         (emit_debug_insn_after_setloc): Likewise.
9246         (emit_label_after): Likewise.
9247         (emit_insn): Likewise.
9248         (emit_debug_insn): Likewise.
9249         (emit_jump_insn): Likewise.
9250         (emit_call_insn): Likewise.
9251         (emit_label): Likewise.
9252         (gen_clobber): Likewise.
9253         (emit_clobber): Likewise.
9254         (gen_use): Likewise.
9255         (emit_use): Likewise.
9256         (emit): Likewise.
9257
9258         (emit_barrier_before): Strengthen return type from rtx to
9259         rtx_barrier *.
9260         (emit_barrier_after): Likewise.
9261         (emit_barrier): Likewise.
9262
9263         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
9264         from rtx to rtx_insn *.  Add checked casts for now when converting
9265         "last" from rtx to rtx_insn *.
9266         (emit_insn_before_noloc): Likewise for return type.
9267         (emit_jump_insn_before_noloc): Likewise.
9268         (emit_call_insn_before_noloc): Likewise.
9269         (emit_debug_insn_before_noloc): Likewise.
9270         (emit_barrier_before): Strengthen return type and local "insn"
9271         from rtx to rtx_barrier *.
9272         (emit_label_before): Strengthen return type from rtx to
9273         rtx_insn *.  Add checked cast for now when returning param
9274         (emit_pattern_after_noloc): Strengthen return type from rtx to
9275         rtx_insn *.  Add checked casts for now when converting "last" from
9276         rtx to rtx_insn *.
9277         (emit_insn_after_noloc): Strengthen return type from rtx to
9278         rtx_insn *.
9279         (emit_jump_insn_after_noloc): Likewise.
9280         (emit_call_insn_after_noloc): Likewise.
9281         (emit_debug_insn_after_noloc): Likewise.
9282         (emit_barrier_after): Strengthen return type from rtx to
9283         rtx_barrier *.
9284         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9285         Add checked cast for now when converting "label" from rtx to
9286         rtx_insn *.
9287         (emit_pattern_after_setloc): Strengthen return type from rtx to
9288         rtx_insn *.  Add checked casts for now when converting "last" from
9289         rtx to rtx_insn *.
9290         (emit_pattern_after): Strengthen return type from rtx to
9291         rtx_insn *.
9292         (emit_insn_after_setloc): Likewise.
9293         (emit_insn_after): Likewise.
9294         (emit_jump_insn_after_setloc): Likewise.
9295         (emit_jump_insn_after): Likewise.
9296         (emit_call_insn_after_setloc): Likewise.
9297         (emit_call_insn_after): Likewise.
9298         (emit_debug_insn_after_setloc): Likewise.
9299         (emit_debug_insn_after): Likewise.
9300         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
9301         when converting "last" from rtx to rtx_insn *.
9302         (emit_pattern_before): Strengthen return type from rtx to
9303         rtx_insn *.
9304         (emit_insn_before_setloc): Likewise.
9305         (emit_insn_before): Likewise.
9306         (emit_jump_insn_before_setloc): Likewise.
9307         (emit_jump_insn_before): Likewise.
9308         (emit_call_insn_before_setloc): Likewise.
9309         (emit_call_insn_before): Likewise.
9310         (emit_debug_insn_before_setloc): Likewise.
9311         (emit_debug_insn_before): Likewise.
9312         (emit_insn): Strengthen return type and locals "last", "insn",
9313         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
9314         within cases where we know we have an insn.
9315         (emit_debug_insn): Likewise.
9316         (emit_jump_insn): Likewise.
9317         (emit_call_insn): Strengthen return type and local "insn" from rtx
9318         to rtx_insn *.
9319         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
9320         a checked cast to rtx_insn * for now on "label".
9321         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9322         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9323         (emit_use): Likewise.
9324         (gen_use): Likewise, also for local "seq".
9325         (emit): Likewise for return type and local "insn".
9326         (rtx_insn): Likewise for return type and local "new_rtx".
9327
9328         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9329         from rtx to rtx_barrier *.
9330
9331         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9332         changed return type from rtx to rtx_insn *, we must update
9333         "emit_fn" type, and this in turn means updating...
9334         (frame_insn): ...this.  Strengthen return type from rtx to
9335         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
9336
9337 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9338
9339         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9340         rtx to rtx_jump_table_data *.  Also for local.
9341         * rtl.h (emit_jump_table_data): Likewise.
9342
9343 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9344
9345         * basic-block.h (create_basic_block_structure): Strengthen third
9346         param "bb_note" from rtx to rtx_note *.
9347         * rtl.h (emit_note_before): Strengthen return type from rtx to
9348         rtx_note *.
9349         (emit_note_after): Likewise.
9350         (emit_note): Likewise.
9351         (emit_note_copy): Likewise.  Also, strengthen param similarly.
9352         * function.h (struct rtl_data): Strengthen field
9353         "x_stack_check_probe_note" from rtx to rtx_note *.
9354
9355         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9356         from rtx to rtx_note *.
9357         * cfgrtl.c (create_basic_block_structure): Strengthen third param
9358         "bb_note" from rtx to rtx_note *.
9359         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
9360         when calling emit_note_copy.
9361         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9362         rtx_note *.
9363         (emit_note_after): Likewise.
9364         (emit_note_before): Likewise.
9365         (emit_note_copy): Likewise.  Also, strengthen param similarly.
9366         (emit_note): Likewise.
9367         * except.c (emit_note_eh_region_end): Likewise for return type.
9368         Strengthen local "next" from rtx to rtx_insn *.
9369         (convert_to_eh_region_ranges): Strengthen local "note"
9370         from rtx to rtx_note *.
9371         * final.c (change_scope): Likewise.
9372         (reemit_insn_block_notes): Likewise, for both locals named "note".
9373         Also, strengthen local "insn" from rtx to rtx_insn *.
9374         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9375         rtx to rtx_note *.
9376         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9377         strengthen local "seq" from rtx to rtx_insn *.
9378         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9379         to rtx_note *.
9380         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9381         vec<rtx_note *>.
9382         (get_bb_note_from_pool): Strengthen return type from rtx to
9383         rtx_note *.
9384         (sel_create_basic_block): Strengthen local "new_bb_note" from
9385         insn_t to rtx_note *.
9386         * var-tracking.c (emit_note_insn_var_location): Strengthen local
9387         "note" from rtx to rtx_note *.
9388         (emit_notes_in_bb): Likewise.
9389
9390 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9391
9392         * function.h (struct rtl_data): Strengthen field
9393         "x_parm_birth_insn" from rtx to rtx_insn *.
9394         * function.c (struct assign_parm_data_all): Strengthen fields
9395         "first_conversion_insn" and "last_conversion_insn" from rtx to
9396         rtx_insn *.
9397
9398 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9399
9400         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9401         to rtx_insn *; also for local "var_end_seq".
9402         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9403         (maybe_cleanup_end_of_block): Likewise for param "last" and local
9404         "insn".
9405         (expand_gimple_cond): Likewise for locals "last2" and "last".
9406         (mark_transaction_restart_calls): Likewise for local "insn".
9407         (expand_gimple_stmt): Likewise for return type and locals "last"
9408         and "insn".
9409         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9410         (avoid_complex_debug_insns): Likewise for param "insn".
9411         (expand_debug_locations): Likewise for locals "insn", "last",
9412         "prev_insn" and "insn2".
9413         (expand_gimple_basic_block): Likewise for local "last".
9414         (construct_exit_block): Likewise for locals "head", "end",
9415         "orig_end".
9416         (pass_expand::execute): Likewise for locals "var_seq",
9417         "var_ret_seq", "next".
9418
9419 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9420
9421         * asan.h (asan_emit_stack_protection): Strengthen return type from
9422         rtx to rtx_insn *.
9423         * asan.c (asan_emit_stack_protection): Likewise.  Add local
9424         "insns" to hold the return value.
9425
9426 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9427
9428         * basic-block.h (bb_note): Strengthen return type from rtx to
9429         rtx_note *.
9430         * sched-int.h (bb_note): Likewise.
9431         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
9432
9433 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9434
9435         * rtl.h (make_insn_raw): Strengthen return type from rtx to
9436         rtx_insn *.
9437
9438         * emit-rtl.c (make_insn_raw): Strengthen return type and local
9439         "insn" from rtx to rtx_insn *.
9440         (make_debug_insn_raw): Strengthen return type from rtx to
9441         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9442         (make_jump_insn_raw):  Strengthen return type from rtx to
9443         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9444         (make_call_insn_raw):  Strengthen return type from rtx to
9445         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9446         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9447         callback from rtx to rtx_insn *; likewise for local "insn" and
9448         "next", adding a checked cast to rtx_insn in the relevant cases of
9449         the switch statement.
9450         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9451         callback from rtx to rtx_insn *.
9452         (emit_pattern_after_setloc): Likewise.
9453         (emit_pattern_after): Likewise.
9454         (emit_pattern_before_setloc): Likewise.
9455         (emit_pattern_before): Likewise.
9456
9457 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9458
9459         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9460         rtx_call_insn *.
9461         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9462         accepting an rtx_insn *.
9463         (last_call_insn): Strengthen return type from rtx to
9464         rtx_call_insn *.
9465
9466 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9467
9468         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9469         "insns" from rtx to rtx_insn *.
9470         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9471         locals "insn" and "prev".
9472
9473 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9474
9475         * rtl.h (tablejump_p): Strengthen third param from rtx * to
9476         rtx_jump_table_data **.
9477
9478         * cfgbuild.c (make_edges): Introduce local "table", using it in
9479         place of "tmp" for jump table data.
9480         (find_bb_boundaries): Strengthen local "table" from rtx to
9481         rtx_jump_table_data *.
9482         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9483         (outgoing_edges_match): Likewise for locals "table1" and "table2".
9484         (try_crossjump_to_edge): Likewise.
9485         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9486         "table".
9487         (patch_jump_insn): Introduce local "table", using it in place of
9488         "tmp" for jump table data.
9489         (force_nonfallthru_and_redirect): Introduce local "table", so that
9490         call to tablejump_p can receive an rtx_jump_table_data **.  Update
9491         logic around the call to overwrite "note" appropriately if
9492         tablejump_p returns non-zero.
9493         (get_last_bb_insn): Introduce local "table", using it in place of
9494         "tmp" for jump table data.
9495         * dwarf2cfi.c (create_trace_edges): Likewise.
9496
9497         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9498         from rtx to rtx_jump_table_data *.
9499         (create_fix_barrier): Strengthen local "tmp" from rtx to
9500         rtx_jump_table_data *.
9501         (arm_reorg): Likewise for local "table".
9502
9503         * config/s390/s390.c (s390_chunkify_start): Likewise.
9504
9505         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9506
9507         * jump.c (delete_related_insns): Strengthen local "lab_next" from
9508         rtx to rtx_jump_table_data *.
9509
9510         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9511         rtx_jump_table_data **.  Add a checked cast when writing through
9512         the pointer: we know there that local "table" is non-NULL and that
9513         JUMP_TABLE_DATA_P (table) holds.
9514         (label_is_jump_target_p): Introduce local "table", using it in
9515         place of "tmp" for jump table data.
9516
9517 2014-08-19  Marek Polacek  <polacek@redhat.com>
9518
9519         PR c++/62153
9520         * doc/invoke.texi: Document -Wbool-compare.
9521
9522 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9523
9524         * rtl.h (entry_of_function): Strengthen return type from rtx to
9525         rtx_insn *.
9526         * cfgrtl.c (entry_of_function): Likewise.
9527
9528 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9529
9530         * emit-rtl.h (get_insns): Strengthen return type from rtx to
9531         rtx_insn *, adding a checked cast for now.
9532         (get_last_insn): Likewise.
9533
9534 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9535
9536         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9537         rtx_code_label *.
9538
9539         * emit-rtl.c (gen_label_rtx): Likewise.
9540
9541 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9542
9543         * rtl.h (previous_insn): Strengthen return type from rtx to
9544         rtx_insn *.
9545         (next_insn): Likewise.
9546         (prev_nonnote_insn): Likewise.
9547         (prev_nonnote_insn_bb): Likewise.
9548         (next_nonnote_insn): Likewise.
9549         (next_nonnote_insn_bb): Likewise.
9550         (prev_nondebug_insn): Likewise.
9551         (next_nondebug_insn): Likewise.
9552         (prev_nonnote_nondebug_insn): Likewise.
9553         (next_nonnote_nondebug_insn): Likewise.
9554         (prev_real_insn): Likewise.
9555         (next_real_insn): Likewise.
9556         (prev_active_insn): Likewise.
9557         (next_active_insn): Likewise.
9558
9559         * emit-rtl.c (next_insn): Strengthen return type from rtx to
9560         rtx_insn *, adding a checked cast.
9561         (previous_insn): Likewise.
9562         (next_nonnote_insn): Likewise.
9563         (next_nonnote_insn_bb): Likewise.
9564         (prev_nonnote_insn): Likewise.
9565         (prev_nonnote_insn_bb): Likewise.
9566         (next_nondebug_insn): Likewise.
9567         (prev_nondebug_insn): Likewise.
9568         (next_nonnote_nondebug_insn): Likewise.
9569         (prev_nonnote_nondebug_insn): Likewise.
9570         (next_real_insn): Likewise.
9571         (prev_real_insn): Likewise.
9572         (next_active_insn): Likewise.
9573         (prev_active_insn): Likewise.
9574
9575         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9576         param "stepfunc" so that it returns an rtx_insn * rather than an
9577         rtx, to track the change to prev_nonnote_insn_bb, which is the
9578         only function this is called with.
9579         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9580
9581 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
9582
9583         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9584         assert.
9585
9586 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9587
9588         * coretypes.h (class rtx_debug_insn): Add forward declaration.
9589         (class rtx_nonjump_insn): Likewise.
9590         (class rtx_jump_insn): Likewise.
9591         (class rtx_call_insn): Likewise.
9592         (class rtx_jump_table_data): Likewise.
9593         (class rtx_barrier): Likewise.
9594         (class rtx_code_label): Likewise.
9595         (class rtx_note): Likewise.
9596
9597         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9598         adding the invariant DEBUG_INSN_P (X).
9599         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9600         the invariant NONJUMP_INSN_P (X).
9601         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9602         the invariant JUMP_P (X).
9603         (class rtx_call_insn): New, a subclass of rtx_insn, adding
9604         the invariant CALL_P (X).
9605         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9606         invariant JUMP_TABLE_DATA_P (X).
9607         (class rtx_barrier): New, a subclass of rtx_insn, adding the
9608         invariant BARRIER_P (X).
9609         (class rtx_code_label): New, a subclass of rtx_insn, adding
9610         the invariant LABEL_P (X).
9611         (class rtx_note): New, a subclass of rtx_insn, adding
9612         the invariant NOTE_P(X).
9613         (is_a_helper <rtx_debug_insn *>::test): New.
9614         (is_a_helper <rtx_nonjump_insn *>::test): New.
9615         (is_a_helper <rtx_jump_insn *>::test): New.
9616         (is_a_helper <rtx_call_insn *>::test): New.
9617         (is_a_helper <rtx_jump_table_data *>::test): New functions,
9618         overloaded for both rtx and rtx_insn *.
9619         (is_a_helper <rtx_barrier *>::test): New.
9620         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9621         for both rtx and rtx_insn *.
9622         (is_a_helper <rtx_note *>::test): New.
9623
9624 2014-08-19  Marek Polacek  <polacek@redhat.com>
9625
9626         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9627         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9628         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9629         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9630
9631 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9632
9633         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9634         rtx_insn *.  To help with transition, for now, convert from an
9635         access macro into a pair of functions: BND_TO, returning an
9636         rtx_insn *, and...
9637         (SET_BND_TO): New function, for use where BND_TO is used as an
9638         lvalue.
9639
9640         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9641         SET_BND_TO.
9642         (BND_TO): New function, adding a checked cast.
9643         (SET_BND_TO): New function.
9644
9645         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9646         SET_BND_TO.
9647         (compute_av_set_on_boundaries): Likewise.
9648
9649 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9650
9651         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9652         destination if it is used in source.
9653         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9654         (*popcount<mode>2_falsedep_1): Likewise.
9655
9656 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9657
9658         PR other/62168
9659         * configure.ac: Set install_gold_as_default to no first.
9660         * configure: Regenerated.
9661
9662 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9663
9664         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9665         "note_list" field will eventually be an rtx_insn *.  To help with
9666         transition, for now, convert from an access macro into a pair of
9667         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9668         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9669         used as an lvalue.
9670
9671         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9672         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9673
9674         * sel-sched-ir.c (init_bb): Likewise.
9675         (sel_restore_notes): Likewise.
9676         (move_bb_info): Likewise.
9677         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9678         (SET_BB_NOTE_LIST): New function.
9679
9680 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9681
9682         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9683         field will eventually be an rtx_insn *.  To help with transition,
9684         for now, convert from an access macro into a pair of functions:
9685         VINSN_INSN_RTX, returning an rtx_insn *, and...
9686         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9687         is used as an lvalue.
9688
9689         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9690         SET_VINSN_INSN_RTX where it's used as an lvalue.
9691         (VINSN_INSN_RTX): New function.
9692         (SET_VINSN_INSN_RTX): New function.
9693
9694 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9695
9696         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9697         eventually be rtx_insn *, but to help with transition, for now,
9698         convert from an access macro into a pair of functions: DEP_PRO
9699         returning an rtx_insn * and...
9700         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9701         lvalue, returning an rtx&.
9702         (DEP_CON): Analogous changes to DEP_PRO above.
9703         (SET_DEP_CON): Likewise.
9704
9705         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9706         an lvalue to SET_DEP_CON.
9707         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9708         (sd_copy_back_deps): Likewise for DEP_CON.
9709         (DEP_PRO): New function, adding a checked cast for now.
9710         (DEP_CON): Likewise.
9711         (SET_DEP_PRO): New function.
9712         (SET_DEP_CON): Likewise.
9713
9714 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
9715
9716         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9717         (extra_options): Add i386/cygwin.opt.
9718         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9719         (CPP_SPEC): Accept -pthread.
9720         (LINK_SPEC): Ditto.
9721         (GOMP_SELF_SPECS): Update comment.
9722         * config/i386/cygwin.opt: New file for -pthread flag.
9723
9724 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9725
9726         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9727         * df.h (DF_REF_INSN): Convert from a macro to a function, so
9728         that we can return an rtx_insn *.
9729
9730 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
9731
9732         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9733         when building executables, not DLLs.  Add --large-address-aware
9734         under the same conditions.
9735         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9736         when building executables, not DLLs.  Add --large-address-aware
9737         under the same conditions when using -m32.
9738
9739         * config/i386/cygwin-stdint.h: Throughout, make type
9740         definitions dependent on target architecture, not host.
9741
9742 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9743
9744         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
9745         the return type from rtx to rtx_insn *,  which will enable various
9746         conversions in followup patches.  For now this is is done by a
9747         checked cast.
9748         (NEXT_INSN): Likewise.
9749         (SET_PREV_INSN): Convert to an inline function.  This is intended
9750         for use as an lvalue, and so returns an rtx& to allow in-place
9751         modification.
9752         (SET_NEXT_INSN): Likewise.
9753
9754 2014-07-08  Mark Wielaard  <mjw@redhat.com>
9755
9756         PR debug/59051
9757         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9758
9759 2014-08-19  Marek Polacek  <polacek@redhat.com>
9760
9761         PR c/61271
9762         * cgraphunit.c (handle_alias_pairs): Fix condition.
9763
9764 2014-08-19  Richard Biener  <rguenther@suse.de>
9765
9766         * gimple-fold.c (fold_gimple_assign): Properly build a
9767         null-pointer constant when devirtualizing addresses.
9768
9769 2014-07-07  Mark Wielaard  <mjw@redhat.com>
9770
9771         * dwarf2out.c (decl_quals): New function.
9772         (modified_type_die): Take one cv_quals argument instead of two,
9773         one for const and one for volatile.
9774         (add_type_attribute): Likewise.
9775         (generic_parameter_die): Call add_type_attribute with one modifier
9776         argument.
9777         (base_type_for_mode): Likewise.
9778         (add_bounds_info): Likewise.
9779         (add_subscript_info): Likewise.
9780         (gen_array_type_die): Likewise.
9781         (gen_descr_array_type_die): Likewise.
9782         (gen_entry_point_die): Likewise.
9783         (gen_enumeration_type_die): Likewise.
9784         (gen_formal_parameter_die): Likewise.
9785         (gen_subprogram_die): Likewise.
9786         (gen_variable_die): Likewise.
9787         (gen_const_die): Likewise.
9788         (gen_field_die): Likewise.
9789         (gen_pointer_type_die): Likewise.
9790         (gen_reference_type_die): Likewise.
9791         (gen_ptr_to_mbr_type_die): Likewise.
9792         (gen_inheritance_die): Likewise.
9793         (gen_subroutine_type_die): Likewise.
9794         (gen_typedef_die): Likewise.
9795         (force_type_die): Likewise.
9796
9797 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9798
9799         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9800         if unset.
9801         * configure: Regenerate.
9802
9803 2014-08-19  Richard Biener  <rguenther@suse.de>
9804
9805         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9806         DECL_EXTERNALs in BLOCKs as non-references.
9807         * tree-streamer-out.c (streamer_write_chain): Likewise.
9808
9809 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9810             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9811             Anna Tikhonova  <anna.tikhonova@intel.com>
9812             Ilya Tocar  <ilya.tocar@intel.com>
9813             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9814             Ilya Verbin  <ilya.verbin@intel.com>
9815             Kirill Yukhin  <kirill.yukhin@intel.com>
9816             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9817
9818         * config/i386/sse.md
9819         (define_mode_iterator VI48_AVX512F): Delete.
9820         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9821         (define_mode_iterator VI2_AVX512VL): Ditto.
9822         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9823         Delete.
9824         (define_insn
9825         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9826         New.
9827         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9828         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9829         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9830         with VI48_AVX512F_AVX512VL): New.
9831         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9832         with VI2_AVX512VL): Ditto.
9833
9834 2014-08-19  Marek Polacek  <polacek@redhat.com>
9835
9836         * doc/invoke.texi: Document -Wc99-c11-compat.
9837
9838 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9839
9840         * rtl.h (PREV_INSN): Split macro in two: the existing one,
9841         for rvalues, and...
9842         (SET_PREV_INSN): New macro, for use as an lvalue.
9843         (NEXT_INSN, SET_NEXT_INSN): Likewise.
9844
9845         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9846         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9847         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9848         (fixup_abnormal_edges): Likewise.
9849         (unlink_insn_chain): Likewise.
9850         (fixup_reorder_chain): Likewise.
9851         (cfg_layout_delete_block): Likewise.
9852         (cfg_layout_merge_blocks): Likewise.
9853         * combine.c (update_cfg_for_uncondjump): Likewise.
9854         * emit-rtl.c (link_insn_into_chain): Likewise.
9855         (remove_insn): Likewise.
9856         (delete_insns_since): Likewise.
9857         (reorder_insns_nobb): Likewise.
9858         (emit_insn_after_1): Likewise.
9859         * final.c (rest_of_clean_state): Likewise.
9860         (final_scan_insn): Likewise.
9861         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9862         * haifa-sched.c (concat_note_lists): Likewise.
9863         (remove_notes): Likewise.
9864         (restore_other_notes): Likewise.
9865         (move_insn): Likewise.
9866         (unlink_bb_notes): Likewise.
9867         (restore_bb_notes): Likewise.
9868         * jump.c (delete_for_peephole): Likewise.
9869         * optabs.c (emit_libcall_block_1): Likewise.
9870         * reorg.c (emit_delay_sequence): Likewise.
9871         (fill_simple_delay_slots): Likewise.
9872         * sel-sched-ir.c (sel_move_insn): Likewise.
9873         (sel_remove_insn): Likewise.
9874         (get_bb_note_from_pool): Likewise.
9875         * sel-sched.c (move_nop_to_previous_block): Likewise.
9876
9877         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9878         * config/c6x/c6x.c (gen_one_bundle): Likewise.
9879         (c6x_gen_bundles): Likewise.
9880         (hwloop_optimize): Likewise.
9881         * config/frv/frv.c (frv_function_prologue): Likewise.
9882         (frv_register_nop): Likewise.
9883         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9884         (ia64_reorg): Likewise.
9885         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9886         (mep_make_bundle): Likewise.
9887         (mep_bundle_insns): Likewise.
9888         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9889         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9890         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9891
9892 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
9893
9894         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
9895         return type from rtx to rtx_insn *.
9896         (BB_END): Likewise.
9897         (BB_HEADER): Likewise.
9898         (BB_FOOTER): Likewise.
9899         (SET_BB_HEAD): Convert to a function.
9900         (SET_BB_END): Likewise.
9901         (SET_BB_HEADER): Likewise.
9902         (SET_BB_FOOTER): Likewise.
9903
9904         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9905         Strengthen the return type from rtx to rtx_insn *.  For now, this
9906         is done by adding a checked cast, but this will eventually
9907         become a field lookup.
9908         (BB_END): Likewise.
9909         (BB_HEADER): Likewise.
9910         (BB_FOOTER): Likewise.
9911         (SET_BB_HEAD): New function, from macro of same name.  This is
9912         intended for use as an lvalue, and so returns an rtx& to allow
9913         in-place modification.
9914         (SET_BB_END): Likewise.
9915         (SET_BB_HEADER): Likewise.
9916         (SET_BB_FOOTER): Likewise.
9917
9918 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9919
9920         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9921         for rvalues, and...
9922         (SET_BB_HEAD): New macro, for use as a lvalue.
9923         (BB_END, SET_BB_END): Likewise.
9924         (BB_HEADER, SET_BB_HEADER): Likewise.
9925         (BB_FOOTER, SET_BB_FOOTER): Likewise.
9926
9927         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9928         of BB_* macros into SET_BB_* macros.
9929         (fix_crossing_unconditional_branches): Likewise.
9930         * caller-save.c (save_call_clobbered_regs): Likewise.
9931         (insert_one_insn): Likewise.
9932         * cfgbuild.c (find_bb_boundaries): Likewise.
9933         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9934         (outgoing_edges_match): Likewise.
9935         (try_optimize_cfg): Likewise.
9936         * cfgexpand.c (expand_gimple_cond): Likewise.
9937         (expand_gimple_tailcall): Likewise.
9938         (expand_gimple_basic_block): Likewise.
9939         (construct_exit_block): Likewise.
9940         * cfgrtl.c (delete_insn): Likewise.
9941         (create_basic_block_structure): Likewise.
9942         (rtl_delete_block): Likewise.
9943         (rtl_split_block): Likewise.
9944         (emit_nop_for_unique_locus_between): Likewise.
9945         (rtl_merge_blocks): Likewise.
9946         (block_label): Likewise.
9947         (try_redirect_by_replacing_jump): Likewise.
9948         (emit_barrier_after_bb): Likewise.
9949         (fixup_abnormal_edges): Likewise.
9950         (record_effective_endpoints): Likewise.
9951         (relink_block_chain): Likewise.
9952         (fixup_reorder_chain): Likewise.
9953         (fixup_fallthru_exit_predecessor): Likewise.
9954         (cfg_layout_duplicate_bb): Likewise.
9955         (cfg_layout_split_block): Likewise.
9956         (cfg_layout_delete_block): Likewise.
9957         (cfg_layout_merge_blocks): Likewise.
9958         * combine.c (update_cfg_for_uncondjump): Likewise.
9959         * emit-rtl.c (add_insn_after): Likewise.
9960         (remove_insn): Likewise.
9961         (reorder_insns): Likewise.
9962         (emit_insn_after_1): Likewise.
9963         * haifa-sched.c (get_ebb_head_tail): Likewise.
9964         (restore_other_notes): Likewise.
9965         (move_insn): Likewise.
9966         (sched_extend_bb): Likewise.
9967         (fix_jump_move): Likewise.
9968         * ifcvt.c (noce_process_if_block): Likewise.
9969         (dead_or_predicable): Likewise.
9970         * ira.c (update_equiv_regs): Likewise.
9971         * reg-stack.c (change_stack): Likewise.
9972         * sel-sched-ir.c (sel_move_insn): Likewise.
9973         * sel-sched.c (move_nop_to_previous_block): Likewise.
9974
9975         * config/c6x/c6x.c (hwloop_optimize): Likewise.
9976         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9977
9978 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9979
9980         * rtl.h (for_each_rtx_in_insn): New function.
9981         * rtlanal.c (for_each_rtx_in_insn): Likewise.
9982
9983 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9984
9985         * coretypes.h (class rtx_insn): Add forward declaration.
9986
9987         * rtl.h: Include is-a.h.
9988         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9989         workaround to ensure gengtype knows inheritance is occurring,
9990         whilst continuing to use the pre-existing special-casing for
9991         rtx_def.
9992         (class rtx_insn): New subclass of rtx_def, adding the
9993         invariant that we're dealing with something we can sanely use
9994         INSN_UID, NEXT_INSN, PREV_INSN on.
9995         (is_a_helper <rtx_insn *>::test): New.
9996         (is_a_helper <const rtx_insn *>::test): New.
9997
9998 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
9999
10000         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10001
10002 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10003
10004         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10005         comdats as extern.
10006
10007 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
10008
10009         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10010         to BUILT_IN_UNREACHABLE.
10011
10012 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
10013
10014         PR target/62011
10015         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10016         New tune flag.
10017         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10018         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10019         (ffs<mode>2): Do not expand with tzcnt for
10020         TARGET_AVOID_FALSE_DEP_FOR_BMI.
10021         (ffssi2_no_cmove): Ditto.
10022         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10023         (ctz<mode>2): New expander.
10024         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10025         (*ctz<mode>2_falsedep): New insn.
10026         (*ctz<mode>2): Rename from ctz<mode>2.
10027         (clz<mode>2_lzcnt): New expander.
10028         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10029         (*clz<mode>2_lzcnt_falsedep): New insn.
10030         (*clz<mode>2): Rename from ctz<mode>2.
10031         (popcount<mode>2): New expander.
10032         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10033         (*popcount<mode>2_falsedep): New insn.
10034         (*popcount<mode>2): Rename from ctz<mode>2.
10035         (*popcount<mode>2_cmp): Remove.
10036         (*popcountsi2_cmp_zext): Ditto.
10037
10038 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
10039
10040         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10041         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10042         * config/microblaze/microblaze.h
10043         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10044
10045 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
10046
10047         PR other/62168
10048         * configure.ac: Set install_gold_as_default to no for
10049          --enable-gold=no.
10050          * configure: Regenerated.
10051
10052 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
10053
10054         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10055         * config.in: Add undef of HAVE_isl.
10056         * configure: Regenerate.
10057         * configure.ac: Add definition of HAVE_isl.
10058         * graphite-blocking.c: Add checking of HAVE_isl.
10059         * graphite-dependences.c: Likewise.
10060         * graphite-interchange.c: Likewise.
10061         * graphite-isl-ast-to-gimple.c: Likewise.
10062         * graphite-optimize-isl.c: Likewise.
10063         * graphite-poly.c: Likewise.
10064         * graphite-scop-detection.c: Likewise.
10065         * graphite-sese-to-poly.c: Likewise.
10066         * graphite.c: Likewise.
10067         * toplev.c: Replace the checking of HAVE_cloog with the checking
10068         of HAVE_isl.
10069
10070 2014-08-18  Richard Biener  <rguenther@suse.de>
10071
10072         PR tree-optimization/62090
10073         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10074         (fold_builtin_3): Do not fold snprintf.
10075         (fold_builtin_4): Likewise.
10076         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10077         moved from builtins.c.
10078         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10079         (gimple_fold_builtin): Do not fold sprintf here.
10080
10081 2014-08-18  Richard Biener  <rguenther@suse.de>
10082
10083         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10084         code to ...
10085         (maybe_canonicalize_mem_ref_addr): ... this function.
10086         (fold_stmt_1): Apply it here before all simplification.
10087
10088 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
10089
10090         PR ipa/61800
10091         * cgraph.h (cgraph_node::create_indirect_edge): Add
10092         compute_indirect_info param.
10093         * cgraph.c (cgraph_node::create_indirect_edge): Compute
10094         indirect_info only when it is required.
10095         * cgraphclones.c (cgraph_clone_edge): Do not recompute
10096         indirect_info fore cloned indirect edge.
10097
10098 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10099             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10100             Anna Tikhonova  <anna.tikhonova@intel.com>
10101             Ilya Tocar  <ilya.tocar@intel.com>
10102             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10103             Ilya Verbin  <ilya.verbin@intel.com>
10104             Kirill Yukhin  <kirill.yukhin@intel.com>
10105             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10106
10107         * config/i386/sse.md
10108         (define_mode_iterator VI8_AVX2_AVX512BW): New.
10109         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10110
10111 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10112             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10113             Anna Tikhonova  <anna.tikhonova@intel.com>
10114             Ilya Tocar  <ilya.tocar@intel.com>
10115             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10116             Ilya Verbin  <ilya.verbin@intel.com>
10117             Kirill Yukhin  <kirill.yukhin@intel.com>
10118             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10119
10120         * config/i386/sse.md
10121         (define_mode_iterator VF1_AVX512VL): New.
10122         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10123         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10124         New.
10125
10126 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10127             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10128             Anna Tikhonova  <anna.tikhonova@intel.com>
10129             Ilya Tocar  <ilya.tocar@intel.com>
10130             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10131             Ilya Verbin  <ilya.verbin@intel.com>
10132             Kirill Yukhin  <kirill.yukhin@intel.com>
10133             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10134
10135         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10136         * config/i386/i386.md
10137         (define_code_iterator any_float): New.
10138         (define_code_attr floatsuffix): New.
10139         * config/i386/sse.md
10140         (define_mode_iterator VF1_128_256VL): New.
10141         (define_mode_iterator VF2_512_256VL): New.
10142         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10143         TARGET check.
10144         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10145         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10146         New.
10147         (define_mode_attr qq2pssuff): New.
10148         (define_mode_attr sselongvecmode): New.
10149         (define_mode_attr sselongvecmodelower): New.
10150         (define_mode_attr sseintvecmode3): New.
10151         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10152         New.
10153         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10154         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10155         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10156         (define_insn "ufloatv2siv2df2<mask_name>"): New.
10157
10158 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10159             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10160             Anna Tikhonova  <anna.tikhonova@intel.com>
10161             Ilya Tocar  <ilya.tocar@intel.com>
10162             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10163             Ilya Verbin  <ilya.verbin@intel.com>
10164             Kirill Yukhin  <kirill.yukhin@intel.com>
10165             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10166
10167         * config/i386/sse.md
10168         (define_mode_iterator VF2_AVX512VL): New.
10169         (define_mode_attr sseintvecmode2): New.
10170         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10171         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10172         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10173         (define_insn
10174         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10175         Ditto.
10176         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10177         Ditto.
10178         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10179         Ditto.
10180
10181 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10182             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10183             Anna Tikhonova  <anna.tikhonova@intel.com>
10184             Ilya Tocar  <ilya.tocar@intel.com>
10185             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10186             Ilya Verbin  <ilya.verbin@intel.com>
10187             Kirill Yukhin  <kirill.yukhin@intel.com>
10188             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10189
10190         * config/i386/i386.md
10191         (define_insn "*movoi_internal_avx"): Add evex version.
10192         (define_insn "*movti_internal"): Ditto.
10193
10194 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10195             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10196             Anna Tikhonova  <anna.tikhonova@intel.com>
10197             Ilya Tocar  <ilya.tocar@intel.com>
10198             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10199             Ilya Verbin  <ilya.verbin@intel.com>
10200             Kirill Yukhin  <kirill.yukhin@intel.com>
10201             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10202
10203         * config/i386/i386.md
10204         (define_attr "isa"): Add avx512dq, noavx512dq.
10205         (define_attr "enabled"): Ditto.
10206         * config/i386/sse.md
10207         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10208
10209 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10210             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10211             Anna Tikhonova  <anna.tikhonova@intel.com>
10212             Ilya Tocar  <ilya.tocar@intel.com>
10213             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10214             Ilya Verbin  <ilya.verbin@intel.com>
10215             Kirill Yukhin  <kirill.yukhin@intel.com>
10216             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10217
10218         * config/i386/i386.c
10219         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10220         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10221         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10222         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10223         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10224         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10225         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10226         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10227         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10228         * config/i386/sse.md
10229         (define_mode_iterator VMOVE): Allow V4TI mode.
10230         (define_mode_iterator V_AVX512VL): New.
10231         (define_mode_iterator V): New handling for AVX512VL.
10232         (define_insn "avx512f_load<mode>_mask"): Delete.
10233         (define_insn "<avx512>_load<mode>_mask"): New.
10234         (define_insn "avx512f_store<mode>_mask"): Delete.
10235         (define_insn "<avx512>_store<mode>_mask"): New.
10236
10237
10238 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
10239
10240         PR sanitizer/62089
10241         * asan.c (instrument_derefs): Fix bitfield check.
10242
10243 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10244
10245         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10246         * config/rs6000/htm.md (ttest): Remove clobber.
10247         * config/rs6000/predicates.md (any_mask_operand): New predicate.
10248         (and_operand): Reformat.
10249         (and_2rld_operand): New predicate.
10250         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10251         parameter.
10252         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10253         parameter.  Handle AND directly.
10254         (rs6000_split_logical_di): Remove last parameter.
10255         (rs6000_split_logical): Remove last parameter.  Remove obsolete
10256         comment.
10257         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10258         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10259         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
10260         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10261         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10262         and 5 anonymous splitters):  Delete.
10263         (and<mode>3): New expander.
10264         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10265         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10266         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10267         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10268         (floatdisf2_internal1): Remove clobbers.
10269         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10270         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10271         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10272         (and<mode>3 for BOOL_128): Remove clobber.
10273         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
10274         rs6000_split_logical.
10275         (*bool<mode>3_internal for BOOL_128): Adjust call of
10276         rs6000_split_logical.
10277         (*boolc<mode>3_internal1 for BOOL_128,
10278         *boolc<mode>3_internal2 for BOOL_128,
10279         *boolcc<mode>3_internal1 for BOOL_128,
10280         *boolcc<mode>3_internal2 for BOOL_128,
10281         *eqv<mode>3_internal1 for BOOL_128,
10282         *eqv<mode>3_internal2 for BOOL_128,
10283         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10284         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10285         clobber.
10286         (*vec_reload_and_reg_<mptrsize>): Delete.
10287
10288 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10289
10290         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10291         and split, *boolccsi3_internal3 and split): Delete.
10292         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10293         *boolccdi3_internal3 and split): Delete.
10294         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10295         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
10296
10297 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10298
10299         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10300         and split, *boolcsi3_internal3 and split): Delete.
10301         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10302         *boolcdi3_internal3 and split): Delete.
10303         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10304
10305 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
10306
10307         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10308         <'u'>: Also support printing the low-order 16 bits.
10309         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10310         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10311         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10312         *booldi3_internal3 and split): Delete.
10313         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10314         *bool<mode>3_dot2): New.
10315         (two anonymous define_splits for non_logical_cint_operand): Merge.
10316
10317 2014-08-17  Marek Polacek  <polacek@redhat.com>
10318             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10319
10320         PR c/62059
10321         * diagnostic.c (adjust_line): Add gcc_checking_assert.
10322         (diagnostic_show_locus): Don't print caret diagnostic
10323         if a column is larger than the line_width.
10324
10325 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
10326
10327         * common.opt: Make the ISL AST generator to be the main code generator
10328         of Graphite.
10329
10330 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
10331
10332         * wide-int.h (generic_wide_int): Declare as class instead of struct.
10333
10334 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
10335
10336         PR target/61641
10337         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10338         Declare.
10339         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10340         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10341         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10342         Define.
10343         * config/pa/pa.md (begin_brtab): Delete insn.
10344         (end_brtab): Likewise.
10345
10346 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10347
10348         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10349
10350 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
10351
10352         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10353         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10354         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10355         (get_dynamic_type): Remove.
10356         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10357         (clear_speculation): Bring to ipa-deivrt.h
10358         (get_class_context): Rename to ...
10359         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10360         (contains_type_p): Update.
10361         (get_dynamic_type): Rename to ...
10362         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10363         (possible_polymorphic_call_targets): UPdate.
10364         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10365         * ipa-prop.c (ipa_analyze_call_uses): Update.
10366
10367 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
10368
10369         * doc/invoke.texi (SH options): Document missing processor variant
10370         options.  Remove references to Hitachi.  Undocument deprecated mspace
10371         option.
10372
10373 2014-08-15  Jason Merrill  <jason@redhat.com>
10374
10375         * tree.c (type_hash_canon): Uncomment assert.
10376
10377 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10378
10379         * input.h (in_system_header_at): Add comment.
10380
10381 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10382
10383         PR fortran/44054
10384         * diagnostic.c (build_message_string): Make it extern.
10385         * diagnostic.h (build_message_string): Make it extern.
10386
10387 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
10388
10389         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10390         load/store from/to non-floating class pseudo.
10391
10392 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10393
10394         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10395
10396 2014-08-15  Richard Biener  <rguenther@suse.de>
10397
10398         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10399         (get_constraint_for_ssa_var): Remove dead code.
10400         (get_constraint_for_1): Adjust.
10401         (find_what_var_points_to): Likewise.
10402         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
10403
10404 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
10405
10406         PR target/61878
10407         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10408         (_mm512_mask_cmpge_epu32_mask): Ditto.
10409         (_mm512_cmpge_epu32_mask): Ditto.
10410         (_mm512_mask_cmpge_epi64_mask): Ditto.
10411         (_mm512_cmpge_epi64_mask): Ditto.
10412         (_mm512_mask_cmpge_epu64_mask): Ditto.
10413         (_mm512_cmpge_epu64_mask): Ditto.
10414         (_mm512_mask_cmple_epi32_mask): Ditto.
10415         (_mm512_cmple_epi32_mask): Ditto.
10416         (_mm512_mask_cmple_epu32_mask): Ditto.
10417         (_mm512_cmple_epu32_mask): Ditto.
10418         (_mm512_mask_cmple_epi64_mask): Ditto.
10419         (_mm512_cmple_epi64_mask): Ditto.
10420         (_mm512_mask_cmple_epu64_mask): Ditto.
10421         (_mm512_cmple_epu64_mask): Ditto.
10422         (_mm512_mask_cmplt_epi32_mask): Ditto.
10423         (_mm512_cmplt_epi32_mask): Ditto.
10424         (_mm512_mask_cmplt_epu32_mask): Ditto.
10425         (_mm512_cmplt_epu32_mask): Ditto.
10426         (_mm512_mask_cmplt_epi64_mask): Ditto.
10427         (_mm512_cmplt_epi64_mask): Ditto.
10428         (_mm512_mask_cmplt_epu64_mask): Ditto.
10429         (_mm512_cmplt_epu64_mask): Ditto.
10430         (_mm512_mask_cmpneq_epi32_mask): Ditto.
10431         (_mm512_mask_cmpneq_epu32_mask): Ditto.
10432         (_mm512_cmpneq_epu32_mask): Ditto.
10433         (_mm512_mask_cmpneq_epi64_mask): Ditto.
10434         (_mm512_cmpneq_epi64_mask): Ditto.
10435         (_mm512_mask_cmpneq_epu64_mask): Ditto.
10436         (_mm512_cmpneq_epu64_mask): Ditto.
10437         (_mm512_castpd_ps): Ditto.
10438         (_mm512_castpd_si512): Ditto.
10439         (_mm512_castps_pd): Ditto.
10440         (_mm512_castps_si512): Ditto.
10441         (_mm512_castsi512_ps): Ditto.
10442         (_mm512_castsi512_pd): Ditto.
10443         (_mm512_castpd512_pd128): Ditto.
10444         (_mm512_castps512_ps128): Ditto.
10445         (_mm512_castsi512_si128): Ditto.
10446         (_mm512_castpd512_pd256): Ditto.
10447         (_mm512_castps512_ps256): Ditto.
10448         (_mm512_castsi512_si256): Ditto.
10449         (_mm512_castpd128_pd512): Ditto.
10450         (_mm512_castps128_ps512): Ditto.
10451         (_mm512_castsi128_si512): Ditto.
10452         (_mm512_castpd256_pd512): Ditto.
10453         (_mm512_castps256_ps512): Ditto.
10454         (_mm512_castsi256_si512): Ditto.
10455         (_mm512_cmpeq_epu32_mask): Ditto.
10456         (_mm512_mask_cmpeq_epu32_mask): Ditto.
10457         (_mm512_mask_cmpeq_epu64_mask): Ditto.
10458         (_mm512_cmpeq_epu64_mask): Ditto.
10459         (_mm512_cmpgt_epu32_mask): Ditto.
10460         (_mm512_mask_cmpgt_epu32_mask): Ditto.
10461         (_mm512_mask_cmpgt_epu64_mask): Ditto.
10462         (_mm512_cmpgt_epu64_mask): Ditto.
10463         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10464         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10465         * config/i386/i386.c (enum ix86_builtins): Add
10466         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10467         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10468         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10469         (bdesc_args): Add __builtin_ia32_si512_256si,
10470         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10471         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10472         __builtin_ia32_pd512_pd.
10473         (ix86_expand_args_builtin): Handle new FTYPEs.
10474         * config/i386/sse.md (castmode): Add 512-bit modes.
10475         (AVX512MODE2P): New.
10476         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10477         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10478
10479 2014-08-15  Richard Biener  <rguenther@suse.de>
10480
10481         * fold-const.c (tree_swap_operands_p): Put all constants
10482         last, also strip sign-changing NOPs when considering further
10483         canonicalization.  Canonicalize also when optimizing for size.
10484
10485 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10486
10487         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10488         one_match > zero_match case to just before simple_sequence.
10489
10490 2014-08-15  Richard Biener  <rguenther@suse.de>
10491
10492         * data-streamer.h (streamer_string_index, string_for_index):
10493         Remove.
10494         * data-streamer-out.c (streamer_string_index): Make static.
10495         * data-streamer-in.c (string_for_index): Likewise.
10496         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10497         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10498
10499 2014-08-15  Richard Biener  <rguenther@suse.de>
10500
10501         PR tree-optimization/62031
10502         * tree-data-ref.c (dr_analyze_indices): Do not set
10503         DR_UNCONSTRAINED_BASE.
10504         (dr_may_alias_p): All indirect accesses have to go the
10505         formerly DR_UNCONSTRAINED_BASE path.
10506         * tree-data-ref.h (struct indices): Remove
10507         unconstrained_base member.
10508         (DR_UNCONSTRAINED_BASE): Remove.
10509
10510 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
10511
10512         PR middle-end/62092
10513         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10514         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10515         in OMP_CLAUSE_MAP in some outer target region.
10516
10517 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
10518
10519         * tree-ssa-loop-ivopts.c (ivopts_data): New field
10520         name_expansion_cache.
10521         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10522         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10523         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10524         (difference_cannot_overflow_p): New parameter.  Use affine
10525         expansion for equality check.
10526         (iv_elimination_compare_lt): Pass new argument.
10527
10528 2014-08-14  DJ Delorie  <dj@redhat.com>
10529
10530         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10531         variables to the accumulator.
10532
10533         * config/rl78/predicates.md (rl78_near_mem_operand): New.
10534         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10535         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10536         with far-far moves.
10537
10538         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10539         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10540         (umulqihi3_virt): Likewise.
10541         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10542         (umulqihi3_real): Likewise.
10543
10544         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10545
10546 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
10547
10548         PR tree-optimization/62091
10549         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10550         function_entry_reached.
10551         (walk_aliased_vdefs): Clear it here.
10552         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10553
10554 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
10555
10556         * ipa-utils.h (compare_virtual_tables): Declare.
10557         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10558
10559 2014-08-14  Marek Polacek  <polacek@redhat.com>
10560
10561         DR 458
10562         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10563         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10564
10565 2014-08-14  Tom de Vries  <tom@codesourcery.com>
10566
10567         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10568
10569 2014-08-14  Tom de Vries  <tom@codesourcery.com>
10570
10571         PR rtl-optimization/62004
10572         PR rtl-optimization/62030
10573         * ifcvt.c (rtx_interchangeable_p): New function.
10574         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10575         * emit-rtl.h (mem_attrs_eq_p): Declare.
10576
10577 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
10578
10579         * graphite-scop-detection.c:
10580         Add inclusion of cp-tree.h.
10581         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10582         in case they are pointers to object types
10583
10584 2014-08-14  Richard Biener  <rguenther@suse.de>
10585
10586         * BASE-VER: Change to 5.0.0
10587
10588 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10589             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10590             Anna Tikhonova  <anna.tikhonova@intel.com>
10591             Ilya Tocar  <ilya.tocar@intel.com>
10592             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10593             Ilya Verbin  <ilya.verbin@intel.com>
10594             Kirill Yukhin  <kirill.yukhin@intel.com>
10595             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10596
10597         * config/i386/sse.md (define_mode_attr avx512): New.
10598         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10599         V4DI modes.
10600         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10601         (define_mode_attr ssse3_avx2): Ditto.
10602         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10603         (define_mode_attr avx2_avx512bw): New.
10604         (define_mode_attr ssedoublemodelower): New.
10605         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10606         V32HI, V64QI modes.
10607         (define_mode_attr ssebytemode): Allow V8DI modes.
10608         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10609         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10610         (define_mode_attr ssePSmode2): New.
10611         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10612         V16HI, V32HI modes.
10613         (define_mode_attr dbpsadbwmode): New.
10614         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10615         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10616         (vi8_sse4_1_avx2_avx512): New.
10617         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10618         mode attribute.
10619         (define_mode_attr blendbits): Move before its immediate use.
10620
10621 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10622             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10623             Anna Tikhonova  <anna.tikhonova@intel.com>
10624             Ilya Tocar  <ilya.tocar@intel.com>
10625             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10626             Ilya Verbin  <ilya.verbin@intel.com>
10627             Kirill Yukhin  <kirill.yukhin@intel.com>
10628             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10629
10630         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10631         * config/i386/subst.md
10632         (define_mode_iterator SUBST_V): Update.
10633         (define_mode_iterator SUBST_A): Ditto.
10634         (define_subst_attr "mask_operand7"): New.
10635         (define_subst_attr "mask_operand10"): New.
10636         (define_subst_attr "mask_operand_arg34") : New.
10637         (define_subst_attr "mask_expand_op3"): New.
10638         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10639         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10640         (define_subst_attr "mask_avx512vl_condition"): New.
10641         (define_subst_attr "round_mask_operand4"): Ditto.
10642         (define_subst_attr "round_mask_scalar_op3"): Delete.
10643         (define_subst_attr "round_mask_op4"): New.
10644         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10645         V16SImode.
10646         (define_subst_attr "round_modev8sf_condition"): New.
10647         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10648         <MODE>mode.
10649         (define_subst_attr "round_saeonly_mask_operand4"): New.
10650         (define_subst_attr "round_saeonly_mask_op4"): New.
10651         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10652         V8DImode, V16SImode.
10653         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10654         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10655         (define_subst_attr "mask_expand4_args"): New.
10656         (define_subst "mask_expand4"): New.
10657
10658 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10659             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10660             Anna Tikhonova  <anna.tikhonova@intel.com>
10661             Ilya Tocar  <ilya.tocar@intel.com>
10662             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10663             Ilya Verbin  <ilya.verbin@intel.com>
10664             Kirill Yukhin  <kirill.yukhin@intel.com>
10665             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10666
10667         * config/i386/i386.md
10668         (define_attr "isa"): Add avx512bw,noavx512bw.
10669         (define_attr "enabled"): Ditto.
10670         (define_split): Add 32/64-bit mask logic.
10671         (define_insn "*k<logic>qi"): New.
10672         (define_insn "*k<logic>hi"): New.
10673         (define_insn "*anddi_1"): Add mask version.
10674         (define_insn "*andsi_1"): Ditto.
10675         (define_insn "*<code><mode>_1"): Ditto.
10676         (define_insn "*<code>hi_1"): Ditto.
10677         (define_insn "kxnor<mode>"): New.
10678         (define_insn "kunpcksi"): New.
10679         (define_insn "kunpckdi"): New.
10680         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10681         (define_insn "*one_cmplhi2_1"): Ditto.
10682
10683 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10684             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10685             Anna Tikhonova  <anna.tikhonova@intel.com>
10686             Ilya Tocar  <ilya.tocar@intel.com>
10687             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10688             Ilya Verbin  <ilya.verbin@intel.com>
10689             Kirill Yukhin  <kirill.yukhin@intel.com>
10690             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10691
10692         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10693         V32HImode.
10694
10695 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10696             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10697             Anna Tikhonova  <anna.tikhonova@intel.com>
10698             Ilya Tocar  <ilya.tocar@intel.com>
10699             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10700             Ilya Verbin  <ilya.verbin@intel.com>
10701             Kirill Yukhin  <kirill.yukhin@intel.com>
10702             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10703
10704         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
10705         registers.
10706         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10707         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10708         xmm/ymm16+ when availble.
10709         * config/i386/i386.h
10710         (HARD_REGNO_NREGS): Add mask regs.
10711         (VALID_AVX512F_REG_MODE): Ditto.
10712         (VALID_AVX512F_REG_MODE) : Define.
10713         (VALID_MASK_AVX512BW_MODE): Ditto.
10714         (reg_class) (MASK_REG_P(X)): Define.
10715         * config/i386/i386.md: Do not split long moves with mask register,
10716         use kmovb if avx512bw is availible.
10717         (movdi_internal): Handle mask registers.
10718
10719 2014-08-14  Richard Biener  <rguenther@suse.de>
10720
10721         PR tree-optimization/62081
10722         * tree-ssa-loop.c (pass_fix_loops): New pass.
10723         (pass_tree_loop::gate):  Do not fixup loops here.
10724         * tree-pass.h (make_pass_fix_loops): Declare.
10725         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10726
10727 2014-08-14  Richard Biener  <rguenther@suse.de>
10728
10729         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10730         (type_hash_canon): ... this and avoid 2nd lookup for the add.
10731
10732 2014-08-14  Richard Biener  <rguenther@suse.de>
10733
10734         PR tree-optimization/62090
10735         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10736         (fold_builtin_2): Do not fold sprintf.
10737         (fold_builtin_3): Likewise.
10738         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10739         moved from builtins.c.
10740         (gimple_fold_builtin): Fold sprintf.
10741
10742 2014-08-14  Richard Biener  <rguenther@suse.de>
10743
10744         PR rtl-optimization/62079
10745         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10746         run cleanup_cfg.
10747
10748 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
10749
10750         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10751         current_function_decl.
10752
10753 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
10754
10755         * cgraph.c (cgraph_node::function_symbol): Fix wrong
10756         cgraph_function_node to cgraph_node::function_symbol
10757         refactoring.
10758
10759 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10760
10761         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10762         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10763
10764 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
10765
10766         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10767         warning.
10768
10769 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
10770
10771         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10772         generator.
10773
10774 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
10775
10776         PR target/62025
10777         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10778         any registers that are used in mem_insn.
10779
10780 2014-08-12  Steve Ellcey  <sellcey@mips.com>
10781
10782         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
10783
10784 2014-08-12  Steve Ellcey  <sellcey@mips.com>
10785
10786         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10787         (MULTILIB_DIRNAMES): Ditto.
10788         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10789         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10790         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10791         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10792         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10793         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10794
10795 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10796
10797         PR target/61413
10798         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10799         of __ARM_SIZEOF_WCHAR_T.
10800
10801 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10802
10803         PR target/62098
10804         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10805         Remove unnecessary attributes.
10806
10807 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
10808
10809         * internal-fn.c (init_internal_fns): Fix off-by-one.
10810
10811 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10812             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10813             Anna Tikhonova  <anna.tikhonova@intel.com>
10814             Ilya Tocar  <ilya.tocar@intel.com>
10815             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10816             Ilya Verbin  <ilya.verbin@intel.com>
10817             Kirill Yukhin  <kirill.yukhin@intel.com>
10818             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10819
10820         * config/i386/i386.c (standard_sse_constant_opcode): Use
10821         vpxord/vpternlog if avx512 is availible.
10822
10823 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10824
10825         PR middle-end/62103
10826         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10827         bitfields, that is when size doesn't match the size of type or the
10828         size of the constructor.
10829
10830 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10831
10832         * config/rs6000/constraints.md (wh constraint): New constraint,
10833         for FP registers if direct move is available.
10834         (wi constraint): New constraint, for VSX/FP registers that can
10835         handle 64-bit integers.
10836         (wj constraint): New constraint for VSX/FP registers that can
10837         handle 64-bit integers for direct moves.
10838         (wk constraint): New constraint for VSX/FP registers that can
10839         handle 64-bit doubles for direct moves.
10840         (wy constraint): Make documentation match implementation.
10841
10842         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10843         scalar_in_vmx_p field to simplify tests of whether SFmode or
10844         DFmode can go in the Altivec registers.
10845         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10846         (rs6000_setup_reg_addr_masks): Likewise.
10847         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10848         field, and wh/wi/wj/wk constraints.
10849         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10850         the wh/wi/wj/wk constraints.
10851         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10852         upper registers, prefer VSX registers unless the operation is a
10853         memory operation with REG+OFFSET addressing.
10854
10855         * config/rs6000/vsx.md (VSr mode attribute): Add support for
10856         DImode.  Change SFmode to use ww constraint instead of d to allow
10857         SF registers in the upper registers.
10858         (VSr2): Likewise.
10859         (VSr3): Likewise.
10860         (VSr5): Fix thinko in comment.
10861         (VSa): New mode attribute that is an alternative to wa, that
10862         returns the VSX register class that a mode can go in, but may not
10863         be the preferred register class.
10864         (VS_64dm): New mode attribute for appropriate register classes for
10865         referencing 64-bit elements of vectors for direct moves and normal
10866         moves.
10867         (VS_64reg): Likewise.
10868         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10869         register allocator to only registers the data type can handle.
10870         (vsx_le_perm_load_<mode>): Likewise.
10871         (vsx_le_perm_store_<mode>): Likewise.
10872         (vsx_xxpermdi2_le_<mode>): Likewise.
10873         (vsx_xxpermdi4_le_<mode>): Likewise.
10874         (vsx_lxvd2x2_le_<mode>): Likewise.
10875         (vsx_lxvd2x4_le_<mode>): Likewise.
10876         (vsx_stxvd2x2_le_<mode>): Likewise.
10877         (vsx_add<mode>3): Likewise.
10878         (vsx_sub<mode>3): Likewise.
10879         (vsx_mul<mode>3): Likewise.
10880         (vsx_div<mode>3): Likewise.
10881         (vsx_tdiv<mode>3_internal): Likewise.
10882         (vsx_fre<mode>2): Likewise.
10883         (vsx_neg<mode>2): Likewise.
10884         (vsx_abs<mode>2): Likewise.
10885         (vsx_nabs<mode>2): Likewise.
10886         (vsx_smax<mode>3): Likewise.
10887         (vsx_smin<mode>3): Likewise.
10888         (vsx_sqrt<mode>2): Likewise.
10889         (vsx_rsqrte<mode>2): Likewise.
10890         (vsx_tsqrt<mode>2_internal): Likewise.
10891         (vsx_fms<mode>4): Likewise.
10892         (vsx_nfma<mode>4): Likewise.
10893         (vsx_eq<mode>): Likewise.
10894         (vsx_gt<mode>): Likewise.
10895         (vsx_ge<mode>): Likewise.
10896         (vsx_eq<mode>_p): Likewise.
10897         (vsx_gt<mode>_p): Likewise.
10898         (vsx_ge<mode>_p): Likewise.
10899         (vsx_xxsel<mode>): Likewise.
10900         (vsx_xxsel<mode>_uns): Likewise.
10901         (vsx_copysign<mode>3): Likewise.
10902         (vsx_float<VSi><mode>2): Likewise.
10903         (vsx_floatuns<VSi><mode>2): Likewise.
10904         (vsx_fix_trunc<mode><VSi>2): Likewise.
10905         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10906         (vsx_x<VSv>r<VSs>i): Likewise.
10907         (vsx_x<VSv>r<VSs>ic): Likewise.
10908         (vsx_btrunc<mode>2): Likewise.
10909         (vsx_b2trunc<mode>2): Likewise.
10910         (vsx_floor<mode>2): Likewise.
10911         (vsx_ceil<mode>2): Likewise.
10912         (vsx_<VS_spdp_insn>): Likewise.
10913         (vsx_xscvspdp): Likewise.
10914         (vsx_xvcvspuxds): Likewise.
10915         (vsx_float_fix_<mode>2): Likewise.
10916         (vsx_set_<mode>): Likewise.
10917         (vsx_extract_<mode>_internal1): Likewise.
10918         (vsx_extract_<mode>_internal2): Likewise.
10919         (vsx_extract_<mode>_load): Likewise.
10920         (vsx_extract_<mode>_store): Likewise.
10921         (vsx_splat_<mode>): Likewise.
10922         (vsx_xxspltw_<mode>): Likewise.
10923         (vsx_xxspltw_<mode>_direct): Likewise.
10924         (vsx_xxmrghw_<mode>): Likewise.
10925         (vsx_xxmrglw_<mode>): Likewise.
10926         (vsx_xxsldwi_<mode>): Likewise.
10927         (vsx_xscvdpspn): Tighten constraints to only use register classes
10928         the types use.
10929         (vsx_xscvspdpn): Likewise.
10930         (vsx_xscvdpspn_scalar): Likewise.
10931
10932         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10933         wj, and wk constraints.
10934         (GPR_REG_CLASS_P): New helper macro for register classes targeting
10935         general purpose registers.
10936
10937         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10938         direct moves.
10939         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10940         DImode instead of wm.  Use wk constraint for direct move of DFmode
10941         instead of wm.
10942         (extendsidi2_lfiwax): Likewise.
10943         (lfiwax): Likewise.
10944         (lfiwzx): Likewise.
10945         (movdi_internal64): Likewise.
10946
10947         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10948         wk constraints. Make the wy constraint documentation match them
10949         implementation.
10950
10951 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
10952
10953         Replacement of isl_int by isl_val
10954         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10955         (compute_bounds_for_param): use isl_val instead of isl_int
10956         (compute_bounds_for_loop): likewise
10957         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10958         (build_linearized_memory_access): use isl_val instead of isl_int
10959         (pdr_stride_in_loop): likewise
10960         * graphite-optimize-isl.c:
10961         (getPrevectorMap): use isl_val instead of isl_int
10962         * graphite-poly.c:
10963         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10964         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10965         (extern the_isl_ctx): declare
10966         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10967         (extract_affine_gmp): likewise
10968         (wrap): likewise
10969         (build_loop_iteration_domains): likewise
10970         (add_param_constraints): likewise
10971
10972 2014-08-11  Richard Biener  <rguenther@suse.de>
10973
10974         PR tree-optimization/62075
10975         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10976         handle uses in patterns.
10977
10978 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10979             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10980             Anna Tikhonova  <anna.tikhonova@intel.com>
10981             Ilya Tocar  <ilya.tocar@intel.com>
10982             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10983             Ilya Verbin  <ilya.verbin@intel.com>
10984             Kirill Yukhin  <kirill.yukhin@intel.com>
10985             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10986
10987         * common/config/i386/i386-common.c
10988         (OPTION_MASK_ISA_AVX512VL_SET): Define.
10989         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10990         (ix86_handle_option): Handle OPT_mavx512vl.
10991         * config/i386/cpuid.h (bit_AVX512VL): Define.
10992         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10993         set -mavx512vl accordingly.
10994         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10995         OPTION_MASK_ISA_AVX512VL.
10996         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10997         (ix86_option_override_internal): Define PTA_AVX512VL, handle
10998         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10999         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11000         * config/i386/i386.h (TARGET_AVX512VL): Define.
11001         (TARGET_AVX512VL_P(x)): Ditto.
11002         * config/i386/i386.opt: Add mavx512vl.
11003
11004 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
11005
11006         PR tree-optimization/62073
11007         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11008         a basic block.
11009
11010 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11011             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11012             Anna Tikhonova  <anna.tikhonova@intel.com>
11013             Ilya Tocar  <ilya.tocar@intel.com>
11014             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11015             Ilya Verbin  <ilya.verbin@intel.com>
11016             Kirill Yukhin  <kirill.yukhin@intel.com>
11017             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11018
11019         * common/config/i386/i386-common.c
11020         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11021         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11022         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11023         (ix86_handle_option): Handle OPT_mavx512bw.
11024         * config/i386/cpuid.h (bit_AVX512BW): Define.
11025         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11026         set -mavx512bw accordingly.
11027         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11028         OPTION_MASK_ISA_AVX512BW.
11029         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11030         (ix86_option_override_internal): Define PTA_AVX512BW, handle
11031         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11032         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11033         * config/i386/i386.h (TARGET_AVX512BW): Define.
11034         (TARGET_AVX512BW_P(x)): Ditto.
11035         * config/i386/i386.opt: Add mavx512bw.
11036
11037 2014-08-11  Richard Biener  <rguenther@suse.de>
11038
11039         PR tree-optimization/62070
11040         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11041         Remove SSA checking.
11042
11043 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11044
11045         * asan.c (asan_check_flags): New enum.
11046         (build_check_stmt_with_calls): Removed function.
11047         (build_check_stmt): Split inlining logic to
11048         asan_expand_check_ifn.
11049         (instrument_derefs): Rename parameter.
11050         (instrument_mem_region_access): Rename parameter.
11051         (instrument_strlen_call): Likewise.
11052         (asan_expand_check_ifn): New function.
11053         (asan_instrument): Remove old code.
11054         (pass_sanopt::execute): Change handling of
11055         asan-instrumentation-with-call-threshold.
11056         (asan_clear_shadow): Fix formatting.
11057         (asan_function_start): Likewise.
11058         (asan_emit_stack_protection): Likewise.
11059         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11060         Update description.
11061         * internal-fn.c (expand_ASAN_CHECK): New function.
11062         * internal-fn.def (ASAN_CHECK): New internal function.
11063         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11064         Update description.
11065         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11066         * tree.c: Small comment fix.
11067
11068 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
11069
11070         * gimple.c (gimple_call_fnspec): Support internal functions.
11071         (gimple_call_return_flags): Use const.
11072         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11073         * internal-fn.def: Add fnspec information.
11074         * internal-fn.h (internal_fn_fnspec): New function.
11075         (init_internal_fns): Declare new function.
11076         * internal-fn.c (internal_fn_fnspec_array): New global variable.
11077         (init_internal_fns): New function.
11078         * tree-core.h: Update macro call.
11079         * tree.c (build_common_builtin_nodes): Initialize internal fns.
11080
11081 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
11082
11083         * lto-streamer.h (struct output_block::symbol): Change from
11084         struct symtab_node to plain symtab_node.
11085         (referenced_from_this_partition_p): Change first parameter
11086         from struct symtab_node to plain symtab_node.
11087
11088 2014-08-10  Marek Polacek  <polacek@redhat.com>
11089
11090         PR c/51849
11091         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11092
11093 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
11094
11095         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11096         DECL correctly; do not give up on types in static storage.
11097
11098 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
11099
11100         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11101
11102 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
11103
11104         * graphite-isl-ast-to-gimple.c:
11105         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11106
11107         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11108
11109 2014-08-08  Guozhi Wei  <carrot@google.com>
11110
11111         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11112
11113 2014-08-08  Cary Coutant  <ccoutant@google.com>
11114
11115         * dwarf2out.c (get_skeleton_type_unit): Remove.
11116         (output_skeleton_debug_sections): Remove skeleton type units.
11117         (output_comdat_type_unit): Likewise.
11118         (dwarf2out_finish): Likewise.
11119
11120 2014-08-07  Yi Yang  <ahyangyi@google.com>
11121
11122         * predict.c (expr_expected_value_1): Remove the redundant assignment.
11123
11124 2014-08-08  Richard Biener  <rguenther@suse.de>
11125
11126         * lto-streamer.h (struct lto_input_block): Make it a class
11127         with a constructor.
11128         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11129         (struct lto_function_header, struct lto_simple_header,
11130         struct lto_simple_header_with_strings,
11131         struct lto_decl_header, struct lto_function_header): Make
11132         a simple inheritance hieararchy.  Remove unused fields.
11133         (struct lto_asm_header): Remove.
11134         * lto-streamer-out.c (produce_asm): Adjust.
11135         (lto_output_toplevel_asms): Likewise.
11136         (produce_asm_for_decls): Likewise.
11137         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11138         * data-streamer-in.c (string_for_index): Likewise.
11139         * ipa-inline-analysis.c (inline_read_section): Likewise.
11140         * ipa-prop.c (ipa_prop_read_section): Likewise.
11141         (read_replacements_section): Likewise.
11142         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11143         * lto-section-in.c (lto_create_simple_input_block): Likewise.
11144         (lto_destroy_simple_input_block): Likewise.
11145         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11146         (lto_input_toplevel_asms): Likewise.
11147
11148 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11149             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11150             Anna Tikhonova  <anna.tikhonova@intel.com>
11151             Ilya Tocar  <ilya.tocar@intel.com>
11152             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11153             Ilya Verbin  <ilya.verbin@intel.com>
11154             Kirill Yukhin  <kirill.yukhin@intel.com>
11155             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11156
11157         * common/config/i386/i386-common.c
11158         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11159         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11160         (ix86_handle_option): Handle OPT_mavx512dq.
11161         * config/i386/cpuid.h (bit_AVX512DQ): Define.
11162         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11163         set -mavx512dq accordingly.
11164         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11165         OPTION_MASK_ISA_AVX512DQ.
11166         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11167         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11168         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11169         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11170         * config/i386/i386.h (TARGET_AVX512DQ): Define.
11171         (TARGET_AVX512DQ_P(x)): Ditto.
11172         * config/i386/i386.opt: Add mavx512dq.
11173
11174 2014-08-08  Richard Biener  <rguenther@suse.de>
11175
11176         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11177         target_percent, target_percent_s): Export.
11178         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11179         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11180         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11181         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11182         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11183         Move to gimple-fold.c.
11184         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11185         strcat and strcpy.
11186         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11187         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11188         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11189         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11190         (rewrite_call_expr_array): Remove.
11191         (fold_builtin_sprintf_chk): Likewise.
11192         (fold_builtin_snprintf_chk): Likewise.
11193         (fold_builtin_varargs): Remove handling of sprintf_chk,
11194         vsprintf_chk, snprintf_chk and vsnprintf_chk.
11195         (gimple_fold_builtin_sprintf_chk): Remove.
11196         (gimple_fold_builtin_snprintf_chk): Likewise.
11197         (gimple_fold_builtin_varargs): Likewise.
11198         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11199         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11200         * gimple.c (gimple_seq_add_seq_without_update): New function.
11201         * gimple.h (gimple_seq_add_seq_without_update): Declare.
11202         * gimple-fold.c: Include output.h.
11203         (gsi_replace_with_seq_vops): New function, split out from ...
11204         (gimplify_and_update_call_from_tree): ... here.
11205         (replace_call_with_value): New function.
11206         (replace_call_with_call_and_fold): Likewise.
11207         (var_decl_component_p): Moved from builtins.c.
11208         (gimple_fold_builtin_memory_op): Moved from builtins.c
11209         fold_builtin_memory_op and rewritten to GIMPLE.
11210         (gimple_fold_builtin_memset): Likewise.
11211         (gimple_fold_builtin_strcpy): Likewise.
11212         (gimple_fold_builtin_strncpy): Likewise.
11213         (gimple_fold_builtin_strcat): Likewise.
11214         (gimple_fold_builtin_fputs): Likewise.
11215         (gimple_fold_builtin_memory_chk): Likewise.
11216         (gimple_fold_builtin_stxcpy_chk): Likewise.
11217         (gimple_fold_builtin_stxncpy_chk): Likewise.
11218         (gimple_fold_builtin_snprintf_chk): Likewise.
11219         (gimple_fold_builtin_sprintf_chk): Likewise.
11220         (gimple_fold_builtin_strlen): New function.
11221         (gimple_fold_builtin_with_strlen): New function split out from
11222         gimple_fold_builtin.
11223         (gimple_fold_builtin): Change signature and handle
11224         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11225         here.  Call gimple_fold_builtin_with_strlen.
11226         (gimple_fold_call): Adjust.
11227
11228 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11229
11230         * calls.c (precompute_arguments): Check
11231          promoted_for_signed_and_unsigned_p and set the promoted mode.
11232         (promoted_for_signed_and_unsigned_p): New function.
11233         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11234         and set the promoted mode.
11235         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11236         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11237         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11238
11239
11240 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
11241
11242         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11243         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11244         (expand_call): Likewise.
11245         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11246         to get promoted mode.
11247         * combine.c (record_promoted_value): Skip > 0 comparison with
11248         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11249         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11250         of SUBREG_PROMOTED_UNSIGNED_P.
11251         (convert_modes): Likewise.
11252         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11253         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11254         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11255         SUBREG_PROMOTED_UNSIGNED_SET.
11256         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11257         instead of SUBREG_PROMOTED_UNSIGNED_SET.
11258         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11259         SUBREG_PROMOTED_SET.
11260         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11261         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11262         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11263         of SUBREG_PROMOTED_UNSIGNED_P.
11264         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11265         (SUBREG_PROMOTED_SET): New define.
11266         (SUBREG_PROMOTED_GET): Likewise.
11267         (SUBREG_PROMOTED_SIGN): Likewise.
11268         (SUBREG_PROMOTED_SIGNED_P): Likewise.
11269         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11270         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11271         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11272         instead of SUBREG_PROMOTED_UNSIGNED_GET.
11273         (nonzero_bits1): Skip > 0 comparison with the results as
11274         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11275         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11276         of !SUBREG_PROMOTED_UNSIGNED_P.
11277         * simplify-rtx.c (simplify_unary_operation_1): Use new
11278         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11279         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11280         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11281         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11282
11283 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
11284
11285         * ipa-devirt.c: Include gimple-pretty-print.h
11286         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11287         further tests.
11288         (decl_maybe_in_construction_p): Fix conditional on cdtor check
11289         (get_polymorphic_call_info): Fix return value
11290         (type_change_info): New sturcture based on ipa-prop
11291         variant.
11292         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11293         based on ipa-prop variant.
11294         (extr_type_from_vtbl_ptr_store): New function
11295         based on ipa-prop variant.
11296         (record_known_type): New function.
11297         (check_stmt_for_type_change): New function.
11298         (get_dynamic_type): New function.
11299         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11300         * tree-ssa-pre.c: ipa-utils.h
11301         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11302         machinery; sanity check with ipa-prop devirtualization.
11303         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11304         polymorphic flag.
11305
11306 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
11307
11308         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11309         * alias.c, cfgexpand.c, cgraphbuild.c,
11310         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11311         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11312         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11313         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11314         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11315         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11316         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11317         dse.c, except.c, gengtype.c, gimple-expr.c,
11318         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11319         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11320         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11321         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11322         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11323         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11324         pointer-set.h.
11325         * pointer-set.c: Remove file.
11326         * pointer-set.h: Remove file.
11327
11328 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11329
11330         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11331         * config/arm/types.md (f_sels, f_seld): Delete.
11332
11333 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11334
11335         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11336         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11337         (aarch64_movdi_<mode>high): Likewise.
11338         (aarch64_mov<mode>high_di): Likewise.
11339         (aarch64_movdi_<mode>low): Likewise.
11340         (aarch64_mov<mode>low_di): Likewise.
11341         (aarch64_movtilow_tilow): Likewise.
11342         Add comment explaining usage of fp,simd attributes and of
11343         TARGET_FLOAT and TARGET_SIMD.
11344
11345 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
11346             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11347
11348         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11349         Use MOVN when one of the half-words is 0xffff.
11350
11351 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
11352
11353         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11354
11355 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11356
11357         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
11358         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11359         (rfs_str): String corresponding to RFS_* constants.
11360         (rank_for_schedule_stats_t): New typedef.
11361         (rank_for_schedule_stats): New static variable.
11362         (rfs_result): New static function.
11363         (rank_for_schedule): Track statistics for deciding heuristics.
11364         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11365         static functions.
11366         (ready_sort): Use them for debug printouts.
11367         (schedule_block): Init statistics state.  Print statistics on
11368         rank_for_schedule decisions.
11369
11370 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11371
11372         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11373
11374 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
11375
11376         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11377         constraint.
11378
11379 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
11380
11381         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11382         function to not conflict.
11383         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11384         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11385         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11386         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11387         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11388         of pointer_map.
11389
11390 2014-08-07  Marek Polacek  <polacek@redhat.com>
11391
11392         * fold-const.c (fold_binary_loc): Add folding of
11393         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11394
11395 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
11396
11397         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11398         instead of type size.
11399         (ASM_FINISH_DECLARE_OBJECT): Likewise.
11400
11401 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
11402
11403         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11404         (*thumb1_movqi_insn): Likewise.
11405         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11406
11407 2014-08-07  Tom de Vries  <tom@codesourcery.com>
11408
11409         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11410         (glibc_2_11_or_earlier): Remove effective-target keywords.
11411
11412 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11413
11414         * config/arm/arm.c (bdesc_2arg): Fix typo.
11415         (arm_atomic_assign_expand_fenv): Remove The default implementation.
11416
11417 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11418
11419         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11420
11421 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
11422
11423         PR debug/61923
11424         * haifa-sched.c (advance_one_cycle): Fix dump.
11425         (schedule_block): Don't advance cycle if we are already at the
11426         beginning of the cycle.
11427
11428 2014-08-06  Martin Jambor  <mjambor@suse.cz>
11429
11430         PR ipa/61393
11431         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11432
11433 2014-08-06  Richard Biener  <rguenther@suse.de>
11434
11435         PR lto/62034
11436         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11437         SCCs here.
11438         (lto_input_tree): Pop SCCs here.
11439
11440 2014-08-06  Richard Biener  <rguenther@suse.de>
11441
11442         PR tree-optimization/61320
11443         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11444         handle misaligned loads.
11445
11446 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
11447
11448         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11449         (aarch64_expand_vec_perm_const): Check for dup before zip.
11450
11451 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11452
11453         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11454         CONST_INT_P instead of GET_CODE and compare.
11455         (aarch64_select_cc_mode): Likewise.
11456         (aarch64_print_operand): Likewise.
11457         (aarch64_rtx_costs): Likewise.
11458         (aarch64_simd_valid_immediate): Likewise.
11459         (aarch64_simd_check_vect_par_cnst_half): Likewise.
11460         (aarch64_simd_emit_pair_result_insn): Likewise.
11461
11462 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
11463
11464         * gdbhooks.py (find_gcc_source_dir): New helper function.
11465         (class PassNames): New class, locating and parsing passes.def.
11466         (class BreakOnPass): New command "break-on-pass".
11467
11468 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
11469
11470         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11471         getting olde.
11472
11473 2014-08-05  Richard Biener  <rguenther@suse.de>
11474
11475         PR rtl-optimization/61672
11476         * emit-rtl.h (mem_attrs_eq_p): Declare.
11477         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
11478         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11479         * cfgcleanup.c (merge_memattrs): Likewise.
11480         Include emit-rtl.h.
11481
11482 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11483
11484         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11485         rather than singleton vectors.
11486         (vqdmlsls_lane_s32): Likewise.
11487
11488 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11489
11490         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11491         Use VSDQ_HSI mode iterator.
11492         (aarch64_sqrdmulh_laneq<mode>): Likewise.
11493         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11494         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11495         Use BUILTIN_VDQHS macro.
11496         (sqrdmulh_laneq): Likewise.
11497         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11498         (vqdmlals_laneq_s32): Likewise.
11499         (vqdmlslh_laneq_s16): Likewise.
11500         (vqdmlsls_laneq_s32): Likewise.
11501         (vqdmulhh_laneq_s16): Likewise.
11502         (vqdmulhs_laneq_s32): Likewise.
11503         (vqrdmulhh_laneq_s16): Likewise.
11504         (vqrdmulhs_laneq_s32): Likewise.
11505
11506 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11507
11508         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11509         (vmuld_laneq_f64): Likewise.
11510         (vmuls_laneq_f32): Likewise.
11511         (vmul_n_f64): Likewise.
11512         (vmuld_lane_f64): Reimplement in C.
11513         (vmuls_lane_f32): Likewise.
11514
11515 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11516
11517         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11518         to reservation.
11519         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11520
11521 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11522
11523         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11524         (rbitsi2): Likewise.
11525         (*arm_rev): Set predicable and predicable_short_it attributes.
11526
11527 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11528
11529         * convert.c (convert_to_integer): Guard transformation to lrint by
11530         -fno-math-errno.
11531
11532 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
11533
11534         * config/aarch64/aarch64-builtins.c
11535         (aarch64_simd_builtin_type_mode): Delete.
11536         (v8qi_UP): Remap to V8QImode.
11537         (v4hi_UP): Remap to V4HImode.
11538         (v2si_UP): Remap to V2SImode.
11539         (v2sf_UP): Remap to V2SFmode.
11540         (v1df_UP): Remap to V1DFmode.
11541         (di_UP): Remap to DImode.
11542         (df_UP): Remap to DFmode.
11543         (v16qi_UP):V16QImode.
11544         (v8hi_UP): Remap to V8HImode.
11545         (v4si_UP): Remap to V4SImode.
11546         (v4sf_UP): Remap to V4SFmode.
11547         (v2di_UP): Remap to V2DImode.
11548         (v2df_UP): Remap to V2DFmode.
11549         (ti_UP): Remap to TImode.
11550         (ei_UP): Remap to EImode.
11551         (oi_UP): Remap to OImode.
11552         (ci_UP): Map to CImode.
11553         (xi_UP): Remap to XImode.
11554         (si_UP): Remap to SImode.
11555         (sf_UP): Remap to SFmode.
11556         (hi_UP): Remap to HImode.
11557         (qi_UP): Remap to QImode.
11558         (aarch64_simd_builtin_datum): Make mode a machine_mode.
11559         (VAR1): Build builtin name.
11560         (aarch64_init_simd_builtins): Remove dead code.
11561
11562 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
11563
11564         * graphite-isl-ast-to-gimple.c:
11565         (set_options): New function.
11566         (scop_to_isl_ast): Add calling of set_options.
11567
11568 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
11569
11570         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11571         (analyze_iv_to_split_insn): Don't initialize them.
11572         (get_ivts_expr): Removed.
11573         (allocate_basic_variable, insert_base_initialization): Use
11574         SET_SRC instead of *get_ivts_expr.
11575         (split_iv): Use &SET_SRC instead of get_ivts_expr.
11576
11577 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
11578
11579         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11580         (translate_isl_ast_for_loop): Add checking of the
11581         flag_loop_parallelize_all.
11582         (ast_build_before_for): New function.
11583         (scop_to_isl_ast): Add checking of the
11584         flag_loop_parallelize_all.
11585         * graphite-dependences.c: Move the defenition of the
11586         scop_get_dependences from graphite-optimize-isl.c to this file.
11587         (apply_schedule_on_deps): Add checking of the ux's emptiness.
11588         (carries_deps): Add checking of the x's value.
11589         * graphite-optimize-isl.c: Move the defenition of the
11590         scop_get_dependences to graphite-dependences.c.
11591         * graphite-poly.h: Add declarations of scop_get_dependences
11592         and carries_deps.
11593
11594 2014-08-04  Rohit  <rohitarulraj@freescale.com>
11595
11596         PR target/60102
11597         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11598         names.
11599         (alt_reg_names): Likewise.
11600         (rs6000_dwarf_register_span): For SPE high registers, replace
11601         dwarf register numbers with GCC hard register numbers.
11602         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11603         (rs6000_dbx_register_number): For SPE high registers, return dwarf
11604         register number for the corresponding GCC hard register number.
11605         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11606         newly added GCC hard register numbers for SPE high registers.
11607         (DWARF_FRAME_REGISTERS):  Likewise.
11608         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11609         (DWARF_FRAME_REGNUM): Likewise.
11610         (FIXED_REGISTERS): Likewise.
11611         (CALL_USED_REGISTERS): Likewise.
11612         (CALL_REALLY_USED_REGISTERS): Likewise.
11613         (REG_ALLOC_ORDER): Likewise.
11614         (enum reg_class): Likewise.
11615         (REG_CLASS_NAMES): Likewise.
11616         (REG_CLASS_CONTENTS): Likewise.
11617         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11618
11619 2014-08-04  Richard Biener  <rguenther@suse.de>
11620
11621         * gimple-fold.h (gimple_fold_builtin): Remove.
11622         * gimple-fold.c (gimple_fold_builtin): Make static.
11623         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11624         fold_stmt, not gimple_fold_builtin.
11625
11626 2014-08-04  Martin Liska <mliska@suse.cz>
11627
11628         * cgraph.h (csi_end_p): Removed.
11629         (csi_next): Likewise.
11630         (csi_node): Likewise.
11631         (csi_start): Likewise.
11632         (cgraph_node_in_set_p): Likewise.
11633         (cgraph_node_set_size): Likewise.
11634         (vsi_end_p): Likewise.
11635         (vsi_next): Likewise.
11636         (vsi_node): Likewise.
11637         (vsi_start): Likewise.
11638         (varpool_node_set_size): Likewise.
11639         (cgraph_node_set_nonempty_p): Likewise.
11640         (varpool_node_set_nonempty_p): Likewise.
11641         * cgraphunit.c (cgraph_process_new_functions): vec replaces
11642         cgraph_node_set.
11643         * ipa-inline-transform.c: Likewise.
11644         * ipa-utils.c (cgraph_node_set_new): Removed.
11645         (cgraph_node_set_add): Likewise.
11646         (cgraph_node_set_remove): Likewise.
11647         (cgraph_node_set_find): Likewise.
11648         (dump_cgraph_node_set): Likewise.
11649         (debug_cgraph_node_set): Likewise.
11650         (free_cgraph_node_set): Likewise.
11651         (varpool_node_set_new): Likewise.
11652         (varpool_node_set_add): Likewise.
11653         (varpool_node_set_remove): Likewise.
11654         (varpool_node_set_find): Likewise.
11655         (dump_varpool_node_set): Likewise.
11656         (free_varpool_node_set): Likewise.
11657         (debug_varpool_node_set): Likewise.
11658         * tree-emutls.c (struct tls_var_data):
11659         (emutls_index): Removed.
11660         (emutls_decl): Likewise.
11661         (gen_emutls_addr): Function implementation uses newly added
11662         hash_map<varpool_node *, tls_var_data>.
11663         (clear_access_vars): Likewise.
11664         (create_emultls_var): Likewise.
11665         (ipa_lower_emutls): Likewise.
11666         (reset_access): New function.
11667
11668 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
11669
11670         * config/i386/i386.c (ix86_option_override_internal): Add
11671         PTA_RDRND and PTA_MOVBE for bdver4.
11672
11673 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11674             James Greenhalgh  <james.greenhalgh@arm.com>
11675
11676         * doc/md.texi (clrsb): Document.
11677         (clz): Change reference to x into operand 1.
11678         (ctz): Likewise.
11679         (popcount): Likewise.
11680
11681 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11682
11683         PR target/61713
11684         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11685         move to subtarget in serial version if result is ignored.
11686
11687 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11688             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11689
11690         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11691         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
11692         (sched_analyze_insn): Update use of try_group_insn to
11693         sched_macro_fuse_insns.
11694         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11695         arguments that are not conditional jumps.
11696
11697 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
11698
11699         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11700         family information. Handle BTVER2 cpu with cpuid family value.
11701
11702 2014-08-04  Tom de Vries  <tom@codesourcery.com>
11703
11704         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11705         (glibc_2_11_or_earlier): Document effective-target keywords.
11706
11707 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
11708
11709         * ipa-devirt.c (odr_type_warn_count): Add type.
11710         (possible_polymorphic_call_targets): Set it.
11711         (ipa_devirt): Use it.
11712
11713 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
11714
11715         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11716         Document.
11717         * ipa-devirt.c: Include hash-map.h
11718         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11719         (clear_speculation): Break out of ...
11720         (get_class_context): ... here; speed up handling obviously useless
11721         speculations.
11722         (odr_type_warn_count, decl_warn_count): New structures.
11723         (final_warning_record): New structure.
11724         (final_warning_records): New static variable.
11725         (possible_polymorphic_call_targets): Cleanup handling of
11726         speculative info; do not build speculation when user do not care;
11727         record info about warnings when asked for.
11728         (add_decl_warning): New function.
11729         (type_warning_cmp): New function.
11730         (decl_warning_cmp): New function.
11731         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11732         (gate): Enable pass when warnings are requested.
11733         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11734         options.
11735
11736 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
11737
11738         * hash-map.h (default_hashmap_traits::mark_key_deleted):
11739         Fix cast.
11740         (hash_map::remove): New method.
11741         (hash_map::traverse): New method.
11742         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11743         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11744         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11745         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11746         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11747         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11748         pointer_map.
11749
11750 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
11751
11752         * hash-set.h: new File.
11753         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11754         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11755         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11756         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11757         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11758         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11759         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11760         varpool.c: Use hash_set instead of pointer_set.
11761
11762 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
11763
11764         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11765
11766 2014-08-01  Jiong Wang <jiong.wang@arm.com>
11767
11768         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11769         for frame access when strict_p is false.
11770
11771 2014-08-01  Renlin Li <renlin.li@arm.com>
11772 2014-08-01  Jiong Wang <jiong.wang@arm.com>
11773
11774         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11775         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11776         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11777         Declaration.
11778         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11779         predicate.
11780         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11781         aarch64_mem_pair_offset.
11782
11783 2014-08-01  Jiong Wang <jiong.wang@arm.com>
11784
11785         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11786         offset.
11787         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11788         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11789
11790 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
11791
11792         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11793
11794 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
11795
11796         PR regression/61510
11797         * cgraphunit.c (analyze_functions): Use get_create rather than get
11798         for decls which are clones of abstract functions.
11799
11800 2014-08-01  Martin Liska  <mliska@suse.cz>
11801
11802         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11803         * ipa-prop.h (count_formal_params): Global function created from static.
11804         * ipa-prop.c (count_formal_params): Likewise.
11805         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11806         profiles for semantically equivalent functions.
11807         * passes.c (do_per_function): If we load body of a function
11808         during WPA, this condition should behave same.
11809         * varpool.c (ctor_for_folding): More tolerant assert for variable
11810         aliases created during WPA.
11811
11812 2014-08-01  Martin Liska  <mliska@suse.cz>
11813
11814         * doc/invoke.texi (Options That Control Optimization): Documentation
11815         for -foptimize-strlen introduced. Optimization levels default options
11816         fixed.
11817
11818 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
11819
11820         * opts.c (common_handle_option): Handle -fsanitize=alignment.
11821         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11822         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11823         type to bool.
11824         * stor-layout.h (min_align_of_type): New prototype.
11825         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11826         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
11827         check.
11828         * ubsan.c: Include builtins.h.
11829         (ubsan_expand_bounds_ifn): Change return type to bool,
11830         always return true.
11831         (ubsan_expand_null_ifn): Change return type to bool, change
11832         argument to gimple_stmt_iterator *.  Handle both null and alignment
11833         sanitization, take type from ckind argument's type rather than
11834         first argument.
11835         (instrument_member_call): Removed.
11836         (instrument_mem_ref): Remove t argument, add mem and base arguments.
11837         Handle both null and alignment sanitization, don't say whole
11838         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
11839         call instead of 2 argument.
11840         (instrument_null): Adjust instrument_mem_ref caller.  Don't
11841         instrument calls here.
11842         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11843         like SANITIZE_NULL.
11844         * stor-layout.c (min_align_of_type): New function.
11845         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11846         Or it into SANITIZE_UNDEFINED.
11847         * doc/invoke.texi (-fsanitize=alignment): Document.
11848
11849 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11850
11851         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11852
11853 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11854
11855         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11856         inchash.
11857         (vn_reference_compute_hash): Dito.
11858         (vn_nary_op_compute_hash): Dito.
11859         (vn_phi_compute_hash): Dito.
11860         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11861
11862 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11863
11864         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11865         Rename to inchash:add_expr_commutative. Convert to inchash.
11866         (iterative_hash_hashable_expr): Rename to
11867         inchash:add_hashable_expr. Convert to inchash.
11868         (avail_expr_hash): Dito.
11869
11870 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11871
11872         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11873         Convert to inchash.
11874
11875 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11876
11877         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11878
11879 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11880
11881         * Makefile.in (OBJS): Add rtlhash.o
11882         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11883         (loc_checksum): Dito.
11884         (loc_checksum_ordered): Dito.
11885         (hash_loc_operands): Dito.
11886         (hash_locs): Dito.
11887         (hash_loc_list): Dito.
11888         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11889         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11890         * rtlhash.c: New file.
11891         * rtlhash.h: New file.
11892
11893 2014-07-31  Andi Kleen  <ak@linux.intel.com>
11894
11895         * inchash.h (inchash): Change inchash class to namespace.
11896         (class hash): ... Rename from inchash.
11897         (add_object): Move from macro to class template.
11898         * lto-streamer-out.c (hash_tree): Change inchash
11899         to inchash::hash.
11900         * tree.c (build_type_attribute_qual_variant): Dito.
11901         (type_hash_list): Dito.
11902         (attribute_hash_list): Dito.
11903         (iterative_hstate_expr): Rename to inchash::add_expr
11904         (build_range_type_1): Change inchash to inchash::hash
11905         and use hash::add_expr.
11906         (build_array_type_1): Dito.
11907         (build_function_type): Dito
11908         (build_method_type_directly): Dito.
11909         (build_offset_type): Dito.
11910         (build_complex_type): Dito.
11911         (make_vector_type): Dito.
11912         * tree.h (iterative_hash_expr): Dito.
11913
11914 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
11915
11916         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11917
11918 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
11919
11920         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11921         correct alphabetical position.
11922         (vpaddd_f64): Rewrite using builtins.
11923         (vpaddd_s64): Move to correct alphabetical position.
11924         (vpaddd_u64): New.
11925
11926 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
11927
11928         PR target/61844
11929         * config/sh/sh.c (sh_legitimate_address_p,
11930         sh_legitimize_reload_address): Handle reg+reg address modes when
11931         ALLOW_INDEXED_ADDRESS is false.
11932         * config/sh/predicates.md (general_movsrc_operand,
11933         general_movdst_operand): Likewise.
11934
11935 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
11936
11937         * config/aarch64/aarch64-builtins.c
11938         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11939         BYTES_BIG_ENDIAN.
11940
11941 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
11942
11943         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11944         the generated mask based on BYTES_BIG_ENDIAN.
11945         (aarch64_simd_check_vect_par_cnst_half): New.
11946         * config/aarch64/aarch64-protos.h
11947         (aarch64_simd_check_vect_par_cnst_half): New.
11948         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11949         the check out to aarch64_simd_check_vect_par_cnst_half.
11950         (vect_par_cnst_lo_half): Likewise.
11951         * config/aarch64/aarch64-simd.md
11952         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11953         (move_hi_quad_<mode>): Always generate a low mask.
11954
11955 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11956
11957         * doc/invoke.texi (AVR Options): Add documentation about
11958         __AVR_DEVICE_NAME__ built-in macro.
11959
11960 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
11961
11962         PR target/61948
11963         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11964         constraints are satisfied.
11965         (<shift>di3_neon): Likewise.
11966
11967 2014-07-31  Richard Biener  <rguenther@suse.de>
11968
11969         PR tree-optimization/61964
11970         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11971         by structural equality.
11972
11973 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
11974
11975         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11976         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11977         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11978         New enums.
11979         * gcc.c (sanitize_spec_function): Support new option.
11980         (SANITIZER_SPEC): Remove now redundant check.
11981         * opts.c (common_handle_option): Support new option.
11982         (finish_options): Check for incompatibilities.
11983         * toplev.c (process_options): Split userspace-specific checks.
11984
11985 2014-07-31  Richard Biener  <rguenther@suse.de>
11986
11987         * lto-streamer.h (struct output_block): Remove global.
11988         (struct data_in): Remove labels, num_named_labels and
11989         num_unnamed_labels.
11990         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11991         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11992
11993 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
11994
11995         PR c++/60517
11996         * common.opt (-Wreturn-local-addr): Moved from c.opt.
11997         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11998         (isolate_path): New argument to avoid inserting a trap.
11999         (find_implicit_erroneous_behaviour): Handle returning the address
12000         of a local variable.
12001         (find_explicit_erroneous_behaviour): Likewise.
12002
12003 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
12004
12005         PR lto/61868
12006         * toplev.c (init_random_seed): Move piece of code never called to
12007         set_random_seed.
12008         (set_random_seed): see above.
12009
12010 2014-07-31  Tom de Vries  <tom@codesourcery.com>
12011
12012         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12013
12014 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
12015
12016         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12017         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12018
12019 2014-07-31  Richard Biener  <rguenther@suse.de>
12020
12021         * data-streamer.h (streamer_write_data_stream): Declare here,
12022         renamed from ...
12023         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
12024         * lto-cgraph.c (lto_output_node): Adjust.
12025         (lto_output_varpool_node): Likewise.
12026         * data-streamer-out.c (streamer_string_index): Likewise.
12027         (streamer_write_data_stream, lto_append_block): Move from ...
12028         * lto-section-out.c (lto_output_data_stream,
12029         lto_append_block): ... here.
12030
12031 2014-07-30  Mike Stump  <mikestump@comcast.net>
12032
12033         * configure.ac: Also check for popen.
12034         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12035         * configure: Regenerate.
12036         * config.in:  Regenerate.
12037
12038 2014-07-30  Martin Jambor  <mjambor@suse.cz>
12039
12040         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12041         parameter to gimple.
12042
12043 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12044
12045         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12046         address as second parameter to __tpf_eh_return routine.
12047
12048 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
12049
12050         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12051         Thumb2.
12052
12053 2014-07-30  Tom Tromey  <tromey@redhat.com>
12054
12055         PR c/59855
12056         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12057         * doc/extend.texi (Type Attributes): Document designated_init
12058         attribute.
12059
12060 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
12061
12062         * graphite-isl-ast-to-gimple.c:
12063         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12064         (gcc_expression_from_isl_expression): Pass type to
12065         gcc_expression_from_isl_ast_expr_id.
12066
12067 2014-07-30  Richard Biener  <rguenther@suse.de>
12068
12069         * lto-streamer.h (lto_write_data): New function.
12070         * langhooks.c (lhd_append_data): Do not free block.
12071         * lto-section-out.c (lto_write_data): New function writing
12072         raw data to the current section.
12073         (lto_write_stream): Adjust for langhook semantic change.
12074         (lto_destroy_simple_output_block): Write header directly.
12075         * lto-opts.c (lto_write_options): Write options directly.
12076         * lto-streamer-out.c (produce_asm): Write heaeder directly.
12077         (lto_output_toplevel_asms): Likewise.
12078         (copy_function_or_variable): Copy data directly.
12079         (write_global_references): Output index table directly.
12080         (lto_output_decl_state_refs): Likewise.
12081         (write_symbol): Write data directly.
12082         (produce_symtab): Adjust.
12083         (produce_asm_for_decls): Output header and refs directly.
12084
12085 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12086
12087         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12088         to speculative_targets
12089         (get_class_context): Fix handling of contextes without outer type;
12090         avoid matching non-polymorphic types in LTO.
12091         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12092         parameter to speculative_targetsp; handle speculation.
12093         (dump_possible_polymorphic_call_targets): Update dumping.
12094
12095 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
12096
12097         * common.opt (Wodr): Enable by default.
12098
12099 2014-07-29  Olivier Hainque  <hainque@adacore.com>
12100
12101         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12102
12103 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
12104
12105         PR bootstrap/61914
12106         * gengtype.c (strtoken): New function.
12107         (create_user_defined_type): Replace strtok with strtoken.
12108
12109 2014-07-29  Nathan Sidwell  <nathan@acm.org>
12110
12111         * gcov-io.c (gcov_var): Make hidden.
12112         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12113         (gcov_do_dump): Declare.
12114         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12115
12116 2014-07-29  Martin Jambor  <mjambor@suse.cz>
12117
12118         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12119         parameter to gimple.
12120         (sra_modify_assign): Likewise.
12121
12122 2014-07-29  Richard Biener  <rguenther@suse.de>
12123
12124         PR middle-end/52478
12125         * expr.c (expand_expr_real_2): Revert last change.
12126
12127 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12128
12129         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12130         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12131         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12132         call.
12133         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12134         (contains_type_p): Forward declare.
12135         (polymorphic_call_target_hasher::hash): Hash speculative info.
12136         (polymorphic_call_target_hasher::equal): Compare speculative info.
12137         (get_class_context): Handle speuclation.
12138         (contains_type_p): Update.
12139         (get_polymorphic_call_info_for_decl): Update.
12140         (walk_ssa_copies): Break out from ...
12141         (get_polymorphic_call_info): ... here; set speculative context
12142         before giving up.
12143         * ipa-prop.c (ipa_write_indirect_edge_info,
12144         ipa_read_indirect_edge_info): Stream speculative context.
12145         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12146         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12147         SPECULATIVE_MAYBE_DERIVED_TYPE).
12148         (possible_polymorphic_call_targets overriders): Update.
12149         (dump_possible_polymorphic_call_targets overriders): Update.
12150         (dump_possible_polymorphic_call_target_p overriders): Update.
12151
12152 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
12153
12154         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12155         ipa-devirt path; fix thinko there.
12156
12157 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
12158
12159         * config/i386/i386.c (ix86_return_in_memory): Replace one
12160         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12161
12162 2014-07-28  Marek Polacek  <polacek@redhat.com>
12163
12164         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
12165
12166 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
12167
12168         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12169         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12170         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12171         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12172         (USE_LD_AS_NEEDED): Likewise.
12173         (ASM_APP_ON): Likewise.
12174         (ASM_APP_OFF): Likewise.
12175         (TARGET_POSIX_IO): Likewise.
12176         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12177         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12178         (USE_LD_AS_NEEDED): Likewise.
12179         (ASM_APP_ON): Likewise.
12180         (ASM_APP_OFF): Likewise.
12181         (TARGET_POSIX_IO): Likewise.
12182
12183 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
12184
12185         PR middle-end/61734
12186         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12187         operators other than the equality operators.
12188
12189 2014-07-28  Richard Biener  <rguenther@suse.de>
12190
12191         PR middle-end/52478
12192         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12193         sure to register SImode ones, not only >= word_mode ones.
12194         * expr.c (expand_expr_real_2): When expanding -ftrapv
12195         binops do not use OPTAB_LIB_WIDEN.
12196
12197 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
12198
12199         PR middle-end/61919
12200         * tree-outof-ssa.c (insert_partition_copy_on_edge)
12201         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12202         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12203         inserting them in the insn stream.
12204
12205 2014-07-28  Marek Polacek  <polacek@redhat.com>
12206
12207         PR middle-end/61913
12208         * common.opt (Wodr): Add Var.
12209
12210 2014-07-28  Richard Biener  <rguenther@suse.de>
12211
12212         PR tree-optimization/61921
12213         * tree-ssa-structalias.c (create_variable_info_for_1): Check
12214         if there is a varpool node before dereferencing it.
12215
12216 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
12217
12218         * graphite-sese-to-poly.c:
12219         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12220         id of the pbb), which contains pointer to the pbb1.
12221
12222         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12223
12224 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
12225
12226         * graphite-isl-ast-to-gimple.c:
12227         (graphite_create_new_guard): New function.
12228         (translate_isl_ast_node_if): New function.
12229         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12230
12231         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12232
12233 2014-07-27  Anthony Green  <green@moxielogic.com>
12234
12235         * config.gcc: Add moxie-*-moxiebox* configuration.
12236         * config/moxie/moxiebox.h: New file.
12237
12238 2014-07-26  Andrew Pinski  <apinski@cavium.com>
12239
12240         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12241         from the read only register.
12242
12243 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12244
12245         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12246         as the allocation class if it isn't likely to be spilled.
12247
12248 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
12249
12250         * rtl.h (tls_referenced_p): Declare.
12251         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12252         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12253         (mips_cannot_force_const_mem): Use tls_referenced_p.
12254         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12255         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12256         instead of pa_tls_referenced_p.
12257         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12258         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12259         (pa_legitimate_constant_p): Likewise.
12260         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12261         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12262         (rs6000_cannot_force_const_mem, rs6000_emit_move)
12263         (rs6000_address_for_altivec): Use tls_referenced_p instead of
12264         rs6000_tls_referenced_p.
12265         (rs6000_tls_symbol_ref_1): Delete.
12266
12267 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
12268
12269         PR target/44551
12270         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12271         Optimize inverse of a VEC_CONCAT.
12272
12273 2014-07-25  Xinliang David Li  <davidxl@google.com>
12274
12275         * params.def: New parameter.
12276         * coverage.c (get_coverage_counts): Check new flag.
12277         (coverage_compute_profile_id): Check new flag.
12278         (coverage_begin_function): Check new flag.
12279         (coverage_end_function): Check new flag.
12280         * value-prof.c (coverage_node_map_initialized_p): New function.
12281         (init_node_map): Populate map with all functions.
12282         * doc/invoke.texi: Document new parameter.
12283
12284 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
12285             Richard Biener <rguenther@suse.de>
12286
12287         * lto-streamer-out.c (struct sccs): Turn to ...
12288         (class DFS): ... this one; refactor the DFS walk so it can
12289         be re-done on per-SCC basis.
12290         (DFS::DFS): New constructor.
12291         (DFS::~DFS): New destructor.
12292         (hash_tree): Add new MAP argument holding in-SCC hash values;
12293         remove POINTER_TYPE hashing hack.
12294         (scc_entry_compare): Rename to ...
12295         (DFS::scc_entry_compare): ... this one.
12296         (hash_scc): Rename to ...
12297         (DFS::hash_scc): ... this one; pass output_block instead
12298         of streamer_cache; work harder to get unique and stable SCC
12299         hashes.
12300         (DFS_write_tree): Rename to ...
12301         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12302         (lto_output_tree): Update.
12303
12304 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12305
12306         * lto-streamer-out.c (hash_tree): Convert to inchash.
12307
12308 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12309
12310         * tree.c (build_type_attribute_qual_variant): Use inchash.
12311         (type_hash_list): Dito.
12312         (attribute_hash_list): Dito
12313         (iterative_hstate_expr): Dito.
12314         (iterative_hash_expr): Dito.
12315         (build_range_type_1): Dito.
12316         (build_array_type_1): Dito.
12317         (build_function_type): Dito.
12318         (build_method_type_directly): Dito.
12319         (build_offset_type): Dito.
12320         (build_complex_type): Dito.
12321         (make_vector_type): Dito.
12322         * tree.h (iterative_hash_expr): Add compat wrapper.
12323         (iterative_hstate_expr): Add.
12324
12325 2014-07-25  Andi Kleen  <ak@linux.intel.com>
12326
12327         * Makefile.in (OBJS): Add inchash.o.
12328         (PLUGIN_HEADERS): Add inchash.h.
12329         * ipa-devirt.c: Include inchash.h.
12330         * lto-streamer-out.c: Dito.
12331         * tree-ssa-dom.c: Dito.
12332         * tree-ssa-pre.c: Dito.
12333         * tree-ssa-sccvn.c: Dito.
12334         * tree-ssa-tail-merge.c: Dito.
12335         * asan.c: Dito.
12336         * tree.c (iterative_hash_hashval_t): Move to ...
12337         (iterative_hash_host_wide_int): Move to ...
12338         * inchash.c: Here. New file.
12339         * tree.h (iterative_hash_hashval_t): Move to ...
12340         (iterative_hash_host_wide_int): Move to ...
12341         * inchash.h: Here. New file.
12342
12343 2014-07-25  Richard Biener  <rguenther@suse.de>
12344
12345         PR middle-end/61762
12346         PR middle-end/61894
12347         * fold-const.c (native_encode_int): Add and handle offset
12348         parameter to do partial encodings of expr.
12349         (native_encode_fixed): Likewise.
12350         (native_encode_real): Likewise.
12351         (native_encode_complex): Likewise.
12352         (native_encode_vector): Likewise.
12353         (native_encode_string): Likewise.
12354         (native_encode_expr): Likewise.
12355         * fold-const.c (native_encode_expr): Add offset parameter
12356         defaulting to -1.
12357         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12358         (fold_ctor_reference): Handle all reads from tcc_constant
12359         ctors.
12360
12361 2014-07-25  Richard Biener  <rguenther@suse.de>
12362
12363         * tree-inline.c (estimate_move_cost): Mark speed_p argument
12364         as possibly unused.
12365
12366 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12367
12368         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12369
12370 2014-07-24  Kyle McMartin  <kyle@redhat.com>
12371
12372         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12373
12374 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12375
12376         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12377         Add prototype.
12378         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12379         function.
12380         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12381         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12382         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12383
12384 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12385
12386         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12387         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12388         aggregate types.  Instead, *all* aggregate types, except for single-
12389         element or homogeneous float/vector aggregates, are quadword-aligned
12390         if required by their type alignment.  Issue -Wpsabi note when a type
12391         is now treated differently than before.
12392
12393 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12394
12395         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12396         does not fit fully into floating-point registers, and there is still
12397         space in the register parameter area, use GPRs to pass those parts
12398         of the argument.  Issue -Wpsabi note if any parameter is now treated
12399         differently than before.
12400         (rs6000_arg_partial_bytes): Update.
12401
12402 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
12403
12404         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12405
12406 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
12407
12408         * rtl.h (target_rtl): Remove lang_dependent_initialized.
12409         * toplev.c (initialize_rtl): Don't use it.  Move previously
12410         "language-dependent" calls to...
12411         (backend_init): ...here.
12412         (lang_dependent_init_target): Don't set lang_dependent_initialized.
12413         Assert that RTL initialization hasn't happend yet.
12414
12415 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
12416
12417         PR rtl-optimization/61629
12418         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12419         they have already been initialized.
12420
12421 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
12422
12423         PR middle-end/61268
12424         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12425         DECL_INCOMING_RTL and entry_parm.
12426         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12427         * calls.c (load_register_parameters): Likewise argument values.
12428         (emit_library_call_value_1, store_one_arg): Likewise argument
12429         save areas.
12430         * config/i386/i386.c (assign_386_stack_local): Likewise the local
12431         stack slot.
12432         * explow.c (validize_mem): Modify the argument in-place.
12433
12434 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12435
12436         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12437         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12438
12439 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12440
12441         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12442         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12443
12444 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12445
12446         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12447         (aarch64_save_callee_saves): New parameter "skip_wb".
12448         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12449
12450 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12451
12452         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12453         "wb_candidate2".
12454         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12455
12456 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
12457
12458         * graphite-isl-ast-to-gimple.c:
12459         (graphite_create_new_loop): Add calling of isl_id_free to properly
12460         decrement reference counts.
12461
12462         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12463
12464 2014-07-24  Martin Liska  <mliska@suse.cz>
12465         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12466         function used.
12467         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12468         (rs6000_code_end): Likewise.
12469
12470 2014-07-24  Martin Liska  <mliska@suse.cz>
12471
12472         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12473         symtab_node funtion used.
12474         (rs6000_xcoff_declare_object_name): Likewise.
12475
12476 2014-07-24  Martin Liska  <mliska@suse.cz>
12477
12478         * cgraphunit.c (compile): Correct function used.
12479
12480 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
12481
12482         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12483         as non-indexable.
12484
12485 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
12486
12487         PR lto/61802
12488         * varasm.c (bss_initializer_p): Handle offlined ctors.
12489         (align_variable, get_variable_align): Likewise.
12490         (make_decl_one_only): Likewise.
12491         (default_binds_local_p_1): Likewise.
12492         (decl_binds_to_current_def_p): Likewise.
12493         (get_variable_section): Get constructor if it is offlined.
12494         (assemble_variable_contents): Sanity check that the caller
12495         streamed in the ctor in LTO.
12496
12497 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
12498
12499         * graphite-isl-ast-to-gimple.c:
12500         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12501         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12502         isl_ast_op_pdiv_r to the different case.
12503
12504         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12505
12506 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12507
12508         PR middle-end/61876
12509         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12510         when flag_errno_math is on.
12511
12512 2014-07-24  Martin Liska  <mliska@suse.cz>
12513
12514         * cgraph.h (varpool_node):
12515         (availability get_availability (void)):
12516         created from cgraph_variable_initializer_availability
12517         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12518         created from: cgraph_variable_initializer_availability
12519         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12520         (void finalize_named_section_flags (void)):
12521         created from varpool_finalize_named_section_flags
12522         (bool assemble_decl (void)): created from varpool_assemble_decl
12523         (void analyze (void)): created from varpool_analyze_node
12524         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12525         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12526         (void remove_initializer (void)): created from varpool_remove_initializer
12527         (tree get_constructor (void)): created from varpool_get_constructor
12528         (bool externally_visible_p (void)): created from varpool_externally_visible_p
12529         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12530         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12531         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12532         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12533         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12534         (static bool output_variables (void)): created from varpool_output_variables
12535         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12536         created from varpool_extra_name_alias
12537         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12538         (static void dump_varpool (FILE *f)): created from dump_varpool
12539         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12540         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12541         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12542         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12543         (void assemble_aliases (void)): created from assemble_aliases
12544
12545 2014-07-24  Martin Liska  <mliska@suse.cz>
12546
12547         * cgraph.h (symtab_node):
12548         (void register_symbol (void)): created from symtab_register_node
12549         (void remove (void)): created from symtab_remove_node
12550         (void dump (FILE *f)): created from dump_symtab_node
12551         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12552         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12553         (struct ipa_ref *add_reference (symtab_node *referred_node,
12554         enum ipa_ref_use use_type)): created from add_reference 
12555         (struct ipa_ref *add_reference (symtab_node *referred_node,
12556         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12557         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12558         gimple stmt)): created from maybe_add_reference
12559         (bool semantically_equivalent_p (symtab_node *target)): created from
12560         symtab_semantically_equivalent_p
12561         (void remove_from_same_comdat_group (void)): created from
12562         remove_from_same_comdat_group
12563         (void add_to_same_comdat_group (symtab_node *old_node)): created from
12564         symtab_add_to_same_comdat_group
12565         (void dissolve_same_comdat_group_list (void)): created from
12566         symtab_dissolve_same_comdat_group_list
12567         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12568         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12569         created from symtab_alias_ultimate_target
12570         (inline symtab_node *next_defined_symbol (void)): created from
12571         symtab_next_defined_symbol
12572         (bool resolve_alias (symtab_node *target)): created from
12573         symtab_resolve_alias
12574         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12575         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12576         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12577         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12578         (void set_section (const char *section)): created from set_section_1 
12579         (enum availability get_availability (void)): created from symtab_node_availability
12580         (void make_decl_local (void)): created from symtab_make_decl_local
12581         (bool real_symbol_p (void)): created from symtab_read_node
12582         (can_be_discarded_p (void)): created from symtab_can_be_discarded
12583         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12584         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12585         symtab_in_same_comdat_p;
12586         (bool address_taken_from_non_vtable_p (void)): created from
12587         address_taken_from_non_vtable_p
12588         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12589         (static void dump_table (FILE *)): created from dump_symtab
12590         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12591         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12592         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12593         symtab_used_from_object_file_p 
12594         (void dump_base (FILE *)): created from dump_symtab_base
12595         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12596         (void unregister (void)): created from symtab_unregister_node
12597         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12598         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12599         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12600         symtab_nonoverwritable_alias_1
12601         * cgraph.h (cgraph_node):
12602         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12603         created from cgraph_remove_node_and_inline_clones
12604         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12605         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12606         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12607         (cgraph_node *function_symbol (enum availability *avail = NULL)):
12608         created from cgraph_function_node
12609         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12610         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12611         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12612         created from cgraph_create_clone 
12613         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12614         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12615         created from cgraph_create_virtual_clone
12616         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12617         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12618         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12619         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12620         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12621         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12622         created from cgraph_function_version_info
12623         (struct cgraph_function_version_info *insert_new_function_version (void)):
12624         created from insert_new_cgraph_node_version
12625         (struct cgraph_function_version_info *function_version (void)): created from
12626         get_cgraph_node_version
12627         (void analyze (void)): created from analyze_function
12628         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12629         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12630         tree real_alias) cgraph_add_thunk
12631         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12632         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12633         created from cgraph_function_or_thunk_node
12634         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12635         created from expand_thunk
12636         (void reset (void)): created from cgraph_reset_node
12637         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12638         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12639         (void remove (void)): created from cgraph_remove_node
12640         (void dump (FILE *f)): created from dump_cgraph_node
12641         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12642         (bool get_body (void)): created from cgraph_get_body
12643         (void release_body (void)): created from cgraph_release_function_body
12644         (void unnest (void)): created from cgraph_unnest_node
12645         (void make_local (void)): created from cgraph_make_node_local
12646         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12647         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12648         gcov_type count, int freq)): created from cgraph_create_edge
12649         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12650         gcov_type count, int freq)): created from cgraph_create_indirect_edge
12651         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12652         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12653         created from cgraph_create_edge_including_clones
12654         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12655         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12656         (void remove_callers (void)): created from cgraph_node_remove_callers
12657         (void remove_callees (void)): created from cgraph_node_remove_callees
12658         (enum availability get_availability (void)): created from cgraph_function_body_availability
12659         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12660         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12661         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12662         (void call_duplication_hooks (cgraph_node *node2)): created from
12663         cgraph_call_node_duplication_hooks
12664         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12665         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12666         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12667         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12668         (void call_function_insertion_hooks (void)):
12669         created from cgraph_call_function_insertion_hooks
12670         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12671         (bool local_p (void)): created from cgraph_local_node
12672         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12673         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12674         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12675         (inline bool only_called_directly_or_aliased_p (void)):
12676         created from cgraph_only_called_directly_or_aliased_p
12677         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12678         created from cgraph_will_be_removed_from_program_if_no_direct_calls
12679         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12680         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12681         (bool can_remove_if_no_direct_calls_p (void)):
12682         created from cgraph_can_remove_if_no_direct_calls_p
12683         (inline bool has_gimple_body_p (void)):
12684         created from cgraph_function_with_gimple_body_p
12685         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12686         (static void dump_cgraph (FILE *f)): created from dump_cgraph
12687         (static inline void debug_cgraph (void)): created from debug_cgraph
12688         (static void record_function_versions (tree decl1, tree decl2)):
12689         created from record_function_versions
12690         (static void delete_function_version (tree decl)):
12691         created from delete_function_version
12692         (static void add_new_function (tree fndecl, bool lowered)):
12693         created from cgraph_add_new_function
12694         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12695         (static cgraph_node * create (tree decl)): created from cgraph_create_node
12696         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12697         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12698         (static cgraph_node *get_for_asmname (tree asmname)):
12699         created from cgraph_node_for_asm
12700         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12701         created from cgraph_same_body_alias 
12702         (static bool used_from_object_file_p_worker (cgraph_node *node,
12703         void *): new function
12704         (static bool non_local_p (cgraph_node *node, void *)):
12705         created from cgraph_non_local_node_p_1
12706         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12707         created from verify_cgraph
12708         (static bool make_local (cgraph_node *node, void *)):
12709         created from cgraph_make_node_local
12710         (static cgraph_node *create_alias (tree alias, tree target)):
12711         created from cgraph_create_function_alias
12712         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12713         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12714         created from cgraph_create_edge_1
12715         * cgraph.h (varpool_node):
12716         (void remove (void)): created from varpool_remove_node
12717         (void dump (FILE *f)): created from dump_varpool_node
12718
12719 2014-07-24  Richard Biener  <rguenther@suse.de>
12720
12721         PR ipa/61823
12722         * tree-ssa-structalias.c (create_variable_info_for_1):
12723         Use varpool_get_constructor.
12724         (create_variable_info_for): Likewise.
12725
12726 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
12727
12728         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12729         subtract outgoing area size when restoring stack_pointer_rtx.
12730
12731 2014-07-24  Nick Clifton  <nickc@redhat.com>
12732
12733         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12734         that operations are taking place in parallel.
12735         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12736
12737 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
12738
12739         * omp-low.c (extract_omp_for_data): Add missing break statement.
12740
12741 2014-07-24  Richard Biener  <rguenther@suse.de>
12742
12743         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12744         * tree-inline.c (estimate_move_cost): Add speed_p parameter
12745         and adjust MOVE_RATIO query accordingly.
12746         (estimate_num_insns): Adjust callers.
12747         * ipa-prop.c (ipa_populate_param_decls): Likewise.
12748         * ipa-cp.c (gather_context_independent_values,
12749         estimate_local_effects): Likewise.
12750         * ipa-split.c (consider_split): Likewise.
12751
12752 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
12753
12754         * config/i386/driver-i386.c: Remove names of unused arguments and
12755         unnecessary unused attributes.
12756         * config/i386/host-mingw32.c: Likewise.
12757         * config/i386/i386.c: Likewise.
12758         * config/i386/winnt-stubs.c: Likewise.
12759         * config/i386/winnt.c: Likewise.
12760
12761 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12762
12763         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12764         (aarch64_gen_loadwb_pair): New helper function.
12765         (aarch64_expand_epilogue): Simplify code using new helper functions.
12766         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12767
12768 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12769
12770         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12771         (aarch64_gen_storewb_pair): New helper function.
12772         (aarch64_expand_prologue): Simplify code using new helper functions.
12773         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12774
12775 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12776
12777         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12778         Rename to aarch64_save_callee_saves, remove restore code.
12779         (aarch64_restore_callee_saves): New function.
12780
12781 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12782
12783         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12784         (aarch64_save_callee_saves): New function to handle reg save
12785         for both core and vectore regs.
12786
12787 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12788
12789         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12790         (aarch64_gen_store_pair): New helper function.
12791         (aarch64_save_or_restore_callee_save_registers)
12792         (aarch64_save_or_restore_fprs): Use new helper functions.
12793
12794 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12795
12796         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12797         (aarch64_save_or_restore_callee_save_registers)
12798         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12799
12800 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12801
12802         * config/aarch64/aarch64.c
12803         (aarch64_save_or_restore_callee_save_registers)
12804         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12805
12806 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12807
12808         * config/aarch64/aarch64.c
12809         (aarch64_save_or_restore_callee_save_registers)
12810         (aarch64_save_or_restore_fprs): Remove 'increment'.
12811
12812 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12813
12814         * config/aarch64/aarch64.c
12815         (aarch64_save_or_restore_callee_save_registers)
12816         (aarch64_save_or_restore_fprs): Use register offset in
12817         cfun->machine->frame.reg_offset.
12818
12819 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12820
12821         * config/aarch64/aarch64.c
12822         (aarch64_save_or_restore_callee_save_registers)
12823         (aarch64_save_or_restore_fprs): Remove base_rtx.
12824
12825 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12826
12827         * config/aarch64/aarch64.c
12828         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12829         to 'start_offset'.  Remove local variable 'start_offset'.
12830
12831 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12832
12833         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12834         type to HOST_WIDE_INT.
12835
12836 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12837
12838         * config/aarch64/aarch64.c (aarch64_expand_prologue)
12839         (aarch64_save_or_restore_fprs)
12840         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12841
12842 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12843
12844         * config/arm/t-rtems-eabi: Add
12845         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12846         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12847         mbig-endian/mthumb/march=armv7-r, and
12848         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12849         multilibs.
12850
12851 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12852             Chris Johns <chrisj@rtems.org>
12853             Joel Sherrill <joel.sherrill@oarcorp.com>
12854
12855         * config.gcc: Add nios2-*-rtems*.
12856         * config/nios2/rtems.h: New file.
12857         * gcc/config/nios2/t-rtems: New file.
12858
12859 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
12860
12861         PR target/61396
12862         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12863         constant numbers, not general constants.
12864         (rs6000_expand_vector_init): Ditto.
12865
12866 2014-07-23  Nathan Sidwell  <nathan@acm.org>
12867
12868         * gcov-tool.c (gcov_list): Declare here.
12869         (set_gcov_list): Remove.
12870         (gcov_output_files): Set gcov_list directly.
12871
12872 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
12873
12874         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12875
12876 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
12877
12878         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12879         callee-saved registers are available for padding purpose
12880         and r3 is not mandatory, then prefer use those callee-saved
12881         instead of r3.
12882
12883 2014-07-23  Richard Biener  <rguenther@suse.de>
12884
12885         * params.def (PARAM_MAX_COMBINE_INSNS): New.
12886         * combine.c: Include statistics.h and params.h.
12887         (combine_instructions): Guard three and four insn combines
12888         with max-combine-insns value.  Record statistics for combines
12889         performed.
12890         * doc/invoke.texi (max-combine-insns): Document new param.
12891
12892 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
12893
12894         * graphite-isl-ast-to-gimple.c:
12895         (translate_isl_ast_node_block): New function.
12896         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12897
12898         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12899         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12900
12901 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
12902
12903         * graphite-isl-ast-to-gimple.c:
12904         (get_max_schedule_dimensions): New function.
12905         (extend_schedule): Likewise.
12906         (generate_isl_schedule): Add calling of extend_schedule and
12907         get_max_schedule_dimensions.
12908
12909 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12910
12911         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12912         (case UNSPEC): Handle UNSPEC_RBIT.
12913
12914 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12915
12916         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12917         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12918
12919 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12920
12921         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12922
12923 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
12924
12925         * graphite-isl-ast-to-gimple.c:
12926         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12927         (ivs_params_clear):
12928         (build_iv_mapping): New function.
12929         (translate_isl_ast_node_user): Likewise.
12930         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12931
12932         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12933         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12934         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12935
12936 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
12937
12938         PR target/55701
12939         * config/arm/arm.md (setmem): New pattern.
12940         * config/arm/arm-protos.h (struct tune_params): New fields.
12941         (arm_gen_setmem): New prototype.
12942         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12943         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12944         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12945         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12946         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12947         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12948         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12949         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12950         (arm_const_inline_cost): New function.
12951         (arm_block_set_max_insns): New function.
12952         (arm_block_set_non_vect_profit_p): New function.
12953         (arm_block_set_vect_profit_p): New function.
12954         (arm_block_set_unaligned_vect): New function.
12955         (arm_block_set_aligned_vect): New function.
12956         (arm_block_set_unaligned_non_vect): New function.
12957         (arm_block_set_aligned_non_vect): New function.
12958         (arm_block_set_vect, arm_gen_setmem): New functions.
12959
12960 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
12961
12962         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12963
12964 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
12965
12966         PR target/61855
12967         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12968         out of #ifdef __OPTIMIZE__.
12969
12970 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
12971
12972         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12973         different trapping status if -fnon-call-exceptions is enabled.
12974
12975 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
12976
12977         * expr.c (store_field): Handle VOIDmode for calls that return values
12978         in multiple locations.
12979
12980 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12981
12982         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
12983         (altivec_vsldoi_<mode>): Likewise.
12984
12985 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
12986
12987         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12988         to the number of characters in the line.
12989
12990 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
12991
12992         * graphite-isl-ast-to-gimple.c: Add using of
12993         build_nonstandard_integer_type instead of int128_integer_type_node.
12994
12995 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
12996
12997         * toplev.c (output_stack_usage): Adjust the location of the warning.
12998
12999 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
13000
13001         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13002         (*membar_storeload): Disable for LEON3.
13003
13004 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13005
13006         PR rtl-optimization/61461
13007         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13008
13009 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
13010
13011         PR target/61794
13012         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13013         Fix instruction constraint.
13014         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13015
13016 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
13017
13018         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13019
13020 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
13021
13022         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13023         GNU coding standards.
13024         (nds32_register_move_cost): Likewise.
13025         (nds32_memory_move_cost): Likewise.
13026         (nds32_address_cost): Likewise.
13027
13028 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13029
13030         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13031
13032 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
13033
13034         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13035         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13036         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13037         (HAVE_sync_compare_and_swapqi): Define.
13038         (HAVE_sync_compare_and_swaphi): Likewise.
13039         (HAVE_sync_compare_and_swapsi): Likewise.
13040
13041 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
13042
13043         * config/mips/p5600.md: Add missing cpu tests.
13044
13045 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13046
13047         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13048         (vmla_f64): Likewise.
13049         (vfms_f64): Likewise.
13050         (vmls_f64): Likewise.
13051
13052 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13053
13054         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13055         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13056
13057 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13058
13059         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13060         (vmlal_high_lane_s32): Likewise.
13061         (vmlal_high_lane_u16): Likewise.
13062         (vmlal_high_lane_u32): Likewise.
13063         (vmlsl_high_lane_s16): Likewise.
13064         (vmlsl_high_lane_s32): Likewise.
13065         (vmlsl_high_lane_u16): Likewise.
13066         (vmlsl_high_lane_u32): Likewise.
13067
13068 2014-07-17  Terry Guo  <terry.guo@arm.com>
13069
13070         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13071         (alus_reg): Renamed to alus_sreg.
13072         * config/arm/arm-fixed.md: Change type of non-dsp instructions
13073         from alu_reg to alu_sreg.  Change type of dsp instructions from
13074         alu_reg to alu_dsp_reg.
13075         * config/arm/thumb1.md: Likewise.
13076         * config/arm/thumb2.md: Likewise.
13077         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13078         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13079         with alu_sreg and alus_sreg.
13080         * config/arm/arm1026ejs.md (alu_op): Likewise.
13081         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13082         * config/arm/arm926ejs.md (9_alu_op): Likewise.
13083         * config/arm/fa526.md (526_alu_op): Likewise.
13084         * config/arm/fa606te.md (606te_alu_op): Likewise.
13085         * config/arm/fa626te.md (626te_alu_op): Likewise.
13086         * config/arm/fa726te.md (726te_alu_op): Likewise.
13087         * config/arm/fmp626.md (mp626_alu_op): Likewise.
13088         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13089         alu_sreg, alu_dsp_reg and alus_sreg.
13090         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13091         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13092         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13093         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13094         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13095         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13096         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13097         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13098         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13099         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13100         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13101         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13102         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13103         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13104         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13105         alus_reg to alus_sreg.
13106
13107 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
13108
13109         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13110         infinity format.
13111
13112 2014-07-17  Richard Biener  <rguenther@suse.de>
13113
13114         PR rtl-optimization/61801
13115         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13116         don't set reg_pending_barrier if it appears in a debug-insn.
13117
13118 2014-07-16  DJ Delorie  <dj@redhat.com>
13119
13120         * config/rx/rx.c (rx_option_override): Fix alignment values.
13121         (rx_align_for_label): Likewise.
13122
13123 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
13124
13125         PR target/61737.
13126         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13127         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13128         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13129         functions.
13130         (cris_print_index, cris_print_operand, cris_constant_index_p)
13131         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13132         (cris_address_cost): Ditto last CONSTANT_P.
13133         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
13134         callers changed.  Yield cris_offsettable_symbol for non-PIC
13135         constant symbolic expressions including labels.  Yield cris_unspec
13136         for all unspecs.
13137         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
13138         target to pic_offset_table_rtx for calls that will likely go
13139         through PLT, const0_rtx when they can't.  All callers changed.
13140         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13141         symbolic expressions to be PICified.  Remove second, redundant,
13142         assert on can_create_pseudo_p returning non-zero.  Use
13143         replace_equiv_address_nv, not replace_equiv_address, for final
13144         operand update.
13145         * config/cris/cris.md ("movsi"): Move variable t to pattern
13146         toplevel. Adjust assert for new cris_symbol_type member.  Use
13147         CONSTANT_P instead of CONSTANT_ADDRESS_P.
13148         ("*movsi_internal") <case 9>: Make check for valid unspec operands
13149         for lapc stricter.
13150         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13151         ("call", "call_value"): Use second incoming operand as a marker
13152         for pic-offset-table-register being used.
13153         ("*expanded_call_non_v32", "*expanded_call_v32")
13154         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13155         second incoming operand to CALL, match cris_call_type_marker.
13156         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
13157         ("*expanded_call_side"): Ditto.  Fix typo in comment.
13158         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13159         CONSTANT_P.
13160         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13161         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13162         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
13163         users changed.  Add members cris_offsettable_symbol and cris_unspec.
13164         (cris_symbol_type): Rename from cris_pic_symbol_type.
13165         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13166         just CONSTANT_P.
13167         * config/cris/cris-protos.h (cris_symbol_type_of,
13168         cris_expand_pic_call_address): Adjust prototypes.
13169         (cris_legitimate_constant_p): New prototype.
13170
13171         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13172         an existing tmake_file.  Don't add t-slibgcc and t-linux.
13173
13174 2014-07-17  Jason Merrill  <jason@redhat.com>
13175
13176         PR c++/61623
13177         * symtab.c (symtab_remove_from_same_comdat_group): Also
13178         set_comdat_group to NULL_TREE.
13179         (verify_symtab): Fix diagnostic.
13180
13181 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
13182
13183         PR target/61662
13184         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13185
13186 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
13187
13188         Support location tracking for built-in macro tokens
13189         * input.h (is_location_from_builtin_token): New function declaration.
13190         * input.c (is_location_from_builtin_token): New function definition.
13191         * toplev.c (general_init): Tell libcpp what the pre-defined
13192         spelling location for built-in tokens is.
13193
13194 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
13195
13196         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13197         on the FUNCTION_DECL.
13198
13199 2014-07-16  Richard Biener  <rguenther@suse.de>
13200
13201         PR other/61782
13202         * doc/extend.texi (always_inline): Clarify.
13203
13204 2014-07-15  Eric Christopher  <echristo@gmail.com>
13205
13206         * doc/invoke.texi (Link Options): Document -z option.
13207
13208 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
13209
13210         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13211         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13212
13213 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
13214
13215         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13216
13217 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
13218
13219         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13220         varpool_assemble_decl.
13221         * varpool.c (varpool_assemble_decl): Assert that node->definition is
13222         true.
13223
13224 2014-07-15  Michael Matz  <matz@suse.de>
13225
13226         PR rtl-optimization/61772
13227         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13228
13229 2014-07-15  Richard Biener  <rguenther@suse.de>
13230
13231         * opts.c (default_options_table): Disable bit-ccp at -Og.
13232
13233 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13234
13235         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13236
13237 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
13238
13239         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13240         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13241         call langhook for unknown declaration.
13242         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13243         * tree.h (DECL_ARGUMENTS): Update.
13244         * print-tree.c (print_node): Update.
13245         * tree-core.h (tree_decl_non_common): Remove arguments.
13246         (tree_function_decl): Add arguments.
13247
13248 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
13249
13250         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13251
13252 2014-07-14  Richard Biener  <rguenther@suse.de>
13253
13254         PR tree-optimization/61779
13255         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13256         simplifying a condition.
13257
13258 2014-07-14  Richard Biener  <rguenther@suse.de>
13259
13260         * builtins.c (c_strlen): Make only_value == 2 really only
13261         affect warning generation.
13262
13263 2014-07-14  Richard Biener  <rguenther@suse.de>
13264
13265         PR tree-optimization/61757
13266         PR tree-optimization/61783
13267         PR tree-optimization/61787
13268         * tree-ssa-dom.c (record_equality): Revert canonicalization
13269         change and add comment.
13270         (propagate_rhs_into_lhs): Revert previous fix, removing
13271         loop depth restriction again.
13272
13273 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13274
13275         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13276         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13277         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13278         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13279         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13280         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13281         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13282
13283 2014-07-14  Richard Biener  <rguenther@suse.de>
13284
13285         * cgraph.h (decl_in_symtab_p): Make inline.
13286
13287 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
13288
13289         PR middle-end/61294
13290         * doc/invoke.texi (-Wmemset-transposed-args): Document.
13291
13292         PR target/61656
13293         * config/i386/i386.c (classify_argument): Don't merge classes above
13294         number of words.
13295
13296 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
13297
13298         * cgraph.h (symtab_node): Add nonzero_address.
13299         (decl_in_symtab_p): Break out from ...
13300         (symtab_get_node): ... here.
13301         * fold-const.c: Include cgraph.h
13302         (tree_single_nonzero_warnv_p): Use symtab to determine
13303         if symbol is non-zero.
13304         * symtab.c (symtab_node::nonzero_address): New method.
13305
13306 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13307
13308         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13309         forgotten in previous commit.
13310
13311 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13312
13313         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13314         on builtin types.
13315         * ipa-devirt.c: Include stor-layout.h and intl.h
13316         (odr_subtypes_equivalent_p): New function.
13317         (warn_odr): New function.
13318         (warn_type_mismatch): New function.
13319         (odr_types_equivalent_p): New function.
13320         (add_type_duplicate): Use it.
13321         * common.opt (Wodr): New flag.
13322         * doc/invoke.texi (Wodr): Document new warning.
13323
13324 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
13325
13326         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13327         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13328         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13329         (varpool_get_constructor): Push CTORS_IN timevar.
13330         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13331
13332 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
13333
13334         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13335         Remove VOID_FTYPE_PUSHORT.
13336         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13337         Change code to USHORT_FTYPE_VOID.
13338         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13339         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13340         (ix86_atomic_assign_expand_fenv): Update for
13341         __builtin_ia32_fnstsw changes.
13342         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13343         (fnstsw): Change operand 0 to nonimmediate operand.
13344
13345 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13346
13347         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13348         (varpool_get_constructor): New function.
13349         (varpool_ctor_useable_for_folding_p): Break out from ...
13350         (ctor_for_folding): ... here; use varpool_get_constructor.
13351         (varpool_assemble_decl): Likewise.
13352         * lto-streamer.h (struct output_block): Turn cgraph_node
13353         to symbol filed.
13354         (lto_input_variable_constructor): Declare.
13355         * ipa-visibility.c (function_and_variable_visibility): Use
13356         varpool_get_constructor.
13357         * cgraph.h (varpool_get_constructor): Declare.
13358         (varpool_ctor_useable_for_folding_p): New function.
13359         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13360         parameter; return error_mark_node for non-trivial constructors.
13361         (lto_write_tree_1, DFS_write_tree): Update use of
13362         get_symbol_initial_value.
13363         (output_function): Update initialization of symbol.
13364         (output_constructor): New function.
13365         (copy_function): Rename to ..
13366         (copy_function_or_variable): ... this one; handle vars too.
13367         (lto_output): Output variable sections.
13368         * lto-streamer-in.c (input_constructor): New function.
13369         (lto_read_body): Rename from ...
13370         (lto_read_body_or_constructor): ... this one; handle vars too.
13371         (lto_input_variable_constructor): New function.
13372         * ipa-prop.c (ipa_prop_write_jump_functions,
13373         ipa_prop_write_all_agg_replacement): Update.
13374         * lto-cgraph.c (compute_ltrans_boundary): Use it.
13375         (output_cgraph_opt_summary): Set symbol to NULL.
13376
13377 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13378
13379         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13380         non-polymorphic types.
13381         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13382         * ipa-devirt.c (types_same_for_odr): Do not explode when one
13383         of types is not polymorphic.
13384
13385 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
13386
13387         * lra-constraints.c (remove_inheritance_pseudos): Process
13388         destination pseudo too.
13389
13390 2014-07-11  Rong Xu  <xur@google.com>
13391
13392         * gcov-tool.c (gcov_output_files): Fix build error introduced in
13393         commit r212448.
13394
13395 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13396
13397         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13398         * config/avr/avr-devices.c (AVR_MCU): Same.
13399         (avr_mcu_types): add text start value to end of device list.
13400         * config/avr/avr-mcus.def: Add text section start for all devices.
13401         (ata5782): Add new avr5 device.
13402         (ata5831): Same.
13403         * config/avr/avr-tables.opt: Regenerate.
13404         * config/avr/avr.h: Add declaration for text section start handler.
13405         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13406         SPEC functions.
13407         (LINK_SPEC): Include text section start handler to linker spec.
13408         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13409         pass -Ttext option to linker if the text section start for the device
13410         is not zero.
13411         * config/avr/t-multilib: Regenerate.
13412         * doc/avr-mmcu.texi: Regenerate.
13413
13414 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
13415
13416         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13417         * config/rs6000/aix52.h (LINK_SPEC): Same.
13418         * config/rs6000/aix53.h (LINK_SPEC): Same.
13419         * config/rs6000/aix61.h (LINK_SPEC): Same.
13420         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13421
13422 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
13423
13424         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13425         (graphite_verify): New function.
13426         (ivs_params_clear): New function.
13427         (gcc_expression_from_isl_ast_expr_id): New function.
13428         (gcc_expression_from_isl_expr_int): New function.
13429         (binary_op_to_tree): New function.
13430         (ternary_op_to_tree): New function.
13431         (unary_op_to_tree): New function.
13432         (nary_op_to_tree): New function.
13433         (gcc_expression_from_isl_expr_op): New function.
13434         (gcc_expression_from_isl_expression): New function.
13435         (graphite_create_new_loop): New function.
13436         (translate_isl_ast_for_loop): New function.
13437         (get_upper_bound): New function.
13438         (graphite_create_new_loop_guard): New function.
13439         (translate_isl_ast_node_for): New function.
13440         (translate_isl_ast): New function.
13441         (add_parameters_to_ivs_params): New function.
13442         (scop_to_isl_ast): New parameter ip.
13443         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13444
13445 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
13446
13447         * config/xtensa/predicates.md (call expander): Update for
13448         DECL_SECTION_NAME being string.
13449
13450 2014-07-11  Richard Biener  <rguenther@suse.de>
13451
13452         PR middle-end/61473
13453         * builtins.c (fold_builtin_memory_op): Inline memory moves that
13454         can be implemented with a single load followed by a single store.
13455         (c_strlen): Only warn when only_value is not 2.
13456
13457 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
13458
13459         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13460
13461 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
13462
13463         PR target/61561
13464         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13465         (*movhi_bytes): Likewise.
13466         (*arm_movqi_insn): Likewise.
13467
13468 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
13469
13470         PR target/56858
13471         * config/alpha/alpha.c: Include tree-pass.h, context.h
13472         and pass_manager.h.
13473         (pass_data_handle_trap_shadows): New pass.
13474         (pass_handle_trap_shadows::gate): New pass gate function.
13475         (make_pass_handle_trap_shadows): New function.
13476         (rest_of_handle_trap_shadows): Ditto.
13477
13478         (alpha_align_insns_1): Rename from alpha_align_insns.
13479         (pass_data_align_insns): New pass.
13480         (pass_align_insns::gate): New pass gate function.
13481         (make_pass_aling_insns): New function.
13482         (rest_of_align_insns): Ditto.
13483         (alpha_align_insns): Ditto.
13484
13485         (alpha_option_override): Declare handle_trap_shadows info
13486         and align_insns_info.  Register handle_trap_shadows and align_insns
13487         passes here.
13488         (alpha_reorg): Do not call alpha_trap_shadows and
13489         alpha_align_insn from here.
13490
13491         (alpha_pad_function_end): Do not skip BARRIERs.
13492
13493 2014-07-10  Rong Xu  <xur@google.com>
13494
13495         Add gcov-tool: an offline gcda profile processing tool support.
13496         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13497         (gcov_is_error): Ditto.
13498         (gcov_read_string): Ditto.
13499         (gcov_read_sync): Ditto.
13500         * gcov-io.h: Move counter defines to gcov-counter.def.
13501         * gcov-dump.c (tag_counters): Use gcov-counter.def.
13502         * coverage.c: Ditto.
13503         * gcov-tool.c: Offline gcda profile processing tool.
13504         (unlink_gcda_file): Remove one gcda file.
13505         (unlink_profile_dir): Remove gcda files from the profile path.
13506         (gcov_output_files): Output gcda files to an output dir.
13507         (profile_merge): Merge two profiles in directory.
13508         (print_merge_usage_message): Print merge usage.
13509         (merge_usage): Print merge usage and exit.
13510         (do_merge): Driver for profile merge sub-command.
13511         (profile_rewrite): Rewrite profile.
13512         (print_rewrite_usage_message): Print rewrite usage.
13513         (rewrite_usage): Print rewrite usage and exit.
13514         (do_rewrite): Driver for profile rewrite sub-command.
13515         (print_usage): Print gcov-info usage and exit.
13516         (print_version): Print gcov-info version.
13517         (process_args): Process arguments.
13518         (main): Main routine for gcov-tool.
13519         * Makefile.in: Build and install gcov-tool.
13520         * gcov-counter.def: New file split from gcov-io.h.
13521         * doc/gcc.texi: Include gcov-tool.texi.
13522         * doc/gcov-tool.texi: Document for gcov-tool.
13523
13524 2014-07-10  Richard Biener  <rguenther@suse.de>
13525
13526         PR tree-optimization/61757
13527         * tree-ssa-dom.c (loop_depth_of_name): Restore.
13528         (propagate_rhs_into_lhs): Revert part of last change.
13529
13530 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
13531
13532         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13533         FUNCTION_DECLs.
13534
13535 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
13536
13537         PR middle-end/53590
13538         * function.c (allocate_struct_function): Revert r188667 change.
13539
13540         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13541
13542 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
13543
13544         * doc/install.texi: Remove links to defunct package providers for
13545         Solaris.
13546
13547 2014-07-09  Tom de Vries  <tom@codesourcery.com>
13548
13549         * final.c (get_call_fndecl): Declare.
13550         (self_recursive_call_p): New function.
13551         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13552
13553 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13554
13555         * ipa-devirt.c (record_node): Walk through aliases.
13556
13557 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13558
13559         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13560
13561 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13562
13563         Revert:
13564         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13565
13566 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13567
13568         * ipa-visibility.c (function_and_variable_visibility): Remove
13569         temporary hack disabling local aliases on AIX.
13570
13571 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13572
13573         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13574         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13575
13576 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13577
13578         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13579         * rs6000/rs6000.c: Inline output of .set instruction.
13580         (declare_alias_data): New struct.
13581         (rs6000_declare_alias): New function.
13582         (rs6000_xcoff_declare_function_name): Use it.
13583         (rs6000_xcoff_declare_object_name): New function.
13584         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13585         (ASM_OUTPUT_DEF): Turn to empty definition.
13586
13587 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
13588
13589         PR bootstrap/61679
13590         * hash-table.h: use hash_table::value_type instead of
13591         Descriptor::value_type in the return types of several methods.
13592
13593 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
13594
13595         * tree-pass.h (pass_data): Remove has_execute member.
13596         * passes.c (execute_one_pass): Don't check pass->has_execute.
13597         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13598         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13599         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13600         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13601         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13602         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13603         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13604         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13605         gimple-low.c, gimple-ssa-isolate-paths.c,
13606         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13607         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13608         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13609         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13610         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13611         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13612         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13613         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13614         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13615         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13616         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13617         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13618         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13619         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13620         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13621         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13622         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13623         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13624         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13625         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13626         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13627         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13628         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13629         web.c: Remove initializer for pass_data::has_execute.
13630
13631 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
13632
13633         * graphite-htab.h: Use hash_map instead of hash_table.
13634         * graphite-clast-to-gimple.c: Adjust.
13635         * passes.c: Use hash_map instead of hash_table.
13636         * sese.c: Likewise.
13637         * sese.h: Remove now unused code.
13638
13639 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
13640
13641         PR target/61599
13642         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13643         than zero.
13644
13645 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
13646
13647         PR rtl-optimization/61673
13648         * combine.c (simplify_comparison): Test just mode's sign bit
13649         in tmode rather than the sign bit and any bits above it.
13650
13651 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
13652
13653         * graphite-isl-ast-to-gimple.c (generate_isl_context):
13654         Add __isl_give to the declaration.
13655         (generate_isl_schedule): Likewise.
13656         (scop_to_isl_ast): Likewise.
13657
13658 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13659
13660         * config/arm/arm.c (cortexa5_extra_costs): New table.
13661         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13662
13663 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
13664
13665         PR tree-optimization/61725
13666         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13667         range, use range_includes_zerop_p instead of integer_zerop on
13668         vr0->min, only use log2 of max if min is not negative.
13669
13670 2014-07-08  Richard Biener  <rguenther@suse.de>
13671
13672         * tree-ssa-dom.h (loop_depth_of_name): Remove.
13673         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13674         restriction on loop depth difference.
13675         (record_equality): Likewise.
13676         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
13677         (loop_depth_of_name): Remove.
13678         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13679         restriction on loop depth difference.
13680         (init_copy_prop): Likewise.
13681
13682 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
13683
13684         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13685         parameter.
13686         (walk_aliased_vdefs): Likewise.
13687         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13688         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13689         (detect_type_change_from_memory_writes): Check if entry was reached.
13690
13691 2014-07-08  Richard Biener  <rguenther@suse.de>
13692
13693         PR tree-optimization/61681
13694         * tree-ssa-structalias.c (find_what_var_points_to): Expand
13695         NONLOCAL inside ESCAPED.
13696
13697 2014-07-08  Richard Biener  <rguenther@suse.de>
13698
13699         PR tree-optimization/61680
13700         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13701         Handle properly all read-write dependences with group accesses.
13702
13703 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
13704
13705         PR tree-optimization/61576
13706         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13707         block containing reduction statement is predecessor of phi basi block.
13708
13709 2014-07-08  Marek Polacek  <polacek@redhat.com>
13710
13711         PR c/60226
13712         * fold-const.c (round_up_loc): Change the parameter type.
13713         Remove assert.
13714         * fold-const.h (round_up_loc): Adjust declaration.
13715         * stor-layout.c (finalize_record_size): Check for too large types.
13716
13717 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
13718
13719         * symtab.c: Include calls.h.
13720         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13721
13722 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
13723
13724         * config/rs6000/rs6000.c (output_vec_const_move): Handle
13725         little-endian code generation.
13726         * config/rs6000/spe.md (spe_evmergehi): Rename to...
13727         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
13728         (spe_evmergehilo): Rename to...
13729         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
13730         (spe_evmergelo): Rename to...
13731         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
13732         (spe_evmergelohi): Rename to...
13733         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
13734         (spe_evmergehi, spe_evmergehilo): New expanders.
13735         (spe_evmergelo, spe_evmergelohi): Likewise.
13736         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13737         (*frob_tf_ti): Likewise.
13738         (*frob_<mode>_di_2): Likewise.
13739         (*frob_tf_di_8_2): Likewise.
13740         (*frob_di_<mode>): Likewise.
13741         (*frob_ti_tf): Likewise.
13742         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13743         (*frob_ti_<mode>_8_2): Likewise.
13744         (*frob_ti_tf_2): Likewise.
13745         (mov_si<mode>_e500_subreg0): Rename to...
13746         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
13747         endianness only.
13748         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13749         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13750         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
13751         the big endianness only.
13752         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13753         (*mov_si<mode>_e500_subreg0_2): Rename to...
13754         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
13755         big big endianness only.
13756         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13757         (*mov_si<mode>_e500_subreg4): Rename to...
13758         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
13759         endianness only.
13760         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13761         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13762         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
13763         the big endianness only.
13764         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13765         pattern.
13766         (*mov_si<mode>_e500_subreg4_2): Rename to...
13767         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
13768         endianness only.
13769         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13770         (*mov_sitf_e500_subreg8): Rename to...
13771         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
13772         endianness only.
13773         (*mov_sitf_e500_subreg8_le): New instruction pattern.
13774         (*mov_sitf_e500_subreg8_2): Rename to...
13775         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
13776         endianness only.
13777         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13778         (*mov_sitf_e500_subreg12): Rename to...
13779         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
13780         endianness only.
13781         (*mov_sitf_e500_subreg12_le): New instruction pattern.
13782         (*mov_sitf_e500_subreg12_2): Rename to...
13783         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
13784         endianness only.
13785         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13786
13787 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
13788
13789         * asan.c (instrument_strlen_call): Do not instrument first byte
13790         in strlen if already instrumented.
13791
13792 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13793
13794         * config/arm/arm.opt (mwords-little-endian): Delete.
13795         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13796         of TARGET_LITTLE_WORDS.
13797         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13798         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13799         warning.
13800         * doc/invoke.texi: Remove references to -mwords-little-endian.
13801
13802 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
13803
13804         * expmed.c (struct init_expmed_rtl): Change all fields but
13805         pow2 and cint from struct rtx_def to rtx.
13806         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13807         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
13808         at the end again.
13809
13810 2014-07-06  Marek Polacek  <polacek@redhat.com>
13811
13812         PR c/6940
13813         * doc/invoke.texi: Document -Wsizeof-array-argument.
13814
13815 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
13816
13817         * wide-int.h (wide_int_storage): Change declaration from struct
13818         to class.
13819
13820 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
13821
13822         * cgraph.c (cgraph_create_indirect_edge): Update call of
13823         get_polymorphic_call_info.
13824         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13825         (possible_polymorphic_call_targets): Add parameter call.
13826         (decl_maybe_in_construction_p): New predicate.
13827         (get_polymorphic_call_info): Add parameter call;
13828         use decl_maybe_in_construction_p.
13829         * gimple-fold.c (fold_gimple_assign): Update use of
13830         possible_polymorphic_call_targets.
13831         (gimple_fold_call): Likewise.
13832         * ipa-prop.c: Inlcude calls.h
13833         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13834         (param_type_may_change_p): New predicate.
13835         (detect_type_change_from_memory_writes): Break out from ...
13836         (detect_type_change): ... this one; use param_type_may_change_p.
13837         (detect_type_change_ssa): Use param_type_may_change_p.
13838         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13839
13840 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
13841
13842         PR target/49423
13843         * config/arm/arm-protos.h (arm_legitimate_address_p,
13844         arm_is_constant_pool_ref): Add prototypes.
13845         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13846         (arm_is_constant_pool_ref) New function.
13847         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13848         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13849         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13850         operand. Remove pool_range and neg_pool_range attributes.
13851         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13852         pool_range and neg_pool_range attributes.
13853         * config/arm/constraints.md (Uh): New constraint.
13854         (Uq): Don't allow constant pool references.
13855
13856 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
13857
13858         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13859         (move_lo_quad_internal_be_<mode>): Likewise.
13860         (move_lo_quad_<mode>): Convert to define_expand.
13861         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13862         (aarch64_simd_move_hi_quad_be_<mode>): New.
13863         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13864         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13865         (aarch64_combinez_be<mode>): New.
13866         (aarch64_combine<mode>): Convert to define_expand.
13867         (aarch64_combine_internal<mode>): New.
13868         (aarch64_simd_combine<mode>): Remove bogus RTL description.
13869
13870 2014-07-04  Tom de Vries  <tom@codesourcery.com>
13871
13872         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13873         combination of earlyclobber and read/write modifiers.
13874
13875 2014-07-04  Tom de Vries  <tom@codesourcery.com>
13876
13877         * config/aarch64/aarch64-simd.md
13878         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13879
13880 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
13881
13882         PR target/61714
13883         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13884
13885 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
13886
13887         PR middle-end/61654
13888         * cgraphunit.c (expand_thunk): Call free_dominance_info.
13889
13890         PR tree-optimization/61684
13891         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13892         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13893
13894 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13895             Kito Cheng  <kito@0xlab.org>
13896             Monk Chiang  <sh.chiang04@gmail.com>
13897
13898         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13899         (nds32_symbol_load_store_p): Move to ...
13900         (nds32_fp_as_gp_check_available): Move to ...
13901         * config/nds32/nds32-fp-as-gp.c: ... here.
13902         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13903         extern declaration.
13904
13905 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13906             Kito Cheng  <kito@0xlab.org>
13907             Monk Chiang  <sh.chiang04@gmail.com>
13908
13909         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13910         (nds32_expand_store_multiple): Move to ...
13911         (nds32_expand_movmemqi): Move to ...
13912         * config/nds32/nds32-memory-manipulation.c: ... here.
13913
13914 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13915             Kito Cheng  <kito@0xlab.org>
13916             Monk Chiang  <sh.chiang04@gmail.com>
13917
13918         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13919         (nds32_output_casesi_pc_relative): Move to ...
13920         (nds32_output_casesi): Move to ...
13921         (nds32_mem_format): Move to ...
13922         (nds32_output_16bit_store): Move to ...
13923         (nds32_output_16bit_load): Move to ...
13924         (nds32_output_32bit_store): Move to ...
13925         (nds32_output_32bit_load): Move to ...
13926         (nds32_output_32bit_load_s): Move to ...
13927         (nds32_output_stack_push): Move to ...
13928         (nds32_output_stack_pop): Move to ...
13929         * config/nds32/nds32-md-auxiliary.c: ... here.
13930
13931 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13932             Ling-Hua Tseng  <uranus@tinlans.org>
13933
13934         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13935         the purpose of this file.
13936
13937 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13938             Kito Cheng  <kito@0xlab.org>
13939             Monk Chiang  <sh.chiang04@gmail.com>
13940
13941         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13942         (nds32_address_cost): Move implementation to ...
13943         * config/nds32/nds32-cost.c: ... here.
13944         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13945         (nds32_address_cost_impl): Declare.
13946
13947 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13948             Kito Cheng  <kito@0xlab.org>
13949             Monk Chiang  <sh.chiang04@gmail.com>
13950
13951         * config/nds32/nds32.c
13952         (nds32_consecutive_registers_load_store_p): Move to ...
13953         (nds32_valid_multiple_load_store): Move to ...
13954         (nds32_valid_stack_push_pop): Move to ...
13955         (nds32_can_use_bclr_p): Move to ...
13956         (nds32_can_use_bset_p): Move to ...
13957         (nds32_can_use_btgl_p): Move to ...
13958         (nds32_can_use_bitci_p): Move to ...
13959         * config/nds32/nds32-predicates.c: ... here.
13960
13961 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13962             Kito Cheng  <kito@0xlab.org>
13963             Monk Chiang  <sh.chiang04@gmail.com>
13964
13965         * config/nds32/nds32.c
13966         (nds32_expand_builtin_null_ftype_reg): Move to ...
13967         (nds32_expand_builtin_reg_ftype_imm): Move to ...
13968         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13969         (nds32_init_builtins): Move implementation to ...
13970         (nds32_expand_builtin): Move implementation to ...
13971         * config/nds32/nds32-intrinsic.c: ... here.
13972         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13973         (nds32_expand_builtin_impl): Declare.
13974
13975 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13976             Kito Cheng  <kito@0xlab.org>
13977             Monk Chiang  <sh.chiang04@gmail.com>
13978
13979         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13980         (nds32_emit_section_tail_template): Move to ...
13981         (nds32_emit_isr_jmptbl_section): Move to ...
13982         (nds32_emit_isr_vector_section): Move to ...
13983         (nds32_emit_isr_reset_conten): Move to ...
13984         (nds32_check_isr_attrs_conflict): Move to ...
13985         (nds32_construct_isr_vectors_information): Move to ...
13986         (nds32_asm_file_start): Move implementation to ...
13987         (nds32_asm_file_end): Move implementation to ...
13988         * config/nds32/nds32-isr.c: ... here.
13989         * config/nds32/nds32-protos.h
13990         (nds32_check_isr_attrs_conflict): Declare.
13991         (nds32_construct_isr_vectors_information): Declare.
13992         (nds32_asm_file_start_for_isr): Declare.
13993         (nds32_asm_file_end_for_isr): Declare.
13994
13995 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
13996             Kito Cheng  <kito@0xlab.org>
13997             Monk Chiang  <sh.chiang04@gmail.com>
13998
13999         * config.gcc (nds32*): Add new modules to extra_objs.
14000         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14001         (nds32be-*-*): Likewise.
14002         * config/nds32/nds32-cost.c: New file.
14003         * config/nds32/nds32-fp-as-gp.c: New file.
14004         * config/nds32/nds32-intrinsic.c: New file.
14005         * config/nds32/nds32-isr.c: New file.
14006         * config/nds32/nds32-md-auxiliary.c: New file.
14007         * config/nds32/nds32-memory-manipulation.c: New file.
14008         * config/nds32/nds32-pipelines-auxiliary.c: New file.
14009         * config/nds32/nds32-predicates.c: New file.
14010         * config/nds32/t-nds32: New file.
14011
14012 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14013
14014         PR tree-optimization/61682
14015         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14016         using cases and when one of the operands is equal to 1.
14017
14018 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
14019
14020         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14021         ashr<mode>3): Correct mode of operands[2].
14022         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14023         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14024         Correct mode of operands[2].  Fix split condition.
14025
14026 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
14027
14028         * arm.md (arch): Add armv6_or_vfpv3.
14029         (arch_enabled): Add test for the above.
14030         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14031         on VFP9.
14032         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14033
14034 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
14035
14036         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14037         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14038         HWI 1 and negate the unsigned value.
14039         * expmed.c (expand_sdiv_pow2): For modes wider than word always
14040         use AND instead of shift.
14041         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14042
14043 2014-07-03  Marek Polacek  <polacek@redhat.com>
14044
14045         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14046         (-fsanitize=float-divide-by-zero): Move to the table with
14047         -fsanitize=undefined suboptions.
14048         (-fsanitize=float-cast-overflow): Likewise.
14049
14050 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
14051
14052         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14053         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14054         endianness.
14055
14056 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14057
14058         * loop-invariant.c (struct invariant): Add a new member: eqno;
14059         (find_identical_invariants): Update eqno;
14060         (create_new_invariant): Init eqno;
14061         (get_inv_cost): Compute comp_cost with eqno;
14062
14063 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14064
14065         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14066         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14067         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14068         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14069         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14070
14071 2014-07-02  Christian Bruel  <christian.bruel@st.com>
14072
14073         PR target/29349
14074         PR target/53513
14075         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14076         (make_preds_opaque): Delete.
14077         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14078         (commit_mode_sets): New function.
14079         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14080         Process all modes at once.
14081         * basic-block.h (pre_edge_lcm_avs): Declare.
14082         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14083         Call clear_aux_for_edges. Fix comments.
14084         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14085         (pre_edge_rev_lcm): Idem.
14086         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14087         parameter.
14088         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14089         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14090         Idem.
14091         * config/i386/i386.c (x96_emit_mode_set): Idem.
14092         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14093         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
14094         (fpscr_toggle) Disallow from delay slot.
14095         * target.def (emit_mode_set): Add prev_mode parameter.
14096         * doc/tm.texi: Regenerate.
14097
14098 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14099
14100         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14101         variable i.
14102
14103 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14104
14105         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14106         vtable_pointer_value_to_vtable): Constify.
14107         (contains_polymorphic_type_p): Declare.
14108         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14109         vtable_pointer_value_to_vtable): Constify.
14110         (contains_polymorphic_type_p): New predicate.
14111         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14112         polymorphic types.
14113         (ipa_set_ancestor_jf): Likewise.
14114         (detect_type_change): Return false in easy cases.
14115         (compute_complex_assign_jump_func): Require type to contain
14116         polymorphic type.
14117         (compute_known_type_jump_func): Likewise.
14118
14119 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
14120
14121         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14122         Remove.
14123         (type_in_anonymous_namespace_p): Constify argument.
14124         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14125         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14126         (main_odr_variant): New function.
14127         (hash_type_name): Make static; update assert; do not ICE on
14128         non-records.
14129         (types_same_for_odr): Bring here from tree.c; simplify and remove
14130         old structural comparing code that doesn't work for templates.
14131         (odr_hasher::equal): Update assert.
14132         (add_type_duplicate): Return true when bases should be computed;
14133         replace incomplete loader by complete; do not output duplicated
14134         warnings; do not ICE on non-records; set odr_violated flag.
14135         (get_odr_type): Be ready to replace incomplete type by complete
14136         one; work on ODR variants instead of main variants; reorder item
14137         in array so bases have still smaller indexes.
14138         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14139         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14140
14141 2014-07-01  Cary Coutant  <ccoutant@google.com>
14142
14143         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14144         lookup.
14145         (resolve_addr_in_expr): When replacing the rtx in a location list
14146         entry, get a new address table entry.
14147         (dwarf2out_finish): Call index_location_lists even if there are no
14148         addr_index_table entries yet.
14149
14150 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14151
14152         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14153         change for not being obvious.
14154
14155 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
14156
14157         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14158         unused argument.
14159
14160 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14161
14162         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14163         (vcagt_f64): Likewise.
14164         (vcale_f64): Likewise.
14165         (vcaled_f64): Likewise.
14166         (vcales_f32): Likewise.
14167         (vcalt_f64): Likewise.
14168         (vcaltd_f64): Likewise.
14169         (vcalts_f32): Likewise.
14170
14171 2014-07-01  Marek Polacek  <polacek@redhat.com>
14172
14173         * doc/invoke.texi: Document -Wint-conversion.
14174
14175 2014-07-01  Marek Polacek  <polacek@redhat.com>
14176
14177         PR c/58286
14178         * doc/invoke.texi: Document -Wincompatible-pointer-types.
14179
14180 2014-07-01  Martin Liska  <mliska@suse.cz>
14181
14182         IPA REF alias refactoring
14183         * cgraph.h (iterate_direct_aliases): New function.
14184         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14185         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14186         FOR_EACH_ALIAS added.
14187         (cgraph_for_node_and_aliases): Likewise.
14188         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14189         * ipa-inline.c (reset_edge_caches): Likewise.
14190         (update_caller_keys): Likewise.
14191         * trans-mem.c (ipa_tm_execute): Likewise.
14192         *varpool.c (varpool_analyze_node): Likewise.
14193         (varpool_for_node_and_aliases): Likewise.
14194         * ipa-ref.h (first_alias): New function.
14195         (last_alias): Likewise.
14196         (has_aliases_p): Likewise.
14197         * ipa-ref.c (ipa_ref::remove_reference): Removal function
14198         is sensitive to IPA_REF_ALIASes.
14199         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14200         are put at the beginning of the list.
14201         (symtab_node::iterate_direct_aliases): New function.
14202
14203 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14204
14205         Revert:
14206         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14207         type is complete.
14208         (write_ts_type_common_tree_pointers): Do not stream fields not set
14209         for incomplete types; do not stream duplicated fields for variants;
14210         sanity check that variant and type match.
14211         (write_ts_type_non_common_tree_pointers): Likewise.
14212         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14213         TYPE_SIZE whether type is complete.
14214         (lto_input_ts_type_common_tree_pointers): Do same changes as in
14215         write_ts_type_common_tree_pointers
14216         (lto_input_ts_type_non_common_tree_pointers): Likewise.
14217
14218 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
14219
14220         * var-tracking.c (add_stores): Return instead of asserting if old
14221         and new values for conditional store are the same.
14222
14223 2014-06-30  Richard Henderson  <rth@redhat.com>
14224
14225         PR rtl-opt/61608
14226         PR target/39284
14227         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14228         the cfg if there were any changes.
14229         * passes.def: Revert move of peephole2 after reorder_blocks;
14230         move duplicate_computed_gotos before peephole2.
14231
14232 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
14233
14234         * except.c (emit_note_eh_region_end): New helper function.
14235         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14236         emit EH_REGION_END note.
14237         * jump.c (cleanup_barriers): Do not split a call and its
14238         corresponding CALL_ARG_LOCATION note.
14239
14240 2014-06-30  Jeff Law  <law@redhat.com>
14241
14242         PR tree-optimization/61607
14243         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14244         deeper into the SSA_NAME_VALUE chain.
14245
14246 2014-06-30  Marek Polacek  <polacek@redhat.com>
14247
14248         * convert.c (convert_to_integer): Don't instrument conversions if the
14249         function has no_sanitize_undefined attribute.
14250         * ubsan.c: Don't run the ubsan pass if the function has
14251         no_sanitize_undefined attribute.
14252
14253 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14254
14255         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14256         -fsanitize=undefined suboptions.
14257
14258 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
14259
14260         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14261         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14262         against bigendian and adjust indices.
14263
14264 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14265
14266         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
14267
14268 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14269
14270         PR target/61633
14271         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14272         Add alternative; make early clobber.  Adjust both split patterns
14273         to use operand 0 as the working register.
14274
14275 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
14276
14277         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14278         as ira_object_id_map might be NULL, or 1.
14279
14280 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14281
14282         * loop-invariant.c (get_inv_cost): Handle register class.
14283         (gain_for_invariant): Check the register pressure of the inv
14284         and its overlapped register class, other than all.
14285
14286 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
14287
14288         * doc/invoke.texi (Optimize Options): Fix descriptions of
14289         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14290
14291 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
14292
14293         * doc/extend.texi (Function Attributes): Update 'naked' attribute
14294         documentation.
14295
14296 2014-06-29  Tobias Grosser <tobias@grosser.es>
14297
14298         PR bootstrap/61650
14299         * graphite-isl-ast-to-gimple.c: Add missing guards.
14300
14301 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14302
14303         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14304         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14305         * flag-types.h: Add new enum fgraphite_generator.
14306         * graphite-isl-ast-to-gimple.c: New.
14307         * graphite-isl-ast-to-gimple.h: New.
14308         * graphite.c (graphite_transform_loops): Add choice of Graphite
14309         code generator, which depends on flag_graphite_code_gen.
14310
14311 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14312
14313         * graphite-dependences.c (subtract_commutative_associative_deps):
14314         Add NULL checking of the following variables: must_raw_no_source,
14315         may_raw_no_source, must_war_no_source, may_war_no_source,
14316         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14317         must_war, may_war, must_waw, may_waw.
14318
14319 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
14320
14321         * graphite-clast-to-gimple.c: gloog is renamed to
14322         graphite_regenerate_ast_cloog.  gloog_error is renamed to
14323         graphite_regenerate_error.
14324         * graphite-clast-to-gimple.h: The definition of the struct
14325         bb_pbb_def is moved to graphite-htab.h.
14326         Add inclusion of the hash-table.h.
14327         * graphite-htab.h: The declaration of the function gloog is moved
14328         to graphite-clast-to-gimple.h and renamed to
14329         graphite_regenerate_ast_cloog.
14330         * graphite.c (graphite_transform_loops): gloog is renamed
14331         to graphite_regenerate_ast_cloog.
14332
14333 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14334
14335         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14336         type is complete.
14337         (write_ts_type_common_tree_pointers): Do not stream fields not set
14338         for incomplete types; do not stream duplicated fields for variants;
14339         sanity check that variant and type match.
14340         (write_ts_type_non_common_tree_pointers): Likewise.
14341         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14342         TYPE_SIZE whether type is complete.
14343         (lto_input_ts_type_common_tree_pointers): Do same changes as in
14344         write_ts_type_common_tree_pointers
14345         (lto_input_ts_type_non_common_tree_pointers): Likewise.
14346
14347 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14348
14349         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14350
14351 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14352
14353         * tree-inline.c (remap_type_1): Do not duplicate fields
14354         that are shared in between type and its main variant.
14355
14356 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14357
14358         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14359         of the type.
14360         (ipa_set_ancestor_jf) Likewise.
14361         (check_stmt_for_type_change): Check that we work on main variant.
14362         (detect_type_change): Look into main variant.
14363         (compute_known_type_jump_func): Check that main variant has BINFO.
14364
14365 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14366
14367         * ipa-devirt.c (set_type_binfo): New function.
14368         (add_type_duplicate): Use it.
14369         (get_odr_type): Sanity check that binfos points to main variants.
14370         (get_class_context): Be sure the context's outer_type is main variant.
14371         (contains_type_p): Walk main variant.
14372         (get_polymorphic_call_info_for_decl): Set outer_type to be
14373         main variant.
14374         (get_polymorphic_call_info): Likewise.
14375         (possible_polymorphic_call_targets): Sanity check that we operate
14376         on main variant.
14377
14378 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
14379
14380         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14381
14382 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14383
14384         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14385         accidental change due to wide-int branch merge.
14386
14387 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14388
14389         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14390         compressed debug support.
14391         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14392         * configure: Regenerate.
14393         * config.in: Regenerate.
14394         * common.opt (compressed_debug_sections): New enum.
14395         (gz, gz=): New options.
14396         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14397         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14398         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14399         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14400         LINK_COMPRESS_DEBUG_SPEC.
14401         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14402         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14403         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14404         (Debugging Options): Document -gz[=type].
14405
14406 2014-06-27  Martin Jambor  <mjambor@suse.cz>
14407
14408         PR ipa/61160
14409         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14410         args_to_skip, use those from node instead.  Copy args_to_skip and
14411         combined_args_to_skip from node to the new thunk.
14412         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14413         (cgraph_create_virtual_clone): Moved computation of
14414         combined_args_to_skip...
14415         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14416
14417 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
14418
14419         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14420         redundant diagnostic machinary.
14421
14422 2014-06-27  Richard Biener  <rguenther@suse.de>
14423
14424         * tree-ssa-math-opts.c (bswap_replace): Fix
14425         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14426
14427 2014-06-27  Martin Liska  <mliska@suse.cz>
14428
14429         * gimple.h (gimple_location_safe): New function introduced.
14430         * cgraphunit.c (walk_polymorphic_call_targets): Usage
14431         of gimple_location_safe replaces gimple_location.
14432         (gimple_fold_call): Likewise.
14433         * ipa-devirt.c (ipa_devirt): Likewise.
14434         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14435         * ipa.c (walk_polymorphic_call_targets): Likewise.
14436         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14437
14438 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
14439
14440         PR tree-optimization/57233
14441         PR tree-optimization/61299
14442         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14443         functions.
14444         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
14445         would be lowered to scalar shifts, check if corresponding
14446         shifts and vector BIT_IOR_EXPR are supported and don't lower
14447         or lower just to narrower vector type in that case.
14448         * expmed.c (expand_shift_1): Fix up handling of vector
14449         shifts and rotates.
14450
14451 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
14452
14453         PR target/61586
14454         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14455
14456 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
14457
14458         * doc/invoke.texi (-fsemantic-interposition): Document.
14459         * common.opt (fsemantic-interposition): New flag.
14460         * varasm.c (decl_replaceable_p): Use it.
14461
14462 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14463
14464         PR target/61542
14465         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14466         extraction other than index 3.
14467
14468 2014-06-26  Teresa Johnson  <tejohnson@google.com>
14469
14470         * doc/invoke.texi: Fix typo.
14471         * dumpfile.c: Add support for documented -fdump-* options
14472         optimized/missed/note/optall.
14473
14474 2014-06-26  Martin Jambor  <mjambor@suse.cz>
14475
14476         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14477         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14478         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14479         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14480         * opts.c (default_options_optimization): Set
14481         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14482         * doc/invoke.texi (allow-load-data-races)
14483         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14484         (allow-store-data-races): Document the new default.
14485
14486 2014-06-26  Martin Jambor  <mjambor@suse.cz>
14487
14488         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14489         renamed to ipa_impossible_devirt_target.  Fix typo.
14490         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14491         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14492         ipa_impossible_devirt_target.
14493
14494 2014-06-26  Richard Biener  <rguenther@suse.de>
14495
14496         PR tree-optimization/61607
14497         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14498         explaining why we restrict copies on loop depth.
14499         * tree-ssa-dom.c (cprop_operand): Remove restriction on
14500         on loop depth.
14501         (record_equivalences_from_phis): Instead add it here.
14502
14503 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
14504
14505         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14506         (LTO_WRAPPER_OBJS): New variable.
14507         (lto-wrapper$(exeext)): Use it.
14508         * collect2.c: Include "collect-utils.h".
14509         (verbose, debug): Remove variables.
14510         (at_file_supplied): No longer static.
14511         (tool_name): New variable.
14512         (do_wait, fork_execute, maybe_unlink): Don't declare.
14513         (tool_cleanup): No longer static.
14514         (notice): Remove function.
14515         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14516         fork_execute calls.
14517         (collect_wait, do_wait, collect_execute): Remove functions.
14518         (maybe_unlink): No longer static.
14519         * collect2.h (verbose, debug): Don't declare.
14520         (at_file_supplied): Declare.
14521         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
14522         changed.
14523         (collect_execute): Replace with implementation from collect2, plus a
14524         new arg use_atfile.  All callers changed.
14525         (collect_wait): Replace with implementation from collect2.
14526         (maybe_unlink_file): Remove function.
14527         (fork_execute): Replace with implementation from collect2, plus a
14528         new arg use_atfile.  All callers changed.
14529         (do_wait): Add call to utils_cleanup to the error path.
14530         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14531         (tool_cleanup): Adjust declarations.
14532         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14533         * tlink.c: Include "collect-utils.h".
14534         (tlink_execute): New arg use_atfile.  All callers changed.
14535         (tlink_init, tlink_execute): Remove declarations.
14536
14537         * collect-utils.c (save_temps): New variable.
14538         (do_wait): Use it instead of debug.  Use fatal_error.
14539         * collect-utils.h (save_temps): Declare.
14540         * collect2.c (verbose): Rename from vflag.  All uses changed.
14541         (tool_cleanup): New function, copied from collect_atexit.
14542         (collect_atexit, handler): Just call it.
14543         * collect2.h (verbose): Declaration renamed from vflag.
14544         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14545         debug.
14546
14547         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14548         (lto-wrapper$(exeext)): Link with collect-utils.o.
14549         * collect-utils.c: New file.
14550         * collect-utils.h: New file.
14551         * lto-wrapper.c: Include "collect-utils.h".
14552         (args_name): Delete variable.
14553         (tool_name): New variable.
14554         (tool_cleanup): New function.
14555         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
14556         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14557         (fork_execute): Remove functions.
14558
14559 2014-06-26  Nick Clifton  <nickc@redhat.com>
14560
14561         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14562
14563         * doc/extend.texi (Function Attributes): Fix typo in description
14564         of RX vector attribute.
14565
14566 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14567
14568         * config.gcc (supported_defaults): Error when passing either
14569         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14570
14571 2014-06-26  Richard Biener  <rguenther@suse.de>
14572
14573         * tree-ssa-dom.c (cprop_operand): Remove restriction on
14574         propagating volatile pointers.
14575
14576 2014-06-26  Richard Biener  <rguenther@suse.de>
14577
14578         PR tree-optimization/61607
14579         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14580         loop if we redirected its latch edge.
14581         (thread_block_1): Do not cancel loops prematurely.
14582
14583 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
14584
14585         * toplev.c (backend_init_target): Move init_emit_regs and
14586         init_regs to...
14587         (backend_init) ... here; skip ira_init_once and backend_init_target.
14588         (target_reinit) ... and here; clear
14589         this_target_rtl->lang_dependent_initialized.
14590         (lang_dependent_init_target): Clear
14591         this_target_rtl->lang_dependent_initialized;
14592         break out rtl initialization to ...
14593         (initialize_rtl): ... here; call also backend_init_target
14594         and ira_init_once.
14595         * toplev.h (initialize_rtl): New function.
14596         * function.c: Include toplev.h
14597         (init_function_start): Call initialize_rtl.
14598         * rtl.h (target_rtl): Add target_specific_initialized,
14599         lang_dependent_initialized.
14600
14601 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
14602             Jakub Jelinek  <jakub@redhat.com>
14603
14604         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14605
14606 2014-06-25  Tom de Vries  <tom@codesourcery.com>
14607
14608         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14609
14610 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14611
14612         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14613         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14614         Issue a strict overflow warning if appropriate.
14615
14616 2014-06-25  Martin Liska  <mliska@suse.cz>
14617
14618         IPA REF refactoring
14619         * Makefile.in: Removed header file (ipa-ref-inline.h).
14620         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14621         called.
14622         (cgraph_speculative_call_info): Likewise.
14623         (cgraph_for_node_thunks_and_aliases): Likewise.
14624         (cgraph_for_node_and_aliases): Likewise.
14625         (verify_cgraph_node): Likewise.
14626         * cgraph.h: Batch of IPA REF functions become member functions of
14627         symtab_node: add_reference, maybe_add_reference, clone_references,
14628         clone_referring, clone_reference, find_reference,
14629         remove_stmt_references, remove_all_references,
14630         remove_all_referring, dump_references, dump_referring,
14631         has_alias_p, iterate_reference, iterate_referring.
14632         * cgraphbuild.c (record_reference): New IPA REF function used.
14633         (record_type_list): Likewise.
14634         (record_eh_tables): Likewise.
14635         (mark_address): Likewise.
14636         (mark_load): Likewise.
14637         (mark_store): Likewise.
14638         (pass_build_cgraph_edges): Likewise.
14639         (rebuild_cgraph_edge): Likewise.
14640         (cgraph_rebuild_references): Likewise.
14641         (pass_remove_cgraph_callee_edges): Likewise.
14642         * cgraphclones.c (cgraph_clone_node): Likewise.
14643         (cgraph_create_virtual_clone): Likewise.
14644         (cgraph_materialize_clone): Likewise.
14645         (cgraph_materialize_all_clones): Likewise.
14646         * cgraphunit.c (cgraph_reset_node): Likewise.
14647         (cgraph_reset_node): Likewise.
14648         (analyze_function): Likewise.
14649         (assemble_thunks_and_aliases): Likewise.
14650         (expand_function): Likewise.
14651         * ipa-comdats.c (propagate_comdat_group): Likewise.
14652         (enqueue_references): Likewise.
14653         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14654         (create_specialized_node): Likewise.
14655         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14656         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14657         * ipa-inline.c (reset_edge_caches): Likewise.
14658         (update_caller_keys): Likewise.
14659         (execute): Likewise.
14660         * ipa-prop.c (remove_described_reference): Likewise.
14661         (propagate_controlled_uses): Likewise.
14662         (ipa_edge_duplication_hook): Likewise.
14663         (ipa_modify_call_arguments): Likewise.
14664         * ipa-pure-const.c (propagate_pure_const): Likewise.
14665         * ipa-ref-inline.h: Header file removed, functions moved
14666         to symtab_node class.
14667         * ipa-ref.c (remove_reference): New class member function.
14668         (cannot_lead_to_return): New class member function.
14669         (referring_ref_list): Likewise.
14670         (referred_ref_list): Likewise.
14671         Rest of functions moved to symtab_node class.
14672         * ipa-ref.h: New member functions remove_reference,
14673         cannot_lead_to_return, referring_ref_list, referred_ref_list added
14674         to ipa_ref class.
14675         ipa_ref_list class has new member functions: first_reference,
14676         first_referring, clear, nreferences.
14677         * ipa-reference.c (analyze_function): New IPA REF function used.
14678         (write_node_summary_p): Likewise.
14679         (ipa_reference_write_optimization_summary): Likewise.
14680         * ipa-split.c (split_function): Likewise.
14681         * ipa-utils.c (ipa_reverse_postorder): Likewise.
14682         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14683         (function_and_variable_visibility): Likewise.
14684         * ipa.c (has_addr_references_p): Likewise.
14685         (process_references): Argument type changed.
14686         (symtab_remove_unreachable_nodes): New IPA REF function used.
14687         (process_references): Likewise.
14688         (set_writeonly_bit): Likewise.
14689         * lto-cgraph.c: Implementation of new symtab_node member functions
14690         that uses new IPA REF functions.
14691         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14692         function used.
14693         * lto-streamer-out.c (output_symbol_p): Likewise.
14694         * lto-streamer.h (referenced_from_this_partition_p): Argument type
14695         changed.
14696         * symtab.c: Implementation of new IPA REF API.
14697         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14698         (ipa_tm_create_version): Likewise.
14699         (ipa_tm_execute): Likewise.
14700         * tree-emutls.c (gen_emutls_addr): Likewise.
14701         * tree-inline.c (copy_bb): Likewise.
14702         (delete_unreachable_blocks_update_callgraph): Likewise.
14703         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14704         (varpool_for_node_and_aliases): Likewise.
14705
14706 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
14707
14708         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14709
14710 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
14711
14712         PR bootstrap/61598
14713         * fold-const.c (fold_checksum_tree): Use a hash_table of const
14714         tree_node * instead of tree_node *.
14715         (fold): Adjust.
14716         (print_fold_checksum): Likewise.
14717         (fold_check_failed): Likewise.
14718         (debug_fold_checksum): Likewise.
14719         (fold_build1_stat_loc): Likewise.
14720         (fold_build2_stat_loc): Likewise.
14721         (fold_build3_stat_loc): Likewise.
14722         (fold_build_call_array_loc): Likewise.
14723
14724 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
14725
14726         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14727         implementation with call to...
14728         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14729         function.
14730         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14731         Declare.
14732
14733 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
14734
14735         PR tree-optimization/57742
14736         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14737         after replacing the statement.
14738
14739 2014-06-25  Nick Clifton  <nickc@redhat.com>
14740
14741         * config/v850/v850.c (GHS_default_section_names): Change to const
14742         char * type.
14743         (GHS_current_section_names): Likewise.
14744         (v850_insert_attributes): Do not build strings, just assign the
14745         names directly.  Change the type of 'chosen_section' to const
14746         char*.
14747         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14748         directly to the array entry.
14749         * config/v850/v850.h (GHS_default_section_names): Change to const
14750         char * type.
14751         (GHS_current_section_names): Likewise.
14752
14753 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
14754
14755         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14756         (LANG_HOOKS_DECLS): Add it.
14757         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14758         has correct type.
14759         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14760         * langhooks.h (struct lang_hooks_for_decls): Add
14761         omp_clause_linear_ctor hook.
14762         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14763         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
14764         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
14765         combined simd loop use omp_clause_linear_ctor hook.
14766
14767 2014-06-24  Cong Hou  <congh@google.com>
14768
14769         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14770         pattern recognition.
14771         (type_conversion_p): PROMOTION is true if it's a type promotion
14772         conversion, and false otherwise.  Return true if the given expression
14773         is a type conversion one.
14774         * tree-vectorizer.h: Adjust the number of patterns.
14775         * tree.def: Add SAD_EXPR.
14776         * optabs.def: Add sad_optab.
14777         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14778         * expr.c (expand_expr_real_2): Likewise.
14779         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14780         * gimple.c (get_gimple_rhs_num_ops): Likewise.
14781         * optabs.c (optab_for_tree_code): Likewise.
14782         * tree-cfg.c (estimate_operator_cost): Likewise.
14783         * tree-ssa-operands.c (get_expr_operands): Likewise.
14784         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14785         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14786         * doc/generic.texi: Add document for SAD_EXPR.
14787         * doc/md.texi: Add document for ssad and usad.
14788
14789 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14790
14791         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14792         qualification in cast.
14793
14794 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
14795
14796         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14797         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14798         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14799         (tree_function_decl): ... here.
14800         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14801         streaming of vindex to ...
14802         (write_ts_function_decl_tree_pointers): ... here.
14803         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14804         Do not stream DECL_VINDEX.
14805         (lto_input_ts_function_decl_tree_pointers): Stream it here.
14806
14807 2014-06-24  Catherine Moore  <clm@codesourcery.com>
14808             Sandra Loosemore  <sandra@codesourcery.com>
14809
14810         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14811         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14812         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14813
14814 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
14815
14816         * doc/invoke.texi (Warning Options): Remove duplicated
14817         -Wmaybe-uninitialized.
14818
14819 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
14820
14821         PR tree-optimization/57742
14822         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14823         (handle_builtin_malloc, handle_builtin_memset): New functions.
14824         (strlen_optimize_stmt): Call them.
14825         * passes.def: Move strlen after loop+dom but before vrp.
14826
14827 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
14828
14829         PR target/61570
14830         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14831         model family 6 CPU with has_longmode never use a CPU without
14832         64-bit support.
14833
14834 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14835
14836         PR target/61570
14837         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14838         the last change.
14839
14840 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14841
14842         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14843         * dominance.c (iterate_fix_dominators): Use hash_map instead of
14844         pointer_map.
14845         * hash-map.h: New file.
14846         * ipa-comdats.c: Use hash_map instead of pointer_map.
14847         * ipa.c: Likewise.
14848         * lto-section-out.c: Adjust.
14849         * lto-streamer.h: Replace pointer_map with hash_map.
14850         * symtab.c (verify_symtab): Likewise.
14851         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14852         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14853         * tree-streamer.h: Likewise.
14854         * tree-streamer.c: Adjust.
14855         * pointer-set.h: Remove pointer_map.
14856
14857 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14858
14859         * hash-table.h: Add a template arg to choose between storing values
14860         and storing pointers to values, and then provide partial
14861         specializations for both.
14862         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14863         should store, not the type values should point to.
14864         * tree-into-ssa.c (var_info_hasher): Likewise.
14865         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14866         * tree-complex.c: Adjust.
14867         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14868         table instead of int_tree_map *.
14869         * tree-parloops.c: Adjust.
14870         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14871         type is being stored.
14872         * tree-vectorizer.c: Adjust.
14873
14874 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
14875
14876         * hash-table.h: Remove a layer of indirection from hash_table so that
14877         it contains the hash table's data instead of a pointer to the data.
14878         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14879         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14880         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14881         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14882         fold-const.c, gcse.c, ggc-common.c,
14883         gimple-ssa-strength-reduction.c, gimplify.c,
14884         graphite-clast-to-gimple.c, graphite-dependences.c,
14885         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14886         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14887         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14888         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14889         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14890         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14891         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14892         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14893         tree-ssa-live.c, tree-ssa-loop-im.c,
14894         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14895         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14896         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14897         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14898         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14899         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14900         vtable-verify.c, vtable-verify.h: Adjust.
14901
14902 2014-06-24  Richard Biener  <rguenther@suse.de>
14903
14904         PR tree-optimization/61572
14905         * tree-ssa-sink.c (statement_sink_location): Do not sink
14906         loads from hard registers.
14907
14908 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
14909
14910         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14911         not mentioned in clauses use private clause if the iterator is
14912         declared in #pragma omp for simd, and when adding lastprivate
14913         instead, add it to the outer #pragma omp for too.  Diagnose
14914         if the variable is private in outer context.  For simd collapse > 1
14915         loops, replace all iterators with temporaries.
14916         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14917         same even in collapse > 1 loops.
14918
14919         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14920         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14921         non-NULL.
14922         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14923         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14924         non-NULL.
14925         (gimplify_adjust_omp_clauses): Likewise.
14926         * omp-low.c (lower_rec_simd_input_clauses,
14927         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14928         safelen the same as safelen(1).
14929         * tree-nested.c (convert_nonlocal_omp_clauses,
14930         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
14931         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14932         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14933         Fixup handling of GIMPLE_OMP_TARGET.
14934         (convert_tramp_reference_stmt, convert_gimple_call): Handle
14935         GIMPLE_OMP_TARGET.
14936
14937 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
14938
14939         PR tree-optimization/61554
14940         * tree-ssa-propagate.c: Include "bitmap.h".
14941         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14942         properly update constructor/destructor.
14943         (substitute_and_fold_dom_walker::before_dom_children):
14944         Remove call to gimple_purge_dead_eh_edges, add bb->index to
14945         need_eh_cleaup instead.
14946         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14947         need_eh_cleanup.
14948
14949 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
14950
14951         * varpool.c (dump_varpool_node): Dump used_by_single_function.
14952         * tree-pass.h (make_pass_ipa_single_use): New pass.
14953         * cgraph.h (used_by_single_function): New flag.
14954         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14955         Stream it.
14956         * passes.def (pass_ipa_single_use): Scedule.
14957         * ipa.c (BOTTOM): New macro.
14958         (meet): New function
14959         (propagate_single_user): New function.
14960         (ipa_single_use): New function.
14961         (pass_data_ipa_single_use): New pass.
14962         (pass_ipa_single_use): New pass.
14963         (pass_ipa_single_use::gate): New gate.
14964         (make_pass_ipa_single_use): New function.
14965
14966 2014-06-23  Kai Tietz  <ktietz@redhat.com>
14967
14968         PR target/39284
14969         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14970         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14971
14972 2014-06-23  Richard Biener  <rguenther@suse.de>
14973
14974         * tree-ssa-loop.c (gate_loop): New function.
14975         (pass_tree_loop::gate): Call it.
14976         (pass_data_tree_no_loop, pass_tree_no_loop,
14977         make_pass_tree_no_loop): New.
14978         * tree-vectorizer.c: Include tree-scalar-evolution.c
14979         (pass_slp_vectorize::execute): Initialize loops and SCEV if
14980         required.
14981         (pass_slp_vectorize::clone): New method.
14982         * timevar.def (TV_TREE_NOLOOP): New.
14983         * tree-pass.h (make_pass_tree_no_loop): Declare.
14984         * passes.def (pass_tree_no_loop): New pass group with
14985         SLP vectorizer.
14986
14987 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
14988
14989         PR target/61570
14990         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14991         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14992
14993 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
14994
14995         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14996         "yes" where needed.
14997
14998 2014-06-23  Alan Modra  <amodra@gmail.com>
14999
15000         PR bootstrap/61583
15001         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15002         to zero on debug statements.
15003
15004 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15005
15006         PR target/60825
15007         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15008         Ignore third operand if present by marking qualifier_internal.
15009
15010         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15011
15012         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15013         vector extension.
15014         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15015         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15016         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15017         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15018         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15019         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15020         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15021         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15022         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15023         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15024         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15025         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15026         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15027         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15028         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15029         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15030         logic in GCC vector extensions
15031
15032         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15033         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15034         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15035         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15036         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15037         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15038         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15039         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15040         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15041         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15042
15043         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15044
15045         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15046         extensions.
15047
15048         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15049         (vget_low_s64): Use __GET_LOW macro.
15050         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15051         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15052         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15053         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15054         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15055
15056         (vcombine_s64): Use GCC vector extensions; remove cast.
15057         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15058         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15059         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15060         Fix type signature; remove cast.
15061
15062 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
15063
15064         PR target/60825
15065         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15066         V1DFmode.
15067         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15068         add V1DFmode
15069         (BUILTIN_VD1): New.
15070         (BUILTIN_VD_RE): Remove.
15071         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15072         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15073         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15074         variant but not df.
15075         (vreinterpretv1df*, vreinterpret*v1df): New.
15076         (vreinterpretdf*, vreinterpret*df): Remove.
15077         * config/aarch64/aarch64-simd.md (aarch64_create,
15078         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15079         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15080         (VD1): New.
15081         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15082         (vcreate_f64): Remove cast, use v1df builtin.
15083         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15084         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15085         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15086         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15087         vmov_n_f64, vst1_f64): Use gcc vector extensions.
15088         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15089         add range check using __builtin_aarch64_im_lane_boundsi.
15090         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15091         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15092         type signature, use gcc vector extensions.
15093         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15094         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15095         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15096         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15097         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15098         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15099         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15100         vreinterpret_u64_f64): Use v1df builtin not df.
15101
15102 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
15103
15104         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15105         vector registers.
15106
15107 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
15108
15109         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15110         priority directly.
15111
15112 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15113
15114         * loop-invariant.c (pre_check_invariant_p): New function.
15115         (find_invariant_insn): Call pre_check_invariant_p.
15116
15117 2014-06-22  Richard Henderson  <rth@redhat.com>
15118
15119         PR target/61565
15120         * compare-elim.c (struct comparison): Add eh_note.
15121         (find_comparison_dom_walker::before_dom_children): Don't eliminate
15122         a redundant comparison in a different EH region.  Purge EH edges if
15123         necessary.
15124
15125 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15126
15127         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15128         (var_shift): Use it.
15129         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15130         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15131         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15132         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15133         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15134         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15135         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15136         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15137         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15138         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15139         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15140         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15141         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15142         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15143         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15144         *rotldi3_internal15be): Use the new attribute.  Merge register and
15145         integer alternatives.
15146
15147 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15148
15149         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15150         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15151         split, *ashrdi3_internal3 and split): Delete, merge into...
15152         (ashr<mode>3): New expander.
15153         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15154         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
15155
15156 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15157
15158         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15159         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15160         *rotldi3_internal3 and split): Delete, merge into...
15161         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15162         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
15163         Use "rotlw" extended mnemonic.
15164
15165 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15166
15167         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15168         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15169         and split, *ashldi3_internal3 and split): Delete, merge into...
15170         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15171         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
15172
15173 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15174
15175         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15176         (lshrsi3, two anonymous define_insns and define_splits,
15177         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15178         *lshrdi3_internal3 and split): Delete, merge into...
15179         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15180         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
15181
15182 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
15183
15184         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15185         Remove "O" alternative.
15186
15187 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
15188
15189         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15190         (mips_move_from_gpr_cost): Likewise.
15191         (mips_register_move_cost): Update accordingly.
15192         (mips_secondary_reload_class): Remove name of in_p.
15193
15194 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
15195
15196         PR target/61503
15197         * config/i386/i386.md (x86_64_shrd, x86_shrd,
15198         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15199
15200 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15201
15202         * config/nios2/nios2.c: Include "builtins.h".
15203
15204 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15205
15206         * cgraph.h (tls_model_names): New variable.
15207         * print-tree.c (print_node): Simplify.
15208         * varpool.c (tls_model_names): New variable.
15209         (dump_varpool_node): Output tls model.
15210
15211 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15212
15213         * ipa-visibility.c (function_and_variable_visibility): Disable
15214         temporarily local aliases for some targets.
15215
15216 2014-06-20  Marek Polacek  <polacek@redhat.com>
15217
15218         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15219         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15220         into SANITIZE_UNDEFINED.
15221         * doc/invoke.texi: Describe -fsanitize=bounds.
15222         * gimplify.c (gimplify_call_expr): Add gimplification of internal
15223         functions created in the FEs.
15224         * internal-fn.c: Move "internal-fn.h" after "tree.h".
15225         (expand_UBSAN_BOUNDS): New function.
15226         * internal-fn.def (UBSAN_BOUNDS): New internal function.
15227         * internal-fn.h: Don't define internal functions here.
15228         * opts.c (common_handle_option): Add -fsanitize=bounds.
15229         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15230         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15231         * tree-core.h: Define internal functions here.
15232         (struct tree_base): Add ifn field.
15233         * tree-pretty-print.c: Include "internal-fn.h".
15234         (dump_generic_node): Handle functions without CALL_EXPR_FN.
15235         * tree.c (get_callee_fndecl): Likewise.
15236         (build_call_expr_internal_loc): New function.
15237         * tree.def (CALL_EXPR): Update description.
15238         * tree.h (CALL_EXPR_IFN): Define.
15239         (build_call_expr_internal_loc): Declare.
15240         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15241         types.
15242         (ubsan_type_descriptor): Change bool parameter to enum
15243         ubsan_print_style.  Adjust the code.  Add handling of
15244         UBSAN_PRINT_ARRAY.
15245         (ubsan_expand_bounds_ifn): New function.
15246         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15247         (ubsan_build_overflow_builtin): Likewise.
15248         (instrument_bool_enum_load): Likewise.
15249         (ubsan_instrument_float_cast): Likewise.
15250         * ubsan.h (enum ubsan_print_style): New enum.
15251         (ubsan_expand_bounds_ifn): Declare.
15252         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
15253
15254 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
15255
15256         * config/rs6000/rs6000.md: Append `DONE' to preparation
15257         statements of `bswap' pattern splitters.
15258
15259 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15260
15261         * target.def (call_fusage_contains_non_callee_clobbers): Update
15262         definition.
15263         * doc/tm.texi: Regenerate.
15264
15265 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15266             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15267
15268         PR sanitizer/61547
15269         * asan.c (instrument_strlen_call): Fixed instrumentation of
15270         trailing byte.
15271
15272 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15273
15274         PR ipa/61540
15275         * ipa-prop.c (impossible_devirt_target): New function.
15276         (try_make_edge_direct_virtual_call): Use it, also instead of
15277         asserting.
15278
15279 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
15280             Max Ostapenko  <m.ostapenko@partner.samsung.com>
15281
15282         PR sanitizer/61530
15283         * asan.c (build_check_stmt): Add condition.
15284
15285 2014-06-20  Martin Jambor  <mjambor@suse.cz>
15286
15287         PR ipa/61211
15288         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15289         expanded clones.
15290
15291 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15292
15293         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15294         Update comments.
15295         (VCONQ): Make comment more helpful.
15296         (VCON): Delete.
15297         * config/aarch64/aarch64-simd.md
15298         (aarch64_sqdmulh_lane<mode>):
15299         Use VCOND for operands 2.  Update lane checking and flipping logic.
15300         (aarch64_sqrdmulh_lane<mode>): Likewise.
15301         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15302         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15303         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15304         attribute of operand 3 to VCOND.
15305         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15306         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15307         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15308         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15309         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15310         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15311         define_insn.
15312         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15313         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15314         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15315         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15316         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15317         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15318         operand to VCOND.  Update lane flipping and bounds checking logic.
15319         (aarch64_sqdmlal2_lane<mode>): Likewise.
15320         (aarch64_sqdmlsl_lane<mode>): Likewise.
15321         (aarch64_sqdmull_lane<mode>): Likewise.
15322         (aarch64_sqdmull2_lane<mode>): Likewise.
15323         (aarch64_sqdmlal_laneq<mode>):
15324         Replace VCON usage with VCONQ.
15325         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15326         (aarch64_sqdmlal2_laneq<mode>): Emit
15327         aarch64_sqdmlal2_laneq<mode>_internal insn.
15328         Replace VCON with VCONQ.
15329         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15330         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15331         (aarch64_sqdmull_laneq<mode>): Emit
15332         aarch64_sqdmull_laneq<mode>_internal insn.
15333         Replace VCON with VCONQ.
15334         (aarch64_sqdmull2_laneq<mode>): Emit
15335         aarch64_sqdmull2_laneq<mode>_internal insn.
15336         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15337         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15338         of 3rd argument to int16x4_t.
15339         (vqdmlalh_lane_s16): Likewise.
15340         (vqdmlslh_lane_s16): Likewise.
15341         (vqdmull_high_lane_s16): Likewise.
15342         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15343         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15344         (vqdmlsl_lane_s16): Likewise.
15345         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15346         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15347         (vqdmlals_lane_s32): Likewise.
15348         (vqdmlsls_lane_s32): Likewise.
15349         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15350         (vqdmulls_lane_s32): Likewise.
15351         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15352         (vqdmlsl_lane_s32): Likewise.
15353         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15354         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15355         (vqrdmulhh_lane_s16): Likewise.
15356         (vqdmlsl_high_lane_s16): Likewise.
15357         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15358         (vqdmlsl_high_lane_s32): Likewise.
15359         (vqrdmulhs_lane_s32): Likewise.
15360
15361 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15362
15363         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15364         get_call_reg_set_usage.
15365
15366 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15367
15368         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15369         it contains all call_used_regs.
15370
15371 2014-06-20  Tom de Vries  <tom@codesourcery.com>
15372
15373         * final.c (collect_fn_hard_reg_usage): Add and use variable
15374         function_used_regs.
15375
15376 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
15377
15378         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15379         (set_init_priority, get_init_priority, set_fini_priority,
15380         get_fini_priority): New methods.
15381         * tree.c (init_priority_for_decl): Remove.
15382         (init_ttree): Do not initialize init priority.
15383         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15384         (decl_priority_info): Remove.
15385         (decl_init_priority_insert): Rewrite.
15386         (decl_fini_priority_insert): Rewrite.
15387         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15388         tree_priority_map_marked_p): Remove.
15389         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15390         * lto-streamer-out.c (hash_tree): Do not hash priorities.
15391         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15392         not output priorities.
15393         (pack_ts_function_decl_value_fields): Likewise.
15394         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15395         not input priorities.
15396         (unpack_ts_function_decl_value_fields): Likewise.
15397         * symtab.c (symbol_priority_map): Declare.
15398         (init_priority_hash): Declare.
15399         (symtab_unregister_node): Unregister from priority hash, too.
15400         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15401         New methods.
15402         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15403         (symbol_priority_info): New function.
15404         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15405         New methods.
15406         * tree-core.h (tree_priority_map): Remove.
15407
15408 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
15409
15410         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15411         0xff to uint64_t before shifting it up.
15412
15413 2014-06-20  Julian Brown  <julian@codesourcery.com>
15414             Chung-Lin Tang  <cltang@codesourcery.com>
15415
15416         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15417         TARGET_THUMB1_ONLY. Add comments.
15418
15419 2014-06-19  Tom de Vries  <tom@codesourcery.com>
15420
15421         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15422         return type to void.
15423         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15424
15425 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15426
15427         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15428         as "move", from depends_on.
15429
15430 2014-06-19  Terry Guo  <terry.guo@arm.com>
15431
15432         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15433         stage.
15434
15435 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
15436
15437         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15438         Remove cr5.
15439         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
15440
15441 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15442
15443         PR target/61550
15444         * config/sh/sh.c (prepare_move_operands): Don't process TLS
15445         addresses here if reload in progress or completed.
15446
15447 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15448
15449         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15450         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15451         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15452         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15453         (mips_register_priority): New function that implements the target
15454         hook TARGET_REGISTER_PRIORITY.
15455         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15456         (mips_lra_p): Likewise for TARGET_LRA_P.
15457         (TARGET_REGISTER_PRIORITY): Define macro.
15458         (TARGET_SPILL_CLASS): Likewise.
15459         (TARGET_LRA_P): Likewise.
15460         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15461         classes.
15462         (REG_CLASS_NAMES): Likewise.
15463         (REG_CLASS_CONTENTS): Likewise.
15464         (BASE_REG_CLASS): Use M16_SP_REGS.
15465         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15466         New set attribute to enable alternatives depending on the register
15467         allocator used.
15468         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15469         (*lea64): Disable pattern for MIPS16.
15470         * config/mips/mips.opt (mlra): New option.
15471
15472 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15473
15474         * lra-constraints.c (base_to_reg): New function.
15475         (process_address): Use new function.
15476
15477 2014-06-18  Tom de Vries  <tom@codesourcery.com>
15478
15479         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15480         * config/aarch64/aarch64.c
15481         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15482         (aarch64_emit_call_insn): New function.
15483         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15484         of emit_call_insn.
15485         * config/aarch64/aarch64.md (define_expand "call_internal")
15486         (define_expand "call_value_internal", define_expand "sibcall_internal")
15487         (define_expand "sibcall_value_internal"): New.
15488         (define_expand "call", define_expand "call_value")
15489         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15490         expand variant and aarch64_emit_call_insn.
15491
15492 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
15493             Tom de Vries  <tom@codesourcery.com>
15494
15495         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15496         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15497         Redefine to true.
15498         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
15499         clobbers to CALL_INSN_FUNCTION_USAGE.
15500         (define_expand "sibcall_internal")
15501         (define_expand "sibcall_value_internal"): New.
15502         (define_expand "call", define_expand "call_value"): Add argument to
15503         arm_emit_call_insn.
15504         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15505         (define_expand "sibcall_value"): Use sibcall_value_internal and
15506         arm_emit_call_insn.
15507
15508 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15509
15510         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15511
15512 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15513
15514         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15515         __udivmoddi4.
15516
15517 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15518
15519         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15520         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15521         annotations. Fix DWARF information.
15522
15523 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15524
15525         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15526         __udivmoddi4, and fixups for negative operands.
15527
15528 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15529
15530         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15531
15532 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15533
15534         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15535         to __udivmoddi4.
15536
15537 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15538
15539         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15540         manipulation.
15541
15542 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15543
15544         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15545         describing register usage on function entry and exit.
15546
15547 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15548
15549         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15550         (__aeabi_ldivmod): Fix whitespace.
15551
15552 2014-06-18  Andreas Schwab  <schwab@suse.de>
15553
15554         * doc/md.texi (Standard Names): Use @itemx for grouped items.
15555         Remove blank line after @item.
15556
15557 2014-06-18  Richard Henderson  <rth@redhat.com>
15558
15559         PR target/61545
15560         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15561
15562 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
15563
15564         * config/arm/arm.c (neon_vector_mem_operand): Allow register
15565         POST_MODIFY for neon loads and stores.
15566         (arm_print_operand): Output post-index register for neon loads and
15567         stores.
15568
15569 2014-06-18  Richard Biener  <rguenther@suse.de>
15570
15571         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15572
15573 2014-06-18  Richard Biener  <rguenther@suse.de>
15574
15575         * tree-pass.h (make_pass_dce_loop): Remove.
15576         * passes.def: Replace pass_dce_loop with pass_dce.
15577         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15578         changed free niter estimates and reset the scev cache.
15579         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15580         make_pass_dce_loop): Remove.
15581         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15582         (fini_copy_prop): Return whether something changed.  Always
15583         let substitute_and_fold perform DCE and free niter estimates
15584         and reset the scev cache if so.
15585         (execute_copy_prop): If sth changed schedule cleanup-cfg.
15586         (pass_data_copy_prop): Do not unconditionally schedule
15587         cleanup-cfg or update-ssa.
15588
15589 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
15590
15591         PR tree-optimization/61518
15592         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15593         reduction var is used in reduction stmt or phi-function only.
15594
15595 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15596
15597         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15598
15599 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15600
15601         PR tree-optimization/61517
15602         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15603         whose rhs's first tree is the source expression instead of the
15604         expression itself.
15605         (find_bswap_or_nop): Likewise.
15606         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15607         gimple stmt whose rhs's first tree is the source. In the memory source
15608         case, move the stmt to be replaced close to one of the original load to
15609         avoid the problem of a store between the load and the stmt's original
15610         location.
15611         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15612         signature.
15613
15614 2014-06-18  Andreas Schwab  <schwab@suse.de>
15615
15616         PR rtl-optimization/54555
15617         * postreload.c (move2add_use_add2_insn): Substitute
15618         STRICT_LOW_PART only if it is cheaper.
15619
15620 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
15621
15622         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15623         Do not use unspec as call operand.  Use memory_operand instead of
15624         memory_nox32_operand and add "m" operand constraint.  Disable
15625         pattern for TARGET_X32.
15626         (*sibcall_pop_memory): Ditto.
15627         (*sibcall_value_memory): Ditto.
15628         (*sibcall_value_pop_memory): Ditto.
15629         (sibcall peepholes): Merge SImode and DImode patterns using
15630         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
15631         Disable pattern for TARGET_X32.  Check if eliminated register is
15632         really dead after call insn.  Generate call RTX without unspec operand.
15633         (sibcall_value peepholes): Ditto.
15634         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
15635         instead of memory_nox32_operand.  Check if eliminated register is
15636         really dead after call insn. Generate call RTX without unspec operand.
15637         (sibcall_value_pop peepholes): Ditto.
15638         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15639
15640 2014-06-18  Terry Guo  <terry.guo@arm.com>
15641
15642         PR target/61544
15643         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15644         reach the head.
15645
15646 2014-06-18  Olivier Hainque  <hainque@adacore.com>
15647
15648         * tree-core.h (tree_block): Add an "end_locus" field, allowing
15649         memorization of the end of block source location.
15650         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15651         * gimplify.c (gimplify_bind_expr): Propagate the block start and
15652         end source location info we have on the block entry/exit code we
15653         generate.
15654
15655 2014-06-18  Richard Biener  <rguenther@suse.de>
15656
15657         * common.opt (fssa-phiopt): New option.
15658         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15659         but not with -Og.
15660         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15661         * doc/invoke.texi (-fssa-phiopt): Document.
15662
15663 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15664
15665         * genattrtab.c (n_bypassed): New variable.
15666         (process_bypasses): Initialise n_bypassed.
15667         Count number of bypassed reservations.
15668         (make_automaton_attrs): Allocate space for bypassed reservations
15669         rather than number of bypasses.
15670
15671 2014-06-18  Richard Biener  <rguenther@suse.de>
15672
15673         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15674         we propagated anything.
15675         (substitute_and_fold_dom_walker::before_dom_children): Something
15676         changed if we propagated into PHI arguments.
15677         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15678         we removed a stmt.
15679
15680 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
15681
15682         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15683         vector case.
15684         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15685         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15686         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15687         Introduces alternative way of loads group permutaions.
15688         (vect_transform_grouped_load): Try alternative way of permutations.
15689
15690 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
15691
15692         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15693         changed in ORT_TARGET region, don't jump to do_outer.
15694         (struct gimplify_adjust_omp_clauses_data): New type.
15695         (gimplify_adjust_omp_clauses_1): Adjust for data being
15696         a struct gimplify_adjust_omp_clauses_data pointer instead
15697         of tree *.  Pass pre_p as a new argument to
15698         lang_hooks.decls.omp_finish_clause hook.
15699         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15700         splay_tree_foreach to pass both list_p and pre_p.
15701         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15702         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15703         gimplify_adjust_omp_clauses callers.
15704         * langhooks.c (lhd_omp_finish_clause): New function.
15705         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15706         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15707         * langhooks.h (struct lang_hooks_for_decls): Add a new
15708         gimple_seq * argument to omp_finish_clause hook.
15709         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15710         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15711         (scan_omp_parallel, lower_omp_for): When adding
15712         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15713         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15714         * tree-nested.c (convert_nonlocal_omp_clauses,
15715         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15716         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15717
15718 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
15719
15720         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15721         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15722
15723 2014-06-17  Xinliang David Li  <davidxl@google.com>
15724
15725         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15726         * passes.c (pass_init_dump_file): Do not set initialize
15727         flag to false unconditionally.
15728
15729 2014-06-17  Richard Biener  <rguenther@suse.de>
15730
15731         * genopinit.c (main): Use vec<>::qsort method.
15732         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15733         Likewise.
15734         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15735
15736 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
15737
15738         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15739         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15740         (mips_move_to_gpr_cost): Remove ST_REGS case.
15741         (mips_move_from_gpr_cost): Likewise.
15742         (mips_register_move_cost): Likewise.
15743         (mips_secondary_reload_class): Likewise.
15744
15745 2014-06-17  Richard Biener  <rguenther@suse.de>
15746
15747         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15748         (pass_all_optimizations): Move 3rd copy-prop pass from after
15749         fre to before ifcombine/phiopt.
15750
15751 2014-06-17  Richard Biener  <rguenther@suse.de>
15752
15753         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15754         and allow all blocks to be forwarders.
15755
15756 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
15757
15758         PR target/61483
15759         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15760         variable 'size'; calculate 'size' right in the front; use
15761         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15762         pcum->aapcs_stack_words.
15763
15764 2014-06-17  Nick Clifton  <nickc@redhat.com>
15765
15766         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15767         (umulhi3, mulsidi3, umulsidi3): Likewise.
15768
15769 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
15770
15771         PR middle-end/61508
15772         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15773         check for section name.
15774
15775 2014-06-17  Richard Biener  <rguenther@suse.de>
15776
15777         * tree-ssa-propagate.c: Include domwalk.h.
15778         (substitute_and_fold): Outline main worker into a domwalker ...
15779         (substitute_and_fold_dom_walker::before_dom_children): ... here.
15780         Schedule stmts we can fully propagate for removal.  Remove
15781         poor-mans DCE.
15782         (substitute_and_fold): Apply a dominator walk to perform
15783         substitution.  Process stmts scheduled for removal here.
15784
15785 2014-06-17  Richard Biener  <rguenther@suse.de>
15786
15787         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15788         of PHI node moving.
15789
15790 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
15791
15792         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15793         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15794         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15795         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15796         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15797         TARGET_HARD_FLOAT.
15798         (get_fpscr) : Likewise.
15799
15800 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
15801
15802         PR rtl-optimization/61325
15803         * lra-constraints.c (valid_address_p): Add forward declaration.
15804         (simplify_operand_subreg): Check address validity before and after
15805         alter_reg of memory subreg.
15806
15807 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
15808
15809         * config/i386/i386.c (decide_alg): Correctly handle
15810         maximum size of stringop algorithm.
15811
15812 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
15813
15814         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15815
15816 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
15817
15818         PR rtl-optimization/61522
15819         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15820
15821 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
15822
15823         Revert:
15824         * symtab.c (symtab_node::reset_section): New method.
15825         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15826         for localization.
15827         * cgraph.h (reset_section): Declare.
15828         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15829         do not consider comdat locals.
15830         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15831         for new symbol.
15832         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15833         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15834         reset sections of symbols dragged out of the comdats.
15835         (function_and_variable_visibility): Reset sections of
15836         localized symbols.
15837
15838 2014-06-16  Richard Biener  <rguenther@suse.de>
15839
15840         PR tree-optimization/61482
15841         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15842         [-INF(OVF), +INF(OVF)] range.
15843
15844 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15845
15846         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15847         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15848         handling 32-bit multiplication.
15849
15850 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
15851
15852         PR middle-end/61430
15853         * lra-lives.c (process_bb_lives): Skip creating copy during
15854         insn scan when src/dest has constrained to same regno.
15855
15856 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
15857
15858         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15859         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15860
15861 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
15862
15863         * asan.c (check_func): New function.
15864         (maybe_create_ssa_name): Likewise.
15865         (build_check_stmt_with_calls): Likewise.
15866         (use_calls_p): Likewise.
15867         (report_error_func): Change interface.
15868         (build_check_stmt): Allow non-integer lengths; add support
15869         for new parameter.
15870         (asan_instrument): Likewise.
15871         (instrument_mem_region_access): Moved code to build_check_stmt.
15872         (instrument_derefs): Likewise.
15873         (instrument_strlen_call): Likewise.
15874         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15875         * doc/invoke.texi: Describe new parameter.
15876         * params.def: Define new parameter.
15877         * params.h: Likewise.
15878         * sanitizer.def: Describe new builtins.
15879
15880 2014-06-16  Richard Biener  <rguenther@suse.de>
15881
15882         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15883         Make all defs available at the end.
15884         (eliminate): If we remove a PHI node schedule cfg-cleanup.
15885
15886 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
15887
15888         PR plugins/45078
15889         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15890
15891 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
15892
15893         PR bootstrap/61516
15894         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15895         initialization.  Replace remaining use of uid.
15896
15897 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
15898
15899         * c-family/c-common.c (handle_tls_model_attribute): Use
15900         set_decl_tls_model.
15901         * c-family/c-common.c (handle_tls_model_attribute): Use
15902         set_decl_tls_model.
15903         * cgraph.h (struct varpool_node): Add tls_model.
15904         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15905         * tree.h (DECL_TLS_MODEL): Update.
15906         (DECL_THREAD_LOCAL_P): Check that variable is static.
15907         (decl_tls_model): Declare.
15908         (set_decl_tls_model): Declare.
15909         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15910         set symbol prorperties.
15911         (get_emutls_init_templ_addr): Cleanup.
15912         (new_emutls_decl): Update.
15913         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15914         (lto_input_varpool_node): Likewise.
15915         * lto-streamer-out.c (hash_tree): Likewise.
15916         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15917         not stream DECL_TLS_MODEL.
15918         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15919         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15920
15921 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15922
15923         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15924
15925 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15926
15927         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15928         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15929         lists.
15930         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15931         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15932         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15933         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15934         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15935         (df_get_artificial_defs, df_get_artificial_uses)
15936         (df_single_def, df_single_use): Update accordingly.
15937         (df_refs_chain_dump): Take the first element in a linked list as
15938         parameter, rather than a pointer to an array of pointers.
15939         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15940         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15941         (df_chain_create_bb_process_use): Likewise.
15942         (df_md_bb_local_compute_process_def): Likewise.
15943         * fwprop.c (process_defs, process_uses): Likewise.
15944         (register_active_defs, update_uses): Likewise.
15945         (forward_propagate_asm): Update for new df_ref linking.
15946         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15947         (df_null_ref_rec, df_null_mw_rec): Likewise.
15948         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15949         explicitly.
15950         (df_scan_free_bb_info): Remove check for null artificial_defs.
15951         (df_install_ref_incremental): Adjust for new df_ref linking.
15952         Use a single-element insertion rather than a full sort.
15953         (df_ref_chain_delete_du_chain): Take the first element
15954         in a linked list as parameter, rather than a pointer to an array of
15955         pointers.
15956         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15957         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15958         (df_insn_info_delete): Remove check for null defs and call to
15959         df_scan_free_mws_vec.
15960         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15961         null rather than df_null_*_rec.
15962         (df_insn_rescan_debug_internal): Likewise, and update null
15963         checks in the same way.  Remove check for null defs.
15964         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15965         Move a single element rather doing a full sort.
15966         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15967         linking.
15968         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
15969         Initialize df_ref and df_mw_hardreg lists to null rather than
15970         df_null_*_rec.
15971         (df_ref_compare): Take df_refs as parameter, transferring the
15972         old interface to...
15973         (df_ref_ptr_compare): ...this new function.
15974         (df_sort_and_compress_refs): Update accordingly.
15975         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15976         old interface to...
15977         (df_mw_ptr_compare): ...this new function.
15978         (df_sort_and_compress_mws): Update accordingly.
15979         (df_install_refs, df_install_mws): Return a linked list rather than
15980         an array of pointers.
15981         (df_refs_add_to_chains): Assert that old lists are empty rather
15982         than freeing them.
15983         (df_insn_refs_verify): Don't handle null defs speciailly.
15984         * web.c (union_match_dups): Update for new df_ref linking.
15985
15986 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15987
15988         * df.h (df_ref_create, df_ref_remove): Delete.
15989         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15990         (df_ref_remove): Likewise.
15991
15992 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15993
15994         * df.h (df_single_def, df_single_use): New functions.
15995         * ira.c (find_moveable_pseudos): Use them.
15996
15997 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
15998
15999         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16000         * df-problems.c (df_note_bb_compute): Use it.
16001         * regstat.c (regstat_bb_compute_ri): Likewise.
16002
16003 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16004
16005         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16006         * cse.c (cse_extended_basic_block): Use them.
16007         * dce.c (mark_artificial_use): Likewise.
16008         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16009         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16010         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16011         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16012         (df_simulate_initialize_backwards): Likewise.
16013         (df_simulate_finalize_backwards): Likewise.
16014         (df_simulate_initialize_forwards): Likewise.
16015         (df_md_simulate_artificial_defs_at_top): Likewise.
16016         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16017         * regrename.c (init_rename_info): Likewise.
16018         * regstat.c (regstat_bb_compute_ri): Likewise.
16019         (regstat_bb_compute_calls_crossed): Likewise.
16020
16021 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
16022
16023         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16024         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16025         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16026         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16027         * combine.c (create_log_links): Likewise.
16028         * compare-elim.c (find_flags_uses_in_insn): Likewise.
16029         (try_eliminate_compare): Likewise.
16030         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16031         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16032         (remove_reg_equal_equiv_notes_for_defs): Likewise.
16033         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16034         (word_dce_process_block, dce_process_block): Likewise.
16035         * ddg.c (def_has_ccmode_p): Likewise.
16036         * df-core.c (df_bb_regno_first_def_find): Likewise.
16037         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16038         * df-problems.c (df_rd_simulate_one_insn): Likewise.
16039         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16040         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16041         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16042         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16043         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16044         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16045         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16046         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16047         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16048         * fwprop.c (local_ref_killed_between_p): Likewise.
16049         (all_uses_available_at, free_load_extend): Likewise.
16050         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16051         * hw-doloop.c (scan_loop): Likewise.
16052         * ifcvt.c (dead_or_predicable): Likewise.
16053         * init-regs.c (initialize_uninitialized_regs): Likewise.
16054         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16055         (process_bb_node_lives): Likewise.
16056         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16057         (find_moveable_pseudos): Likewise.
16058         * loop-invariant.c (check_dependencies, record_uses): Likewise.
16059         * recog.c (peep2_find_free_register): Likewise.
16060         * ree.c (get_defs): Likewise.
16061         * regstat.c (regstat_bb_compute_ri): Likewise.
16062         (regstat_bb_compute_calls_crossed): Likewise.
16063         * sched-deps.c (find_inc, find_mem): Likewise.
16064         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16065         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16066         * shrink-wrap.c (requires_stack_frame_p): Likewise.
16067         (prepare_shrink_wrap): Likewise.
16068         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16069         * web.c (union_defs, pass_web::execute): Likewise.
16070         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16071         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16072
16073 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
16074
16075         * lra-assign.c (assign_by_spills): Add code to assign vector regs
16076         to inheritance pseudos.
16077         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16078
16079 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
16080
16081         PR target/61415
16082         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16083         (BU_MISC_2): Rename to ...
16084         (BU_LDBL128_2): ... this.
16085         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16086         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16087         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16088         RS6000_BTM_LDBL128.
16089         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16090         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16091         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16092         (unpacktf_1): Likewise.
16093         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16094         (__builtin_longdouble_dw1): Likewise.
16095         * doc/sourcebuild.texi (longdouble128): Document.
16096
16097 2014-06-13  Jeff Law  <law@redhat.com>
16098
16099         PR rtl-optimization/61094
16100         PR rtl-optimization/61446
16101         * ree.c (combine_reaching_defs): Get the mode for the copy from
16102         the extension insn rather than the defining insn.
16103
16104 2014-06-13  Dehao Chen  <dehao@google.com>
16105
16106         * dwarf2out.c (add_linkage_name): Emit more linkage name.
16107
16108 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
16109
16110         * doc/install.texi (--enable-linker-plugin-configure-flags)
16111         (--enable-linker-plugin-flags): Document new flags.
16112
16113 2014-06-13  Martin Jambor  <mjambor@suse.cz>
16114
16115         PR ipa/61186
16116         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16117         cache_token if returning early.
16118
16119 2014-06-13  Nick Clifton  <nickc@redhat.com>
16120
16121         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16122         requested alignment is active.
16123         (LABEL_ALIGN): Likewise.
16124         (LOOP_ALIGN): Likewise.
16125
16126 2014-06-13  Richard Biener  <rguenther@suse.de>
16127
16128         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16129         Rewrite to propagate the VN result into all uses where
16130         possible and to remove stmts becoming dead because of that.
16131         (eliminate): Generalize stmt removal handling, remove in
16132         reverse dominator order to support proper debug stmt
16133         generation.  Update stmts before removing stmts.
16134         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16135
16136 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16137
16138         PR tree-optimization/61375
16139         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16140         symbolic number cannot be represented in an uint64_t.
16141         (find_bswap_or_nop_1): Likewise.
16142
16143 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16144
16145         * symtab.c (symtab_node::reset_section): New method.
16146         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16147         for localization.
16148         * cgraph.h (reset_section): Declare.
16149         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16150         do not consider comdat locals.
16151         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16152         for new symbol.
16153         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16154         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16155         reset sections of symbols dragged out of the comdats.
16156         (function_and_variable_visibility): Reset sections of
16157         localized symbols.
16158
16159 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
16160
16161         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16162         to use symtab and decl_binds_to_current_def_p
16163         * tree-vectorizer.c (increase_alignment): Increase alignment
16164         of alias target, too.
16165
16166 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
16167
16168         PR middle-end/61486
16169         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16170         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16171         if outer combined construct is distribute.
16172         (gimplify_omp_for): For OMP_DISTRIBUTE set
16173         gimplify_omp_ctxp->distribute.
16174         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16175         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16176         mapping into decl map.
16177
16178 2014-06-12  Jason Merrill  <jason@redhat.com>
16179
16180         * common.opt (fabi-version): Change default to 0.
16181
16182 2014-06-12  Jason Merrill  <jason@redhat.com>
16183
16184         * toplev.c (process_options): Reject -fabi-version=1.
16185
16186 2014-06-12  Jeff Law  <law@redhat.com>
16187
16188         PR tree-optimization/61009
16189         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16190         value when we stop processing a block due to problematic PHIs.
16191
16192 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
16193
16194         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16195         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16196         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16197         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16198         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16199         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16200         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16201         are not in the spec.
16202
16203 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
16204
16205         PR target/59843
16206         * config/aarch64/aarch64-modes.def: Add V1DFmode.
16207         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16208         Support V1DFmode.
16209
16210 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
16211
16212         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16213
16214 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
16215
16216         PR target/61443
16217         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16218         loading from address spaces.
16219
16220 2014-06-12  Martin Liska  <mliska@suse.cz>
16221
16222         PR ipa/61462
16223         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16224         statement is reachable.
16225
16226 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
16227
16228         * symtab.c (section_hash): New hash.
16229         (symtab_unregister_node): Clear section before freeing.
16230         (hash_section_hash_entry): New haser.
16231         (eq_sections): New function.
16232         (symtab_node::set_section_for_node): New method.
16233         (set_section_1): Update.
16234         (symtab_node::set_section): Take string instead of tree as parameter.
16235         (symtab_resolve_alias): Update.
16236         * cgraph.h (section_hash_entry_d): New structure.
16237         (section_hash_entry): New typedef.
16238         (cgraph_node): Change comdat_group_ to x_comdat_group,
16239         change section_ to x_section and turn into section_hash_entry;
16240         update accestors; put set_section_for_node offline.
16241         * tree.c (decl_section_name): Turn into string.
16242         (set_decl_section_name): Change parameter to be string.
16243         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16244         * sdbout.c (sdbout_one_type): Update.
16245         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16246         * varasm.c (IN_NAMED_SECTION, get_named_section,
16247         resolve_unique_section, hot_function_section, get_named_text_section,
16248         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16249         make_decl_rtl, default_unique_section): Update.
16250         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16251         (c6x_elf_unique_section): Update.
16252         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16253         * config/pa/pa.c (pa_function_section): Update.
16254         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16255         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16256         * config/arc/arc.c (arc_in_small_data_p): Update.
16257         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16258         * config/mcore/mcore.c (mcore_unique_section): Update.
16259         * config/mips/mips.c (mips16_build_function_stub): Update.
16260         (mips16_build_call_stub): Update.
16261         (mips_function_rodata_section): Update.
16262         (mips_in_small_data_p): Update.
16263         * config/score/score.c (score_in_small_data_p): Update.
16264         * config/rx/rx.c (rx_in_small_data): Update.
16265         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16266         (rs6000_xcoff_asm_named_section): Update.
16267         (rs6000_xcoff_unique_section): Update.
16268         * config/frv/frv.c (frv_string_begins_with): Update.
16269         (frv_in_small_data_p): Update.
16270         * config/v850/v850.c (v850_encode_data_area): Update.
16271         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16272         (bfin_handle_l1_data_attribute): Update.
16273         (bfin_handle_l2_attribute): Update.
16274         * config/mep/mep.c (mep_unique_section): Update.
16275         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16276         Update.
16277         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16278         (h8300_handle_tiny_data_attribute): Update.
16279         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16280         (m32r_in_small_data_p): Update.
16281         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16282         * config/i386/i386.c (ix86_in_large_data_p): Update.
16283         * config/i386/winnt.c (i386_pe_unique_section): Update.
16284         * config/darwin.c (darwin_function_section): Update.
16285         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16286         * tree-emutls.c (get_emutls_init_templ_addr): Update.
16287         (new_emutls_decl): Update.
16288         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16289         input_varpool_node): Update.
16290         (ead_string_cst): Turn to ...
16291         (read_string): ... this one.
16292         * dwarf2out.c (secname_for_decl): Update.
16293         * asan.c (asan_protect_global): Update.
16294
16295 2014-06-11  DJ Delorie  <dj@redhat.com>
16296
16297         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16298         cache lines.
16299         * config/rx/rx.c (rx_option_override): Likewise.
16300         (rx_align_for_label): Likewise.
16301
16302         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16303
16304 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
16305
16306         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16307         prototype.
16308
16309 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16310
16311         * common.md: New file.
16312         * doc/md.texi: Update description of generic, machine-independent
16313         constraints.
16314         * config/s390/constraints.md (e): Delete.
16315         * Makefile.in (md_file): Include common.md.
16316         * config/m32c/t-m32c (md_file): Likewise.
16317         * genpreds.c (general_mem): New array.
16318         (generic_constraint_letters): Remove constraints now defined by
16319         common.md.
16320         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16321         Allow the first character to be '<' or '>' as well.
16322         * genoutput.c (general_mem): New array.
16323         (indep_constraints): Remove constraints now defined by common.md.
16324         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16325         Remove special handling of 'm'.
16326         * ira-costs.c (record_reg_classes): Remove special handling of
16327         constraints now defined by common.md.
16328         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16329         * ira-lives.c (single_reg_class): Likewise.
16330         (ira_implicitly_set_insn_hard_regs): Likewise.
16331         * lra-constraints.c (reg_class_from_constraints): Likewise.
16332         (process_alt_operands, process_address, curr_insn_transform): Likewise.
16333         * postreload.c (reload_cse_simplify_operands): Likewise.
16334         * reload.c (push_secondary_reload, scratch_reload_class)
16335         (find_reloads, alternative_allows_const_pool_ref): Likewise.
16336         * reload1.c (maybe_fix_stack_asms): Likewise.
16337         * targhooks.c (default_secondary_reload): Likewise.
16338         * stmt.c (parse_output_constraint): Likewise.
16339         * recog.c (preprocess_constraints): Likewise.
16340         (constrain_operands, peep2_find_free_register): Likewise.
16341         (asm_operand_ok): Likewise, but add a comment saying why 'o'
16342         must be handled specially.
16343
16344 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16345
16346         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16347         * genpreds.c (have_const_dbl_constraints): Delete.
16348         (add_constraint): Don't set it.
16349         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16350         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16351         constraints using the lookup_constraint logic.
16352         * ira-lives.c (single_reg_class): Likewise.
16353         * ira.c (ira_setup_alts): Likewise.
16354         * lra-constraints.c (process_alt_operands): Likewise.
16355         * recog.c (asm_operand_ok, constrain_operands): Likewise.
16356         * reload.c (find_reloads): Likewise.
16357
16358 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16359
16360         * genpreds.c (const_int_start, const_int_end): New variables.
16361         (choose_enum_order): Output CONST_INT constraints before memory
16362         constraints.
16363         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16364         Add CT_CONST_INT.
16365         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16366         * ira.c (ira_setup_alts): Likewise.
16367         * lra-constraints.c (process_alt_operands): Likewise.
16368         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16369         * reload.c (find_reloads): Likewise.
16370
16371 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16372
16373         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16374         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
16375         * recog.c (preprocess_constraints): Update accordingly.
16376
16377 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16378
16379         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16380         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16381         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16382         * genpreds.c (print_type_tree): New function.
16383         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16384         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16385         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16386         Write out enum constraint_type and get_constraint_type.
16387         * lra-constraints.c (satisfies_memory_constraint_p): Take a
16388         constraint_num rather than a constraint string.
16389         (satisfies_address_constraint_p): Likewise.
16390         (reg_class_from_constraints): Avoid old constraint macros.
16391         (process_alt_operands, process_address_1): Likewise.
16392         (curr_insn_transform): Likewise.
16393         * ira-costs.c (record_reg_classes): Likewise.
16394         (record_operand_costs): Likewise.
16395         * ira-lives.c (single_reg_class): Likewise.
16396         (ira_implicitly_set_insn_hard_regs): Likewise.
16397         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16398         * postreload.c (reload_cse_simplify_operands): Likewise.
16399         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16400         (constrain_operands, peep2_find_free_register): Likewise.
16401         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16402         (find_reloads, alternative_allows_const_pool_ref): Likewise.
16403         * reload1.c (maybe_fix_stack_asms): Likewise.
16404         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16405         * targhooks.c (default_secondary_reload): Likewise.
16406         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16407         to EXTRA_CONSTRAINT_STR.
16408         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16409
16410 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16411
16412         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16413         (write_constraint_satisfied_p_array): ...this new function.
16414         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16415         an array.
16416         (write_insn_preds_c): Update accordingly.
16417
16418 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16419
16420         * genpreds.c (write_lookup_constraint): Rename to...
16421         (write_lookup_constraint_1): ...this.
16422         (write_lookup_constraint_array): New function.
16423         (write_tm_preds_h): Define lookup_constraint as an inline function
16424         that uses write_lookup_constraint_array where possible.
16425         (write_insn_preds_c): Update for the changes above.
16426
16427 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
16428
16429         * doc/md.texi (regclass_for_constraint): Rename to...
16430         (reg_class_for_constraint): ...this.
16431         * genpreds.c (num_constraints, enum_order, register_start)
16432         (register_end, satisfied_start, memory_start, memory_end)
16433         (address_start, address_end): New variables.
16434         (add_constraint): Count the number of constraints.
16435         (choose_enum_order): New function.
16436         (write_enum_constraint_num): Iterate over enum_order.
16437         (write_regclass_for_constraint): Rename to...
16438         (write_reg_class_for_constraint_1): ...this and update output
16439         accordingly.
16440         (write_constraint_satisfied_p): Rename to...
16441         (write_constraint_satisfied_p_1): ...this and update output
16442         accordingly.  Do nothing if all extra constraints are register
16443         constraints.
16444         (write_insn_extra_memory_constraint): Delete.
16445         (write_insn_extra_address_constraint): Delete.
16446         (write_range_function): New function.
16447         (write_tm_preds_h): Define constraint_satisfied_p and
16448         reg_class_for_constraint as inline functions that do a range check
16449         before calling the out-of-line function.  Use write_range_function
16450         to implement insn_extra_{register,memory,address}_constraint,
16451         the first of which is new.
16452         (write_insn_preds_c): Update after above changes to write_* functions.
16453         (main): Call choose_enum_order.
16454
16455 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16456
16457         PR tree-optimization/61306
16458         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16459         expression instead of its size.
16460         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16461         false to prevent optimization when the result is unpredictable due to
16462         arithmetic right shift of signed type with highest byte is set.
16463         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16464         (init_symbolic_number): Likewise.
16465         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16466         when the result is unpredictable due to sign extension.
16467
16468 2014-06-11  Terry Guo  <terry.guo@arm.com>
16469
16470         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16471         (*thumb1_addsi3): Ditto.
16472         (*thumb_subdi3): Ditto.
16473         (thumb1_subsi3_insn): Ditto.
16474         (*thumb_mulsi3): Ditto.
16475         (*thumb_mulsi3_v6): Ditto.
16476         (*thumb1_andsi3_insn): Ditto.
16477         (thumb1_bicsi3): Ditto.
16478         (*thumb1_iorsi3_insn): Ditto.
16479         (*thumb1_xorsi3_insn): Ditto.
16480         (*thumb1_ashlsi3): Ditto.
16481         (*thumb1_ashrsi3): Ditto.
16482         (*thumb1_lshrsi3): Ditto.
16483         (*thumb1_rotrsi3): Ditto.
16484         (*thumb1_negdi2): Ditto.
16485         (*thumb1_negsi2): Ditto.
16486         (*thumb1_abssi2): Ditto.
16487         (*thumb1_neg_abssi2): Ditto.
16488         (*thumb1_one_cmplsi2): Ditto.
16489         (*thumb1_zero_extendhisi2): Ditto.
16490         (*thumb1_zero_extendqisi2): Ditto.
16491         (*thumb1_zero_extendqisi2_v6): Ditto.
16492         (thumb1_extendhisi2): Ditto.
16493         (thumb1_extendqisi2): Ditto.
16494         (*thumb1_movdi_insn): Ditto.
16495         (*thumb1_movsi_insn): Ditto.
16496         (*thumb1_movhi_insn): Ditto.
16497         (thumb_movhi_clobber): Ditto.
16498         (*thumb1_movqi_insn): Ditto.
16499         (*thumb1_movhf): Ditto.
16500         (*thumb1_movsf_insn): Ditto.
16501         (*thumb_movdf_insn): Ditto.
16502         (movmem12b): Ditto.
16503         (movmem8b): Ditto.
16504         (cbranchqi4): Ditto.
16505         (cbranchsi4_insn): Ditto.
16506         (cbranchsi4_scratch): Ditto.
16507         (*negated_cbranchsi4): Ditto.
16508         (*tbit_cbranch): Ditto.
16509         (*tlobits_cbranch): Ditto.
16510         (*tstsi3_cbranch): Ditto.
16511         (*cbranchne_decr1): Ditto.
16512         (*addsi3_cbranch): Ditto.
16513         (*addsi3_cbranch_scratch): Ditto.
16514         (*thumb_cmpdi_zero): Ditto.
16515         (cstoresi_eq0_thumb1): Ditto.
16516         (cstoresi_ne0_thumb1): Ditto.
16517         (*cstoresi_eq0_thumb1_insn): Ditto.
16518         (*cstoresi_ne0_thumb1_insn): Ditto.
16519         (cstoresi_nltu_thumb1): Ditto.
16520         (cstoresi_ltu_thumb1): Ditto.
16521         (thumb1_addsi3_addgeu): Ditto.
16522         (*thumb_jump): Ditto.
16523         (*call_reg_thumb1_v5): Ditto.
16524         (*call_reg_thumb1): Ditto.
16525         (*call_value_reg_thumb1_v5): Ditto.
16526         (*call_value_reg_thumb1): Ditto.
16527         (*call_insn): Ditto.
16528         (*call_value_insn): Ditto.
16529         (thumb1_casesi_internal_pic): Ditto.
16530         (thumb1_casesi_dispatch): Ditto.
16531         (*thumb1_indirect_jump): Ditto.
16532         (prologue_thumb1_interwork): Ditto.
16533         (*epilogue_insns): Ditto.
16534         (consttable_1): Ditto.
16535         (consttable_2): Ditto.
16536         (tablejump): Ditto.
16537         (*thumb1_tablejump): Ditto.
16538         (thumb_eh_return): Ditto.
16539         (define_peephole2): Two of them are thumb1 only and got moved into
16540         new file thumb1.md.
16541         (define_split): Six of them are thumb1 only and got moved into new
16542         file thumb1.md.
16543         * config/arm/thumb1.md: New file comprised of above thumb1 only
16544         patterns.
16545
16546 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16547
16548         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16549         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16550         dependencies.
16551         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16552         (aarch64_crc_builtin_datum): New struct.
16553         (aarch64_crc_builtin_data): New.
16554         (aarch64_init_crc32_builtins): New function.
16555         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16556         (aarch64_crc32_expand_builtin): New.
16557         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16558         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16559         __ARM_FEATURE_CRC32 when appropriate.
16560         (TARGET_CRC32): Define.
16561         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16562         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16563         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16564         (aarch64_<crc_variant>): New pattern.
16565         * config/aarch64/arm_acle.h: New file.
16566         * config/aarch64/iterators.md (CRC): New int iterator.
16567         (crc_variant, crc_mode): New int attributes.
16568         * doc/aarch64-acle-intrinsics.texi: New file.
16569         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16570         Include aarch64-acle-intrinsics.texi.
16571
16572 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
16573
16574         * tree-vect-data-refs.c (vect_grouped_store_supported): New
16575         check for stores group of length 3.
16576         (vect_permute_store_chain): New permutations for stores group of
16577         length 3.
16578         * tree-vect-stmts.c (vect_model_store_cost): Change cost
16579         of vec_perm_shuffle for the new permutations.
16580
16581 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
16582
16583         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16584         table rewriting temporarily on targets not supporting ONE_ONLY.
16585
16586 2014-06-11  Richard Biener  <rguenther@suse.de>
16587
16588         PR middle-end/61437
16589         Revert
16590         2014-06-04  Richard Biener  <rguenther@suse.de>
16591
16592         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16593         TREE_PUBLIC and DECL_EXTERNAL decls.
16594
16595 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
16596
16597         * varasm.c (set_implicit_section): New function.
16598         (resolve_unique_section): Use it to set implicit section
16599         for aliases, too.
16600         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16601         (default_function_section): Likewise.
16602         (decl_binds_to_current_def_p): Constify argument.
16603         * varasm.h (decl_binds_to_current_def_p): Update prototype.
16604         * asan.c (asan_protect_global): Use
16605         symtab_get_node (decl)->implicit_section.
16606         * symtab.c (dump_symtab_base): Dump implicit sections.
16607         (verify_symtab_base): Verify sanity of sectoins and comdats.
16608         (symtab_resolve_alias): Alias share the section of its target.
16609         (set_section_1): New function.
16610         (symtab_node::set_section): Move here, recurse to aliases.
16611         (verify_symtab): Check for duplicated symtab lists.
16612         * tree-core.h (implicit_section_name_p): Remove.
16613         * tree-vect-data-refs.c: Include varasm.h.
16614         (vect_can_force_dr_alignment_p): Fix conditional on when
16615         decl bints to current definition; use
16616         symtab_get_node (decl)->implicit_section.
16617         * cgraph.c (cgraph_make_node_local_1): Fix section set.
16618         * cgraph.h (struct symtab_node): Add implicit_section.
16619         (set_section): Rename to ...
16620         (set_section_for_node): ... this one.
16621         (set_section): Declare.
16622         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16623         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16624         input_overwrite_node, input_varpool_node): Stream implicit_section.
16625         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16626         removal; it will fail in LTO.
16627
16628 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16629
16630         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16631         Change second alternative type to f_mcr.
16632         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16633         and 12th alternatives' types to f_mcr and f_mrc.
16634         (*movdi_aarch64): Same for 12th and 13th alternatives.
16635         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16636         (aarch64_movtilow_tilow): Change type to fmov.
16637
16638 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
16639
16640         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16641         (aarch64_save_or_restore_callee_save_registers): Fix layout.
16642
16643 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16644
16645         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16646         New expander.
16647         (aarch64_sqrdmulh_lane<mode>): Likewise.
16648         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16649         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16650         (aarch64_sqdmulh_laneq<mode>): New expander.
16651         (aarch64_sqrdmulh_laneq<mode>): Likewise.
16652         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16653         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16654         (aarch64_sqdmulh_lane<mode>): New expander.
16655         (aarch64_sqrdmulh_lane<mode>): Likewise.
16656         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16657         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16658         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16659         (aarch64_sqdmlal_laneq<mode>): Likewise.
16660         (aarch64_sqdmlsl_lane<mode>): Likewise.
16661         (aarch64_sqdmlsl_laneq<mode>): Likewise.
16662         (aarch64_sqdmlal2_lane<mode>): Likewise.
16663         (aarch64_sqdmlal2_laneq<mode>): Likewise.
16664         (aarch64_sqdmlsl2_lane<mode>): Likewise.
16665         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16666         (aarch64_sqdmull_lane<mode>): Likewise.
16667         (aarch64_sqdmull_laneq<mode>): Likewise.
16668         (aarch64_sqdmull2_lane<mode>): Likewise.
16669         (aarch64_sqdmull2_laneq<mode>): Likewise.
16670
16671 2014-06-10  Richard Biener  <rguenther@suse.de>
16672
16673         PR tree-optimization/61438
16674         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16675         (eliminate_dom_walker::before_dom_children): Only try to inhibit
16676         insertion of IVs if running PRE.
16677         (eliminate): Adjust.
16678         (pass_pre::execute): Likewise.
16679         (pass_fre::execute): Likewise.
16680
16681 2014-06-10  Richard Biener  <rguenther@suse.de>
16682
16683         PR middle-end/61456
16684         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16685         Do not use the main variant for the type comparison.
16686         (ncr_compar): Likewise.
16687         (nonoverlapping_component_refs_p): Likewise.
16688
16689 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16690
16691         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16692         REG_CFA_RESTORE mode.
16693
16694 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
16695
16696         * config/i386/i386.c (expand_vec_perm_pblendv): New.
16697         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16698         expand_vec_perm_pblendv.
16699
16700 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16701
16702         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16703         available.
16704         Simplify description of __crc32d and __crc32cd intrinsics.
16705         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16706         availability.
16707
16708 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16709
16710         PR lto/61334
16711         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16712         * config.in: Regenerate.
16713         * configure: Likewise.
16714
16715 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
16716
16717         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16718         and public vars.
16719         (intersect_static_var_sets): Remove.
16720         (propagate): Do not prune local statics.
16721
16722 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16723
16724         PR fortran/60928
16725         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16726         Set lastprivate_firstprivate even if omp_private_outer_ref
16727         langhook returns true.
16728         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16729         langhook, call unshare_expr on new_var and call
16730         build_outer_var_ref to get the last argument.
16731
16732 2014-06-10  Marek Polacek  <polacek@redhat.com>
16733
16734         PR c/60988
16735         * doc/extend.texi: Add cindex for transparent_union.
16736
16737 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16738
16739         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16740         init_symbolic_number ().
16741
16742 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
16743
16744         PR middle-end/61141
16745         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16746         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16747         (verify_rtl_sharing): Likewise.
16748
16749 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
16750
16751         PR c++/54442
16752         * tree.c (build_qualified_type): Use a canonical type for
16753         TYPE_CANONICAL.
16754
16755 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16756
16757         * config/arm/arm-modes.def: Remove XFmode.
16758
16759 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
16760
16761         PR target/61062
16762         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16763         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16764         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16765         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16766         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16767         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16768         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16769         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16770         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16771
16772 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
16773
16774         * tree-core.h (tree_decl_with_vis): Remove section_name.
16775
16776 2014-06-09  Kito Cheng  <kito@0xlab.org>
16777
16778         * ira.c (ira): Don't call init_caller_save if LRA enabled
16779         since LRA use its own infrastructure to handle that.
16780
16781 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16782
16783         * symtab.c (dump_symtab_base): Update dumping.
16784         (symtab_make_decl_local): Clear only DECL_COMDAT.
16785         * tree-vect-data-refs.c (Check that variable is static before
16786         tampering with sections.
16787         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16788         (cgraph_create_virtual_clone): Likewise.
16789         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16790         (decl_section_name, set_decl_section_name): New accessors.
16791         (find_decls_types_r): Do not walk section name
16792         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16793         (decl_comdat_group, decl_comdat_group_id): Constify.
16794         (decl_section_name, set_decl_section_name): Update.
16795         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16796         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16797         (cgraph_make_node_local_1): Clear section and comdat group.
16798         * cgraph.h (set_comdat_group): Sanity check.
16799         (get_section, set_section): New.
16800         * ipa-comdats.c (ipa_comdats): Use get_section.
16801         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16802         * lto-streamer-out.c: Do not follow section names.
16803         * c-family/c-common.c (handle_section_attribute): Update.
16804         * lto-cgraph.c (lto_output_node): Output section.
16805         (lto_output_varpool_node): Likewise.
16806         (read_comdat_group): Rename to ...
16807         (read_identifier): ... this one.
16808         (read_string_cst): New function.
16809         (input_node, input_varpool_node): Input section names.
16810         * tree-emutls.c (get_emutls_init_templ_addr): Update.
16811         (new_emutls_decl): Update.
16812         (secname_for_decl): Check section names only of static vars.
16813         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16814         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16815         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16816         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16817         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16818         * config/mcore/mcore.c (mcore_unique_section): Likewise.
16819         * config/mips/mips.c (mips16_build_function_stub): Likewise.
16820         * config/v850/v850.c (v850_insert_attributes): Likewise.
16821         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16822         Likewise.
16823         (h8300_handle_tiny_data_attribute): Likewise.
16824         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16825         (bfin_handle_l2_attribute): Likewise.
16826
16827 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16828
16829         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16830         remove static initializer.
16831
16832 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16833
16834         * varasm.c (use_blocks_for_decl_p): Check symbol table
16835         instead of alias attribute.
16836         (place_block_symbol): Recurse on aliases.
16837
16838 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16839
16840         * ipa-visibility.c: Include varasm.h
16841         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16842
16843 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
16844
16845         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16846         outputting aliases.
16847
16848 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
16849
16850         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16851         from test_insn into GGC space escape via SET_SRC.
16852
16853 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
16854
16855         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16856         call statement, if any.
16857         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16858         statements, if any.  Tidy up.
16859
16860 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16861
16862         PR target/61431
16863         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16864         iterators, VSX_D that handles 64-bit types, and VSX_LE that
16865         handles swapping the two 64-bit double words on little endian
16866         systems.  Include V1TImode and optionally TImode in VSX_LE so that
16867         these types are properly swapped.  Change all of the insns and
16868         splits that do the 64-bit swaps to use VSX_LE.
16869         (vsx_le_perm_load_<mode>): Likewise.
16870         (vsx_le_perm_store_<mode>): Likewise.
16871         (splitters for little endian memory operations): Likewise.
16872         (vsx_xxpermdi2_le_<mode>): Likewise.
16873         (vsx_lxvd2x2_le_<mode>): Likewise.
16874         (vsx_stxvd2x2_le_<mode>): Likewise.
16875
16876 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
16877
16878         PR target/61423
16879         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16880         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16881         and corresponding splitters.  Zero extend general register
16882         or memory input operand to XMM temporary.  Enable for
16883         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16884         (floatunssi<mode>2): Update expander predicate.
16885
16886 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
16887
16888         PR rtl-optimization/61325
16889         * lra-constraints.c (process_address_1): Check scale equal to one
16890         to prevent transformation: base + scale * index => base + new_reg.
16891
16892 2014-06-06  Richard Biener  <rguenther@suse.de>
16893
16894         PR tree-optimization/59299
16895         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16896         a def operand.
16897         (nearest_common_dominator_of_uses): Likewise.
16898         (statement_sink_location): Adjust.  Support sinking loads.
16899
16900 2014-06-06  Martin Jambor  <mjambor@suse.cz>
16901
16902         * ipa-prop.c (get_place_in_agg_contents_list): New function.
16903         (build_agg_jump_func_from_list): Likewise.
16904         (determine_known_aggregate_parts): Renamed to
16905         determine_locally_known_aggregate_parts.  Moved some functionality
16906         to the two functions above, removed bound checks.
16907
16908 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
16909
16910         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16911         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16912         (aarch64_progress_pointer): Likewise.
16913         (aarch64_copy_one_part_and_move_pointers): Likewise.
16914         (aarch64_expand_movmen): Likewise.
16915         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16916         * config/aarch64/aarch64.md (movmem<mode>): New.
16917
16918 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
16919
16920         * targhooks.c (default_add_stmt_cost): Call target specific
16921         hook instead of default one.
16922
16923 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16924
16925         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16926         endianness instead of host endianness.
16927         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16928         comments.
16929
16930 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16931
16932         PR debug/53927
16933         * function.c (instantiate_decls): Process the saved static chain.
16934         (expand_function_start): If not optimizing, save the static chain
16935         onto the stack.
16936         * tree-nested.c (convert_all_function_calls): Always create the static
16937         chain for nested functions if not optimizing.
16938
16939 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16940
16941         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16942
16943 2014-06-06  Richard Biener  <rguenther@suse.de>
16944
16945         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16946         (construct_init_block): Likewise.
16947         (construct_exit_block): Likewise.
16948         (pass_expand::execute): Likewise.
16949         * graphite.c (graphite_transforms): Replace check for current_loops
16950         with a check for > 1 loops.
16951         (pass_graphite_transforms::execute): Adjust.
16952         * ipa-split.c (split_function): Remove check for current_loops.
16953         * omp-low.c (expand_parallel_call): Likewise.
16954         (expand_omp_for_init_counts): Likewise.
16955         (extract_omp_for_update_vars): Likewise.
16956         (expand_omp_for_generic): Likewise.
16957         (expand_omp_sections): Likewise.
16958         (expand_omp_target): Likewise.
16959         * tracer.c (tail_duplicate): Likewise.
16960         (pass_tracer::execute): Likewise.
16961         * trans-mem.c (expand_transaction): Likewise.
16962         * tree-complex.c (expand_complex_div_wide): Likewise.
16963         * tree-eh.c (lower_resx): Likewise.
16964         (cleanup_empty_eh_merge_phis): Likewise.
16965         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16966         current_loops with a check for > 1 loops.
16967         (pass_predcom::execute): Adjust.
16968         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16969         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16970         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16971         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16972         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16973         * tree-switch-conversion.c (process_switch): Likewise.
16974         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16975         * tree-vrp.c (vrp_visit_phi_node): Likewise.
16976         (execute_vrp): Likewise.
16977         * ubsan.c (ubsan_expand_null_ifn): Likewise.
16978
16979 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16980
16981         * rtl.h (insn_location): Declare.
16982         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16983         with UNKNOWN_LOCATION.
16984         * emit-rtl.c (insn_location): New function.
16985         * final.c (notice_source_line): Check that the instruction has a
16986         location before retrieving it and use insn_location.
16987         * modulo-sched.c (loop_single_full_bb_p): Likewise.
16988         * print-rtl.c (print_rtx): Likewise.
16989
16990 2014-06-06  Richard Biener  <rguenther@suse.de>
16991
16992         * passes.def: Move 2nd VRP pass before phi-only-cprop.
16993
16994 2014-06-06  Christian Bruel  <christian.bruel@st.com>
16995
16996         PR tree-optimization/43934
16997         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16998         cost.
16999
17000 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
17001
17002         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
17003         return NO_REGS for extra address and memory constraints.  Handle
17004         operands that match (or are equivalent to something that matches)
17005         extra constant constraints.  Ignore other non-register operands.
17006
17007 2014-06-06  Alan Modra  <amodra@gmail.com>
17008
17009         PR target/61300
17010         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17011         * doc/tm.texi: Regenerate.
17012         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17013         Use throughout in place of REG_PARM_STACK_SPACE.
17014         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17015         "incoming" param.  Pass to rs6000_function_parms_need_stack.
17016         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17017         prototype_p when incoming.  Use function decl when incoming
17018         to handle K&R style functions.
17019         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17020         (INCOMING_REG_PARM_STACK_SPACE): Define.
17021
17022 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17023
17024         PR target/52472
17025         * cfgexpand.c (expand_debug_expr): Use address space of nested
17026         TREE_TYPE for ADDR_EXPR and MEM_REF.
17027
17028 2014-06-05  Jeff Law  <law@redhat.com>
17029
17030         PR tree-optimization/61289
17031         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17032         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
17033         looking for those which match LHS.  All callers changed.
17034         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17035         parameters and code which manipulated them.  All callers changed.
17036         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17037         and DST_MAP parameters.  Simplify invalidation code by just calling
17038         invalidate_equivalences.  All callers changed.
17039         (thread_across_edge): Simplify now that we don't need to maintain
17040         the map of equivalences to invalidate.
17041
17042 2014-06-05  Kai Tietz  <ktietz@redhat.com>
17043             Richard Henderson  <rth@redhat.com>
17044
17045         PR target/46219
17046         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17047         checking for !TARGET_X32.
17048         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17049         (sibcall_intern): New define_insn, plus required peepholes.
17050         (sibcall_pop_intern): Likewise.
17051         (sibcall_value_intern): Likewise.
17052         (sibcall_value_pop_intern): Likewise.
17053
17054 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
17055
17056         * tree-inline.c (tree_function_versioning): Check DF info existence
17057         before accessing it.
17058
17059 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17060
17061         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17062         frame_size.
17063         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17064         aarch64_frame hard_fp_offset and frame_size.
17065         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17066         frame_size; remove original_frame_size.
17067         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17068         (aarch64_initial_elimination_offset): Remove frame_size and
17069         offset.  Use aarch64_frame frame_size.
17070
17071 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17072             Jiong Wang  <jiong.wang@arm.com>
17073             Renlin  <renlin.li@arm.com>
17074
17075         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17076         initialization of R30 offset.  Update offset.  Iterate core
17077         regisers upto X30.  Remove X29, X30 specific code.
17078
17079 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17080             Jiong Wang  <jiong.wang@arm.com>
17081
17082         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17083         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17084         (aarch64_register_saved_on_entry): Adjust test.
17085
17086 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17087
17088         * config/aarch64/aarch64.h (machine_function): Move
17089         saved_varargs_size from here...
17090         (aarch64_frame): ... to here.
17091
17092         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17093         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17094         (aarch64_initial_elimination_offset)
17095         (aarch64_setup_incoming_varargs): Adjust location of
17096         saved_varargs_size.
17097
17098 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17099
17100         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17101         layout comment.
17102
17103 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
17104             Prachi Godbole  <Prachi.Godbole@imgtec.com>
17105
17106         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
17107         mips32r5 entry to use PROCESSOR_P5600.
17108         * config/mips/mips-tables.opt: Regenerate.
17109         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17110         * config/mips/mips.c (mips_fmadd_bypass): New function.
17111         (mips_rtx_cost_data): Add costs for p5600.
17112         (mips_issue_rate): Add support for p5600.
17113         (mips_multipass_dfa_lookahead): Likewise.
17114         * config/mips/mips.h (TUNE_P5600): New define.
17115         (TUNE_MACC_CHAINS): Add TUNE_P5600.
17116         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17117         * config/mips/mips.md: Include p5600.md.
17118         (processor): Add p5600.
17119         * config/mips/p5600.md: New file.
17120
17121 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
17122
17123         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17124         * config/i386/predicates.md (palignr_operand): New.
17125         Indicates if permutation is suitable for palignr instruction.
17126
17127 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
17128
17129         PR tree-optimization/61319
17130         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17131         stmt belongs to loop.
17132
17133 2014-06-05  Richard Biener  <rguenther@suse.de>
17134
17135         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17136         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17137         (lookup_tmp_var): Adjust.
17138         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17139
17140 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17141
17142         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17143
17144 2014-06-05  Marek Polacek  <polacek@redhat.com>
17145
17146         PR c/49706
17147         * doc/invoke.texi: Document -Wlogical-not-parentheses.
17148
17149 2014-06-04  Tom de Vries  <tom@codesourcery.com>
17150
17151         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17152         CONST_INT.
17153
17154 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
17155
17156         PR tree-optimization/61385
17157         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17158
17159 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
17160
17161         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
17162         changed to use fatal_error.
17163         (main): Ensure lto_wrapper_cleanup is run atexit.
17164
17165 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17166
17167         * lra-constraints.c (valid_address_p): Move earlier in file.
17168         (address_eliminator): New structure.
17169         (satisfies_memory_constraint_p): New function.
17170         (satisfies_address_constraint_p): Likewise.
17171         (process_alt_operands, process_address, curr_insn_transform): Use them.
17172
17173 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17174
17175         * lra-int.h (lra_static_insn_data): Make operand_alternative a
17176         const pointer.
17177         (target_lra_int, default_target_lra_int, this_target_lra_int)
17178         (op_alt_data): Delete.
17179         * lra.h (lra_init): Delete.
17180         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17181         (init_insn_code_data_once): Remove op_alt_data handling.
17182         (finish_insn_code_data_once): Likewise.
17183         (init_op_alt_data): Delete.
17184         (get_static_insn_data): Initialize operand_alternative to null.
17185         (free_insn_recog_data): Cast operand_alternative before freeing it.
17186         (setup_operand_alternative): Take the operand_alternative as
17187         parameter and assume it isn't already cached in the static
17188         insn data.
17189         (lra_set_insn_recog_data): Update accordingly.
17190         (lra_init): Delete.
17191         * ira.c (ira_init): Don't call lra_init.
17192         * target-globals.h (this_target_lra_int): Declare.
17193         (target_globals): Remove lra_int.
17194         (restore_target_globals): Update accordingly.
17195         * target-globals.c: Don't include lra-int.h.
17196         (default_target_globals, save_target_globals): Remove lra_int.
17197
17198 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17199
17200         * recog.h (operand_alternative): Convert reg_class, reject,
17201         matched and matches into bitfields.
17202         (preprocess_constraints): New overload.
17203         (preprocess_insn_constraints): New function.
17204         (preprocess_constraints): Take the insn as parameter.
17205         (recog_op_alt): Change into a pointer.
17206         (target_recog): Add x_op_alt.
17207         * recog.c (asm_op_alt): New variable.
17208         (recog_op_alt): Change into a pointer.
17209         (preprocess_constraints): New overload, replacing the old function
17210         definition with one that doesn't use global state.
17211         (preprocess_insn_constraints): New function.
17212         (preprocess_constraints): Use them.  Take the insn as parameter.
17213         Use asm_op_alt for asms.
17214         (recog_init): Free existing x_op_alt entries.
17215         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17216         pointer const.
17217         (make_early_clobber_and_input_conflicts): Likewise.
17218         (process_bb_node_lives): Pass the insn to process_constraints.
17219         * reg-stack.c (check_asm_stack_operands): Likewise.
17220         (subst_asm_stack_regs): Likewise.
17221         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17222         * regrename.c (build_def_use): Likewise.
17223         * sched-deps.c (sched_analyze_insn): Likewise.
17224         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17225         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17226         (note_invalid_constants): Likewise.
17227         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17228         (ix86_legitimate_combined_insn): Make operand_alternative pointer
17229         const.
17230
17231 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17232
17233         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17234         * ira-lives.c (check_and_make_def_conflict): Check for disabled
17235         alternatives.
17236         (make_early_clobber_and_input_conflicts): Likewise.
17237         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17238
17239 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17240
17241         * recog.h (alternative_class): New function.
17242         (which_op_alt): Return a const recog_op_alt.
17243         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17244         (subst_asm_stack_regs): Likewise.
17245         * config/arm/arm.c (note_invalid_constants): Likewise.
17246         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
17247         the operand_alternative; use alternative class instead.
17248         * sel-sched.c (get_reg_class): Likewise.
17249         * regrename.c (build_def_use): Likewise.
17250         (hide_operands, restore_operands, record_out_operands): Update type
17251         accordingly.
17252
17253 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
17254
17255         * recog.h (recog_op_alt): Convert to a flat array.
17256         (which_op_alt): New function.
17257         * recog.c (recog_op_alt): Convert to a flat array.
17258         (preprocess_constraints): Update accordingly, grouping all
17259         operands of the same alternative together, rather than the
17260         other way around.
17261         * ira-lives.c (check_and_make_def_conflict): Likewise.
17262         (make_early_clobber_and_input_conflicts): Likewise.
17263         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17264         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17265         (subst_asm_stack_regs): Likewise.
17266         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17267         * regrename.c (hide_operands, record_out_operands): Likewise.
17268         (build_def_use): Likewise.
17269         * sel-sched.c (get_reg_class): Likewise.
17270         * config/arm/arm.c (note_invalid_constants): Likewise.
17271
17272 2014-06-04  Jason Merrill  <jason@redhat.com>
17273
17274         PR c++/51253
17275         PR c++/61382
17276         * gimplify.c (gimplify_arg): Non-static.
17277         * gimplify.h: Declare it.
17278
17279 2014-06-04  Richard Biener  <rguenther@suse.de>
17280
17281         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17282         TREE_PUBLIC and DECL_EXTERNAL decls.
17283
17284 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
17285
17286         * regcprop.c (copyprop_hardreg_forward_1): Account for
17287         HARD_REGNO_CALL_PART_CLOBBERED.
17288
17289 2014-06-04  Richard Biener  <rguenther@suse.de>
17290
17291         * configure.ac: Check whether the underlying type of int64_t
17292         is long or long long.
17293         * configure: Regenerate.
17294         * config.in: Likewise.
17295         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17296         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17297
17298 2014-06-04  Richard Biener  <rguenther@suse.de>
17299
17300         PR tree-optimization/60098
17301         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17302         we hit a kill.
17303         (dse_optimize_stmt): Simplify, now that we found a kill
17304         earlier.
17305
17306 2014-06-04  Richard Biener  <rguenther@suse.de>
17307
17308         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17309         of accesses with non-invariant address.
17310
17311 2014-06-04  Martin Liska  <mliska@suse.cz>
17312
17313         * cgraph.h (cgraph_make_wrapper): New function introduced.
17314         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17315         * ipa-inline.h (inline_analyze_function): The function is global.
17316         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17317
17318 2014-06-04  Martin Liska  <mliska@suse.cz>
17319
17320         * tree.h (private_lookup_attribute_starting): New function.
17321         (lookup_attribute_starting): Likewise.
17322         * tree.c (private_lookup_attribute_starting): Likewise.
17323
17324 2014-06-04  Martin Liska  <mliska@suse.cz>
17325
17326         * cgraph.h (expand_thunk): New argument added.
17327         (address_taken_from_non_vtable_p): New global function.
17328         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17329         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17330         * cgraphunit.c (analyze_function): Likewise.
17331         (assemble_thunks_and_aliases): Argument added to call.
17332         (expand_thunk): New argument forces to produce GIMPLE thunk.
17333
17334 2014-06-04  Martin Liska  <mliska@suse.cz>
17335
17336         * coverage.h (coverage_compute_cfg_checksum): Argument added.
17337         * coverage.c (coverage_compute_cfg_checksum): Likewise.
17338         * profile.c (branch_prob): Likewise.
17339
17340 2014-06-04  Martin Jambor  <mjambor@suse.cz>
17341
17342         PR ipa/61340
17343         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17344         handler for switch on an ipa_ref_use enum.
17345         * ipa-reference.c (analyze_function): Likewise.
17346
17347 2014-06-04  Kai Tietz  <ktietz@redhat.com>
17348
17349         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17350         from old call-instruction.
17351
17352 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
17353
17354         * config/aarch64/aarch64.c (aarch64_classify_address)
17355         (aarch64_legitimize_reload_address): Support full addressing modes
17356         for vector modes.
17357         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17358         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17359
17360 2014-06-03  Andrew Pinski  <apinski@cavium.com>
17361
17362         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17363         for OP0.
17364
17365 2014-06-03  Andrew Pinski  <apinski@cavium.com>
17366
17367         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17368         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17369
17370 2014-06-03  Kai Tietz  <ktietz@redhat.com>
17371
17372         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17373         for 64-bit ms-abi.
17374
17375 2014-06-03  Dehao Chen  <dehao@google.com>
17376
17377         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17378         the same loop.
17379
17380 2014-06-03  Marek Polacek  <polacek@redhat.com>
17381
17382         PR c/60439
17383         * doc/invoke.texi: Document -Wswitch-bool.
17384         * function.c (stack_protect_epilogue): Cast controlling expression of
17385         the switch to int.
17386         * gengtype.c (walk_type): Generate switch expression with its
17387         controlling expression cast to int.
17388
17389 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
17390
17391         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17392         and attiny841.
17393         * config/avr/avr-tables.opt: Regenerate.
17394         * config/avr/t-multilib: Regenerate.
17395         * doc/avr-mmcu.texi: Regenerate.
17396
17397 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
17398             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
17399
17400         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17401         (ata6617c, ata664251): Add new avr35 devices.
17402         (ata6612c): Add new avr4 device.
17403         (ata6613c, ata6614q): Add new avr5 devices.
17404         * config/avr/avr-tables.opt: Regenerate.
17405         * config/avr/t-multilib: Regenerate.
17406         * doc/avr-mmcu.texi: Regenerate.
17407
17408 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17409
17410         * gcc/config/aarch64/aarch64-builtins.c
17411         (aarch64_types_binop_ssu_qualifiers): New static data.
17412         (TYPES_BINOP_SSU): Define.
17413         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17414         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17415         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17416         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17417         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17418         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17419         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17420         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17421         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17422         suffix to builtin function name, remove cast.
17423         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17424         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17425         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17426
17427 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17428
17429         * gcc/config/aarch64/aarch64-builtins.c
17430         (aarch64_types_binop_uus_qualifiers,
17431         aarch64_types_shift_to_unsigned_qualifiers,
17432         aarch64_types_unsigned_shiftacc_qualifiers): Define.
17433         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17434         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17435         sqshlu_n, uqshl_n): Update qualifiers.
17436         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17437         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17438         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17439         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17440         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17441         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17442         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17443         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17444         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17445         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17446         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17447         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17448         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17449         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17450         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17451         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17452         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17453         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17454         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17455         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17456         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17457         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17458         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17459         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17460         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17461         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17462         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17463
17464 2014-06-03  Teresa Johnson  <tejohnson@google.com>
17465
17466         * tree-sra.c (modify_function): Record caller nodes after rebuild.
17467
17468 2014-06-02  Jason Merrill  <jason@redhat.com>
17469
17470         PR c++/61020
17471         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17472
17473 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17474
17475         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17476         location == 0.
17477
17478 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
17479
17480         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17481         New pattern.
17482         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17483         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17484         * config/aarch64/iterators.md (REVERSE): New iterator.
17485         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17486         (rev_op): New int_attribute.
17487         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17488         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17489         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17490         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17491         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17492         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17493         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17494         Replace temporary __asm__ with __builtin_shuffle.
17495
17496 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
17497
17498         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17499         mips64r5.
17500         * config/mips/mips-tables.opt: Regenerate.
17501         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17502         to use mips_isa_rev rather than ISA_MIPS32R2.
17503         * config/mips/mips.h (ISA_MIPS32R3): New define.
17504         (ISA_MIPS32R5): New define.
17505         (ISA_MIPS64R3): New define.
17506         (ISA_MIPS64R5): New define.
17507         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17508         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17509         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17510         and mips64r5.
17511         (MIPS_ISA_SYNCI_SPEC): Likewise.
17512         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17513         (LINK_SPEC): Added mips32r3 and mips32r5.
17514         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17515         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17516         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17517         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17518         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17519         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17520         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17521
17522 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
17523
17524         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17525         options.
17526         * config/mips/mips.opt (mxpa): New option.
17527         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17528         assembler.
17529
17530 2014-06-03  Martin Jambor  <mjambor@suse.cz>
17531
17532         PR ipa/61160
17533         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17534         thunks.
17535
17536 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17537
17538         PR tree-optimization/61328
17539         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17540         initialization from find_bswap_or_nop_1.
17541         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17542         in source_expr2 before using the size value the function sets. Also
17543         make use of init_symbolic_number () in both the old place and
17544         find_bswap_or_nop_load () to avoid reading uninitialized memory when
17545         doing recursion in the GIMPLE_BINARY_RHS case.
17546
17547 2014-06-03  Richard Biener  <rguenther@suse.de>
17548
17549         PR tree-optimization/61383
17550         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17551         stmts can't trap.
17552
17553 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
17554
17555         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17556         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17557         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17558         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17559         in this file.
17560         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17561         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17562         * system.h: ...here and make it unconditional.
17563         * target.def (conditional_register_usage): Mention
17564         define_register_constraint instead of old-style constraint macros.
17565         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17566         * doc/tm.texi: Regenerate.
17567         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17568         protected by !USE_MD_CONSTRAINTS.
17569         * config/frv/frv.md: Remove quote from old version of documentation.
17570         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17571         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17572         CONST_DOUBLE_OK_FOR_LETTER.
17573         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17574
17575 2014-06-02  Andrew Pinski  <apinski@cavium.com>
17576
17577         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17578         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17579         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17580         file whose name depends on -mabi= and -mbig-endian.
17581         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17582         Handle LP64 better and handle ilp32 too.
17583         (MULTILIB_OPTIONS): Delete.
17584         (MULTILIB_DIRNAMES): Delete.
17585
17586 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
17587
17588         * expr.h: Remove prototypes of functions defined in builtins.c.
17589         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17590         Remove prototypes of functions defined in builtins.c.
17591         * builtins.h: Update prototype list to include all exported functions.
17592         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17593         no_c99_libc_has_function): Move to targhooks.c
17594         (build_string_literal, build_call_expr_loc_array,
17595         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17596         to tree.c.
17597         (expand_builtin_object_size, fold_builtin_object_size): Make static.
17598         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17599         no_c99_libc_has_function): Relocate from builtins.c.
17600         * tree.c: Include builtins.h.
17601         (build_call_expr_loc_array, build_call_expr_loc_vec,
17602         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17603         from builtins.c.
17604         * fold-const.h (fold_fma): Move prototype to builtins.h.
17605         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17606         * asan.c: Include builtins.h.
17607         * cfgexpand.c: Likewise.
17608         * convert.c: Likewise.
17609         * emit-rtl.c: Likewise.
17610         * except.c: Likewise.
17611         * expr.c: Likewise.
17612         * fold-const.c: Likewise.
17613         * gimple-fold.c: Likewise.
17614         * gimple-ssa-strength-reduction.c: Likewise.
17615         * gimplify.c: Likewise.
17616         * ipa-inline.c: Likewise.
17617         * ipa-prop.c: Likewise.
17618         * lto-streamer-out.c: Likewise.
17619         * stmt.c: Likewise.
17620         * tree-inline.c: Likewise.
17621         * tree-object-size.c: Likewise.
17622         * tree-sra.c: Likewise.
17623         * tree-ssa-ccp.c: Likewise.
17624         * tree-ssa-forwprop.c: Likewise.
17625         * tree-ssa-loop-ivcanon.c: Likewise.
17626         * tree-ssa-loop-ivopts.c: Likewise.
17627         * tree-ssa-math-opts.c: Likewise.
17628         * tree-ssa-reassoc.c: Likewise.
17629         * tree-ssa-threadedge.c: Likewise.
17630         * tree-streamer-in.c: Likewise.
17631         * tree-vect-data-refs.c: Likewise.
17632         * tree-vect-patterns.c: Likewise.
17633         * tree-vect-stmts.c: Likewise.
17634         * config/aarch64/aarch64.c: Likewise.
17635         * config/alpha/alpha.c: Likewise.
17636         * config/arc/arc.c: Likewise.
17637         * config/arm/arm.c: Likewise.
17638         * config/avr/avr.c: Likewise.
17639         * config/bfin/bfin.c: Likewise.
17640         * config/c6x/c6x.c: Likewise.
17641         * config/cr16/cr16.c: Likewise.
17642         * config/cris/cris.c: Likewise.
17643         * config/epiphany/epiphany.c: Likewise.
17644         * config/fr30/fr30.c: Likewise.
17645         * config/frv/frv.c: Likewise.
17646         * config/h8300/h8300.c: Likewise.
17647         * config/i386/i386.c: Likewise.
17648         * config/i386/winnt.c: Likewise.
17649         * config/ia64/ia64.c: Likewise.
17650         * config/iq2000/iq2000.c: Likewise.
17651         * config/lm32/lm32.c: Likewise.
17652         * config/m32c/m32c.c: Likewise.
17653         * config/m32r/m32r.c: Likewise.
17654         * config/m68k/m68k.c: Likewise.
17655         * config/mcore/mcore.c: Likewise.
17656         * config/mep/mep.c: Likewise.
17657         * config/microblaze/microblaze.c: Likewise.
17658         * config/mips/mips.c: Likewise.
17659         * config/mmix/mmix.c: Likewise.
17660         * config/mn10300/mn10300.c: Likewise.
17661         * config/moxie/moxie.c: Likewise.
17662         * config/msp430/msp430.c: Likewise.
17663         * config/nds32/nds32.c: Likewise.
17664         * config/pa/pa.c: Likewise.
17665         * config/pdp11/pdp11.c: Likewise.
17666         * config/picochip/picochip.c: Likewise.
17667         * config/rl78/rl78.c: Likewise.
17668         * config/rs6000/rs6000.c: Likewise.
17669         * config/rx/rx.c: Likewise.
17670         * config/s390/s390.c: Likewise.
17671         * config/score/score.c: Likewise.
17672         * config/sh/sh.c: Likewise.
17673         * config/sparc/sparc.c: Likewise.
17674         * config/spu/spu.c: Likewise.
17675         * config/stormy16/stormy16.c: Likewise.
17676         * config/tilegx/tilegx.c: Likewise.
17677         * config/tilepro/tilepro.c: Likewise.
17678         * config/v850/v850.c: Likewise.
17679         * config/vax/vax.c: Likewise.
17680         * config/xtensa/xtensa.c: Likewise.
17681
17682 2014-06-02  Jeff Law  <law@redhat.com>
17683
17684         PR rtl-optimization/61094
17685         * ree.c (combine_reaching_defs): Do not reextend an insn if it
17686         was marked as do_no_reextend.  If a copy is needed to eliminate
17687         an extension, then mark it as do_not_reextend.
17688
17689 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17690
17691         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17692
17693 2014-06-02  Richard Henderson  <rth@redhat.com>
17694
17695         PR target/61336
17696         * config/alpha/alpha.c (print_operand_address): Allow symbolic
17697         addresses inside asms.  Use output_operand_lossage instead of
17698         gcc_unreachable.
17699
17700 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
17701
17702         PR target/61239
17703         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17704         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17705
17706 2014-06-02  Tom de Vries  <tom@codesourcery.com>
17707
17708         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17709         case that x has VOIDmode.
17710
17711 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
17712
17713         * varasm.c (copy_constant): Delete function.
17714         (build_constant_desc): Don't call it.
17715
17716 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17717
17718         PR target/61154
17719         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17720         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17721         with immediate_operand.
17722
17723 2014-06-02  Andreas Schwab  <schwab@suse.de>
17724
17725         * config/ia64/ia64.c
17726         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17727         pending_data_specs first.
17728
17729 2014-06-02  Richard Biener  <rguenther@suse.de>
17730
17731         PR tree-optimization/61378
17732         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17733         valueized_anything.
17734
17735 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
17736
17737         * config/i386/constraints.md (Bw): Rename from 'w'.
17738         (Bz): Rename from 'z'.
17739         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17740
17741 2014-06-01  Kai Tietz  <ktietz@redhat.com>
17742
17743         PR target/61377
17744         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17745         * config/i386/i386.md (sibcall_insn_operand): Use Bs
17746         instead of m constraint.
17747
17748 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
17749
17750         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17751         a separate alternative where the scratch operand 2 is marked as
17752         early clobber.
17753
17754 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
17755
17756         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17757         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17758         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17759         and __builtins_arm_get_fpscr.
17760         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17761         __builtins_arm_get_fpscr.
17762         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17763         __builtins_arm_ldfpscr.
17764         (arm_atomic_assign_expand_fenv): New function.
17765         * config/arm/vfp.md (set_fpscr): New pattern.
17766         (get_fpscr) : Likewise.
17767         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17768         VUNSPEC_SET_FPSCR.
17769         * doc/extend.texi (AARCH64 Built-in Functions) : Document
17770         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17771
17772 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
17773
17774         * asan.c (report_error_func): Add SLOW_P argument, use
17775         BUILT_IN_ASAN_*_N if set.
17776         (build_check_stmt): Likewise.
17777         (instrument_derefs): If T has insufficient alignment,
17778         force same handling as for odd sizes.
17779
17780         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17781         BUILT_IN_ASAN_REPORT_STORE_N): New.
17782         * asan.c (struct asan_mem_ref): Change access_size type to
17783         HOST_WIDE_INT.
17784         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17785         update_mem_ref_hash_table): Likewise.
17786         (asan_mem_ref_hasher::hash): Hash in a HWI.
17787         (report_error_func): Change size_in_bytes argument to HWI.
17788         Use *_N builtins if size_in_bytes is larger than 16 or not power of
17789         two.
17790         (build_shadow_mem_access): New function.
17791         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
17792         Handle size_in_bytes not power of two or larger than 16.
17793         (instrument_derefs): Don't give up if size_in_bytes is not
17794         power of two or is larger than 16.
17795
17796 2014-05-30  Kai Tietz  <ktietz@redhat.com>
17797
17798         PR target/60104
17799         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17800         for sibling-tail-calls.
17801         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17802         to its use.
17803         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17804         (sibcall_insn_operand): Add check for sibcall_memory_operand.
17805
17806 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17807
17808         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17809         * config/avr/avr-tables.opt: Regenerate.
17810         * config/avr/t-multilib: Regenerate.
17811         * doc/avr-mmcu.texi: Regenerate.
17812
17813 2014-05-30  Ian Lance Taylor  <iant@google.com>
17814
17815         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17816         target("sse").
17817
17818 2014-05-30  Tom de Vries  <tom@codesourcery.com>
17819
17820         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17821         Redefine as true.
17822
17823 2014-05-30  Tom de Vries  <tom@codesourcery.com>
17824
17825         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17826         * lra.c (initialize_lra_reg_info_element): Add init of
17827         actual_call_used_reg_set field.
17828         (lra): Call lra_create_live_ranges before lra_inheritance for
17829         -fuse-caller-save.
17830         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17831         -fuse-caller-save.
17832         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17833         instead of call_used_reg_set for -fuse-caller-save.
17834         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17835
17836 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17837
17838         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17839         to mov_imm.
17840         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17841
17842 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
17843
17844         * ira.c (ira_get_dup_out_num): Check for output operands at
17845         the start of the loop.  Handle cases where an included alternative
17846         follows an excluded one.
17847
17848 2014-05-29  Mike Stump  <mikestump@comcast.net>
17849
17850         PR debug/61352
17851         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17852         post ld passes when lto is used.
17853
17854 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
17855
17856         PR rtl-optimization/61325
17857         * lra-constraints.c (process_address): Rename to process_address_1.
17858         (process_address): New function.
17859
17860 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
17861
17862         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17863         TYPES_BINOPV): New static data.
17864         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17865         New builtin.
17866         * config/aarch64/aarch64-simd.md (aarch64_ext,
17867         aarch64_im_lane_boundsi): New patterns.
17868         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17869         patterns for EXT.
17870         (aarch64_evpc_ext): New function.
17871
17872         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17873
17874         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17875         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17876         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17877         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17878         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17879
17880 2014-05-29  Tom de Vries  <tom@codesourcery.com>
17881
17882         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17883
17884 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
17885             Richard Sandiford  <rdsandiford@googlemail.com>
17886
17887         * arm/iterators.md (shiftable_ops): New code iterator.
17888         (t2_binop0, arith_shift_insn): New code attributes.
17889         * arm/predicates.md (shift_nomul_operator): New predicate.
17890         * arm/arm.md (insn_enabled): Delete.
17891         (enabled): Remove insn_enabled test.
17892         (*arith_shiftsi): Delete.  Replace with ...
17893         (*<arith_shift_insn>_multsi): ... new pattern.
17894         (*<arith_shift_insn>_shiftsi): ... new pattern.
17895         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17896
17897 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
17898             Tom de Vries  <tom@codesourcery.com>
17899
17900         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17901         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17902         clobber.
17903         (mips_split_call): Use POST_CALL_TMP_REG.
17904         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17905
17906 2014-05-29  Tom de Vries  <tom@codesourcery.com>
17907
17908         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17909         with #ifdef STACK_REGS.
17910
17911 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
17912
17913         * varasm.c (get_variable_section): Walk aliases.
17914         (place_block_symbol): Walk aliases.
17915
17916 2014-05-28  Tom de Vries  <tom@codesourcery.com>
17917
17918         Revert:
17919         2014-05-28  Tom de Vries  <tom@codesourcery.com>
17920
17921         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17922         * lra.c (initialize_lra_reg_info_element): Add init of
17923         actual_call_used_reg_set field.
17924         (lra): Call lra_create_live_ranges before lra_inheritance for
17925         -fuse-caller-save.
17926         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17927         -fuse-caller-save.
17928         * lra-constraints.c (need_for_call_save_p): Use
17929         actual_call_used_reg_set instead of call_used_reg_set for
17930         -fuse-caller-save.
17931         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17932
17933 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
17934
17935         * doc/md.texi: Document that the % constraint character must
17936         be at the beginning of the string.
17937         * genoutput.c (validate_insn_alternatives): Check that '=',
17938         '+' and '%' only appear at the beginning of a constraint.
17939         * ira.c (commutative_constraint_p): Delete.
17940         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17941         at the start of the string.
17942         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17943         duplicate '='s.
17944         * config/arm/neon.md (bicdi3_neon): Likewise.
17945         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17946         (slt_si, sltu_si): Likewise.
17947         * config/vax/vax.md (sbcdi3): Likewise.
17948         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17949         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17950         (mul64): Move '%' to beginning of constraint.
17951         * config/arm/arm.md (*xordi3_insn): Likewise.
17952         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17953         (xorsi3): Likewise.
17954
17955 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
17956
17957         * doc/md.texi: Document the restrictions on the "enabled" attribute.
17958
17959 2014-05-28  Jason Merrill  <jason@redhat.com>
17960
17961         PR c++/47202
17962         * cgraph.h (symtab_node::get_comdat_group_id): New.
17963         * cgraphunit.c (analyze_functions): Call it.
17964         * symtab.c (dump_symtab_node): Likewise.
17965         * tree.c (decl_comdat_group_id): New.
17966         * tree.h: Declare it.
17967         * lto-streamer-out.c (write_symbol): Use it.
17968         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17969
17970 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17971
17972         PR bootstrap/PR61146
17973         * wide-int.cc: Do not include longlong.h when compiling with clang.
17974
17975 2014-05-28  Richard Biener  <rguenther@suse.de>
17976
17977         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17978         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17979         (vrp_visit_assignment_or_call): Print less vertical space.
17980         (vrp_visit_stmt): Likewise.
17981         (vrp_visit_phi_node): Likewise.  For a PHI argument with
17982         VR_VARYING range consider recording it as copy.
17983
17984 2014-05-28  Richard Biener  <rguenther@suse.de>
17985
17986         Revert
17987         2014-05-28  Richard Biener  <rguenther@suse.de>
17988
17989         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17990
17991 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17992
17993         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17994         sufficiently aligned and an offset is used at the same time.
17995         (expand_expr_real_1): Likewise.
17996
17997 2014-05-28  Richard Biener  <rguenther@suse.de>
17998
17999         PR middle-end/61045
18000         * fold-const.c (fold_comparison): When folding
18001         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18002         the sign of the remaining constant operand stays the same.
18003
18004 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
18005
18006         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18007         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18008         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18009         to the assembler.
18010         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18011         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18012         (m32bit-doubles) Likewise.
18013         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18014         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18015         option for RL78.
18016
18017 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18018
18019         * configure.ac ($gcc_cv_ld_clearcap): New test.
18020         * configure: Regenerate.
18021         * config.in: Regenerate.
18022         * config/sol2.opt (mclear-hwcap): New option.
18023         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18024         * config/sol2-clearcap.map: Moved here from
18025         testsuite/gcc.target/i386/clearcap.map.
18026         * config/sol2-clearcapv2.map: Move here from
18027         gcc.target/i386/clearcapv2.map.
18028         * config/t-sol2 (install): Depend on install-clearcap-map.
18029         (install-clearcap-map): New target.
18030         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18031         -mclear-hwcap.
18032
18033 2014-05-28  Richard Biener  <rguenther@suse.de>
18034
18035         * hwint.h (*_HALF_WIDE_INT*): Move to ...
18036         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18037         ... here and remove the rest.
18038         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18039
18040 2014-05-28  Richard Biener  <rguenther@suse.de>
18041
18042         PR tree-optimization/61335
18043         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18044         new range fails, drop to varying.
18045
18046 2014-05-28  Olivier Hainque  <hainque@adacore.com>
18047
18048         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18049         (CPP_SPEC): Add entry for -mcpu=8548.
18050         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18051         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18052
18053 2014-05-28  Tom de Vries  <tom@codesourcery.com>
18054
18055         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18056         * lra.c (initialize_lra_reg_info_element): Add init of
18057         actual_call_used_reg_set field.
18058         (lra): Call lra_create_live_ranges before lra_inheritance for
18059         -fuse-caller-save.
18060         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18061         -fuse-caller-save.
18062         * lra-constraints.c (need_for_call_save_p): Use
18063         actual_call_used_reg_set instead of call_used_reg_set for
18064         -fuse-caller-save.
18065         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18066
18067 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18068             Tom de Vries  <tom@codesourcery.com>
18069
18070         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18071         to gccoptlist.
18072         (@item -fuse-caller-save): New item.
18073
18074 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18075             Tom de Vries  <tom@codesourcery.com>
18076
18077         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18078         OPT_fuse_caller_save.
18079
18080 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18081             Tom de Vries  <tom@codesourcery.com>
18082
18083         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18084         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18085         get_call_reg_set_usage.
18086         * resource.c (mark_set_resources, mark_target_live_regs): Use
18087         get_call_reg_set_usage.
18088         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18089         field.
18090         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18091         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18092         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18093         * ira-build.c (ira_create_allocno): Init
18094         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18095         (create_cap_allocno, propagate_allocno_info)
18096         (propagate_some_info_from_allocno)
18097         (copy_info_to_removed_store_destinations): Handle
18098         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18099         * ira-costs.c (ira_tune_allocno_costs): Use
18100         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18101
18102 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
18103             Tom de Vries  <tom@codesourcery.com>
18104
18105         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18106         and function_used_regs_valid fields.
18107         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18108         find_all_hard_reg_sets.
18109         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18110         (get_call_reg_set_usage): New function.
18111         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18112         * regs.h (get_call_reg_set_usage): Declare.
18113
18114 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18115
18116         PR libgcc/61152
18117         * config/dbx.h (License): Add Runtime Library Exception.
18118         * config/newlib-stdint.h (License): Same.
18119         * config/rtems.h (License): Same
18120         * config/initfini-array.h (License): Same
18121         * config/v850/v850.h (License): Same.
18122         * config/v850/v850-opts.h (License): Same
18123         * config/v850/rtems.h (License): Same.
18124
18125 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
18126
18127         PR target/61044
18128         * doc/extend.texi (Local Labels): Note that label differences are
18129         not supported for AVR.
18130
18131 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
18132             Olivier Hainque  <hainque@adacore.com>
18133
18134         * rtl.h (set_for_reg_notes): Declare.
18135         * emit-rtl.c (set_for_reg_notes): New function.
18136         (set_unique_reg_note): Use it.
18137         * optabs.c (add_equal_note): Likewise
18138
18139 2014-05-27  Andrew Pinski  <apinski@cavium.com>
18140
18141         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18142         Use <w> for the register in assembly template.
18143         (stack_protect_test): Use the mode of operands[0] for the result.
18144         (stack_protect_test_<mode>): Use <w> for the register
18145         in assembly template.
18146
18147 2014-05-27  DJ Delorie  <dj@redhat.com>
18148
18149         * config/rx/rx.c (add_vector_labels): New.
18150         (rx_output_function_prologue): Call it.
18151         (rx_handle_func_attribute): Don't require empty arguments.
18152         (rx_handle_vector_attribute): New.
18153         (rx_attribute_table): Add "vector" attribute.
18154         * doc/extend.texi (interrupt, vector): Document new/changed
18155         RX-specific attributes.
18156
18157         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18158
18159 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18160
18161         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18162         predicate to detect a negative quotient.
18163
18164 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18165
18166         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18167         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18168         Add X - Y CMP 0 to X CMP Y transformation.
18169         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18170
18171 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
18172
18173         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18174         before printing.
18175
18176 2014-05-27  Steve Ellcey  <sellcey@mips.com>
18177
18178         * config/mips/mips.c: Add include of cgraph.h.
18179
18180 2014-05-27  Richard Biener  <rguenther@suse.de>
18181
18182         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18183
18184 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
18185
18186         PR libgcc/61152
18187         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18188         * config/arm/arm-cores.def (License): Same.
18189         * config/arm/arm-opts.h (License): Same.
18190         * config/arm/aout.h (License): Same.
18191         * config/arm/bpabi.h (License): Same.
18192         * config/arm/elf.h (License): Same.
18193         * config/arm/linux-elf.h (License): Same.
18194         * config/arm/linux-gas.h (License): Same.
18195         * config/arm/netbsd-elf.h (License): Same.
18196         * config/arm/uclinux-eabi.h (License): Same.
18197         * config/arm/uclinux-elf.h (License): Same.
18198         * config/arm/vxworks.h (License): Same.
18199
18200 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18201
18202         * config/arm/neon.md (neon_bswap<mode>): New pattern.
18203         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18204         (arm_init_neon_builtins): Handle NEON_BSWAP.
18205         Define required type nodes.
18206         (arm_expand_neon_builtin): Handle NEON_BSWAP.
18207         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18208         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18209         * config/arm/iterators.md (VDQHSD): New mode iterator.
18210
18211 2014-05-27  Richard Biener  <rguenther@suse.de>
18212
18213         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18214         Try using literal operands when comparing value-ranges failed.
18215
18216 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18217
18218         * ira.c (commutative_operand): Adjust for change to recog_data.
18219         [Missing from previous commit.]
18220
18221 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18222
18223         * system.h (TEST_BIT): New macro.
18224         * recog.h (alternative_mask): New type.
18225         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18226         (recog_data_d): Replace alternative_enabled_p array with
18227         enabled_alternatives.
18228         (target_recog): New structure.
18229         (default_target_recog, this_target_recog): Declare.
18230         (get_enabled_alternatives, recog_init): Likewise.
18231         * recog.c (default_target_recog, this_target_recog): New variables.
18232         (get_enabled_alternatives): New function.
18233         (extract_insn): Use it.
18234         (recog_init): New function.
18235         (preprocess_constraints, constrain_operands): Adjust for change to
18236         recog_data.
18237         * postreload.c (reload_cse_simplify_operands): Likewise.
18238         * reload.c (find_reloads): Likewise.
18239         * ira-costs.c (record_reg_classes): Likewise.
18240         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
18241         all alternatives after a disabled one would be skipped.
18242         (ira_implicitly_set_insn_hard_regs): Likewise.
18243         * ira.c (ira_setup_alts): Adjust for change to recog_data.
18244         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18245         with enabled_alternatives.
18246         * lra.c (free_insn_recog_data): Update accordingly.
18247         (lra_update_insn_recog_data): Likewise.
18248         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
18249         * lra-constraints.c (process_alt_operands): Likewise.  Handle
18250         only_alternative as part of the enabled mask.
18251         * target-globals.h (this_target_recog): Declare.
18252         (target_globals): Add a recog field.
18253         (restore_target_globals): Restore this_target_recog.
18254         * target-globals.c: Include recog.h.
18255         (default_target_globals): Initialize recog field.
18256         (save_target_globals): Likewise.
18257         * reginfo.c (reinit_regs): Call recog_init.
18258         * toplev.c (backend_init_target): Likewise.
18259
18260 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
18261
18262         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18263         rather than any named insn's code.
18264
18265 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
18266
18267         PR libgcc/61152
18268         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18269         * config/arm/arm-cores.def (License): Same.
18270
18271 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
18272
18273         * tree.h (decl_comdat_group): Declare.
18274         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18275         * tree.c (decl_comdat_group): Here.
18276
18277 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
18278
18279         PR rtl-optimization/61222
18280         * combine.c (simplify_shift_const_1): When moving a PLUS outside
18281         the shift, truncate the PLUS operand to the result mode.
18282
18283 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
18284
18285         PR target/61271
18286         * config/i386/i386.c (ix86_rtx_costs)
18287         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18288         Fix condition.
18289
18290 2014-05-26  Martin Jambor  <mjambor@suse.cz>
18291
18292         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18293         subreg uses.
18294
18295 2014-05-26  Richard Biener  <rguenther@suse.de>
18296
18297         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18298         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18299         Provide specializations.
18300         (wi::int_traits <HOST_WIDE_INT>,
18301         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18302
18303 2014-05-26  Alan Modra  <amodra@gmail.com>
18304
18305         PR target/61098
18306         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18307         params and return a bool.  Remove dead code.  Update comment.
18308         Assert we have a const_int source.  Remove bogus code from
18309         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
18310         handling of constants > 2G and reg_equal note, from..
18311         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
18312         return value.  Update comment.  If we can, use a new pseudo
18313         for intermediate calculations.
18314         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18315         prototype.
18316         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18317         call to rs6000_emit_set_const in splitter.
18318         (movdi_internal64+2, +3): Likewise.
18319
18320 2014-05-26  Richard Biener  <rguenther@suse.de>
18321
18322         * system.h: Define __STDC_FORMAT_MACROS before
18323         including inttypes.h.
18324         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18325         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18326         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18327         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18328         HOST_WIDEST_INT_C): Remove.
18329         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18330         if C99 inttypes.h is not available.
18331         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18332         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18333         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18334         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18335         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18336         (struct output_info): Likewise.
18337         (print_statistics): Adjust.
18338         (dump_bitmap_statistics): Likewise.
18339         * bt-load.c (migrate_btr_defs): Print with PRId64.
18340         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18341         (MAX_SAFE_MULTIPLIER): Adjust.
18342         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18343         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18344         dump_cgraph_node): Likewise.
18345         * final.c (dump_basic_block_info): Likewise.
18346         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18347         * gcov.c (format_gcov): Likewise.
18348         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
18349         for calculation.
18350         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18351         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18352         (inline_small_functions, dump_overall_stats, dump_inline_stats):
18353         Use PRId64 for dumping.
18354         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18355         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18356         (add_allocno_hard_regs): Adjust.
18357         * loop-doloop.c (doloop_modify): Print using PRId64.
18358         * loop-iv.c (inverse): Compute in uint64_t.
18359         (determine_max_iter, iv_number_of_iterations): Likewise.
18360         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18361         Print using PRId64.
18362         * lto-streamer-out.c (write_symbol): Use uint64_t.
18363         * mcf.c (CAP_INFINITY): Use int64_t maximum.
18364         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18365         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18366         * modulo-sched.c (const_iteration_count): Use int64_t.
18367         (sms_schedule): Dump using PRId64.
18368         * predict.c (dump_prediction): Likewise.
18369         * pretty-print.h (pp_widest_integer): Remove.
18370         * profile.c (get_working_sets, is_edge_inconsistent,
18371         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18372         * tree-pretty-print.c (pp_double_int): Remove case handling
18373         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18374         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18375         and adjust users.
18376         (pass_optimize_bswap::execute): Remove restriction on hosts.
18377         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18378         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18379         * tree.c (widest_int_cst_value): Remove.
18380         * tree.h (widest_int_cst_value): Likewise.
18381         * value-prof.c (dump_histogram_value): Print using PRId64.
18382         * gengtype.c (main): Also inject int64_t.
18383         * ggc-page.c (struct max_alignment): Use int64_t.
18384         * alloc-pool.c (struct allocation_object_def): Likewise.
18385         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18386         for computation.
18387         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18388         * doc/tm.texi: Regenerated.
18389         * gengtype-lex.l (IWORD): Handle [u]int64_t.
18390         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18391         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18392         mmix_output_register_setting): Use [u]int64_t in prototypes.
18393         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18394         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18395         mmix_output_octa, mmix_output_shifted_value): Adjust.
18396         (mmix_intval): Adjust.  Remove unreachable case.
18397         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18398
18399 2014-05-26  Richard Biener  <rguenther@suse.de>
18400
18401         * configure.ac: Drop __int64 type check.  Insist that we
18402         found uint64_t and int64_t.
18403         * hwint.h (HOST_BITS_PER___INT64): Remove.
18404         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18405         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18406         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18407         (HOST_WIDEST_FAST_INT): Remove __int64 case.
18408         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18409         for dst_q_src_df_rms_cdt.
18410         * configure: Regenerate.
18411         * config.in: Likewise.
18412
18413 2014-05-26  Michael Tautschnig  <mt@debian.org>
18414
18415         PR target/61249
18416         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18417         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18418
18419 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18420
18421         PR rtl-optimization/61278
18422         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18423
18424 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18425
18426         PR rtl-optimization/61220
18427         Part of PR rtl-optimization/61225
18428         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18429         insn; skip split_edge for a block with only one successor.
18430
18431 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18432
18433         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18434         for variables.
18435
18436 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18437
18438         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18439         (update_vtable_references): New function.
18440         (function_and_variable_visibility): Rewrite also vtable initializers.
18441         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18442
18443 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18444
18445         * ggc.h (ggc_grow): New function.
18446         * ggc-none.c (ggc_grow): New function.
18447         * ggc-page.c (ggc_grow): Likewise.
18448
18449 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18450
18451         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18452         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18453         comdat_can_be_unshared_p, cgraph_externally_visible_p,
18454         varpool_externally_visible_p, can_replace_by_local_alias,
18455         update_visibility_by_resolution_info, function_and_variable_visibility,
18456         pass_data_ipa_function_and_variable_visibility,
18457         make_pass_ipa_function_and_variable_visibility,
18458         whole_program_function_and_variable_visibility,
18459         pass_data_ipa_whole_program_visibility,
18460         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18461         * cgraph.h (cgraph_local_node_p): Declare.
18462         * ipa-visibility.c: New file.
18463         * Makefile.in (OBJS): Add ipa-visiblity.o
18464
18465 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18466
18467         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18468         that var decl is available.
18469
18470 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18471
18472         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18473         symtab_node pointer.
18474         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18475         (find_decls_types_r): Do not walk COMDAT_GROUP.
18476         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18477         * varasm.c (make_decl_one_only): Use set_comdat_group;
18478         create node if needed.
18479         * ipa-inline-transform.c (save_inline_function_body): Update
18480         way we decl->symtab mapping.
18481         * symtab.c (symtab_hash, hash_node, eq_node
18482         symtab_insert_node_to_hashtable): Remove.
18483         (symtab_register_node): Update.
18484         (symtab_unregister_node): Update.
18485         (symtab_get_node): Reimplement as inline function.
18486         (symtab_add_to_same_comdat_group): Update.
18487         (symtab_dissolve_same_comdat_group_list): Update.
18488         (dump_symtab_base): Update.
18489         (verify_symtab_base): Update.
18490         (symtab_make_decl_local): Update.
18491         (fixup_same_cpp_alias_visibility): Update.
18492         (symtab_nonoverwritable_alias): Update.
18493         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18494         * ipa.c (update_visibility_by_resolution_info): UPdate.
18495         * bb-reorder.c: Include cgraph.h
18496         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18497         with comdat groups.
18498         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18499         * cgraph.c (cgraph_get_create_node): Update.
18500         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18501         and comdat_group_.
18502         (symtab_get_node): Make inline.
18503         (symtab_insert_node_to_hashtable): Remove.
18504         (symtab_can_be_discarded): Update.
18505         (decl_comdat_group): New function.
18506         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18507         Update.
18508         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18509         comdat group name.
18510         (read_comdat_group): New function.
18511         (input_node, input_varpool_node): Use it.
18512         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18513         comdat groups.
18514         * mips.c (mips_start_unique_function): Likewise.
18515         (ix86_code_end): Likewise.
18516         (rs6000_code_end): Likweise.
18517         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18518
18519 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18520
18521         * gengtype-state.c (fatal_reading_state): Bring offline.
18522         * optabs.c (widening_optab_handler): Bring offline.
18523         * optabs.h (widening_optab_handler): Likewise.
18524         * final.c (get_attr_length_1): Likewise.
18525
18526 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
18527
18528         * sched-int.h (sd_iterator_cond): Manually tail recurse.
18529
18530 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18531
18532         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18533         (ppc440-compare): Include shift with dot.
18534         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18535         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18536         without dot.
18537         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18538         without dot.
18539         (e6500_sfx2): Include it.
18540         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18541         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18542         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18543         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18544         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18545         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18546         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18547         *lshiftrt_internal1le, *lshiftrt_internal1be,
18548         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18549         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18550         *rotldi3_internal10le, *rotldi3_internal10be,
18551         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18552         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18553         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18554         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18555         define_insns): Use type "shift" in the appropriate alternatives.
18556
18557 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18558
18559         * config/rs6000/rs6000.md (type): Add "logical".  Delete
18560         "fast_compare".
18561         (dot): Adjust comment.
18562         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18563         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18564         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18565         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18566         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18567         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18568         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18569         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18570
18571         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18572         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18573         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18574         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18575         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18576         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18577         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18578         * config/rs6000/8540.md (ppc8540_su): Adjust.
18579         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18580         cell-cmp-microcoded): Adjust.
18581         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18582         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18583         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18584         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18585         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18586         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18587         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18588         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18589         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18590         Adjust.
18591         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18592         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18593         Adjust.  Adjust comment.
18594         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18595         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18596
18597 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18598
18599         * config/rs6000/rs6000.md (type): Add "add".
18600         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18601         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18602         define_insns): Use it.
18603         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18604
18605         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18606         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18607         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18608         * config/rs6000/601.md (ppc601-integer): Adjust.
18609         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18610         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18611         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18612         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18613         * config/rs6000/8540.md (ppc8540_su): Adjust.
18614         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18615         cell-cmp-microcoded): Adjust.
18616         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18617         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18618         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18619         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18620         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18621         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18622         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18623         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18624         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18625         Adjust.
18626         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18627         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18628         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18629         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18630
18631 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18632
18633         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18634         "delayed_compare", "var_delayed_compare".
18635         (var_shift): New attribute.
18636         (cell_micro): Adjust.
18637         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18638         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18639         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18640         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18641         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18642         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18643         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18644         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18645         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18646         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18647         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18648         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18649         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18650         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18651         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18652         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18653         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18654         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18655         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18656         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18657         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18658         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18659         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18660         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18661         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18662
18663         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18664         * config/rs6000/440.md (ppc440-integer): Adjust.
18665         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18666         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18667         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18668         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18669         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18670         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18671         * config/rs6000/8540.md (ppc8540_su): Adjust.
18672         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18673         cell-cmp-microcoded): Adjust.
18674         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18675         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18676         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18677         e500mc64_delayed): Adjust.
18678         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18679         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18680         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18681         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18682         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18683         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18684         power6-delayed-compare, power6-var-delayed-compare): Adjust.
18685         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18686         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18687         Adjust comment.
18688         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18689         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18690
18691 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18692
18693         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
18694         (bits): New mode_attr.
18695         (idiv_ldiv): Delete mode_attr.
18696         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18697         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18698         rs6000_adjust_priority, is_nonpipeline_insn,
18699         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18700
18701         * config/rs6000/40x.md (ppc403-idiv): Adjust.
18702         * config/rs6000/440.md (ppc440-idiv): Adjust.
18703         * config/rs6000/476.md (ppc476-idiv): Adjust.
18704         * config/rs6000/601.md (ppc601-idiv): Adjust.
18705         * config/rs6000/603.md (ppc603-idiv): Adjust.
18706         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18707         ppc620-ldiv): Adjust.
18708         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18709         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18710         * config/rs6000/8540.md (ppc8540_divide): Adjust.
18711         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18712         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18713         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18714         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18715         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18716         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18717         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18718         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18719         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18720         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18721         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18722         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18723         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18724         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18725         * config/rs6000/titan.md (titan_fxu_div): Adjust.
18726
18727 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18728
18729         * config/rs6000/rs6000.md (type): Delete "insert_word",
18730         "insert_dword".  Add "insert".
18731         (size): Update comment.
18732         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18733         insn_must_be_first_in_group): Adjust.
18734         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18735         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18736         *insvsi_internal6, insvdi_internal): Adjust.
18737
18738         * config/rs6000/40x.md (ppc403-integer): Adjust.
18739         * config/rs6000/440.md (ppc440-integer): Adjust.
18740         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18741         * config/rs6000/601.md (ppc601-integer): Adjust.
18742         * config/rs6000/603.md (ppc603-integer): Adjust.
18743         * config/rs6000/6xx.md (ppc604-integer): Adjust.
18744         * config/rs6000/7450.md (ppc7450-integer): Adjust.
18745         * config/rs6000/7xx.md (ppc750-integer): Adjust.
18746         * config/rs6000/8540.md (ppc8540_su): Adjust.
18747         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18748         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18749         * config/rs6000/e500mc.md (e500mc_su): Adjust.
18750         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18751         * config/rs6000/e5500.md (e5500_sfx): Adjust.
18752         * config/rs6000/e6500.md (e6500_sfx): Adjust.
18753         * config/rs6000/mpc.md (mpccore-integer): Adjust.
18754         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18755         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18756         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18757         * config/rs6000/power7.md (power7-integer): Adjust.
18758         * config/rs6000/power8.md (power8-1cyc): Adjust.
18759         * config/rs6000/rs64.md (rs64a-integer): Adjust.
18760         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18761
18762 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18763
18764         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
18765         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18766         (size): New attribute.
18767         (dot): New attribute.
18768         (cell_micro): Adjust.
18769         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18770         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18771         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18772         umuldi3_highpart): Adjust.
18773         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18774         rs6000_adjust_priority, is_nonpipeline_insn,
18775         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18776
18777         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18778         ppc405-imul3): Adjust.
18779         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18780         * config/rs6000/476.md (ppc476-imul): Adjust.
18781         * config/rs6000/601.md (ppc601-imul): Adjust.
18782         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18783         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18784         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18785         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18786         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18787         Adjust.
18788         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18789         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18790         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18791         cell-imul): Adjust.
18792         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18793         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18794         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18795         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18796         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18797         * config/rs6000/mpc.md (mpccore-imul): Adjust.
18798         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18799         power4-lmul, power4-imul, power4-imul3): Adjust.
18800         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18801         power5-lmul, power5-imul, power5-imul3): Adjust.
18802         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18803         power6-lmul, power6-imul, power6-imul3): Adjust.
18804         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18805         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18806
18807         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18808         rs64a-lmul): Adjust.
18809         * config/rs6000/titan.md (titan_imul): Adjust.
18810
18811 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18812
18813         * config/rs6000/rs6000.md (type): Add new value "halfmul".
18814         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18815         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18816         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18817         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18818         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18819         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18820         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18821         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18822         * config/rs6000/titan.md: Delete nonsensical comment.
18823         (titan_imul): Add type imul3.
18824         (titan_mulhw): Remove type imul3; add type halfmul.
18825
18826 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
18827
18828         * config/rs6000/rs6000.md (type): Reorder, reformat.
18829
18830 2014-05-23  Martin Jambor  <mjambor@suse.cz>
18831
18832         PR tree-optimization/53787
18833         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18834         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18835         analysis_done, update all uses.
18836         * ipa-prop.c: Include domwalk.h
18837         (param_analysis_info): Removed.
18838         (param_aa_status): New type.
18839         (ipa_bb_info): Likewise.
18840         (func_body_info): Likewise.
18841         (ipa_get_bb_info): New function.
18842         (aa_overwalked): Likewise.
18843         (find_dominating_aa_status): Likewise.
18844         (parm_bb_aa_status_for_bb): Likewise.
18845         (parm_preserved_before_stmt_p): Changed to use new param AA info.
18846         (load_from_unmodified_param): Accept func_body_info as a parameter
18847         instead of parms_ainfo.
18848         (parm_ref_data_preserved_p): Changed to use new param AA info.
18849         (parm_ref_data_pass_through_p): Likewise.
18850         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
18851         (compute_complex_assign_jump_func): Changed to use new param AA info.
18852         (compute_complex_ancestor_jump_func): Likewise.
18853         (ipa_compute_jump_functions_for_edge): Likewise.
18854         (ipa_compute_jump_functions): Removed.
18855         (ipa_compute_jump_functions_for_bb): New function.
18856         (ipa_analyze_indirect_call_uses): Likewise, moved variable
18857         declarations down.
18858         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18859         and info, moved variable declarations down.
18860         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18861         node and info.
18862         (ipa_analyze_stmt_uses): Likewise.
18863         (ipa_analyze_params_uses): Removed.
18864         (ipa_analyze_params_uses_in_bb): New function.
18865         (ipa_analyze_controlled_uses): Likewise.
18866         (free_ipa_bb_info): Likewise.
18867         (analysis_dom_walker): New class.
18868         (ipa_analyze_node): Handle node-specific forbidden analysis,
18869         initialize and free func_body_info, use dominator walker.
18870         (ipcp_modif_dom_walker): New class.
18871         (ipcp_transform_function): Create and free func_body_info, use
18872         ipcp_modif_dom_walker, moved a lot of functionality there.
18873
18874 2014-05-23  Marek Polacek  <polacek@redhat.com>
18875             Jakub Jelinek  <jakub@redhat.com>
18876
18877         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18878         * gcc.c (sanitize_spec_function): Likewise.
18879         * convert.c (convert_to_integer): Include "ubsan.h".  Add
18880         floating-point to integer instrumentation.
18881         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18882         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18883         SANITIZE_NONDEFAULT.
18884         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18885         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18886         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18887         * ubsan.c: Include "realmpfr.h" and "dfp.h".
18888         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18889         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18890         float/double/long double.
18891         (ubsan_instrument_float_cast): New function.
18892         * ubsan.h (ubsan_instrument_float_cast): Declare.
18893
18894 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
18895
18896         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18897         predicate.
18898         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
18899         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18900         Adjust for tailcalling through registers.
18901         * config/aarch64/aarch64.h (enum reg_class): New caller save
18902         register class.
18903         (REG_CLASS_NAMES): Likewise.
18904         (REG_CLASS_CONTENTS): Likewise.
18905         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18906         Allow tailcalling without decls.
18907
18908 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
18909
18910         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18911         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18912
18913         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18914         gsi, and variables v_* to v*.
18915
18916 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
18917
18918         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18919
18920 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
18921
18922         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18923         * omp-low.c: Update accordingly.
18924
18925         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18926         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18927         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18928         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18929         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18930         GF_OMP_TARGET_KIND_UPDATE.
18931
18932         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18933         Explicitly enumerate the expected region types.
18934
18935 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18936
18937         PR other/56955
18938         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
18939         documentation; the old documentation didn't clearly state the
18940         constraints on the contents of the pointed-to storage.
18941
18942 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18943
18944         Fix bootstrap error on ia64
18945         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18946         Return default value.
18947
18948 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18949
18950         PR tree-optimization/54733
18951         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18952         (CMPNOP): Define.
18953         (find_bswap_or_nop_load): New.
18954         (find_bswap_1): Renamed to ...
18955         (find_bswap_or_nop_1): This. Also add support for memory source.
18956         (find_bswap): Renamed to ...
18957         (find_bswap_or_nop): This. Also add support for memory source and
18958         detection of bitwise operations equivalent to load in target
18959         endianness.
18960         (execute_optimize_bswap): Likewise. Also move its leading comment back
18961         in place and split statement transformation into ...
18962         (bswap_replace): This.
18963
18964 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
18965
18966         PR rtl-optimization/61215
18967         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18968         simplify_gen_subreg until final substitution.
18969
18970 2014-05-23  Alan Modra  <amodra@gmail.com>
18971
18972         PR target/61231
18973         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18974         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18975         Use "Y" constraint rather than "m".
18976
18977 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18978
18979         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18980         define.
18981         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18982         New function declaration.
18983         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18984         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18985         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18986         (aarch64_init_builtins) : Initialize builtins
18987         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18988         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18989         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18990         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18991         and __builtins_aarch64_set_fpsr.
18992         (aarch64_atomic_assign_expand_fenv): New function.
18993         * config/aarch64/aarch64.md (set_fpcr): New pattern.
18994         (get_fpcr) : Likewise.
18995         (set_fpsr) : Likewise.
18996         (get_fpsr) : Likewise.
18997         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18998          and UNSPECV_SET_FPSR.
18999         * doc/extend.texi (AARCH64 Built-in Functions) : Document
19000         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19001         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19002
19003 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
19004
19005         PR rtl-optimization/60969
19006         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19007         constraints.  Set up mem cost for NO_REGS case.
19008
19009 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
19010
19011         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19012
19013 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
19014
19015         * config/darwin.c: Include "lto-section-names.h".
19016         (LTO_SEGMENT_NAME): Don't define.
19017         * config/i386/winnt.c: Include "lto-section-names.h".
19018         * lto-streamer.c: Include "lto-section-names.h".
19019         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19020         * lto-wrapper.c: Include "lto-section-names.h".
19021         (LTO_SECTION_NAME_PREFIX): Don't define.
19022         * lto-section-names.h: New file.
19023         * cgraphunit.c: Include "lto-section-names.h".
19024
19025 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
19026
19027         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19028
19029 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
19030
19031         PR target/61208
19032         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19033
19034 2014-05-22  Nick Clifton  <nickc@redhat.com>
19035
19036         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19037
19038 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
19039
19040         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19041         -> (T)A transformation to integer types.
19042
19043 2014-05-22  Teresa Johnson  <tejohnson@google.com>
19044
19045         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19046         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19047         (gcov_rewrite): Use gcov_nonruntime_assert.
19048         (gcov_open): Ditto.
19049         (gcov_write_words): Ditto.
19050         (gcov_write_length): Ditto.
19051         (gcov_read_words): Use gcov_nonruntime_assert, and remove
19052         gcc_assert from IN_LIBGCOV code.
19053         (gcov_read_summary): Use gcov_error to flag profile corruption.
19054         (gcov_sync): Use gcov_nonruntime_assert.
19055         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19056         (gcov_histo_index): Use gcov_nonruntime_assert.
19057         (static void gcov_histogram_merge): Ditto.
19058         (compute_working_sets): Ditto.
19059         * gcov-io.h (gcov_nonruntime_assert): Define.
19060         (gcov_error): Define for !IN_LIBGCOV
19061
19062 2014-05-22  Richard Biener  <rguenther@suse.de>
19063
19064         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19065         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19066         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19067         and deallocation site.
19068         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19069         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19070         passing through the incoming points-to set.
19071         (handle_lhs_call): Use flags argument instead of recomputing it.
19072         (find_func_aliases_for_call): Call handle_lhs_call with proper
19073         call return flags.
19074
19075 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
19076
19077         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19078         all padding bits in REAL_VALUE_TYPE are cleared.
19079
19080 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19081
19082         Cleanup and improve multipass_dfa_lookahead_guard
19083         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19084         (core2i7_first_cycle_multipass_begin,)
19085         (core2i7_first_cycle_multipass_issue,)
19086         (core2i7_first_cycle_multipass_backtrack): Update signature.
19087         * config/ia64/ia64.c
19088         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19089         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19090         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19091         hook definition.
19092         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19093         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
19094         values.
19095         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19096         return values.
19097         * doc/tm.texi: Regenerate.
19098         * doc/tm.texi.in
19099         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19100         * haifa-sched.c (ready_try): Make signed to allow negative values.
19101         (rebug_ready_list_1): Update.
19102         (choose_ready): Simplify.
19103         (sched_extend_ready_list): Update.
19104
19105 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19106
19107         Remove IA64 speculation tweaking flags
19108         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19109         speculation tuning flags.
19110         (msched-prefer-non-data-spec-insns,)
19111         (msched-prefer-non-control-spec-insns): Obsolete options.
19112         * haifa-sched.c (choose_ready): Remove handling of
19113         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19114         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19115         and PREFER_NON_DATA_SPEC.
19116         * sel-sched.c (process_spec_exprs): Remove handling of
19117         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19118
19119 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19120
19121         Improve scheduling debug output
19122         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19123         (advance_one_cycle): Update.
19124         (schedule_insn, queue_to_ready): Add debug printouts.
19125         (debug_ready_list_1): New static function.
19126         (debug_ready_list): Update.
19127         (max_issue): Add debug printouts.
19128         (dump_insn_stream): New static function.
19129         (schedule_block): Use it.  Also better indent printouts.
19130
19131 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19132
19133         Fix sched_insn debug counter
19134         * haifa-sched.c (schedule_insn): Update.
19135         (struct haifa_saved_data): Add nonscheduled_insns_begin.
19136         (save_backtrack_point, restore_backtrack_point): Update.
19137         (first_nonscheduled_insn): New static function.
19138         (queue_to_ready, choose_ready): Use it.
19139         (schedule_block): Init nonscheduled_insns_begin.
19140         (sched_emit_insn): Update.
19141
19142
19143 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
19144
19145         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19146         to GENERAL_REGS.
19147         (aarch64_secondary_reload) : LikeWise.
19148         (aarch64_class_max_nregs) : Remove CORE_REGS.
19149         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19150         (REG_CLASS_NAMES) : Likewise.
19151         (REG_CLASS_CONTENTS) : LikeWise.
19152         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19153
19154 2014-05-21  Guozhi Wei  <carrot@google.com>
19155
19156         PR target/61202
19157         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19158         constraint.
19159         (vqdmulhq_n_s16): Likewise.
19160
19161 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
19162
19163         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19164
19165 2014-05-21  Marek Polacek  <polacek@redhat.com>
19166
19167         PR sanitizer/61272
19168         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19169
19170 2014-05-21  Martin Jambor  <mjambor@suse.cz>
19171
19172         * doc/invoke.texi (Optimize Options): Document parameters
19173         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19174         ipa-cp-array-index-hint-bonus.
19175
19176 2014-05-21  Mark Wielaard  <mjw@redhat.com>
19177
19178         PR debug/16063
19179         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19180         version >= 3 or not strict DWARF.
19181         * langhooks.h (struct lang_hooks_for_types): Add
19182         enum_underlying_base_type.
19183         * langhooks.c (lhd_enum_underlying_base_type): New function.
19184         * gcc/langhooks.h (struct lang_hooks_for_types): Add
19185         enum_underlying_base_type.
19186         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19187         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19188         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19189
19190 2014-05-21  Richard Biener  <rguenther@suse.de>
19191
19192         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19193
19194 2014-05-21  John Marino  <gnugcc@marino.st>
19195
19196         * config.gcc (*-*-dragonfly*): New target.
19197         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19198         * configure: Regenerate.
19199         * config/dragonfly-stdint.h: New.
19200         * config/dragonfly.h: New.
19201         * config/dragonfly.opt: New.
19202         * config/i386/dragonfly.h: New.
19203         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19204
19205 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19206
19207         * tree.def (VOID_CST): New.
19208         * tree-core.h (TI_VOID): New.
19209         * tree.h (void_node): New.
19210         * tree.c (tree_node_structure_for_code, tree_code_size)
19211         (iterative_hash_expr): Handle VOID_CST.
19212         (build_common_tree_nodes): Initialize void_node.
19213
19214 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
19215
19216         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19217         functions.
19218         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19219
19220         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19221         more places.
19222
19223         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19224         flag_reorder_blocks_and_partition.
19225         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19226
19227 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
19228
19229         PR target/54236
19230         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
19231         constraints.
19232         (*addc_r_t): Add new insn_and_split.
19233
19234 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
19235
19236         PR middle-end/61252
19237         * omp-low.c (handle_simd_reference): New function.
19238         (lower_rec_input_clauses): Use it.  Defer adding reference
19239         initialization even for reduction without placeholder if in simd,
19240         handle it properly later on.
19241
19242 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19243
19244         PR tree-optimization/60899
19245         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19246         assume all static symbols will have definition wile parsing and
19247         check the do have definition later in compilation; check that
19248         variable referring symbol will be output before concluding that
19249         reference is safe; be conservative for referring local statics;
19250         be more precise about when comdat is output in other partition.
19251
19252 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19253
19254         PR bootstrap/60984
19255         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19256         parameter.
19257         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19258         (ipa_inline): Loop inline_to_all_callers until no more aliases
19259         are removed.
19260
19261 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19262
19263         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19264         set writeonly flag only for vars actually written to.
19265
19266 2014-05-20  Dehao Chen  <dehao@google.com>
19267
19268         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19269         and callee count to get clone count.
19270         * tree-inline.c (expand_call_inline): Use callee count instead of bb
19271         count in copy_body.
19272
19273 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19274
19275         PR rtl-optimization/61243
19276         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19277
19278 2014-05-20  Xinliang David Li  <davidxl@google.com>
19279
19280         * cgraphunit.c (walk_polymorphic_call_targets): Add
19281         dbgcnt and fopt-info support.
19282         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19283         * ipa-devirt.c (ipa_devirt): Ditto.
19284         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19285         * ipa.c (walk_polymorphic_call_targets): Ditto.
19286         * gimple-fold.c (fold_gimple_assign): Ditto.
19287         (gimple_fold_call): Ditto.
19288         * dbgcnt.def: New counter.
19289
19290 2014-05-20  DJ Delorie  <dj@redhat.com>
19291
19292         * config/msp430/msp430.md (split): Don't allow subregs when
19293         splitting SImode adds.
19294         (andneghi): Fix subtraction logic.
19295         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19296
19297 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
19298
19299         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19300         symbols.
19301         * except.c (switch_to_exception_section, resolve_unique_section,
19302         get_named_text_section, default_function_rodata_section,
19303         align_variable, get_block_for_decl, default_section_type_flags):
19304         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19305         * symtab.c (symtab_add_to_same_comdat_group,
19306         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19307         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19308         Likewise.
19309         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19310         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19311         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19312         (c6x_function_in_section_p): Likewise.
19313         * config/darwin.c (machopic_select_section): Likewise.
19314         * config/arm/arm.c (arm_function_in_section_p): Likewise.
19315         * config/mips/mips.c (mips_function_rodata_section): Likewise.
19316         * config/mep/mep.c (mep_select_section): LIkewise.
19317         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19318
19319 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
19320
19321         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19322         EH region of calls to pure functions that can throw an exception.
19323         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19324         (copy_reference_ops_from_call): Also copy the EH region of the call if
19325         it can throw an exception.
19326
19327 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19328
19329         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19330         nested VEC_SELECTs that are inverses of each other.
19331
19332 2014-05-20  Richard Biener  <rguenther@suse.de>
19333
19334         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19335         (extract_and_process_scc_for_name): not here.
19336         (cond_dom_walker::before_dom_children): Only process
19337         stmts that end the BB in interesting ways.
19338         (run_scc_vn): Mark param uses as visited.
19339
19340 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19341
19342         * config/arm/arm.md (arith_shiftsi): Do not predicate for
19343         arm_restrict_it.
19344
19345 2014-05-20  Nick Clifton  <nickc@redhat.com>
19346
19347         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19348         (msp430_gimplify_va_arg_expr): New function.
19349         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19350
19351         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19352         operand 0 in order to prevent confusion about the number of
19353         registers involved.
19354
19355 2014-05-20  Richard Biener  <rguenther@suse.de>
19356
19357         PR tree-optimization/61221
19358         * tree-ssa-pre.c (el_to_update): Remove.
19359         (eliminate_dom_walker::before_dom_children): Handle released
19360         VDEFs by value-numbering them to the associated VUSE.  Update
19361         stmt immediately for substituted call address.
19362         (eliminate): Remove delayed stmt updating code.
19363         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19364         possibly late re-numbered vuses.
19365         (vn_reference_lookup_2): Adjust.
19366         (vn_reference_lookup_pieces): Likewise.
19367         (vn_reference_lookup): Likewise.
19368
19369 2014-05-20  Richard Biener  <rguenther@suse.de>
19370
19371         * config.gcc: Remove need_64bit_hwint.
19372         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19373         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19374         it to be true.
19375         * config.in: Regenerate.
19376         * configure: Likewise.
19377
19378 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
19379
19380         * doc/extend.texi: Create Label Attributes section,
19381         move all label attributes into it and reference it.
19382
19383 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
19384
19385         * arm.c (thumb1_reorg): When scanning backwards skip anything
19386         that's not a proper insn.
19387
19388 2014-05-19  Richard Biener  <rguenther@suse.de>
19389
19390         PR tree-optimization/61221
19391         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19392         Do nothing for unreachable blocks.
19393         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19394         Improve unreachability detection.
19395
19396 2014-05-19  Richard Biener  <rguenther@suse.de>
19397
19398         PR tree-optimization/61209
19399         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19400
19401 2014-05-19  Nick Clifton  <nickc@redhat.com>
19402
19403         * except.c (init_eh): Fix computation of builtin setjmp buffer
19404         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19405
19406 2014-05-19  Richard Biener  <rguenther@suse.de>
19407
19408         PR tree-optimization/61184
19409         * tree-vrp.c (is_negative_overflow_infinity): Use
19410         TREE_OVERFLOW_P and do that check first.
19411         (is_positive_overflow_infinity): Likewise.
19412         (is_overflow_infinity): Likewise.
19413         (vrp_operand_equal_p): Properly treat operands with
19414         differing overflow as not equal.
19415
19416 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
19417
19418         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19419         shift simplification where it was intended.
19420
19421 2014-05-19  Christian Bruel  <christian.bruel@st.com>
19422
19423         PR target/61195
19424         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19425
19426 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
19427
19428         PR target/61084
19429         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19430         than wide_int.
19431
19432 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19433
19434         * reg-notes.def (CROSSING_JUMP): Likewise.
19435         * rtl.h (rtx_def): Update comment for jump flag.
19436         (CROSSING_JUMP_P): Define.
19437         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19438         of a REG_CROSSING_JUMP note.
19439         * cfghooks.c (tidy_fallthru_edges): Likewise.
19440         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19441         * emit-rtl.c (try_split): Likewise.
19442         * haifa-sched.c (sched_create_recovery_edges): Likewise.
19443         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19444         * jump.c (redirect_jump_2): Likewise.
19445         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19446         (relax_delay_slots): Likewise.
19447         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19448         (bbit_di): Likewise.
19449         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19450         * config/sh/sh.md (jump_compact): Likewise.
19451         * bb-reorder.c (rotate_loop): Likewise.
19452         (pass_duplicate_computed_gotos::execute): Likewise.
19453         (add_reg_crossing_jump_notes): Rename to...
19454         (update_crossing_jump_flags): ...this.
19455         (pass_partition_blocks::execute): Update accordingly.
19456
19457 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19458
19459         * tree.h: Remove extraneous template <>.
19460
19461 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19462
19463         * ipa.c (symtab_remove_unreachable_nodes): Remove
19464         symbol from comdat group if its body was eliminated.
19465         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19466         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19467         (symtab_unregister_node): ... this one.
19468         (verify_symtab_base): More strict checking of comdats.
19469         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19470
19471 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19472
19473         * tree-pass.h (make_pass_ipa_comdats): New pass.
19474         * timevar.def (TV_IPA_COMDATS): New timevar.
19475         * passes.def (pass_ipa_comdats): Add.
19476         * Makefile.in (OBJS): Add ipa-comdats.o
19477         * ipa-comdats.c: New file.
19478
19479 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19480
19481         * ipa.c (update_visibility_by_resolution_info): New function.
19482         (function_and_variable_visibility): Use it.
19483
19484 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
19485
19486         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19487         New functions.
19488         (FOR_EACH_DEFINED_SYMBOL): New macro.
19489         (varpool_first_static_initializer, varpool_next_static_initializer,
19490         varpool_first_defined_variable, varpool_next_defined_variable):
19491         Fix comments.
19492         (symtab_in_same_comdat_p): Correctly deal with inline functions.
19493
19494 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19495
19496         * ggc-page.c (ggc_handle_finalizers): Add comment.
19497
19498 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19499
19500         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19501         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19502         (ggc_internal_cleared_alloc): Likewise.
19503         * ggc-page.c (finalizer): New class.
19504         (vec_finalizer): Likewise.
19505         (globals::finalizers): New member.
19506         (globals::vec_finalizers): Likewise.
19507         (ggc_internal_alloc): Record the finalizer if any for the block being
19508         allocated.
19509         (ggc_handle_finalizers): New function.
19510         (ggc_collect): Call ggc_handle_finalizers.
19511         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19512         finalizer.
19513         (ggc_internal_cleared_alloc): Likewise.
19514         (finalize): New function.
19515         (need_finalization_p): Likewise.
19516         (ggc_alloc): Install the type's destructor as the finalizer if it
19517         might do something.
19518         (ggc_cleared_alloc): Likewise.
19519         (ggc_vec_alloc): Likewise.
19520         (ggc_cleared_vec_alloc): Likewise.
19521
19522 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19523
19524         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19525
19526 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19527
19528         * alias.c (record_alias_subset): Adjust.
19529         * bitmap.c (bitmap_element_allocate): Likewise.
19530         (bitmap_gc_alloc_stat): Likewise.
19531         * cfg.c (init_flow): Likewise.
19532         (alloc_block): Likewise.
19533         (unchecked_make_edge): Likewise.
19534         * cfgloop.c (alloc_loop): Likewise.
19535         (flow_loops_find): Likewise.
19536         (rescan_loop_exit): Likewise.
19537         * cfgrtl.c (init_rtl_bb_info): Likewise.
19538         * cgraph.c (insert_new_cgraph_node_version): Likewise.
19539         (cgraph_allocate_node): Likewise.
19540         (cgraph_create_edge_1): Likewise.
19541         (cgraph_allocate_init_indirect_info): Likewise.
19542         * cgraphclones.c (cgraph_clone_edge): Likewise.
19543         * cgraphunit.c (add_asm_node): Likewise.
19544         (init_lowered_empty_function): Likewise.
19545         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19546         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19547         (alpha_use_linkage): Likewise.
19548         * config/arc/arc.c (arc_init_machine_status): Likewise.
19549         * config/arm/arm.c (arm_init_machine_status): Likewise.
19550         * config/avr/avr.c (avr_init_machine_status): Likewise.
19551         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19552         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19553         * config/cris/cris.c (cris_init_machine_status): Likewise.
19554         * config/darwin.c (machopic_indirection_name): Likewise.
19555         (darwin_build_constant_cfstring): Likewise.
19556         (darwin_enter_string_into_cfstring_table): Likewise.
19557         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19558         * config/frv/frv.c (frv_init_machine_status): Likewise.
19559         * config/i386/i386.c (get_dllimport_decl): Likewise.
19560         (ix86_init_machine_status): Likewise.
19561         (assign_386_stack_local): Likewise.
19562         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19563         (i386_pe_maybe_record_exported_symbol): Likewise.
19564         (i386_pe_record_stub): Likewise.
19565         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19566         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19567         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19568         (m32c_note_pragma_address): Likewise.
19569         * config/mep/mep.c (mep_init_machine_status): Likewise.
19570         (mep_note_pragma_flag): Likewise.
19571         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19572         (mips16_local_alias): Likewise.
19573         (mips_init_machine_status): Likewise.
19574         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19575         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19576         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19577         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19578         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19579         * config/pa/pa.c (pa_init_machine_status): Likewise.
19580         (pa_get_deferred_plabel): Likewise.
19581         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19582         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19583         (rs6000_init_machine_status): Likewise.
19584         (output_toc): Likewise.
19585         * config/s390/s390.c (s390_init_machine_status): Likewise.
19586         * config/score/score.c (score_output_external): Likewise.
19587         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19588         * config/spu/spu.c (spu_init_machine_status): Likewise.
19589         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19590         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19591         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19592         * coverage.c (coverage_end_function): Likewise.
19593         * dbxout.c (dbxout_init): Likewise.
19594         * doc/gty.texi: Don't mention variable_size attribute.
19595         * dwarf2cfi.c (new_cfi): Adjust.
19596         (new_cfi_row): Likewise.
19597         (copy_cfi_row): Likewise.
19598         (create_cie_data): Likewise.
19599         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19600         (new_loc_descr): Likewise.
19601         (find_AT_string_in_table): Likewise.
19602         (add_addr_table_entry): Likewise.
19603         (new_die): Likewise.
19604         (add_var_loc_to_decl): Likewise.
19605         (clone_die): Likewise.
19606         (clone_as_declaration): Likewise.
19607         (break_out_comdat_types): Likewise.
19608         (new_loc_list): Likewise.
19609         (add_loc_descr_to_each): Likewise.
19610         (add_location_or_const_value_attribute): Likewise.
19611         (add_linkage_name): Likewise.
19612         (lookup_filename): Likewise.
19613         (dwarf2out_var_location): Likewise.
19614         (new_line_info_table): Likewise.
19615         (dwarf2out_init): Likewise.
19616         (mem_loc_descriptor): Likewise.
19617         (loc_descriptor): Likewise.
19618         (add_const_value_attribute): Likewise.
19619         (tree_add_const_value_attribute): Likewise.
19620         (comp_dir_string): Likewise.
19621         (dwarf2out_vms_debug_main_pointer): Likewise.
19622         (string_cst_pool_decl): Likewise.
19623         * emit-rtl.c (set_mem_attrs): Likewise.
19624         (get_reg_attrs): Likewise.
19625         (start_sequence): Likewise.
19626         (init_emit): Likewise.
19627         (init_emit_regs): Likewise.
19628         * except.c (init_eh_for_function): Likewise.
19629         (gen_eh_region): Likewise.
19630         (gen_eh_region_catch): Likewise.
19631         (gen_eh_landing_pad): Likewise.
19632         (add_call_site): Likewise.
19633         * function.c (add_frame_space): Likewise.
19634         (insert_temp_slot_address): Likewise.
19635         (assign_stack_temp_for_type): Likewise.
19636         (get_hard_reg_initial_val): Likewise.
19637         (allocate_struct_function): Likewise.
19638         (prepare_function_start): Likewise.
19639         (types_used_by_var_decl_insert): Likewise.
19640         * gengtype.c (variable_size_p): Remove function.
19641         (enum alloc_quantity): Remove enum.
19642         (write_typed_alloc_def): Remove function.
19643         (write_typed_struct_alloc_def): Likewise.
19644         (write_typed_typedef_alloc_def): Likewise.
19645         (write_typed_alloc_defns): Likewise.
19646         (main): Adjust.
19647         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19648         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19649         * ggc.h (ggc_alloc): new function.
19650         (ggc_cleared_alloc): Likewise.
19651         (ggc_vec_alloc): Template on type of vector element, and remove
19652         element size argument.
19653         (ggc_cleared_vec_alloc): Likewise.
19654         * gimple.c (gimple_build_omp_for): Adjust.
19655         (gimple_copy): Likewise.
19656         * ipa-cp.c (get_replacement_map): Likewise.
19657         (find_aggregate_values_for_callers_subset): Likewise.
19658         (known_aggs_to_agg_replacement_list): Likewise.
19659         * ipa-devirt.c (get_odr_type): Likewise.
19660         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19661         (read_agg_replacement_chain): Likewise.
19662         * loop-iv.c (get_simple_loop_desc): Likewise.
19663         * lto-cgraph.c (input_node_opt_summary): Likewise.
19664         * lto-section-in.c (lto_new_in_decl_state): Likewise.
19665         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19666         (input_eh_region): Likewise.
19667         (input_eh_lp): Likewise.
19668         (input_cfg): Likewise.
19669         * optabs.c (set_optab_libfunc): Likewise.
19670         (init_tree_optimization_optabs): Likewise.
19671         (set_conv_libfunc): Likewise.
19672         * passes.c (do_per_function_toporder): Likewise.
19673         * rtl.h: Don't use variable_size gty attribute.
19674         * sese.c (if_region_set_false_region): Adjust.
19675         * stringpool.c (gt_pch_save_stringpool): Likewise.
19676         * target-globals.c (save_target_globals): Likewise.
19677         * toplev.c (general_init): Likewise.
19678         * trans-mem.c (record_tm_replacement): Likewise.
19679         (split_bb_make_tm_edge): Likewise.
19680         * tree-cfg.c (move_sese_region_to_fn): Likewise.
19681         * tree-data-ref.h (lambda_vector_new): Likewise.
19682         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19683         * tree-iterator.c (tsi_link_before): Likewise.
19684         (tsi_link_after): Likewise.
19685         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19686         * tree-ssa-loop-niter.c (record_estimate): Likewise.
19687         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19688         * tree-ssa-operands.h: Don't use variable_size gty attribute.
19689         * tree-ssa.c (init_tree_ssa): Adjust.
19690         * tree-ssanames.c (set_range_info): Likewise.
19691         (get_ptr_info): Likewise.
19692         (duplicate_ssa_name_ptr_info): Likewise.
19693         (duplicate_ssa_name_range_info): Likewise.
19694         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19695         (unpack_ts_fixed_cst_value_fields): Likewise.
19696         * tree.c (build_fixed): Likewise.
19697         (build_real): Likewise.
19698         (build_string): Likewise.
19699         (decl_priority_info): Likewise.
19700         (decl_debug_expr_insert): Likewise.
19701         (decl_value_expr_insert): Likewise.
19702         (decl_debug_args_insert): Likewise.
19703         (type_hash_add): Likewise.
19704         (build_omp_clause): Likewise.
19705         * ubsan.c (decl_for_type_insert): Likewise.
19706         * varasm.c (get_unnamed_section): Likewise.
19707         (get_noswitch_section): Likewise.
19708         (get_section): Likewise.
19709         (get_block_for_section): Likewise.
19710         (create_block_symbol): Likewise.
19711         (build_constant_desc): Likewise.
19712         (create_constant_pool): Likewise.
19713         (force_const_mem): Likewise.
19714         (record_tm_clone_pair): Likewise.
19715         * varpool.c (varpool_create_empty_node): Likewise.
19716
19717 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
19718
19719         * dwarf2out.c (tree_add_const_value_attribute): Call
19720         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19721         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19722         instead of ggc_internal_<x>alloc_stat.
19723         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19724         (ggc_realloc): Likewise.
19725         * ggc-none.c (ggc_internal_alloc): Likewise.
19726         (ggc_internal_cleared_alloc): Likewise.
19727         * ggc-page.c: Likewise.
19728         * ggc.h (ggc_internal_alloc_stat): Likewise.
19729         (ggc_internal_alloc): Remove macro.
19730         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19731         (ggc_internal_cleared_alloc): Remove macro.
19732         (GGC_RESIZEVEC): Adjust.
19733         (ggc_resizevar): Remove macro.
19734         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19735         (ggc_internal_cleared_vec_alloc_stat): Likewise.
19736         (ggc_internal_vec_cleared_alloc): Remove macro.
19737         (ggc_alloc_atomic_stat): Drop _stat suffix.
19738         (ggc_alloc_atomic): Remove macro.
19739         (ggc_alloc_cleared_atomic): Remove macro.
19740         (ggc_alloc_string_stat): Drop _stat suffix.
19741         (ggc_alloc_string): Remove macro.
19742         (ggc_alloc_rtx_def_stat): Adjust.
19743         (ggc_alloc_tree_node_stat): Likewise.
19744         (ggc_alloc_cleared_tree_node_stat): Likewise.
19745         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19746         (ggc_alloc_cleared_simd_clone_stat): Likewise.
19747         * gimple.c (gimple_build_omp_for): Likewise.
19748         (gimple_copy): Likewise.
19749         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19750         * toplev.c (realloc_for_line_map): Adjust.
19751         * tree-data-ref.h (lambda_vector_new): Likewise.
19752         * tree-phinodes.c (allocate_phi_node): Likewise.
19753         * tree.c (grow_tree_vec_stat): Likewise.
19754         * vec.h (va_gc::reserve): Adjust.
19755
19756 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
19757
19758         * config/microblaze/microblaze.c (break_handler): New Declaration.
19759         (microblaze_break_function_p,microblaze_is_break_handler): New.
19760         (compute_frame_size): Use microblaze_break_function_p.
19761         Add the test of break_handler.
19762         (microblaze_function_prologue) : Add the test of variable
19763         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
19764         (microblaze_function_epilogue) : Add the test of break_handler.
19765         (microblaze_globalize_label) : Add the test of break_handler.
19766         Check the name by BREAK_HANDLER_NAME.
19767
19768         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19769
19770         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19771         microblaze_is_break_handler test.
19772         (call_internal1,call_value_intern): Use microblaze_break_function_p.
19773         Use SYMBOL_REF_DECL.
19774
19775         * config/microblaze/microblaze-protos.h
19776         (microblaze_break_function_p,microblaze_is_break_handler):
19777         New Declaration.
19778
19779         * doc/extend.texi (MicroBlaze break_handler Functions): Document
19780         new MicroBlaze break_handler functions.
19781
19782 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
19783
19784         * doc/extend.texi (Size of an asm): Move node text according
19785         to its @menu entry position.
19786
19787 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
19788
19789         PR tree-optimization/61140
19790         PR tree-optimization/61150
19791         PR tree-optimization/61197
19792         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19793
19794 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
19795
19796         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
19797
19798 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
19799
19800         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19801         __SIZEOF_INT128__ is defined.
19802
19803 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
19804
19805         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19806         (rs6000_delegitimize_address): Use it.
19807
19808 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
19809
19810         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19811         inplace argument.  Store the new address in the original MEM when true.
19812         * emit-rtl.c (change_address_1): Likewise.
19813         (adjust_address_1, adjust_automodify_address_1, offset_address):
19814         Update accordingly.
19815         * rtl.h (plus_constant): Add an inplace argument.
19816         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
19817         when true.  Avoid generating (plus X (const_int 0)).
19818         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19819         in-place.  Pass true to plus_constant.
19820         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19821
19822 2014-05-16  Dehao Chen  <dehao@google.com>
19823
19824         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19825
19826 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
19827
19828         PR target/54089
19829         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19830         patterns.
19831         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19832
19833 2014-05-16  Dehao Chen  <dehao@google.com>
19834
19835         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19836         optimize_function_for_size_p.
19837         * regs.h (REG_FREQ_FROM_BB): Likewise.
19838
19839 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
19840
19841         PR target/51244
19842         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19843         negt_reg_operand cases.
19844         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19845         predicate.
19846         * config/sh/predicates.md (cbranch_treg_value): Simplify.
19847
19848 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
19849
19850         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19851         target variants.
19852
19853 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
19854
19855         Revert:
19856         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
19857
19858         * tree-cfg.c (dump_function_to_file): Dump the return type of
19859         functions, in a line to itself before the function body, mimicking
19860         the layout of a C function.
19861
19862 2014-05-16  Dehao Chen  <dehao@google.com>
19863
19864         * cfghooks.c (make_forwarder_block): Use direct computation to
19865         get fall-through edge's count and frequency.
19866
19867 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
19868
19869         * config/arc/arc.c (arc_init): Fix typo in error message.
19870         * config/i386/i386.c (ix86_expand_builtin): Likewise.
19871         (split_stack_prologue_scratch_regno): Likewise.
19872         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19873         word from error message.
19874
19875 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19876
19877         * ira-costs.c: Fix typo in comment.
19878
19879 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
19880
19881         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19882
19883 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
19884
19885         * varpool.c (dump_varpool_node): Dump write-only flag.
19886         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19887         write-only flag.
19888         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19889         write-only variables.
19890         * ipa.c (process_references): New function.
19891         (set_readonly_bit): New function.
19892         (set_writeonly_bit): New function.
19893         (clear_addressable_bit): New function.
19894         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19895         fix handling of aliases.
19896         * cgraph.h (struct varpool_node): Add writeonly flag.
19897
19898 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
19899
19900         PR rtl-optimization/60969
19901         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19902         Calculate costs for this case.
19903
19904 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19905
19906         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19907         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19908
19909 2014-05-16  Richard Biener  <rguenther@suse.de>
19910
19911         PR tree-optimization/61194
19912         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19913         bool patterns ending in a COND_EXPR.
19914
19915 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19916
19917         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19918
19919 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19920
19921         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19922         where we were unable to cost an RTX.
19923
19924 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19925
19926         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19927         HIGH, LO_SUM.
19928
19929 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19930             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19931
19932         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19933
19934 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19935             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19936
19937         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19938         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19939
19940 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19941             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19942
19943         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19944         operators.
19945
19946 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19947             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19948
19949         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19950         DIV/MOD.
19951
19952 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19953             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19954
19955         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19956         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19957
19958 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19959             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19960
19961         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19962         rotates and shifts.
19963
19964 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19965             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19966
19967         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19968         ZERO_EXTEND and SIGN_EXTEND better.
19969
19970 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19971             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19972
19973         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19974         logical operations.
19975
19976 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19977             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19978
19979         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19980         costs when costing loads and stores to memory.
19981
19982 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19983             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
19984
19985         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19986         for SET RTX.
19987
19988 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19989
19990         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19991
19992 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
19993             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19994
19995         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19996         to...
19997         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19998         well formed.
19999         (aarch64_rtx_mult_cost): New.
20000         (aarch64_rtx_costs): Use it, refactor as appropriate.
20001
20002 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20003             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20004
20005         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20006         emit instructions, return number of instructions which would
20007         be emitted.
20008         (aarch64_add_constant): Update call to aarch64_build_constant.
20009         (aarch64_output_mi_thunk): Likewise.
20010         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20011         a CONST_DOUBLE.
20012
20013 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20014
20015         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20016         (TARGET_RTX_COSTS): Call it.
20017
20018 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20019
20020         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20021         (cortexa57_vector_cost): Likewise.
20022         (cortexa57_tunings): Use them.
20023
20024 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20025
20026         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20027         (cpu_addrcost_table): Use it.
20028         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20029         (aarch64_address_cost): Rewrite using aarch64_classify_address,
20030         move it.
20031
20032 2014-05-16  Richard Biener  <rguenther@suse.de>
20033
20034         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20035         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20036         (visit_phi): Ignore edges marked as not executable.
20037         (class cond_dom_walker): New.
20038         (cond_dom_walker::before_dom_children): Value-number
20039         control statements and mark successor edges as not
20040         executable if possible.
20041         (run_scc_vn): First walk all control statements in
20042         dominator order, marking edges as not executable.
20043         * tree-inline.c (copy_edges_for_bb): Be not confused
20044         about random edge flags.
20045
20046 2014-05-16  Richard Biener  <rguenther@suse.de>
20047
20048         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20049
20050 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
20051
20052         PR target/61193
20053         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20054         (__TM_simple_begin): Use it.
20055         (__TM_begin): Likewise.
20056
20057 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20058
20059         PR ipa/61085
20060         * ipa-prop.c (update_indirect_edges_after_inlining): Check
20061         type_preserved flag when the indirect edge is polymorphic.
20062
20063 2014-05-15  Martin Jambor  <mjambor@suse.cz>
20064
20065         PR tree-optimization/61090
20066         * tree-sra.c (sra_modify_expr): Pass the current gsi to
20067         build_ref_for_model.
20068
20069 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20070
20071         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20072         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20073
20074 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
20075
20076         PR tree-optimization/61158
20077         * fold-const.c (fold_binary_loc): If X is zero-extended and
20078         shiftc >= prec, make sure zerobits is all ones instead of
20079         invoking undefined behavior.
20080
20081 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20082
20083         * regcprop.h: New file.
20084         * regcprop.c (skip_debug_insn_p): New decl.
20085         (replace_oldest_value_reg): Check skip_debug_insn_p.
20086         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20087         * shrink-wrap.c: Include regcprop.h.
20088         (prepare_shrink_wrap): Call
20089         copyprop_hardreg_forward_bb_without_debug_insn.
20090
20091 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20092
20093         * shrink-wrap.h: Update comment.
20094         * shrink-wrap.c: Update comment.
20095         (next_block_for_reg): Rename to live_edge_for_reg.
20096         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20097         (move_insn_for_shrink_wrap): Split live_edge.
20098         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20099
20100 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20101
20102         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20103         Delete.
20104         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20105         * config/sparc/sparc.md (fptype_ut699): New attribute.
20106         (in_branch_delay): Return false if -mfix-ut699 is specified and
20107         fptype_ut699 is set to single.
20108         (truncdfsf2): Add fptype_ut699 attribute.
20109         (fix_truncdfsi2): Likewise.
20110         (floatsisf2): Change fptype attribute.
20111         (fix_truncsfsi2): Likewise.
20112         (negtf2_notv9): Delete.
20113         (negtf2_v9): Likewise.
20114         (negtf2_hq): New instruction.
20115         (negtf2): New instruction and splitter.
20116         (negdf2_notv9): Rewrite.
20117         (abstf2_notv9): Delete.
20118         (abstf2_hq_v9): Likewise.
20119         (abstf2_v9): Likewise.
20120         (abstf2_hq): New instruction.
20121         (abstf2): New instruction and splitter.
20122         (absdf2_notv9): Rewrite.
20123
20124 2014-05-14  Cary Coutant  <ccoutant@google.com>
20125
20126         PR debug/61013
20127         * opts.c (common_handle_option): Don't special-case "-g".
20128         (set_debug_level): Default to at least level 2 with "-g".
20129
20130 2014-05-14  DJ Delorie  <dj@redhat.com>
20131
20132         * config/msp430/msp430.c (msp430_builtin): Add
20133         MSP430_BUILTIN_DELAY_CYCLES.
20134         (msp430_init_builtins): Register void __delay_cycles(long long).
20135         (msp430_builtin_decl): Add it.
20136         (cg_magic_constant): New.
20137         (msp430_expand_delay_cycles): New.
20138         (msp430_expand_builtin): Call it.
20139         (msp430_print_operand_raw): Change integer printing from "int" to
20140         HOST_WIDE_INT.
20141         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20142         (delay_cycles_start): New.
20143         (delay_cycles_end): New.
20144         (delay_cycles_32): New.
20145         (delay_cycles_32x): New.
20146         (delay_cycles_16): New.
20147         (delay_cycles_16x): New.
20148         (delay_cycles_2): New.
20149         (delay_cycles_1): New.
20150         * doc/extend.texi: Document __delay_cycles().
20151
20152 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
20153
20154         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20155         length attribute computation.
20156
20157 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
20158
20159         PR debug/61188
20160         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20161
20162 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
20163
20164         PR target/61084
20165         * config/sparc/sparc.md: Fix types of low and high in DI constant
20166         splitter.  Use gen_int_mode in some other splitters.
20167
20168 2014-05-14  Martin Jambor  <mjambor@suse.cz>
20169
20170         PR ipa/60897
20171         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20172
20173 2014-05-14  James Norris  <jnorris@codesourcery.com>
20174
20175         * omp-low.c (expand_parallel_call): Remove shadow variable.
20176         (expand_omp_taskreg): Likewise.
20177
20178 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
20179
20180         * common/config/i386/i386-common.c
20181         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20182         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20183         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20184         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20185         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20186         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20187         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20188         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20189         xsavecintrin.h, xsavesintrin.h.
20190         (x86_64-*-*): Ditto.
20191         * config/i386/clflushoptintrin.h: New.
20192         * config/i386/xsavecintrin.h: Ditto.
20193         * config/i386/xsavesintrin.h: Ditto.
20194         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20195         (bit_XSAVES): Ditto.
20196         (bit_XSAVES): Ditto.
20197         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20198         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20199         -mno-clflushopt.
20200         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20201         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20202         OPTION_MASK_ISA_XSAVES.
20203         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20204         -mxsavec, -mxsaves.
20205         (PTA_CLFLUSHOPT) Define.
20206         (PTA_XSAVEC): Ditto.
20207         (PTA_XSAVES): Ditto.
20208         (ix86_option_override_internal): Handle new options.
20209         (ix86_valid_target_attribute_inner_p): Ditto.
20210         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20211         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20212         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20213         (bdesc_special_args): Add __builtin_ia32_xsaves,
20214         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20215         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20216         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20217         (ix86_expand_builtin): Handle new builtins.
20218         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20219         (TARGET_CLFLUSHOPT_P): Ditto.
20220         (TARGET_XSAVEC): Ditto.
20221         (TARGET_XSAVEC_P): Ditto.
20222         (TARGET_XSAVES): Ditto.
20223         (TARGET_XSAVES_P): Ditto.
20224         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20225         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20226         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20227         (ANY_XRSTOR): New.
20228         (ANY_XRSTOR64): Ditto.
20229         (xrstor): Ditto.
20230         (xrstor): Change into <xrstor>.
20231         (xrstor_rex64): Change into <xrstor>_rex64.
20232         (xrstor64): Change into <xrstor>64
20233         (clflushopt): New.
20234         * config/i386/i386.opt (mclflushopt): New.
20235         (mxsavec): Ditto.
20236         (mxsaves): Ditto.
20237         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20238         xsavecintrin.h.
20239         * doc/invoke.texi: Document new options.
20240
20241 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20242
20243         PR rtl-optimization/60866
20244         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20245         Default it to -1.  Pass it down to init_simplejump_data.
20246         (init_simplejump_data): New parameter old_seqno.  Pass it down
20247         to get_seqno_for_a_jump.
20248         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
20249         initializing new jump seqno as a last resort.  Add comment.
20250         (sel_redirect_edge_and_branch): Save old seqno of the conditional
20251         jump and pass it down to sel_init_new_insn.
20252         (sel_redirect_edge_and_branch_force): Likewise.
20253
20254 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
20255
20256         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20257         shifted values to avoid build warning.
20258
20259 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20260
20261         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20262         * cfgrtl.c (rtl_merge_blocks): Fix comment.
20263         (cfg_layout_merge_blocks): Likewise.
20264         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20265
20266 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
20267
20268         PR rtl-optimization/60901
20269         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20270         bb predecessor belongs to the same scheduling region.  Adjust comment.
20271
20272 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
20273
20274         * doc/sourcebuild.texi: (dfp_hw): Document.
20275         (p8vector_hw): Likewise.
20276         (powerpc_eabi_ok): Likewise.
20277         (powerpc_elfv2): Likewise.
20278         (powerpc_htm_ok): Likewise.
20279         (ppc_recip_hw): Likewise.
20280         (vsx_hw): Likewise.
20281
20282 2014-05-13  Cary Coutant  <ccoutant@google.com>
20283
20284         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20285
20286 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
20287
20288         * gengtype-parse.c (require3): Eliminate in favor of...
20289         (require4): New.
20290         (require_template_declaration): Update to support optional single *
20291         on a type.
20292
20293         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20294         (create_user_defined_type): Handle a single level of explicit
20295         pointerness within template arguments.
20296         (struct write_types_data): Add field "kind".
20297         (filter_type_name): Handle "*" character.
20298         (write_user_func_for_structure_ptr): Require a write_types_data
20299         rather than just a prefix string, so that we can look up the kind
20300         of the wtd and use it as an index into wrote_user_func_for_ptr,
20301         ensuring that such functions are written at most once.  Support
20302         subclasses by invoking the marking function of the ultimate base class.
20303         (write_user_func_for_structure_body): Require a write_types_data
20304         rather than just a prefix string, so that we can pass this to
20305         write_user_func_for_structure_ptr.
20306         (write_func_for_structure): Likewise.
20307         (ggc_wtd): Add initializer of new "kind" field.
20308         (pch_wtd): Likewise.
20309
20310         * gengtype.h (enum write_types_kinds): New.
20311         (struct type): Add field wrote_user_func_for_ptr to the "s"
20312         union member.
20313
20314 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
20315
20316         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20317         instead of const_binop.
20318         (fold_binary_loc): Likewise.
20319
20320 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
20321
20322         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20323         calculation to match get_ref_base_and_extent.
20324
20325 2014-05-13  Catherine Moore  <clm@codesourcery.com>
20326             Sandra Loosemore  <sandra@codesourcery.com>
20327
20328         * configure.ac: Fix assembly for explicit JALR relocation check.
20329         * configure: Regenerate.
20330
20331 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20332
20333         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20334         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20335         Remove associated type declarations and initialisations.
20336         (arm_expand_neon_builtin): Likewise.
20337         (neon_emit_pair_result_insn): Delete.
20338         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20339         * config/arm/neon.md (neon_vtrn<mode>): Delete.
20340         (neon_vzip<mode>): Likewise.
20341         (neon_vuzp<mode>): Likewise.
20342
20343 2014-05-13  Richard Biener  <rguenther@suse.de>
20344
20345         PR ipa/60973
20346         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20347         it needs revisiting whether the call still may be tail-called.
20348
20349 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20350
20351         * rtl.def (SYMBOL_REF): Remove middle "0" field.
20352         * rtl.h (block_symbol): Reduce number of fields to 2.
20353         (rtx_def): Add u2.symbol_ref_flags.
20354         (SYMBOL_REF_FLAGS): Use it.
20355         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20356         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20357         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20358         Lower index of SYMBOL_REF_DATA.
20359         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20360         Print SYMBOL_REF_FLAGS at the same time.
20361         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20362
20363 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20364
20365         * rtl.def (VAR_LOCATION): Remove "i" field.
20366         * rtl.h (rtx_def): Add u2.var_location_status.
20367         (PAT_VAR_LOCATION_STATUS): Use it.
20368         (gen_rtx_VAR_LOCATION): Declare.
20369         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20370         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20371         * var-tracking.c (emit_note_insn_var_location): Remove casts.
20372
20373 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20374
20375         * rtl.def (scratch): Fix outdated comment and remove "0" field.
20376         * gengtype.c (adjust_field_rtx_def): Update accordingly.
20377
20378 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20379
20380         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20381         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20382         * rtl.h (rtx_def): Add insn_uid to u2 field.
20383         (RTX_FLAG_CHECK8): Delete in favor of...
20384         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20385         (INSN_DELETED_P): Update accordingly.
20386         (INSN_UID): Use u2.insn_uid.
20387         (INSN_CHAIN_CODE_P): Define.
20388         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20389         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20390         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20391         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20392         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20393         indices accordingly.
20394         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20395         Update indices for insn-chain rtxes.
20396         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20397         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20398         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20399         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20400         * combine.c (try_combine): Likewise.
20401         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20402
20403 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20404
20405         * rtl.def (REG): Remove middle field.
20406         * rtl.h (rtx_def): Add orignal_regno to u2.
20407         (ORIGINAL_REGNO): Use it instead of field 1.
20408         (REG_ATTRS): Lower field index accordingly.
20409         * gengtype.c (adjust_field_rtx_def): Remove handling of
20410         ORIGINAL_REGNO.  Move REG_ATTRS index down.
20411         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20412         code that prints the REGNO.
20413
20414 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20415
20416         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20417         GENERATOR_FILE.
20418
20419 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
20420
20421         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20422
20423 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
20424
20425         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20426         (alloc_iv): Lower base expressions containing ADDR_EXPR.
20427
20428 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
20429
20430         * config/aarch64/aarch64-protos.h
20431         (aarch64_hard_regno_caller_save_mode): New prototype.
20432         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20433         New function.
20434         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20435
20436 2014-05-13  Christian Bruel  <christian.bruel@st.com>
20437
20438         * target.def (mode_switching): New hook vector.
20439         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20440         (mode_exit, modepriority_to_mode): Likewise.
20441         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20442         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20443         * target.h: Include tm.h and hard-reg-set.h.
20444         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20445         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20446         * doc/tm.texi Regenerate.
20447         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20448         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20449         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20450         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20451         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20452         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20453         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20454         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20455         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20456         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20457         (ix86_emit_mode_set): Hookify.
20458         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20459         Delete.
20460         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20461         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20462         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20463         (epiphany_mode_priority_to_mode): Remove declaration.
20464         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20465         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20466         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20467         Likewise.
20468         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
20469         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20470         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20471
20472 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
20473
20474         PR target/61060
20475         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20476         is const0_rtx, return immediately.  Don't test count == 0 when
20477         it is always true.
20478
20479 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20480
20481         * Makefile.in: add shrink-wrap.o.
20482         * config/i386/i386.c: include "shrink-wrap.h"
20483         * function.c: Likewise.
20484         (requires_stack_frame_p, next_block_for_reg,
20485         move_insn_for_shrink_wrap, prepare_shrink_wrap,
20486         dup_block_and_redirect): Move to shrink-wrap.c
20487         (thread_prologue_and_epilogue_insns): Extract three code segments
20488         as functions in shrink-wrap.c
20489         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20490         shrink-wrap.h
20491         * shrink-wrap.c: New file.
20492         * shrink-wrap.h: New file.
20493
20494 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
20495
20496         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
20497         reference to Solaris.
20498
20499 2014-05-12  Mike Stump  <mikestump@comcast.net>
20500
20501         PR other/31778
20502         * genattrtab.c (filename): Add.
20503         (convert_set_attr_alternative): Improve error message.
20504         (check_defs): Restore read_md_filename for error messages.
20505         (gen_insn): Save filename.
20506
20507 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
20508
20509         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20510         -fno-local-ivars and -fivar-visibility.
20511         * c-family/c.opt: Make -Wshadow also implicitly enable
20512         -Wshadow-ivar.
20513
20514 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
20515
20516         * doc/tm.texi: Remove reference to deleted macro.
20517         * doc/tm.texi.in: Likewise.
20518
20519 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20520
20521         PR target/60991
20522         * config/avr/avr.c (avr_out_store_psi): Use correct constant
20523         to restore Y.
20524
20525 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
20526
20527         PR libgcc/61152
20528         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20529         * config/arm/aout.h (License): Same.
20530         * config/arm/bpabi.h (License): Same.
20531         * config/arm/elf.h (License): Same.
20532         * config/arm/linux-elf.h (License): Same.
20533         * config/arm/linux-gas.h (License): Same.
20534         * config/arm/netbsd-elf.h (License): Same.
20535         * config/arm/uclinux-eabi.h (License): Same.
20536         * config/arm/uclinux-elf.h (License): Same.
20537         * config/arm/vxworks.h (License): Same.
20538
20539 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
20540
20541         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20542         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20543         number of operands to 3.
20544         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20545         * tree-nested.c (convert_nonlocal_omp_clauses,
20546         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20547         * gimplify.c (gimplify_scan_omp_clauses): Handle
20548         OMP_CLAUSE_LINEAR_STMT.
20549         * omp-low.c (lower_rec_input_clauses): Fix typo.
20550         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20551         cast between Fortran boolean_type_node and C _Bool if
20552         needed.
20553
20554 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
20555
20556         PR tree-optimization/61136
20557         * wide-int.h (multiple_of_p): Define a version that doesn't return
20558         the quotient.
20559         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20560         integer_zerop/const_binop pair.
20561         (multiple_of_p): Likewise, converting both operands to widest_int
20562         precision.
20563
20564 2014-05-09  Teresa Johnson  <tejohnson@google.com>
20565
20566         * cgraphunit.c (analyze_functions): Use correct dump file.
20567
20568 2014-05-09  Florian Weimer  <fweimer@redhat.com>
20569
20570         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20571         expand_used_vars.
20572         (stack_protect_return_slot_p): New function.
20573         (expand_used_vars): Call stack_protect_decl_p and
20574         stack_protect_return_slot_p for -fstack-protector-strong.
20575
20576 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
20577         Andrew Haley <aph@redhat.com>
20578         Richard Sandiford <rdsandiford@googlemail.com>
20579
20580         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20581         pages.
20582
20583 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
20584
20585         PR middle-end/61111
20586         * fold-const.c (fold_binary_loc): Changed width of mask.
20587
20588 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
20589
20590         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20591         unsigned int initializers for regno_in, regno_out.
20592
20593 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
20594
20595         PR target/61055
20596         * config/avr/avr.md (cc): Add new attribute set_vzn.
20597         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20598         Set cc insn attribute to set_vzn instead of set_zn for alternatives
20599         with INC, DEC or NEG.
20600         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20601         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20602         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20603
20604 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20605
20606         Revert:
20607         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20608
20609         * wide-int.cc (UTItype): Define.
20610         (UDWtype): Define for appropriate W_TYPE_SIZE.
20611
20612 2014-05-09  Richard Biener  <rguenther@suse.de>
20613
20614         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20615         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20616         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20617         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20618         ssa_propagate): Adjust.
20619
20620 2014-05-08  Jeff Law  <law@redhat.com>
20621
20622         PR tree-optimization/61009
20623         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20624         tri-state rather than a boolean.  When a block is too big to
20625         thread through, inform caller via negative return value.
20626         (thread_across_edge): If a block was too big for normal threading,
20627         then it's too big for a joiner too, so remove temporary equivalences
20628         and return immediately.
20629
20630 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20631             Matthias Klose  <doko@ubuntu.com>
20632
20633         PR driver/61106
20634         * optc-gen.awk: Fix option handling for -Wunused-parameter.
20635
20636 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
20637
20638         PR target/59952
20639         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20640
20641 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
20642
20643         PR target/61092
20644         * config/alpha/alpha.c: Include gimple-iterator.h.
20645         (alpha_gimple_fold_builtin): New function.  Move
20646         ALPHA_BUILTIN_UMULH folding from ...
20647         (alpha_fold_builtin): ... here.
20648         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20649
20650 2014-05-08  Wei Mi  <wmi@google.com>
20651
20652         PR target/58066
20653         * config/i386/i386.c (ix86_compute_frame_layout): Update
20654         preferred_stack_boundary for call, expanded from tls descriptor.
20655         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20656         to depend on SP register.
20657         (*tls_local_dynamic_base_32_gnu): Ditto.
20658         (*tls_local_dynamic_32_once): Ditto.
20659         (tls_global_dynamic_64_<mode>): Set
20660         ix86_tls_descriptor_calls_expanded_in_cfun.
20661         (tls_local_dynamic_base_64_<mode>): Ditto.
20662         (tls_global_dynamic_32): Set
20663         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20664         to depend on SP register.
20665         (tls_local_dynamic_base_32): Ditto.
20666
20667 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20668
20669         * config/arm/arm_neon.h: Update comment.
20670         * config/arm/neon-docgen.ml: Delete.
20671         * config/arm/neon-gen.ml: Delete.
20672         * doc/arm-neon-intrinsics.texi: Update comment.
20673
20674 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20675
20676         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20677         and v4sf versions.
20678         (vand, vorr, veor, vorn, vbic): Remove.
20679         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20680         iterator.
20681         (neon_vsub_unspec): Likewise.
20682         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20683
20684 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20685
20686         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20687         (vadd_s16): Likewise.
20688         (vadd_s32): Likewise.
20689         (vadd_f32): Likewise.
20690         (vadd_u8): Likewise.
20691         (vadd_u16): Likewise.
20692         (vadd_u32): Likewise.
20693         (vadd_s64): Likewise.
20694         (vadd_u64): Likewise.
20695         (vaddq_s8): Likewise.
20696         (vaddq_s16): Likewise.
20697         (vaddq_s32): Likewise.
20698         (vaddq_s64): Likewise.
20699         (vaddq_f32): Likewise.
20700         (vaddq_u8): Likewise.
20701         (vaddq_u16): Likewise.
20702         (vaddq_u32): Likewise.
20703         (vaddq_u64): Likewise.
20704         (vmul_s8): Likewise.
20705         (vmul_s16): Likewise.
20706         (vmul_s32): Likewise.
20707         (vmul_f32): Likewise.
20708         (vmul_u8): Likewise.
20709         (vmul_u16): Likewise.
20710         (vmul_u32): Likewise.
20711         (vmul_p8): Likewise.
20712         (vmulq_s8): Likewise.
20713         (vmulq_s16): Likewise.
20714         (vmulq_s32): Likewise.
20715         (vmulq_f32): Likewise.
20716         (vmulq_u8): Likewise.
20717         (vmulq_u16): Likewise.
20718         (vmulq_u32): Likewise.
20719         (vsub_s8): Likewise.
20720         (vsub_s16): Likewise.
20721         (vsub_s32): Likewise.
20722         (vsub_f32): Likewise.
20723         (vsub_u8): Likewise.
20724         (vsub_u16): Likewise.
20725         (vsub_u32): Likewise.
20726         (vsub_s64): Likewise.
20727         (vsub_u64): Likewise.
20728         (vsubq_s8): Likewise.
20729         (vsubq_s16): Likewise.
20730         (vsubq_s32): Likewise.
20731         (vsubq_s64): Likewise.
20732         (vsubq_f32): Likewise.
20733         (vsubq_u8): Likewise.
20734         (vsubq_u16): Likewise.
20735         (vsubq_u32): Likewise.
20736         (vsubq_u64): Likewise.
20737         (vand_s8): Likewise.
20738         (vand_s16): Likewise.
20739         (vand_s32): Likewise.
20740         (vand_u8): Likewise.
20741         (vand_u16): Likewise.
20742         (vand_u32): Likewise.
20743         (vand_s64): Likewise.
20744         (vand_u64): Likewise.
20745         (vandq_s8): Likewise.
20746         (vandq_s16): Likewise.
20747         (vandq_s32): Likewise.
20748         (vandq_s64): Likewise.
20749         (vandq_u8): Likewise.
20750         (vandq_u16): Likewise.
20751         (vandq_u32): Likewise.
20752         (vandq_u64): Likewise.
20753         (vorr_s8): Likewise.
20754         (vorr_s16): Likewise.
20755         (vorr_s32): Likewise.
20756         (vorr_u8): Likewise.
20757         (vorr_u16): Likewise.
20758         (vorr_u32): Likewise.
20759         (vorr_s64): Likewise.
20760         (vorr_u64): Likewise.
20761         (vorrq_s8): Likewise.
20762         (vorrq_s16): Likewise.
20763         (vorrq_s32): Likewise.
20764         (vorrq_s64): Likewise.
20765         (vorrq_u8): Likewise.
20766         (vorrq_u16): Likewise.
20767         (vorrq_u32): Likewise.
20768         (vorrq_u64): Likewise.
20769         (veor_s8): Likewise.
20770         (veor_s16): Likewise.
20771         (veor_s32): Likewise.
20772         (veor_u8): Likewise.
20773         (veor_u16): Likewise.
20774         (veor_u32): Likewise.
20775         (veor_s64): Likewise.
20776         (veor_u64): Likewise.
20777         (veorq_s8): Likewise.
20778         (veorq_s16): Likewise.
20779         (veorq_s32): Likewise.
20780         (veorq_s64): Likewise.
20781         (veorq_u8): Likewise.
20782         (veorq_u16): Likewise.
20783         (veorq_u32): Likewise.
20784         (veorq_u64): Likewise.
20785         (vbic_s8): Likewise.
20786         (vbic_s16): Likewise.
20787         (vbic_s32): Likewise.
20788         (vbic_u8): Likewise.
20789         (vbic_u16): Likewise.
20790         (vbic_u32): Likewise.
20791         (vbic_s64): Likewise.
20792         (vbic_u64): Likewise.
20793         (vbicq_s8): Likewise.
20794         (vbicq_s16): Likewise.
20795         (vbicq_s32): Likewise.
20796         (vbicq_s64): Likewise.
20797         (vbicq_u8): Likewise.
20798         (vbicq_u16): Likewise.
20799         (vbicq_u32): Likewise.
20800         (vbicq_u64): Likewise.
20801         (vorn_s8): Likewise.
20802         (vorn_s16): Likewise.
20803         (vorn_s32): Likewise.
20804         (vorn_u8): Likewise.
20805         (vorn_u16): Likewise.
20806         (vorn_u32): Likewise.
20807         (vorn_s64): Likewise.
20808         (vorn_u64): Likewise.
20809         (vornq_s8): Likewise.
20810         (vornq_s16): Likewise.
20811         (vornq_s32): Likewise.
20812         (vornq_s64): Likewise.
20813         (vornq_u8): Likewise.
20814         (vornq_u16): Likewise.
20815         (vornq_u32): Likewise.
20816         (vornq_u64): Likewise.
20817
20818 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20819
20820         * wide-int.cc (UTItype): Define.
20821         (UDWtype): Define for appropriate W_TYPE_SIZE.
20822
20823 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
20824
20825         PR tree-optimization/59100
20826         * tree-ssa-phiopt.c: Include tree-inline.h.
20827         (neutral_element_p, absorbing_element_p): New functions.
20828         (value_replacement): Handle conditional binary operations with a
20829         neutral or absorbing element.
20830
20831 2014-05-08  Richard Biener  <rguenther@suse.de>
20832
20833         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20834         folding the expression.
20835         (valueize_expr): Remove.
20836         (visit_reference_op_load): Do not valueize the result of
20837         vn_get_expr_for.
20838         (simplify_binary_expression): Likewise.
20839         (simplify_unary_expression): Likewise.
20840
20841 2014-05-08  Richard Biener  <rguenther@suse.de>
20842
20843         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20844         looking at TYPE_ARG_TYPES.
20845
20846 2014-05-08  Richard Biener  <rguenther@suse.de>
20847
20848         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20849         pointer propagation special-case.
20850
20851 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
20852
20853         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20854         core part of address expressions.
20855
20856 2014-05-08  Alan Modra  <amodra@gmail.com>
20857
20858         PR target/60737
20859         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20860         loads and stores when -mno-strict-align at any alignment.
20861         (expand_block_clear): Similarly.  Also correct calculation of
20862         instruction count.
20863
20864 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20865
20866         PR middle-end/39246
20867         * tree-complex.c (expand_complex_move): Keep line info when expanding
20868         complex move.
20869         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20870         of complex expression. Use new argument to display correct location
20871         for values coming from phi statement.
20872         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20873         (warn_uninitialized_phi): Pass location of phi argument to
20874         warn_uninit.
20875         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20876         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20877
20878 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
20879
20880         * config/rs6000/predicates.md (indexed_address_mem): New.
20881         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20882         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20883         fpstore_ux, fpstore_u.
20884         (sign_extend, indexed, update): New.
20885         (cell_micro): Adjust.
20886         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20887         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20888         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20889         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20890         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20891         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20892         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20893         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20894         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20895         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20896         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20897         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20898         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20899         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20900         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20901
20902         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20903         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20904         *vsx_extract_<mode>_store): Adjust.
20905         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20906         is_cracked_insn, insn_must_be_first_in_group,
20907         insn_must_be_last_in_group): Adjust.
20908
20909         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20910         Adjust.
20911         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20912         ppc440-fpstore): Adjust.
20913         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20914         ppc476-fpstore): Adjust.
20915         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20916         ppc601-fpstore): Adjust.
20917         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20918         Adjust.
20919         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20920         Adjust.
20921         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20922         ppc7450-fpstore): Adjust.
20923         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20924         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20925         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20926         Adjust.
20927         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20928         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20929         cell-fpstore, cell-fpstore-update): Adjust.
20930         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20931         ppce300c3_store, ppce300c3_fpstore): Adjust.
20932         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20933         e500mc_fpstore): Adjust.
20934         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20935         e500mc64_store, e500mc64_fpstore): Adjust.
20936         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20937         e5500_fpstore): Adjust.
20938         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20939         e6500_fpstore): Adjust.
20940         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20941         Adjust.
20942         * config/rs6000/power4.md (power4-load, power4-load-ext,
20943         power4-load-ext-update, power4-load-ext-update-indexed,
20944         power4-load-update-indexed, power4-load-update, power4-fpload,
20945         power4-fpload-update, power4-store, power4-store-update,
20946         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20947         Adjust.
20948         * config/rs6000/power5.md (power5-load, power5-load-ext,
20949         power5-load-ext-update, power5-load-ext-update-indexed,
20950         power5-load-update-indexed, power5-load-update, power5-fpload,
20951         power5-fpload-update, power5-store, power5-store-update,
20952         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20953         Adjust.
20954         * config/rs6000/power6.md (power6-load, power6-load-ext,
20955         power6-load-update, power6-load-update-indexed,
20956         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20957         power6-fpload-update, power6-store, power6-store-update,
20958         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20959         Adjust.
20960         * config/rs6000/power7.md (power7-load, power7-load-ext,
20961         power7-load-update, power7-load-update-indexed,
20962         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20963         power7-fpload-update, power7-store, power7-store-update,
20964         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20965         Adjust.
20966         * config/rs6000/power8.md (power8-load, power8-load-update,
20967         power8-load-ext, power8-load-ext-update, power8-fpload,
20968         power8-fpload-update, power8-store, power8-store-update-indexed,
20969         power8-fpstore, power8-fpstore-update): Adjust.
20970         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20971         Adjust.
20972         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20973         titan_lsu_store, titan_lsu_fpstore): Adjust.
20974         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20975
20976 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
20977
20978         PR target/60884
20979         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20980         unrolled byte insns.  Emit address increments after move insns.
20981
20982 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
20983
20984         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20985         const_gimple, rather than a gimple.
20986         (gimple_call_builtin_p): Likewise, for the three variants.
20987
20988         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20989         (gimple_call_builtin_p): Likewise, for the three variants.
20990
20991 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20992
20993         PR tree-optimization/61095
20994         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20995
20996 2014-05-07  Richard Biener  <rguenther@suse.de>
20997
20998         PR tree-optimization/61034
20999         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21000         (maybe_skip_until): Use translate to take into account
21001         lattices when trying to do disambiguations.
21002         (get_continuation_for_phi_1): Likewise.
21003         (get_continuation_for_phi): Adjust for added translate arguments.
21004         (walk_non_aliased_vuses): Likewise.
21005         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21006         (walk_non_aliased_vuses): Likewise.
21007         (call_may_clobber_ref_p_1): Declare.
21008         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21009         calls.  Stop early if we are only supposed to disambiguate.
21010         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21011
21012 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
21013
21014         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21015         Emit an error when the function has arguments.
21016
21017 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21018
21019         * cfgloop.h (unswitch_loops): Remove.
21020         * doc/passes.texi: Remove references to loop-unswitch.c
21021         * timevar.def (TV_LOOP_UNSWITCH): Remove.
21022
21023 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
21024
21025         * tree-vect-data-refs.c (vect_grouped_load_supported): New
21026         check for loads group of length 3.
21027         (vect_permute_load_chain): New permutations for loads group of
21028         length 3.
21029         * tree-vect-stmts.c (vect_model_load_cost): Change cost
21030         of vec_perm_shuffle for the new permutations.
21031
21032 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
21033
21034         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21035         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21036         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21037         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21038         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21039         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21040         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21041         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21042
21043 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
21044
21045         * loop-unswitch.c: Delete.
21046
21047 2014-05-07  Richard Biener  <rguenther@suse.de>
21048
21049         * config.gcc: Always set need_64bit_hwint to yes.
21050
21051 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
21052
21053         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21054         of using optimize_size.
21055
21056 2014-05-06  Mike Stump  <mikestump@comcast.net>
21057
21058         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21059
21060 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
21061
21062         * config/i386/sse.md (*mov<mode>_internal)
21063         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21064         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21065         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21066         (*<code><mode>3, *andnot<mode>3<mask_name>)
21067         (<mask_codefor><code><mode>3<mask_name>): Only consider
21068         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21069
21070 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21071
21072         Revert:
21073         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
21074
21075         * lra-constraints.c (valid_address_p): Move earlier in file.
21076         Add a constraint argument to the address_info version.
21077         (satisfies_memory_constraint_p): New function.
21078         (satisfies_address_constraint_p): Likewise.
21079         (process_alt_operands, curr_insn_transform): Use them.
21080         (process_address): Pass the constraint to valid_address_p when
21081         checking address operands.
21082
21083 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
21084
21085         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21086         to their respective blocks.  Fix inadvertent use of "node".
21087
21088 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
21089
21090         * emit-rtl.c (init_derived_machine_modes): New functionm, split
21091         out from...
21092         (init_emit_once): ...here.
21093         * rtl.h (init_derived_machine_modes): Declare.
21094         * toplev.c (do_compile): Call it even if no_backend.
21095
21096 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
21097             Mike Stump  <mikestump@comcast.net>
21098             Richard Sandiford  <rdsandiford@googlemail.com>
21099             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21100
21101         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21102         (rtx_equal_for_memref_p): Update comment.
21103         (adjust_offset_for_component_ref): Use wide-int interfaces.
21104         * builtins.c (get_object_alignment_2): Likewise.
21105         (c_readstr): Likewise.
21106         (target_char_cast): Add comment.
21107         (determine_block_size): Use wide-int interfaces.
21108         (expand_builtin_signbit): Likewise.
21109         (fold_builtin_int_roundingfn): Likewise.
21110         (fold_builtin_bitop): Likewise.
21111         (fold_builtin_bswap): Likewise.
21112         (fold_builtin_logarithm): Use signop.
21113         (fold_builtin_pow): Likewise.
21114         (fold_builtin_memory_op): Use wide-int interfaces.
21115         (fold_builtin_object_size): Likewise.
21116         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21117         nb_iterations_estimate.
21118         (record_niter_bound): Use wide-int interfaces.
21119         (get_estimated_loop_iterations_int): Likewise.
21120         (get_estimated_loop_iterations): Likewise.
21121         (get_max_loop_iterations): Likewise.
21122         * cfgloop.h: Include wide-int.h.
21123         (struct nb_iter_bound): Change bound to widest_int.
21124         (struct loop): Change nb_iterations_upper_bound and
21125         nb_iterations_estimate to widest_int.
21126         (record_niter_bound): Switch to use widest_int.
21127         (get_estimated_loop_iterations): Likewise.
21128         (get_max_loop_iterations): Likewise.
21129         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21130         update for wide-int.
21131         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21132         * combine.c (try_combine): Likewise.
21133         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21134         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21135         interfaces.
21136         (aarch64_float_const_representable_p): Likewise.
21137         * config/arc/arc.c: Include wide-int.h.
21138         (arc_can_use_doloop_p): Use wide-int interfaces.
21139         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21140         (vfp3_const_double_index): Likewise.
21141         * config/avr/avr.c (avr_out_round): Likewise.
21142         (avr_fold_builtin): Likewise.
21143         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21144         (bfin_can_use_doloop_p): Likewise.
21145         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21146         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21147         * config/i386/i386.c: Include wide-int.h.
21148         (ix86_data_alignment): Use wide-int interfaces.
21149         (ix86_local_alignment): Likewise.
21150         (ix86_emit_swsqrtsf): Update real_from_integer.
21151         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21152         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21153         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21154         (zero_constant): Likewise.
21155         (input_operand): Likewise.
21156         (splat_input_operand): Likewise.
21157         (non_logical_cint_operand): Change const_double to const_wide_int.
21158         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21159         (easy_altivec_constant): Remove comment.
21160         (paired_expand_vector_init): Use CONSTANT_P.
21161         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21162         (rs6000_emit_move): Update checks.
21163         (rs6000_aggregate_candidate): Use wide-int interfaces.
21164         (rs6000_expand_ternop_builtin): Likewise.
21165         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21166         (rs6000_assemble_integer): Likewise.
21167         (rs6000_hash_constant): Likewise.
21168         (output_toc): Likewise.
21169         (rs6000_rtx_costs): Likewise.
21170         (rs6000_emit_swrsqrt); Update call to real_from_integer.
21171         * config/rs6000/rs6000-c.c: Include wide-int.h.
21172         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21173         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21174         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21175         Handle CONST_WIDE_INT.
21176         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21177         Use tree_fits_uhwi_p.
21178         * config/sparc/sparc.c: Include wide-int.h.
21179         (sparc_fold_builtin): Use wide-int interfaces.
21180         * config/vax/vax.c: Include wide-int.h.
21181         (vax_float_literal): Use real_from_integer.
21182         * coretypes.h (struct hwivec_def): New.
21183         (hwivec): New.
21184         (const_hwivec): New.
21185         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21186         (equiv_constant): Handle CONST_WIDE_INT.
21187         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21188         (cselib_hash_rtx): Handle CONST_WIDE_INT.
21189         * dbxout.c (stabstr_U): Use wide-int interfaces.
21190         (dbxout_type): Update to use cst_fits_shwi_p.
21191         * defaults.h (LOG2_BITS_PER_UNIT): Define.
21192         (TARGET_SUPPORTS_WIDE_INT): Add default.
21193         * dfp.c: Include wide-int.h.
21194         (decimal_real_to_integer2): Use wide-int interfaces and rename to
21195         decimal_real_to_integer.
21196         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21197         decimal_real_to_integer.
21198         * doc/generic.texi (Constant expressions): Update for wide_int.
21199         * doc/rtl.texi (const_double): Likewise.
21200         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21201         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21202         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21203         (REAL_VALUE_FROM_INT): Remove.
21204         (TARGET_SUPPORTS_WIDE_INT): New.
21205         * doc/tm.texi: Regenerate.
21206         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21207         * double-int.h: Include wide-int.h.
21208         (struct wi::int_traits): New.
21209         * dwarf2out.c (get_full_len): New.
21210         (dw_val_equal_p): Add case dw_val_class_wide_int.
21211         (size_of_loc_descr): Likewise.
21212         (output_loc_operands): Likewise.
21213         (insert_double): Remove.
21214         (insert_wide_int): New.
21215         (add_AT_wide): New.
21216         (print_die): Add case dw_val_class_wide_int.
21217         (attr_checksum): Likewise.
21218         (attr_checksum_ordered): Likewise.
21219         (same_dw_val_p): Likewise.
21220         (size_of_die): Likewise.
21221         (value_format): Likewise.
21222         (output_die): Likewise.
21223         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21224         Use wide-int.
21225         (clz_loc_descriptor): Use wide-int interfaces.
21226         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
21227         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
21228         (round_up_to_align): Use wide-int interfaces.
21229         (field_byte_offset): Likewise.
21230         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
21231         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
21232         CONST_DOUBLE handling.  Use wide-int interfaces.
21233         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
21234         (gen_enumeration_type_die): Use add_AT_wide.
21235         (hash_loc_operands): Add case dw_val_class_wide_int.
21236         (compare_loc_operands): Likewise.
21237         * dwarf2out.h: Include wide-int.h.
21238         (wide_int_ptr): New.
21239         (enum dw_val_class): Add dw_val_class_wide_int.
21240         (struct dw_val_struct): Add val_wide.
21241         * emit-rtl.c (const_wide_int_htab): New.
21242         (const_wide_int_htab_hash): New.
21243         (const_wide_int_htab_eq): New.
21244         (lookup_const_wide_int): New.
21245         (const_double_htab_hash): Use wide-int interfaces.
21246         (const_double_htab_eq): Likewise.
21247         (rtx_to_double_int): Conditionally compile for wide-int.
21248         (immed_double_int_const): Rename to immed_wide_int_const and
21249         update for wide-int.
21250         (immed_double_const): Conditionally compile for wide-int.
21251         (init_emit_once): Use wide-int interfaces.
21252         * explow.c (plus_constant): Likewise.
21253         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
21254         (lshift_value): Use wide-int interfaces.
21255         (expand_mult): Likewise.
21256         (choose_multiplier): Likewise.
21257         (expand_smod_pow2): Likewise.
21258         (make_tree): Likewise.
21259         * expr.c (convert_modes): Consolidate handling of constants.
21260         Use wide-int interfaces.
21261         (emit_group_load_1): Add note.
21262         (store_expr): Update comment.
21263         (get_inner_reference): Use wide-int interfaces.
21264         (expand_constructor): Update comment.
21265         (expand_expr_real_2): Use wide-int interfaces.
21266         (expand_expr_real_1): Likewise.
21267         (reduce_to_bit_field_precision): Likewise.
21268         (const_vector_from_tree): Likewise.
21269         * final.c: Include wide-int-print.h.
21270         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
21271         * fixed-value.c: Include wide-int.h.
21272         (fixed_from_string): Use wide-int interfaces.
21273         (fixed_to_decimal): Likewise.
21274         (fixed_convert_from_real): Likewise.
21275         (real_convert_from_fixed): Likewise.
21276         * fold-const.h (mem_ref_offset): Return an offset_int.
21277         (div_if_zero_remainder): Remove code parameter.
21278         * fold-const.c (div_if_zero_remainder): Remove code parameter.
21279         Use wide-int interfaces.
21280         (may_negate_without_overflow_p): Use wide-int interfaces.
21281         (negate_expr_p): Likewise.
21282         (fold_negate_expr): Likewise.
21283         (int_const_binop_1): Likewise.
21284         (const_binop): Likewise.
21285         (fold_convert_const_int_from_int): Likewise.
21286         (fold_convert_const_int_from_real): Likewise.
21287         (fold_convert_const_int_from_fixed): Likewise.
21288         (fold_convert_const_fixed_from_int): Likewise.
21289         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
21290         (sign_bit_p): Use wide-int interfaces.
21291         (make_range_step): Likewise.
21292         (build_range_check): Likewise.  Pass an integer of the correct type
21293         instead of using integer_one_node.
21294         (range_predecessor): Pass an integer of the correct type instead
21295         of using integer_one_node.
21296         (range_successor): Likewise.
21297         (merge_ranges): Likewise.
21298         (unextend): Use wide-int interfaces.
21299         (extract_muldiv_1): Likewise.
21300         (fold_div_compare): Likewise.
21301         (fold_single_bit_test): Likewise.
21302         (fold_sign_changed_comparison): Likewise.
21303         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21304         (fold_plusminus_mult_expr): Use wide-int interfaces.
21305         (native_encode_int): Likewise.
21306         (native_interpret_int): Likewise.
21307         (fold_unary_loc): Likewise.
21308         (pointer_may_wrap_p): Likewise.
21309         (size_low_cst): Likewise.
21310         (mask_with_tz): Likewise.
21311         (fold_binary_loc): Likewise.
21312         (fold_ternary_loc): Likewise.
21313         (multiple_of_p): Likewise.
21314         (tree_call_nonnegative_warnv_p): Update calls to
21315         tree_int_cst_min_precision and real_from_integer.
21316         (fold_negate_const): Use wide-int interfaces.
21317         (fold_abs_const): Likewise.
21318         (fold_relational_const): Use tree_int_cst_lt.
21319         (round_up_loc): Use wide-int interfaces.
21320         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21321         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21322         * gengtype.c: Remove include of double-int.h.
21323         (do_typedef): Use wide-int interfaces.
21324         (open_base_files): Add wide-int.h.
21325         (main): Add offset_int and widest_int typedefs.
21326         * gengtype-lex.l: Handle "^".
21327         (CXX_KEYWORD): Add "static".
21328         * gengtype-parse.c (require3): New.
21329         (require_template_declaration): Handle constant template arguments
21330         and nested templates.
21331         * gengtype-state.c: Don't include "double-int.h".
21332         * genpreds.c (write_one_predicate_function): Update comment.
21333         (write_tm_constrs_h): Add check for hval and lval use in
21334         CONST_WIDE_INT.
21335         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21336         (add_to_sequence): Likewise.
21337         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21338         and const_double_operand.
21339         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21340         interfaces.
21341         * gimple-fold.c (get_base_constructor): Likewise.
21342         (fold_array_ctor_reference): Likewise.
21343         (fold_nonarray_ctor_reference): Likewise.
21344         (fold_const_aggregate_ref_1): Likewise.
21345         (gimple_val_nonnegative_real_p): Likewise.
21346         (gimple_fold_indirect_ref): Likewise.
21347         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21348         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21349         (struct slsr_cand_d): Change index to be widest_int.
21350         (struct incr_info_d): Change incr to be widest_int.
21351         (alloc_cand_and_find_basis): Use wide-int interfaces.
21352         (slsr_process_phi): Likewise.
21353         (backtrace_base_for_ref): Likewise.  Return a widest_int.
21354         (restructure_reference): Take a widest_int instead of a double_int.
21355         (slsr_process_ref): Use wide-int interfaces.
21356         (create_mul_ssa_cand): Likewise.
21357         (create_mul_imm_cand): Likewise.
21358         (create_add_ssa_cand): Likewise.
21359         (create_add_imm_cand): Take a widest_int instead of a double_int.
21360         (slsr_process_add): Use wide-int interfaces.
21361         (slsr_process_cast): Likewise.
21362         (slsr_process_copy): Likewise.
21363         (dump_candidate): Likewise.
21364         (dump_incr_vec): Likewise.
21365         (replace_ref): Likewise.
21366         (cand_increment): Likewise.  Return a widest_int.
21367         (cand_abs_increment): Likewise.
21368         (replace_mult_candidate): Take a widest_int instead of a double_int.
21369         (replace_unconditional_candidate): Use wide-int interfaces.
21370         (incr_vec_index): Take a widest_int instead of a double_int.
21371         (create_add_on_incoming_edge): Likewise.
21372         (create_phi_basis): Use wide-int interfaces.
21373         (replace_conditional_candidate): Likewise.
21374         (record_increment): Take a widest_int instead of a double_int.
21375         (record_phi_increments): Use wide-int interfaces.
21376         (phi_incr_cost): Take a widest_int instead of a double_int.
21377         (lowest_cost_path): Likewise.
21378         (total_savings): Likewise.
21379         (analyze_increments): Use wide-int interfaces.
21380         (ncd_with_phi): Take a widest_int instead of a double_int.
21381         (ncd_of_cand_and_phis): Likewise.
21382         (nearest_common_dominator_for_cands): Likewise.
21383         (insert_initializers): Use wide-int interfaces.
21384         (all_phi_incrs_profitable): Likewise.
21385         (replace_one_candidate): Likewise.
21386         (replace_profitable_candidates): Likewise.
21387         * godump.c: Include wide-int-print.h.
21388         (go_output_typedef): Use wide-int interfaces.
21389         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21390         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21391         (build_loop_iteration_domains): Likewise.
21392         * hooks.h: Include wide-int.h rather than double-int.h.
21393         (hook_bool_dint_dint_uint_bool_true): Delete.
21394         (hook_bool_wint_wint_uint_bool_true): Declare.
21395         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21396         (hook_bool_wint_wint_uint_bool_true): New.
21397         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21398         interfaces.
21399         (ubsan_expand_si_overflow_mul_check): Likewise.
21400         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21401         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21402         (get_ancestor_addr_info): Likewise.
21403         (ipa_modify_call_arguments): Likewise.
21404         * loop-doloop.c (doloop_modify): Likewise.
21405         (doloop_optimize): Likewise.
21406         * loop-iv.c (iv_number_of_iterations): Likewise.
21407         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21408         (unroll_loop_constant_iterations): Likewise.
21409         (decide_unroll_runtime_iterations): Likewise.
21410         (unroll_loop_runtime_iterations): Likewise.
21411         (decide_peel_simple): Likewise.
21412         (decide_unroll_stupid): Likewise.
21413         * lto-streamer-in.c (streamer_read_wi): Add.
21414         (input_cfg): Use wide-int interfaces.
21415         (lto_input_tree_1): Likewise.
21416         * lto-streamer-out.c (streamer_write_wi): Add.
21417         (hash_tree): Use wide-int interfaces.
21418         (output_cfg): Likewise.
21419         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21420         (GTFILES): Add wide-int.h and signop.h.
21421         (TAGS): Look for .cc files too.
21422         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21423         * optabs.c (expand_subword_shift): Likewise.
21424         (expand_doubleword_shift): Likewise.
21425         (expand_absneg_bit): Likewise.
21426         (expand_copysign_absneg): Likewise.
21427         (expand_copysign_bit): Likewise.
21428         * postreload.c (reload_cse_simplify_set): Likewise.
21429         * predict.c (predict_iv_comparison): Likewise.
21430         * pretty-print.h: Include wide-int-print.h.
21431         (pp_wide_int) New.
21432         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21433         * print-tree.c: Include wide-int-print.h.
21434         (print_node_brief): Use wide-int interfaces.
21435         (print_node): Likewise.
21436         * read-rtl.c (validate_const_wide_int): New.
21437         (read_rtx_code): Add CONST_WIDE_INT case.
21438         * real.c: Include wide-int.h.
21439         (real_to_integer2): Delete.
21440         (real_to_integer): New function, returning a wide_int.
21441         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21442         (ten_to_ptwo): Update call to real_from_integer.
21443         (real_digit): Likewise.
21444         * real.h: Include signop.h, wide-int.h and insn-modes.h.
21445         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21446         (REAL_VALUE_TO_INT): Delete.
21447         (real_to_integer): Declare a wide-int form.
21448         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21449         * recog.c (const_int_operand): Improve comment.
21450         (const_scalar_int_operand): New.
21451         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21452         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21453         (split_double): Likewise.
21454         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21455         (rtx_size): Likewise.
21456         (rtx_alloc_stat_v): New.
21457         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21458         (cwi_output_hex): New.
21459         (iterative_hash_rtx): Handle CONST_WIDE_INT.
21460         (cwi_check_failed_bounds): New.
21461         * rtl.def (CONST_WIDE_INT): New.
21462         * rtl.h: Include <utility> and wide-int.h.
21463         (struct hwivec_def): New.
21464         (CWI_GET_NUM_ELEM): New.
21465         (CWI_PUT_NUM_ELEM): New.
21466         (struct rtx_def): Add num_elem and hwiv.
21467         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21468         (CASE_CONST_UNIQUE): Likewise.
21469         (CASE_CONST_ANY): Likewise.
21470         (CONST_SCALAR_INT_P): Likewise.
21471         (CONST_WIDE_INT_P): New.
21472         (CWI_ELT): New.
21473         (HWIVEC_CHECK): New.
21474         (cwi_check_failed_bounds): New.
21475         (CWI_ELT): New.
21476         (HWIVEC_CHECK): New.
21477         (CONST_WIDE_INT_VEC) New.
21478         (CONST_WIDE_INT_NUNITS) New.
21479         (CONST_WIDE_INT_ELT) New.
21480         (rtx_mode_t): New type.
21481         (wi::int_traits <rtx_mode_t>): New.
21482         (wi::shwi): New.
21483         (wi::min_value): New.
21484         (wi::max_value): New.
21485         (rtx_alloc_v) New.
21486         (const_wide_int_alloc): New.
21487         (immed_wide_int_const): New.
21488         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21489         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21490         * signop.h: New file.
21491         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21492         (simplify_const_unary_operation): Use wide-int interfaces.
21493         (simplify_binary_operation_1): Likewise.
21494         (simplify_const_binary_operation): Likewise.
21495         (simplify_const_relational_operation): Likewise.
21496         (simplify_immed_subreg): Likewise.
21497         * stmt.c (expand_case): Likewise.
21498         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21499         signop rather than a bool.
21500         * stor-layout.c (layout_type): Use wide-int interfaces.
21501         (initialize_sizetypes): Update calls to
21502         set_min_and_max_values_for_integral_type.
21503         (set_min_and_max_values_for_integral_type): Take a signop rather
21504         than a bool.  Use wide-int interfaces.
21505         (fixup_signed_type): Update accordingly.  Remove
21506         HOST_BITS_PER_DOUBLE_INT limit.
21507         (fixup_unsigned_type): Likewise.
21508         * system.h (STATIC_CONSTANT_P): New.
21509         (STATIC_ASSERT): New.
21510         * target.def (can_use_doloop_p): Take widest_ints rather than
21511         double_ints.
21512         * target.h: Include wide-int.h rather than double-int.h.
21513         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21514         than double_ints.
21515         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21516         rather than INT_CST_LT_UNSIGNED.
21517         (can_use_doloop_if_innermost): Take widest_ints rather than
21518         double_ints.
21519         * tree-affine.c: Include wide-int-print.h.
21520         (double_int_ext_for_comb): Delete.
21521         (wide_int_ext_for_comb): New.
21522         (aff_combination_zero): Use wide-int interfaces.
21523         (aff_combination_const): Take a widest_int instead of a double_int.
21524         (aff_combination_elt): Use wide-int interfaces.
21525         (aff_combination_scale): Take a widest_int instead of a double_int.
21526         (aff_combination_add_elt): Likewise.
21527         (aff_combination_add_cst): Likewise.
21528         (aff_combination_add): Use wide-int interfaces.
21529         (aff_combination_convert): Likewise.
21530         (tree_to_aff_combination): Likewise.
21531         (add_elt_to_tree): Take a widest_int instead of a double_int.
21532         (aff_combination_to_tree): Use wide-int interfaces.
21533         (aff_combination_remove_elt): Likewise.
21534         (aff_combination_add_product): Take a widest_int instead of
21535         a double_int.
21536         (aff_combination_mult): Use wide-int interfaces.
21537         (aff_combination_expand): Likewise.
21538         (double_int_constant_multiple_p): Delete.
21539         (wide_int_constant_multiple_p): New.
21540         (aff_combination_constant_multiple_p): Take a widest_int pointer
21541         instead of a double_int pointer.
21542         (print_aff): Use wide-int interfaces.
21543         (get_inner_reference_aff): Take a widest_int pointer
21544         instead of a double_int pointer.
21545         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21546         * tree-affine.h: Include wide-int.h.
21547         (struct aff_comb_elt): Change type of coef to widest_int.
21548         (struct affine_tree_combination): Change type of offset to widest_int.
21549         (double_int_ext_for_comb): Delete.
21550         (wide_int_ext_for_comb): New.
21551         (aff_combination_const): Use widest_int instead of double_int.
21552         (aff_combination_scale): Likewise.
21553         (aff_combination_add_elt): Likewise.
21554         (aff_combination_constant_multiple_p): Likewise.
21555         (get_inner_reference_aff): Likewise.
21556         (aff_comb_cannot_overlap_p): Likewise.
21557         (aff_combination_zero_p): Use wide-int interfaces.
21558         * tree.c: Include tree.h.
21559         (init_ttree): Use make_int_cst.
21560         (tree_code_size): Removed code for INTEGER_CST case.
21561         (tree_size): Add INTEGER_CST case.
21562         (make_node_stat): Update comment.
21563         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21564         (build_int_cst_type): Use wide-int interfaces.
21565         (double_int_to_tree): Likewise.
21566         (double_int_fits_to_tree_p): Delete.
21567         (force_fit_type_double): Delete.
21568         (force_fit_type): New.
21569         (int_cst_hash_hash): Use wide-int interfaces.
21570         (int_cst_hash_eq): Likewise.
21571         (build_int_cst_wide): Delete.
21572         (wide_int_to_tree): New.
21573         (cache_integer_cst): Use wide-int interfaces.
21574         (build_low_bits_mask): Likewise.
21575         (cst_and_fits_in_hwi): Likewise.
21576         (real_value_from_int_cst): Likewise.
21577         (make_int_cst_stat): New.
21578         (integer_zerop): Use wide_int interfaces.
21579         (integer_onep): Likewise.
21580         (integer_all_onesp): Likewise.
21581         (integer_pow2p): Likewise.
21582         (integer_nonzerop): Likewise.
21583         (tree_log2): Likewise.
21584         (tree_floor_log2): Likewise.
21585         (tree_ctz): Likewise.
21586         (int_size_in_bytes): Likewise.
21587         (mem_ref_offset): Return an offset_int rather than a double_int.
21588         (build_type_attribute_qual_variant): Use wide_int interfaces.
21589         (type_hash_eq): Likewise
21590         (tree_int_cst_equal): Likewise.
21591         (tree_int_cst_lt): Delete.
21592         (tree_int_cst_compare): Likewise.
21593         (tree_fits_shwi_p): Use wide_int interfaces.
21594         (tree_fits_uhwi_p): Likewise.
21595         (tree_int_cst_sign_bit): Likewise.
21596         (tree_int_cst_sgn): Likewise.
21597         (tree_int_cst_min_precision): Take a signop rather than a bool.
21598         (simple_cst_equal): Use wide_int interfaces.
21599         (compare_tree_int): Likewise.
21600         (iterative_hash_expr): Likewise.
21601         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
21602         INT_CST_LT.
21603         (get_type_static_bounds): Use wide_int interfaces.
21604         (tree_int_cst_elt_check_failed): New.
21605         (build_common_tree_nodes): Reordered to set prec before filling in
21606         value.
21607         (int_cst_value): Check cst_and_fits_in_hwi.
21608         (widest_int_cst_value): Use wide_int interfaces.
21609         (upper_bound_in_type): Likewise.
21610         (lower_bound_in_type): Likewise.
21611         (num_ending_zeros): Likewise.
21612         (drop_tree_overflow): Likewise.
21613         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21614         (gen_conditions_for_pow_cst_base): Likewise.
21615         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21616         (group_case_labels_stmt): Use wide-int interfaces.
21617         (verify_gimple_assign_binary): Likewise.
21618         (print_loop): Likewise.
21619         * tree-chrec.c (tree_fold_binomial): Likewise.
21620         * tree-core.h (struct tree_base): Add int_length.
21621         (struct tree_int_cst): Change rep of value.
21622         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21623         (dr_may_alias_p): Likewise.
21624         (max_stmt_executions_tree): Likewise.
21625         * tree.def (INTEGER_CST): Update comment.
21626         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21627         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21628         * tree-dump.c: Include wide-int.h and wide-int-print.h.
21629         (dequeue_and_dump): Use wide-int interfaces.
21630         * tree.h: Include wide-int.h.
21631         (NULL_TREE): Moved to earlier loc in file.
21632         (TREE_INT_CST_ELT_CHECK): New.
21633         (tree_int_cst_elt_check_failed): New.
21634         (TYPE_SIGN): New.
21635         (TREE_INT_CST): Delete.
21636         (TREE_INT_CST_LOW): Use wide-int interfaces.
21637         (TREE_INT_CST_HIGH): Delete.
21638         (TREE_INT_CST_NUNITS): New.
21639         (TREE_INT_CST_EXT_NUNITS): Likewise.
21640         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21641         (TREE_INT_CST_ELT): Likewise.
21642         (INT_CST_LT): Delete.
21643         (tree_int_cst_elt_check): New (two forms).
21644         (type_code_size): Update comment.
21645         (make_int_cst_stat, make_int_cst): New.
21646         (tree_to_double_int): Delete.
21647         (double_int_fits_to_tree_p): Delete.
21648         (force_fit_type_double): Delete.
21649         (build_int_cstu): Replace with out-of-line function.
21650         (build_int_cst_wide): Delete.
21651         (tree_int_cst_lt): Define inline.
21652         (tree_int_cst_le): New.
21653         (tree_int_cst_compare): Define inline.
21654         (tree_int_cst_min_precision): Take a signop rather than a bool.
21655         (wi::int_traits <const_tree>): New.
21656         (wi::int_traits <tree>): New.
21657         (wi::extended_tree): New.
21658         (wi::int_traits <wi::extended_tree>): New.
21659         (wi::to_widest): New.
21660         (wi::to_offset): New.
21661         (wi::fits_to_tree_p): New.
21662         (wi::min_value): New.
21663         (wi::max_value): New.
21664         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21665         (copy_tree_body_r): Likewise.
21666         * tree-object-size.c (compute_object_offset): Likewise.
21667         (addr_object_size): Likewise.
21668         * tree-predcom.c: Include wide-int-print.h.
21669         (struct dref_d): Change type of offset to widest_int.
21670         (dump_dref): Call wide-int printer.
21671         (aff_combination_dr_offset): Use wide-int interfaces.
21672         (determine_offset): Take a widest_int pointer rather than a
21673         double_int pointer.
21674         (split_data_refs_to_components): Use wide-int interfaces.
21675         (suitable_component_p): Likewise.
21676         (order_drefs): Likewise.
21677         (add_ref_to_chain): Likewise.
21678         (valid_initializer_p): Likewise.
21679         (determine_roots_comp): Likewise.
21680         * tree-pretty-print.c: Include wide-int-print.h.
21681         (dump_generic_node): Use wide-int interfaces.
21682         * tree-sra.c (sra_ipa_modify_expr): Likewise.
21683         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21684         (move_fixed_address_to_symbol): Likewise.
21685         (move_hint_to_base): Likewise.
21686         (move_pointer_to_base): Likewise.
21687         (move_variant_to_index): Likewise.
21688         (most_expensive_mult_to_index): Likewise.
21689         (addr_to_parts): Likewise.
21690         (copy_ref_info): Likewise.
21691         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21692         (indirect_refs_may_alias_p): Likewise.
21693         (stmt_kills_ref_p_1): Likewise.
21694         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21695         * tree-ssa-ccp.c: Update comment at top of file.  Include
21696         wide-int-print.h.
21697         (struct prop_value_d): Change type of mask to widest_int.
21698         (extend_mask): New function.
21699         (dump_lattice_value): Use wide-int interfaces.
21700         (get_default_value): Likewise.
21701         (set_constant_value): Likewise.
21702         (set_value_varying): Likewise.
21703         (valid_lattice_transition): Likewise.
21704         (set_lattice_value): Likewise.
21705         (value_to_double_int): Delete.
21706         (value_to_wide_int): New.
21707         (get_value_from_alignment): Use wide-int interfaces.
21708         (get_value_for_expr): Likewise.
21709         (do_dbg_cnt): Likewise.
21710         (ccp_finalize): Likewise.
21711         (ccp_lattice_meet): Likewise.
21712         (bit_value_unop_1): Use widest_ints rather than double_ints.
21713         (bit_value_binop_1): Likewise.
21714         (bit_value_unop): Use wide-int interfaces.
21715         (bit_value_binop): Likewise.
21716         (bit_value_assume_aligned): Likewise.
21717         (evaluate_stmt): Likewise.
21718         (ccp_fold_stmt): Likewise.
21719         (visit_cond_stmt): Likewise.
21720         (ccp_visit_stmt): Likewise.
21721         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21722         (constant_pointer_difference): Likewise.
21723         (associate_pointerplus): Likewise.
21724         (combine_conversions): Likewise.
21725         * tree-ssa-loop.h: Include wide-int.h.
21726         (struct tree_niter_desc): Change type of max to widest_int.
21727         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21728         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21729         (remove_redundant_iv_tests): Likewise.
21730         (canonicalize_loop_induction_variables): Likewise.
21731         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21732         (constant_multiple_of): Take a widest_int pointer instead of
21733         a double_int pointer.
21734         (get_computation_aff): Use wide-int interfaces.
21735         (ptr_difference_cost): Likewise.
21736         (difference_cost): Likewise.
21737         (get_loop_invariant_expr_id): Likewise.
21738         (get_computation_cost_at): Likewise.
21739         (iv_elimination_compare_lt): Likewise.
21740         (may_eliminate_iv): Likewise.
21741         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21742         instead of double_int.
21743         (max_loop_iterations): Likewise.
21744         (max_stmt_executions): Likewise.
21745         (estimated_stmt_executions): Likewise.
21746         * tree-ssa-loop-niter.c: Include wide-int-print.h.
21747         (split_to_var_and_offset): Use wide-int interfaces.
21748         (determine_value_range): Likewise.
21749         (bound_difference_of_offsetted_base): Likewise.
21750         (bounds_add): Take a widest_int instead of a double_int.
21751         (number_of_iterations_ne_max): Use wide-int interfaces.
21752         (number_of_iterations_ne): Likewise.
21753         (number_of_iterations_lt_to_ne): Likewise.
21754         (assert_loop_rolls_lt): Likewise.
21755         (number_of_iterations_lt): Likewise.
21756         (number_of_iterations_le): Likewise.
21757         (number_of_iterations_cond): Likewise.
21758         (number_of_iterations_exit): Likewise.
21759         (finite_loop_p): Likewise.
21760         (derive_constant_upper_bound_assign): Likewise.
21761         (derive_constant_upper_bound): Return a widest_int.
21762         (derive_constant_upper_bound_ops): Likewise.
21763         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21764         (record_estimate): Take a widest_int rather than a double_int.
21765         (record_nonwrapping_iv): Use wide-int interfaces.
21766         (double_int_cmp): Delete.
21767         (wide_int_cmp): New.
21768         (bound_index): Take a widest_int rather than a double_int.
21769         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21770         (maybe_lower_iteration_bound): Likewise.
21771         (estimate_numbers_of_iterations_loop): Likewise.
21772         (estimated_loop_iterations): Take a widest_int pointer than than
21773         a double_int pointer.
21774         (estimated_loop_iterations_int): Use wide-int interfaces.
21775         (max_loop_iterations): Take a widest_int pointer than than
21776         a double_int pointer.
21777         (max_loop_iterations_int): Use wide-int interfaces.
21778         (max_stmt_executions): Take a widest_int pointer than than
21779         a double_int pointer.
21780         (estimated_stmt_executions): Likewise.
21781         (n_of_executions_at_most): Use wide-int interfaces.
21782         (scev_probably_wraps_p): Likewise.
21783         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21784         to real_to_integer.
21785         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21786         interfaces.
21787         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21788         double_ints.  Adjust for trailing_wide_ints <3> representation.
21789         (set_nonzero_bits): Likewise.
21790         (get_range_info): Return wide_ints rather than double_ints.
21791         Adjust for trailing_wide_ints <3> representation.
21792         (get_nonzero_bits): Likewise.
21793         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21794         representation.
21795         * tree-ssanames.h (struct range_info_def): Replace min, max and
21796         nonzero_bits with a trailing_wide_ints <3>.
21797         (set_range_info): Use wide_int_refs rather than double_ints.
21798         (set_nonzero_bits): Likewise.
21799         (get_range_info): Return wide_ints rather than double_ints.
21800         (get_nonzero_bits): Likewise.
21801         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21802         * tree-ssa-pre.c (phi_translate_1): Likewise.
21803         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21804         (acceptable_pow_call): Likewise.
21805         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21806         interfaces.
21807         (vn_reference_fold_indirect): Likewise.
21808         (vn_reference_maybe_forwprop_address): Likewise.
21809         (valueize_refs_1): Likewise.
21810         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21811         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21812         tree_int_cst_lt and tree_int_cst_le.
21813         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21814         interfaces.
21815         (streamer_alloc_tree): Likewise.
21816         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21817         (streamer_write_tree_header): Likewise.
21818         (streamer_write_integer_cst): Likewise.
21819         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21820         (build_constructors): Likewise.
21821         (array_value_type): Likewise.
21822         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21823         (vect_check_gather): Likewise.
21824         * tree-vect-generic.c (build_replicated_const): Likewise.
21825         (expand_vector_divmod): Likewise.
21826         * tree-vect-loop.c (vect_transform_loop): Likewise.
21827         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21828         (vect_do_peeling_for_alignment): Likewise.
21829         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21830         * tree-vrp.c: Include wide-int.h.
21831         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21832         (extract_range_from_assert): Use wide-int interfaces.
21833         (vrp_int_const_binop): Likewise.
21834         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21835         double_int pointers.
21836         (ranges_from_anti_range): Use wide-int interfaces.
21837         (quad_int_cmp): Delete.
21838         (quad_int_pair_sort): Likewise.
21839         (extract_range_from_binary_expr_1): Use wide-int interfaces.
21840         (extract_range_from_unary_expr_1): Likewise.
21841         (adjust_range_with_scev): Likewise.
21842         (masked_increment): Take and return wide_ints rather than double_ints.
21843         (register_edge_assert_for_2): Use wide-int interfaces.
21844         (check_array_ref): Likewise.
21845         (search_for_addr_array): Likewise.
21846         (maybe_set_nonzero_bits): Likewise.
21847         (union_ranges): Pass an integer of the correct type instead of
21848         using integer_one_node.
21849         (intersect_ranges): Likewise.
21850         (simplify_truth_ops_using_ranges): Likewise.
21851         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21852         (range_fits_type_p): Likewise.
21853         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
21854         a bool.
21855         (simplify_conversion_using_ranges): Use wide-int interfaces.
21856         (simplify_float_conversion_using_ranges): Likewise.
21857         (vrp_finalize): Likewise.
21858         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21859         (gimple_stringops_transform): Likewise.
21860         * varasm.c (decode_addr_const): Likewise.
21861         (const_hash_1): Likewise.
21862         (const_rtx_hash_1): Likewise
21863         (output_constant): Likewise.
21864         (array_size_for_constructor): Likewise.
21865         (output_constructor_regular_field): Likewise.
21866         (output_constructor_bitfield): Likewise.
21867         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21868         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21869         GENERATOR_FILEs.
21870         * gencheck.c: Define BITS_PER_UNIT.
21871         * wide-int.cc: New.
21872         * wide-int.h: New.
21873         * wide-int-print.cc: New.
21874         * wide-int-print.h: New.
21875
21876 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21877
21878         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21879
21880 2014-05-06  Richard Biener  <rguenther@suse.de>
21881
21882         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21883         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21884         (TODO_verify_all): Adjust.
21885         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21886         TODO_verify_stmts and TODO_verify_rtl_sharing.
21887         * bb-reorder.c: Likewise.
21888         * cfgexpand.c: Likewise.
21889         * cprop.c: Likewise.
21890         * cse.c: Likewise.
21891         * function.c: Likewise.
21892         * fwprop.c: Likewise.
21893         * gcse.c: Likewise.
21894         * gimple-ssa-isolate-paths.c: Likewise.
21895         * gimple-ssa-strength-reduction.c: Likewise.
21896         * ipa-split.c: Likewise.
21897         * loop-init.c: Likewise.
21898         * loop-unroll.c: Likewise.
21899         * lower-subreg.c: Likewise.
21900         * modulo-sched.c: Likewise.
21901         * postreload-gcse.c: Likewise.
21902         * predict.c: Likewise.
21903         * recog.c: Likewise.
21904         * sched-rgn.c: Likewise.
21905         * store-motion.c: Likewise.
21906         * tracer.c: Likewise.
21907         * trans-mem.c: Likewise.
21908         * tree-call-cdce.c: Likewise.
21909         * tree-cfg.c: Likewise.
21910         * tree-cfgcleanup.c: Likewise.
21911         * tree-complex.c: Likewise.
21912         * tree-eh.c: Likewise.
21913         * tree-emutls.c: Likewise.
21914         * tree-if-conv.c: Likewise.
21915         * tree-into-ssa.c: Likewise.
21916         * tree-loop-distribution.c: Likewise.
21917         * tree-object-size.c: Likewise.
21918         * tree-parloops.c: Likewise.
21919         * tree-pass.h: Likewise.
21920         * tree-sra.c: Likewise.
21921         * tree-ssa-ccp.c: Likewise.
21922         * tree-ssa-copy.c: Likewise.
21923         * tree-ssa-copyrename.c: Likewise.
21924         * tree-ssa-dce.c: Likewise.
21925         * tree-ssa-dom.c: Likewise.
21926         * tree-ssa-dse.c: Likewise.
21927         * tree-ssa-forwprop.c: Likewise.
21928         * tree-ssa-ifcombine.c: Likewise.
21929         * tree-ssa-loop-ch.c: Likewise.
21930         * tree-ssa-loop-ivcanon.c: Likewise.
21931         * tree-ssa-loop.c: Likewise.
21932         * tree-ssa-math-opts.c: Likewise.
21933         * tree-ssa-phiopt.c: Likewise.
21934         * tree-ssa-phiprop.c: Likewise.
21935         * tree-ssa-pre.c: Likewise.
21936         * tree-ssa-reassoc.c: Likewise.
21937         * tree-ssa-sink.c: Likewise.
21938         * tree-ssa-strlen.c: Likewise.
21939         * tree-ssa-tail-merge.c: Likewise.
21940         * tree-ssa-uncprop.c: Likewise.
21941         * tree-switch-conversion.c: Likewise.
21942         * tree-tailcall.c: Likewise.
21943         * tree-vect-generic.c: Likewise.
21944         * tree-vectorizer.c: Likewise.
21945         * tree-vrp.c: Likewise.
21946         * tsan.c: Likewise.
21947         * var-tracking.c: Likewise.
21948         * bt-load.c: Likewise.
21949         * cfgcleanup.c: Likewise.
21950         * combine-stack-adj.c: Likewise.
21951         * combine.c: Likewise.
21952         * compare-elim.c: Likewise.
21953         * config/epiphany/resolve-sw-modes.c: Likewise.
21954         * config/i386/i386.c: Likewise.
21955         * config/mips/mips.c: Likewise.
21956         * config/s390/s390.c: Likewise.
21957         * config/sh/sh_treg_combine.cc: Likewise.
21958         * config/sparc/sparc.c: Likewise.
21959         * dce.c: Likewise.
21960         * dse.c: Likewise.
21961         * final.c: Likewise.
21962         * ifcvt.c: Likewise.
21963         * mode-switching.c: Likewise.
21964         * passes.c: Likewise.
21965         * postreload.c: Likewise.
21966         * ree.c: Likewise.
21967         * reg-stack.c: Likewise.
21968         * regcprop.c: Likewise.
21969         * regrename.c: Likewise.
21970         * web.c: Likewise.
21971
21972 2014-05-06  Richard Biener  <rguenther@suse.de>
21973
21974         PR middle-end/61070
21975         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21976         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21977
21978 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
21979
21980         PR ipa/60965
21981         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21982
21983 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
21984             Tom de Vries  <tom@codesourcery.com>
21985
21986         * target.def (call_fusage_contains_non_callee_clobbers): New
21987         DEFHOOKPOD.
21988         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21989         Hooks to @menu.
21990         (@node Miscellaneous Register Hooks): New node.
21991         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21992         * doc/tm.texi: Regenerate.
21993
21994 2014-05-05  Marek Polacek  <polacek@redhat.com>
21995
21996         PR driver/61065
21997         * opts.c (common_handle_option): Call error_at instead of warning_at.
21998
21999 2014-05-05  Richard Biener  <rguenther@suse.de>
22000
22001         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22002         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
22003         under the TODO_verify_il umbrella.
22004
22005 2014-05-05  Richard Biener  <rguenther@suse.de>
22006
22007         * passes.c (execute_function_todo): Move TODO_verify_flow under
22008         the TODO_verify_ul umbrella.
22009
22010 2014-05-05  Richard Biener  <rguenther@suse.de>
22011
22012         PR middle-end/61010
22013         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22014         X & CST away from a CST that is the mask of a mode.
22015
22016 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22017
22018         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22019         int argument to enum machine_mode.
22020         (picochip_class_max_nregs): Ditto.
22021         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22022         (picochip_class_max_nregs): Ditto.
22023
22024 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22025
22026         * target.def: Add new target hook.
22027         * doc/tm.texi: Regenerate.
22028         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22029         * targhooks.c (default_keep_leaf_when_profiled): New function.
22030
22031         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22032         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22033
22034 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
22035
22036         PR tree-optimization/60363
22037         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22038         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
22039         (update_destination_phis): New parameter.
22040         (create_edge_and_update_destination_phis): Ditto.
22041         (ssa_fix_duplicate_block_edges): Pass new arguments.
22042         (thread_single_edge): Ditto.
22043
22044 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
22045
22046         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22047         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22048         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22049         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22050         Use RS6000_BTM_HARD_FLOAT.
22051         (BU_MISC_2): Likewise.
22052         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22053         RS6000_BTM_HARD_FLOAT.
22054         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22055         is explicitly used.
22056         (rs6000_invalid_builtin): Add hard floating builtin support.
22057         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22058         hard float builtins.
22059         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22060
22061 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22062
22063         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22064         Add missing function* argument.
22065
22066 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22067
22068         * lra-constraints.c (valid_address_p): Move earlier in file.
22069         Add a constraint argument to the address_info version.
22070         (satisfies_memory_constraint_p): New function.
22071         (satisfies_address_constraint_p): Likewise.
22072         (process_alt_operands, curr_insn_transform): Use them.
22073         (process_address): Pass the constraint to valid_address_p when
22074         checking address operands.
22075
22076 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22077
22078         * config/mips/mips.c (mips_isa_rev): New variable.
22079         (mips_set_architecture): Set it.
22080         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22081         from mips_isa_rev.
22082         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22083         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22084         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22085         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22086         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22087         conditions in terms of mips_isa_rev.
22088         (mips_isa_rev): Declare.
22089
22090 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22091
22092         * config/sh/sh-mem.cc: Use tabs instead of spaces.
22093         (prob_unlikely, prob_likely): Make variables const.
22094
22095 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
22096
22097         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22098
22099 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22100
22101         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22102
22103 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22104
22105         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22106         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22107         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22108         functions.
22109         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22110         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22111         sh_pass_in_reg_p.
22112         Replace usage of ROUND_REG with sh_round_reg.
22113         Use CEIL instead of ROUND_ADVANCE.
22114
22115 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22116
22117         PR target/61026
22118         * config/sh/sh.c: Include stdlib headers before everything else.
22119
22120 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
22121
22122         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22123         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22124         (gimplify_adjust_omp_clauses): Simd region is never
22125         directly nested in combined parallel.  Instead, for linear
22126         with copyin/copyout, if in combined for simd loop, make decl
22127         firstprivate/lastprivate on OMP_FOR.
22128         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22129         expand_omp_for_static_chunk): When setting endvar, also set
22130         fd->loop.v to the same value.
22131
22132 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22133
22134         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22135
22136 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
22137
22138         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22139         expression.
22140
22141 2014-05-02  Marek Polacek  <polacek@redhat.com>
22142
22143         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22144
22145 2014-05-02  Kito Cheng  <kito@0xlab.org>
22146
22147         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22148         to a C expression marco.
22149         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22150         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22151         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22152         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22153         HONOR_REG_ALLOC_ORDER.
22154         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22155
22156 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22157
22158         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22159
22160 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22161
22162         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22163
22164 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
22165
22166         * tree-if-conv.c (is_cond_scalar_reduction): New function.
22167         (convert_scalar_cond_reduction): Likewise.
22168         (predicate_scalar_phi): Add recognition and transformation
22169         of simple conditioanl reduction to be vectorizable.
22170
22171 2014-05-01  Marek Polacek  <polacek@redhat.com>
22172
22173         PR c/43245
22174         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22175
22176 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
22177
22178         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22179         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22180         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22181         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22182         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22183         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22184         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22185         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22186
22187 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
22188
22189         * config/arc/arc.opt (mlra): Move comment above option name
22190         to avoid mis-parsing as language options.
22191
22192 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22193
22194         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22195         * config/sol2.h: ... here.
22196         * config/sol2-10.h: Remove.
22197
22198         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22199         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22200         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22201         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22202         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22203         * config/sol2.h: ... here.
22204         (SECTION_NAME_FORMAT): Don't redefine.
22205         (STARTFILE_ARCH32_SPEC): Rename to ...
22206         (STARTFILE_ARCH_SPEC): ... this.
22207         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22208         * config/sparc/sol2.h: ... here.
22209         (SECTION_NAME_FORMAT): Don't undef.
22210         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22211         (SUBTARGET_EXTRA_SPECS): Remove.
22212         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22213
22214         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22215         (MD_STARTFILE_PREFIX): Remove.
22216         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22217         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22218         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22219         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22220         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22221         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22222         * config/i386/sol2.h: ... here.
22223         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22224         * config/i386/sol2-bi.h: Remove.
22225         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22226         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22227
22228         * config/i386/t-sol2-64: Rename to ...
22229         * config/i386/t-sol2: ... this.
22230         * config/sparc/t-sol2-64: Rename to ...
22231         * config/sparc/t-sol2: ... this.
22232
22233         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22234         sol2_tm_file_head, sol2_tm_file_tail.
22235         Include ${cpu_type}/sol2.h before sol2.h.
22236         Remove sol2-10.h.
22237         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22238         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22239         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22240         Reflect i386/t-sol2-64 renaming.
22241         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22242         Reflect sparc/t-sol2-64 renaming.
22243
22244 2014-04-30  Richard Biener  <rguenther@suse.de>
22245
22246         * passes.c (execute_function_todo): Move TODO_verify_stmts
22247         and TODO_verify_ssa under the TODO_verify_il umbrella.
22248         * tree-ssa.h (verify_ssa): Adjust prototype.
22249         * tree-ssa.c (verify_ssa): Add parameter to tell whether
22250         we should verify SSA operands.
22251         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22252         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22253         whether we should verify whether not throwing stmts have EH info.
22254         * graphite-scop-detection.c (create_sese_edges): Adjust.
22255         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22256         * tree-eh.c (lower_try_finally_switch): Do not add the
22257         default case label twice.
22258
22259 2014-04-30  Marek Polacek  <polacek@redhat.com>
22260
22261         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22262         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22263         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22264         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22265
22266 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22267
22268         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22269         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22270         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22271         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22272         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22273         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22274         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22275         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22276
22277 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
22278
22279         * tree-cfg.c (dump_function_to_file): Dump the return type of
22280         functions, in a line to itself before the function body, mimicking
22281         the layout of a C function.
22282
22283 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
22284
22285         PR tree-optimization/60971
22286         * tree-tailcall.c (process_assignment): Reject conversions which
22287         reduce precision.
22288
22289 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22290
22291         * calls.c (initialize_argument_information): Always treat
22292         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22293         (expand_call): Likewise.
22294         (emit_library_call_calue_1): Likewise.
22295         * expr.c (PUSH_ARGS_REVERSED): Do not define.
22296         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22297         code accordingly.
22298
22299 2014-04-29  Nick Clifton  <nickc@redhat.com>
22300
22301         * config/msp430/msp430.md (umulsidi): Fix typo.
22302         (mulhisi3): Enable even inside interrupt handlers.
22303         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22304         bigger return address pushed in large mode.
22305
22306 2014-04-29  Nick Clifton  <nickc@redhat.com>
22307
22308         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22309         (arc_init_reg_tables): Use a machine_mode enum to iterate over
22310         available modes.
22311         * config/m32r/m32r.c (init_reg_tables): Likewise.
22312         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22313         enum to hold the modes.
22314
22315 2014-04-29  Richard Biener  <rguenther@suse.de>
22316
22317         * dominance.c (free_dominance_info): Add overload with
22318         function parameter.
22319         (dom_info_state): Likewise.
22320         (dom_info_available_p): Likewise.
22321         * basic-block.h (free_dominance_info, dom_info_state,
22322         dom_info_available_p): Declare overloads.
22323         * passes.c (execute_function_todo): Verify that verifiers
22324         don't change dominator info state.  Drop dominator info
22325         for IPA pass invocations.
22326         * cgraph.c (release_function_body): Restore asserts that
22327         dominator information is released.
22328
22329 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
22330
22331         * doc/invoke.texi: Fix typo.
22332         * tree-vrp.c: Fix typos.
22333         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22334
22335 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22336
22337         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22338
22339 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
22340
22341         * config/aarch64/aarch64-builtins.c
22342         (aarch64_types_storestruct_lane_qualifiers): New.
22343         (TYPES_STORESTRUCT_LANE): Likewise.
22344         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22345         (st3_lane): Likewise.
22346         (st4_lane): Likewise.
22347         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22348         (vec_store_lanesci_lane<mode>): Likewise.
22349         (vec_store_lanesxi_lane<mode>): Likewise.
22350         (aarch64_st2_lane<VQ:mode>): Likewise.
22351         (aarch64_st3_lane<VQ:mode>): Likewise.
22352         (aarch64_st4_lane<VQ:mode>): Likewise.
22353         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22354         * config/aarch64/arm_neon.h
22355         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22356         use new macro arguments.
22357         (__ST3_LANE_FUNC): Likewise.
22358         (__ST4_LANE_FUNC): Likewise.
22359         * config/aarch64/iterators.md (V_TWO_ELEM): New.
22360         (V_THREE_ELEM): Likewise.
22361         (V_FOUR_ELEM): Likewise.
22362
22363 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
22364
22365         * doc/gimple.texi: Replace the description of the now-defunct
22366         union gimple_statement_d with a diagram showing the
22367         gimple_statement_base class hierarchy and its relationships to
22368         the GSS_ and GIMPLE_ enums.
22369
22370 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
22371
22372         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22373         * config/aarch64/aarch64.c
22374         (aarch64_cannot_change_mode_class): Weaken conditions.
22375         (aarch64_modes_tieable_p): New.
22376         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22377
22378 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
22379
22380         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22381         (loadsync_<mode>): Change mode.
22382         (load_quadpti, store_quadpti): New.
22383         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22384         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22385
22386 2014-04-28  Martin Jambor  <mjambor@suse.cz>
22387
22388         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22389         same alias type as the original statement.
22390         (subreplacement_assignment_data): New type.
22391         (handle_unscalarized_data_in_subtree): New type of parameter,
22392         generate new memory accesses with same alias type as the original
22393         statement.
22394         (load_assign_lhs_subreplacements): Likewise.
22395         (sra_modify_constructor_assign): Generate new memory accesses with
22396         same alias type as the original statement.
22397
22398 2014-04-28  Richard Biener  <rguenther@suse.de>
22399
22400         * tree-pass.h (TODO_verify_il): Define.
22401         (TODO_verify_all): Complete properly.
22402         * passes.c (execute_function_todo): Move existing loop-closed
22403         SSA verification under TODO_verify_il.
22404         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22405         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22406         Fix tree sharing issue.
22407
22408 2014-04-28  Richard Biener  <rguenther@suse.de>
22409
22410         PR middle-end/60092
22411         * builtins.def (DEF_C11_BUILTIN): Add.
22412         (BUILT_IN_ALIGNED_ALLOC): Likewise.
22413         * coretypes.h (enum function_class): Add function_c11_misc.
22414         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22415         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22416         (call_may_clobber_ref_p_1): Likewise.
22417         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22418         (mark_all_reaching_defs_necessary_1): Likewise.
22419         (propagate_necessity): Likewise.
22420         (eliminate_unnecessary_stmts): Likewise.
22421         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22422
22423 2014-04-28  Richard Biener  <rguenther@suse.de>
22424
22425         * tree-vrp.c (vrp_var_may_overflow): Remove.
22426         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22427         with overflow immediately bump to one before that value and
22428         let iteration figure out overflow status.
22429
22430 2014-04-28  Richard Biener  <rguenther@suse.de>
22431
22432         * configure.ac: Do valgrind header checks unconditionally.
22433         Add --enable-valgrind-annotations.
22434         * system.h: Guard valgrind header inclusion with
22435         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22436         * alloc-pool.c (pool_alloc, pool_free): Use
22437         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22438         to guard possibly dead code.
22439         * config.in: Regenerated.
22440         * configure: Likewise.
22441
22442 2014-04-28  Jeff Law  <law@redhat.com>
22443
22444         PR tree-optimization/60902
22445         * tree-ssa-threadedge.c
22446         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22447         over real defs when invalidating outputs from statements that do not
22448         produce useful outputs for threading.
22449
22450 2014-04-28  Richard Biener  <rguenther@suse.de>
22451
22452         PR tree-optimization/60979
22453         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22454         SCOPs that end in a block with a successor with abnormal
22455         predecessors.
22456
22457 2014-04-28  Richard Biener  <rguenther@suse.de>
22458
22459         * tree-pass.h (execute_pass_list): Adjust prototype.
22460         * passes.c (pass_manager::execute_early_local_passes): Adjust.
22461         (do_per_function): Change callback signature, push all actual
22462         work to the callbals.
22463         (do_per_function_toporder): Likewise.
22464         (execute_function_dump): Adjust.
22465         (execute_function_todo): Likewise.
22466         (clear_last_verified): Likewise.
22467         (verify_curr_properties): Likewise.
22468         (update_properties_after_pass): Likewise.
22469         (execute_pass_list_1): Split out from ...
22470         (execute_pass_list): ... here.  Adjust.
22471         (execute_ipa_pass_list): Likewise.
22472         * cgraphunit.c (cgraph_add_new_function): Adjust.
22473         (analyze_function): Likewise.
22474         (expand_function): Likewise.
22475         * cgraph.c (release_function_body): Free dominance info
22476         here instead of asserting it was magically freed elsewhere.
22477
22478 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
22479
22480         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22481         * configure: Regenerate.
22482         * config/sparc/sparc.opt (muser-mode): New option.
22483         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22484         for LEON3.
22485         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22486         * doc/invoke.texi (SPARC options): Document -muser-mode.
22487
22488 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
22489
22490         * cselib.c (find_slot_memmode): Delete.
22491         (cselib_hasher): Change compare_type to a struct.
22492         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
22493         constants.
22494         (preserve_constants_and_equivs): Adjust for new compare_type.
22495         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
22496         (wrap_constant): Delete.
22497         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22498
22499 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
22500
22501         * doc/install.texi (Building with profile feedback): Remove
22502         outdated sentence.
22503
22504 2014-04-26  Tom de Vries  <tom@codesourcery.com>
22505
22506         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22507         array accesses.
22508
22509 2014-04-25  Cary Coutant  <ccoutant@google.com>
22510
22511         PR debug/60929
22512         * dwarf2out.c (should_move_die_to_comdat): A type definition
22513         can contain a subprogram definition, but don't move it to a
22514         comdat unit.
22515         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22516         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22517         from original DIE.
22518         (clone_tree_hash): Rename to...
22519         (clone_tree_partial): ...this; change callers.  Copy
22520         DW_TAG_subprogram DIEs as declarations.
22521         (copy_decls_walk): Don't copy children of a declaration into a
22522         type unit.
22523
22524 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
22525
22526         PR target/60969
22527         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22528         alternative 12.
22529
22530 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
22531
22532         * config/arm/predicates.md (call_insn_operand): Add long_call check.
22533         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22534         reg for long_call.
22535         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22536         restriction.
22537
22538 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22539
22540         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22541
22542 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22543
22544         PR tree-optimization/60930
22545         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
22546         creating a multiply candidate by folding two constant
22547         multiplicands when the result overflows.
22548
22549 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
22550
22551         PR tree-optimization/60960
22552         * tree-vect-generic.c (expand_vector_operation): Only call
22553         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22554
22555 2014-04-25  Tom de Vries  <tom@codesourcery.com>
22556
22557         * expr.c (clobber_reg_mode): New function.
22558         * expr.h (clobber_reg): New function.
22559
22560 2014-04-25  Tom de Vries  <tom@codesourcery.com>
22561
22562         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22563         clobbers.
22564
22565 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
22566             Tom de Vries  <tom@codesourcery.com>
22567
22568         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22569         handle.
22570         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22571         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22572         new argument to find_all_hard_reg_sets call.
22573
22574 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22575
22576         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22577         Use HOST_WIDE_INT_C for mask literal.
22578         (aarch_rev16_shleft_mask_imm_p): Likewise.
22579
22580 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
22581
22582         PR target/60941
22583         * config/sparc/sparc.md (ashlsi3_extend): Delete.
22584
22585 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
22586
22587         PR preprocessor/56540
22588         * config/i386/i386-c.c (ix86_target_macros): Define
22589         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22590
22591 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22592
22593         * configure.ac (tga_func): Remove.
22594         (LIB_TLS_SPEC): Remove.
22595         * configure: Regenerate.
22596         * config.in: Regenerate.
22597         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22598
22599 2014-04-25  Richard Biener  <rguenther@suse.de>
22600
22601         PR ipa/60912
22602         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22603         call stmt use/clobber sets during stmt walk instead of
22604         walking the possibly incomplete set of caller edges.
22605
22606 2014-04-25  Richard Biener  <rguenther@suse.de>
22607
22608         PR ipa/60911
22609         * passes.c (apply_ipa_transforms): Inline into only caller ...
22610         (execute_one_pass): ... here.  Properly bring in function
22611         bodies for nodes we want to apply IPA transforms to.
22612
22613 2014-04-24  Cong Hou  <congh@google.com>
22614
22615         PR tree-optimization/60896
22616         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22617         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22618         (vect_mark_pattern_stmts): Set the def type of all statements in
22619         PATTERN_DEF_SEQ as vect_internal_def.
22620
22621 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
22622
22623         * doc/extend.texi (PowerPC Built-in Functions): Document new
22624         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22625         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22626
22627         * config/rs6000/predicates.md (const_0_to_3_operand): New
22628         predicate to match 0..3 integer constants.
22629
22630         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22631         to support adding miscellaneous builtin functions.
22632         (BU_DFP_MISC_2): Likewise.
22633         (BU_P7_MISC_1): Likewise.
22634         (BU_P7_MISC_2): Likewise.
22635         (BU_P8V_MISC_3): Likewise.
22636         (BU_MISC_1): Likewise.
22637         (BU_MISC_2): Likewise.
22638         (DIVWE): Add extended divide builtin functions.
22639         (DIVWEO): Likewise.
22640         (DIVWEU): Likewise.
22641         (DIVWEUO): Likewise.
22642         (DIVDE): Likewise.
22643         (DIVDEO): Likewise.
22644         (DIVDEU): Likewise.
22645         (DIVDEUO): Likewise.
22646         (DXEX): Add decimal floating-point builtin functions.
22647         (DXEXQ): Likewise.
22648         (DDEDPD): Likewise.
22649         (DDEDPDQ): Likewise.
22650         (DENBCD): Likewise.
22651         (DENBCDQ): Likewise.
22652         (DIEX): Likewise.
22653         (DIEXQ): Likewise.
22654         (DSCLI): Likewise.
22655         (DSCLIQ): Likewise.
22656         (DSCRI): Likewise.
22657         (DSCRIQ): Likewise.
22658         (CDTBCD): Add new BCD builtin functions.
22659         (CBCDTD): Likewise.
22660         (ADDG6S): Likewise.
22661         (BCDADD): Likewise.
22662         (BCDADD_LT): Likewise.
22663         (BCDADD_EQ): Likewise.
22664         (BCDADD_GT): Likewise.
22665         (BCDADD_OV): Likewise.
22666         (BCDSUB): Likewise.
22667         (BCDSUB_LT): Likewise.
22668         (BCDSUB_EQ): Likewise.
22669         (BCDSUB_GT): Likewise.
22670         (BCDSUB_OV): Likewise.
22671         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22672         (UNPACK_TD): Likewise.
22673         (PACK_TF): Likewise.
22674         (UNPACK_TF): Likewise.
22675         (UNPACK_TF_0): Likewise.
22676         (UNPACK_TF_1): Likewise.
22677         (PACK_V1TI): Likewise.
22678         (UNPACK_V1TI): Likewise.
22679
22680         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22681         support for decimal floating point builtin functions.
22682         (rs6000_expand_ternop_builtin): Add checks for the new builtin
22683         functions that take constant arguments.
22684         (rs6000_invalid_builtin): Add decimal floating point builtin support.
22685         (rs6000_init_builtins): Setup long double, _Decimal64, and
22686         _Decimal128 types for new builtin functions.
22687         (builtin_function_type): Set the unsigned flags appropriately for
22688         the new builtin functions.
22689         (rs6000_opt_masks): Add support for decimal floating point builtin
22690         functions.
22691
22692         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22693         floating point builtin functions.
22694         (RS6000_BTM_COMMON): Likewise.
22695         (RS6000_BTI_long_double): Likewise.
22696         (RS6000_BTI_dfloat64): Likewise.
22697         (RS6000_BTI_dfloat128): Likewise.
22698         (long_double_type_internal_node): Likewise.
22699         (dfloat64_type_internal_node): Likewise.
22700         (dfloat128_type_internal_node): Likewise.
22701
22702         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22703         2.07 bcd arithmetic instructions.
22704         (UNSPEC_BCDSUB): Likewise.
22705         (UNSPEC_BCD_OVERFLOW): Likewise.
22706         (UNSPEC_BCD_ADD_SUB): Likewise.
22707         (bcd_add_sub): Likewise.
22708         (BCD_TEST): Likewise.
22709         (bcd<bcd_add_sub>): Likewise.
22710         (bcd<bcd_add_sub>_test): Likewise.
22711         (bcd<bcd_add_sub>_test2): Likewise.
22712         (bcd<bcd_add_sub>_<code>): Likewise.
22713         (peephole2 for combined bcd ops): Likewise.
22714
22715         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22716         decimal floating point builtin functions.
22717         (UNSPEC_DENBCD): Likewise.
22718         (UNSPEC_DXEX): Likewise.
22719         (UNSPEC_DIEX): Likewise.
22720         (UNSPEC_DSCLI): Likewise.
22721         (UNSPEC_DSCRI): Likewise.
22722         (D64_D128): Likewise.
22723         (dfp_suffix): Likewise.
22724         (dfp_ddedpd_<mode>): Likewise.
22725         (dfp_denbcd_<mode>): Likewise.
22726         (dfp_dxex_<mode>): Likewise.
22727         (dfp_diex_<mode>): Likewise.
22728         (dfp_dscli_<mode>): Likewise.
22729         (dfp_dscri_<mode>): Likewise.
22730
22731         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22732         builtin functions.
22733         (UNSPEC_CDTBCD): Likewise.
22734         (UNSPEC_CBCDTD): Likewise.
22735         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22736         (UNSPEC_DIVEO): Likewise.
22737         (UNSPEC_DIVEU): Likewise.
22738         (UNSPEC_DIVEUO): Likewise.
22739         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22740         pack/unpack 128-bit types.
22741         (UNSPEC_PACK_128BIT): Likewise.
22742         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22743         (udiv<mode>3): Use idiv_ldiv mode attribute.
22744         (div<mode>3): Likewise.
22745         (addg6s): Add new BCD builtin functions.
22746         (cdtbcd): Likewise.
22747         (cbcdtd): Likewise.
22748         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22749         (div_extend): Likewise.
22750         (div<div_extend>_<mode>"): Likewise.
22751         (FP128_64): Add support for new builtin functions to pack/unpack
22752         128-bit types.
22753         (unpack<mode>): Likewise.
22754         (unpacktf_0): Likewise.
22755         (unpacktf_1): Likewise.
22756         (unpack<mode>_dm): Likewise.
22757         (unpack<mode>_nodm): Likewise.
22758         (pack<mode>): Likewise.
22759         (unpackv1ti): Likewise.
22760         (packv1ti): Likewise.
22761
22762 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
22763
22764         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22765         is disabled.
22766
22767 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
22768
22769         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22770         * gimplify.c (omp_is_private): Change last argument's type to int.
22771         Only diagnose lastprivate if the simd argument is 1, only diagnose
22772         linear if the simd argument is 2.
22773         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
22774         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
22775         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
22776         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22777         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22778         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22779         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22780         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22781         * tree-nested.c (convert_nonlocal_omp_clauses,
22782         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22783
22784 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
22785
22786         PR target/60822
22787         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22788         operand 1.
22789
22790 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
22791
22792         * flag-types.h (enum ivar_visibility): Add.
22793
22794 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
22795
22796         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22797         function * argument.
22798
22799 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
22800
22801         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22802
22803 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
22804             Tom de Vries  <tom@codesourcery.com>
22805
22806         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22807         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22808         reg-note.
22809         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22810         * emit-rtl.c (try_split): Same.
22811
22812 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
22813             Tom de Vries  <tom@codesourcery.com>
22814
22815         * common.opt (fuse-caller-save): New option.
22816
22817 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
22818
22819         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22820         elements for big-endian.
22821
22822 2014-04-24  Richard Biener  <rguenther@suse.de>
22823
22824         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22825         during TER and instead use the sepops interface for expanding
22826         non-GIMPLE_SINGLE_RHS.
22827
22828 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22829
22830         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22831         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22832
22833 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22834
22835         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22836         assembler 64-bit option.
22837         * configure: Regenerate.
22838
22839 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22840
22841         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22842         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22843         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22844         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22845         (TARGET_CRYPTO): Take TARGET_SIMD into account.
22846
22847 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22848
22849         * config/aarch64/aarch64-builtins.c
22850         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22851         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22852         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22853         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22854         builtins.
22855         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22856         (Vrevsuff): New mode attribute.
22857
22858 2014-04-24  Terry Guo  <terry.guo@arm.com>
22859
22860         * config/arm/arm.h (machine_function): Define variable
22861         after_arm_reorg here.
22862         * config/arm/arm.c (after_arm_reorg): Remove the definition.
22863         (arm_split_constant): Update the way to access variable
22864         after_arm_reorg.
22865         (arm_reorg): Ditto.
22866         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22867
22868 2014-04-23  Tom de Vries  <tom@codesourcery.com>
22869
22870         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22871
22872 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
22873
22874         * is-a.h: Update comments to reflect the following changes to the
22875         "pointerness" of the API, making the template parameter match the
22876         return type, allowing use of is-a.h with typedefs of pointers.
22877         (is_a_helper::cast): Return a T rather then a pointer to a T, so
22878         that the return type matches the parameter to the is_a_helper.
22879         (as_a): Likewise.
22880         (dyn_cast): Likewise.
22881
22882         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22883         pointer from the is-a.h API.
22884
22885         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22886         (is_a_helper <cgraph_node *>::test): ...this, matching change to
22887         is-a.h API.
22888         (is_a_helper <varpool_node>::test): Likewise, convert to...
22889         (is_a_helper <varpool_node *>::test): ...this.
22890
22891         (varpool_first_variable): Update for removal of implicit pointer
22892         from the is-a.h API.
22893         (varpool_next_variable): Likewise.
22894         (varpool_first_static_initializer): Likewise.
22895         (varpool_next_static_initializer): Likewise.
22896         (varpool_first_defined_variable): Likewise.
22897         (varpool_next_defined_variable): Likewise.
22898         (cgraph_first_defined_function): Likewise.
22899         (cgraph_next_defined_function): Likewise.
22900         (cgraph_first_function): Likewise.
22901         (cgraph_next_function): Likewise.
22902         (cgraph_first_function_with_gimple_body): Likewise.
22903         (cgraph_next_function_with_gimple_body): Likewise.
22904         (cgraph_alias_target): Likewise.
22905         (varpool_alias_target): Likewise.
22906         (cgraph_function_or_thunk_node): Likewise.
22907         (varpool_variable_node): Likewise.
22908         (symtab_real_symbol_p): Likewise.
22909         * cgraphunit.c (referred_to_p): Likewise.
22910         (analyze_functions): Likewise.
22911         (handle_alias_pairs): Likewise.
22912         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22913         * gimple-ssa.h (gimple_vuse_op): Likewise.
22914         (gimple_vdef_op): Likewise.
22915         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22916         * gimple.c (gimple_build_asm_1): Likewise.
22917         (gimple_build_try): Likewise.
22918         (gimple_build_resx): Likewise.
22919         (gimple_build_eh_dispatch): Likewise.
22920         (gimple_build_omp_for): Likewise.
22921         (gimple_omp_for_set_clauses): Likewise.
22922
22923         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22924         (is_a_helper <gimple_statement_asm *>::test): ...this.
22925         (is_a_helper <gimple_statement_bind>::test): Convert to...
22926         (is_a_helper <gimple_statement_bind *>::test): ...this.
22927         (is_a_helper <gimple_statement_call>::test): Convert to...
22928         (is_a_helper <gimple_statement_call *>::test): ...this.
22929         (is_a_helper <gimple_statement_catch>::test): Convert to...
22930         (is_a_helper <gimple_statement_catch *>::test): ...this.
22931         (is_a_helper <gimple_statement_resx>::test): Convert to...
22932         (is_a_helper <gimple_statement_resx *>::test): ...this.
22933         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22934         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22935         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22936         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22937         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22938         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22939         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22940         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22941         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22942         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22943         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22944         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22945         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22946         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22947         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22948         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22949         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22950         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22951         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22952         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22953         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22954         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22955         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22956         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22957         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22958         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22959         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22960         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22961         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22962         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22963         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22964         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22965         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22966         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22967         (is_a_helper <gimple_statement_phi>::test): Convert to...
22968         (is_a_helper <gimple_statement_phi *>::test): ...this.
22969         (is_a_helper <gimple_statement_transaction>::test): Convert to...
22970         (is_a_helper <gimple_statement_transaction *>::test): ...this.
22971         (is_a_helper <gimple_statement_try>::test): Convert to...
22972         (is_a_helper <gimple_statement_try *>::test): ...this.
22973         (is_a_helper <gimple_statement_wce>::test): Convert to...
22974         (is_a_helper <gimple_statement_wce *>::test): ...this.
22975         (is_a_helper <const gimple_statement_asm>::test): Convert to...
22976         (is_a_helper <const gimple_statement_asm *>::test): ...this.
22977         (is_a_helper <const gimple_statement_bind>::test): Convert to...
22978         (is_a_helper <const gimple_statement_bind *>::test): ...this.
22979         (is_a_helper <const gimple_statement_call>::test): Convert to...
22980         (is_a_helper <const gimple_statement_call *>::test): ...this.
22981         (is_a_helper <const gimple_statement_catch>::test): Convert to...
22982         (is_a_helper <const gimple_statement_catch *>::test): ...this.
22983         (is_a_helper <const gimple_statement_resx>::test): Convert to...
22984         (is_a_helper <const gimple_statement_resx *>::test): ...this.
22985         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22986         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22987         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22988         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22989         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22990         Convert to...
22991         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22992         ...this.
22993         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22994         Convert to...
22995         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22996         ...this.
22997         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22998         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22999         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23000         to...
23001         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23002         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23003         to...
23004         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23005         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23006         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23007         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23008         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23009         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23010         to...
23011         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23012         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23013         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23014         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23015         to...
23016         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23017         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23018         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23019         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23020         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23021         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23022         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23023         (is_a_helper <const gimple_statement_phi>::test): Convert to...
23024         (is_a_helper <const gimple_statement_phi *>::test): ...this.
23025         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23026         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23027         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23028         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23029         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23030         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23031         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23032         to...
23033         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23034         ...this.
23035         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23036         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23037
23038         (gimple_use_ops): Update for removal of implicit pointer from the
23039         is-a.h API.
23040         (gimple_set_use_ops): Likewise.
23041         (gimple_vuse): Likewise.
23042         (gimple_vdef): Likewise.
23043         (gimple_vuse_ptr): Likewise.
23044         (gimple_vdef_ptr): Likewise.
23045         (gimple_set_vuse): Likewise.
23046         (gimple_set_vdef): Likewise.
23047         (gimple_omp_return_set_lhs): Likewise.
23048         (gimple_omp_return_lhs): Likewise.
23049         (gimple_omp_return_lhs_ptr): Likewise.
23050         (gimple_call_fntype): Likewise.
23051         (gimple_call_set_fntype): Likewise.
23052         (gimple_call_set_internal_fn): Likewise.
23053         (gimple_call_use_set): Likewise.
23054         (gimple_call_clobber_set): Likewise.
23055         (gimple_bind_vars): Likewise.
23056         (gimple_bind_set_vars): Likewise.
23057         (gimple_bind_body_ptr): Likewise.
23058         (gimple_bind_set_body): Likewise.
23059         (gimple_bind_add_stmt): Likewise.
23060         (gimple_bind_block): Likewise.
23061         (gimple_bind_set_block): Likewise.
23062         (gimple_asm_ninputs): Likewise.
23063         (gimple_asm_noutputs): Likewise.
23064         (gimple_asm_nclobbers): Likewise.
23065         (gimple_asm_nlabels): Likewise.
23066         (gimple_asm_input_op): Likewise.
23067         (gimple_asm_input_op_ptr): Likewise.
23068         (gimple_asm_output_op): Likewise.
23069         (gimple_asm_output_op_ptr): Likewise.
23070         (gimple_asm_set_output_op): Likewise.
23071         (gimple_asm_clobber_op): Likewise.
23072         (gimple_asm_set_clobber_op): Likewise.
23073         (gimple_asm_label_op): Likewise.
23074         (gimple_asm_set_label_op): Likewise.
23075         (gimple_asm_string): Likewise.
23076         (gimple_catch_types): Likewise.
23077         (gimple_catch_types_ptr): Likewise.
23078         (gimple_catch_handler_ptr): Likewise.
23079         (gimple_catch_set_types): Likewise.
23080         (gimple_catch_set_handler): Likewise.
23081         (gimple_eh_filter_types): Likewise.
23082         (gimple_eh_filter_types_ptr): Likewise.
23083         (gimple_eh_filter_failure_ptr): Likewise.
23084         (gimple_eh_filter_set_types): Likewise.
23085         (gimple_eh_filter_set_failure): Likewise.
23086         (gimple_eh_must_not_throw_fndecl): Likewise.
23087         (gimple_eh_must_not_throw_set_fndecl): Likewise.
23088         (gimple_eh_else_n_body_ptr): Likewise.
23089         (gimple_eh_else_e_body_ptr): Likewise.
23090         (gimple_eh_else_set_n_body): Likewise.
23091         (gimple_eh_else_set_e_body): Likewise.
23092         (gimple_try_eval_ptr): Likewise.
23093         (gimple_try_cleanup_ptr): Likewise.
23094         (gimple_try_set_eval): Likewise.
23095         (gimple_try_set_cleanup): Likewise.
23096         (gimple_wce_cleanup_ptr): Likewise.
23097         (gimple_wce_set_cleanup): Likewise.
23098         (gimple_phi_capacity): Likewise.
23099         (gimple_phi_num_args): Likewise.
23100         (gimple_phi_result): Likewise.
23101         (gimple_phi_result_ptr): Likewise.
23102         (gimple_phi_set_result): Likewise.
23103         (gimple_phi_arg): Likewise.
23104         (gimple_phi_set_arg): Likewise.
23105         (gimple_resx_region): Likewise.
23106         (gimple_resx_set_region): Likewise.
23107         (gimple_eh_dispatch_region): Likewise.
23108         (gimple_eh_dispatch_set_region): Likewise.
23109         (gimple_omp_critical_name): Likewise.
23110         (gimple_omp_critical_name_ptr): Likewise.
23111         (gimple_omp_critical_set_name): Likewise.
23112         (gimple_omp_for_clauses): Likewise.
23113         (gimple_omp_for_clauses_ptr): Likewise.
23114         (gimple_omp_for_set_clauses): Likewise.
23115         (gimple_omp_for_collapse): Likewise.
23116         (gimple_omp_for_index): Likewise.
23117         (gimple_omp_for_index_ptr): Likewise.
23118         (gimple_omp_for_set_index): Likewise.
23119         (gimple_omp_for_initial): Likewise.
23120         (gimple_omp_for_initial_ptr): Likewise.
23121         (gimple_omp_for_set_initial): Likewise.
23122         (gimple_omp_for_final): Likewise.
23123         (gimple_omp_for_final_ptr): Likewise.
23124         (gimple_omp_for_set_final): Likewise.
23125         (gimple_omp_for_incr): Likewise.
23126         (gimple_omp_for_incr_ptr): Likewise.
23127         (gimple_omp_for_set_incr): Likewise.
23128         (gimple_omp_for_pre_body_ptr): Likewise.
23129         (gimple_omp_for_set_pre_body): Likewise.
23130         (gimple_omp_parallel_clauses): Likewise.
23131         (gimple_omp_parallel_clauses_ptr): Likewise.
23132         (gimple_omp_parallel_set_clauses): Likewise.
23133         (gimple_omp_parallel_child_fn): Likewise.
23134         (gimple_omp_parallel_child_fn_ptr): Likewise.
23135         (gimple_omp_parallel_set_child_fn): Likewise.
23136         (gimple_omp_parallel_data_arg): Likewise.
23137         (gimple_omp_parallel_data_arg_ptr): Likewise.
23138         (gimple_omp_parallel_set_data_arg): Likewise.
23139         (gimple_omp_task_clauses): Likewise.
23140         (gimple_omp_task_clauses_ptr): Likewise.
23141         (gimple_omp_task_set_clauses): Likewise.
23142         (gimple_omp_task_child_fn): Likewise.
23143         (gimple_omp_task_child_fn_ptr): Likewise.
23144         (gimple_omp_task_set_child_fn): Likewise.
23145         (gimple_omp_task_data_arg): Likewise.
23146         (gimple_omp_task_data_arg_ptr): Likewise.
23147         (gimple_omp_task_set_data_arg): Likewise.
23148         (gimple_omp_taskreg_clauses): Likewise.
23149         (gimple_omp_taskreg_clauses_ptr): Likewise.
23150         (gimple_omp_taskreg_set_clauses): Likewise.
23151         (gimple_omp_taskreg_child_fn): Likewise.
23152         (gimple_omp_taskreg_child_fn_ptr): Likewise.
23153         (gimple_omp_taskreg_set_child_fn): Likewise.
23154         (gimple_omp_taskreg_data_arg): Likewise.
23155         (gimple_omp_taskreg_data_arg_ptr): Likewise.
23156         (gimple_omp_taskreg_set_data_arg): Likewise.
23157         (gimple_omp_task_copy_fn): Likewise.
23158         (gimple_omp_task_copy_fn_ptr): Likewise.
23159         (gimple_omp_task_set_copy_fn): Likewise.
23160         (gimple_omp_task_arg_size): Likewise.
23161         (gimple_omp_task_arg_size_ptr): Likewise.
23162         (gimple_omp_task_set_arg_size): Likewise.
23163         (gimple_omp_task_arg_align): Likewise.
23164         (gimple_omp_task_arg_align_ptr): Likewise.
23165         (gimple_omp_task_set_arg_align): Likewise.
23166         (gimple_omp_single_clauses): Likewise.
23167         (gimple_omp_single_clauses_ptr): Likewise.
23168         (gimple_omp_single_set_clauses): Likewise.
23169         (gimple_omp_target_clauses): Likewise.
23170         (gimple_omp_target_clauses_ptr): Likewise.
23171         (gimple_omp_target_set_clauses): Likewise.
23172         (gimple_omp_target_child_fn): Likewise.
23173         (gimple_omp_target_child_fn_ptr): Likewise.
23174         (gimple_omp_target_set_child_fn): Likewise.
23175         (gimple_omp_target_data_arg): Likewise.
23176         (gimple_omp_target_data_arg_ptr): Likewise.
23177         (gimple_omp_target_set_data_arg): Likewise.
23178         (gimple_omp_teams_clauses): Likewise.
23179         (gimple_omp_teams_clauses_ptr): Likewise.
23180         (gimple_omp_teams_set_clauses): Likewise.
23181         (gimple_omp_sections_clauses): Likewise.
23182         (gimple_omp_sections_clauses_ptr): Likewise.
23183         (gimple_omp_sections_set_clauses): Likewise.
23184         (gimple_omp_sections_control): Likewise.
23185         (gimple_omp_sections_control_ptr): Likewise.
23186         (gimple_omp_sections_set_control): Likewise.
23187         (gimple_omp_for_set_cond): Likewise.
23188         (gimple_omp_for_cond): Likewise.
23189         (gimple_omp_atomic_store_set_val): Likewise.
23190         (gimple_omp_atomic_store_val): Likewise.
23191         (gimple_omp_atomic_store_val_ptr): Likewise.
23192         (gimple_omp_atomic_load_set_lhs): Likewise.
23193         (gimple_omp_atomic_load_lhs): Likewise.
23194         (gimple_omp_atomic_load_lhs_ptr): Likewise.
23195         (gimple_omp_atomic_load_set_rhs): Likewise.
23196         (gimple_omp_atomic_load_rhs): Likewise.
23197         (gimple_omp_atomic_load_rhs_ptr): Likewise.
23198         (gimple_omp_continue_control_def): Likewise.
23199         (gimple_omp_continue_control_def_ptr): Likewise.
23200         (gimple_omp_continue_set_control_def): Likewise.
23201         (gimple_omp_continue_control_use): Likewise.
23202         (gimple_omp_continue_control_use_ptr): Likewise.
23203         (gimple_omp_continue_set_control_use): Likewise.
23204         (gimple_transaction_body_ptr): Likewise.
23205         (gimple_transaction_label): Likewise.
23206         (gimple_transaction_label_ptr): Likewise.
23207         (gimple_transaction_set_body): Likewise.
23208         (gimple_transaction_set_label): Likewise.
23209
23210         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23211         * ipa-inline-analysis.c (inline_write_summary): Likewise.
23212         * ipa-ref.c (ipa_record_reference): Likewise.
23213         * ipa-reference.c (analyze_function): Likewise.
23214         (ipa_reference_write_optimization_summary): Likewise.
23215         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23216         (address_taken_from_non_vtable_p): Likewise.
23217         (comdat_can_be_unshared_p_1): Likewise.
23218         * lto-cgraph.c (lto_output_ref): Likewise.
23219         (add_references): Likewise.
23220         (compute_ltrans_boundary): Likewise.
23221         (output_symtab): Likewise.
23222         (input_ref): Likewise.
23223         (input_cgraph_1): Likewise.
23224         (output_cgraph_opt_summary): Likewise.
23225         * lto-streamer-out.c (lto_output): Likewise.
23226         (output_symbol_p): Likewise.
23227         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23228         (lsei_start_function_in_partition): Likewise.
23229         (lsei_next_variable_in_partition): Likewise.
23230         (lsei_start_variable_in_partition): Likewise.
23231         * symtab.c (insert_to_assembler_name_hash): Likewise.
23232         (unlink_from_assembler_name_hash): Likewise.
23233         (symtab_unregister_node): Likewise.
23234         (symtab_remove_node): Likewise.
23235         (dump_symtab_node): Likewise.
23236         (verify_symtab_base): Likewise.
23237         (verify_symtab_node): Likewise.
23238         (symtab_make_decl_local): Likewise.
23239         (symtab_alias_ultimate_target): Likewise.
23240         (symtab_resolve_alias): Likewise.
23241         (symtab_get_symbol_partitioning_class): Likewise.
23242         * tree-phinodes.c (allocate_phi_node): Likewise.
23243         (reserve_phi_args_for_new_edge): Likewise.
23244         (remove_phi_args): Likewise.
23245         * varpool.c (varpool_node_for_asm): Likewise.
23246         (varpool_remove_unreferenced_decls): Likewise.
23247
23248 2014-04-23  Jeff Law  <law@redhat.com>
23249
23250         PR tree-optimization/60902
23251         * tree-ssa-threadedge.c
23252         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23253         invalidate outputs from statements that do not produce useful
23254         outputs for threading.
23255
23256 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
23257
23258         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23259         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23260         machine descriptions for Stack Smashing Protector.
23261
23262 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
23263
23264         * aarch64.md (<optab>_rol<mode>3): New pattern.
23265         (<optab>_rolsi3_uxtw): Likewise.
23266         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23267
23268 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
23269
23270         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23271         (arm_cortex_a12_tune): Likewise.
23272
23273 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23274
23275         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23276
23277 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23278
23279         * config/arm/arm.md (arm_rev16si2): New pattern.
23280         (arm_rev16si2_alt): Likewise.
23281         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23282
23283 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23284
23285         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23286         (rev16<mode>2_alt): Likewise.
23287         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23288         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23289         (aarch_rev16_shleft_mask_imm_p): Likewise.
23290         (aarch_rev16_p_1): Likewise.
23291         (aarch_rev16_p): Likewise.
23292         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23293         (aarch_rev16_shright_mask_imm_p): Likewise.
23294         (aarch_rev16_shleft_mask_imm_p): Likewise.
23295
23296 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23297
23298         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23299         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23300         rev cost.
23301         (cortex_a53_extra_costs): Likewise.
23302         (cortex_a57_extra_costs): Likewise.
23303         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23304         (cortexa7_extra_costs): Likewise.
23305         (cortexa8_extra_costs): Likewise.
23306         (cortexa12_extra_costs): Likewise.
23307         (cortexa15_extra_costs): Likewise.
23308         (v7m_extra_costs): Likewise.
23309         (arm_new_rtx_costs): Handle BSWAP.
23310
23311 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23312
23313         * config/arm/arm.c (cortexa8_extra_costs): New table.
23314         (arm_cortex_a8_tune): New tuning struct.
23315         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23316
23317 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23318
23319         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23320
23321 2014-04-23  Richard Biener  <rguenther@suse.de>
23322
23323         * Makefile.in (OBJS): Remove loop-unswitch.o.
23324         * tree-pass.h (make_pass_rtl_unswitch): Remove.
23325         * passes.def (pass_rtl_unswitch): Likewise.
23326         * loop-init.c (gate_rtl_unswitch): Likewise.
23327         (rtl_unswitch): Likewise.
23328         (pass_data_rtl_unswitch): Likewise.
23329         (pass_rtl_unswitch): Likewise.
23330         (make_pass_rtl_unswitch): Likewise.
23331         * rtl.h (reversed_condition): Likewise.
23332         (compare_and_jump_seq): Likewise.
23333         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23334         and make static.
23335         * loop-unroll.c (compare_and_jump_seq): Likewise.
23336
23337 2014-04-23  Richard Biener  <rguenther@suse.de>
23338
23339         PR tree-optimization/60903
23340         * tree-ssa-loop-im.c (analyze_memory_references): Remove
23341         commented code block.
23342         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23343         loop flags to newly created BBs and edges.
23344
23345 2014-04-23  Nick Clifton  <nickc@redhat.com>
23346
23347         * config/msp430/msp430.c (msp430_handle_option): Move function
23348         to msp430-common.c
23349         (msp430_option_override): Simplify mcu and mcpu option handling.
23350         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
23351         support for -mhwmult command line option.
23352         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
23353         -mhwmult command line option.
23354         (msp430_hwmult_enabled): Delete.
23355         (msp43o_output_labelref): Add support for -mhwmult command line option.
23356         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23357         (umulsidi3): Likewise.
23358         * config/msp430/msp430.opt (mmcu): Add Report attribute.
23359         (mcpu, mlarge, msmall): Likewise.
23360         (mhwmult): New option.
23361         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23362         prototype.
23363         (msp430_is_f5_mcu): Remove prototype.
23364         (msp430_use_f5_series_hwmult): Add prototype.
23365         * config/msp430/msp430-opts.h: New file.
23366         * common/config/msp430: New directory.
23367         * common/config/msp430/msp430-common.c: New file.
23368         * config.gcc (msp430): Remove target_has_targetm_common.
23369         * doc/invoke.texi: Document -mhwmult command line option.
23370
23371 2014-04-23  Nick Clifton  <nickc@redhat.com>
23372
23373         * config/i386/cygwin.h (ENDFILE_SPEC): Include
23374         default-manifest.o if it can be found in the search path.
23375         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23376
23377 2014-04-23  Terry Guo  <terry.guo@arm.com>
23378
23379         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23380
23381 2014-04-23  Richard Biener  <rguenther@suse.de>
23382
23383         PR middle-end/60895
23384         * tree-inline.c (declare_return_variable): Use mark_addressable.
23385
23386 2014-04-23  Richard Biener  <rguenther@suse.de>
23387
23388         PR middle-end/60891
23389         * loop-init.c (loop_optimizer_init): Make sure to apply
23390         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23391
23392 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23393
23394         PR sanitizer/60275
23395         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23396         New options.
23397         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23398         if flag_sanitize_undefined_trap_on_error.
23399         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23400         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23401         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23402         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23403         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23404         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23405         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23406         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23407         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23408         * ubsan.c (ubsan_instrument_unreachable): Return
23409         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23410         (ubsan_expand_null_ifn): Emit __builtin_trap ()
23411         if flag_sanitize_undefined_trap_on_error and
23412         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23413         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23414         instrument_bool_enum_load): Emit __builtin_trap () if
23415         flag_sanitize_undefined_trap_on_error and
23416         __builtin_handle_*_abort () if !flag_sanitize_recover.
23417         * doc/invoke.texi (-fsanitize-recover,
23418         -fsanitize-undefined-trap-on-error): Document.
23419
23420 2014-04-22  Christian Bruel  <christian.bruel@st.com>
23421
23422         * config/sh/sh.md (mov<mode>): Replace movQIHI.
23423          Force immediates to SImode.
23424
23425 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
23426
23427         * config/nios2/nios2.md (UNSPEC_ROUND): New.
23428         (lroundsfsi2): New.
23429         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23430         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23431         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23432         (nios2_fpu_insn): Add entry for round.
23433         (N2FPU_NO_ERRNO_P): Define.
23434         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23435         flag_errno_math.
23436         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23437
23438 2014-04-22  Richard Henderson  <rth@redhat.com>
23439
23440         * config/aarch64/aarch64 (addti3, subti3): New expanders.
23441         (add<GPI>3_compare0): Remove leading * from name.
23442         (add<GPI>3_carryin): Likewise.
23443         (sub<GPI>3_compare0): Likewise.
23444         (sub<GPI>3_carryin): Likewise.
23445         (<su_optab>mulditi3): New expander.
23446         (multi3): New expander.
23447         (madd<GPI>): Remove leading * from name.
23448
23449 2014-04-22  Martin Jambor  <mjambor@suse.cz>
23450
23451         * cgraphclones.c (cgraph_function_versioning): Copy
23452         ipa_transforms_to_apply instead of asserting it is empty.
23453
23454 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
23455
23456         PR target/60868
23457         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23458         on count_exp to get mode.
23459
23460 2014-04-22  Andrew Pinski  <apinski@cavium.com>
23461
23462         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23463         Handle TLS for ILP32.
23464         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23465         (tlsie_small_<mode>): this and handle PTR.
23466         (tlsie_small_sidi): New pattern.
23467         (tlsle_small): Change to an expand to handle ILP32.
23468         (tlsle_small_<mode>): New pattern.
23469         (tlsdesc_small): Rename to ...
23470         (tlsdesc_small_<mode>): this and handle PTR.
23471
23472 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23473
23474         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23475
23476 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23477
23478         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23479         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23480         (aarch64_types_signed_poly_qualifiers): Likewise.
23481         (aarch64_types_unsigned_signed_qualifiers): Likewise.
23482         (aarch64_types_poly_signed_qualifiers): Likewise.
23483         (TYPES_REINTERP_SS): Type macro added.
23484         (TYPES_REINTERP_SU): Likewise.
23485         (TYPES_REINTERP_SP): Likewise.
23486         (TYPES_REINTERP_US): Likewise.
23487         (TYPES_REINTERP_PS): Likewise.
23488         (aarch64_fold_builtin): New expression folding added.
23489         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23490         Declarations removed.
23491         (REINTERP_SS): Declarations added.
23492         (REINTERP_US): Likewise.
23493         (REINTERP_PS): Likewise.
23494         (REINTERP_SU): Likewise.
23495         (REINTERP_SP): Likewise.
23496         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23497         (vreinterpretq_p8_f64): Likewise.
23498         (vreinterpret_p16_f64): Likewise.
23499         (vreinterpretq_p16_f64): Likewise.
23500         (vreinterpret_f32_f64): Likewise.
23501         (vreinterpretq_f32_f64): Likewise.
23502         (vreinterpret_f64_f32): Likewise.
23503         (vreinterpret_f64_p8): Likewise.
23504         (vreinterpret_f64_p16): Likewise.
23505         (vreinterpret_f64_s8): Likewise.
23506         (vreinterpret_f64_s16): Likewise.
23507         (vreinterpret_f64_s32): Likewise.
23508         (vreinterpret_f64_s64): Likewise.
23509         (vreinterpret_f64_u8): Likewise.
23510         (vreinterpret_f64_u16): Likewise.
23511         (vreinterpret_f64_u32): Likewise.
23512         (vreinterpret_f64_u64): Likewise.
23513         (vreinterpretq_f64_f32): Likewise.
23514         (vreinterpretq_f64_p8): Likewise.
23515         (vreinterpretq_f64_p16): Likewise.
23516         (vreinterpretq_f64_s8): Likewise.
23517         (vreinterpretq_f64_s16): Likewise.
23518         (vreinterpretq_f64_s32): Likewise.
23519         (vreinterpretq_f64_s64): Likewise.
23520         (vreinterpretq_f64_u8): Likewise.
23521         (vreinterpretq_f64_u16): Likewise.
23522         (vreinterpretq_f64_u32): Likewise.
23523         (vreinterpretq_f64_u64): Likewise.
23524         (vreinterpret_s64_f64): Likewise.
23525         (vreinterpretq_s64_f64): Likewise.
23526         (vreinterpret_u64_f64): Likewise.
23527         (vreinterpretq_u64_f64): Likewise.
23528         (vreinterpret_s8_f64): Likewise.
23529         (vreinterpretq_s8_f64): Likewise.
23530         (vreinterpret_s16_f64): Likewise.
23531         (vreinterpretq_s16_f64): Likewise.
23532         (vreinterpret_s32_f64): Likewise.
23533         (vreinterpretq_s32_f64): Likewise.
23534         (vreinterpret_u8_f64): Likewise.
23535         (vreinterpretq_u8_f64): Likewise.
23536         (vreinterpret_u16_f64): Likewise.
23537         (vreinterpretq_u16_f64): Likewise.
23538         (vreinterpret_u32_f64): Likewise.
23539         (vreinterpretq_u32_f64): Likewise.
23540
23541 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23542
23543         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23544         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23545         (vreinterpret_p8_s8): Likewise.
23546         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23547         (vreinterpret_p8_s16): Likewise.
23548         (vreinterpret_p8_s32): Likewise.
23549         (vreinterpret_p8_s64): Likewise.
23550         (vreinterpret_p8_f32): Likewise.
23551         (vreinterpret_p8_u8): Likewise.
23552         (vreinterpret_p8_u16): Likewise.
23553         (vreinterpret_p8_u32): Likewise.
23554         (vreinterpret_p8_u64): Likewise.
23555         (vreinterpret_p8_p16): Likewise.
23556         (vreinterpretq_p8_s8): Likewise.
23557         (vreinterpretq_p8_s16): Likewise.
23558         (vreinterpretq_p8_s32): Likewise.
23559         (vreinterpretq_p8_s64): Likewise.
23560         (vreinterpretq_p8_f32): Likewise.
23561         (vreinterpretq_p8_u8): Likewise.
23562         (vreinterpretq_p8_u16): Likewise.
23563         (vreinterpretq_p8_u32): Likewise.
23564         (vreinterpretq_p8_u64): Likewise.
23565         (vreinterpretq_p8_p16): Likewise.
23566         (vreinterpret_p16_s8): Likewise.
23567         (vreinterpret_p16_s16): Likewise.
23568         (vreinterpret_p16_s32): Likewise.
23569         (vreinterpret_p16_s64): Likewise.
23570         (vreinterpret_p16_f32): Likewise.
23571         (vreinterpret_p16_u8): Likewise.
23572         (vreinterpret_p16_u16): Likewise.
23573         (vreinterpret_p16_u32): Likewise.
23574         (vreinterpret_p16_u64): Likewise.
23575         (vreinterpret_p16_p8): Likewise.
23576         (vreinterpretq_p16_s8): Likewise.
23577         (vreinterpretq_p16_s16): Likewise.
23578         (vreinterpretq_p16_s32): Likewise.
23579         (vreinterpretq_p16_s64): Likewise.
23580         (vreinterpretq_p16_f32): Likewise.
23581         (vreinterpretq_p16_u8): Likewise.
23582         (vreinterpretq_p16_u16): Likewise.
23583         (vreinterpretq_p16_u32): Likewise.
23584         (vreinterpretq_p16_u64): Likewise.
23585         (vreinterpretq_p16_p8): Likewise.
23586         (vreinterpret_f32_s8): Likewise.
23587         (vreinterpret_f32_s16): Likewise.
23588         (vreinterpret_f32_s32): Likewise.
23589         (vreinterpret_f32_s64): Likewise.
23590         (vreinterpret_f32_u8): Likewise.
23591         (vreinterpret_f32_u16): Likewise.
23592         (vreinterpret_f32_u32): Likewise.
23593         (vreinterpret_f32_u64): Likewise.
23594         (vreinterpret_f32_p8): Likewise.
23595         (vreinterpret_f32_p16): Likewise.
23596         (vreinterpretq_f32_s8): Likewise.
23597         (vreinterpretq_f32_s16): Likewise.
23598         (vreinterpretq_f32_s32): Likewise.
23599         (vreinterpretq_f32_s64): Likewise.
23600         (vreinterpretq_f32_u8): Likewise.
23601         (vreinterpretq_f32_u16): Likewise.
23602         (vreinterpretq_f32_u32): Likewise.
23603         (vreinterpretq_f32_u64): Likewise.
23604         (vreinterpretq_f32_p8): Likewise.
23605         (vreinterpretq_f32_p16): Likewise.
23606         (vreinterpret_s64_s8): Likewise.
23607         (vreinterpret_s64_s16): Likewise.
23608         (vreinterpret_s64_s32): Likewise.
23609         (vreinterpret_s64_f32): Likewise.
23610         (vreinterpret_s64_u8): Likewise.
23611         (vreinterpret_s64_u16): Likewise.
23612         (vreinterpret_s64_u32): Likewise.
23613         (vreinterpret_s64_u64): Likewise.
23614         (vreinterpret_s64_p8): Likewise.
23615         (vreinterpret_s64_p16): Likewise.
23616         (vreinterpretq_s64_s8): Likewise.
23617         (vreinterpretq_s64_s16): Likewise.
23618         (vreinterpretq_s64_s32): Likewise.
23619         (vreinterpretq_s64_f32): Likewise.
23620         (vreinterpretq_s64_u8): Likewise.
23621         (vreinterpretq_s64_u16): Likewise.
23622         (vreinterpretq_s64_u32): Likewise.
23623         (vreinterpretq_s64_u64): Likewise.
23624         (vreinterpretq_s64_p8): Likewise.
23625         (vreinterpretq_s64_p16): Likewise.
23626         (vreinterpret_u64_s8): Likewise.
23627         (vreinterpret_u64_s16): Likewise.
23628         (vreinterpret_u64_s32): Likewise.
23629         (vreinterpret_u64_s64): Likewise.
23630         (vreinterpret_u64_f32): Likewise.
23631         (vreinterpret_u64_u8): Likewise.
23632         (vreinterpret_u64_u16): Likewise.
23633         (vreinterpret_u64_u32): Likewise.
23634         (vreinterpret_u64_p8): Likewise.
23635         (vreinterpret_u64_p16): Likewise.
23636         (vreinterpretq_u64_s8): Likewise.
23637         (vreinterpretq_u64_s16): Likewise.
23638         (vreinterpretq_u64_s32): Likewise.
23639         (vreinterpretq_u64_s64): Likewise.
23640         (vreinterpretq_u64_f32): Likewise.
23641         (vreinterpretq_u64_u8): Likewise.
23642         (vreinterpretq_u64_u16): Likewise.
23643         (vreinterpretq_u64_u32): Likewise.
23644         (vreinterpretq_u64_p8): Likewise.
23645         (vreinterpretq_u64_p16): Likewise.
23646         (vreinterpret_s8_s16): Likewise.
23647         (vreinterpret_s8_s32): Likewise.
23648         (vreinterpret_s8_s64): Likewise.
23649         (vreinterpret_s8_f32): Likewise.
23650         (vreinterpret_s8_u8): Likewise.
23651         (vreinterpret_s8_u16): Likewise.
23652         (vreinterpret_s8_u32): Likewise.
23653         (vreinterpret_s8_u64): Likewise.
23654         (vreinterpret_s8_p8): Likewise.
23655         (vreinterpret_s8_p16): Likewise.
23656         (vreinterpretq_s8_s16): Likewise.
23657         (vreinterpretq_s8_s32): Likewise.
23658         (vreinterpretq_s8_s64): Likewise.
23659         (vreinterpretq_s8_f32): Likewise.
23660         (vreinterpretq_s8_u8): Likewise.
23661         (vreinterpretq_s8_u16): Likewise.
23662         (vreinterpretq_s8_u32): Likewise.
23663         (vreinterpretq_s8_u64): Likewise.
23664         (vreinterpretq_s8_p8): Likewise.
23665         (vreinterpretq_s8_p16): Likewise.
23666         (vreinterpret_s16_s8): Likewise.
23667         (vreinterpret_s16_s32): Likewise.
23668         (vreinterpret_s16_s64): Likewise.
23669         (vreinterpret_s16_f32): Likewise.
23670         (vreinterpret_s16_u8): Likewise.
23671         (vreinterpret_s16_u16): Likewise.
23672         (vreinterpret_s16_u32): Likewise.
23673         (vreinterpret_s16_u64): Likewise.
23674         (vreinterpret_s16_p8): Likewise.
23675         (vreinterpret_s16_p16): Likewise.
23676         (vreinterpretq_s16_s8): Likewise.
23677         (vreinterpretq_s16_s32): Likewise.
23678         (vreinterpretq_s16_s64): Likewise.
23679         (vreinterpretq_s16_f32): Likewise.
23680         (vreinterpretq_s16_u8): Likewise.
23681         (vreinterpretq_s16_u16): Likewise.
23682         (vreinterpretq_s16_u32): Likewise.
23683         (vreinterpretq_s16_u64): Likewise.
23684         (vreinterpretq_s16_p8): Likewise.
23685         (vreinterpretq_s16_p16): Likewise.
23686         (vreinterpret_s32_s8): Likewise.
23687         (vreinterpret_s32_s16): Likewise.
23688         (vreinterpret_s32_s64): Likewise.
23689         (vreinterpret_s32_f32): Likewise.
23690         (vreinterpret_s32_u8): Likewise.
23691         (vreinterpret_s32_u16): Likewise.
23692         (vreinterpret_s32_u32): Likewise.
23693         (vreinterpret_s32_u64): Likewise.
23694         (vreinterpret_s32_p8): Likewise.
23695         (vreinterpret_s32_p16): Likewise.
23696         (vreinterpretq_s32_s8): Likewise.
23697         (vreinterpretq_s32_s16): Likewise.
23698         (vreinterpretq_s32_s64): Likewise.
23699         (vreinterpretq_s32_f32): Likewise.
23700         (vreinterpretq_s32_u8): Likewise.
23701         (vreinterpretq_s32_u16): Likewise.
23702         (vreinterpretq_s32_u32): Likewise.
23703         (vreinterpretq_s32_u64): Likewise.
23704         (vreinterpretq_s32_p8): Likewise.
23705         (vreinterpretq_s32_p16): Likewise.
23706         (vreinterpret_u8_s8): Likewise.
23707         (vreinterpret_u8_s16): Likewise.
23708         (vreinterpret_u8_s32): Likewise.
23709         (vreinterpret_u8_s64): Likewise.
23710         (vreinterpret_u8_f32): Likewise.
23711         (vreinterpret_u8_u16): Likewise.
23712         (vreinterpret_u8_u32): Likewise.
23713         (vreinterpret_u8_u64): Likewise.
23714         (vreinterpret_u8_p8): Likewise.
23715         (vreinterpret_u8_p16): Likewise.
23716         (vreinterpretq_u8_s8): Likewise.
23717         (vreinterpretq_u8_s16): Likewise.
23718         (vreinterpretq_u8_s32): Likewise.
23719         (vreinterpretq_u8_s64): Likewise.
23720         (vreinterpretq_u8_f32): Likewise.
23721         (vreinterpretq_u8_u16): Likewise.
23722         (vreinterpretq_u8_u32): Likewise.
23723         (vreinterpretq_u8_u64): Likewise.
23724         (vreinterpretq_u8_p8): Likewise.
23725         (vreinterpretq_u8_p16): Likewise.
23726         (vreinterpret_u16_s8): Likewise.
23727         (vreinterpret_u16_s16): Likewise.
23728         (vreinterpret_u16_s32): Likewise.
23729         (vreinterpret_u16_s64): Likewise.
23730         (vreinterpret_u16_f32): Likewise.
23731         (vreinterpret_u16_u8): Likewise.
23732         (vreinterpret_u16_u32): Likewise.
23733         (vreinterpret_u16_u64): Likewise.
23734         (vreinterpret_u16_p8): Likewise.
23735         (vreinterpret_u16_p16): Likewise.
23736         (vreinterpretq_u16_s8): Likewise.
23737         (vreinterpretq_u16_s16): Likewise.
23738         (vreinterpretq_u16_s32): Likewise.
23739         (vreinterpretq_u16_s64): Likewise.
23740         (vreinterpretq_u16_f32): Likewise.
23741         (vreinterpretq_u16_u8): Likewise.
23742         (vreinterpretq_u16_u32): Likewise.
23743         (vreinterpretq_u16_u64): Likewise.
23744         (vreinterpretq_u16_p8): Likewise.
23745         (vreinterpretq_u16_p16): Likewise.
23746         (vreinterpret_u32_s8): Likewise.
23747         (vreinterpret_u32_s16): Likewise.
23748         (vreinterpret_u32_s32): Likewise.
23749         (vreinterpret_u32_s64): Likewise.
23750         (vreinterpret_u32_f32): Likewise.
23751         (vreinterpret_u32_u8): Likewise.
23752         (vreinterpret_u32_u16): Likewise.
23753         (vreinterpret_u32_u64): Likewise.
23754         (vreinterpret_u32_p8): Likewise.
23755         (vreinterpret_u32_p16): Likewise.
23756         (vreinterpretq_u32_s8): Likewise.
23757         (vreinterpretq_u32_s16): Likewise.
23758         (vreinterpretq_u32_s32): Likewise.
23759         (vreinterpretq_u32_s64): Likewise.
23760         (vreinterpretq_u32_f32): Likewise.
23761         (vreinterpretq_u32_u8): Likewise.
23762         (vreinterpretq_u32_u16): Likewise.
23763         (vreinterpretq_u32_u64): Likewise.
23764         (vreinterpretq_u32_p8): Likewise.
23765         (vreinterpretq_u32_p16): Likewise.
23766
23767 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23768
23769         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23770         Pattern extended.
23771         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23772         (sqabs): Likewise.
23773         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23774         (vqnegd_s64): Likewise.
23775         (vqabs_s64): Likewise.
23776         (vqabsd_s64): Likewise.
23777
23778 2014-04-22  Richard Henderson  <rth@redhat.com>
23779
23780         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23781         computation to the top of the loop.
23782
23783 2014-04-22  Renlin  <renlin.li@arm.com>
23784             Jiong Wang  <jiong.wang@arm.com>
23785
23786         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23787         * config/aarch64/aarch64.c (aarch64_layout_frame)
23788         (aarch64_initial_elimination_offset): Likewise.
23789
23790 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23791
23792         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23793         Fix indentation.
23794
23795 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
23796
23797         * machmode.h (bitwise_mode_for_mode): Declare.
23798         * stor-layout.h (bitwise_type_for_mode): Likewise.
23799         * stor-layout.c (bitwise_mode_for_mode): New function.
23800         (bitwise_type_for_mode): Likewise.
23801         * builtins.c (fold_builtin_memory_op): Use it instead of
23802         int_mode_for_mode and build_nonstandard_integer_type.
23803
23804 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23805
23806         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23807         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23808         (*-*-solaris2*): Simplify.
23809         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23810         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23811         *-*-solaris2.9* handling.
23812
23813         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23814         as bug.
23815         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23816         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23817         handling, simplify.
23818         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23819         * configure: Regenerate.
23820
23821         * config/i386/sol2-9.h: Remove.
23822
23823         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23824         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23825         Remove Solaris 9 references.
23826
23827 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
23828
23829         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23830         (floatuns<GPI:mode><GPF:mode>2): Remove.
23831         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23832         and floatuns conversions.
23833         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23834         and floatuns conversions.
23835         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23836         (w1,w2): New mode attributes for inequal width conversions.
23837
23838 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
23839
23840         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23841         the output asm format.
23842
23843 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
23844
23845         * config/aarch64/aarch64-simd.md
23846         (aarch64_cm<optab>di): Always split.
23847         (*aarch64_cm<optab>di): New.
23848         (aarch64_cmtstdi): Always split.
23849         (*aarch64_cmtstdi): New.
23850
23851 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23852
23853         PR tree-optimization/60823
23854         * omp-low.c (ipa_simd_modify_function_body): Go through
23855         all SSA_NAMEs and for those refering to vector arguments
23856         which are going to be replaced adjust SSA_NAME_VAR and,
23857         if it is a default definition, change it into a non-default
23858         definition assigned at the beginning of function from new_decl.
23859         (ipa_simd_modify_stmt_ops): Rewritten.
23860         * tree-dfa.c (set_ssa_default_def): When removing default def,
23861         check for NULL loc instead of NULL *loc.
23862
23863 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23864
23865         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23866         restrictions on core registers for DImode values in Thumb2.
23867
23868 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
23869
23870         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23871         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23872
23873 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
23874
23875         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23876         (*iordi_notzesidi_di): Likewise.
23877         (*iordi_notsesidi_di): Likewise.
23878
23879 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
23880
23881         * config/arm/arm-protos.h (tune_params): New struct members.
23882         * config/arm/arm.c: Initialise tune_params per processor.
23883         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23884         for speed, based on new tune_params.
23885
23886 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
23887
23888         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23889         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23890         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23891         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23892         * config/aarch64/arm_neon.h (vrnd_f64): Added.
23893         (vrnda_f64): Likewise.
23894         (vrndi_f64): Likewise.
23895         (vrndm_f64): Likewise.
23896         (vrndn_f64): Likewise.
23897         (vrndp_f64): Likewise.
23898         (vrndx_f64): Likewise.
23899
23900 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23901
23902         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23903         GET_MODE_SIZE argument is enum machine_mode.
23904
23905 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
23906
23907         PR target/60910
23908         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23909         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23910
23911 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
23912
23913         PR middle-end/60281
23914         * asan.c (asan_emit_stack_protection): Force the base to align to
23915         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
23916         appropriate bits if STRICT_ALIGNMENT.
23917         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23918         when asan is on.
23919         (expand_used_vars): Leave a space in the stack frame for alignment
23920         if STRICT_ALIGNMENT.
23921
23922 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
23923
23924         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23925         than a gimple.
23926         (gimple_store_p): Likewise.
23927         (gimple_assign_load_p): Likewise.
23928         (gimple_assign_cast_p): Likewise.
23929         (gimple_clobber_p): Likewise.
23930
23931         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23932         rather than a gimple.
23933         (gimple_assign_cast_p): Likewise.
23934
23935 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
23936
23937         PR target/60735
23938         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23939         If mode is DDmode and TARGET_E500_DOUBLE allow move.
23940
23941         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23942         more debug information for E500 if -mdebug=reg.
23943
23944 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
23945
23946         PR target/60909
23947         * config/i386/i386.c (ix86_expand_builtin)
23948         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23949         register for target RTX.
23950         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23951
23952 2014-04-18  Cong Hou  <congh@google.com>
23953
23954         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23955         the widen-mult pattern by handling two operands with different sizes,
23956         and operands whose size is smaller than half of the result type.
23957
23958 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
23959
23960         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23961         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23962         (do_estimate_edge_time): Compute it.
23963         * ipa-inline.c (want_inline_small_function_p): Bypass
23964         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23965
23966 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
23967
23968         * ipa-inline.c (spec_rem): New static variable.
23969         (dump_overall_stats): New function.
23970         (dump_inline_stats): New function.
23971
23972 2014-04-18  Richard Henderson  <rth@redhat.com>
23973
23974         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23975         to GET_MODE_SIZE, not a reg_class_t.
23976
23977 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23978
23979         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23980         (vsx_xxmrglw_<mode>): Likewise.
23981
23982 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
23983
23984         PR target/60876
23985         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23986         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23987         (rs6000_init_hard_regno_mode_ok): Likewise.
23988
23989 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
23990
23991         * ipa-inline.c (inline_small_functions): Account only non-cold
23992         functions.
23993         * doc/invoke.texi (inline-unit-growth): Update documentation.
23994
23995 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
23996
23997         * config/rs6000/rs6000.md (addti3, subti3): New.
23998
23999 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24000
24001         PR target/60863
24002         * config/i386/i386.c (ix86_expand_clear): Remove outdated
24003         comment.  Check optimize_insn_for_size_p instead of
24004         optimize_insn_for_speed_p.
24005
24006 2014-04-17  Martin Jambor  <mjambor@suse.cz>
24007
24008         * gimple-iterator.c (gsi_start_edge): New function.
24009         * gimple-iterator.h (gsi_start_edge): Declare.
24010         * tree-sra.c (single_non_eh_succ): New function.
24011         (disqualify_ops_if_throwing_stmt): Renamed to
24012         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
24013         having one non-EH successor BB.
24014         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24015         generate loads into replacements.
24016         (sra_modify_assign): Likewise and and also use the simple path for
24017         such statements.
24018         (sra_modify_function_body): Commit statements on edges.
24019
24020 2014-04-17  Richard Biener  <rguenther@suse.de>
24021
24022         PR middle-end/60849
24023         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24024         comparison results and add clarifying comment.
24025
24026 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
24027
24028         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24029         (blank_mode): Initialize it.
24030         (emit_mode_size_inline, emit_mode_nunits_inline,
24031         emit_mode_inner_inline): New functions.
24032         (emit_insn_modes_h): Call them and surround their output with
24033         #if GCC_VERSION >= 4001 ... #endif.
24034         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24035         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24036         mode_* arrays if the argument is __builtin_constant_p.
24037         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24038         is enum machine_mode.
24039
24040 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24041
24042         * passes.c (opt_pass::execute): Adjust.
24043         (pass_manager::execute_pass_mode_switching): Likewise.
24044         (early_local_passes::execute): Likewise.
24045         (execute_one_pass): Pass cfun to the pass's execute method.
24046         * tree-pass.h (opt_pass::execute): Add function * argument.
24047         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24048         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24049         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24050         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24051         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24052         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24053         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24054         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24055         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24056         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24057         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24058         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24059         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24060         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24061         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24062         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24063         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24064         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24065         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24066         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24067         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24068         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24069         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24070         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24071         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24072         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24073         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24074         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24075         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24076         Adjust.
24077
24078 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24079
24080         * passes.c (opt_pass::gate): Take function * argument.
24081         (gate_all_early_local_passes): Merge into
24082         (early_local_passes::gate): this.
24083         (gate_all_early_optimizations): Merge into
24084         (all_early_optimizations::gate): this.
24085         (gate_all_optimizations): Mege into
24086         (all_optimizations::gate): this.
24087         (gate_all_optimizations_g): Merge into
24088         (all_optimizations_g::gate): this.
24089         (gate_rest_of_compilation): Mege into
24090         (rest_of_compilation::gate): this.
24091         (gate_postreload): Merge into
24092         (postreload::gate): this.
24093         (dump_one_pass): Pass cfun to the pass's gate method.
24094         (execute_ipa_summary_passes): Likewise.
24095         (execute_one_pass): Likewise.
24096         (ipa_write_summaries_2): Likewise.
24097         (ipa_write_optimization_summaries_1): Likewise.
24098         (ipa_read_summaries_1): Likewise.
24099         (ipa_read_optimization_summaries_1): Likewise.
24100         (execute_ipa_stmt_fixups): Likewise.
24101         * tree-pass.h (opt_pass::gate): Add function * argument.
24102         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24103         combine-stack-adj.c, combine.c, compare-elim.c,
24104         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24105         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24106         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24107         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
24108         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24109         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24110         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24111         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24112         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24113         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24114         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24115         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24116         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24117         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24118         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24119         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24120         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24121         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24122         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24123         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24124         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24125         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24126         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24127         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24128         var-tracking.c, vtable-verify.c, web.c: Adjust.
24129
24130 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24131
24132         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24133         * configure: Regenerate.
24134
24135 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24136
24137         * passes.c (dump_one_pass): don't check pass->has_gate.
24138         (execute_ipa_summary_passes): Likewise.
24139         (execute_one_pass): Likewise.
24140         (ipa_write_summaries_2): Likewise.
24141         (ipa_write_optimization_summaries_1): Likewise.
24142         (ipa_read_optimization_summaries_1): Likewise.
24143         (execute_ipa_stmt_fixups): Likewise.
24144         * tree-pass.h (pass_data::has_gate): Remove.
24145         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24146         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24147         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24148         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24149         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24150         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24151         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24152         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24153         gimple-low.c, gimple-ssa-isolate-paths.c,
24154         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24155         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24156         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24157         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24158         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24159         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24160         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24161         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24162         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24163         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24164         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24165         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24166         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24167         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24168         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24169         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24170         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24171         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24172         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24173         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24174         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24175         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24176         Adjust.
24177
24178 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24179
24180         * pass_manager.h (pass_manager::register_dump_files_1): Remove
24181         declaration.
24182         * passes.c (pass_manager::register_dump_files_1): Merge into
24183         (pass_manager::register_dump_files): this, and remove its handling of
24184         properties since the pass always has the properties anyway.
24185         (pass_manager::pass_manager): Adjust.
24186
24187 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
24188
24189         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24190         * passes.c (pass_manager::register_dump_files_1): Remove dead code
24191         dealing with properties.
24192         (pass_manager::register_dump_files): Adjust.
24193
24194 2014-03-20  Mark Wielaard  <mjw@redhat.com>
24195
24196         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24197         then represent the bound as normal constant value.
24198
24199 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
24200
24201         PR target/60847
24202         Forward port from 4.8 branch
24203         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
24204
24205         * config/i386/bmiintrin.h (_blsi_u32): New.
24206         (_blsi_u64): Ditto.
24207         (_blsr_u32): Ditto.
24208         (_blsr_u64): Ditto.
24209         (_blsmsk_u32): Ditto.
24210         (_blsmsk_u64): Ditto.
24211         (_tzcnt_u32): Ditto.
24212         (_tzcnt_u64): Ditto.
24213
24214 2014-04-17  Kito Cheng  <kito@0xlab.org>
24215
24216         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24217
24218 2014-04-17  Richard Biener  <rguenther@suse.de>
24219
24220         PR middle-end/60849
24221         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24222         boolean results for comparisons.
24223
24224 2014-04-17  Richard Biener  <rguenther@suse.de>
24225
24226         PR tree-optimization/60836
24227         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24228         initial PHI args to be gimple values.
24229
24230 2014-04-17  Richard Biener  <rguenther@suse.de>
24231
24232         PR tree-optimization/60841
24233         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24234         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24235         of stmts to SLP build.
24236         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24237         (vect_analyze_slp): Likewise.
24238         (vect_analyze_slp_instance): Likewise.
24239         (vect_build_slp_tree): Limit overall SLP tree growth.
24240         * tree-vectorizer.h (vect_analyze_data_refs,
24241         vect_analyze_slp): Adjust prototypes.
24242
24243 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24244
24245         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24246         Silvermont.
24247
24248 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24249
24250         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24251         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24252         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24253         for TARGET_SLOW_PSHUFB
24254
24255 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
24256
24257         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24258         * config/i386/i386.c (intel_cost): Ditto.
24259
24260 2014-04-17  Joey Ye  <joey.ye@arm.com>
24261
24262         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24263
24264 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24265
24266         * opts.c (common_handle_option): Disable -fipa-reference coorectly
24267         with -fuse-profile.
24268
24269 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24270
24271         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24272         (type_all_derivations_known_p): New predicate.
24273         (type_all_ctors_visible_p): New predicate.
24274         (type_possibly_instantiated_p): New predicate.
24275         (get_odr_type): Compute all_derivations_known.
24276         (dump_odr_type): Dump the flag.
24277         (maybe_record_type): Cleanup.
24278         (record_target_from_binfo): Add bases_to_consider array;
24279         record bases for types w/o instances and skip CXX destructor.
24280         (possible_polymorphic_call_targets_1): Add bases_to_consider
24281         and consider_construction parameters; check if type may have instance.
24282         (get_polymorphic_call_info): Set maybe_in_construction to true
24283         when we know nothing.
24284         (record_targets_from_bases): Skip CXX destructors; they are
24285         never called for types in construction.
24286         (possible_polymorphic_call_targets): Do not record target when
24287         type may not have instance.
24288
24289 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
24290
24291         PR ipa/60854
24292         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24293         external aliases alive, too.
24294
24295 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
24296
24297         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24298         definition.
24299
24300 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
24301
24302         * final.c (compute_alignments): Do not apply loop alignment to a block
24303         falling through to the exit.
24304
24305 2014-04-16  Catherine Moore  <clm@codesourcery.com>
24306
24307         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24308         Adjust constraints for microMIPS store patterns.
24309
24310 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
24311
24312         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24313
24314 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
24315
24316         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24317         (append_use): Run at -O0.
24318         (append_vdef): Likewise.
24319         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24320         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24321
24322 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
24323
24324         PR tree-optimization/60844
24325         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24326         (propagate_op_to_single_use, remove_visited_stmt_chain,
24327         linearize_expr, repropagate_negates, reassociate_bb): Use it
24328         instead of gsi_remove.
24329
24330 2014-04-16  Martin Jambor  <mjambor@suse.cz>
24331
24332         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24333         ipa_transforms_to_apply.
24334         (cgraph_function_versioning): Assert that old_node has empty
24335         ipa_transforms_to_apply.
24336         * trans-mem.c (ipa_tm_create_version): Likewise.
24337         * tree-inline.c (tree_function_versioning): Do not duplicate
24338         ipa_transforms_to_apply.
24339
24340 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24341
24342         PR target/60817
24343         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24344         x86_64-*-* cases.
24345         Pass necessary as flags on 64-bit Solaris/x86.
24346         Use lowercase relocs for x86_64-*-*.
24347         * configure: Regenerate.
24348
24349 2014-04-15  Jan Hubicka  <jh@suse.cz>
24350
24351         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24352         (maybe_record_node, likely_target_p): Use it.
24353
24354 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24355
24356         PR target/60839
24357         Revert following patch
24358
24359         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24360
24361         PR target/60735
24362         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24363         software floating point or no floating point registers, do not
24364         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
24365         in GPRs that occurs after we tested for GPRs that would never be
24366         true.
24367
24368         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24369         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24370         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
24371         specifically allow DDmode, since that does not use the SPE SIMD
24372         instructions.
24373
24374 2014-03-21  Mark Wielaard  <mjw@redhat.com>
24375
24376         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24377         as unsigned or int depending on type and value used.
24378
24379 2014-04-15  Richard Biener  <rguenther@suse.de>
24380
24381         PR rtl-optimization/56965
24382         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24383         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24384         ... here.
24385         * alias.c (true_dependence_1): Do not call
24386         nonoverlapping_component_refs_p.
24387         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24388         nonoverlapping_component_refs_p.
24389         (indirect_refs_may_alias_p): Likewise.
24390
24391 2014-04-15  Teresa Johnson  <tejohnson@google.com>
24392
24393         * cfg.c (dump_bb_info): Fix flags check.
24394         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24395
24396 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24397
24398         PR rtl-optimization/60663
24399         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24400         avoid 0 cost.
24401
24402 2014-04-15  Richard Biener  <rguenther@suse.de>
24403
24404         * lto-streamer.h (LTO_major_version): Bump to 4.
24405
24406 2014-04-15  Richard Biener  <rguenther@suse.de>
24407
24408         * common.opt (lto_partition_model): New enum.
24409         (flto-partition=): Merge separate options with a single with argument,
24410         add -flto-partition=one support.
24411         * flag-types.h (enum lto_partition_model): Declare.
24412         * opts.c (finish_options): Remove duplicate -flto-partition=
24413         option check.
24414         * lto-wrapper.c (run_gcc): Adjust.
24415
24416 2014-04-15  Richard Biener  <rguenther@suse.de>
24417
24418         * alias.c (ncr_compar): New function.
24419         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24420
24421 2014-04-15  Richard Biener  <rguenther@suse.de>
24422
24423         * alias.c (record_component_aliases): Do not walk BINFOs.
24424
24425 2014-04-15  Richard Biener  <rguenther@suse.de>
24426
24427         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24428         Add struct function argument and adjust.
24429         (find_func_aliases_for_call): Likewise.
24430         (find_func_aliases): Likewise.
24431         (find_func_clobbers): Likewise.
24432         (intra_create_variable_infos): Likewise.
24433         (compute_points_to_sets): Likewise.
24434         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
24435
24436 2014-04-15  Richard Biener  <rguenther@suse.de>
24437
24438         * tree.c (iterative_hash_expr): Use enum tree_code_class
24439         to store TREE_CODE_CLASS.
24440         (tree_block): Likewise.
24441         (tree_set_block): Likewise.
24442         * tree.h (fold_build_pointer_plus_loc): Use
24443         convert_to_ptrofftype_loc.
24444
24445 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
24446
24447         PR plugins/59335
24448         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24449         added in 4.9.
24450
24451 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
24452
24453         * cfgloop.h (struct loop): Move force_vectorize down.
24454         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24455         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24456         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24457         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24458         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24459         * tree-core.h (enum annot_expr_kind): Add new kind values.
24460         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24461         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24462         kinds.
24463         * tree.def (ANNOTATE_EXPR): Tweak comment.
24464
24465 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
24466
24467         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24468         cxa_pure_virtual).
24469
24470 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
24471
24472         * tree.h (TYPE_IDENTIFIER): Declare.
24473         * tree.c (subrange_type_for_debug_p): Use it.
24474         * godump.c (go_format_type): Likewise.
24475         * dwarf2out.c (is_cxx_auto, modified_type_die,
24476         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24477         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24478
24479 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
24480
24481         PR lto/60820
24482         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24483
24484 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
24485
24486         * config/i386/i386.c (examine_argument): Return bool.  Return true if
24487         parameter should be passed in memory.
24488         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24489         (construct_container): Update calls to examine_argument.
24490         (function_arg_advance_64): Ditto.
24491         (return_in_memory_32): Merge with ix86_return_in_memory.
24492         (return_in_memory_64): Ditto.
24493         (return_in_memory_ms_64): Ditto.
24494
24495 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
24496
24497         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24498         * coverage.c (coverage_compute_profile_id): Handle externally visible
24499         symbols.
24500
24501 2014-04-14  Martin Jambor  <mjambor@suse.cz>
24502
24503         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24504         DECL_DISREGARD_INLINE_LIMITS functions.
24505
24506 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
24507
24508         PR target/60827
24509         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24510
24511 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
24512
24513         PR target/60827
24514         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24515         optimize_insn_for_speed_p instead of
24516         optimize_function_for_speed_p.
24517
24518 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
24519
24520         * doc/invoke.texi (free): Document AArch64.
24521
24522 2014-04-14  Richard Biener  <rguenther@suse.de>
24523
24524         PR tree-optimization/60042
24525         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24526         (insert_into_preds_of_block): Do not prevent PHI insertion
24527         for REFERENCE exprs here ...
24528         (eliminate_dom_walker::before_dom_children): ... but prevent
24529         their use here under similar conditions when applied to the
24530         IL after PRE optimizations.
24531
24532 2014-04-14  Richard Biener  <rguenther@suse.de>
24533
24534         * passes.def: Move early points-to after early SRA.
24535
24536 2014-04-14  Richard Biener  <rguenther@suse.de>
24537
24538         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24539         check for which sign-changes we allow when forwarding
24540         a converted value into a switch.
24541
24542 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
24543
24544         * stor-layout.c (place_field): Finalize non-constant offset for the
24545         field, if any.
24546
24547 2014-04-14  Richard Biener  <rguenther@suse.de>
24548
24549         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24550         as argument.
24551         (expand_switch_using_bit_tests_p): Likewise.
24552         (process_switch): Compute and pass on speed_p based on the
24553         switch stmt.
24554         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24555         optimize_bb_for_speed_p.
24556
24557 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
24558
24559         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24560         * function.h (struct function): Rename has_force_vect_loops into
24561         has_force_vectorize_loops.
24562         * lto-streamer-in.c (input_cfg): Adjust for renaming.
24563         (input_struct_function_base): Likewise.
24564         * lto-streamer-out.c (output_cfg): Likewise.
24565         (output_struct_function_base): Likewise.
24566         * omp-low.c (expand_omp_simd): Likewise.
24567         * tree-cfg.c (move_sese_region_to_fn): Likewise.
24568         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24569         (version_loop_for_if_conversion): Likewise.
24570         (tree_if_conversion): Likewise.
24571         (main_tree_if_conversion): Likewise.
24572         (gate_tree_if_conversion): Likewise.
24573         * tree-inline.c (copy_loops): Likewise.
24574         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24575         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24576         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24577         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24578         * tree-vectorizer.c (vectorize_loops): Likewise.
24579         * tree-vectorizer.h (unlimited_cost_model): Likewise.
24580
24581 2014-04-14  Richard Biener  <rguenther@suse.de>
24582
24583         PR lto/60720
24584         * lto-streamer-out.c (wrap_refs): New function.
24585         (lto_output): Wrap symbol references in global initializes in
24586         type-preserving MEM_REFs.
24587
24588 2014-04-14  Christian Bruel  <christian.bruel@st.com>
24589
24590         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24591
24592 2014-04-14  Christian Bruel  <christian.bruel@st.com>
24593
24594         * config/sh/sh.md (setmemqi): New expand pattern.
24595         * config/sh/sh.h (CLEAR_RATIO): Define.
24596         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24597         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24598
24599 2014-04-14  Richard Biener  <rguenther@suse.de>
24600
24601         PR middle-end/55022
24602         * fold-const.c (negate_expr_p): Don't negate directional rounding
24603         division.
24604         (fold_negate_expr): Likewise.
24605
24606 2014-04-14  Richard Biener  <rguenther@suse.de>
24607
24608         PR tree-optimization/59817
24609         PR tree-optimization/60453
24610         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24611         recursion to catch all CHRECs in the scalar evolution and restrict
24612         the predicate for the remains appropriately.
24613
24614 2014-04-12  Catherine Moore  <clm@codesourcery.com>
24615
24616         * config/mips/constraints.md: Add new register constraint "kb".
24617         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24618         (*movhi_internal): Likewise.
24619         (*movqi_internal): Likewise.
24620         * config/mips/mips.h (M16_STORE_REGS): New register class.
24621         (REG_CLASS_NAMES): Add M16_STORE_REGS.
24622         (REG_CLASS_CONTENTS): Likewise.
24623         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24624
24625 2014-04-11  Tobias Burnus  <burnus@net-b.de>
24626
24627         PR c/60194
24628         * doc/invoke.texi (-Wformat-signedness): Document it.
24629         (Wformat=2): Mention that this enables -Wformat-signedness.
24630
24631 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24632
24633         * common/config/epiphany/epiphany-common.c
24634         (epiphany_option_optimization_table): Enable section anchors by
24635         default at -O1 or higher.
24636         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24637         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24638         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24639         carries no extra cost.
24640         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24641         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24642         * config/epiphany/predicates.md (memclob_operand): New predicate.
24643         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24644         Use memclob_operand predicate and X constraint for operand 3.
24645
24646 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24647
24648         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24649         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24650         its operands.
24651
24652 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24653
24654         PR rtl-optimization/60651
24655         * mode-switching.c (optimize_mode_switching): Make sure to emit
24656         sets of a lower numbered entity before sets of a higher numbered
24657         entity to a mode of the same or lower priority.
24658         When creating a seginfo for a basic block that starts with a code
24659         label, move the insertion point past the code label.
24660         (new_seginfo): Document and enforce requirement that
24661         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24662         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24663         * doc/tm.texi: Regenerate.
24664
24665 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24666
24667         PR target/60811
24668         * config/arc/arc.c (arc_save_restore): Fix assert typo.
24669
24670 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
24671
24672         * BASE-VER: Set to 4.10.0.
24673
24674 2014-04-11  Tobias Burnus  <burnus@net-b.de>
24675
24676         PR other/59055
24677         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24678         * doc/gcc.texi (Service): Update description in the @menu
24679         * doc/invoke.texi (Option Summary): Remove misplaced and
24680         duplicated @menu.
24681
24682 2014-04-11  Steve Ellcey  <sellcey@mips.com>
24683             Jakub Jelinek  <jakub@redhat.com>
24684
24685         PR middle-end/60556
24686         * expr.c (convert_move): Use emit_store_flag_force instead of
24687         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
24688         argument to it.
24689
24690 2014-04-11  Richard Biener  <rguenther@suse.de>
24691
24692         PR middle-end/60797
24693         * varasm.c (assemble_alias): Avoid endless error reporting
24694         recursion by setting TREE_ASM_WRITTEN.
24695
24696 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24697
24698         * config/s390/s390.md: Add a splitter for NOT rtx.
24699
24700 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
24701
24702         PR rtl-optimization/60663
24703         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24704
24705 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
24706             Jakub Jelinek  <jakub@redhat.com>
24707
24708         PR lto/60567
24709         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24710         flag from decl_node to node.
24711
24712 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24713
24714         PR debug/60655
24715         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24716         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24717         ameliorating the cases where it can be.
24718
24719 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
24720
24721         Revert
24722         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
24723
24724         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24725         (loadsync_<mode>): Change mode.
24726         (load_quadpti, store_quadpti): New.
24727         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24728         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24729         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24730
24731 2014-04-09  Cong Hou  <congh@google.com>
24732
24733         PR testsuite/60773
24734         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24735         documentation.
24736
24737 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24738
24739         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24740         instead of vnor to exploit possible fusion opportunity in the
24741         future.
24742         (altivec_expand_vec_perm_const_le): Likewise.
24743
24744 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
24745
24746         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24747         (loadsync_<mode>): Change mode.
24748         (load_quadpti, store_quadpti): New.
24749         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24750         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24751
24752 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
24753
24754         PR target/60763
24755         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24756         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24757         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24758
24759 2014-04-08  Richard Biener  <rguenther@suse.de>
24760
24761         PR middle-end/60706
24762         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24763         a 64bit widest int print double-int similar to on HWI64 hosts.
24764
24765 2014-04-08  Richard Biener  <rguenther@suse.de>
24766
24767         PR tree-optimization/60785
24768         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24769         default defs properly.
24770
24771 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
24772
24773         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24774         (Weffc++): Likewise.
24775
24776 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
24777
24778         * ipa-devirt.c (maybe_record_node): When node is not recorded,
24779         set completep to false rather than true.
24780
24781 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
24782
24783         PR target/60504
24784         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24785         ARM_TARGET2_DWARF_FORMAT.
24786
24787 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
24788
24789         PR target/60609
24790         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24791         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24792         ADDR_DIFF_VEC.
24793
24794 2014-04-07  Richard Biener  <rguenther@suse.de>
24795
24796         PR tree-optimization/60766
24797         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24798         (may_eliminate_iv): Convert cand_value_at result to desired type.
24799
24800 2014-04-07  Jason Merrill  <jason@redhat.com>
24801
24802         PR c++/60731
24803         * common.opt (-fno-gnu-unique): Add.
24804         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24805
24806 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24807
24808         * haifa-sched.c: Fix outdated function reference and minor
24809         grammar errors in introductory comment.
24810
24811 2014-04-07  Richard Biener  <rguenther@suse.de>
24812
24813         PR middle-end/60750
24814         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24815         for noreturn calls.
24816         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24817
24818 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
24819
24820         PR debug/55794
24821         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24822         size accounting for thunks.
24823         (pa_asm_output_mi_thunk): Use final_start_function() and
24824         final_end_function() to output function start and end directives.
24825
24826 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
24827
24828         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24829         device specific ISA/ feature information. Remove short_sp and
24830         errata_skip ds.  Add avr_device_specific_features enum to have device
24831         specific info.
24832         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24833         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24834         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24835         updated device specific info.
24836         * config/avr/avr-mcus.def: Merge device specific details to
24837         dev_attribute field.
24838         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24839         errata_skip.
24840         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24841         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24842         assembler if RMW isa supported by current device.
24843         * config/avr/genmultilib.awk: Update as device info structure changed.
24844         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24845
24846 2014-04-04  Cong Hou  <congh@google.com>
24847
24848         PR tree-optimization/60656
24849         * tree-vect-stmts.c (supportable_widening_operation):
24850         Fix a bug that elements in a vector with vect_used_by_reduction
24851         property are incorrectly reordered when the operation on it is not
24852         consistant with the one in reduction operation.
24853
24854 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
24855
24856         PR rtl-optimization/60155
24857         * gcse.c (record_set_data): New function.
24858         (single_set_gcse): New function.
24859         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24860         (hoist_code): Likewise.
24861         (get_pressure_class_and_nregs): Likewise.
24862
24863 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
24864
24865         * explow.c (probe_stack_range): Emit a final optimization blockage.
24866
24867 2014-04-04  Anthony Green  <green@moxielogic.com>
24868
24869         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24870         typos.
24871
24872 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
24873
24874         PR ipa/59626
24875         * lto-cgraph.c (input_overwrite_node): Check that partitioning
24876         flags are set only during streaming.
24877         * ipa.c (process_references, walk_polymorphic_call_targets,
24878         symtab_remove_unreachable_nodes): Drop bodies of always inline
24879         after early inlining.
24880         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24881
24882 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
24883         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24884
24885         PR debug/60655
24886         * dwarf2out.c (const_ok_for_output_1): Reject expressions
24887         containing a NOT.
24888
24889 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24890
24891         PR bootstrap/60743
24892         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24893         duration.
24894         (cortex_a53_fdivd): Likewise.
24895
24896 2014-04-04  Martin Jambor  <mjambor@suse.cz>
24897
24898         PR ipa/60640
24899         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24900         Adjust all callers.
24901         * cgraph.c (clone_of_p): Also return true if thunks match.
24902         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24903         cgraph_function_or_thunk_node and an obsolete comment.
24904         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24905         file.
24906         (build_function_decl_skip_args): Likewise.
24907         (set_new_clone_decl_and_node_flags): New function.
24908         (duplicate_thunk_for_node): Likewise.
24909         (redirect_edge_duplicating_thunks): Likewise.
24910         (cgraph_clone_node): New parameter args_to_skip, pass it to
24911         redirect_edge_duplicating_thunks which is called instead of
24912         cgraph_redirect_edge_callee.
24913         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24914         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24915
24916 2014-04-04  Jeff Law  <law@redhat.com>
24917
24918         PR target/60657
24919         * config/arm/predicates.md (const_int_I_operand): New predicate.
24920         (const_int_M_operand): Similarly.
24921         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24922         const_int_operand.
24923         (insv_t2, extv_reg, extzv_t2): Likewise.
24924         (load_multiple_with_writeback): Similarly for const_int_I_operand.
24925         (pop_multiple_with_writeback_and_return): Likewise.
24926         (vfp_pop_multiple_with_writeback): Likewise
24927
24928 2014-04-04  Richard Biener  <rguenther@suse.de>
24929
24930         PR ipa/60746
24931         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24932         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24933         non-GIMPLE_LABELs.
24934         * gimplify.h (gimple_add_tmp_var_fn): Declare.
24935         * gimplify.c (gimple_add_tmp_var_fn): New function.
24936         * gimple-expr.h (create_tmp_reg_fn): Declare.
24937         * gimple-expr.c (create_tmp_reg_fn): New function.
24938         * gimple-low.c (record_vars_into): Don't change cfun.
24939         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24940         code generation without cfun.
24941
24942 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
24943
24944         PR bootstrap/60719
24945         * Makefile.in (install-driver): Fix shell scripting.
24946
24947 2014-04-03  Cong Hou  <congh@google.com>
24948
24949         PR tree-optimization/60505
24950         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24951         threshold of number of iterations below which no vectorization
24952         will be done.
24953         * tree-vect-loop.c (new_loop_vec_info):
24954         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24955         * tree-vect-loop.c (vect_analyze_loop_operations):
24956         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24957         * tree-vect-loop.c (vect_transform_loop):
24958         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24959         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24960         of iterations of the loop and see if we should build the epilogue.
24961
24962 2014-04-03  Richard Biener  <rguenther@suse.de>
24963
24964         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24965         (streamer_tree_cache_create): Adjust.
24966         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24967         to allow optional nodes array.
24968         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24969         (streamer_tree_cache_append): Likewise.
24970         (streamer_tree_cache_create): Create nodes array optionally
24971         as specified by parameter.
24972         * lto-streamer-out.c (create_output_block): Avoid maintaining
24973         the node array in the writer cache.
24974         (DFS_write_tree): Remove assertion.
24975         (produce_asm_for_decls): Free the out decl state hash table early.
24976         * lto-streamer-in.c (lto_data_in_create): Adjust for
24977         streamer_tree_cache_create prototype change.
24978
24979 2014-04-03  Richard Biener  <rguenther@suse.de>
24980
24981         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24982         set TREE_CHAIN to NULL_TREE.
24983
24984 2014-04-03  Richard Biener  <rguenther@suse.de>
24985
24986         PR tree-optimization/60740
24987         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24988         over all GIMPLE_COND operands.
24989
24990 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
24991
24992         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24993         (Weffc++): Remove Scott's numbering, merge lists and reference
24994         Wnon-virtual-dtor.
24995
24996 2014-04-03  Nick Clifton  <nickc@redhat.com>
24997
24998         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24999         properly.
25000
25001 2014-04-03  Martin Jambor  <mjambor@suse.cz>
25002
25003         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25004         mention gcc_unreachable before failing.
25005         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25006         removed symbols.
25007
25008 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
25009
25010         PR ipa/60659
25011         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25012         inconsistent code and instead mark the context inconsistent.
25013         (possible_polymorphic_call_targets): For inconsistent contexts
25014         return empty complete list.
25015
25016 2014-04-02  Anthony Green  <green@moxielogic.com>
25017
25018         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25019         (extendqisi2, extendhisi2): Define.
25020         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25021         (WCHAR_TYPE): Change to unsigned int.
25022
25023 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25024
25025         PR tree-optimization/60733
25026         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25027         insertion point for PHI candidates to be the end of the feeding
25028         block for the PHI argument.
25029
25030 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
25031
25032         PR rtl-optimization/60650
25033         * lra-constraints.c (process_alt_operands): Decrease reject for
25034         earlyclobber matching.
25035
25036 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25037
25038         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25039
25040 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25041
25042         * config/spu/spu.c (pad_bb): Do not crash when the last
25043         insn is CODE_FOR_blockage.
25044
25045 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25046
25047         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25048         lies outside the target mode.
25049
25050 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25051
25052         PR target/60735
25053         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25054         software floating point or no floating point registers, do not
25055         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
25056         in GPRs that occurs after we tested for GPRs that would never be
25057         true.
25058
25059         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25060         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25061         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
25062         specifically allow DDmode, since that does not use the SPE SIMD
25063         instructions.
25064
25065 2014-04-02  Richard Biener  <rguenther@suse.de>
25066
25067         PR middle-end/60729
25068         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25069         MODE_INTs.  Properly use negv_optab.
25070         (expand_abs): Likewise.
25071
25072 2014-04-02  Richard Biener  <rguenther@suse.de>
25073
25074         PR bootstrap/60719
25075         * Makefile.in (install-driver): Guard extra installs with special
25076         names properly.
25077
25078 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25079
25080         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25081         Document vec_vgbbd.
25082
25083 2014-04-01  Richard Henderson  <rth@redhat.com>
25084
25085         PR target/60704
25086         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25087         alternative enabled before register allocation.
25088
25089 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
25090
25091         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25092         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25093         typo.
25094         (nios2_large_got_address): Remove unneeded 'sym' parameter.
25095         (nios2_got_address): Update nios2_large_got_address call site.
25096         (nios2_delegitimize_address): New function.
25097         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25098         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25099         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25100
25101 2014-04-01  Martin Husemann  <martin@duskware.de>
25102
25103         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25104         for -mabi=32.
25105
25106 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
25107
25108         PR rtl-optimization/60604
25109         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25110         check from register_operand.
25111         (register_operand): Redefine in terms of general_operand.
25112         (nonmemory_operand): Use register_operand for the non-constant cases.
25113
25114 2014-04-01  Richard Biener  <rguenther@suse.de>
25115
25116         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25117
25118 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25119
25120         * doc/invoke.texi (mapp-regs): Clarify.
25121
25122 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
25123
25124         * config/i386/avx512fintrin.h (__v32hi): Define type.
25125         (__v64qi): Likewise.
25126         (_mm512_set1_epi8): Define.
25127         (_mm512_set1_epi16): Define.
25128         (_mm512_set4_epi32): Define.
25129         (_mm512_set4_epi64): Define.
25130         (_mm512_set4_pd): Define.
25131         (_mm512_set4_ps): Define.
25132         (_mm512_setr4_epi64): Define.
25133         (_mm512_setr4_epi32): Define.
25134         (_mm512_setr4_pd): Define.
25135         (_mm512_setr4_ps): Define.
25136         (_mm512_setzero_epi32): Define.
25137
25138 2014-03-31  Martin Jambor  <mjambor@suse.cz>
25139
25140         PR middle-end/60647
25141         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25142         callsite_arguments_match_p.  Updated all callers.  Also check types of
25143         corresponding formal parameters and actual arguments.
25144         (not_all_callers_have_enough_arguments_p) Renamed to
25145         some_callers_have_mismatched_arguments_p.
25146
25147 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
25148
25149         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25150
25151 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
25152
25153         PR target/60034
25154         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25155         section anchor.
25156
25157 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
25158
25159         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25160         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25161         Split out
25162         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25163         Use FMAMODE_NOVF512 mode iterator.
25164         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25165         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25166         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25167         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25168         Split out
25169         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25170         Use VF_128_256 mode iterator.
25171         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25172         Ditto.
25173
25174 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25175
25176         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25177         static chain if needed.
25178
25179 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25180
25181         PR target/60697
25182         * lra-constraints.c (index_part_to_reg): New.
25183         (process_address): Use it.
25184
25185 2014-03-27  Jeff Law  <law@redhat.com>
25186             Jakub Jelinek  <jakub@redhat.com>
25187
25188         PR target/60648
25189         * expr.c (do_tablejump): Use simplify_gen_binary rather than
25190         gen_rtx_{PLUS,MULT} to build up the address expression.
25191
25192         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25193         creating non-canonical RTL.
25194
25195 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25196
25197         PR ipa/60243
25198         * ipa-inline.c (want_inline_small_function_p): Short circuit large
25199         functions; reorganize to make cheap checks first.
25200         (inline_small_functions): Do not estimate growth when dumping;
25201         it is expensive.
25202         * ipa-inline.h (inline_summary): Add min_size.
25203         (growth_likely_positive): New function.
25204         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25205         (set_cond_stmt_execution_predicate): Cleanup.
25206         (estimate_edge_size_and_time): Compute min_size.
25207         (estimate_calls_size_and_time): Likewise.
25208         (estimate_node_size_and_time): Likewise.
25209         (inline_update_overall_summary): Update min_size.
25210         (do_estimate_edge_time): Likewise.
25211         (do_estimate_edge_size): Update.
25212         (do_estimate_edge_hints): Update.
25213         (growth_likely_positive): New function.
25214
25215 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
25216
25217         PR target/60693
25218         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25219         also if addr has VOIDmode.
25220
25221 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25222
25223         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25224         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25225         Declare extern.
25226         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25227         instructions as well as AdvancedSIMD loads.
25228
25229 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25230
25231         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25232         Use crypto_aese type.
25233         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25234         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25235         crypto_aese, crypto_aesmc.  Move to types.md.
25236         * config/arm/types.md (crypto_aes): Split into crypto_aese,
25237         crypto_aesmc.
25238         * config/arm/iterators.md (crypto_type): Likewise.
25239
25240 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
25241
25242         * cgraph.c: Include expr.h and tree-dfa.h.
25243         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25244         remove LHS.
25245
25246 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25247
25248         PR target/60675
25249         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25250         regs from checking multi-reg pseudos.
25251
25252 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25253
25254         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25255
25256 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25257
25258         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25259         if it would clobber the stack pointer, even temporarily.
25260
25261 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25262
25263         * mode-switching.c: Make small adjustments to the top comment.
25264
25265 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
25266
25267         * config/rs6000/constraints.md (wD constraint): New constraint to
25268         match the constant integer to get the top DImode/DFmode out of a
25269         vector in a VSX register.
25270
25271         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25272         match the constant integer to get the top DImode/DFmode out of a
25273         vector in a VSX register.
25274
25275         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25276         for ISA 2.07.
25277
25278         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25279         vbpermq builtins.
25280
25281         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25282         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25283
25284         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25285         Optimize vec_extract of 64-bit values, where the value being
25286         extracted is in the top word, where we can use scalar
25287         instructions.  Add direct move and store support.  Combine the big
25288         endian/little endian vector select load support into a single insn.
25289         (vsx_extract_<mode>_internal1): Likewise.
25290         (vsx_extract_<mode>_internal2): Likewise.
25291         (vsx_extract_<mode>_load): Likewise.
25292         (vsx_extract_<mode>_store): Likewise.
25293         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25294         combined into vsx_extract_<mode>_load.
25295         (vsx_extract_<mode>_one_le): Likewise.
25296
25297         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25298         define the top 64-bit vector element.
25299
25300         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25301         constraint.
25302
25303         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25304         Document vec_vbpermq builtin.
25305
25306         PR target/60672
25307         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25308         enable use of xxsldwi and xxpermdi builtin functions.
25309         (vec_xxpermdi): Likewise.
25310
25311         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25312         Document use of vec_xxsldwi and vec_xxpermdi builtins.
25313
25314 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25315
25316         PR rtl-optimization/60650
25317         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25318         first_p.  Use it.
25319         (find_spills_for): New.
25320         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25321         Spill all pseudos on the second iteration.
25322
25323 2014-03-27  Marek Polacek  <polacek@redhat.com>
25324
25325         PR c/50347
25326         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25327         types.
25328
25329 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25330
25331         * config/s390/s390.c (s390_can_use_return_insn): Check for
25332         call-saved FPRs on 31 bit.
25333
25334 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
25335
25336         PR middle-end/60682
25337         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25338         if they need regimplification, just drop them instead of
25339         calling gimple_regimplify_operands on them.
25340
25341 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25342
25343         PR target/60580
25344         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25345         (aarch64_frame_pointer_required): Adjust logic.
25346         (aarch64_can_eliminate): Adjust logic.
25347         (aarch64_override_options_after_change): Adjust logic.
25348
25349 2014-03-27  Dehao Chen  <dehao@google.com>
25350
25351         * ipa-inline.c (early_inliner): Update node's inline info.
25352
25353 2014-03-26  Dehao Chen  <dehao@google.com>
25354
25355         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25356         compiler inserted conditional jumps for NAN float check.
25357
25358 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
25359
25360         * ubsan.h (ubsan_create_data): Change second argument's type
25361         to const location_t *.
25362         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25363         _("<unknown>").
25364         (ubsan_create_data): Change second argument to const location_t *PLOC.
25365         Create Loc field whenever PLOC is non-NULL.
25366         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25367         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25368         callers.
25369
25370         PR other/59545
25371         * real.c (real_to_integer2): Change type of low to UHWI.
25372
25373 2014-03-26  Tobias Burnus  <burnus@net-b.de>
25374
25375         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25376         (CILK_SELF_SPECS): New define.
25377         (driver_self_specs): Use it.
25378
25379 2014-03-26  Richard Biener  <rguenther@suse.de>
25380
25381         * tree-pretty-print.c (percent_K_format): Implement special
25382         case for LTO and its stripped down BLOCK tree.
25383
25384 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
25385
25386         PR sanitizer/60636
25387         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25388
25389         * tree-vrp.c (simplify_internal_call_using_ranges): If only
25390         one range is range_int_cst_p, but not both, at least optimize
25391         addition/subtraction of 0 and multiplication by 0 or 1.
25392         * gimple-fold.c (gimple_fold_call): Fold
25393         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25394         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25395         INTEGER_CSTs, try to fold at least x * 0 and y - y.
25396
25397 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25398
25399         PR rtl-optimization/60452
25400         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25401         <case REG>: Return 1 for invalid offsets from the frame pointer.
25402
25403 2014-03-26  Marek Polacek  <polacek@redhat.com>
25404
25405         PR c/37428
25406         * doc/extend.texi (C Extensions): Mention variable-length arrays in
25407         a structure/union.
25408
25409 2014-03-26  Marek Polacek  <polacek@redhat.com>
25410
25411         PR c/39525
25412         * doc/extend.texi (Designated Inits): Describe what happens to omitted
25413         field members.
25414
25415 2014-03-26  Marek Polacek  <polacek@redhat.com>
25416
25417         PR other/59545
25418         * ira-color.c (update_conflict_hard_regno_costs): Perform the
25419         multiplication in unsigned type.
25420
25421 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
25422
25423         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25424
25425 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
25426
25427         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25428
25429 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
25430
25431         PR ipa/60315
25432         * cif-code.def (UNREACHABLE) New code.
25433         * ipa-inline.c (inline_small_functions): Skip edges to
25434         __builtlin_unreachable.
25435         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25436         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25437         predicate to __bulitin_unreachable.
25438         (set_cond_stmt_execution_predicate): Fix issue when
25439         invert_tree_comparison returns ERROR_MARK.
25440         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25441         propagate to inline clones.
25442         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25443         to unreachable.
25444         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25445         * cgraphclones.c (cgraph_clone_node): If call destination is already
25446         ureachable, do not redirect it back.
25447         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25448         unreachable.
25449
25450 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
25451
25452         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25453         Do not modify inline clones.
25454
25455 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
25456
25457         * config/i386/i386.md (general_sext_operand): New mode attr.
25458         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25459         don't generate (sign_extend (const_int)).
25460         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25461         operands[2].  Use We constraint instead of <i> and
25462         <general_sext_operand> predicate instead of <general_operand>.
25463         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25464         * config/i386/constraints.md (We): New constraint.
25465         * config/i386/predicates.md (x86_64_sext_operand,
25466         sext_operand): New predicates.
25467
25468 2014-03-25  Martin Jambor  <mjambor@suse.cz>
25469
25470         PR ipa/60600
25471         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25472         inconsistent devirtualizations to __builtin_unreachable.
25473
25474 2014-03-25  Marek Polacek  <polacek@redhat.com>
25475
25476         PR c/35449
25477         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25478
25479 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
25480
25481         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25482         order of elements for big-endian.
25483
25484 2014-03-25  Richard Biener  <rguenther@suse.de>
25485
25486         PR middle-end/60635
25487         * gimplify-me.c (gimple_regimplify_operands): Update the
25488         re-gimplifed stmt.
25489
25490 2014-03-25  Martin Jambor  <mjambor@suse.cz>
25491
25492         PR ipa/59176
25493         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25494         (lto_output_varpool_node): Likewise.
25495         (input_overwrite_node): Likewise.
25496         (input_varpool_node): Likewise.
25497
25498 2014-03-25  Richard Biener  <rguenther@suse.de>
25499
25500         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25501         (run_gcc): Likewise.
25502
25503 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
25504
25505         * combine.c (simplify_compare_const): Add MODE argument.
25506         Handle mode_width 0 as very large mode_width.
25507         (try_combine, simplify_comparison): Adjust callers.
25508
25509         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25510         type to avoid signed integer overflow.
25511         * explow.c (plus_constant): Likewise.
25512
25513 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25514
25515         * doc/generic.texi: Correct typos.
25516
25517 2014-03-24  Tobias Burnus  <burnus@net-b.de>
25518
25519         * doc/invoke.texi (-flto): Expand section about
25520         using static libraries with LTO.
25521
25522 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25523
25524         PR rtl-optimization/60501
25525         * optabs.def (addptr3_optab): New optab.
25526         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25527         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25528         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25529
25530         * lra.c (emit_add3_insn): Use the addptr pattern if available.
25531
25532         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25533
25534 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
25535
25536         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25537         _mm512_set1_pd.
25538
25539         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25540         (_mm256_undefined_ps): Define.
25541         (_mm256_undefined_pd): Define.
25542         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25543         (_mm_undefined_pd): Define.
25544         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25545         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25546         (_mm512_undefined_ps): Define.
25547         (_mm512_undefined_pd): Define.
25548         Use _mm*_undefined_*.
25549         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25550
25551 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
25552
25553         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25554         (lshr_simd): DI mode added.
25555         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25556         (aarch64_ushr_simddi): Likewise.
25557         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25558         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25559         (vshrd_n_u64): Likewise.
25560
25561 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25562
25563         * Makefile.in (s-macro_list): Depend on cc1.
25564
25565 2014-03-23  Teresa Johnson  <tejohnson@google.com>
25566
25567         * ipa-utils.c (ipa_print_order): Use specified dump file.
25568
25569 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
25570
25571         PR rtl-optimization/60601
25572         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25573
25574         * gcc.c (eval_spec_function): Initialize save_growing_value.
25575
25576 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
25577
25578         PR sanitizer/60613
25579         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25580         code == MINUS_EXPR, never swap op0 with op1.
25581
25582         * toplev.c (init_local_tick): Avoid signed integer multiplication
25583         overflow.
25584         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25585         shift by first operand's bitsize.
25586
25587 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
25588
25589         PR target/60610
25590         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25591         redefine to 1 or 0.
25592         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25593         TARGET_ISA_64BIT_P(x).
25594
25595 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25596
25597         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25598         pattern for vector nor instead of subtract from splat(-1).
25599         (altivec_expand_vec_perm_const_le): Likewise.
25600
25601 2014-03-21  Richard Henderson  <rth@twiddle.net>
25602
25603         PR target/60598
25604         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25605         related insns after epilogue_completed.
25606
25607 2014-03-21  Martin Jambor  <mjambor@suse.cz>
25608
25609         PR ipa/59176
25610         * cgraph.h (symtab_node): New flag body_removed.
25611         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25612         when removing bodies.
25613         * symtab.c (dump_symtab_base): Dump body_removed flag.
25614         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25615         had their bodies removed.
25616
25617 2014-03-21  Martin Jambor  <mjambor@suse.cz>
25618
25619         PR ipa/60419
25620         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25621         in the border.
25622
25623 2014-03-21  Richard Biener  <rguenther@suse.de>
25624
25625         PR tree-optimization/60577
25626         * tree-core.h (struct tree_base): Document nothrow_flag use
25627         in DECL_NONALIASED.
25628         * tree.h (DECL_NONALIASED): New.
25629         (may_be_aliased): Adjust.
25630         * coverage.c (build_var): Set DECL_NONALIASED.
25631
25632 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25633
25634         * expr.c (expand_expr_real_1): Remove outdated comment.
25635
25636 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
25637
25638         PR middle-end/60597
25639         * ira.c (adjust_cleared_regs): Call copy_rtx on
25640         *reg_equiv[REGNO (loc)].src_p before passing it to
25641         simplify_replace_fn_rtx.
25642
25643         PR target/60568
25644         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25645         into CONST, put pic register as first operand of PLUS.  Use
25646         gen_const_mem for both 32-bit and 64-bit PIC got loads.
25647
25648 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25649
25650         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25651
25652 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25653
25654         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25655         around for store forwarding issue in the FPU on the UT699.
25656         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25657         loads and operations if -mfix-ut699 is specified.
25658         (divtf3_hq): Tweak attribute.
25659         (sqrttf2_hq): Likewise.
25660
25661 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25662
25663         * calls.c (store_one_arg): Remove incorrect const qualification on the
25664         type of the temporary.
25665         * cfgexpand.c (expand_return): Likewise.
25666         * expr.c (expand_constructor): Likewise.
25667         (expand_expr_real_1): Likewise.
25668
25669 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25670
25671         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25672         of parts.
25673
25674 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25675
25676         PR target/60039
25677         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25678
25679 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
25680
25681         * config/arm/aarch-common-protos.h
25682         (alu_cost_table): Fix spelling of "extend".
25683         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25684
25685 2014-03-19  Richard Biener  <rguenther@suse.de>
25686
25687         PR middle-end/60553
25688         * tree-core.h (tree_type_common): Re-order pointer members
25689         to reduce recursion depth during GC walks.
25690
25691 2014-03-19  Marek Polacek  <polacek@redhat.com>
25692
25693         PR sanitizer/60569
25694         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25695         before accessing it.
25696
25697 2014-03-19  Richard Biener  <rguenther@suse.de>
25698
25699         PR lto/59543
25700         * lto-streamer-in.c (input_function): In WPA stage do not drop
25701         debug stmts.
25702
25703 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
25704
25705         PR tree-optimization/60559
25706         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25707         with build_zero_cst assignment.
25708
25709 2014-03-18  Kai Tietz  <ktietz@redhat.com>
25710
25711         PR rtl-optimization/56356
25712         * sdbout.c (sdbout_parms): Verify that parms'
25713         incoming argument is valid.
25714         (sdbout_reg_parms): Likewise.
25715
25716 2014-03-18  Richard Henderson  <rth@redhat.com>
25717
25718         PR target/60562
25719         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25720         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
25721         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25722
25723 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
25724
25725         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25726         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25727         Italicize plugin event names in description.  Explain that
25728         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
25729         Remind that no GCC functions should be called after PLUGIN_FINISH.
25730         Explain what pragmas with expansion are.
25731
25732 2014-03-18  Martin Liska  <mliska@suse.cz>
25733
25734         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25735         gimple call statement is update.
25736         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25737         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25738
25739 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
25740
25741         PR sanitizer/60557
25742         * ubsan.c (ubsan_instrument_unreachable): Call
25743         initialize_sanitizer_builtins.
25744         (ubsan_pass): Likewise.
25745
25746         PR sanitizer/60535
25747         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25748         varpool_finalize_decl instead of rest_of_decl_compilation.
25749
25750 2014-03-18  Richard Biener  <rguenther@suse.de>
25751
25752         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25753         by using bitmap_and_compl instead of bitmap_and_compl_into.
25754         (df_rd_transfer_function): Likewise.
25755
25756 2014-03-18  Richard Biener  <rguenther@suse.de>
25757
25758         * doc/lto.texi (fresolution): Fix typo.
25759
25760 2014-03-18  Richard Biener  <rguenther@suse.de>
25761
25762         * doc/invoke.texi (flto): Update for changes in 4.9.
25763
25764 2014-03-18  Richard Biener  <rguenther@suse.de>
25765
25766         * doc/loop.texi: Remove section on the removed lambda framework.
25767         Update loop docs with recent changes in preserving loop structure.
25768
25769 2014-03-18  Richard Biener  <rguenther@suse.de>
25770
25771         * doc/lto.texi (-fresolution): Document.
25772
25773 2014-03-18  Richard Biener  <rguenther@suse.de>
25774
25775         * doc/contrib.texi: Adjust my name.
25776
25777 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
25778
25779         PR ipa/58721
25780         * internal-fn.c: Include diagnostic-core.h.
25781         (expand_BUILTIN_EXPECT): New function.
25782         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25783         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25784         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25785         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25786         IFN_BUILTIN_EXPECT.
25787         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25788         Revert 3 argument __builtin_expect code.
25789         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25790         * gimple-fold.c (gimple_fold_call): Likewise.
25791         * tree.h (fold_builtin_expect): New prototype.
25792         * builtins.c (build_builtin_expect_predicate): Add predictor
25793         argument, if non-NULL, create 3 argument __builtin_expect.
25794         (fold_builtin_expect): No longer static.  Add ARG2 argument,
25795         pass it through to build_builtin_expect_predicate.
25796         (fold_builtin_2): Adjust caller.
25797         (fold_builtin_3): Handle BUILT_IN_EXPECT.
25798         * internal-fn.def (BUILTIN_EXPECT): New.
25799
25800 2014-03-18  Tobias Burnus  <burnus@net-b.de>
25801
25802         PR ipa/58721
25803         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25804         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25805         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25806
25807 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
25808
25809         PR ipa/58721
25810         * predict.c (combine_predictions_for_bb): Fix up formatting.
25811         (expr_expected_value_1, expr_expected_value): Add predictor argument,
25812         fill what it points to if non-NULL.
25813         (tree_predict_by_opcode): Adjust caller, use the predictor.
25814         * predict.def (PRED_COMPARE_AND_SWAP): Add.
25815
25816 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
25817
25818         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25819         proper constant for the store mode.
25820
25821 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
25822
25823         * symtab.c (change_decl_assembler_name): Fix transparent alias
25824         chain construction.
25825
25826 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
25827
25828         * config/aarch64/aarch64.c: Correct the comments about the
25829         aarch64 stack layout.
25830
25831 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
25832
25833         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25834         check for GF_OMP_FOR_KIND_FOR.
25835
25836 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
25837
25838         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25839         ymm and zmm register names.
25840
25841 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
25842
25843         PR target/60516
25844         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25845         note creation for the 2010-08-31 changes.
25846
25847 2014-03-17  Marek Polacek  <polacek@redhat.com>
25848
25849         PR middle-end/60534
25850         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25851         as -fno-tree-loop-vectorize.
25852         (expand_omp_simd): Likewise.
25853
25854 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
25855
25856         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25857         (eligible_for_call_delay): New prototype.
25858         * config/sparc/sparc.c (tls_call_delay): Rename into...
25859         (eligible_for_call_delay): ...this.  Return false if the instruction
25860         cannot be put in the delay slot of a branch.
25861         (eligible_for_restore_insn): Simplify.
25862         (eligible_for_return_delay): Return false if the instruction cannot be
25863         put in the delay slot of a branch and simplify.
25864         (eligible_for_sibcall_delay): Return false if the instruction cannot be
25865         put in the delay slot of a branch.
25866         * config/sparc/sparc.md (fix_ut699): New attribute.
25867         (tls_call_delay): Delete.
25868         (in_call_delay): Reimplement.
25869         (eligible_for_sibcall_delay): Rename into...
25870         (in_sibcall_delay): ...this.
25871         (eligible_for_return_delay): Rename into...
25872         (in_return_delay): ...this.
25873         (in_branch_delay): Reimplement.
25874         (in_uncond_branch_delay): Delete.
25875         (in_annul_branch_delay): Delete.
25876
25877 2014-03-14  Richard Henderson  <rth@redhat.com>
25878
25879         PR target/60525
25880         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25881         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25882         (*floathi<X87MODEF>2_i387_with_temp): Remove.
25883         (floathi splitters): Remove.
25884         (float<SWI48x>xf2): New pattern.
25885         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
25886         code that tried to handle DImode for 32-bit, but which was excluded
25887         by the pattern's condition.  Drop allocation of stack temporary.
25888         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25889         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25890         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25891         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25892         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25893         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25894         (*float<SWI48><MODEF>2_sse_interunit): Remove.
25895         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25896         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25897         (*float<SWI48x><X87MODEF>2_i387): Remove.
25898         (all float _with_temp splitters): Remove.
25899         (*float<SWI48x><MODEF>2_i387): New pattern.
25900         (*float<SWI48><MODEF>2_sse): New pattern.
25901         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25902         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25903
25904 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
25905             Marek Polacek  <polacek@redhat.com>
25906
25907         PR middle-end/60484
25908         * common.opt (dump_base_name_prefixed): New Variable.
25909         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25910         if x_dump_base_name_prefixed is already set, set it at the end.
25911
25912 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
25913
25914         PR rtl-optimization/60508
25915         * lra-constraints.c (get_reload_reg): Add new parameter
25916         in_subreg_p.
25917         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25918         Pass the new parameter values.
25919
25920 2014-03-14  Richard Biener  <rguenther@suse.de>
25921
25922         * common.opt: Revert unintented changes from r205065.
25923         * opts.c: Likewise.
25924
25925 2014-03-14  Richard Biener  <rguenther@suse.de>
25926
25927         PR middle-end/60518
25928         * cfghooks.c (split_block): Properly adjust all loops the
25929         block was a latch of.
25930
25931 2014-03-14  Martin Jambor  <mjambor@suse.cz>
25932
25933         PR lto/60461
25934         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25935         and simplify it.
25936
25937 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
25938
25939         PR target/59396
25940         * config/avr/avr.c (avr_set_current_function): Pass function name
25941         through default_strip_name_encoding before sanity checking instead
25942         of skipping the first char of the assembler name.
25943
25944 2014-03-13  Richard Henderson  <rth@redhat.com>
25945
25946         PR debug/60438
25947         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25948         (ix86_force_to_memory, ix86_free_from_memory): Remove.
25949         * config/i386/i386-protos.h: Likewise.
25950         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25951         in the expander instead of a splitter.
25952         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25953         any possibility of requiring a memory.
25954         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25955         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25956         (fp branch splitters): Update for ix86_split_fp_branch.
25957         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25958         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25959         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25960         (*fop_<MODEF>_2_i387): Remove f/r alternative.
25961         (*fop_<MODEF>_3_i387): Likewise.
25962         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25963         (splitters for the fop_* register patterns): Remove.
25964         (fscalexf4_i387): Rename from *fscalexf4_i387.
25965         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25966
25967 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
25968
25969         PR tree-optimization/59779
25970         * tree-dfa.c (get_ref_base_and_extent): Use double_int
25971         type for bitsize and maxsize instead of HOST_WIDE_INT.
25972
25973 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
25974
25975         PR rtl-optimization/57320
25976         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25977         the CFG after thread_prologue_and_epilogue_insns.
25978
25979 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
25980
25981         PR rtl-optimization/57189
25982         * lra-constraints.c (process_alt_operands): Disfavor spilling
25983         vector pseudos.
25984
25985 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
25986
25987         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25988
25989 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
25990
25991         PR tree-optimization/59025
25992         PR middle-end/60418
25993         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25994         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25995
25996 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
25997
25998         PR target/60486
25999         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26000         calls of avr_out_plus_1.
26001
26002 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
26003
26004         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26005         BB's single pred and update the father loop's latch info later.
26006
26007 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26008
26009         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26010         (VEC_M): Likewise.
26011         (VEC_N): Likewise.
26012         (VEC_R): Likewise.
26013         (VEC_base): Likewise.
26014         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26015         registers, we need to swap double words in little endian mode.
26016
26017         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26018         to be a container mode for 128-bit integer operations added in ISA
26019         2.07.  Unlike TImode and PTImode, the preferred register set is
26020         the Altivec/VMX registers for the 128-bit operations.
26021
26022         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26023         declarations.
26024         (rs6000_split_128bit_ok_p): Likewise.
26025
26026         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26027         macros for creating ISA 2.07 normal and overloaded builtin
26028         functions with 3 arguments.
26029         (BU_P8V_OVERLOAD_3): Likewise.
26030         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26031         for use as overloaded functions.
26032         (VPERM_1TI_UNS): Likewise.
26033         (VSEL_1TI): Likewise.
26034         (VSEL_1TI_UNS): Likewise.
26035         (ST_INTERNAL_1ti): Likewise.
26036         (LD_INTERNAL_1ti): Likewise.
26037         (XXSEL_1TI): Likewise.
26038         (XXSEL_1TI_UNS): Likewise.
26039         (VPERM_1TI): Likewise.
26040         (VPERM_1TI_UNS): Likewise.
26041         (XXPERMDI_1TI): Likewise.
26042         (SET_1TI): Likewise.
26043         (LXVD2X_V1TI): Likewise.
26044         (STXVD2X_V1TI): Likewise.
26045         (VEC_INIT_V1TI): Likewise.
26046         (VEC_SET_V1TI): Likewise.
26047         (VEC_EXT_V1TI): Likewise.
26048         (EQV_V1TI): Likewise.
26049         (NAND_V1TI): Likewise.
26050         (ORC_V1TI): Likewise.
26051         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26052         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
26053         overloaded builtin.
26054         (VADDUQM): Likewise.
26055         (VSUBCUQ): Likewise.
26056         (VADDEUQM): Likewise.
26057         (VADDECUQ): Likewise.
26058         (VSUBEUQM): Likewise.
26059         (VSUBECUQ): Likewise.
26060
26061         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26062         __int128_t and __uint128_t types.
26063         (__uint128_type): Likewise.
26064         (altivec_categorize_keyword): Add support for vector __int128_t,
26065         vector __uint128_t, vector __int128, and vector unsigned __int128
26066         as a container type for TImode operations that need to be done in
26067         VSX/Altivec registers.
26068         (rs6000_macro_to_expand): Likewise.
26069         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26070         to support 128-bit integer instructions vaddcuq, vadduqm,
26071         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26072         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26073
26074         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26075         for V1TImode, and set up preferences to use VSX/Altivec registers.
26076         Setup VSX reload handlers.
26077         (rs6000_debug_reg_global): Likewise.
26078         (rs6000_init_hard_regno_mode_ok): Likewise.
26079         (rs6000_preferred_simd_mode): Likewise.
26080         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26081         (easy_altivec_constant): Likewise.
26082         (output_vec_const_move): Likewise.
26083         (rs6000_expand_vector_set): Convert V1TImode set and extract to
26084         simple move.
26085         (rs6000_expand_vector_extract): Likewise.
26086         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26087         addressing.
26088         (rs6000_const_vec): Add support for V1TImode.
26089         (rs6000_emit_le_vsx_load): Swap double words when loading or
26090         storing TImode/V1TImode.
26091         (rs6000_emit_le_vsx_store): Likewise.
26092         (rs6000_emit_le_vsx_move): Likewise.
26093         (rs6000_emit_move): Add support for V1TImode.
26094         (altivec_expand_ld_builtin): Likewise.
26095         (altivec_expand_st_builtin): Likewise.
26096         (altivec_expand_vec_init_builtin): Likewise.
26097         (altivec_expand_builtin): Likewise.
26098         (rs6000_init_builtins): Add support for V1TImode type.  Add
26099         support for ISA 2.07 128-bit integer builtins.  Define type names
26100         for the VSX/Altivec vector types.
26101         (altivec_init_builtins): Add support for overloaded vector
26102         functions with V1TImode type.
26103         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26104         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26105         external function.
26106         (rs6000_split_128bit_ok_p): Likewise.
26107         (rs6000_handle_altivec_attribute): Create V1TImode from vector
26108         __int128_t and vector __uint128_t.
26109
26110         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26111         and mode attributes.
26112         (VSX_M): Likewise.
26113         (VSX_M2): Likewise.
26114         (VSm): Likewise.
26115         (VSs): Likewise.
26116         (VSr): Likewise.
26117         (VSv): Likewise.
26118         (VS_scalar): Likewise.
26119         (VS_double): Likewise.
26120         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26121
26122         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26123         we support the ISA 2.07 128-bit integer arithmetic instructions.
26124         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26125         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26126         and TImode types for use with the builtin functions.
26127         (V1TI_type_node): Likewise.
26128         (unsigned_V1TI_type_node): Likewise.
26129         (intTI_type_internal_node): Likewise.
26130         (uintTI_type_internal_node): Likewise.
26131
26132         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26133         128-bit builtin functions.
26134         (UNSPEC_VADDEUQM): Likewise.
26135         (UNSPEC_VADDECUQ): Likewise.
26136         (UNSPEC_VSUBCUQ): Likewise.
26137         (UNSPEC_VSUBEUQM): Likewise.
26138         (UNSPEC_VSUBECUQ): Likewise.
26139         (VM): Add V1TImode to vector mode iterators.
26140         (VM2): Likewise.
26141         (VI_unit): Likewise.
26142         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26143         (altivec_vaddcuq): Likewise.
26144         (altivec_vsubuqm): Likewise.
26145         (altivec_vsubcuq): Likewise.
26146         (altivec_vaddeuqm): Likewise.
26147         (altivec_vaddecuq): Likewise.
26148         (altivec_vsubeuqm): Likewise.
26149         (altivec_vsubecuq): Likewise.
26150
26151         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26152         mode iterators.
26153         (BOOL_128): Likewise.
26154         (BOOL_REGS_OUTPUT): Likewise.
26155         (BOOL_REGS_OP1): Likewise.
26156         (BOOL_REGS_OP2): Likewise.
26157         (BOOL_REGS_UNARY): Likewise.
26158         (BOOL_REGS_AND_CR0): Likewise.
26159
26160         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26161         128-bit integer builtin support.
26162         (vec_vadduqm): Likewise.
26163         (vec_vaddecuq): Likewise.
26164         (vec_vaddeuqm): Likewise.
26165         (vec_vsubecuq): Likewise.
26166         (vec_vsubeuqm): Likewise.
26167         (vec_vsubcuq): Likewise.
26168         (vec_vsubuqm): Likewise.
26169
26170         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26171         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26172         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26173         128-bit integer add/subtract to ISA 2.07.
26174
26175 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26176
26177         * config/arc/arc.c (arc_predicate_delay_insns):
26178         Fix third argument passed to conditionalize_nonjump.
26179
26180 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
26181
26182         * config/aarch64/aarch64-builtins.c
26183         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26184         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26185         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26186         instead of __builtin_lfloor.
26187         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26188
26189 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26190
26191         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26192         (tree_ssa_ifcombine_bb_1): New function.
26193         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
26194         is an empty forwarder block to then_bb or vice versa and then_bb
26195         and else_bb are effectively swapped.
26196
26197 2014-03-12  Christian Bruel  <christian.bruel@st.com>
26198
26199         PR target/60264
26200         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26201         REG_CFA_DEF_CFA note.
26202         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26203         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26204
26205 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26206
26207         PR tree-optimization/60454
26208         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26209
26210 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26211
26212         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26213         Do not define target_cpu_default2 to generic.
26214         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26215         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26216         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26217
26218 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26219             Marc Glisse  <marc.glisse@inria.fr>
26220
26221         PR tree-optimization/60502
26222         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26223         instead of build_low_bits_mask.
26224
26225 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
26226
26227         PR middle-end/60482
26228         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26229         if there are multiple uses, but op doesn't live on E edge.
26230         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26231         clobber stmts before __builtin_unreachable.
26232
26233 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
26234
26235         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26236         hard_frame_pointer_rtx.
26237         * cse.c (cse_insn): Remove volatile check.
26238         * cselib.c (cselib_process_insn): Likewise.
26239         * dse.c (scan_insn): Likewise.
26240
26241 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26242
26243         * config/arc/arc.c (conditionalize_nonjump): New function,
26244         broken out of ...
26245         (arc_ifcvt): ... this.
26246         (arc_predicate_delay_insns): Use it.
26247
26248 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26249
26250         * config/arc/predicates.md (extend_operand): During/after reload,
26251         allow const_int_operand.
26252         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26253         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
26254         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26255         to "i".
26256         (umulsi3_highpart_i): Likewise.
26257
26258 2014-03-11  Richard Biener  <rguenther@suse.de>
26259
26260         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26261         Add asserts to guard possible wrong-code bugs.
26262
26263 2014-03-11  Richard Biener  <rguenther@suse.de>
26264
26265         PR tree-optimization/60429
26266         PR tree-optimization/60485
26267         * tree-ssa-structalias.c (set_union_with_increment): Properly
26268         take into account all fields that overlap the shifted vars.
26269         (do_sd_constraint): Likewise.
26270         (do_ds_constraint): Likewise.
26271         (get_constraint_for_ptr_offset): Likewise.
26272
26273 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
26274
26275         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26276         (nios2_compute_frame_layout):
26277         Add calculation of cfun->machine->fp_save_offset.
26278         (nios2_expand_prologue): Correct setting of frame pointer register
26279         in prologue.
26280         (nios2_expand_epilogue): Update recovery of stack pointer from
26281         frame pointer accordingly.
26282         (nios2_initial_elimination_offset): Update calculation of offset
26283         for eliminating to HARD_FRAME_POINTER_REGNUM.
26284
26285 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
26286
26287         PR ipa/60457
26288         * ipa.c (symtab_remove_unreachable_nodes): Don't call
26289         cgraph_get_create_node on VAR_DECLs.
26290
26291 2014-03-10  Richard Biener  <rguenther@suse.de>
26292
26293         PR middle-end/60474
26294         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26295
26296 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
26297
26298         * config/vms/vms.opt (vms_float_format): New variable.
26299
26300 2014-03-08  Tobias Burnus  <burnus@net-b.de>
26301
26302         * doc/invoke.texi (-fcilkplus): Update implementation status.
26303
26304 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
26305             Richard Biener  <rguenther@suse.de>
26306
26307         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26308         consistently accross all TUs.
26309         (run_gcc): Enable -fshort-double automatically at link at link-time
26310         and disallow override.
26311
26312 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
26313
26314         PR target/58271
26315         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26316         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26317         if they can't be used.
26318
26319 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26320
26321         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26322         for Solaris 11/x86 ld.
26323         * configure: Regenerate.
26324
26325 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26326
26327         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26328         (LIB_TLS_SPEC): Save as ld_tls_libs.
26329         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26330         (HAVE_AS_IX86_TLSLDM): New test.
26331         * configure, config.in: Regenerate.
26332         * config/i386/i386.c (legitimize_tls_address): Fall back to
26333         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26334         cannot support TLS_MODEL_LOCAL_DYNAMIC.
26335         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26336         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26337
26338 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
26339
26340         * common.opt (fira-loop-pressure): Mark as optimization.
26341
26342 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
26343
26344         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26345         an OpenMP mappable type.
26346
26347 2014-03-06  Matthias Klose  <doko@ubuntu.com>
26348
26349         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26350         MULTILIB_OSDIRNAMES is not defined.
26351
26352 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
26353             Meador Inge  <meadori@codesourcery.com>
26354
26355         PR target/58595
26356         * config/arm/arm.c (arm_tls_symbol_p): Remove.
26357         (arm_legitimize_address): Call legitimize_tls_address for any
26358         arm_tls_referenced_p expression, handle constant addend.  Call it
26359         before testing for !TARGET_ARM.
26360         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26361
26362 2014-03-06  Richard Biener  <rguenther@suse.de>
26363
26364         PR middle-end/60445
26365         PR lto/60424
26366         PR lto/60427
26367         Revert
26368         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
26369
26370         * tree-streamer.c (record_common_node): Assert we don't record
26371         nodes with type double.
26372         (preload_common_node): Skip type double, complex double and double
26373         pointer since it is now frontend dependent due to fshort-double option.
26374
26375 2014-03-06  Richard Biener  <rguenther@suse.de>
26376
26377         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26378         or -fno-lto is specified and the linker has full plugin support.
26379         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26380         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26381         * lto-wrapper.c (merge_and_complain): Merge compile-time
26382         optimization levels.
26383         (run_gcc): And pass it through to the link options.
26384
26385 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
26386
26387         PR debug/60381
26388         Revert:
26389         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26390         PR debug/59992
26391         * cselib.c (remove_useless_values): Skip to avoid quadratic
26392         behavior if the condition moved from...
26393         (cselib_process_insn): ... here holds.
26394
26395 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
26396
26397         PR plugins/59335
26398         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26399         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26400
26401         PR plugins/59335
26402         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26403         (TM_H): Add x86-tune.def.
26404
26405 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26406
26407         * config/aarch64/aarch64.c (generic_tunings):
26408         Use cortexa57_extra_costs.
26409
26410 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
26411
26412         PR lto/60404
26413         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26414         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26415         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26416         cost for in_lto_p.
26417
26418 2014-03-04  Heiher  <r@hev.cc>
26419
26420         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26421         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26422
26423 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
26424
26425         * config/i386/predicates.md (const2356_operand): Change to ...
26426         (const2367_operand): ... this.
26427         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26428         const2367_operand.
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         * config/i386/i386.c (ix86_expand_builtin): Update
26435         incorrect hint operand error message.
26436
26437 2014-03-04  Richard Biener  <rguenther@suse.de>
26438
26439         * lto-section-in.c (lto_get_section_data): Fix const cast.
26440
26441 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
26442
26443         * tree-streamer.c (record_common_node): Assert we don't record
26444         nodes with type double.
26445         (preload_common_node): Skip type double, complex double and double
26446         pointer since it is now frontend dependent due to fshort-double option.
26447
26448 2014-03-04  Richard Biener  <rguenther@suse.de>
26449
26450         PR lto/60405
26451         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26452         (lto_input_toplevel_asms): Likewise.
26453         * lto-section-in.c (lto_get_section_data): Instead do it here
26454         for every section.
26455
26456 2014-03-04  Richard Biener  <rguenther@suse.de>
26457
26458         PR tree-optimization/60382
26459         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26460         dead PHIs a reduction.
26461
26462 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
26463
26464         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26465         hint value.
26466         (_mm_prefetch): Move out of GCC target("sse") pragma.
26467         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26468         GCC target("prfchw") pragma.
26469         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26470         for locality <= 2.
26471         * config/i386/i386.c (ix86_option_override_internal): Enable
26472         -mprfchw with -mprefetchwt1.
26473
26474 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
26475
26476         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26477         Mark as varying.
26478
26479 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
26480
26481         * opts.h (CL_PCH_IGNORE): Define.
26482         * targhooks.c (option_affects_pch_p):
26483         Return false for options that have CL_PCH_IGNORE set.
26484         * opt-functions.awk: Process PchIgnore.
26485         * doc/options.texi: Document PchIgnore.
26486
26487         * config/arc/arc.opt (misize): Add PchIgnore property.
26488
26489 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26490
26491         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26492         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26493         constraint on constants to permit them being loaded into
26494         GENERAL_REGS or BASE_REGS.
26495
26496 2014-03-03  Nick Clifton  <nickc@redhat.com>
26497
26498         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26499         anti-cacnonical alternatives.
26500         (negandhi3_real): New pattern.
26501         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26502
26503 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26504
26505         * config/avr/avr-mcus.def: Remove atxmega16x1.
26506         * config/avr/avr-tables.opt: Regenerate.
26507         * config/avr/t-multilib: Regenerate.
26508         * doc/avr-mmcu.texi: Regenerate.
26509
26510 2014-03-03  Tobias Grosser  <tobias@grosser.es>
26511             Mircea Namolaru  <mircea.namolaru@inria.fr>
26512
26513         PR tree-optimization/58028
26514         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26515         scalar dimensions.
26516
26517 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26518
26519         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26520         not handled by recognizers.
26521
26522 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
26523
26524         PR middle-end/60175
26525         * function.c (expand_function_end): Don't emit
26526         clobber_return_register sequence if clobber_after is a BARRIER.
26527         * cfgexpand.c (construct_exit_block): Append instructions before
26528         return_label to prev_bb.
26529
26530 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26531
26532         * config/rs6000/constraints.md: Document reserved use of "wc".
26533
26534 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
26535
26536         PR ipa/60150
26537         * ipa.c (function_and_variable_visibility): When dissolving comdat
26538         group, also set all symbols to local.
26539
26540 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
26541
26542         PR ipa/60306
26543
26544         Revert:
26545         2013-12-14  Jan Hubicka  <jh@suse.cz>
26546         PR middle-end/58477
26547         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26548
26549 2014-03-02  Jon Beniston  <jon@beniston.com>
26550
26551         PR bootstrap/48230
26552         PR bootstrap/50927
26553         PR bootstrap/52466
26554         PR target/46898
26555         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26556           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26557         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26558         (simple_return, *simple_return): New patterns
26559         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26560         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26561
26562 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
26563
26564         * dwarf2out.c (gen_subprogram_die): Tidy.
26565
26566 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
26567
26568         PR target/60071
26569         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26570         (*mov_t_msb_neg_negc): ... this new insn.
26571
26572 2014-02-28  Jason Merrill  <jason@redhat.com>
26573
26574         PR c++/58678
26575         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26576         function.
26577
26578 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
26579
26580         PR c++/60314
26581         * dwarf2out.c (decltype_auto_die): New static.
26582         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26583         (gen_type_die_with_usage): Handle 'decltype(auto)'.
26584         (is_cxx_auto): Likewise.
26585
26586 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
26587
26588         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26589         we are not using general regs only.
26590
26591 2014-02-28  Richard Biener  <rguenther@suse.de>
26592
26593         PR target/60280
26594         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26595         previous fix and only allow to remove trivial pre-headers
26596         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26597         (remove_forwarder_block): Properly update the latch of a loop.
26598
26599 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26600
26601         PR debug/59992
26602         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26603         (cselib_preserved_hash_table): New.
26604         (preserve_constants_and_equivs): Move preserved vals to it.
26605         (cselib_find_slot): Look it up first.
26606         (cselib_init): Initialize it.
26607         (cselib_finish): Release it.
26608         (dump_cselib_table): Dump it.
26609
26610 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26611
26612         PR debug/59992
26613         * cselib.c (remove_useless_values): Skip to avoid quadratic
26614         behavior if the condition moved from...
26615         (cselib_process_insn): ... here holds.
26616
26617 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
26618
26619         PR debug/57232
26620         * var-tracking.c (vt_initialize): Apply the same condition to
26621         preserve the CFA base value.
26622
26623 2014-02-28  Joey Ye  <joey.ye@arm.com>
26624
26625         PR target/PR60169
26626         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26627         if reload in progress or completed.
26628
26629 2014-02-28  Tobias Burnus  <burnus@net-b.de>
26630
26631         PR middle-end/60147
26632         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26633         NAMELIST_DECL.
26634
26635 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26636
26637         * doc/tm.texi.in (Condition Code Status): Update documention for
26638         relative locations of cc0-setter and cc0-user.
26639
26640 2014-02-27  Jeff Law  <law@redhat.com>
26641
26642         PR rtl-optimization/52714
26643         * combine.c (try_combine): When splitting an unrecognized PARALLEL
26644         into two independent simple sets, if I3 is a jump, ensure the
26645         pattern we place into I3 is a (set (pc) ...).
26646
26647 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
26648             Jeff Law  <law@redhat.com>
26649
26650         PR rtl-optimization/49847
26651         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26652         are in different blocks.
26653         * doc/tm.texi (Condition Code Status): Update documention for
26654         relative locations of cc0-setter and cc0-user.
26655
26656 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
26657
26658         PR target/59222
26659         * lra.c (lra_emit_add): Check SUBREG too.
26660
26661 2014-02-27  Andreas Schwab  <schwab@suse.de>
26662
26663         * config/m68k/m68k.c (m68k_option_override): Disable
26664         -flive-range-shrinkage for classic m68k.
26665         (m68k_override_options_after_change): Likewise.
26666
26667 2014-02-27  Marek Polacek  <polacek@redhat.com>
26668
26669         PR middle-end/59223
26670         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26671         -Wmaybe-uninitialized.
26672
26673 2014-02-27  Alan Modra  <amodra@gmail.com>
26674
26675         PR target/57936
26676         * reload1.c (emit_input_reload_insns): When reload_override_in,
26677         set old to rl->in_reg when rl->in_reg is a subreg.
26678
26679 2014-02-26  Richard Biener  <rguenther@suse.de>
26680
26681         PR bootstrap/60343
26682         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26683
26684 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
26685
26686         * common/config/i386/predicates.md (const1256_operand): Remove.
26687         (const2356_operand): New.
26688         (const_1_to_2_operand): Remove.
26689         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26690         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26691         (*avx512pf_gatherpf<mode>sf): Ditto.
26692         (avx512pf_gatherpf<mode>df): Ditto.
26693         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26694         (*avx512pf_gatherpf<mode>df): Ditto.
26695         (avx512pf_scatterpf<mode>sf): Ditto.
26696         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26697         (*avx512pf_scatterpf<mode>sf): Ditto.
26698         (avx512pf_scatterpf<mode>df): Ditto.
26699         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26700         (*avx512pf_scatterpf<mode>df): Ditto.
26701         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26702
26703 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
26704
26705         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26706         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26707         (_mm512_mask_testn_epi64_mask): Move to ...
26708         * config/i386/avx512cdintrin.h: Here.
26709         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26710         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26711         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26712         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26713         TARGET_AVX512F from TARGET_AVX512CD.
26714
26715 2014-02-26  Richard Biener  <rguenther@suse.de>
26716
26717         PR ipa/60327
26718         * ipa.c (walk_polymorphic_call_targets): Properly guard
26719         call to inline_update_overall_summary.
26720
26721 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
26722
26723         PR target/60280
26724         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26725         and latches only if requested.  Fix latch if it is removed.
26726         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26727         LOOPS_HAVE_PREHEADERS.
26728
26729 2014-02-25  Andrew Pinski  <apinski@cavium.com>
26730
26731         * builtins.c (expand_builtin_thread_pointer): Create a new target
26732         when the target is NULL.
26733
26734 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
26735
26736         PR rtl-optimization/60317
26737         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26738         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26739         * lra-assigns.c: Include params.h.
26740         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26741         other reload pseudos considerations.
26742
26743 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26744
26745         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26746         to use canonical form for nor<mode>3.
26747
26748 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26749
26750         PR target/55426
26751         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26752         conversions.
26753
26754 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
26755
26756         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26757         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26758         (ix86_handle_option): Handle OPT_mprefetchwt1.
26759         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26760         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26761         PREFETCHWT1 CPUID.
26762         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26763         OPTION_MASK_ISA_PREFETCHWT1.
26764         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26765         (PTA_PREFETCHWT1): New.
26766         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26767         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26768         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26769         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26770         (*prefetch_avx512pf_<mode>_: Change into ...
26771         (*prefetch_prefetchwt1_<mode>: This.
26772         * config/i386/i386.opt (mprefetchwt1): New.
26773         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26774         (_mm_prefetch): Handle intent to write.
26775         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26776
26777 2014-02-25  Richard Biener  <rguenther@suse.de>
26778
26779         PR middle-end/60291
26780         * emit-rtl.c (mem_attrs_htab): Remove.
26781         (mem_attrs_htab_hash): Likewise.
26782         (mem_attrs_htab_eq): Likewise.
26783         (set_mem_attrs): Always allocate new mem-attrs when something changed.
26784         (init_emit_once): Do not allocate mem_attrs_htab.
26785
26786 2014-02-25  Richard Biener  <rguenther@suse.de>
26787
26788         PR lto/60319
26789         * lto-opts.c (lto_write_options): Output non-explicit conservative
26790         -fwrapv, -fno-trapv and -fno-strict-overflow.
26791         * lto-wrapper.c (merge_and_complain): Handle merging those options.
26792         (run_gcc): And pass them through.
26793
26794 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
26795
26796         * sel-sched.c (calculate_new_fences): New parameter ptime.
26797         Calculate it as a maximum over all fence cycles.
26798         (sel_sched_region_2): Adjust the call to calculate_new_fences.
26799         Print the final schedule timing when sched_verbose.
26800
26801 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
26802
26803         PR rtl-optimization/60292
26804         * sel-sched.c (fill_vec_av_set): Do not reset target availability
26805         bit fot the fence instruction.
26806
26807 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
26808
26809         * calls.h: Fix typo in comment.
26810
26811 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
26812
26813         * config/pa/pa.c (pa_output_move_double): Don't valididate when
26814         adjusting offsetable addresses.
26815
26816 2014-02-24  Guozhi Wei  <carrot@google.com>
26817
26818         * sparseset.h (sparseset_pop): Fix the wrong index.
26819
26820 2014-02-24  Walter Lee  <walt@tilera.com>
26821
26822         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26823         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26824         triplet.
26825         * common/config/tilegx/tilegx-common.c
26826         (TARGET_DEFAULT_TARGET_FLAGS): Define.
26827         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26828         (LINK_SPEC): Ditto.
26829         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26830         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26831         (tilegx_gimplify_va_arg_expr): Handle big endian.
26832         (tilegx_expand_unaligned_load): Ditto.
26833         (tilegx_expand_unaligned_store): Ditto.
26834         (TARGET_RETURN_IN_MSB): New.
26835         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26836         (TARGET_ENDIAN_DEFAULT): New.
26837         (TARGET_BIG_ENDIAN): Handle big endian.
26838         (BYTES_BIG_ENDIAN): Ditto.
26839         (WORDS_BIG_ENDIAN): Ditto.
26840         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26841         (ENDIAN_SPEC): New.
26842         (EXTRA_SPECS): New.
26843         * config/tilegx/tilegx.md (extv): Handle big endian.
26844         (extzv): Ditto.
26845         (insn_st<n>): Ditto.
26846         (insn_st<n>_add<bitsuffix>): Ditto.
26847         (insn_stnt<n>): Ditto.
26848         (insn_stnt<n>_add<bitsuffix>):Ditto.
26849         (vec_interleave_highv8qi): Handle big endian.
26850         (vec_interleave_highv8qi_be): New.
26851         (vec_interleave_highv8qi_le): New.
26852         (insn_v1int_h): Handle big endian.
26853         (vec_interleave_lowv8qi): Handle big endian.
26854         (vec_interleave_lowv8qi_be): New.
26855         (vec_interleave_lowv8qi_le): New.
26856         (insn_v1int_l): Handle big endian.
26857         (vec_interleave_highv4hi): Handle big endian.
26858         (vec_interleave_highv4hi_be): New.
26859         (vec_interleave_highv4hi_le): New.
26860         (insn_v2int_h): Handle big endian.
26861         (vec_interleave_lowv4hi): Handle big endian.
26862         (vec_interleave_lowv4hi_be): New.
26863         (vec_interleave_lowv4hi_le): New.
26864         (insn_v2int_l): Handle big endian.
26865         (vec_interleave_highv2si): Handle big endian.
26866         (vec_interleave_highv2si_be): New.
26867         (vec_interleave_highv2si_le): New.
26868         (insn_v4int_h): Handle big endian.
26869         (vec_interleave_lowv2si): Handle big endian.
26870         (vec_interleave_lowv2si_be): New.
26871         (vec_interleave_lowv2si_le): New.
26872         (insn_v4int_l): Handle big endian.
26873         * config/tilegx/tilegx.opt (mbig-endian): New option.
26874         (mlittle-endian): New option.
26875         * doc/install.texi: Document tilegxbe-linux.
26876         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26877
26878 2014-02-24  Martin Jambor  <mjambor@suse.cz>
26879
26880         PR ipa/60266
26881         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26882         there are no parameter descriptors.
26883
26884 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
26885
26886         PR rtl-optimization/60268
26887         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26888         initialization to ...
26889         (sched_rgn_init): ... here.
26890         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26891
26892 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
26893
26894         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26895         names.
26896
26897 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
26898
26899         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26900         definition.
26901
26902 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
26903
26904         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26905         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26906
26907 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
26908
26909         * config/microblaze/predicates.md: Add cmp_op predicate.
26910         * config/microblaze/microblaze.md: Add branch_compare instruction
26911         which uses cmp_op predicate and emits cmp insn before branch.
26912         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26913         to microblaze_expand_conditional_branch and consolidate logic.
26914         (microblaze_expand_conditional_branch): emit branch_compare
26915         insn instead of handling cmp op separate from branch insn.
26916
26917 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26918
26919         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26920         to permit subregs.
26921
26922 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26923
26924         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26925         define_insn with define_expand and new define_insn
26926         *altivec_lve<VI_char>x_internal.
26927         (altivec_stve<VI_char>x): Replace define_insn with define_expand
26928         and new define_insn *altivec_stve<VI_char>x_internal.
26929         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26930         prototype.
26931         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26932         lve*x built-ins.
26933         (altivec_expand_stvex_be): New function.
26934
26935 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
26936
26937         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26938         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26939         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26940         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26941
26942 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
26943
26944         PR target/60298
26945         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26946         instead of emit_move_insn.
26947
26948 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26949
26950         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26951         vspltw with vsldoi.
26952         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26953         gen_altivec_vsumsws.
26954
26955 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26956
26957         * config/rs6000/altivec.md (altivec_lvxl): Rename as
26958         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26959         (altivec_lvxl_<mode>): New define_expand incorporating
26960         -maltivec=be semantics where needed.
26961         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26962         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26963         semantics where needed.
26964         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26965         (altivec_stvx_<mode>): New define_expand incorporating
26966         -maltivec=be semantics where needed.
26967         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26968         VM2 iterator instead of V4SI.
26969         (altivec_stvxl_<mode>): New define_expand incorporating
26970         -maltivec=be semantics where needed.
26971         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26972         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26973         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26974         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26975         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26976         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26977         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26978         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26979         ALTIVEC_BUILTIN_STVXL.
26980         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26981         (altivec_expand_stvx_be): Likewise.
26982         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26983         (altivec_expand_lvx_be): Likewise.
26984         (altivec_expand_stvx_be): Likewise.
26985         (altivec_expand_builtin): Add cases for
26986         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26987         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26988         (altivec_init_builtins): Add definitions for
26989         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26990         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26991
26992 2014-02-21  Catherine Moore  <clm@codesourcery.com>
26993
26994         * doc/invoke.texi (mvirt, mno-virt): Document.
26995         * config/mips/mips.opt (mvirt): New option.
26996         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26997
26998 2014-02-21  Richard Biener  <rguenther@suse.de>
26999
27000         PR tree-optimization/60276
27001         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27002         (STMT_VINFO_MIN_NEG_DIST): New macro.
27003         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27004         STMT_VINFO_MIN_NEG_DIST.
27005         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27006         made for negative dependence distances still hold.
27007
27008 2014-02-21  Richard Biener  <rguenther@suse.de>
27009
27010         PR middle-end/60291
27011         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27012         DECL_INITIAL for globals not in the current function context.
27013
27014 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27015
27016         PR tree-optimization/56490
27017         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27018         * tree-ssa-uninit.c: Include params.h.
27019         (compute_control_dep_chain): Add num_calls argument, return false
27020         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27021         num_calls to recursive call.
27022         (find_predicates): Change dep_chain into normal array,
27023         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27024         variable and adjust compute_control_dep_chain caller.
27025         (find_def_preds): Likewise.
27026
27027 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
27028
27029         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27030         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27031
27032 2014-02-21  Nick Clifton  <nickc@redhat.com>
27033
27034         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27035         (pushhi1): Likewise.
27036         (popqi1): Add mode to pre_dec.
27037         (pophi1): Likewise.
27038
27039 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
27040
27041         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27042         mode for mask of V8SFmode permutation.
27043
27044 2014-02-20  Richard Henderson  <rth@redhat.com>
27045
27046         PR c++/60272
27047         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27048         a new pseudo for OLDVAL.
27049
27050 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
27051
27052         PR target/57896
27053         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27054         gen_reg_rtx if d->testing_p.
27055         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27056         if d->testing_p and we will certainly return true.
27057         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
27058         if d->testing_p.
27059
27060 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
27061
27062         * emit-rtl.c (gen_reg_rtx): Assert that
27063         crtl->emit.regno_pointer_align_length is non-zero.
27064
27065 2014-02-20  Richard Henderson  <rth@redhat.com>
27066
27067         PR c++/60272
27068         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27069         on failure the store back into EXPECT.
27070
27071 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
27072             Sandra Loosemore  <sandra@codesourcery.com>
27073
27074         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27075         * config/nios2/nios2.c (nios2_function_profiler): Add
27076         -fPIC (flag_pic == 2) support.
27077         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27078         (nios2_large_offset_p): New function.
27079         (nios2_unspec_reloc_p): Move up position, update to use
27080         nios2_large_offset_p.
27081         (nios2_unspec_address): Remove function.
27082         (nios2_unspec_offset): New function.
27083         (nios2_large_got_address): New function.
27084         (nios2_got_address): Add large offset support.
27085         (nios2_legitimize_tls_address): Update usage of removed and new
27086         functions.
27087         (nios2_symbol_binds_local_p): New function.
27088         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27089         (nios2_legitimize_address): Update to use nios2_large_offset_p.
27090         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27091         (nios2_print_operand): Merge H/L processing, add hiadj/lo
27092         processing for (const (unspec ...)).
27093         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27094
27095 2014-02-20  Richard Biener  <rguenther@suse.de>
27096
27097         * tree-cfg.c (replace_uses_by): Mark altered BBs before
27098         doing the substitution.
27099         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27100
27101 2014-02-20  Martin Jambor  <mjambor@suse.cz>
27102
27103         PR ipa/55260
27104         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27105         info when checking whether lattices are bottom.
27106
27107 2014-02-20  Richard Biener  <rguenther@suse.de>
27108
27109         PR middle-end/60221
27110         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27111         regions at -O0.
27112
27113 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
27114
27115         PR ipa/58555
27116         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27117         parameter specifying the scaling.
27118         (inline_call): Update.
27119         (want_inline_recursively): Guard division by zero.
27120         (recursive_inlining): Update.
27121         * ipa-inline.h (clone_inlined_nodes): Update.
27122
27123 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27124
27125         PR target/60204
27126         * config/i386/i386.c (classify_argument): Pass structures of size
27127         64 bytes or less in register.
27128
27129 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
27130             Kirill Yukhin  <kirill.yukhin@intel.com>
27131
27132         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27133         (_mm_rcp28_round_ss): Ditto.
27134         (_mm_rsqrt28_round_sd): Ditto.
27135         (_mm_rsqrt28_round_ss): Ditto.
27136         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27137         (_mm_rcp14_round_ss): Ditto.
27138         (_mm_rsqrt14_round_sd): Ditto.
27139         (_mm_rsqrt14_round_ss): Ditto.
27140         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27141         the first input operand, get rid of match_dup.
27142         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27143         attribute to sse.
27144         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27145         Ditto.
27146         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27147         operand as the first input operand, set type attribute.
27148         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27149         Set type attribute.
27150         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27151         operand as the first input operand, set type attribute.
27152
27153 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27154
27155         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27156         bit of zero.
27157
27158 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
27159
27160         PR target/60207
27161         * config/i386/i386.c (construct_container): Remove TFmode check
27162         for X86_64_INTEGER_CLASS.
27163
27164 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
27165
27166         PR target/59794
27167         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27168         only when -Wpsabi is enabled.
27169
27170 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
27171
27172          PR target/59799
27173         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27174         passing arrays in registers are the same as for structs, so remove the
27175         special case for them.
27176
27177 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
27178
27179         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27180         destination type, extract only the valid bits if the source type is not
27181         integral and has a different mode.
27182
27183 2014-02-19  Richard Biener  <rguenther@suse.de>
27184
27185         PR ipa/60243
27186         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27187         for all calls.
27188
27189 2014-02-19  Richard Biener  <rguenther@suse.de>
27190
27191         PR ipa/60243
27192         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27193         (ipa_modify_call_arguments): Emit an argument load explicitely and
27194         preserve virtual SSA form there and for the replacement call.
27195         Do not update SSA form nor free dominance info.
27196
27197 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27198
27199         * ipa.c (function_and_variable_visibility): Also clear WEAK
27200         flag when disolving COMDAT_GROUP.
27201
27202 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27203
27204         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27205         * ipa-prop.c (ipa_set_jf_known_type): Return early when
27206         not devirtualizing.
27207         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27208         do more sanity checks.
27209         (detect_type_change): Return true when giving up early.
27210         (compute_complex_assign_jump_func): Fix type parameter of
27211         ipa_set_ancestor_jf.
27212         (compute_complex_ancestor_jump_func): Likewise.
27213         (update_jump_functions_after_inlining): Fix updating of
27214         ancestor function.
27215         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27216
27217 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
27218
27219         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27220         inline clones when edge disappears.
27221
27222 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
27223
27224         PR target/60203
27225         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27226         Split 64-bit moves into 2 patterns.  Do not allow the use of
27227         direct move for TDmode in little endian, since the decimal value
27228         has little endian bytes within a word, but the 64-bit pieces are
27229         ordered in a big endian fashion, and normal subreg's of TDmode are
27230         not allowed.
27231         (mov<mode>_64bit_dm): Likewise.
27232         (movtd_64bit_nodm): Likewise.
27233
27234 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27235
27236         PR tree-optimization/60174
27237         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27238         statement of an SSA_NAME that occurs in an abnormal PHI node.
27239
27240 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27241
27242         PR sanitizer/60142
27243         * final.c (SEEN_BB): Remove.
27244         (SEEN_NOTE, SEEN_EMITTED): Renumber.
27245         (final_scan_insn): Don't force_source_line on second
27246         NOTE_INSN_BASIC_BLOCK.
27247
27248 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
27249
27250         PR target/60205
27251         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27252         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27253         (type_natural_mode): Warn ABI change when %zmm register is not
27254         available for AVX512F vector value passing.
27255
27256 2014-02-18  Kai Tietz  <ktietz@redhat.com>
27257
27258         PR target/60193
27259         * config/i386/i386.c (ix86_expand_prologue): Use value in
27260         rax register as displacement when restoring %r10 or %rax.
27261         Fix wrong offset when restoring both registers.
27262
27263 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
27264
27265         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27266         assertion with conditional return.
27267
27268 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
27269             Uros Bizjak  <ubizjak@gmail.com>
27270
27271         PR driver/60233
27272         * config/i386/driver-i386.c (host_detect_local_cpu): If
27273         YMM state is not saved by the OS, also clear has_f16c.  Move
27274         CPUID 0x80000001 handling before YMM state saving checking.
27275
27276 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
27277
27278         PR rtl-optimization/58960
27279         * haifa-sched.c (alloc_global_sched_pressure_data): New,
27280         factored out from ...
27281         (sched_init): ... here.
27282         (free_global_sched_pressure_data): New, factored out from ...
27283         (sched_finish): ... here.
27284         * sched-int.h (free_global_sched_pressure_data): Declare.
27285         * sched-rgn.c (nr_regions_initial): New static global.
27286         (haifa_find_rgns): Initialize it.
27287         (schedule_region): Disable sched-pressure for the newly
27288         generated regions.
27289
27290 2014-02-17  Richard Biener  <rguenther@suse.de>
27291
27292         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27293         release SSA defs of pattern stmts.
27294
27295 2014-02-17  Richard Biener  <rguenther@suse.de>
27296
27297         * tree-inline.c (expand_call_inline): Release the virtual
27298         operand defined by the call we are about to inline.
27299
27300 2014-02-17  Richard Biener  <rguenther@suse.de>
27301
27302         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27303
27304 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
27305             Ilya Tocar  <ilya.tocar@intel.com>
27306
27307         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27308         arguments order in builtin.
27309         (_mm512_permutexvar_epi64): Ditto.
27310         (_mm512_mask_permutexvar_epi64): Ditto
27311         (_mm512_maskz_permutexvar_epi32): Ditto
27312         (_mm512_permutexvar_epi32): Ditto
27313         (_mm512_mask_permutexvar_epi32): Ditto
27314
27315 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27316
27317         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27318         (p8_vmrgow): Likewise.
27319
27320 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27321
27322         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27323         endian targets.
27324
27325 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
27326
27327         PR target/60203
27328         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27329         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27330         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
27331         using direct move instructions on ISA 2.07.  Also adjust
27332         instruction length for 64-bit.
27333         (mov<mode>_64bit, TFmode/TDmode): Likewise.
27334         (mov<mode>_32bit, TFmode/TDmode): Likewise.
27335
27336 2014-02-15  Alan Modra  <amodra@gmail.com>
27337
27338         PR target/58675
27339         PR target/57935
27340         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27341         find_replacement on parts of insn rtl that might be reloaded.
27342
27343 2014-02-15  Richard Biener  <rguenther@suse.de>
27344
27345         PR tree-optimization/60183
27346         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27347         (tree_ssa_phiprop): Calculate and free post-dominators.
27348
27349 2014-02-14  Jeff Law  <law@redhat.com>
27350
27351         PR rtl-optimization/60131
27352         * ree.c (get_extended_src_reg): New function.
27353         (combine_reaching_defs): Use it rather than assuming location of REG.
27354         (find_and_remove_re): Verify first operand of extension is
27355         a REG before adding the insns to the copy list.
27356
27357 2014-02-14  Roland McGrath  <mcgrathr@google.com>
27358
27359         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27360         * configure: Regenerated.
27361         * config.in: Regenerated.
27362         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27363         instead of ASM_SHORT.
27364
27365 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
27366             Richard Earnshaw  <rearnsha@arm.com>
27367
27368         PR rtl-optimization/59535
27369         * lra-constraints.c (process_alt_operands): Encourage alternative
27370         when unassigned pseudo class is superset of the alternative class.
27371         (inherit_reload_reg): Don't inherit when optimizing for code size.
27372         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27373         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27374         modes not less than 4 for Thumb1.
27375
27376 2014-02-14  Kyle McMartin  <kyle@redhat.com>
27377
27378         PR pch/60010
27379         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27380
27381 2014-02-14  Richard Biener  <rguenther@suse.de>
27382
27383         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27384         (get_frame_arg): Drop the assert with langhook types_compatible_p.
27385         Do not strip INDIRECT_REFs.
27386
27387 2014-02-14  Richard Biener  <rguenther@suse.de>
27388
27389         PR lto/60179
27390         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27391         DECL_FUNCTION_SPECIFIC_TARGET.
27392         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27393         * tree-streamer-out.c (pack_ts_target_option): Remove.
27394         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27395         (write_ts_function_decl_tree_pointers): Do not stream
27396         DECL_FUNCTION_SPECIFIC_TARGET.
27397         * tree-streamer-in.c (unpack_ts_target_option): Remove.
27398         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27399         (lto_input_ts_function_decl_tree_pointers): Do not stream
27400         DECL_FUNCTION_SPECIFIC_TARGET.
27401
27402 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
27403
27404         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27405         (get_initial_def_for_induction, vectorizable_induction): Ignore
27406         debug stmts when looking for exit_phi.
27407         (vectorizable_live_operation): Fix up condition.
27408
27409 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27410
27411         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27412         nreverse() because it changes the content of original tree list.
27413
27414 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27415
27416         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27417         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27418
27419 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27420
27421         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27422         GNU coding standards.
27423
27424 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
27425
27426         PR debug/60152
27427         * dwarf2out.c (gen_subprogram_die): Don't call
27428         add_calling_convention_attribute if subr_die is old_die.
27429
27430 2014-02-13  Sharad Singhai  <singhai@google.com>
27431
27432         * doc/optinfo.texi: Fix order of nodes.
27433
27434 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
27435
27436         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27437         operands[2], not operands[3].
27438
27439 2014-02-13  Richard Biener  <rguenther@suse.de>
27440
27441         PR bootstrap/59878
27442         * doc/install.texi (ISL): Update recommended version to 0.12.2,
27443         mention the possibility of an in-tree build.
27444         (CLooG): Update recommended version to 0.18.1, mention the
27445         possibility of an in-tree build and clarify that the ISL
27446         bundled with CLooG does not work.
27447
27448 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
27449
27450         PR target/43546
27451         * expr.c (compress_float_constant): If x is a hard register,
27452         extend into a pseudo and then move to x.
27453
27454 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27455
27456         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27457         caused by bad second argument to warning_at() with -mhotpatch and
27458         nested functions (e.g. with gfortran).
27459
27460 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
27461
27462         * opts.c (option_name): Remove "enabled by default" rider.
27463
27464 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
27465
27466         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27467
27468 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27469             Uros Bizjak  <ubizjak@gmail.com>
27470
27471         PR target/60151
27472         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27473         * configure: Regenerated.
27474
27475 2014-02-12  Richard Biener  <rguenther@suse.de>
27476
27477         * vec.c (vec_prefix::calculate_allocation): Move as
27478         inline variant to vec.h.
27479         (vec_prefix::calculate_allocation_1): New out-of-line version.
27480         * vec.h (vec_prefix::calculate_allocation_1): Declare.
27481         (vec_prefix::m_has_auto_buf): Rename to ...
27482         (vec_prefix::m_using_auto_storage): ... this.
27483         (vec_prefix::calculate_allocation): Inline the easy cases
27484         and dispatch to calculate_allocation_1 which doesn't need the
27485         prefix address.
27486         (va_heap::reserve): Use gcc_checking_assert.
27487         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27488         m_using_auto_storage.
27489         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27490         member and adjust.
27491         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27492         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27493         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27494
27495 2014-02-12  Richard Biener  <rguenther@suse.de>
27496
27497         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27498         when we found a dependence.
27499
27500 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
27501
27502         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27503         common code...
27504         (maybe_fold_stmt): ... into this new function.
27505         * omp-low.c (lower_omp): Update comment.
27506
27507         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27508         last use.
27509
27510         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27511         dereference.
27512
27513 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
27514
27515         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27516         identifiers in comments.
27517         (cortexa53_extra_costs): Likewise.
27518         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27519         (cortexa7_extra_costs): Likewise.
27520         (cortexa12_extra_costs): Likewise.
27521         (cortexa15_extra_costs): Likewise.
27522         (v7m_extra_costs): Likewise.
27523
27524 2014-02-12  Richard Biener  <rguenther@suse.de>
27525
27526         PR middle-end/60092
27527         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27528         of posix_memalign being successful.
27529         (lower_stmt): Restrict lowering of posix_memalign to when
27530         -ftree-bit-ccp is enabled.
27531
27532 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27533
27534         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27535         arg_loc.
27536         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27537
27538 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
27539
27540         PR rtl-optimization/60116
27541         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27542         other_insn once the combination has been validated.
27543
27544 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
27545
27546         PR lto/59468
27547         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27548         and wrapper.
27549         * ipa-devirt.c: Include demangle.h
27550         (odr_violation_reported): New static variable.
27551         (add_type_duplicate): Update odr_violations.
27552         (maybe_record_node): Add completep parameter; update it.
27553         (record_target_from_binfo): Add COMPLETEP parameter;
27554         update it as needed.
27555         (possible_polymorphic_call_targets_1): Likewise.
27556         (struct polymorphic_call_target_d): Add nonconstruction_targets;
27557         rename FINAL to COMPLETE.
27558         (record_targets_from_bases): Sanity check we found the binfo;
27559         fix COMPLETEP updating.
27560         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27561         parameter, fix computing of COMPLETEP.
27562         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27563         at LTO time do demangling.
27564         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27565         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27566         parameter.
27567         (gimple_get_virt_method_for_binfo): Likewise.
27568         * gimple-fold.h (gimple_get_virt_method_for_binfo,
27569         gimple_get_virt_method_for_vtable): Update prototypes.
27570
27571 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
27572
27573         PR target/49008
27574         * genautomata.c (add_presence_absence): Fix typo with
27575         {final_}presence_list.
27576
27577 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27578
27579         PR target/60137
27580         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27581         for VSX/Altivec vectors that land in GPR registers.
27582
27583 2014-02-11  Richard Henderson  <rth@redhat.com>
27584             Jakub Jelinek  <jakub@redhat.com>
27585
27586         PR debug/59776
27587         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27588         around drhs if type conversion to lacc->type is not useless.
27589
27590 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27591
27592         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27593         tuning struct.
27594         (cortex-a57.cortex-a53): Likewise.
27595         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27596
27597 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27598
27599         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27600         arm_restrict_it.
27601
27602 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
27603
27604         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27605         add_options_for_arm_vfp3.
27606
27607 2014-02-11  Jeff Law  <law@redhat.com>
27608
27609         PR middle-end/54041
27610         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27611         object with an undesirable mode.
27612
27613 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27614
27615         PR libgomp/60107
27616         * config/i386/sol2-9.h: New file.
27617         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27618         *-*-solaris2.9*): Use it.
27619
27620 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
27621
27622         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27623         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27624
27625 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
27626
27627         * config/microblaze/microblaze.c: Extend mcpu version format
27628
27629 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
27630
27631         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27632
27633 2014-02-10  Richard Henderson  <rth@redhat.com>
27634
27635         PR target/59927
27636         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27637         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27638         ms-abi vs -mno-accumulate-outgoing-args.
27639         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27640         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27641         respect to ms-abi.
27642
27643 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27644
27645         PR middle-end/60080
27646         * cfgexpand.c (expand_asm_operands): Attach source location to
27647         ASM_INPUT rtx objects.
27648         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27649
27650 2014-02-10  Nick Clifton  <nickc@redhat.com>
27651
27652         * config/mn10300/mn10300.c (popcount): New function.
27653         (mn10300_expand_prologue): Include saved registers in stack usage
27654         count.
27655
27656 2014-02-10  Jeff Law  <law@redhat.com>
27657
27658         PR middle-end/52306
27659         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27660         when changing the SET_DEST of a prior insn to avoid an input reload.
27661
27662 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27663
27664         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27665         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27666         -mcall-openbsd, or -mcall-linux.
27667         (CC1_ENDIAN_BIG_SPEC): Remove.
27668         (CC1_ENDIAN_LITTLE_SPEC): Remove.
27669         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27670         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27671         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27672         and %cc1_endian_default.
27673         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27674
27675 2014-02-10  Richard Biener  <rguenther@suse.de>
27676
27677         PR tree-optimization/60115
27678         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27679         MEM_REF handling.  Properly verify that the accesses are not
27680         out of the objects bound.
27681
27682 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27683
27684         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27685         coretex to cortex.
27686
27687 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
27688
27689         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27690         proper constants and fix formatting.
27691         (possible_polymorphic_call_targets): Fix formatting.
27692
27693 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
27694             Ilya Tocar  <ilya.tocar@intel.com>
27695
27696         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27697         (_mm512_loadu_epi32): Renamed into...
27698         (_mm512_loadu_si512): This.
27699         (_mm512_storeu_epi32): Renamed into...
27700         (_mm512_storeu_si512): This.
27701         (_mm512_maskz_ceil_ps): Removed.
27702         (_mm512_maskz_ceil_pd): Ditto.
27703         (_mm512_maskz_floor_ps): Ditto.
27704         (_mm512_maskz_floor_pd): Ditto.
27705         (_mm512_floor_round_ps): Ditto.
27706         (_mm512_floor_round_pd): Ditto.
27707         (_mm512_ceil_round_ps): Ditto.
27708         (_mm512_ceil_round_pd): Ditto.
27709         (_mm512_mask_floor_round_ps): Ditto.
27710         (_mm512_mask_floor_round_pd): Ditto.
27711         (_mm512_mask_ceil_round_ps): Ditto.
27712         (_mm512_mask_ceil_round_pd): Ditto.
27713         (_mm512_maskz_floor_round_ps): Ditto.
27714         (_mm512_maskz_floor_round_pd): Ditto.
27715         (_mm512_maskz_ceil_round_ps): Ditto.
27716         (_mm512_maskz_ceil_round_pd): Ditto.
27717         (_mm512_expand_pd): Ditto.
27718         (_mm512_expand_ps): Ditto.
27719         * config/i386/i386.c (ix86_builtins): Remove
27720         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27721         (bdesc_args): Ditto.
27722         * config/i386/predicates.md (const1256_operand): New.
27723         (const_1_to_2_operand): Ditto.
27724         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27725         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27726         (*avx512pf_gatherpf<mode>sf): Ditto.
27727         (avx512pf_gatherpf<mode>df): Ditto.
27728         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27729         (*avx512pf_gatherpf<mode>df): Ditto.
27730         (avx512pf_scatterpf<mode>sf): Ditto.
27731         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27732         (*avx512pf_scatterpf<mode>sf): Ditto.
27733         (avx512pf_scatterpf<mode>df): Ditto.
27734         (*avx512pf_scatterpf<mode>df_mask): Ditto.
27735         (*avx512pf_scatterpf<mode>df): Ditto.
27736         (avx512f_expand<mode>): Removed.
27737         (<shift_insn><mode>3<mask_name>): Change predicate type.
27738
27739 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
27740
27741         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27742         not at the end of datarefs vector use ordered_remove to avoid
27743         reordering datarefs vector.
27744
27745         PR c/59984
27746         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27747         mark local addressable non-static vars as GOVD_PRIVATE
27748         instead of GOVD_LOCAL.
27749         * omp-low.c (lower_omp_for): Move gimple_bind_vars
27750         and BLOCK_VARS of gimple_bind_block to new_stmt rather
27751         than copying them.
27752
27753         PR middle-end/60092
27754         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27755         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27756         assume_aligned or alloc_align attributes.
27757         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27758         arguments.  Handle also assume_aligned and alloc_align attributes.
27759         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
27760         calls to functions with assume_aligned or alloc_align attributes.
27761         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27762
27763 2014-02-08  Terry Guo  <terry.guo@arm.com>
27764
27765         * doc/invoke.texi: Document ARM -march=armv7e-m.
27766
27767 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
27768
27769         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27770         flag on __cilkrts_rethrow builtin.
27771
27772         PR ipa/60026
27773         * ipa-cp.c (determine_versionability): Fail at -O0
27774         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27775         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27776
27777         Revert:
27778         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
27779
27780         PR ipa/60026
27781         * tree-inline.c (copy_forbidden): Fail for
27782         __attribute__((optimize (0))) functions.
27783
27784 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
27785
27786         * varpool.c: Include pointer-set.h.
27787         (varpool_remove_unreferenced_decls): Variables in other partitions
27788         will not be output; be however careful to not lose information
27789         about partitioning.
27790
27791 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
27792
27793         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27794         lookup in the vtable constructor.
27795
27796 2014-02-07  Jeff Law  <law@redhat.com>
27797
27798         PR target/40977
27799         * config/m68k/m68k.md (ashldi_extsi): Turn into a
27800         define_insn_and_split.
27801
27802         * ipa-inline.c (inline_small_functions): Fix typos.
27803
27804 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27805
27806         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27807         (s390_can_use_return_insn): Declare.
27808         * config/s390/s390.h (EPILOGUE_USES): Define.
27809         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27810         instructions.
27811         (s390_chunkify_start): Handle return JUMP_LABELs.
27812         (s390_early_mach): Emit a main_pool instruction on the entry edge.
27813         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27814         (s390_can_use_return_insn): New functions.
27815         (s390_fix_long_loop_prediction): Handle conditional returns.
27816         (TARGET_SET_UP_BY_PROLOGUE): Define.
27817         * config/s390/s390.md (ANY_RETURN): New code iterator.
27818         (*creturn, *csimple_return, return, simple_return): New patterns.
27819
27820 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27821
27822         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27823         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
27824         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
27825         REG_CFA_RESTORE list when deciding not to restore a register.
27826
27827 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27828
27829         * config/s390/s390.c: Include tree-pass.h and context.h.
27830         (s390_early_mach): New function, split out from...
27831         (s390_emit_prologue): ...here.
27832         (pass_data_s390_early_mach): New pass structure.
27833         (pass_s390_early_mach): New class.
27834         (s390_option_override): Create and register early_mach pass.
27835         Move to end of file.
27836
27837 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27838
27839         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27840         to match for the exit block.
27841
27842 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27843
27844         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27845         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27846         Reject misaligned operands.
27847
27848 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27849
27850         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27851
27852 2014-02-07  Richard Biener  <rguenther@suse.de>
27853
27854         PR middle-end/60092
27855         * gimple-low.c (lower_builtin_posix_memalign): New function.
27856         (lower_stmt): Call it to lower posix_memalign in a way
27857         to make alignment info accessible.
27858
27859 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
27860
27861         PR c++/60082
27862         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27863         __builtin_setjmp_receiver.
27864
27865 2014-02-07  Richard Biener  <rguenther@suse.de>
27866
27867         PR middle-end/60092
27868         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27869         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27870         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27871         Handle BUILT_IN_POSIX_MEMALIGN.
27872         (find_func_clobbers): Likewise.
27873         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27874         (call_may_clobber_ref_p_1): Likewise.
27875
27876 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27877
27878         PR ipa/59918
27879         * ipa-devirt.c (record_target_from_binfo): Remove overactive
27880         sanity check.
27881
27882 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27883
27884         PR ipa/59469
27885         * lto-cgraph.c (lto_output_node): Use
27886         symtab_get_symbol_partitioning_class.
27887         (lto_output_varpool_node): likewise.
27888         (symtab_get_symbol_partitioning_class): Move here from
27889         lto/lto-partition.c
27890         * cgraph.h (symbol_partitioning_class): Likewise.
27891         (symtab_get_symbol_partitioning_class): Declare.
27892
27893 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27894
27895         * ggc.h (ggc_internal_cleared_alloc): New macro.
27896         * vec.h (vec_safe_copy): Handle memory stats.
27897         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27898         * target-globals.c (save_target_globals): Likewise.
27899
27900 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
27901
27902         PR target/60077
27903         * expr.c (emit_move_resolve_push): Export; be bit more selective
27904         on when to clear alias set.
27905         * expr.h (emit_move_resolve_push): Declare.
27906         * function.h (struct function): Add tail_call_marked.
27907         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27908         * config/i386/i386-protos.h (ix86_expand_push): Remove.
27909         * config/i386/i386.md (TImode move expander): De not call
27910         ix86_expand_push.
27911         (FP push expanders): Preserve memory attributes.
27912         * config/i386/sse.md (push<mode>1): Remove.
27913         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27914         (ix86_expand_push): Remove.
27915         * config/i386/mmx.md (push<mode>1): Remove.
27916
27917 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
27918
27919         PR rtl-optimization/60030
27920         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27921         lopart with paradoxical subreg before shifting it up by hprec.
27922
27923 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27924
27925         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27926         Remove extra newline at end of file.
27927         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27928         (arm_issue_rate): Handle cortexa57.
27929         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27930         (cortex-a57.cortex-a53): Likewise.
27931
27932 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
27933
27934         PR target/59575
27935         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27936         don't record in REG_FRAME_RELATED_EXPR registers not set in that
27937         bitmask.
27938         (arm_expand_prologue): Adjust all callers.
27939         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27940         info, registers also at the lowest numbered registers side.  Use
27941         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27942         XEXP.
27943
27944         PR debug/59992
27945         * var-tracking.c (adjust_mems): Before adding a SET to
27946         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27947
27948 2014-02-06  Alan Modra  <amodra@gmail.com>
27949
27950         PR target/60032
27951         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27952         change SDmode to DDmode when lra_in_progress.
27953
27954 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
27955
27956         PR middle-end/59150
27957         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27958         free_data_ref on the dr first, and before goto again also set dr
27959         to the next dr.  For simd_lane_access, free old datarefs[i] before
27960         overwriting it.  For get_vectype_for_scalar_type failure, don't
27961         free_data_ref if simd_lane_access.
27962
27963         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27964
27965         PR target/60062
27966         * tree.h (opts_for_fn): New inline function.
27967         (opt_for_fn): Define.
27968         * config/i386/i386.c (ix86_function_regparm): Use
27969         opt_for_fn (decl, optimize) instead of optimize.
27970
27971 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27972
27973         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27974         for SYMBOL_REF in large memory model.
27975
27976 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27977
27978         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27979         and crypto support.
27980         (cortex-a57): Likewise.
27981         (cortex-a57.cortex-a53): Likewise.
27982
27983 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
27984             Kugan Vivekanandarajah  <kuganv@linaro.org>
27985
27986         * config/arm/arm.c (arm_vector_alignment_reachable): Check
27987         unaligned_access.
27988         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27989
27990 2014-02-06  Richard Biener  <rguenther@suse.de>
27991
27992         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27993         set_loop_copy and initialize_original_copy_tables.
27994
27995 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
27996
27997         * config/aarch64/aarch64-simd.md
27998         (aarch64_ashr_simddi): Change QI to SI.
27999
28000 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28001             Jakub Jelinek  <jakub@redhat.com>
28002
28003         PR middle-end/60013
28004         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28005         of the dataflow.
28006
28007 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28008
28009         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28010         CODE_FOR_altivec_vpku[hw]um to
28011         CODE_FOR_altivec_vpku[hw]um_direct.
28012         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28013         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28014         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28015         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28016
28017 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28018
28019         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28020         generation for -maltivec=be.
28021         (altivec_vsumsws): Simplify redundant test.
28022
28023 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28024
28025         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28026         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28027         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28028         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28029         gen_altivec_vpkuwum.
28030         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28031         BYTES_BIG_ENDIAN.
28032         (altivec_vpks<VI_char>ss): Likewise.
28033         (altivec_vpks<VI_char>us): Likewise.
28034         (altivec_vpku<VI_char>us): Likewise.
28035         (altivec_vpku<VI_char>um): Likewise.
28036         (altivec_vpku<VI_char>um_direct): New (copy of
28037         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28038         internal use).
28039         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28040         target is little endian and -maltivec=be is not specified.
28041         (*altivec_vupkhs<VU_char>_direct): New (copy of
28042         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28043         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28044         target is little endian and -maltivec=be is not specified.
28045         (*altivec_vupkls<VU_char>_direct): New (copy of
28046         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28047         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28048         little endian and -maltivec=be is not specified.
28049         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28050         little endian and -maltivec=be is not specified.
28051
28052 2014-02-05  Richard Henderson  <rth@redhat.com>
28053
28054         PR debug/52727
28055         * combine-stack-adj.c: Revert r206943.
28056         * sched-int.h (struct deps_desc): Add last_args_size.
28057         * sched-deps.c (init_deps): Initialize it.
28058         (sched_analyze_insn): Add OUTPUT dependencies between insns that
28059         contain REG_ARGS_SIZE notes.
28060
28061 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
28062
28063         * lto-cgraph.c (asm_nodes_output): Make global.
28064         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28065         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28066         (driver_handle_option): Handle OPT_fwpa.
28067
28068 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
28069
28070         PR ipa/59947
28071         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28072         a comment typo and formatting issue.  If odr_hash hasn't been
28073         created, return vNULL and set *completep to false.
28074
28075         PR middle-end/57499
28076         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28077         bb with no successors.
28078
28079 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
28080
28081         PR target/59718
28082         * doc/invoke.texi (-march): Clarify documentation for ARM.
28083         (-mtune): Likewise.
28084         (-mcpu): Likewise.
28085
28086 2014-02-05  Richard Biener  <rguenther@suse.de>
28087
28088         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28089         when not vectorizing because of too many alias checks.
28090         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28091         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28092
28093 2014-02-05  Nick Clifton  <nickc@redhat.com>
28094
28095         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28096         accept extended registers in any mode when compiling for the MN10300.
28097
28098 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
28099
28100         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28101         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28102         sanitization attributes.
28103         (can_inline_edge_p): Likewise.
28104         (sanitize_attrs_match_for_inline_p): New function.
28105
28106 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28107
28108         * ipa-prop.c (detect_type_change): Shor circuit testing of
28109         type changes on THIS pointer.
28110
28111 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
28112
28113         PR target/59777
28114         * config/pa/pa.c (legitimize_tls_address): Return original address
28115         if not passed a SYMBOL_REF rtx.
28116         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28117         addresses.
28118         (pa_emit_move_sequence): Simplify TLS source operands.
28119         (pa_legitimate_constant_p): Reject all TLS constants.
28120         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28121         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28122
28123 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28124
28125         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28126         groups when we know they are controlled by LTO.
28127         * varasm.c (default_binds_local_p_1): If object is in other partition,
28128         it will be resolved locally.
28129
28130 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28131
28132         * config/host-linux.c (linux_gt_pch_use_address): Don't
28133         use SSIZE_MAX because it is not always defined.
28134
28135 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
28136
28137         PR bootstrap/59913
28138         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28139         threshold for pseudo splitting.
28140         (update_ebb_live_info): Process call argument hard registers and
28141         hard registers from insn definition too.
28142         (max_small_class_regs_num): New constant.
28143         (inherit_in_ebb): Update live hard regs through EBBs.  Update
28144         reloads_num only for small register classes.  Don't split for
28145         outputs of jumps.
28146
28147 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
28148
28149         PR ipa/60058
28150         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28151         is non-null.
28152
28153 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
28154
28155         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28156         visibility is safe.
28157
28158 2014-02-04  Marek Polacek  <polacek@redhat.com>
28159
28160         * gdbinit.in (pel): Define.
28161
28162 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28163
28164         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28165         behavior.
28166
28167 2014-02-04  Richard Biener  <rguenther@suse.de>
28168
28169         PR lto/59723
28170         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28171         in function context local.
28172         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28173         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28174         similar to LTO_imported_decl_ref.
28175
28176 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
28177
28178         PR tree-optimization/60002
28179         * cgraphclones.c (build_function_decl_skip_args): Clear
28180         DECL_LANG_SPECIFIC.
28181
28182         PR tree-optimization/60023
28183         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28184         false to gsi_replace.
28185         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28186         has been in some EH region and vec_stmt could throw, add
28187         vec_stmt into the same EH region.
28188         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28189         has no lhs, ignore it.
28190         * internal-fn.c (expand_MASK_LOAD): Likewise.
28191
28192         PR ipa/60026
28193         * tree-inline.c (copy_forbidden): Fail for
28194         __attribute__((optimize (0))) functions.
28195
28196         PR other/58712
28197         * omp-low.c (simd_clone_struct_copy): If from->inbranch
28198         is set, copy one less argument.
28199         (expand_simd_clones): Don't subtract clone_info->inbranch
28200         from simd_clone_struct_alloc argument.
28201
28202         PR rtl-optimization/57915
28203         * recog.c (simplify_while_replacing): If all unary/binary/relational
28204         operation arguments are constant, attempt to simplify those.
28205
28206         PR middle-end/59261
28207         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28208         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28209
28210 2014-02-04  Richard Biener  <rguenther@suse.de>
28211
28212         PR tree-optimization/60012
28213         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28214         TBAA disambiguation to all DDRs.
28215
28216 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28217
28218         PR target/59788
28219         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28220         (LINK_SPEC): Use it for -shared, -shared-libgcc.
28221
28222 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28223
28224         PR ipa/59882
28225         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28226
28227 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28228
28229         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28230         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28231
28232 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28233
28234         PR ipa/59831
28235         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28236         to figure out targets of polymorphic calls with known decl.
28237         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28238         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28239         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28240         (get_polymorphic_call_info): ... here.
28241         (get_polymorphic_call_info_from_invariant): New function.
28242
28243 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28244
28245         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28246         lookup via vtable pointer; check for type consistency
28247         and turn inconsitent facts into UNREACHABLE.
28248         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28249         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28250         type inconsistent querries; return UNREACHABLE instead.
28251
28252 2014-02-03  Richard Henderson  <rth@twiddle.net>
28253
28254         PR tree-opt/59924
28255         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28256         already processed this node.
28257         (normalize_one_pred_1): Pass along mark_set.
28258         (normalize_one_pred): Create and destroy a pointer_set_t.
28259         (normalize_one_pred_chain): Likewise.
28260
28261 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
28262
28263         PR gcov-profile/58602
28264         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28265
28266 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
28267
28268         PR ipa/59831
28269         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28270         -fno-devirtualize; try to devirtualize by the knowledge of
28271         virtual table pointer given by aggregate propagation.
28272         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28273         (ipa_print_node_jump_functions): Dump also offset that
28274         is relevant for polymorphic calls.
28275         (determine_known_aggregate_parts): Add arg_type parameter; use it
28276         instead of determining the type from pointer type.
28277         (ipa_compute_jump_functions_for_edge): Update call of
28278         determine_known_aggregate_parts.
28279         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28280         (gimple_get_virt_method_for_binfo): ... here; simplify using
28281         vtable_pointer_value_to_vtable.
28282         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28283         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28284         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28285         (vtable_pointer_value_to_vtable): Break out from ...; handle also
28286         POINTER_PLUS_EXPR.
28287         (vtable_pointer_value_to_binfo): ... here.
28288         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28289
28290 2014-02-03  Teresa Johnson  <tejohnson@google.com>
28291
28292         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28293         redef of outer loop index variable.
28294
28295 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
28296
28297         PR c++/53017
28298         PR c++/59211
28299         * doc/extend.texi (Function Attributes): Typo.
28300
28301 2014-02-03  Cong Hou  <congh@google.com>
28302
28303         PR tree-optimization/60000
28304         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28305         if the vectorized statement is a store.  A store statement can only
28306         appear at the end of pattern statements.
28307
28308 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
28309
28310         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28311         (ix86_option_override_internal): Default long double to 64-bit for
28312         32-bit Bionic and to 128-bit for 64-bit Bionic.
28313
28314         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28315         TARGET_LONG_DOUBLE_128 is true.
28316         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28317
28318         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28319         (mlong-double-64): Negate -mlong-double-128.
28320         (mlong-double-128): New option.
28321
28322         * config/i386/i386-c.c (ix86_target_macros): Define
28323         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28324
28325         * doc/invoke.texi: Document -mlong-double-128.
28326
28327 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
28328
28329         PR rtl-optimization/60024
28330         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28331
28332 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
28333
28334         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28335
28336 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
28337
28338         PR rtl-optimization/57662
28339         * sel-sched.c (code_motion_path_driver): Do not mark already not
28340         existing blocks in the visiting bitmap.
28341
28342 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
28343
28344         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28345         on the insn being emitted.
28346
28347 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
28348             Will Deacon  <will.deacon@arm.com>
28349
28350         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28351
28352 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28353
28354         * config/arm/arm-tables.opt: Regenerate.
28355
28356 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28357
28358         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28359         for vector types other than V16QImode.
28360         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28361         define_expand, and call altivec_expand_vec_perm_le when producing
28362         code with little endian element order.
28363         (*altivec_vperm_<mode>_internal): New insn having previous
28364         behavior of altivec_vperm_<mode>.
28365         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28366         altivec_expand_vec_perm_le when producing code with little endian
28367         element order.
28368         (*altivec_vperm_<mode>_uns_internal): New insn having previous
28369         behavior of altivec_vperm_<mode>_uns.
28370
28371 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28372
28373         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28374         (altivec_vsumsws): Add handling for -maltivec=be with a little
28375         endian target.
28376         (altivec_vsumsws_direct): New.
28377         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28378         gen_altivec_vsumsws.
28379
28380 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
28381
28382         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28383         vtable_pointer_value_to_binfo): New functions.
28384         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28385         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28386
28387 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
28388
28389         * config/nios2/nios2.md (load_got_register): Initialize GOT
28390         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28391         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28392
28393 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
28394
28395         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28396         preserverd by passthrough, do not propagate the type.
28397
28398 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28399
28400         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28401         (mips_atomic_assign_expand_fenv): New function.
28402         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28403
28404 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28405
28406         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28407         (__builtin_mips_set_fcsr): Likewise.
28408         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28409         MIPS_USI_FTYPE_VOID.
28410         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28411         (mips16_expand_set_fcsr): Likewise.
28412         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28413         (mips16_set_fcsr_stub): Likewise.
28414         (mips16_get_fcsr_one_only_stub): New class.
28415         (mips16_set_fcsr_one_only_stub): Likewise.
28416         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28417         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28418         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28419         (hard_float): New availability predicate.
28420         (mips_builtins): Add get_fcsr and set_fcsr.
28421         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28422         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28423         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28424         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28425         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28426         patterns.
28427
28428 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28429
28430         * config/mips/mips.c (mips_one_only_stub): New class.
28431         (mips_need_mips16_rdhwr_p): Replace with...
28432         (mips16_rdhwr_stub): ...this new variable.
28433         (mips16_stub_call_address): New function.
28434         (mips16_rdhwr_one_only_stub): New class.
28435         (mips_expand_thread_pointer): Use mips16_stub_call_address.
28436         (mips_output_mips16_rdhwr): Delete.
28437         (mips_finish_stub): New function.
28438         (mips_code_end): Use it to handle rdhwr stubs.
28439
28440 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
28441
28442         PR target/60017
28443         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28444         when calculating size of integer atomic types.
28445
28446 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
28447
28448         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28449
28450 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
28451
28452         PR tree-optimization/60003
28453         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28454         * profile.c (branch_prob): Use gimple_call_builtin_p
28455         to check for BUILT_IN_SETJMP_RECEIVER.
28456         * tree-inline.c (copy_bb): Call notice_special_calls.
28457
28458 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
28459
28460         PR bootstrap/59985
28461         * lra-constraints.c (process_alt_operands): Update reload_sum only
28462         on the first pass.
28463
28464 2014-01-31  Richard Henderson  <rth@redhat.com>
28465
28466         PR middle-end/60004
28467         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28468         until after else_eh is processed.
28469
28470 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
28471
28472         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28473         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28474         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28475         in smmintrin.h, remove them.
28476         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28477         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28478         * config/i386/i386.md (ROUND_SAE): Fix value.
28479         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28480         (const48_operand): New.
28481         * config/i386/subst.md (round), (round_expand): Use
28482         const_4_or_8_to_11_operand.
28483         (round_saeonly), (round_saeonly_expand): Use const48_operand.
28484
28485 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
28486
28487         * config/i386/constraints.md (Yk): Swap meaning with k.
28488         * config/i386/i386.md (movhi_internal): Change Yk to k.
28489         (movqi_internal): Ditto.
28490         (*k<logic><mode>): Ditto.
28491         (*andhi_1): Ditto.
28492         (*andqi_1): Ditto.
28493         (kandn<mode>): Ditto.
28494         (*<code>hi_1): Ditto.
28495         (*<code>qi_1): Ditto.
28496         (kxnor<mode>): Ditto.
28497         (kortestzhi): Ditto.
28498         (kortestchi): Ditto.
28499         (kunpckhi): Ditto.
28500         (*one_cmplhi2_1): Ditto.
28501         (*one_cmplqi2_1): Ditto.
28502         * config/i386/sse.md (): Change k to Yk.
28503         (avx512f_load<mode>_mask): Ditto.
28504         (avx512f_blendm<mode>): Ditto.
28505         (avx512f_store<mode>_mask): Ditto.
28506         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28507         (avx512f_storedqu<mode>_mask): Ditto.
28508         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28509         Ditto.
28510         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28511         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28512         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28513         (avx512f_maskcmp<mode>3): Ditto.
28514         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28515         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28516         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28517         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28518         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28519         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28520         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28521         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28522         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28523         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28524         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28525         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28526         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28527         (vec_extract_lo_<mode>_maskm): Ditto.
28528         (vec_extract_hi_<mode>_maskm): Ditto.
28529         (avx512f_vternlog<mode>_mask): Ditto.
28530         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28531         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28532         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28533         (avx512f_<code>v8div16qi2_mask): Ditto.
28534         (avx512f_<code>v8div16qi2_mask_store): Ditto.
28535         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28536         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28537         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28538         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28539         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28540         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28541         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28542         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28543         (avx512cd_maskb_vec_dupv8di): Ditto.
28544         (avx512cd_maskw_vec_dupv16si): Ditto.
28545         (avx512f_vpermi2var<mode>3_maskz): Ditto.
28546         (avx512f_vpermi2var<mode>3_mask): Ditto.
28547         (avx512f_vpermi2var<mode>3_mask): Ditto.
28548         (avx512f_vpermt2var<mode>3_maskz): Ditto.
28549         (*avx512f_gathersi<mode>): Ditto.
28550         (*avx512f_gathersi<mode>_2): Ditto.
28551         (*avx512f_gatherdi<mode>): Ditto.
28552         (*avx512f_gatherdi<mode>_2): Ditto.
28553         (*avx512f_scattersi<mode>): Ditto.
28554         (*avx512f_scatterdi<mode>): Ditto.
28555         (avx512f_compress<mode>_mask): Ditto.
28556         (avx512f_compressstore<mode>_mask): Ditto.
28557         (avx512f_expand<mode>_mask): Ditto.
28558         * config/i386/subst.md (mask): Change k to Yk.
28559         (mask_scalar_merge): Ditto.
28560         (sd): Ditto.
28561
28562 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
28563
28564         * doc/extend.texi (Vector Extensions): Document ?: in C++.
28565
28566 2014-01-31  Richard Biener  <rguenther@suse.de>
28567
28568         PR middle-end/59990
28569         * builtins.c (fold_builtin_memory_op): Make sure to not
28570         use a floating-point mode or a boolean or enumeral type for
28571         the copy operation.
28572
28573 2014-01-30  DJ Delorie  <dj@redhat.com>
28574
28575         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28576         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28577         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28578         whenever main() has an epilogue.
28579
28580 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28581
28582         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28583         unused variable "field".
28584         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28585         (vsx_mergeh_<mode>): Likewise.
28586         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28587         (altivec_vmrghh): Likewise.
28588         (altivec_vmrghw): Likewise.
28589         (altivec_vmrglb): Likewise.
28590         (altivec_vmrglh): Likewise.
28591         (altivec_vmrglw): Likewise.
28592         (altivec_vspltb): Add missing uses.
28593         (altivec_vsplth): Likewise.
28594         (altivec_vspltw): Likewise.
28595         (altivec_vspltsf): Likewise.
28596
28597 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
28598
28599         PR target/59923
28600         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28601         frame related instructions.
28602
28603 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
28604
28605         PR rtl-optimization/59959
28606         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28607         any reload of register whose subreg is invalid.
28608
28609 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
28610
28611         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28612         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28613         Add missing return type - void.
28614
28615 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28616
28617         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28618         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28619         remove element index adjustment for endian (now handled in vsx.md
28620         and altivec.md).
28621         (altivec_expand_vec_perm_const): Use
28622         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28623         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28624         (vsx_xxspltw_<mode>): Adjust element index for little endian.
28625         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28626         define_expand and a new define_insn *altivec_vspltb_internal;
28627         adjust for -maltivec=be on a little endian target.
28628         (altivec_vspltb_direct): New.
28629         (altivec_vsplth): Divide into a define_expand and a new
28630         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28631         little endian target.
28632         (altivec_vsplth_direct): New.
28633         (altivec_vspltw): Divide into a define_expand and a new
28634         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28635         little endian target.
28636         (altivec_vspltw_direct): New.
28637         (altivec_vspltsf): Divide into a define_expand and a new
28638         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28639         a little endian target.
28640
28641 2014-01-30  Richard Biener  <rguenther@suse.de>
28642
28643         PR tree-optimization/59993
28644         * tree-ssa-forwprop.c (associate_pointerplus): Check we
28645         can propagate form the earlier stmt and avoid the transform
28646         when the intermediate result is needed.
28647
28648 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
28649
28650         * README.Portability: Fix typo.
28651
28652 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
28653
28654         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28655         comparison_operator with ordered_comparison_operator.
28656
28657 2014-01-30  Nick Clifton  <nickc@redhat.com>
28658
28659         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28660         Rename to mn10300_store_multiple_regs.
28661         * config/mn10300/mn10300.c: Likewise.
28662         * config/mn10300/mn10300.md (store_movm): Fix typo: call
28663         store_multiple_regs.
28664         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28665         Call mn10300_store_multiple_regs.
28666
28667 2014-01-30  Nick Clifton  <nickc@redhat.com>
28668             DJ Delorie  <dj@redhat.com>
28669
28670         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28671         %fp 2 to keep registers after it properly word-aligned.
28672         (rl78_alloc_physical_registers_umul): Handle the case where both
28673         input operands are the same.
28674
28675 2014-01-30  Richard Biener  <rguenther@suse.de>
28676
28677         PR tree-optimization/59903
28678         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28679         check properly.
28680
28681 2014-01-30  Jason Merrill  <jason@redhat.com>
28682
28683         PR c++/59633
28684         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28685
28686         PR c++/59645
28687         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28688
28689 2014-01-30  Richard Biener  <rguenther@suse.de>
28690
28691         PR tree-optimization/59951
28692         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28693
28694 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
28695
28696         PR target/59784
28697         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28698         SFmode to DFmode case.
28699
28700 2014-01-29  DJ Delorie  <dj@redhat.com>
28701
28702         * config/msp430/msp430.opt (-minrt): New.
28703         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28704         if -minrt given.
28705         (ENDFILE_SPEC): Likewise.
28706
28707 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
28708
28709         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28710         (estimate_function_body_sizes): Use it.
28711
28712 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
28713
28714         PR c++/58561
28715         * dwarf2out.c (is_cxx_auto): New.
28716         (is_base_type): Use it.
28717         (gen_type_die_with_usage): Likewise.
28718
28719 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28720
28721         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
28722         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28723         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28724         -maltivec=be with LE targets.
28725         (vsx_mergeh_<mode>): Likewise.
28726         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28727         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28728         (altivec_vmrghb): Replace with define_expand and new
28729         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28730         (altivec_vmrghb_direct): New define_insn.
28731         (altivec_vmrghh): Replace with define_expand and new
28732         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28733         (altivec_vmrghh_direct): New define_insn.
28734         (altivec_vmrghw): Replace with define_expand and new
28735         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28736         (altivec_vmrghw_direct): New define_insn.
28737         (*altivec_vmrghsf): Adjust for endianness.
28738         (altivec_vmrglb): Replace with define_expand and new
28739         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28740         (altivec_vmrglb_direct): New define_insn.
28741         (altivec_vmrglh): Replace with define_expand and new
28742         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28743         (altivec_vmrglh_direct): New define_insn.
28744         (altivec_vmrglw): Replace with define_expand and new
28745         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28746         (altivec_vmrglw_direct): New define_insn.
28747         (*altivec_vmrglsf): Adjust for endianness.
28748         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28749         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28750         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28751         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28752         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28753         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28754         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28755         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28756
28757 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28758
28759         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28760         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28761         whitespace.
28762
28763 2014-01-29  Richard Biener  <rguenther@suse.de>
28764
28765         PR tree-optimization/58742
28766         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28767         associate_pointerplus_align.
28768         (associate_pointerplus_diff): New function.
28769         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
28770         and associate_pointerplus_diff.
28771
28772 2014-01-29  Richard Biener  <rguenther@suse.de>
28773
28774         * lto-streamer.h (LTO_major_version): Bump to 3.
28775         (LTO_minor_version): Reset to 0.
28776
28777 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
28778
28779         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28780         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28781         (arm_file_start): Generate correct asm header for armv7ve.
28782         * config/arm/bpabi.h: Add multilib support for armv7ve.
28783         * config/arm/driver-arm.c: Change the architectures of cortex-a7
28784         and cortex-a15 to armv7ve.
28785         * config/arm/t-aprofile: Add multilib support for armv7ve.
28786         * doc/invoke.texi: Document -march=armv7ve.
28787
28788 2014-01-29  Richard Biener  <rguenther@suse.de>
28789
28790         PR tree-optimization/58742
28791         * tree-ssa-forwprop.c (associate_plusminus): Return true
28792         if we changed sth, defer EH cleanup to ...
28793         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
28794         (simplify_mult): New function.
28795
28796 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
28797
28798         PR middle-end/59917
28799         PR tree-optimization/59920
28800         * tree.c (build_common_builtin_nodes): Remove
28801         __builtin_setjmp_dispatcher initialization.
28802         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28803         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28804         instead of gsi_after_labels + manually skipping debug stmts.
28805         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28806         ignore bbs with IFN_ABNORMAL_DISPATCHER.
28807         * tree-inline.c (copy_edges_for_bb): Remove
28808         can_make_abnormal_goto argument, instead add abnormal_goto_dest
28809         argument.  Ignore computed_goto_p stmts.  Don't call
28810         make_abnormal_goto_edges.  If a call might need abnormal edges
28811         for non-local gotos, see if it already has an edge to
28812         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28813         with true argument, don't do anything then, otherwise add
28814         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28815         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28816         caller.
28817         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28818         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28819         (lower_stmt): Don't set data->calls_builtin_setjmp.
28820         (lower_builtin_setjmp): Adjust comment.
28821         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28822         * tree-cfg.c (found_computed_goto): Remove.
28823         (factor_computed_gotos): Remove.
28824         (make_goto_expr_edges): Return bool, true for computed gotos.
28825         Don't call make_abnormal_goto_edges.
28826         (build_gimple_cfg): Don't set found_computed_goto, don't call
28827         factor_computed_gotos.
28828         (computed_goto_p): No longer static.
28829         (make_blocks): Don't set found_computed_goto.
28830         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28831         (make_edges): If make_goto_expr_edges returns true, push bb
28832         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28833         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28834         vector.  Record mapping between bbs and OpenMP regions if there
28835         are any, adjust make_gimple_omp_edges caller.  Call
28836         handle_abnormal_edges.
28837         (make_abnormal_goto_edges): Remove.
28838         * tree-cfg.h (make_abnormal_goto_edges): Remove.
28839         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28840         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28841         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28842         * internal-fn.def (ABNORMAL_DISPATCHER): New.
28843         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28844         filling *region also set *region_idx to (*region)->entry->index.
28845
28846         PR other/58712
28847         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28848         For REGs set ORIGINAL_REGNO.
28849
28850 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
28851
28852         * doc/md.texi: Mention that a target shouldn't implement
28853         vec_widen_(s|u)mul_even/odd pair if it is less efficient
28854         than hi/lo pair.
28855
28856 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
28857
28858         PR tree-optimization/59594
28859         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28860         a copy of the datarefs vector rather than the vector itself.
28861
28862 2014-01-28  Jason Merrill  <jason@redhat.com>
28863
28864         PR c++/53756
28865         * dwarf2out.c (auto_die): New static.
28866         (gen_type_die_with_usage): Handle C++1y 'auto'.
28867         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28868         on definition.
28869
28870 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
28871
28872         PR target/59672
28873         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28874         (SPEC_X32): Likewise.
28875         (SPEC_64): Likewise.
28876         * config/i386/i386.c (ix86_option_override_internal): Turn off
28877         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28878         for TARGET_16BIT.
28879         (x86_file_start): Output .code16gcc for TARGET_16BIT.
28880         * config/i386/i386.h (TARGET_16BIT): New macro.
28881         (TARGET_16BIT_P): Likewise.
28882         * config/i386/i386.opt: Add m16.
28883         * doc/invoke.texi: Document -m16.
28884
28885 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
28886
28887         PR preprocessor/59935
28888         * input.c (location_get_source_line): Bail out on when line number
28889         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28890
28891 2014-01-28  Richard Biener  <rguenther@suse.de>
28892
28893         PR tree-optimization/58742
28894         * tree-ssa-forwprop.c (associate_plusminus): Handle
28895         pointer subtraction of the form (T)(P + A) - (T)P.
28896
28897 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28898
28899         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28900         at const_int_cost.
28901
28902 2014-01-28  Richard Biener  <rguenther@suse.de>
28903
28904         Revert
28905         2014-01-28  Richard Biener  <rguenther@suse.de>
28906
28907         PR rtl-optimization/45364
28908         PR rtl-optimization/59890
28909         * var-tracking.c (local_get_addr_clear_given_value): Handle
28910         already cleared slot.
28911         (val_reset): Handle not allocated local_get_addr_cache.
28912         (vt_find_locations): Use post-order on the inverted CFG.
28913
28914 2014-01-28  Richard Biener  <rguenther@suse.de>
28915
28916         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28917
28918 2014-01-28  Richard Biener  <rguenther@suse.de>
28919
28920         PR rtl-optimization/45364
28921         PR rtl-optimization/59890
28922         * var-tracking.c (local_get_addr_clear_given_value): Handle
28923         already cleared slot.
28924         (val_reset): Handle not allocated local_get_addr_cache.
28925         (vt_find_locations): Use post-order on the inverted CFG.
28926
28927 2014-01-28  Alan Modra  <amodra@gmail.com>
28928
28929         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28930         * configure.ac <recursive call for build != host>: Define
28931         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28932         and LD_FOR_BUILD too.
28933         * configure: Regenerate.
28934
28935 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
28936
28937         * config/i386/i386.c (get_builtin_code_for_version): Separate
28938         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28939         Broadwell from Haswell.
28940
28941 2014-01-27  Steve Ellcey  <sellcey@mips.com>
28942
28943         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28944         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28945         * config/mips/mips.c (mips_option_override): Change setting
28946         of TARGET_DSP.
28947         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28948         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28949         Change from Mask to Var.
28950
28951 2014-01-27  Jeff Law  <law@redhat.com>
28952
28953         * ipa-inline.c (inline_small_functions): Fix typo.
28954
28955 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
28956
28957         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28958         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28959         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28960         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28961         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28962         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28963         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28964         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28965         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28966         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28967         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28968         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28969         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28970         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28971         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28972         (_mm512_storeu_epi64): Ditto.
28973         (_mm512_cmpge_epi32_mask): Ditto.
28974         (_mm512_cmpge_epu32_mask): Ditto.
28975         (_mm512_cmpge_epi64_mask): Ditto.
28976         (_mm512_cmpge_epu64_mask): Ditto.
28977         (_mm512_cmple_epi32_mask): Ditto.
28978         (_mm512_cmple_epu32_mask): Ditto.
28979         (_mm512_cmple_epi64_mask): Ditto.
28980         (_mm512_cmple_epu64_mask): Ditto.
28981         (_mm512_cmplt_epi32_mask): Ditto.
28982         (_mm512_cmplt_epu32_mask): Ditto.
28983         (_mm512_cmplt_epi64_mask): Ditto.
28984         (_mm512_cmplt_epu64_mask): Ditto.
28985         (_mm512_cmpneq_epi32_mask): Ditto.
28986         (_mm512_cmpneq_epu32_mask): Ditto.
28987         (_mm512_cmpneq_epi64_mask): Ditto.
28988         (_mm512_cmpneq_epu64_mask): Ditto.
28989         (_mm512_expand_pd): Ditto.
28990         (_mm512_expand_ps): Ditto.
28991         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28992         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28993         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28994         * config/i386/i386.c (ix86_builtins): Add
28995         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28996         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28997         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28998         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28999         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29000         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29001         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29002         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29003         IX86_BUILTIN_PMOVUSQW512_MEM.
29004         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29005         __builtin_ia32_pmovsqd512mem_mask,
29006         __builtin_ia32_pmovqd512mem_mask,
29007         __builtin_ia32_pmovusqw512mem_mask,
29008         __builtin_ia32_pmovsqw512mem_mask,
29009         __builtin_ia32_pmovqw512mem_mask,
29010         __builtin_ia32_pmovusdw512mem_mask,
29011         __builtin_ia32_pmovsdw512mem_mask,
29012         __builtin_ia32_pmovdw512mem_mask,
29013         __builtin_ia32_pmovqb512mem_mask,
29014         __builtin_ia32_pmovusqb512mem_mask,
29015         __builtin_ia32_pmovsqb512mem_mask,
29016         __builtin_ia32_pmovusdb512mem_mask,
29017         __builtin_ia32_pmovsdb512mem_mask,
29018         __builtin_ia32_pmovdb512mem_mask.
29019         (bdesc_args): Add __builtin_ia32_expanddf512,
29020         __builtin_ia32_expandsf512.
29021         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29022         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29023         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29024         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29025         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29026         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29027         (avx512f_<code>v8div16qi2_mask_store): This.
29028         (avx512f_expand<mode>): New.
29029
29030 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
29031
29032         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29033         New.
29034         (_mm512_mask_prefetch_i64gather_pd): Ditto.
29035         (_mm512_prefetch_i32scatter_pd): Ditto.
29036         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29037         (_mm512_prefetch_i64scatter_pd): Ditto.
29038         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29039         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29040         (_mm512_mask_prefetch_i64gather_ps): Ditto.
29041         (_mm512_prefetch_i32scatter_ps): Ditto.
29042         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29043         (_mm512_prefetch_i64scatter_ps): Ditto.
29044         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29045         * config/i386/i386-builtin-types.def: Define
29046         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29047         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29048         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29049         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29050         IX86_BUILTIN_SCATTERPFQPD.
29051         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29052         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29053         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29054         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29055         __builtin_ia32_scatterpfqps.
29056         (ix86_expand_builtin): Expand new built-ins.
29057         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29058         fix memory access data type.
29059         (*avx512pf_gatherpf<mode>_mask): Ditto.
29060         (*avx512pf_gatherpf<mode>): Ditto.
29061         (avx512pf_scatterpf<mode>): Ditto.
29062         (*avx512pf_scatterpf<mode>_mask): Ditto.
29063         (*avx512pf_scatterpf<mode>): Ditto.
29064         (GATHER_SCATTER_SF_MEM_MODE): New.
29065         (avx512pf_gatherpf<mode>df): Ditto.
29066         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29067         (*avx512pf_scatterpf<mode>df): Ditto.
29068
29069 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
29070
29071         PR bootstrap/59934
29072         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29073         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29074         reached.
29075
29076 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29077
29078         * common/config/arm/arm-common.c
29079         (arm_rewrite_mcpu): Handle multiple names.
29080         * config/arm/arm.h
29081         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29082
29083 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
29084
29085         * gimple-builder.h (create_gimple_tmp): Delete.
29086
29087 2014-01-27  Christian Bruel  <christian.bruel@st.com>
29088
29089         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29090         words comparisons.
29091
29092 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
29093
29094         * config/pa/pa.md (call): Generate indirect long calls to non-local
29095         functions when outputing 32-bit code.
29096         (call_value): Likewise except for special call to buggy powf function.
29097
29098         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29099         portable runtime and PIC indirect calls.
29100         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29101         and PIC call sequences.  Use ldo instead of blr to set return register
29102         in PIC call sequence.
29103
29104 2014-01-25  Walter Lee  <walt@tilera.com>
29105
29106         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29107         avoid clobbering a live register.
29108
29109 2014-01-25  Walter Lee  <walt@tilera.com>
29110
29111         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29112         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29113         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29114         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29115
29116 2014-01-25  Walter Lee  <walt@tilera.com>
29117
29118         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29119         arguments on even registers.
29120         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29121         STACK_BOUNDARY.
29122         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29123         (BIGGEST_ALIGNMENT): Ditto.
29124         (BIGGEST_FIELD_ALIGNMENT): Ditto.
29125
29126 2014-01-25  Walter Lee  <walt@tilera.com>
29127
29128         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29129         insns before bundling.
29130         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29131
29132 2014-01-25  Walter Lee  <walt@tilera.com>
29133
29134         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29135         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29136         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29137
29138 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29139
29140         * config/mips/constraints.md (kl): Delete.
29141         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29142         define expands, using...
29143         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29144         instructions for MIPS16.
29145         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29146         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29147
29148 2014-01-25  Walter Lee  <walt@tilera.com>
29149
29150         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29151         (clzdi2): Ditto.
29152         (ffsdi2): Ditto.
29153
29154 2014-01-25  Walter Lee  <walt@tilera.com>
29155
29156         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29157         (TARGET_EXPAND_TO_RTL_HOOK): Define.
29158
29159 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
29160
29161         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29162         Handle XOR.
29163
29164 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
29165
29166         * print-rtl.c (in_call_function_usage): New var.
29167         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29168         EXPR_LIST mode as mode and not as reg note name.
29169
29170         PR middle-end/59561
29171         * cfgloopmanip.c (copy_loop_info): If
29172         loop->warned_aggressive_loop_optimizations, make sure
29173         the flag is set in target loop too.
29174
29175 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
29176
29177         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29178         flag_cilkplus.
29179         * builtins.def: Likewise.
29180         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29181         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29182         * ira.c (ira_setup_eliminable_regset): Likewise.
29183         * omp-low.c (gate_expand_omp): Likewise.
29184         (execute_lower_omp): Likewise.
29185         (diagnose_sb_0): Likewise.
29186         (gate_diagnose_omp_blocks): Likewise.
29187         (simd_clone_clauses_extract): Likewise.
29188         (gate): Likewise.
29189
29190 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29191
29192         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29193         correction for little endian...
29194         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29195         here.
29196
29197 2014-01-24  Jeff Law  <law@redhat.com>
29198
29199         PR tree-optimization/59919
29200         * tree-vrp.c (find_assert_locations_1): Do not register asserts
29201         for non-returning calls.
29202
29203 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
29204
29205         * common/config/aarch64/aarch64-common.c
29206         (aarch64_rewrite_mcpu): Handle multiple names.
29207         * config/aarch64/aarch64.h
29208         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29209
29210 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
29211
29212         * input.c (add_file_to_cache_tab): Handle the case where fopen
29213         returns NULL.
29214
29215 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
29216
29217         PR target/59929
29218         * config/i386/i386.md (pushsf splitter): Get stack adjustment
29219         from push operand if code of push isn't PRE_DEC.
29220
29221 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
29222
29223         PR target/59909
29224         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29225         -mquad-memory-atomic.  Update -mquad-memory documentation to say
29226         it is only used for non-atomic loads/stores.
29227
29228         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29229         -mquad-memory or -mquad-memory-atomic switches.
29230
29231         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29232         -mquad-memory-atomic to ISA 2.07 support.
29233
29234         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29235         to separate support of normal quad word memory operations (ldq, stq)
29236         from the atomic quad word memory operations.
29237
29238         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29239         support to separate non-atomic quad word operations from atomic
29240         quad word operations.  Disable non-atomic quad word operations in
29241         little endian mode so that we don't have to swap words after the
29242         load and before the store.
29243         (quad_load_store_p): Add comment about atomic quad word support.
29244         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29245         options printed with -mdebug=reg.
29246
29247         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29248         -mquad-memory-atomic as the test for whether we have quad word
29249         atomic instructions.
29250         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29251         or -mp8-vector are used, allow byte/half-word atomic operations.
29252
29253         * config/rs6000/sync.md (load_lockedti): Insure that the address
29254         is a proper indexed or indirect address for the lqarx instruction.
29255         On little endian systems, swap the hi/lo registers after the lqarx
29256         instruction.
29257         (load_lockedpti): Use indexed_or_indirect_operand predicate to
29258         insure the address is valid for the lqarx instruction.
29259         (store_conditionalti): Insure that the address is a proper indexed
29260         or indirect address for the stqcrx. instruction.  On little endian
29261         systems, swap the hi/lo registers before doing the stqcrx.
29262         instruction.
29263         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29264         insure the address is valid for the stqcrx. instruction.
29265
29266         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29267         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29268         type of quad memory support is available.
29269
29270 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
29271
29272         PR regression/59915
29273         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29274         there is a danger of looping.
29275
29276 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
29277
29278         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29279         force flag_ira_loop_pressure if set via command line.
29280
29281 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29282
29283         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29284         (ashr_simd): New builtin handling DI mode.
29285         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29286         (aarch64_sshr_simddi): New match pattern.
29287         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29288         (vshrd_n_s64): Likewise.
29289         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29290
29291 2014-01-23  Nick Clifton  <nickc@redhat.com>
29292
29293         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29294         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29295         favour of mcu specific scripts.
29296         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29297         430x multilibs.
29298
29299 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
29300             Alex Velenko  <Alex.Velenko@arm.com>
29301
29302         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29303         (vaddv_s16): Likewise.
29304         (vaddv_s32): Likewise.
29305         (vaddv_u8): Likewise.
29306         (vaddv_u16): Likewise.
29307         (vaddv_u32): Likewise.
29308         (vaddvq_s8): Likewise.
29309         (vaddvq_s16): Likewise.
29310         (vaddvq_s32): Likewise.
29311         (vaddvq_s64): Likewise.
29312         (vaddvq_u8): Likewise.
29313         (vaddvq_u16): Likewise.
29314         (vaddvq_u32): Likewise.
29315         (vaddvq_u64): Likewise.
29316         (vaddv_f32): Likewise.
29317         (vaddvq_f32): Likewise.
29318         (vaddvq_f64): Likewise.
29319         (vmaxv_f32): Likewise.
29320         (vmaxv_s8): Likewise.
29321         (vmaxv_s16): Likewise.
29322         (vmaxv_s32): Likewise.
29323         (vmaxv_u8): Likewise.
29324         (vmaxv_u16): Likewise.
29325         (vmaxv_u32): Likewise.
29326         (vmaxvq_f32): Likewise.
29327         (vmaxvq_f64): Likewise.
29328         (vmaxvq_s8): Likewise.
29329         (vmaxvq_s16): Likewise.
29330         (vmaxvq_s32): Likewise.
29331         (vmaxvq_u8): Likewise.
29332         (vmaxvq_u16): Likewise.
29333         (vmaxvq_u32): Likewise.
29334         (vmaxnmv_f32): Likewise.
29335         (vmaxnmvq_f32): Likewise.
29336         (vmaxnmvq_f64): Likewise.
29337         (vminv_f32): Likewise.
29338         (vminv_s8): Likewise.
29339         (vminv_s16): Likewise.
29340         (vminv_s32): Likewise.
29341         (vminv_u8): Likewise.
29342         (vminv_u16): Likewise.
29343         (vminv_u32): Likewise.
29344         (vminvq_f32): Likewise.
29345         (vminvq_f64): Likewise.
29346         (vminvq_s8): Likewise.
29347         (vminvq_s16): Likewise.
29348         (vminvq_s32): Likewise.
29349         (vminvq_u8): Likewise.
29350         (vminvq_u16): Likewise.
29351         (vminvq_u32): Likewise.
29352         (vminnmv_f32): Likewise.
29353         (vminnmvq_f32): Likewise.
29354         (vminnmvq_f64): Likewise.
29355
29356 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
29357
29358         * config/aarch64/aarch64-simd.md
29359         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29360         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29361         (*aarch64_mul3_elt<mode>): Likewise.
29362         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29363         (*aarch64_mul3_elt_to_64v2df): Likewise.
29364         (*aarch64_mla_elt<mode>): Likewise.
29365         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29366         (*aarch64_mls_elt<mode>): Likewise.
29367         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29368         (*aarch64_fma4_elt<mode>): Likewise.
29369         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29370         (*aarch64_fma4_elt_to_64v2df): Likewise.
29371         (*aarch64_fnma4_elt<mode>): Likewise.
29372         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29373         (*aarch64_fnma4_elt_to_64v2df): Likewise.
29374         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29375         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29376         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29377         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29378         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29379         (aarch64_sqdmull_lane<mode>_internal): Likewise.
29380         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29381
29382 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29383
29384         * config/aarch64/aarch64-simd.md
29385         (aarch64_be_checked_get_lane<mode>): New define_expand.
29386         * config/aarch64/aarch64-simd-builtins.def
29387         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29388         New builtin definition.
29389         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29390         Use new safe be builtin.
29391
29392 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
29393
29394         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29395         New define_insn.
29396         (aarch64_be_st1<mode>): Likewise.
29397         (aarch_ld1<VALL:mode>): Define_expand modified.
29398         (aarch_st1<VALL:mode>): Likewise.
29399         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29400         (UNSPEC_ST1): Likewise.
29401
29402 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
29403
29404         * config/microblaze/microblaze.md: Add trap insn and attribute
29405
29406 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
29407
29408         PR preprocessor/58580
29409         * input.h (location_get_source_line): Take an additional line_size
29410         parameter.
29411         (void diagnostics_file_cache_fini): Declare new function.
29412         * input.c (struct fcache): New type.
29413         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29414         New static constants.
29415         (diagnostic_file_cache_init, total_lines_num)
29416         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29417         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29418         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29419         (get_next_line, read_next_line, goto_next_line, read_line_num):
29420         New static function definitions.
29421         (diagnostic_file_cache_fini): New function.
29422         (location_get_source_line): Take an additional output line_len
29423         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
29424         read_line_num.
29425         * diagnostic.c (diagnostic_finish): Call
29426         diagnostic_file_cache_fini.
29427         (adjust_line): Take an additional input parameter for the length
29428         of the line, rather than calculating it with strlen.
29429         (diagnostic_show_locus): Adjust the use of
29430         location_get_source_line and adjust_line with respect to their new
29431         signature.  While displaying a line now, do not stop at the first
29432         null byte.  Rather, display the zero byte as a space and keep
29433         going until we reach the size of the line.
29434         * Makefile.in: Add vec.o to OBJS-libcommon
29435
29436 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
29437             Ilya Tocar  <ilya.tocar@intel.com>
29438
29439         * config/i386/avx512fintrin.h (_mm512_kmov): New.
29440         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29441         (__builtin_ia32_kmov16): Ditto.
29442         * config/i386/i386.md (UNSPEC_KMOV): New.
29443         (kmovw): Ditto.
29444
29445 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
29446
29447         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29448         (_mm512_storeu_si512): Ditto.
29449
29450 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
29451
29452         PR target/52125
29453         * rtl.h (get_referenced_operands): Declare.
29454         * recog.c (get_referenced_operands): New function.
29455         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29456         operands have been referenced when recording LO_SUM references.
29457
29458 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
29459
29460         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29461
29462 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
29463
29464         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29465         Enable for generic and recent AMD targets.
29466
29467 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
29468
29469         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29470         ARG_SIZE note when adjustment was eliminated.
29471
29472 2014-01-22  Jeff Law  <law@redhat.com>
29473
29474         PR tree-optimization/59597
29475         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29476         in file.  Accept new argument REGISTERING and use it to modify
29477         dump output appropriately.
29478         (register_jump_thread): Corresponding changes.
29479         (mark_threaded_blocks): Reinstate code to cancel unprofitable
29480         thread paths involving joiner blocks.  Add code to dump cancelled
29481         jump threading paths.
29482
29483 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
29484
29485         PR rtl-optimization/59477
29486         * lra-constraints.c (inherit_in_ebb): Process call for living hard
29487         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
29488
29489 2014-01-22  Tom Tromey  <tromey@redhat.com>
29490
29491         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29492         PARAMS.
29493         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29494
29495 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29496
29497         PR rtl-optimization/59896
29498         * lra-constraints.c (process_alt_operands): Check unused note for
29499         matched operands of insn with no output reloads.
29500
29501 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
29502
29503         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29504         (mips_move_from_gpr_cost): Likewise.
29505
29506 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29507
29508         PR rtl-optimization/59858
29509         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29510         ira_class_hard_regs_num.
29511         (process_alt_operands): Increase reject for dying matched operand.
29512
29513 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
29514
29515         PR target/59003
29516         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29517         smaller than size, perform several stores or loads and stores
29518         at dst + count - size to store or copy all of size bytes, rather
29519         than just last modesize bytes.
29520
29521 2014-01-20  DJ Delorie  <dj@redhat.com>
29522
29523         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29524         that CLOBBERs are REGs before propogating their values.
29525
29526 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
29527
29528         PR middle-end/59789
29529         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29530         (cgraph_inline_failed_type): New function.
29531         * cgraph.h (DEFCIFCODE): Add type.
29532         (cgraph_inline_failed_type_t): New enum.
29533         (cgraph_inline_failed_type): New prototype.
29534         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29535         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29536         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29537         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29538         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29539         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29540         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29541         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29542         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29543         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29544         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29545         OPTIMIZATION_MISMATCH.
29546         * tree-inline.c (expand_call_inline): Emit errors during
29547         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29548
29549 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
29550
29551         PR target/59685
29552         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29553         mode attribute in insn output.
29554
29555 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
29556
29557         * output.h (output_constant): Delete.
29558         * varasm.c (output_constant): Make private.
29559
29560 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
29561
29562         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29563
29564 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
29565
29566         PR middle-end/59860
29567         * tree.h (fold_builtin_strcat): New prototype.
29568         * builtins.c (fold_builtin_strcat): No longer static.  Add len
29569         argument, if non-NULL, don't call c_strlen.  Optimize
29570         directly into __builtin_memcpy instead of __builtin_strcpy.
29571         (fold_builtin_2): Adjust fold_builtin_strcat caller.
29572         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29573
29574 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
29575
29576         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29577         for SImode_address_operand operands, having only a REG argument.
29578
29579 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29580
29581         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29582         loader name using mbig-endian.
29583         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29584
29585 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
29586
29587         * doc/invoke.texi (-march): Clarify documentation for AArch64.
29588         (-mtune): Likewise.
29589         (-mcpu): Likewise.
29590
29591 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
29592
29593         * config/aarch64/aarch64-protos.h
29594         (aarch64_cannot_change_mode_class_ptr): Declare.
29595         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29596         aarch64_cannot_change_mode_class_ptr): New.
29597         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29598         backend hook aarch64_cannot_change_mode_class.
29599
29600 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
29601
29602         * common/config/aarch64/aarch64-common.c
29603         (aarch64_handle_option): Don't handle any option order logic here.
29604         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29605         selected_cpu, warn on architecture version mismatch.
29606         (aarch64_override_options): Fix parsing order for option strings.
29607
29608 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29609             Iain Sandoe  <iain@codesourcery.com>
29610
29611         PR bootstrap/59496
29612         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29613         warning.  Amend comment to reflect current functionality.
29614
29615 2014-01-20  Richard Biener  <rguenther@suse.de>
29616
29617         PR middle-end/59860
29618         * builtins.c (fold_builtin_strcat): Remove case better handled
29619         by tree-ssa-strlen.c.
29620
29621 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
29622
29623         * config/aarch64/aarch64.opt
29624         (mcpu, march, mtune): Make case-insensitive.
29625
29626 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
29627
29628         PR target/59880
29629         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29630         if operands[1] is a REG or ZERO_EXTEND of a REG.
29631
29632 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
29633
29634         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29635
29636 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
29637
29638         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29639         long non-pic millicode calls.
29640
29641 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29642
29643         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29644
29645 2014-01-19  Kito Cheng  <kito@0xlab.org>
29646
29647         * builtins.c (expand_movstr): Check movstr expand done or fail.
29648
29649 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
29650             H.J. Lu  <hongjiu.lu@intel.com>
29651
29652         PR target/59379
29653         * config/i386/i386.md (*lea<mode>): Zero-extend return register
29654         to DImode for zero-extended addresses.
29655
29656 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
29657
29658         PR rtl-optimization/57763
29659         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29660         on the new indirect jump_insn and increment LABEL_NUSES (label).
29661
29662 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
29663
29664         PR bootstrap/59580
29665         PR bootstrap/59583
29666         * config.gcc (x86_archs): New variable.
29667         (x86_64_archs): Likewise.
29668         (x86_cpus): Likewise.
29669         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29670         --with-arch/--with-cpu= options.
29671         Support --with-arch=/--with-cpu={nehalem,westmere,
29672         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29673
29674 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
29675
29676         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29677         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
29678
29679 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
29680
29681         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29682
29683 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
29684
29685         PR target/58944
29686         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29687         clear cpp_get_options (parse_in)->warn_unused_macros for
29688         ix86_target_macros_internal with cpp_define.
29689
29690 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
29691
29692         * jump.c (delete_related_insns): Keep (use (insn))s.
29693         * reorg.c (redundant_insn): Check for barriers too.
29694
29695 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29696
29697         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29698
29699 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
29700
29701         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29702         call to $$dyncall when TARGET_LONG_CALLS is true.
29703
29704 2014-01-17  Jeff Law  <law@redhat.com>
29705
29706         * ree.c (combine_set_extension): Temporarily disable test for
29707         changing number of hard registers.
29708
29709 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
29710
29711         PR middle-end/58125
29712         * ipa-inline-analysis.c (inline_free_summary):
29713         Do not free summary of aliases.
29714
29715 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
29716
29717         PR middle-end/59706
29718         * gimplify.c (gimplify_expr): Use create_tmp_var
29719         instead of create_tmp_var_raw.  If cond doesn't have
29720         integral type, don't add the IFN_ANNOTATE builtin at all.
29721
29722 2014-01-17  Martin Jambor  <mjambor@suse.cz>
29723
29724         PR ipa/59736
29725         * ipa-cp.c (prev_edge_clone): New variable.
29726         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29727         Also resize prev_edge_clone vector.
29728         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29729         (ipcp_edge_removal_hook): New function.
29730         (ipcp_driver): Register ipcp_edge_removal_hook.
29731
29732 2014-01-17  Andrew Pinski  <apinski@cavium.com>
29733             Steve Ellcey  <sellcey@mips.com>
29734
29735         PR target/59462
29736         * config/mips/mips.c (mips_print_operand): Check operand mode instead
29737         of operator mode.
29738
29739 2014-01-17  Jeff Law  <law@redhat.com>
29740
29741         PR middle-end/57904
29742         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29743         so that pass_ccp runs first.
29744
29745 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29746
29747         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29748         (ix86_adjust_cost): Use !TARGET_XXX.
29749         (do_reorder_for_imul): Likewise.
29750         (swap_top_of_ready_list): Likewise.
29751         (ix86_sched_reorder): Likewise.
29752
29753 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29754
29755         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29756         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
29757         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
29758         (intel_memset): New.  Duplicate slm_memset.
29759         (intel_cost): New.  Duplicate slm_cost.
29760         (m_INTEL): New macro.
29761         (processor_target_table): Add "intel".
29762         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29763         with PROCESSOR_INTEL for "intel".
29764         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
29765         PROCESSOR_SILVERMONT.
29766         (ix86_issue_rate): Likewise.
29767         (ix86_adjust_cost): Likewise.
29768         (ia32_multipass_dfa_lookahead): Likewise.
29769         (swap_top_of_ready_list): Likewise.
29770         (ix86_sched_reorder): Likewise.
29771         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29772         instead of TARGET_OPT_AGU.
29773         * config/i386/i386.h (TARGET_INTEL): New.
29774         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29775         (processor_type): Add PROCESSOR_INTEL.
29776         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29777         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29778
29779 2014-01-17  Marek Polacek  <polacek@redhat.com>
29780
29781         PR c/58346
29782         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29783         size is zero.
29784
29785 2014-01-17  Richard Biener  <rguenther@suse.de>
29786
29787         PR tree-optimization/46590
29788         * opts.c (default_options_table): Add entries for
29789         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29790         all enabled at -O1 but not for -Og.
29791         * common.opt (fbranch-count-reg): Remove Init(1).
29792         (fmove-loop-invariants): Likewise.
29793         (ftree-pta): Likewise.
29794
29795 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
29796
29797         * config/i386/i386.c (ix86_data_alignment): For compatibility with
29798         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29799         decls to at least the GCC 4.8 used alignments.
29800
29801         PR fortran/59440
29802         * tree-nested.c (convert_nonlocal_reference_stmt,
29803         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29804         of GIMPLE_BIND stmts, adjust associated decls.
29805
29806 2014-01-17  Richard Biener  <rguenther@suse.de>
29807
29808         PR tree-optimization/46590
29809         * vec.h (vec<>::bseach): New member function implementing
29810         binary search according to C89 bsearch.
29811         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29812         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29813         bitmap pointer again.  Make accesses_in_loop a flat array.
29814         (mem_ref_obstack): New global.
29815         (outermost_indep_loop): Adjust for mem_ref->stored changes.
29816         (mark_ref_stored): Likewise.
29817         (ref_indep_loop_p_2): Likewise.
29818         (set_ref_stored_in_loop): New helper function.
29819         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29820         (memref_free): Adjust.
29821         (record_mem_ref_loc): Simplify.
29822         (gather_mem_refs_stmt): Adjust.
29823         (sort_locs_in_loop_postorder_cmp): New function.
29824         (analyze_memory_references): Sort accesses_in_loop after
29825         loop postorder number.
29826         (find_ref_loc_in_loop_cmp): New function.
29827         (for_all_locs_in_loop): Find relevant cluster of locs in
29828         accesses_in_loop and iterate without recursion.
29829         (execute_sm): Avoid uninit warning.
29830         (struct ref_always_accessed): Simplify.
29831         (ref_always_accessed::operator ()): Likewise.
29832         (ref_always_accessed_p): Likewise.
29833         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29834         loop postorder numbers here.
29835         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29836         numbers.
29837
29838 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
29839
29840         PR c++/57945
29841         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29842         on decls for which assemble_alias has been called.
29843
29844 2014-01-17  Nick Clifton  <nickc@redhat.com>
29845
29846         * config/msp430/msp430.opt: (mcpu): New option.
29847         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29848         (msp430_option_override): Parse target_cpu.  If the MCU name
29849         matches a generic string, clear target_mcu.
29850         (msp430_attr): Allow numeric interrupt values up to 63.
29851         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29852         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29853         option.
29854         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29855         Add mcpu matches.
29856         * config/msp430/msp430.md (popm): Use %J rather than %I.
29857         (addsi3): Use msp430_nonimmediate_operand for operand 2.
29858         (addhi_cy_i): Use immediate_operand for operand 2.
29859         * doc/invoke.texi: Document -mcpu option.
29860
29861 2014-01-17  Richard Biener  <rguenther@suse.de>
29862
29863         PR rtl-optimization/38518
29864         * df.h (df_analyze_loop): Declare.
29865         * df-core.c: Include cfgloop.h.
29866         (df_analyze_1): Split out main part of df_analyze.
29867         (df_analyze): Adjust.
29868         (loop_inverted_post_order_compute): New function.
29869         (loop_post_order_compute): Likewise.
29870         (df_analyze_loop): New function avoiding whole-function
29871         postorder computes.
29872         * loop-invariant.c (find_defs): Use df_analyze_loop.
29873         (find_invariants): Adjust.
29874         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29875
29876 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
29877
29878         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29879         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29880
29881 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
29882
29883         * ipa-ref.c (ipa_remove_stmt_references): Fix references
29884         traversal when removing references.
29885
29886 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
29887
29888         PR ipa/59775
29889         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29890
29891 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
29892
29893         PR middle-end/56791
29894         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29895         pushing a reload for an autoinc when we had previously reloaded an
29896         inner part of the address.
29897
29898 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
29899
29900         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29901         field.
29902         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29903         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29904         when not giving up or versioning for alias only because of
29905         loop->safelen.
29906         (vect_analyze_data_ref_dependences): Set to true.
29907         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29908         is a GIMPLE_PHI.
29909         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29910         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29911         to the condition.
29912
29913         PR middle-end/58344
29914         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29915
29916         PR target/59839
29917         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29918         operand 0 predicate for gathers, use a new pseudo as subtarget.
29919
29920 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
29921
29922         PR middle-end/59609
29923         * lra-constraints.c (process_alt_operands): Add printing debug info.
29924         Check absence of input/output reloads for matched operands too.
29925
29926 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
29927
29928         PR rtl-optimization/59835
29929         * ira.c (ira_init_register_move_cost): Increase cost for
29930         impossible modes.
29931
29932 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
29933
29934         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29935
29936 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
29937
29938         PR target/59780
29939         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29940         non-register objects.  Use gen_(high/low)part more consistently.
29941         Fix assertions.
29942
29943 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
29944
29945         PR target/59844
29946         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29947         endian support, remove tests for WORDS_BIG_ENDIAN.
29948         (p8_mfvsrd_3_<mode>): Likewise.
29949         (reload_gpr_from_vsx<mode>): Likewise.
29950         (reload_gpr_from_vsxsf): Likewise.
29951         (p8_mfvsrd_4_disf): Likewise.
29952
29953 2014-01-16  Richard Biener  <rguenther@suse.de>
29954
29955         PR rtl-optimization/46590
29956         * lcm.c (compute_antinout_edge): Use postorder iteration.
29957         (compute_laterin): Use inverted postorder iteration.
29958
29959 2014-01-16  Nick Clifton  <nickc@redhat.com>
29960
29961         PR middle-end/28865
29962         * varasm.c (output_constant): Return the number of bytes actually
29963         emitted.
29964         (output_constructor_array_range): Update the field size with the
29965         number of bytes emitted by output_constant.
29966         (output_constructor_regular_field): Likewise.  Also do not
29967         complain if the total number of bytes emitted is now greater
29968         than the expected fieldpos.
29969         * output.h (output_constant): Update prototype and descriptive comment.
29970
29971 2014-01-16  Marek Polacek  <polacek@redhat.com>
29972
29973         PR middle-end/59827
29974         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29975         it is error_mark_node.
29976
29977 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
29978
29979         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29980         VALID_AVX256_REG_OR_OI_MODE.
29981
29982 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
29983
29984         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29985         current procedure should be profiled.
29986
29987 2014-01-15  Andrew Pinski  <apinski@cavium.com>
29988
29989         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29990         of moving from/to the STACK_REG register class.
29991
29992 2014-01-15  Richard Henderson  <rth@redhat.com>
29993
29994         PR debug/54694
29995         * reginfo.c (global_regs_decl): Globalize.
29996         * rtl.h (global_regs_decl): Declare.
29997         * ira.c (do_reload): Diagnose frame_pointer_needed and it
29998         reserved via global_regs.
29999
30000 2014-01-15  Teresa Johnson  <tejohnson@google.com>
30001
30002         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30003
30004 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
30005
30006         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30007         and vmulosh rather than call gen_vec_widen_smult_*.
30008         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30009         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30010         (vec_widen_smult_even_v16qi): Likewise.
30011         (vec_widen_umult_even_v8hi): Likewise.
30012         (vec_widen_smult_even_v8hi): Likewise.
30013         (vec_widen_umult_odd_v16qi): Likewise.
30014         (vec_widen_smult_odd_v16qi): Likewise.
30015         (vec_widen_umult_odd_v8hi): Likewise.
30016         (vec_widen_smult_odd_v8hi): Likewise.
30017         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30018         vmuloub rather than call gen_vec_widen_umult_*.
30019         (vec_widen_umult_lo_v16qi): Likewise.
30020         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30021         vmulosb rather than call gen_vec_widen_smult_*.
30022         (vec_widen_smult_lo_v16qi): Likewise.
30023         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30024         rather than call gen_vec_widen_umult_*.
30025         (vec_widen_umult_lo_v8hi): Likewise.
30026         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30027         rather than call gen_vec_widen_smult_*.
30028         (vec_widen_smult_lo_v8hi): Likewise.
30029
30030 2014-01-15  Jeff Law  <law@redhat.com>
30031
30032         PR tree-optimization/59747
30033         * ree.c (find_and_remove_re): Properly handle case where a second
30034         eliminated extension requires widening a copy created for elimination
30035         of a prior extension.
30036         (combine_set_extension): Ensure that the number of hard regs needed
30037         for a destination register does not change when we widen it.
30038
30039 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30040
30041         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30042         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30043         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30044         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30045         (avr-*-rtems*): Likewise.
30046         (bfin*-rtems*): Likewise.
30047         (moxie-*-rtems*): Likewise.
30048         (h8300-*-rtems*): Likewise.
30049         (i[34567]86-*-rtems*): Likewise.
30050         (lm32-*-rtems*): Likewise.
30051         (m32r-*-rtems*): Likewise.
30052         (m68k-*-rtems*): Likewise.
30053         (microblaze*-*-rtems*): Likewise.
30054         (mips*-*-rtems*): Likewise.
30055         (powerpc-*-rtems*): Likewise.
30056         (sh-*-rtems*): Likewise.
30057         (sparc-*-rtems*): Likewise.
30058         (sparc64-*-rtems*): Likewise.
30059         (v850-*-rtems*): Likewise.
30060         (m32c-*-rtems*): Likewise.
30061
30062 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
30063
30064         PR rtl-optimization/59511
30065         * ira.c (ira_init_register_move_cost): Use memory costs for some
30066         cases of register move cost calculations.
30067         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30068         instead of BB frequency.
30069         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30070         * lra-assigns.c (find_hard_regno_for): Ditto.
30071
30072 2014-01-15  Richard Biener  <rguenther@suse.de>
30073
30074         PR tree-optimization/59822
30075         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30076         (vectorizable_load): Use it to hoist defs of uses of invariant
30077         loads out of the loop.
30078
30079 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
30080             Kugan Vivekanandarajah  <kuganv@linaro.org>
30081
30082         PR target/59695
30083         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30084         truncation.
30085
30086 2014-01-15  Richard Biener  <rguenther@suse.de>
30087
30088         PR rtl-optimization/59802
30089         * lcm.c (compute_available): Use inverted postorder to seed
30090         the initial worklist.
30091
30092 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30093
30094         PR target/59803
30095         * config/s390/s390.c (s390_preferred_reload_class): Don't return
30096         ADDR_REGS for invalid symrefs in non-PIC code.
30097
30098 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
30099
30100         PR other/58712
30101         * builtins.c (determine_block_size): Initialize *probable_max_size
30102         even if len_rtx is CONST_INT.
30103
30104 2014-01-14  Andrew Pinski  <apinski@cavium.com>
30105
30106         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30107         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30108         (cortexa53_tunings): Likewise.
30109         (aarch64_sched_issue_rate): New function.
30110         (TARGET_SCHED_ISSUE_RATE): Define.
30111
30112 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30113
30114         * ira-costs.c (find_costs_and_classes): Add missed
30115         ira_init_register_move_cost_if_necessary.
30116
30117 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
30118
30119         PR target/59787
30120         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30121
30122 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
30123
30124         PR target/59794
30125         * config/i386/i386.c (type_natural_mode): Add a bool parameter
30126         to indicate if type is used for function return value.  Warn ABI
30127         change if the vector mode isn't available for function return value.
30128         (ix86_function_arg_advance): Pass false to type_natural_mode.
30129         (ix86_function_arg): Likewise.
30130         (ix86_gimplify_va_arg): Likewise.
30131         (function_arg_32): Don't warn ABI change.
30132         (ix86_function_value): Pass true to type_natural_mode.
30133         (ix86_return_in_memory): Likewise.
30134         (ix86_struct_value_rtx): Removed.
30135         (TARGET_STRUCT_VALUE_RTX): Likewise.
30136
30137 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30138
30139         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30140         converting a conditional jump into a conditional return.
30141
30142 2014-01-14  Richard Biener  <rguenther@suse.de>
30143
30144         PR tree-optimization/58921
30145         PR tree-optimization/59006
30146         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30147         hoisting invariant stmts.
30148         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30149         invariant loads on the preheader edge if possible.
30150
30151 2014-01-14  Joey Ye  <joey.ye@arm.com>
30152
30153         * doc/plugin.texi (Building GCC plugins): Update to C++.
30154
30155 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
30156
30157         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30158         (_mm_rcp28_round_ss): Ditto.
30159         (_mm_rsqrt28_round_sd): Ditto.
30160         (_mm_rsqrt28_round_ss): Ditto.
30161         (_mm_rcp28_sd): Ditto.
30162         (_mm_rcp28_ss): Ditto.
30163         (_mm_rsqrt28_sd): Ditto.
30164         (_mm_rsqrt28_ss): Ditto.
30165         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30166         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30167         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30168         (IX86_BUILTIN_RCP28SD): Ditto.
30169         (IX86_BUILTIN_RCP28SS): Ditto.
30170         (IX86_BUILTIN_RSQRT28SD): Ditto.
30171         (IX86_BUILTIN_RSQRT28SS): Ditto.
30172         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30173         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30174         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30175         (ix86_expand_special_args_builtin): Expand new FTYPE.
30176         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30177         (srcp14<mode>): Make insn unary.
30178         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30179         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30180         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30181         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30182         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30183         Fix rounding: make it SAE only.
30184         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30185         Ditto.
30186         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30187         Ditto.
30188         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30189         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30190         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30191         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30192         (round_saeonly_mask_scalar_operand4): Ditto.
30193         (round_saeonly_mask_scalar_op3): Ditto.
30194         (round_saeonly_mask_scalar_op4): Ditto.
30195
30196 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30197
30198         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30199         Implement -maltivec=be for vec_insert and vec_extract.
30200
30201 2014-01-10  DJ Delorie  <dj@redhat.com>
30202
30203         * config/msp430/msp430.md (call_internal): Don't allow memory
30204         references with SP as the base register.
30205         (call_value_internal): Likewise.
30206         * config/msp430/constraints.md (Yc): New.  For memory references
30207         that don't use SP as a base register.
30208
30209         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30210         "an integer without a # prefix"
30211         * config/msp430/msp430.md (epilogue_helper): Use it.
30212
30213 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
30214
30215         PR target/59617
30216         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30217         AVX512F gather builtins.
30218         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30219         on gather decls with INTEGER_TYPE masktype.
30220         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30221         directly into the builtin rather than hoisting it before loop.
30222
30223         PR tree-optimization/59387
30224         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30225         (scev_const_prop): If folded_casts and type has undefined overflow,
30226         use force_gimple_operand instead of force_gimple_operand_gsi and
30227         for each added stmt if it is assign with
30228         arith_code_with_undefined_signed_overflow, call
30229         rewrite_to_defined_overflow.
30230         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30231         gimple-fold.h instead.
30232         (arith_code_with_undefined_signed_overflow,
30233         rewrite_to_defined_overflow): Moved to ...
30234         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30235         rewrite_to_defined_overflow): ... here.  No longer static.
30236         Include gimplify-me.h.
30237         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30238         rewrite_to_defined_overflow): New prototypes.
30239
30240 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30241
30242         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30243
30244 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
30245
30246         * builtins.c (get_object_alignment_2): Minor tweak.
30247         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30248
30249 2014-01-13  Christian Bruel  <christian.bruel@st.com>
30250
30251         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30252         optimized non constant lengths.
30253
30254 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
30255
30256         PR libgomp/59194
30257         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30258         load as __atomic_load_N if possible.
30259
30260 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30261
30262         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30263         target parameter.
30264         (rs6000_expand_builtin): Adjust call.
30265
30266 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
30267
30268         PR target/58115
30269         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30270         * config/rs6000/rs6000.c: Include target-globals.h.
30271         (rs6000_set_current_function): Instead of doing target_reinit
30272         unconditionally, use save_target_globals_default_opts and
30273         restore_target_globals.
30274
30275         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30276         FPSCR.
30277         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30278         (rs6000_expand_builtin): Handle mffs and mtfsf.
30279         (rs6000_init_builtins): Define mffs and mtfsf.
30280         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30281         (rs6000_mffs): New pattern.
30282         (rs6000_mtfsf): New pattern.
30283
30284 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
30285
30286         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30287         Start narrowing with START.  Apply candidate-use pair
30288         and check overall cost in narrowing.
30289         (iv_ca_prune): Pass new argument.
30290
30291 2014-01-10  Jeff Law  <law@redhat.com>
30292
30293         PR middle-end/59743
30294         * ree.c (combine_reaching_defs): Ensure the defining statement
30295         occurs before the extension when optimizing extensions with
30296         different source and destination hard registers.
30297
30298 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
30299
30300         PR ipa/58585
30301         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30302         vtables into the type inheritance graph.
30303
30304 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30305
30306         PR rtl-optimization/59754
30307         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30308         modes in the REGNO != REGNO case.
30309
30310 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30311
30312         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30313
30314 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30315
30316         PR tree-optimization/59745
30317         * tree-predcom.c (tree_predictive_commoning_loop): Call
30318         free_affine_expand_cache if giving up because components is NULL.
30319
30320         * target-globals.c (save_target_globals): Allocate < 4KB structs using
30321         GC in payload of target_globals struct instead of allocating them on
30322         the heap and the larger structs separately using GC.
30323         * target-globals.h (struct target_globals): Make regs, hard_regs,
30324         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30325         of GTY((skip)) and change type to void *.
30326         (reset_target_globals): Cast loads from those fields to corresponding
30327         types.
30328
30329 2014-01-10  Steve Ellcey  <sellcey@mips.com>
30330
30331         PR plugins/59335
30332         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30333         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30334         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30335
30336 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
30337
30338         PR target/59744
30339         * aarch64-modes.def (CC_Zmode): New flags mode.
30340         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30341         represents an equality.
30342         (aarch64_get_condition_code): Handle CC_Zmode.
30343         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30344
30345 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30346
30347         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30348         extraction in good case.
30349
30350 2014-01-10  Richard Biener  <rguenther@suse.de>
30351
30352         PR tree-optimization/59374
30353         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30354         checking after SLP discovery.  Mark stmts not participating
30355         in any SLP instance properly.
30356
30357 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30358
30359         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30360         when handling a SET rtx.
30361
30362 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30363
30364         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30365         (cortex-a57): Likewise.
30366         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30367
30368 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30369
30370         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30371         non-iwmmxt builtins.
30372
30373 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
30374
30375         PR ipa/58252
30376         PR ipa/59226
30377         * ipa-devirt.c record_target_from_binfo): Take as argument
30378         stack of binfos and lookup matching one for virtual inheritance.
30379         (possible_polymorphic_call_targets_1): Update.
30380
30381 2014-01-10  Huacai Chen  <chenhc@lemote.com>
30382
30383         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30384         kernel strings for Loongson-2E/2F/3A.
30385
30386 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
30387
30388         PR middle-end/59670
30389         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30390         is_gimple_call before calling gimple_call_internal_p.
30391
30392 2014-01-09  Steve Ellcey  <sellcey@mips.com>
30393
30394         * Makefile.in (TREE_FLOW_H): Remove.
30395         (TREE_SSA_H): Add file names from tree-flow.h.
30396         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30397         * tree.h: Remove tree-flow.h reference.
30398         * hash-table.h: Remove tree-flow.h reference.
30399         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30400         reference with tree-ssa-loop.h.
30401
30402 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30403
30404         * doc/invoke.texi: Add -maltivec={be,le} options, and document
30405         default element-order behavior for -maltivec.
30406         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30407         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30408         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30409         when targeting big endian, at least for now.
30410         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30411
30412 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
30413
30414         PR middle-end/47735
30415         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30416         var satisfies use_register_for_decl, just take into account type
30417         alignment, rather than decl alignment.
30418
30419         PR tree-optimization/59622
30420         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
30421         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30422         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30423         Don't devirtualize for inplace at all.  For targets.length () == 1,
30424         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30425
30426 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
30427
30428         * config/i386/i386.md (cpu): Remove the unused btver1.
30429
30430 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
30431
30432         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30433
30434 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
30435
30436         PR target/58115
30437         * tree-core.h (struct target_globals): New forward declaration.
30438         (struct tree_target_option): Add globals field.
30439         * tree.h (TREE_TARGET_GLOBALS): Define.
30440         (prepare_target_option_nodes_for_pch): New prototype.
30441         * target-globals.h (struct target_globals): Define even if
30442         !SWITCHABLE_TARGET.
30443         * tree.c (prepare_target_option_node_for_pch,
30444         prepare_target_option_nodes_for_pch): New functions.
30445         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30446         * config/i386/i386.c: Include target-globals.h.
30447         (ix86_set_current_function): Instead of doing target_reinit
30448         unconditionally, use save_target_globals_default_opts and
30449         restore_target_globals.
30450
30451 2014-01-09  Richard Biener  <rguenther@suse.de>
30452
30453         PR tree-optimization/59715
30454         * tree-cfg.h (split_critical_edges): Declare.
30455         * tree-cfg.c (split_critical_edges): Export.
30456         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30457
30458 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30459
30460         * cfgexpand.c (expand_stack_vars): Optionally disable
30461         asan stack protection.
30462         (expand_used_vars): Likewise.
30463         (partition_stack_vars): Likewise.
30464         * asan.c (asan_emit_stack_protection): Optionally disable
30465         after return stack usage.
30466         (instrument_derefs): Optionally disable memory access instrumentation.
30467         (instrument_builtin_call): Likewise.
30468         (instrument_strlen_call): Likewise.
30469         (asan_protect_global): Optionally disable global variables protection.
30470         * doc/invoke.texi: Added doc for new options.
30471         * params.def: Added new options.
30472         * params.h: Likewise.
30473
30474 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
30475
30476         PR rtl-optimization/59724
30477         * ifcvt.c (cond_exec_process_if_block): Don't call
30478         flow_find_head_matching_sequence with 0 longest_match.
30479         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30480         non-active insns if !stop_after.
30481         (try_head_merge_bb): Revert 2014-01-07 changes.
30482
30483 2014-01-08  Jeff Law  <law@redhat.com>
30484
30485         * ree.c (get_sub_rtx): New function, extracted from...
30486         (merge_def_and_ext): Here.
30487         (combine_reaching_defs): Use get_sub_rtx.
30488
30489 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
30490
30491         * cgraph.h (varpool_variable_node): Do not choke on null node.
30492
30493 2014-01-08  Catherine Moore  <clm@codesourcery.com>
30494
30495         * config/mips/mips.md (simple_return): Attempt to use JRC
30496         for microMIPS.
30497         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30498
30499 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
30500
30501         PR rtl-optimization/59137
30502         * reorg.c (steal_delay_list_from_target): Call update_block for
30503         elided insns.
30504         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30505
30506 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30507
30508         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30509         two duplicate entries.
30510
30511 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
30512
30513         Revert:
30514         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
30515
30516         * config/mips/mips.c (mips_truncated_op_cost): New function.
30517         (mips_rtx_costs): Adjust test for BADDU.
30518         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30519
30520         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
30521
30522         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30523         (*baddu_si): ...this new pattern.
30524
30525 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
30526
30527         PR ipa/59722
30528         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30529
30530 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30531
30532         PR middle-end/57748
30533         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30534         inner_reference_p.
30535         (expand_expr, expand_normal): Adjust.
30536         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30537         inner_reference_p. Use inner_reference_p to expand inner references.
30538         (store_expr): Adjust.
30539         * cfgexpand.c (expand_call_stmt): Adjust.
30540
30541 2014-01-08  Rong Xu  <xur@google.com>
30542
30543         * gcov-io.c (gcov_var): Move from gcov-io.h.
30544         (gcov_position): Ditto.
30545         (gcov_is_error): Ditto.
30546         (gcov_rewrite): Ditto.
30547         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30548         only part to libgcc/libgcov.h.
30549
30550 2014-01-08  Marek Polacek  <polacek@redhat.com>
30551
30552         PR middle-end/59669
30553         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30554
30555 2014-01-08  Marek Polacek  <polacek@redhat.com>
30556
30557         PR sanitizer/59667
30558         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30559
30560 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
30561
30562         PR rtl-optimization/59649
30563         * stor-layout.c (get_mode_bounds): For BImode return
30564         0 and STORE_FLAG_VALUE.
30565
30566 2014-01-08  Richard Biener  <rguenther@suse.de>
30567
30568         PR middle-end/59630
30569         * gimple.h (is_gimple_builtin_call): Remove.
30570         (gimple_builtin_call_types_compatible_p): New.
30571         (gimple_call_builtin_p): New overload.
30572         * gimple.c (is_gimple_builtin_call): Remove.
30573         (validate_call): Rename to ...
30574         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
30575         check return types.
30576         (validate_type): New static function.
30577         (gimple_call_builtin_p): New overload and adjust.
30578         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30579         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
30580         (gimple_fold_stmt_to_constant_1): Likewise.
30581         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30582
30583 2014-01-08  Richard Biener  <rguenther@suse.de>
30584
30585         PR middle-end/59471
30586         * gimplify.c (gimplify_expr): Gimplify register-register type
30587         VIEW_CONVERT_EXPRs to separate stmts.
30588
30589 2014-01-07  Jeff Law  <law@redhat.com>
30590
30591         PR middle-end/53623
30592         * ree.c (combine_set_extension): Handle case where source
30593         and destination registers in an extension insn are different.
30594         (combine_reaching_defs): Allow source and destination registers
30595         in extension to be different under limited circumstances.
30596         (add_removable_extension): Remove restriction that the
30597         source and destination registers in the extension are the same.
30598         (find_and_remove_re): Emit a copy from the extension's
30599         destination to its source after the defining insn if
30600         the source and destination registers are different.
30601
30602         PR middle-end/59285
30603         * ifcvt.c (merge_if_block): If we are merging a block with more than
30604         one successor with a block with no successors, remove any BARRIER
30605         after the second block.
30606
30607 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
30608
30609         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30610
30611 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
30612
30613         PR target/59652
30614         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30615         for 14-bit register offsets when INT14_OK_STRICT is false.
30616
30617 2014-01-07  Roland Stigge  <stigge@antcom.de>
30618             Michael Meissner  <meissner@linux.vnet.ibm.com>
30619
30620         PR 57386/target
30621         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30622         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
30623
30624 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
30625
30626         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30627         -mcpu.
30628
30629 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
30630
30631         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30632         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30633         rtx is const0_rtx or not.
30634
30635 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
30636
30637         PR target/58115
30638         * target-globals.c (save_target_globals): Remove this_fn_optab
30639         handling.
30640         * toplev.c: Include optabs.h.
30641         (target_reinit): Temporarily restore the global options if another
30642         set of options are in force.
30643
30644 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
30645
30646         PR rtl-optimization/58668
30647         * cfgcleanup.c (flow_find_cross_jump): Don't count
30648         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
30649         to determine what is counted.
30650         (flow_find_head_matching_sequence): Use active_insn_p to determine
30651         what is counted.
30652         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30653         counting change.
30654         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30655         determine what is counted.
30656
30657         PR tree-optimization/59643
30658         * tree-predcom.c (split_data_refs_to_components): If one dr is
30659         read and one write, determine_offset fails and the write isn't
30660         in the bad component, just put the read into the bad component.
30661
30662 2014-01-07  Mike Stump  <mikestump@comcast.net>
30663             Jakub Jelinek  <jakub@redhat.com>
30664
30665         PR pch/59436
30666         * tree-core.h (struct tree_optimization_option): Change optabs
30667         type from unsigned char * to void *.
30668         * optabs.c (init_tree_optimization_optabs): Adjust
30669         TREE_OPTIMIZATION_OPTABS initialization.
30670
30671 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
30672
30673         PR target/59644
30674         * config/i386/i386.h (struct machine_function): Add
30675         no_drap_save_restore field.
30676         * config/i386/i386.c (ix86_save_reg): Use
30677         !cfun->machine->no_drap_save_restore instead of
30678         crtl->stack_realign_needed.
30679         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30680         this function clears frame_pointer_needed.  Set
30681         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30682         and DRAP reg is needed.
30683
30684 2014-01-06  Marek Polacek  <polacek@redhat.com>
30685
30686         PR c/57773
30687         * doc/implement-c.texi: Mention that other integer types are
30688         permitted as bit-field types in strictly conforming mode.
30689
30690 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
30691
30692         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30693         is newly allocated.
30694
30695 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
30696
30697         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30698
30699 2014-01-06  Martin Jambor  <mjambor@suse.cz>
30700
30701         PR ipa/59008
30702         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30703         to int.
30704         * ipa-prop.c (ipa_print_node_params): Fix indentation.
30705
30706 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
30707
30708         PR debug/59350
30709         PR debug/59510
30710         * var-tracking.c (add_stores): Preserve the value of the source even if
30711         we don't record the store.
30712
30713 2014-01-06  Terry Guo  <terry.guo@arm.com>
30714
30715         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30716
30717 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
30718
30719         PR bootstrap/59541
30720         * config/darwin.c (darwin_function_section): Adjust return values to
30721         correspond to optimisation changes made in r206070.
30722
30723 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
30724
30725         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30726         from prefetch_block tune setting.
30727         (nocona_cost): Correct size of prefetch block to 64.
30728
30729 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30730
30731         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30732         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30733         used to save the static chain register in the computation of the offset
30734         from which the FP registers need to be restored.
30735
30736 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
30737
30738         PR tree-optimization/59519
30739         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30740         ICE if get_current_def (current_new_name) is already non-NULL, as long
30741         as it is a phi result of some other phi in *new_exit_bb that has
30742         the same argument.
30743
30744         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30745         or vmovdqu* for misaligned_operand.
30746         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30747         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30748         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30749         aligned_mem for AVX512F masked aligned load and store builtins and for
30750         non-temporal moves.
30751
30752 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
30753
30754         PR tree-optimization/59651
30755         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30756         Address range for negative step should be added by TYPE_SIZE_UNIT.
30757
30758 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
30759
30760         * config/m68k/m68k.c (handle_move_double): Handle pushes with
30761         overlapping registers also for registers other than the stack pointer.
30762
30763 2014-01-03  Marek Polacek  <polacek@redhat.com>
30764
30765         PR other/59661
30766         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30767         __builtin_FILE.
30768
30769 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
30770
30771         PR target/59625
30772         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30773         asm goto as jump.
30774
30775         * config/i386/i386.md (MODE_SIZE): New mode attribute.
30776         (push splitter): Use <P:MODE_SIZE> instead of
30777         GET_MODE_SIZE (<P:MODE>mode).
30778         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30779         (mov -1, reg peephole2): Likewise.
30780         * config/i386/sse.md (*mov<mode>_internal,
30781         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30782         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30783         *<code><mode>3, *andnot<mode>3<mask_name>,
30784         <mask_codefor><code><mode>3<mask_name>): Likewise.
30785         * config/i386/subst.md (mask_mode512bit_condition,
30786         sd_mask_mode512bit_condition): Likewise.
30787
30788 2014-01-02  Xinliang David Li  <davidxl@google.com>
30789
30790         PR tree-optimization/59303
30791         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30792         (dump_predicates): Better output format.
30793         (pred_equal_p): New function.
30794         (is_neq_relop_p): Ditto.
30795         (is_neq_zero_form_p): Ditto.
30796         (pred_expr_equal_p): Ditto.
30797         (pred_neg_p): Ditto.
30798         (simplify_pred): Ditto.
30799         (simplify_preds_2): Ditto.
30800         (simplify_preds_3): Ditto.
30801         (simplify_preds_4): Ditto.
30802         (simplify_preds): Ditto.
30803         (push_pred): Ditto.
30804         (push_to_worklist): Ditto.
30805         (get_pred_info_from_cmp): Ditto.
30806         (is_degenerated_phi): Ditto.
30807         (normalize_one_pred_1): Ditto.
30808         (normalize_one_pred): Ditto.
30809         (normalize_one_pred_chain): Ditto.
30810         (normalize_preds): Ditto.
30811         (normalize_cond_1): Remove function.
30812         (normalize_cond): Ditto.
30813         (is_gcond_subset_of): Ditto.
30814         (is_subset_of_any): Ditto.
30815         (is_or_set_subset_of): Ditto.
30816         (is_and_set_subset_of): Ditto.
30817         (is_norm_cond_subset_of): Ditto.
30818         (pred_chain_length_cmp): Ditto.
30819         (convert_control_dep_chain_into_preds): Type change.
30820         (find_predicates): Ditto.
30821         (find_def_preds): Ditto.
30822         (destroy_predicates_vecs): Ditto.
30823         (find_matching_predicates_in_rest_chains): Ditto.
30824         (use_pred_not_overlap_with_undef_path_pred): Ditto.
30825         (is_pred_expr_subset): Ditto.
30826         (is_pred_chain_subset_of): Ditto.
30827         (is_included_in): Ditto.
30828         (is_superset_of): Ditto.
30829
30830 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30831
30832         Update copyright years.
30833
30834 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30835
30836         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30837         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30838         config/arc/arc.md, config/arc/arc.opt,
30839         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30840         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30841         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30842         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30843         config/linux-protos.h, config/linux.c, config/winnt-c.c,
30844         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30845         vtable-verify.c, vtable-verify.h: Use the standard form for the
30846         copyright notice.
30847
30848 2014-01-02  Tobias Burnus  <burnus@net-b.de>
30849
30850         * gcc.c (process_command): Update copyright notice dates.
30851         * gcov-dump.c: Ditto.
30852         * gcov.c: Ditto.
30853         * doc/cpp.texi: Bump @copying's copyright year.
30854         * doc/cppinternals.texi: Ditto.
30855         * doc/gcc.texi: Ditto.
30856         * doc/gccint.texi: Ditto.
30857         * doc/gcov.texi: Ditto.
30858         * doc/install.texi: Ditto.
30859         * doc/invoke.texi: Ditto.
30860
30861 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30862
30863         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30864
30865 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
30866
30867         * config/i386/sse.md (*mov<mode>_internal): Guard
30868         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30869
30870         PR rtl-optimization/59647
30871         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30872         new_rtx into UNSIGNED_FLOAT rtxes.
30873 \f
30874 Copyright (C) 2014 Free Software Foundation, Inc.
30875
30876 Copying and distribution of this file, with or without modification,
30877 are permitted in any medium without royalty provided the copyright
30878 notice and this notice are preserved.