ipa-prop.c (ipa_modify_formal_parameters): Do not merge type variants.
[official-gcc.git] / gcc / ChangeLog
blob354fa6aadc8dfd2c2dccda5bdf8b33711c86556a
1 2014-10-01  Jan HUbicka  <hubicka@ucw.cz>
3         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
4         type variants.
6 2014-10-01  Jan HUbicka  <hubicka@ucw.cz>
8         * ipa-polymorphic-call.c
9         (ipa_polymorphic_call_context::restrict_to_inner_class):
10         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
11         use speculation_consistent_p to do so; Add CONSDER_BASES
12         and CONSIDER_PLACEMENT_NEW parameters.
13         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
14         short circuit obvious cases.
15         (ipa_polymorphic_call_context::dump): Improve formatting.
16         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
17         combine_speculation_with to record speculations; Do not ICE when
18         object is located in pointer type decl; do not ICE for methods
19         of UNION_TYPE; do not record nonpolymorphic types.
20         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
21         (ipa_polymorphic_call_context::combine_speculation_with): New method.
22         (ipa_polymorphic_call_context::combine_with): New method.
23         (ipa_polymorphic_call_context::make_speculative): Move here; use
24         combine speculation.
25         * cgraph.h (ipa_polymorphic_call_context): Update
26         restrict_to_inner_class prototype; add offset_by, make_speculative, 
27         combine_with, useless_p, combine_speculation_with and
28         speculation_consistent_p methods.
29         (ipa_polymorphic_call_context::offset_by): New method.
30         (ipa_polymorphic_call_context::useless_p): New method.
32 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
34         PR rtl-optimization/62151
35         * combine.c (can_combine_p): Allow the destination register of INSN
36         to be clobbered in I3.
37         (subst): Do not substitute into clobbers of registers.
39 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
41         PR debug/63342
42         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
43         offset, TARGET_MEM_REF and SSA_NAME.
45         * config/i386/i386.c (expand_vec_perm_palignr): Handle
46         256-bit vectors for TARGET_AVX2.
48         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
49         dfirst permutation.
51         PR target/63428
52         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
53         argument to avx2_permv2ti.
55 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
57         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
59 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
61         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
62         (fmod<mode>3): Ditto.
63         (fpremxf4_i387): Ditto.
64         (reminderxf3): Ditto.
65         (reminder<mode>3): Ditto.
66         (fprem1xf4_i387): Ditto.
68 2014-09-30  Teresa Johnson  <tejohnson@google.com>
70         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
71         duplicate_blocks bitmap.
72         (remove_ctrl_stmt_and_useless_edges): Ditto.
73         (create_block_for_threading): Ditto.
74         (compute_path_counts): New function.
75         (update_profile): Ditto.
76         (recompute_probabilities): Ditto.
77         (update_joiner_offpath_counts): Ditto.
78         (freqs_to_counts_path): Ditto.
79         (clear_counts_path): Ditto.
80         (ssa_fix_duplicate_block_edges): Update profile info.
81         (ssa_create_duplicates): Pass new parameter.
82         (ssa_redirect_edges): Remove old profile update.
83         (thread_block_1): New duplicate_blocks bitmap,
84         remove old profile update.
85         (thread_single_edge): Pass new parameter.
87 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
89         PR middle-end/62120
90         * varasm.c (decode_reg_name_and_count): Check availability for
91         registers from ADDITIONAL_REGISTER_NAMES.
93 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
95         PR plugins/63410
96         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
97         (PLUGIN_HEADERS): Add pass-instances.def.
99 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
101         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
102         iterator.
103         * config/aarch64/aarch64-simd.md
104         (aarch64_sqdmull_laneq<mode>): Expand iterator.
105         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
106         (vqdmulls_lane_s32): Fix return type.
107         (vqdmulls_laneq_s32): New.
109 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
111         PR inline-asm/63282
112         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
113         or invert_jump_1 if jump isn't any_condjump_p.
115 2014-09-30  Terry Guo  <terry.guo@arm.com>
117         * config/arm/arm-cores.def (cortex-m7): New core name.
118         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
119         (fpv5-d16): Ditto.
120         * config/arm/arm-tables.opt: Regenerated.
121         * config/arm/arm-tune.md: Regenerated.
122         * config/arm/arm.h (TARGET_VFP5): New macro.
123         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
124         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
125         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
126         * doc/invoke.texi: Document new cpu and fpu names.
128 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
130         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
131         before sinking insn.
133 2014-09-30  David Sherwood  <david.sherwood@arm.com>
135         * ira-int.h (ira_allocno): Add "wmode" field.
136         * ira-build.c (create_insn_allocnos): Add new "parent" function
137         parameter.
138         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
139         that cannot be accessed in wmode.
141 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
143         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
144         integer overflow.
146 2014-09-29  Andi Kleen  <ak@linux.intel.com>
148         * opts.c (print_filtered_help): Print --param min/max/default
149         with -Q.
151 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
153         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
155 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
157         * tree-vrp.c (get_single_symbol): New function.
158         (build_symbolic_expr): Likewise.
159         (symbolic_range_based_on_p): New predicate.
160         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
161         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
162         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
163         operand is symbolic and based on the other operand.
165 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
167         * config/microblaze/microblaze.md (call_internal1): Use VOID
168         instead of SI to fix "((void (*)(void)) 0)()" issue
170 2014-09-29  Nick Clifton  <nickc@redhat.com>
172         * config/msp430/msp430.c (msp430_expand_prologue): Return a
173         CLOBBER rtx for naked functions.
174         (msp430_expand_epilogue): Likewise.
175         (msp430_use_f5_series_hwmult): Cache result.
176         (use_32bit_hwmult): Cache result.
177         (msp430_no_hwmult): New function.
178         (msp430_output_labelref): Use it.
180 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
182         PR middle-end/63247
183         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
184         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
185         use the alignment of avar rather than ovar.
187 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
189         * config/pa/pa.c (pa_output_function_epilogue): Only update
190         last_address when a nonnote insn is found.
192 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
194         PR ipa/60665
195         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
197 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
199         PR ipa/62121
200         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
201         fix pasto in checking array size.
203 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
205         PR middle-end/35545
206         * passes.def (pass_tracer): Move before last dominator pass.
208 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
210         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
211         users.
212         (run_attempt): Handle errors of "pex_run" invocation.
214 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
216         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
217         (CC1_SPEC): Define.
218         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
219         (TARGET_ASAN_SHADOW_OFFSET): Define.
221 2014-09-26  Martin Liska  <mliska@suse.cz>
223         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
224         introduced.
225         * cgraph.h: Likewise.
226         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
227         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
228         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
229         * tree-ssa-alias.h: Likewise.
231 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
232             Max Ostapenko  <m.ostapenko@partner.samsung.com>
234         * common.opt: New option.
235         * doc/invoke.texi: Describe new option.
236         * gcc.c (execute): Don't free first string early, but at the end
237         of the function.  Call retry_ice if compiler exited with
238         ICE_EXIT_CODE.
239         (main): Factor out common code.
240         (print_configuration): New function.
241         (files_equal_p): Likewise.
242         (check_repro): Likewise.
243         (run_attempt): Likewise.
244         (do_report_bug): Likewise.
245         (append_text): Likewise.
246         (try_generate_repro): Likewise
248 2014-09-25  Andi Kleen  <ak@linux.intel.com>
250         * config/i386/i386.c (x86_print_call_or_nop): New function.
251         (x86_function_profiler): Support -mnop-mcount and
252         -mrecord-mcount.
253         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
254         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
256 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
258         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
259         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
260         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
261         Remove.
263 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
265         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
266         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
267         types_odr_comparable): Declare.
268         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
269         * ipa-polymorphic-call.c: New file.
270         (contains_polymorphic_type_p, possible_placement_new,
271         ipa_polymorphic_call_context::restrict_to_inner_class,
272         contains_type_p, decl_maybe_in_construction_p,
273         ipa_polymorphic_call_context::stream_out,
274         ipa_polymorphic_call_context::debug,
275         ipa_polymorphic_call_context::stream_in,
276         ipa_polymorphic_call_context::set_by_decl,
277         ipa_polymorphic_call_context::set_by_invariant,
278         walk_ssa_copies,
279         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
280         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
281         extr_type_from_vtbl_ptr_store, record_known_type
282         check_stmt_for_type_change,
283         ipa_polymorphic_call_context::get_dynamic_type): Move here from
284         ipa-devirt.c
285         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
286         and streamer-hooks.h
287         (contains_polymorphic_type_p, possible_placement_new,
288         ipa_polymorphic_call_context::restrict_to_inner_class,
289         contains_type_p, decl_maybe_in_construction_p,
290         ipa_polymorphic_call_context::stream_out,
291         ipa_polymorphic_call_context::debug,
292         ipa_polymorphic_call_context::stream_in,
293         ipa_polymorphic_call_context::set_by_decl,
294         ipa_polymorphic_call_context::set_by_invariant,
295         walk_ssa_copies,
296         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
297         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
298         extr_type_from_vtbl_ptr_store, record_known_type
299         check_stmt_for_type_change,
300         ipa_polymorphic_call_context::get_dynamic_type): Move to
301         ipa-polymorphic-call.c
302         (type_all_derivations_known_p, types_odr_comparable,
303         types_must_be_same_for_odr): Export.
304         (type_known_to_have_no_deriavations_p): New function.
305         * Makefile.in: Add ipa-polymorphic-call.c
307 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
309         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
310         for better storage.
311         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
312         (possible_polymorphic_call_targets): Instead of computing both
313         speculative and non-speculative answers, do just one at a time.
314         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
315         (dump_targets): Break out from ...
316         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
317         and non-speculative lists.
318         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
319         * ipa-utils.h (possible_polymorphic_call_targets): Update.
321 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
323         PR rtl-optimization/63348
324         * emit-rtl.c (try_split): Do not emit extra barrier.
326 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
328         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
329         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
330         new predicates.
331         (aarch64_<sur>shll2_n<mode>): Likewise.
332         (aarch64_<sur>shr_n<mode>): Likewise.
333         (aarch64_<sur>sra_n<mode>: Likewise.
334         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
335         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
336         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
337         * config/aarch64/iterators.md (ve_mode): New.
338         (offsetlr): Remap to infix text for use in new predicates.
339         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
340         (aarch64_simd_shift_imm_hi): Likewise.
341         (aarch64_simd_shift_imm_si): Likewise.
342         (aarch64_simd_shift_imm_di): Likewise.
343         (aarch64_simd_shift_imm_offset_qi): Likewise.
344         (aarch64_simd_shift_imm_offset_hi): Likewise.
345         (aarch64_simd_shift_imm_offset_si): Likewise.
346         (aarch64_simd_shift_imm_offset_di): Likewise.
347         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
348         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
349         (aarch64_simd_shift_imm_bitsize_si): Likewise.
350         (aarch64_simd_shift_imm_bitsize_di): Likewise.
352 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
354         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
355         new created BB as the intersection of live-in from "old_dest" and
356         live-out from "bb".
358 2014-09-25  Felix Yang  <felix.yang@huawei.com>
360         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
361         * genautomata.c (merge_states): Ditto.
363 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
365         PR target/62218
366         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
367         in instruction sequence.
369 2014-09-25  Nick Clifton  <nickc@redhat.com>
371         PR target/62218
372         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
373         in instruction sequence.
375 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
377         PR target/63335
378         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
379         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
381 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
382             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
383             Anna Tikhonova  <anna.tikhonova@intel.com>
384             Ilya Tocar  <ilya.tocar@intel.com>
385             Andrey Turetskiy  <andrey.turetskiy@intel.com>
386             Ilya Verbin  <ilya.verbin@intel.com>
387             Kirill Yukhin  <kirill.yukhin@intel.com>
388             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
390         * config/i386/sse.md
391         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
392         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
393         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
394         (define_expand "<avx512>_perm<mode>_mask"): ... this.
395         Use VI8F_256_512 mode iterator.
396         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
397         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
399 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
400             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
401             Anna Tikhonova  <anna.tikhonova@intel.com>
402             Ilya Tocar  <ilya.tocar@intel.com>
403             Andrey Turetskiy  <andrey.turetskiy@intel.com>
404             Ilya Verbin  <ilya.verbin@intel.com>
405             Kirill Yukhin  <kirill.yukhin@intel.com>
406             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
408         * config/i386/sse.md
409         (define_insn "avx_movshdup256<mask_name>"): Add masking.
410         (define_insn "sse3_movshdup<mask_name>"): Ditto.
411         (define_insn "avx_movsldup256<mask_name>"): Ditto.
412         (define_insn "sse3_movsldup<mask_name>"): Ditto.
413         (define_insn "vec_dupv2df<mask_name>"): Ditto.
414         (define_insn "*vec_concatv2df"): Add EVEX version.
416 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
417             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
418             Anna Tikhonova  <anna.tikhonova@intel.com>
419             Ilya Tocar  <ilya.tocar@intel.com>
420             Andrey Turetskiy  <andrey.turetskiy@intel.com>
421             Ilya Verbin  <ilya.verbin@intel.com>
422             Kirill Yukhin  <kirill.yukhin@intel.com>
423             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
425         * config/i386/sse.md
426         (define_insn "vec_set<mode>_0"): Add EVEX version.
428 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
429             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
430             Anna Tikhonova  <anna.tikhonova@intel.com>
431             Ilya Tocar  <ilya.tocar@intel.com>
432             Andrey Turetskiy  <andrey.turetskiy@intel.com>
433             Ilya Verbin  <ilya.verbin@intel.com>
434             Kirill Yukhin  <kirill.yukhin@intel.com>
435             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
437         * config/i386/sse.md
438         (define_insn
439         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
440         New.
441         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
442         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
443         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
444         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
445         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
446         (define_expand "sse2_cvtpd2ps_mask): New.
447         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
448         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
450 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
451             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
452             Anna Tikhonova  <anna.tikhonova@intel.com>
453             Ilya Tocar  <ilya.tocar@intel.com>
454             Andrey Turetskiy  <andrey.turetskiy@intel.com>
455             Ilya Verbin  <ilya.verbin@intel.com>
456             Kirill Yukhin  <kirill.yukhin@intel.com>
457             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
459         * config/i386/i386.c
460         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
461         (ufix_notruncv8dfv8si2_mask_round): ... this.
462         * config/i386/sse.md
463         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
464         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
465         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
466         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
467         (define_expand "sse2_cvtpd2dq"): Delete.
468         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
469         make 2nd operand const0 vector.
470         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
471         Delete.
472         (define_mode_attr pd2udqsuff): New.
473         (define_insn
474         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
475         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
476         (define_insn "*avx_cvttpd2dq256_2"): Delete.
477         (define_expand "sse2_cvttpd2dq"): Ditto.
478         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
479         make 2nd operand const0 vector.
481 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
483         PR tree-optimization/63341
484         * tree-vectorizer.h (vect_create_data_ref_ptr,
485         vect_create_addr_base_for_vector_ref): Add another tree argument
486         defaulting to NULL_TREE.
487         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
488         argument, pass it down to vect_create_addr_base_for_vector_ref.
489         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
490         add that to base_offset too if non-NULL.
491         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
492         for dr_explicit_realign_optimized set it to vector byte size
493         - 1 instead of setting offset, pass byte_offset down to
494         vect_create_data_ref_ptr.
496 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
498         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
499         forgotten debug output; canonicalize querries more wtih LTO.
501 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
503         * cgraph.h (class ipa_polymorphic_call_context): Move here from
504         ipa-utils.h; add stream_int and stream_out methods.
505         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
506         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
507         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
508         add CONTEXT.
509         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
510         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
511         ipa_polymorphic_call_context::clear_speculation,
512         ipa_polymorphic_call_context::clear_outer_type): Move here from
513         ipa-utils.h
514         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
515         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
516         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
517         ipa_polymorphic_call_context::clear_speculation,
518         ipa_polymorphic_call_context::clear_outer_type): Likewise.
519         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
520         streamer-hooks.h
521         (ipa_polymorphic_call_context::stream_out): New method.
522         (ipa_polymorphic_call_context::stream_in): New method.
523         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
524         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
525         OUTER_TYPE.
526         (ipa_analyze_call_uses): Simplify.
527         (update_indirect_edges_after_inlining): Do not care about outer_type.
528         (ipa_write_indirect_edge_info): Update.
529         (ipa_write_indirect_edge_info): Likewise.
530         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
531         (dump_edge_flags): Break out from ...
532         (cgraph_node::dump): ... here; dump indirect edges.
534 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
536         * ipa-utils.h (polymorphic_call_context): Add
537         metdhos dump, debug and clear_outer_type.
538         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
539         (ipa_polymorphic_call_context::clear_outer_type): New method.
540         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
541         * ipa-devirt.c (types_odr_comparable): New function.
542         (types_must_be_same_for_odr): New function.
543         (odr_subtypes_equivalent_p): Simplify.
544         (possible_placement_new): Break out from ...
545         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
546         be more cuatious about returning false in cases the context may be
547         valid in derived type or via placement new.
548         (contains_type_p): Clear maybe_derived_type
549         (ipa_polymorphic_call_context::dump): New method.
550         (ipa_polymorphic_call_context::debug): New method.
551         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
552         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
553         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
554         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
555         to suceed on all valid cases; remove confused sanity check.
556         (dump_possible_polymorphic_call_targets): Simplify.
558 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
560         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
561         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
562         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
563         varpool.c: Rename all instances of DECL_ABSTRACT to
564         DECL_ABSTRACT_P.
566 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
568         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
569         special handling for stores whose SET_SRC is an UNSPEC (such as
570         UNSPEC_STVE).
572 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
574         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
575         !REG_P (src) to release more instruction sink opportunities.
577 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
579         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
580         move costs for 128-bit types.
582 2014-09-24  Martin Jambor  <mjambor@suse.cz>
584         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
585         when duplicating a PASS_THROUGH jump function when creating a
586         speculative edge.
588 2014-09-24  Marek Polacek  <polacek@redhat.com>
590         PR c/61405
591         PR c/53874
592         * asan.c (maybe_instrument_call): Add default case.
593         * ipa-pure-const.c (special_builtin_state): Likewise.
594         * predict.c (expr_expected_value_1): Likewise.
595         * lto-streamer-out.c (write_symbol): Initialize variable.
597 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
599         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
600         the lane.
601         (vmuld_laneq_f64): Likewise.
602         (vmuls_lane_f32): Likewise.
603         (vmuls_laneq_f32): Likewise.
605 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
607         PR bootstrap/63235
608         * varpool.c (varpool_node::add): Pass decl attributes
609         to lookup_attribute.
611 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
613         PR sanitizer/63316
614         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
616 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
618         PR tree-optimization/63266
619         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
620         marker for unknown byte value.
621         (MARKER_MASK): New macro.
622         (MARKER_BYTE_UNKNOWN): New macro.
623         (HEAD_MARKER): New macro.
624         (do_shift_rotate): Mark bytes with unknown values due to sign
625         extension when doing an arithmetic right shift. Replace hardcoded
626         mask for marker by new MARKER_MASK macro.
627         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
628         numbers accordingly.
630 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
631             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
632             Anna Tikhonova  <anna.tikhonova@intel.com>
633             Ilya Tocar  <ilya.tocar@intel.com>
634             Andrey Turetskiy  <andrey.turetskiy@intel.com>
635             Ilya Verbin  <ilya.verbin@intel.com>
636             Kirill Yukhin  <kirill.yukhin@intel.com>
637             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
639         * config/i386/sse.md
640         (define_insn
641         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
642         Add masking.
643         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
644         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
646 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
647             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
648             Anna Tikhonova  <anna.tikhonova@intel.com>
649             Ilya Tocar  <ilya.tocar@intel.com>
650             Andrey Turetskiy  <andrey.turetskiy@intel.com>
651             Ilya Verbin  <ilya.verbin@intel.com>
652             Kirill Yukhin  <kirill.yukhin@intel.com>
653             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
655         * config/i386/sse.md
656         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
657         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
658         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
659         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
660         (define_expand "avx512vl_pshuflw_mask"): New.
661         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
662         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
663         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
664         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
665         (define_expand "avx512vl_pshufhw_mask"): New.
666         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
668 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
669             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
670             Anna Tikhonova  <anna.tikhonova@intel.com>
671             Ilya Tocar  <ilya.tocar@intel.com>
672             Andrey Turetskiy  <andrey.turetskiy@intel.com>
673             Ilya Verbin  <ilya.verbin@intel.com>
674             Kirill Yukhin  <kirill.yukhin@intel.com>
675             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
677         * config/i386/i386.c
678         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
679         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
680         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
681         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
682         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
683         * config/i386/sse.md
684         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
685         (define_insn
686         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
687         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
688         (define_insn
689         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
690         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
691         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
692         (define_expand "avx512vl_pshufd_mask"): New.
693         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
695 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
696             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
697             Anna Tikhonova  <anna.tikhonova@intel.com>
698             Ilya Tocar  <ilya.tocar@intel.com>
699             Andrey Turetskiy  <andrey.turetskiy@intel.com>
700             Ilya Verbin  <ilya.verbin@intel.com>
701             Kirill Yukhin  <kirill.yukhin@intel.com>
702             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
704         * config/i386/i386.c
705         (CODE_FOR_avx2_extracti128): Rename to ...
706         (CODE_FOR_avx_vextractf128v4di): this.
707         (CODE_FOR_avx2_inserti128): Rename to ...
708         (CODE_FOR_avx_vinsertf128v4di): this.
709         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
710         CODE_FOR_avx_vextractf128v4di.
711         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
712         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
713         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
714         CODE_FOR_avx512vl_vinsertv8si.
715         * config/i386/sse.md
716         (define_expand
717         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
718         AVX512_VEC mode iterator.
719         (define_insn
720         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
721         Ditto.
722         (define_expand
723         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
724         AVX512_VEC_2 mode iterator.
725         (define_insn "vec_set_lo_<mode><mask_name>"): New.
726         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
727         (define_expand "avx512vl_vinsert<mode>"): Ditto.
728         (define_insn "avx2_vec_set_lo_v4di"): Delete.
729         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
730         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
731         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
732         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
733         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
734         (define_expand "avx2_extracti128"): Delete.
735         (define_expand "avx2_inserti128"): Ditto.
737 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
738             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
739             Anna Tikhonova  <anna.tikhonova@intel.com>
740             Ilya Tocar  <ilya.tocar@intel.com>
741             Andrey Turetskiy  <andrey.turetskiy@intel.com>
742             Ilya Verbin  <ilya.verbin@intel.com>
743             Kirill Yukhin  <kirill.yukhin@intel.com>
744             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
746         * config/i386/sse.md
747         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
748         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
749         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
750         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
751         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
752         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
753         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
754         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
755         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
756         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
757         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
758         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
759         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
761 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
763         PR rtl-optimization/63210
764         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
765         HARD_REGNO is not available for CONFLICT_A.
767 2014-09-23  Andi Kleen  <ak@linux.intel.com>
769         * cgraph.h (symtab_node): Add no_reorder attribute.
770         (symbol_table::output_asm_statements): Remove.
771         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
772         (cgraph_node::create_version_clone): Dito.
773         (symbol_table::output_asm_statements): Remove.
774         * trans-mem.c (ipa_tm_create_version_alias): Dito.
775         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
776         (output_in_order): Add no_reorder flag. Only handle no_reorder
777         nodes when set.
778         (symbol_table::compile): Add separate pass for no_reorder nodes.
779         (process_common_attributes): Set no_reorder flag in symtab node.
780         Add node argument.
781         (process_function_and_variable_attributes): Pass symtab nodes to
782         process_common_attributes.
783         * doc/extend.texi (no_reorder): Document no_reorder attribute.
784         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
785         (lto_output_varpool_node): Dito.
786         (input_overwrite_node): Dito.
787         (input_varpool_node): Dito.
788         * varpool.c (varpool_node::add): Set no_reorder attribute.
789         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
790         (symbol_table::output_variables): Dito.
791         * symtab.c (symtab_node::dump_base): Print no_reorder.
793 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
795         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
796         be INVALID_REGNUM.
798 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
800         * configure: Regenerate.
802 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
804         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
805         when result_mode == shift_mode.
807 2014-09-23  Kostya Serebryany  <kcc@google.com>
809         Update to match the changed asan API.
810         * asan.c (asan_global_struct): Update the __asan_global definition
811         to match the new API.
812         (asan_add_global): Ditto.
813         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
814         to __asan_init_v4.
816 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
818         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
819         refine the constraints used on 32/64-bit floating point moves.
820         (f32_av): Likewise.
821         (f64_vsx): Likewise.
822         (f64_dm): Likewise.
823         (f64_av): Likewise.
824         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
825         (BOOL_REGS_OP1): Likewise.
826         (BOOL_REGS_OP2): Likewise.
827         (BOOL_REGS_UNARY): Likewise.
828         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
829         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
830         for moves involving VSX registers.  Do not use constraints that
831         target VSX registers for decimal types.
832         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
833         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
835 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
837         * tree.h (int_bit_position): Turn into inline function;
838         implement using wide int.
839         * tree.c (int_bit_position): Remove.
841 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
843         PR bootstrap/63280
844         * target-globals.c (target_globals::~target_globals): Fix location
845         of ira_int destruction.
847 2014-09-23  Renlin Li  <renlin.li@arm.com>
849         * config/aarch64/aarch64.md (return): New.
850         (simple_return): Likewise.
851         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
852         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
854 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
856         * common/config/aarch64/aarch64-common.c:
857         (default_options aarch_option_optimization_table):
858         Default to -fsched-pressure.
860 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
862         * cfgcleanup.c (try_optimize_cfg): Do not remove label
863         with LABEL_PRESERVE_P flag set.
865 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
866             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
867             Anna Tikhonova  <anna.tikhonova@intel.com>
868             Ilya Tocar  <ilya.tocar@intel.com>
869             Andrey Turetskiy  <andrey.turetskiy@intel.com>
870             Ilya Verbin  <ilya.verbin@intel.com>
871             Kirill Yukhin  <kirill.yukhin@intel.com>
872             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
874         * config/i386/sse.md
875         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
876         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
877         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
878         (define_insn "sse2_shufpd_v2df_mask"): New.
880 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
881             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
882             Anna Tikhonova  <anna.tikhonova@intel.com>
883             Ilya Tocar  <ilya.tocar@intel.com>
884             Andrey Turetskiy  <andrey.turetskiy@intel.com>
885             Ilya Verbin  <ilya.verbin@intel.com>
886             Kirill Yukhin  <kirill.yukhin@intel.com>
887             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
889         * config/i386/sse.md
890         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
891         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
892         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
893         (define_insn "sse_shufps_v4sf_mask"): New.
895 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
896             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
897             Anna Tikhonova  <anna.tikhonova@intel.com>
898             Ilya Tocar  <ilya.tocar@intel.com>
899             Andrey Turetskiy  <andrey.turetskiy@intel.com>
900             Ilya Verbin  <ilya.verbin@intel.com>
901             Kirill Yukhin  <kirill.yukhin@intel.com>
902             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
904         * config/i386/sse.md
905         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
906         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
907         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
908         (define_insn "unpcklps128_mask"): New.
910 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
911             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
912             Anna Tikhonova  <anna.tikhonova@intel.com>
913             Ilya Tocar  <ilya.tocar@intel.com>
914             Andrey Turetskiy  <andrey.turetskiy@intel.com>
915             Ilya Verbin  <ilya.verbin@intel.com>
916             Kirill Yukhin  <kirill.yukhin@intel.com>
917             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
919         * config/i386/sse.md
920         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
921         (define_insn "avx512vl_unpckhpd128_mask"): New.
922         (define_expand "avx_movddup256<mask_name>"): Add masking.
923         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
924         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
925         (define_insn "avx512vl_unpcklpd128_mask"): New.
927 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
929         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
930         * doc/tm.texi: Regenerate.
931         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
932         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
933         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
934         Remove.
935         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
936         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
937         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
938         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
939         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
940         Remove.
941         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
942         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
943         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
944         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
945         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
946         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
947         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
948         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
949         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
950         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
951         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
952         Remove.
954 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
956         * tree-ssa-ccp.c (prop_value_d): Rename to ...
957         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
958         * ipa-prop.c (struct type_change_info): Rename to ...
959         (prop_type_change_info): ... this; update uses.
960         * ggc-page.c (globals): Rename to ...
961         (static struct ggc_globals): ... this; update uses.
962         * tree-ssa-loop-im.c (mem_ref): Rename to ...
963         (im_mem_ref): ... this; update uses.
964         * ggc-common.c (loc_descriptor): Rename to ...
965         (ggc_loc_descriptor): ... this; update uses.
966         * lra-eliminations.c (elim_table): Rename to ...
967         (lra_elim_table): ... this; update uses.
968         * bitmap.c (output_info): Rename to ...
969         (bitmap_output_info): ... this; update uses.
970         * gcse.c (expr): Rename to ...
971         (gcse_expr) ... this; update uses.
972         (occr): Rename to ...
973         (gcse_occr): .. this; update uses.
974         * tree-ssa-copy.c (prop_value_d): Rename to ...
975         (prop_value_t): ... this.
976         * predict.c (block_info_def): Rename to ...
977         (block_info): ... this; update uses.
978         (edge_info_def): Rename to ...
979         (edge_info): ... this; update uses.
980         * profile.c (bb_info): Rename to ...
981         (bb_profile_info): ... this; update uses.
982         * alloc-pool.c (output_info): Rename to ...
983         (pool_output_info): ... this; update uses.
984         * ipa-cp.c (topo_info): Rename to ..
985         (ipa_topo_info): ... this; update uses.
986         * tree-nrv.c (nrv_data): Rename to ...
987         (nrv_data_t): ... this; update uses.
988         * ipa-split.c (bb_info): Rename to ...
989         (split_bb_info): ... this one.
990         * profile.h (edge_info): Rename to ...
991         (edge_profile_info): ... this one; update uses.
992         * dse.c (bb_info): Rename to ...
993         (dse_bb_info): ... this one; update uses.
994         * cprop.c (occr): Rename to ...
995         (cprop_occr): ... this one; update uses.
996         (expr): Rename to ...
997         (cprop_expr): ... this one; update uses.
999 2014-09-22  Jason Merrill  <jason@redhat.com>
1001         * Makefile.in (check-parallel-%): Add @.
1003 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1005         * config/aarch64/geniterators.sh: New.
1006         * config/aarch64/iterators.md (VDQF_DF): New.
1007         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
1008         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
1010 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
1012         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
1013         -lnosys when -msim absent.
1015 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
1017         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
1019 2014-09-22  Richard Biener  <rguenther@suse.de>
1021         * gimplify.c (gimplify_init_constructor): Do not leave
1022         non-GIMPLE vector constructors around.
1023         * tree-cfg.c (verify_gimple_assign_single): Verify that
1024         CONSTRUCTORs have gimple elements.
1026 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
1028         PR debug/63328
1029         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
1030         insert a debug source bind stmt setting DEBUG_EXPR_DECL
1031         instead of a normal gimple assignment stmt.
1033 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1035         * config/bfin/bfin.md: Fix use of constraints in define_split.
1037 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1039         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
1040         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
1042 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1044         * hard-reg-set.h: Include hash-table.h.
1045         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
1046         field.
1047         * target-globals.c (target_globals::~target_globals): Call
1048         hard_regs->finalize.
1049         * rtl.h (subreg_shape): New structure.
1050         (shape_of_subreg): New function.
1051         (simplifiable_subregs): Declare.
1052         * reginfo.c (simplifiable_subreg): New structure.
1053         (simplifiable_subregs_hasher): Likewise.
1054         (simplifiable_subregs): New function.
1055         (invalid_mode_changes): Delete.
1056         (alid_mode_changes, valid_mode_changes_obstack): New variables.
1057         (record_subregs_of_mode): Remove subregs_of_mode parameter.
1058         Record valid mode changes in valid_mode_changes.
1059         (find_subregs_of_mode): Remove subregs_of_mode parameter.
1060         Update calls to record_subregs_of_mode.
1061         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
1062         handling.  Initialize new variables.  Update call to
1063         find_subregs_of_mode.
1064         (invalid_mode_change_p): Check new variables instead of
1065         invalid_mode_changes.
1066         (finish_subregs_of_mode): Finalize new variables instead of
1067         invalid_mode_changes.
1068         (target_hard_regs::finalize): New function.
1069         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
1070         even when CLASS_CANNOT_CHANGE_MODE is undefined.
1072 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1074         * combine.c (subst): Use simplify_subreg_regno rather than
1075         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
1077 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1079         * rtl.h (subreg_info): Expand commentary
1080         * rtlanal.c (subreg_get_info): Likewise.
1082 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1084         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
1085         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
1086         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
1088 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1090         * config/arm/arm.c: #include "tm-constrs.h"
1091         (thumb1_size_rtx_costs): Adjust rtx costs.
1093 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
1095         * configure.ac (target_header_dir): Move block defining
1096         this to before the block setting inhibit_libc.
1097         (inhibit_libc): When considering $with_headers, just
1098         check it it's explicitly "no".  If not, also check if
1099         $target_header_dir/stdio.h is present.  If not, set
1100         inhibit_libc=true.
1101         * configure: Regenerate.
1103 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
1105         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
1106         
1107 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1109         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
1110         insn for divides by integer powers of two.
1111         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
1112         (mod<mode>3): Fix formatting.
1113         (three anonymous define_insn and two define_split): Delete.
1115 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1117         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
1118         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
1119         (floatdisf2_internal2): Ditto.
1120         (ashrdi3_no_power): Ditto.  Fix formatting.
1122 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1124         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
1125         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
1126         Tidy.
1128 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1130         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
1131         constant, use addsi3 directly.
1132         (three anonymous define_insn, two define_split): Delete.
1133         (sub<mode>3): Move.  Do not allow constant second operand.
1134         Generate different insn for constant first operand.
1135         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
1136         (subf<mode>3_imm): New.
1137         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
1138         (*plus_ltu<mode>): Only handle registers.
1139         (*plus_ltu<mode>_1): New.  Handle integer third operand.
1140         (*plus_gtu<mode>): Only handle registers.
1141         (*plus_gtu<mode>_1): New.  Handle integer third operand.
1143 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1145         * config/rs6000/rs6000.md (iorxor): New code_iterator.
1146         (iorxor): New code_attr.
1147         (IORXOR): New code_attr.
1148         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
1149         (ior<mode>3, xor<mode>3): Delete.
1150         (<iorxor><mode>3): New.
1151         (splitter for "big" integer ior, xor): New.
1152         (*bool<mode>3): Move.  Also handle AND.
1153         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
1154         (splitter for "big" integer ior, xor): Delete.
1156 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1158         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
1159         (two anonymous define_insn and two define_split): Delete.
1160         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
1162 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1164         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
1165         (two anonymous define_insn and two define_split): Delete.
1166         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
1168 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1170         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
1172 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1174         * config/rs6000/predicates.md (ca_operand): Allow subregs.
1175         (input_operand): Do not allow ca_operand.
1176         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
1177         carry bit, allow SImode and Pmode.
1178         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
1180 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
1182         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
1183         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
1184         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
1185         (*call_rex64_ms_sysv): Remove.
1186         (*call_value_rex64_ms_sysv): Ditto.
1187         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
1189 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
1191         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
1192         operand 3 to "CnL".
1194 2014-09-20  Andreas Schwab  <schwab@suse.de>
1196         * config/ia64/ia64.md: Remove constraints from define_split
1197         patterns.
1199 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1201         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1202         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1203         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1204         (get_dynamic_type): Remove.
1205         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1206         (clear_speculation): Bring to ipa-deivrt.h
1207         (get_class_context): Rename to ...
1208         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1209         (contains_type_p): Update.
1210         (get_dynamic_type): Rename to ...
1211         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1212         (possible_polymorphic_call_targets): UPdate.
1213         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1214         * ipa-prop.c (ipa_analyze_call_uses): Update.
1216 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1218         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1219         privatize dynamic TLS variables.
1221 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1223         * diagnostic.c (warning_n): New function.
1224         * diagnostic-core.h (warning_n): Declare.
1225         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1226         output dynamic counts when available.
1228 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1230         PR tree-optimization/63255
1231         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
1232         issue in setting body_removed flag.
1234 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1236         PR c++/61825
1237         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
1238         that visibility change is possible
1239         (handle_weakref_attribute): Likewise.
1240         * cgraph.h (symtab_node): Add method get_create and
1241         field refuse_visibility_changes.
1242         (symtab_node::get_create): New method.
1243         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
1244         * varasm.c (mark_weak): Verify that visibility change is
1245         possible.
1247 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1249         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
1250         for base_reg_operand to be common between LO_SUM and PLUS.
1251         (fusion_gpr_mem_combo): New predicate to match a fused address
1252         that combines the addis and memory offset address.
1254         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
1255         calling signature.
1256         (emit_fusion_gpr_load): Likewise.
1258         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
1259         signature to pass each argument separately, rather than
1260         using an operands array.  Rewrite the insns found by peephole2 to
1261         be a single insn, rather than hoping the insns will still be
1262         together when the peephole pass is done.  Drop being called via a
1263         normal peephole.
1264         (emit_fusion_gpr_load): Change calling signature to be called from
1265         the fusion_gpr_load_<mode> insns with a combined memory address
1266         instead of the peephole pass passing the addis and offset
1267         separately.
1269         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
1270         fusion.
1271         (power8 fusion peephole): Drop support for doing power8 via a
1272         normal peephole that was created by the peephole2 pass.
1273         (power8 fusion peephole2): Create a new insn with the fused
1274         address, so that the fused operation is kept together after
1275         register allocation is done.
1276         (fusion_gpr_load_<mode>): Likewise.
1278 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1280         PR lto/63286
1281         * tree.c (need_assembler_name_p): Do not mangle variadic types.
1283 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
1285         * recog.c (scratch_operand): Do not simply allow all hard registers:
1286         only allow those that are allocatable.
1288 2014-09-19  Felix Yang  <felix.yang@huawei.com>
1290         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
1291         comments and fix spacing to conform to coding style.
1293 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1295         * genrecog.c (validate_pattern): Allow empty constraints in
1296         a match_scratch.
1298 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
1300         * dwarf2out.c (decl_ultimate_origin): Update comment.
1301         * tree.c (block_ultimate_origin): Same.
1303 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1305         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1306         Update GCC version name to GCC 5.
1307         (rs6000_function_arg_boundary): Likewise.
1308         (rs6000_function_arg): Likewise.
1310 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1312         * config/sh/sh.md: Fix use of constraints in define_split.
1314 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
1316         PR ipa/61998
1317         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
1319 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1321         * doc/md.texi (Modifiers): Consistently use "read/write"
1322         nomenclature rather than "input/output".
1323         * genrecog.c (constraints_supported_in_insn_p): New.
1324         (validate_pattern): If needed, also check constraints on
1325         MATCH_SCRATCH operands.
1326         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
1327         operands with no '=' or '+' modifier.
1329 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1331         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
1332         scratch register as written.
1334 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1336         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
1337         assignment.
1339 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1341         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
1342         expanders.
1344 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1346         PR target/62662
1347         * config/s390/s390.c (s390_emit_epilogue): When doing the return
1348         address load optimization force s390_optimize_prologue to leave it
1349         that way.  Only do the optimization if we already decided to push
1350         r14 into a stack slot.
1352 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
1354         * asan.c (build_check_stmt): Alignment arg was added.
1355         (asan_expand_check_ifn): Optimization for alignment >= 8.
1357 2014-09-19  Olivier Hainque  <hainque@adacore.com>
1359         * config/i386/vxworksae.h: Remove obsolete definitions.
1360         (STACK_CHECK_PROTECT): Define.
1361         * config/i386/vx-common.h: Remove.  Merge contents within
1362         config/i386/vxworks.h.
1363         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
1364         i386/vx-common.h.
1366 2014-09-19  Olivier Hainque  <hainque@adacore.com>
1368         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
1369         * config/rs6000/t-vxworksmils: New file.
1370         * config/rs6000/vxworksmils.h: New file.
1372 2014-09-19  Olivier Hainque  <hainque@adacore.com>
1374         * varasm.c (default_section_type_flags): Flag .persistent.bss
1375         sections as SECTION_BSS.
1377 2014-09-19  Nick Clifton  <nickc@redhat.com>
1379         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
1380         pop'ed registers so that DCE does not eliminate them.
1382 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
1384         PR lto/63298
1385         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
1387 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
1389         * system.h (LIBGCC2_TF_CEXT): Poison.
1390         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
1391         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
1392         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
1393         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
1394         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
1395         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
1396         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
1397         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
1398         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
1400 2014-09-19  Kito Cheng  <kito@0xlab.org>
1402         * except.h: Fix header guard.
1403         * addresses.h: Add missing header guard.
1404         * cfghooks.h: Likewise.
1405         * collect-utils.h: Likewise.
1406         * collect2-aix.h: Likewise.
1407         * conditions.h: Likewise.
1408         * cselib.h: Likewise.
1409         * dwarf2asm.h: Likewise.
1410         * graphds.h: Likewise.
1411         * graphite-scop-detection.h: Likewise.
1412         * gsyms.h: Likewise.
1413         * hw-doloop.h: Likewise.
1414         * incpath.h: Likewise.
1415         * ipa-inline.h: Likewise.
1416         * ipa-ref.h: Likewise.
1417         * ira-int.h: Likewise.
1418         * ira.h: Likewise.
1419         * lra-int.h: Likewise.
1420         * lra.h: Likewise.
1421         * lto-section-names.h: Likewise.
1422         * read-md.h: Likewise.
1423         * reload.h: Likewise.
1424         * rtl-error.h: Likewise.
1425         * sdbout.h: Likewise.
1426         * targhooks.h: Likewise.
1427         * tree-affine.h: Likewise.
1428         * xcoff.h: Likewise.
1429         * xcoffout.h: Likewise.
1431 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1433         PR debug/63285
1434         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
1435         if advance != 0.
1437 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1439         PR target/61360
1440         * lra.c (lra): Call recog_init.
1442 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
1444         PR c++/62017
1445         * asan.c (transform_statements): Don't instrument clobber statements.
1447 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1449         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
1450         to neon_load1_1reg<q>.
1452 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
1454         PR debug/63284
1455         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
1456         if there are only debug stmts after the noreturn call, instead
1457         remove the debug stmts.
1459 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
1461         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
1462         (odr_types_equivalent_p): Use pair hash.
1463         (odr_subtypes_equivalent_p): Likewise, do structural compare
1464         on ODR types that may be mismatched.
1465         (warn_odr): Support warning when only one field is given.
1466         (odr_types_equivalent_p): Strenghten comparsions made;
1467         support VOIDtype.
1468         (add_type_duplicate): Update VISITED hash set.
1470 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1472         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
1473         Enable selection of 'posix' or no thread model.
1475 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
1477         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1478         when architecture is older than ARMv7.
1480 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
1482         PR target/61853
1483         * config/pa/pa.c (pa_function_value): Directly handle aggregates
1484         that fit exactly in a word or double word.
1486 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
1488         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
1489         zmm/k regs support.
1491 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1492             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1493             Anna Tikhonova  <anna.tikhonova@intel.com>
1494             Ilya Tocar  <ilya.tocar@intel.com>
1495             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1496             Ilya Verbin  <ilya.verbin@intel.com>
1497             Kirill Yukhin  <kirill.yukhin@intel.com>
1498             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1500         * config/i386/i386.c
1501         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
1502         * config/i386/sse.md
1503         (define_mode_iterator VI48F_256): New.
1504         (define_mode_attr extract_type): Ditto.
1505         (define_mode_attr extract_suf): Ditto.
1506         (define_mode_iterator AVX512_VEC): Ditto.
1507         (define_expand
1508         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
1509         AVX512_VEC.
1510         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
1511         (define_insn
1512         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
1513         Ditto.
1514         (define_mode_attr extract_type_2): Ditto.
1515         (define_mode_attr extract_suf_2): Ditto.
1516         (define_mode_iterator AVX512_VEC_2): Ditto.
1517         (define_expand
1518         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
1519         AVX512_VEC_2 mode iterator.
1520         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1521         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
1522         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1523         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1524         (define_split for V16FI mode): Ditto.
1525         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1526         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1527         (define_split for VI8F_256 mode): Ditto.
1528         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1529         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1530         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1531         (define_split for VI4F_256 mode): Ditto.
1532         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
1533         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1534         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1535         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
1536         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
1537         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
1538         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
1539         Update `type' attribute, remove explicit `memory' attribute calculation.
1541 2014-09-16  Kito Cheng  <kito@0xlab.org>
1543         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
1544         ira_spilled_reg_stack_slots_num if using lra.
1545         (do_reload): Remove release ira_spilled_reg_stack_slots part.
1546         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
1547         make sure not using lra.
1548         (ira_reuse_stack_slot): Likewise.
1549         (ira_mark_new_stack_slot): Likewise.
1551 2014-09-15  Andi Kleen  <ak@linux.intel.com>
1553         * function.c (allocate_struct_function): Force
1554         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
1555         profiling is disabled.
1557 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
1558     
1559         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
1560         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
1561         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
1562         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
1563         macro with statically checked member functions.
1564         * rtl.h (rtx_insn::deleted): New method.
1565         (rtx_insn::set_deleted): Likewise.
1566         (rtx_insn::set_undeleted): Likewise.
1567         (INSN_DELETED_P): Remove.
1569 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
1571         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
1572         result of emit_jump_insn_before to a new variable.
1573         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
1574         (mark_jump_label_1): Likewise.
1575         (mark_jump_label_asm): Likewise.
1576         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
1577         * rtl.h (mark_jump_label): Adjust.
1579 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
1581         * Makefile.in (dg_target_exps): Remove.
1582         (check_gcc_parallelize): Change to just an upper bound number.
1583         (check-%-subtargets): Always print the non-parallelized goals.
1584         (check_p_vars, check_p_comma, check_p_subwork): Remove.
1585         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
1586         check_p_numbers3, check_p_numbers4, check_p_numbers5,
1587         check_p_numbers6): New variables.
1588         (check_p_numbers): Set to sequence from 1 to 9999.
1589         (check_p_subdirs): Set to sequence from 1 to minimum of
1590         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
1591         or 128.
1592         (check-%, check-parallel-%): Rewritten so that for parallelized
1593         testing each job runs all the *.exp files, with
1594         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
1596 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1598         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
1599         rtx to rtx_insn *.
1600         (arc_sets_cc_p): Likewise.
1601         * config/arc/arc.c (arc_print_operand): Use methods of
1602         "final_sequence" for clarity, and to enable strengthening of
1603         locals "jump" and "delay" from rtx to rtx_insn *.
1604         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
1605         rtx_insn *; use method of rtx_sequence for typesafety.
1606         (arc_get_insn_variants): Use insn method of rtx_sequence for
1607         typesafety.
1608         (arc_pad_return): Likewise.
1609         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
1610         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
1611         dyn_cast to rtx_sequence *, using insn method for typesafety.
1612         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
1613         rtx_sequence * and use insn method when invoking get_attr_length.
1614         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
1615         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
1616         rtx_sequence *, introducing a local "seq", using its insn method
1617         from typesafety and clarity.
1618         (add_sched_insns_for_speculation): Strengthen local "next" from
1619         rtx to rtx_insn *.
1620         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
1621         (predicate_insn): Likewise.
1622         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
1623         second param.
1624         * config/cris/cris.c (cris_notice_update_cc): Likewise.
1625         * config/epiphany/epiphany-protos.h
1626         (extern void epiphany_insert_mode_switch_use): Likewise for param
1627         "insn".
1628         (get_attr_sched_use_fpu): Likewise for param.
1629         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
1630         Likewise for param "insn".
1631         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
1632         param "insn" of "target_insert_mode_switch_use" callback.
1633         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
1634         (frv_issues_to_branch_unit_p): Likewise.
1635         (frv_pack_insn_p): Likewise.
1636         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
1637         const rtx * (i.e. mutable rtx_def * const *) to
1638         rtx_insn * const *.
1639         * config/i386/i386-protos.h (standard_sse_constant_opcode):
1640         Strengthen first param from rtx to rtx_insn *.
1641         (output_fix_trunc): Likewise.
1642         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
1643         (output_fix_trunc): Likewise.
1644         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
1645         local "insn".
1646         (min_insn_size): Likewise for param "insn".
1647         (get_mem_group): Likewise.
1648         (is_cmp): Likewise.
1649         (get_insn_path): Likewise.
1650         (get_insn_group): Likewise.
1651         (count_num_restricted): Likewise.
1652         (fits_dispatch_window): Likewise.
1653         (add_insn_window): Likewise.
1654         (add_to_dispatch_window): Likewise.
1655         (debug_insn_dispatch_info_file): Likewise.
1656         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
1657         first param.
1658         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
1659         "cmp" and local "prev".
1660         (m32c_output_compare): Likewise for param "insn".
1661         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
1662         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
1663         (define_predicate "large_insn_p"): Likewise.
1664         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
1665         param from rtx to rtx_insn *.
1666         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
1667         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
1668         (m68k_sched_attr_size): Likewise.
1669         (sched_get_opxy_mem_type): Likewise for param "insn".
1670         (m68k_sched_attr_op_mem): Likewise.
1671         (sched_mem_operand_p): Likewise.
1672         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
1673         * config/mep/mep.c (mep_multi_slot): Likewise.
1674         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
1675         first param.
1676         (mips_sync_loop_insns): Likewise.
1677         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
1678         method of "final_sequence" for typesafety.
1679         (mips_process_sync_loop): Strengthen param "insn" from rtx to
1680         rtx_insn *.
1681         (mips_output_sync_loop): Likewise.
1682         (mips_sync_loop_insns): Likewise.
1683         (mips_74k_agen_init): Likewise.
1684         (mips_sched_init): Use NULL rather than NULL_RTX when working with
1685         insns.
1686         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
1687         Strengthen param "insn" from rtx to rtx_insn *.
1688         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
1689         local "insn".
1690         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
1691         param.
1692         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
1693         "insn".  Use method of rtx_sequence for typesafety.
1694         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
1695         rtx_insn *.
1696         (branch_needs_nop_p): Likewise.
1697         (use_skip_p): Likewise.
1698         (pa_insn_refs_are_delayed): Likewise.
1699         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
1700         for locals "insn", "ninsn".
1701         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
1702         "insn".
1703         (is_cracked_insn): Likewise.
1704         (is_branch_slot_insn): Likewise.
1705         (is_nonpipeline_insn): Likewise.
1706         (insn_terminates_group_p): Likewise.
1707         (insn_must_be_first_in_group): Likewise.
1708         (insn_must_be_last_in_group): Likewise.
1709         (force_new_group): Likewise for param "next_insn".
1710         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
1711         "insn".
1712         (s390_sched_score): Likewise.
1713         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
1714         (rtx sfunc_uses_reg): Likewise for sole param.
1715         * config/sh/sh.c (sh_print_operand): Use insn method of
1716         final_sequence for typesafety.
1717         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
1718         Use insn method of final_sequence for typesafety.
1719         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
1720         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
1721         for param.
1722         (eligible_for_return_delay): Likewise.
1723         (eligible_for_sibcall_delay): Likewise.
1724         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
1725         (eligible_for_return_delay): Likewise.
1726         (eligible_for_sibcall_delay): Likewise.
1727         * config/stormy16/stormy16-protos.h
1728         (xstormy16_output_cbranch_hi): Likewise for final param.
1729         (xstormy16_output_cbranch_si): Likewise.
1730         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
1731         (xstormy16_output_cbranch_si): Likewise.
1732         * config/v850/v850-protos.h (notice_update_cc): Likewise.
1733         * config/v850/v850.c (notice_update_cc): Likewise.
1735         * final.c (get_attr_length_1): Strengthen param "insn" and param
1736         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
1737         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
1738         (get_attr_min_length): Likewise.
1739         (shorten_branches): Likewise for signature of locals "length_fun"
1740         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
1741         from a checked cast and use its methods for clarity and to enable
1742         strengthening local "inner_insn" from rtx to rtx_insn *.
1743         * genattr.c (gen_attr): When writing out the prototypes of the
1744         various generated "get_attr_" functions, strengthen the params of
1745         the non-const functions from rtx to rtx_insn *.
1746         Similarly, strengthen the params of insn_default_length,
1747         insn_min_length, insn_variable_length_p, insn_current_length.
1748         (main): Similarly, strengthen the param of num_delay_slots,
1749         internal_dfa_insn_code, insn_default_latency, bypass_p,
1750         insn_latency, min_issue_delay, print_reservation,
1751         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
1752         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
1753         to hook_int_rtx_insn_unreachable.
1754         * genattrtab.c (write_attr_get): When writing out the generated
1755         "get_attr_" functions, strengthen the param "insn" from rtx to
1756         rtx_insn *, eliminating a checked cast.
1757         (make_automaton_attrs): When writing out prototypes of
1758         "internal_dfa_insn_code_", "insn_default_latency_" functions
1759         and the "internal_dfa_insn_code" and "insn_default_latency"
1760         callbacks, strengthen their params from rtx to rtx_insn *
1761         * genautomata.c (output_internal_insn_code_evaluation): When
1762         writing out code, add a checked cast from rtx to rtx_insn * when
1763         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
1764         (output_dfa_insn_code_func): Strengthen param of generated
1765         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
1766         (output_trans_func): Likewise for generated function
1767         "state_transition".
1768         (output_internal_insn_latency_func): When writing out generated
1769         function "internal_insn_latency", rename params from "insn" and
1770         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
1771         locals "insn" and "insn2" as rtx_insn * with checked casts once
1772         we've proven that we're not dealing with const0_rtx.
1773         (output_insn_latency_func):  Strengthen param of generated
1774         function "insn_latency" from rtx to rtx_insn *.
1775         (output_print_reservation_func): Likewise for generated function
1776         "print_reservation".
1777         (output_insn_has_dfa_reservation_p): Likewise for generated
1778         function "insn_has_dfa_reservation_p".
1779         * hooks.c (hook_int_rtx_unreachable): Rename to...
1780         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
1781         from rtx to rtx_insn *.
1782         * hooks.h (hook_int_rtx_unreachable): Likewise.
1783         (extern int hook_int_rtx_insn_unreachable): Likewise.
1784         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
1785         (get_attr_min_length): Likewise.
1786         * recog.c (get_enabled_alternatives): Likewise.
1787         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
1788         * reorg.c (find_end_label): Introduce local rtx "pat" and
1789         strengthen local "insn" from rtx to rtx_insn *.
1790         (redundant_insn): Use insn method of "seq" rather than element for
1791         typesafety; strengthen local "control" from rtx to rtx_insn *.
1792         * resource.c (mark_referenced_resources): Add checked cast to
1793         rtx_insn * within INSN/JUMP_INSN case.
1794         (mark_set_resources): Likewise.
1795         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
1796         rtx to rtx_insn *.
1798 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1800         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
1801         param "label" from rtx to rtx_insn *.
1802         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
1803         and local "op".
1804         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
1805         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
1806         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1807         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1808         * final.c (default_label_align_after_barrier_max_skip): Strengthen
1809         param from rtx to rtx_insn *.
1810         (default_loop_align_max_skip): Likewise.
1811         (default_label_align_max_skip): Likewise.
1812         (default_jump_align_max_skip): Likewise.
1813         * target.def (label_align_after_barrier_max_skip): Likewise.
1814         (loop_align_max_skip): Likewise.
1815         (label_align_max_skip): Likewise.
1816         (jump_align_max_skip): Likewise.
1817         * targhooks.h (default_label_align_after_barrier_max_skip):
1818         Likewise.
1819         (default_loop_align_max_skip): Likewise.
1820         (default_label_align_max_skip): Likewise.
1821         (default_jump_align_max_skip): Likewise.
1823 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1825         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
1826         from const_rtx to const rtx_insn *.  Update union members from rtx
1827         to rtx_insn *.
1828         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
1829         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
1830         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
1831         strengthen both params from const_rtx to const rtx_insn *.
1832         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
1833         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
1834         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
1835         rtx_insn *.
1836         * target.def (can_follow_jump): Strengthen both params from
1837         const_rtx to const rtx_insn *, and update default implementation
1838         from hook_bool_const_rtx_const_rtx_true to
1839         hook_bool_const_rtx_insn_const_rtx_insn_true.
1841 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1843         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
1844         "insn" from rtx to rtx_insn *.
1845         * sched-int.h (deps_start_bb): Likewise for 2nd param.
1847 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1848             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1849             Anna Tikhonova  <anna.tikhonova@intel.com>
1850             Ilya Tocar  <ilya.tocar@intel.com>
1851             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1852             Ilya Verbin  <ilya.verbin@intel.com>
1853             Kirill Yukhin  <kirill.yukhin@intel.com>
1854             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1856         * config/i386/sse.md
1857         (define_insn "vcvtph2ps<mask_name>"): Add masking.
1858         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
1859         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
1860         (define_expand "vcvtps2ph_mask"): New.
1861         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
1862         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
1863         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
1865 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1866             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1867             Anna Tikhonova  <anna.tikhonova@intel.com>
1868             Ilya Tocar  <ilya.tocar@intel.com>
1869             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1870             Ilya Verbin  <ilya.verbin@intel.com>
1871             Kirill Yukhin  <kirill.yukhin@intel.com>
1872             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1874         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
1875         New.
1876         (define_mode_iterator VI24_AVX512BW_1): Ditto.
1877         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
1878         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
1879         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
1880         also for TARGET_AVX512VL.
1881         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
1883 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
1885         * doc/install.texi (Options specification): add 
1886         --disable-libsanitizer item.
1888 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
1889             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1891         PR target/61407
1892         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
1893         and above.
1894         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
1895         kernel version check to avoid incrementing it after every major OS X
1896         release.
1897         (darwin_default_min_version): Avoid static memory buffer.
1899 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
1901         * tree.c (need_assembler_name_p): Store C++ type mangling only
1902         for aggregates.
1904 2014-09-13  Marek Polacek  <polacek@redhat.com>
1906         * tree.c (protected_set_expr_location): Don't check whether T is
1907         non-null here.
1909 2014-09-12  DJ Delorie  <dj@redhat.com>
1911         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
1912         (extend_and_shift1_hipsi2): Likewise.
1913         (extend_and_shift2_hipsi2): Likewise.
1915 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
1917         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
1918         with NULL when dealing with an insn.
1919         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
1920         from rtx to rtx_insn *.
1921         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
1922         const_rtx to const rtx_insn *.
1923         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
1925 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
1927         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
1928         assert.
1930 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
1932         * target.def (libgcc_floating_mode_supported_p): New hook.
1933         * targhooks.c (default_libgcc_floating_mode_supported_p): New
1934         function.
1935         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
1936         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
1937         (LIBGCC2_HAS_TF_MODE): Remove.
1938         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
1939         * doc/tm.texi: Regenerate.
1940         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
1941         machine mode.
1942         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
1943         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
1944         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
1945         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
1946         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1947         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
1948         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
1949         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
1950         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
1951         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
1952         function.
1953         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
1954         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1955         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1956         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1957         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1958         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1959         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1960         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
1961         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
1962         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
1963         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1964         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
1965         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
1966         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
1967         Remove.
1968         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
1969         New macro.
1970         (ia64_libgcc_floating_mode_supported_p): New function.
1971         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
1972         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1973         (IA64_NO_LIBGCC_TFMODE): Define.
1974         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
1975         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
1976         macro.
1977         (pdp11_scalar_mode_supported_p): New function.
1978         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
1979         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
1981 2014-09-12  Richard Biener  <rguenther@suse.de>
1983         PR middle-end/63237
1984         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
1986 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
1988         * tree.c (integer_each_onep): New function.
1989         * tree.h (integer_each_onep): Declare it.
1990         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
1991         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
1992         (X & 1) == 0 for vector and complex.
1994 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1996         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
1997         for A57.
1998         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
1999         cost to spilling from integer to FP registers.
2001 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2003         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
2004         move handling.
2005         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
2006         are now handled correctly.
2008 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2010         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
2011         handling of CALLER_SAVE_REGS and POINTER_REGS.
2013 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2015         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
2016         the number of hard registers.
2018 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2019             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2020             Anna Tikhonova  <anna.tikhonova@intel.com>
2021             Ilya Tocar  <ilya.tocar@intel.com>
2022             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2023             Ilya Verbin  <ilya.verbin@intel.com>
2024             Kirill Yukhin  <kirill.yukhin@intel.com>
2025             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2027         * config/i386/sse.md
2028         (define_mode_iterator VI48_AVX512VL): New.
2029         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
2030         "avx512f_vternlog<mode>_maskz" and update mode iterator.
2031         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
2032         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
2033         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
2034         "avx512f_vternlog<mode>_mask" and update mode iterator.
2035         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
2036         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
2037         iterator.
2038         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
2039         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
2040         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
2041         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
2042         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
2043         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
2045 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2046             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2047             Anna Tikhonova  <anna.tikhonova@intel.com>
2048             Ilya Tocar  <ilya.tocar@intel.com>
2049             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2050             Ilya Verbin  <ilya.verbin@intel.com>
2051             Kirill Yukhin  <kirill.yukhin@intel.com>
2052             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2054         * config/i386/sse.md (VI128_256): Delete.
2055         (define_mode_iterator VI124_256): New.
2056         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
2057         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
2058         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
2059         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
2060         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
2061         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
2062         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2063         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
2064         iterator.
2065         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
2066         in presence of AVX-512.
2068 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2069             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2070             Anna Tikhonova  <anna.tikhonova@intel.com>
2071             Ilya Tocar  <ilya.tocar@intel.com>
2072             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2073             Ilya Verbin  <ilya.verbin@intel.com>
2074             Kirill Yukhin  <kirill.yukhin@intel.com>
2075             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2077         * config/i386/sse.md
2078         (define_expand "<avx512>_gathersi<mode>"): Rename from
2079         "avx512f_gathersi<mode>".
2080         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
2081         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
2082         (define_expand "<avx512>_gatherdi<mode>"): Rename from
2083         "avx512f_gatherdi<mode>".
2084         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
2085         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
2086         wide versions.
2087         (define_expand "<avx512>_scattersi<mode>"): Rename from
2088         "avx512f_scattersi<mode>".
2089         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
2090         (define_expand "<avx512>_scatterdi<mode>"): Rename from
2091         "avx512f_scatterdi<mode>".
2092         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
2094 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
2096         * ira.h (ira_finish_once): Delete.
2097         * ira-int.h (target_ira_int::~target_ira_int): Declare.
2098         (target_ira_int::free_ira_costs): Likewise.
2099         (target_ira_int::free_register_move_costs): Likewise.
2100         (ira_finish_costs_once): Delete.
2101         * ira.c (free_register_move_costs): Replace with...
2102         (target_ira_int::free_register_move_costs): ...this new function.
2103         (target_ira_int::~target_ira_int): Define.
2104         (ira_init): Call free_register_move_costs as a member function rather
2105         than a global function.
2106         (ira_finish_once): Delete.
2107         * ira-costs.c (free_ira_costs): Replace with...
2108         (target_ira_int::free_ira_costs): ...this new function.
2109         (ira_init_costs): Call free_ira_costs as a member function rather
2110         than a global function.
2111         (ira_finish_costs_once): Delete.
2112         * target-globals.c (target_globals::~target_globals): Call the
2113         target_ira_int destructor.
2114         * toplev.c: Include lra.h.
2115         (finalize): Call lra_finish_once rather than ira_finish_once.
2117 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
2119         * common.opt (flto-odr-type-merging): New flag.
2120         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
2121         (types_same_for_odr): Likewise.
2122         (odr_subtypes_equivalent_p): Likewise.
2123         (add_type_duplicate): Do not walk type variants.
2124         (register_odr_type): New function.
2125         * ipa-utils.h (register_odr_type): Declare.
2126         (odr_type_p): New function.
2127         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
2128         TYPE_DECLs
2129         * doc/invoke.texi (-flto-odr-type-merging): Document.
2130         * tree.c (need_assembler_name_p): Compute ODR names when asked
2131         for it.
2132         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
2134 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2136         PR target/63228
2137         * config/i386/i386.c (ix86_option_override_internal): Also turn
2138         off OPTION_MASK_ABI_X32 for -m16.
2140 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2142         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
2143         GPR instead of P.
2145 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
2147         PR target/58757
2148         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2149         Directly forward to __*_DENORM_MIN__.
2151 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
2153         * rtl.h (LABEL_REF_LABEL): New macro.
2155         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
2156         of XEXP (, 0), where we know that we have a LABEL_REF.
2157         * cfgbuild.c (make_edges): Likewise.
2158         (purge_dead_tablejump_edges): Likewise.
2159         * cfgexpand.c (convert_debug_memory_address): Likewise.
2160         * cfgrtl.c (patch_jump_insn): Likewise.
2161         * combine.c (distribute_notes): Likewise.
2162         * cse.c (hash_rtx_cb): Likewise.
2163         (exp_equiv_p): Likewise.
2164         (fold_rtx): Likewise.
2165         (check_for_label_ref): Likewise.
2166         * cselib.c (rtx_equal_for_cselib_1): Likewise.
2167         (cselib_hash_rtx): Likewise.
2168         * emit-rtl.c (mark_label_nuses): Likewise.
2169         * explow.c (convert_memory_address_addr_space): Likewise.
2170         * final.c (output_asm_label): Likewise.
2171         (output_addr_const): Likewise.
2172         * gcse.c (add_label_notes): Likewise.
2173         * genconfig.c (walk_insn_part): Likewise.
2174         * genrecog.c (validate_pattern): Likewise.
2175         * ifcvt.c (cond_exec_get_condition): Likewise.
2176         (noce_emit_store_flag): Likewise.
2177         (noce_get_alt_condition): Likewise.
2178         (noce_get_condition): Likewise.
2179         * jump.c (maybe_propagate_label_ref): Likewise.
2180         (mark_jump_label_1): Likewise.
2181         (redirect_exp_1): Likewise.
2182         (rtx_renumbered_equal_p): Likewise.
2183         * lra-constraints.c (operands_match_p): Likewise.
2184         * reload.c (operands_match_p): Likewise.
2185         (find_reloads): Likewise.
2186         * reload1.c (set_label_offsets): Likewise.
2187         * reorg.c (get_branch_condition): Likewise.
2188         * rtl.c (rtx_equal_p_cb): Likewise.
2189         (rtx_equal_p): Likewise.
2190         * rtlanal.c (reg_mentioned_p): Likewise.
2191         (rtx_referenced_p): Likewise.
2192         (get_condition): Likewise.
2193         * sched-vis.c (print_value): Likewise.
2194         * varasm.c (const_hash_1): Likewise.
2195         (compare_constant): Likewise.
2196         (const_rtx_hash_1): Likewise.
2197         (output_constant_pool_1): Likewise.
2199 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2201         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
2202         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
2203         instead of minus.
2204         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
2205         cr6_test_for_lt_reverse): Ditto.
2207 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
2209         PR c++/61489
2210         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2212 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
2214         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2215         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2216         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2217         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2218         Delete.
2220         (aarch64_fold_builtin): Remove all reinterpret cases.
2222         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2224         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2226         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2227         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2228         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
2229         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
2230         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
2231         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
2232         aarch64_reinterpretv2df<mode>): Delete.
2234         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
2236         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
2237         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
2238         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
2239         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
2240         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
2241         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
2242         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
2243         vreinterpret_u32_f64): Use cast.
2245         * config/aarch64/iterators.md (VD_RE): Delete.
2247 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
2249         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
2250         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
2251         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
2252         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
2253         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
2254         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
2255         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
2256         Replace inline assembler with __aarch64_vset_lane_any.
2258 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
2260         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
2261         types.
2262         (vmull_high_lane_s32): Likewise.
2263         (vmull_high_lane_u16): Likewise.
2264         (vmull_high_lane_u32): Likewise.
2266 2014-09-11  Jason Merrill  <jason@redhat.com>
2268         PR c++/58678
2269         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
2271 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
2273         PR target/63223
2274         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
2275         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
2276         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
2278 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2279             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2280             Anna Tikhonova  <anna.tikhonova@intel.com>
2281             Ilya Tocar  <ilya.tocar@intel.com>
2282             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2283             Ilya Verbin  <ilya.verbin@intel.com>
2284             Kirill Yukhin  <kirill.yukhin@intel.com>
2285             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2287         * config/i386/sse.md
2288         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
2289         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
2290         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
2291         New.
2292         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
2293         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
2294         iterator.
2295         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2296         New.
2297         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
2298         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
2299         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
2300         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
2301         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
2302         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
2303         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
2304         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
2305         iterator.
2306         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2307         New.
2308         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
2309         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
2310         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
2312 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2314         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
2315         to access removed nodes.
2317 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2319         PR tree-optimization/63186
2320         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
2321         (mark_nonssa_use): Likewise.
2322         (verify_non_ssa_vars): Verify all header blocks for label
2323         definitions.
2325 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2326             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2327             Anna Tikhonova  <anna.tikhonova@intel.com>
2328             Ilya Tocar  <ilya.tocar@intel.com>
2329             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2330             Ilya Verbin  <ilya.verbin@intel.com>
2331             Kirill Yukhin  <kirill.yukhin@intel.com>
2332             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2334         * config/i386/sse.md
2335         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
2336         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
2337         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
2338         "<avx2_avx512f>_permvar<mode><mask_name>".
2339         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
2340         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
2341         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
2342         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
2343         Ditto.
2344         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
2345         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2346         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
2347         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2349 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2351         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
2352         V2DF, V4SF, DF, and DI modes.
2353         (vsx_fmav2df2): Likewise.
2354         (vsx_float_fix_<mode>2): Likewise.
2355         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
2357 2014-09-10  Xinliang David Li  <davidxl@google.com>
2359         PR target/63209
2360         * config/arm/arm.md (movcond_addsi): Handle case where source
2361         and target operands are the same.
2363 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
2365         * final.c (this_is_asm_operands): Strengthen this variable from
2366         rtx to const rtx_insn *.
2367         * output.h (this_is_asm_operands): Likewise.
2368         * rtl-error.c (location_for_asm): Strengthen param "insn" from
2369         const_rtx to const rtx_insn *.
2370         (diagnostic_for_asm): Likewise.
2371         * rtl-error.h (error_for_asm): Likewise.
2372         (warning_for_asm): Likewise.
2374 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
2376         * genextract.c (print_header): When writing out insn_extract to
2377         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
2378         * recog.h (insn_extract): Strengthen the param from rtx to
2379         rtx_insn *.
2381 2014-09-10  Mike Stump  <mikestump@comcast.net>
2383         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
2384         8.6.1.
2386 2014-09-10  Martin Jambor  <mjambor@suse.cz>
2388         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
2389         (analyze): Do not set analyze flag if expand_thunk returns false;.
2390         (create_wrapper): Likewise.
2391         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
2393 2014-09-10  Martin Jambor  <mjambor@suse.cz>
2395         PR ipa/61654
2396         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
2397         new decl properly.  Analyze the new thunk if it is expanded.
2399 2014-09-10  Andreas Schwab  <schwab@suse.de>
2401         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
2402         [USED_FOR_TARGET]: Define.
2404 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
2406         * config/mips/mips.c (mips_secondary_reload_class): Handle
2407         regno < 0 case.
2409 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
2411         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
2412         assignment.
2414 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
2416         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
2417         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
2418         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
2419         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
2420         flag_delete_null_pointer_checks for them.
2421         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2422         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
2423         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
2424         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
2425         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
2426         stmt's iterator.
2427         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
2428         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
2429         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
2430         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
2431         * doc/invoke.texi (-fsanitize=nonnull-attribute,
2432         -fsanitize=returns-nonnull-attribute): Document.
2434         * ubsan.h (struct ubsan_mismatch_data): Removed.
2435         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2436         * ubsan.c (ubsan_source_location): For unknown locations,
2437         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
2438         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2439         Allow more than one location and arbitrary extra arguments passed
2440         in ... instead of through MISMATCH pointer.
2441         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
2442         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
2443         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2444         callers.
2446 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2447             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2448             Anna Tikhonova  <anna.tikhonova@intel.com>
2449             Ilya Tocar  <ilya.tocar@intel.com>
2450             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2451             Ilya Verbin  <ilya.verbin@intel.com>
2452             Kirill Yukhin  <kirill.yukhin@intel.com>
2453             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2455         * config/i386/sse.md
2456         (define_mode_iterator VI48F): New.
2457         (define_insn "<avx512>_compress<mode>_mask"): Rename from
2458         "avx512f_compress<mode>_mask" and update mode iterator.
2459         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
2460         "avx512f_compressstore<mode>_mask" and update mode iterator.
2461         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
2462         "avx512f_expand<mode>_maskz" and update mode iterator.
2463         (define_insn "<avx512>_expand<mode>_mask"): Rename from
2464         "avx512f_expand<mode>_mask" and update mode iterator.
2466 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2467             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2468             Anna Tikhonova  <anna.tikhonova@intel.com>
2469             Ilya Tocar  <ilya.tocar@intel.com>
2470             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2471             Ilya Verbin  <ilya.verbin@intel.com>
2472             Kirill Yukhin  <kirill.yukhin@intel.com>
2473             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2475         * config/i386/i386.c
2476         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
2477         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
2478         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
2479         avx512dq_rangepv4sf_mask.
2480         * config/i386/sse.md
2481         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
2482         UNSPEC_RANGE.
2483         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
2484         (define_insn "reduces<mode>"): Ditto.
2485         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2486         Ditto.
2487         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
2488         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
2489         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
2491 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2492             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2493             Anna Tikhonova  <anna.tikhonova@intel.com>
2494             Ilya Tocar  <ilya.tocar@intel.com>
2495             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2496             Ilya Verbin  <ilya.verbin@intel.com>
2497             Kirill Yukhin  <kirill.yukhin@intel.com>
2498             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2500         * config/i386/i386.c
2501         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
2502         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
2503         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
2504         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
2505         avx512vl_getmantv2df_mask.
2506         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
2507         avx512f_vgetmantv4sf_round.
2508         * config/i386/sse.md
2509         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
2510         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
2511         mode iterator.
2512         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
2513         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
2514         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
2515         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
2516         iterator..
2517         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
2518         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
2519         update mode iterator.
2520         (define_expand
2521         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
2522         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
2523         mode iterator.
2524         (define_insn
2525         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
2526         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
2527         update mode iterator.
2528         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
2529         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
2530         iterator..
2531         (define_insn
2532         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
2533         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
2534         mode iterator..
2535         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
2536         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
2537         update mode iterator.
2538         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
2539         "avx512f_getmant<mode><round_saeonly_name>".
2541 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2543         PR ipa/63166
2544         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
2546 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2547             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2548             Anna Tikhonova  <anna.tikhonova@intel.com>
2549             Ilya Tocar  <ilya.tocar@intel.com>
2550             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2551             Ilya Verbin  <ilya.verbin@intel.com>
2552             Kirill Yukhin  <kirill.yukhin@intel.com>
2553             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2555         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
2556         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
2557         (define_mode_iterator FMAMODE_AVX512): New.
2558         (define_mode_iterator FMAMODE): Remove conditions.
2559         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
2560         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
2561         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
2562         mode iterator.
2563         (define_mode_iterator FMAMODE_NOVF512): Remove.
2564         (define_insn "*fma_fmadd_<mode>"): Rename from
2565         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
2566         FMAMODE mode iterator.
2567         (define_mode_iterator VF_SF_AVX512VL): New.
2568         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
2569         Use VF_SF_AVX512VL mode iterator.
2570         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
2571         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2572         iterator.
2573         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
2574         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2575         iterator.
2576         (define_insn "*fma_fmsub_<mode>"): Rename from
2577         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
2578         FMAMODE mode iterator.
2579         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
2580         Use VF_SF_AVX512VL mode iterator.
2581         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
2582         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2583         iterator.
2584         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
2585         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2586         iterator.
2587         (define_insn "*fma_fnmadd_<mode>"): Rename from
2588         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
2589         use FMAMODE mode iterator.
2590         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
2591         Use VF_SF_AVX512VL mode iterator.
2592         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
2593         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2594         iterator.
2595         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
2596         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2597         iterator.
2598         (define_insn "*fma_fnmsub_<mode>"): Rename from
2599         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
2600         FMAMODE mode iterator.
2601         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
2602         Use VF_SF_AVX512VL mode iterator.
2603         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
2604         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2605         iterator.
2606         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
2607         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2608         iterator.
2609         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
2610         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
2611         use VF_AVX512VL mode iterator.
2612         (define_insn "*fma_fmaddsub_<mode>"): Rename from
2613         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
2614         remove subst usage.
2615         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
2616         Use VF_SF_AVX512VL mode iterator.
2617         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
2618         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2619         iterator.
2620         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
2621         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2622         iterator.
2623         (define_insn "*fma_fmsubadd_<mode>"): Rename from
2624         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
2625         remove usage of subst.
2626         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
2627         Use VF_SF_AVX512VL mode iterator.
2628         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
2629         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2630         iterator.
2631         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
2632         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2633         iterator.
2635 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
2637         Revert r213751:
2638         * calls.c (precompute_arguments): Check
2639          promoted_for_signed_and_unsigned_p and set the promoted mode.
2640         (promoted_for_signed_and_unsigned_p): New function.
2641         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2642         and set the promoted mode.
2643         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2644         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2645         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2647 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2649         * opth-gen.awk: Generate mapping from cpp message reasons to the
2650         options that enable them.
2651         * doc/options.texi (CppReason): Document.
2653 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2655         * doc/invoke.texi (Wnormalized=): Update.
2657 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
2659         PR target/63195
2660         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
2661         operands.  Split off the constant operand alternative to ...
2662         (*bool<mode>3_imm): New.
2664 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
2666         * rtl.h (single_set_2): Strengthen first param from const_rtx to
2667         const rtx_insn *, and move prototype to above...
2668         (single_set): ...this.  Convert this from a macro to an inline
2669         function, enforcing the requirement that the param is a const
2670         rtx_insn *.
2671         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
2673         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
2674         Strengthen both params from rtx to rtx_insn *.
2675         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2676         Likewise; introduce locals "producer_set", "consumer_set", using
2677         them in place of "producer" and "consumer" when dealing with SET
2678         rather than insn.
2679         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
2680         when invoking single_set in region guarded by INSN_P.
2681         (avr_out_bitop): Likewise.
2682         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
2683         region guarded by GET_CODE check, using methods to strengthen
2684         local "this_insn" from rtx to rtx_insn *, and for clarity.
2685         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
2686         Strengthen local "insn" from rtx to rtx_insn *.
2687         (define_insn_and_split "xload<mode>_A"): Likewise.
2688         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
2689         "insn".
2690         (find_load): Likewise for return type.
2691         (workaround_speculation): Likewise for both locals named
2692         "load_insn".
2693         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
2694         local "cc0_user".
2695         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
2696         for local "prev".
2697         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
2698         param 2.
2699         * config/h8300/h8300.c (notice_update_cc): Likewise.
2700         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
2701         "insn" and "dep_insn".
2702         (exact_store_load_dependency): Likewise for both params.
2703         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
2704         since this now clashes with inline function.  Instead, delay
2705         calling single_set until the point where its needed, and then
2706         assign the result to "compare_set" and rework the conditional that
2707         follows.
2708         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
2709         local "last" from rtx to rtx_insn *.
2710         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
2711         second param.
2712         (mips_store_data_bypass_p): Likewise for both params.
2713         * config/mips/mips.c (mips_load_store_insns): Likewise for second
2714         param.
2715         (mips_store_data_bypass_p): Likewise for both params.
2716         (mips_orphaned_high_part_p): Likewise for param "insn".
2717         * config/mn10300/mn10300.c (extract_bundle): Likewise.
2718         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
2719         Introduce local rtx "insn2_pat".
2720         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
2721         "ninsn".
2722         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
2723         Introduce local rtx "set", using it in place of "insn" for the
2724         result of single_set.  This appears to fix a bug, since the call
2725         to find_regno_note on a SET does nothing.
2726         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
2727         params from rtx to rtx_insn *.
2728         (set_to_load_agen): Likewise.
2729         * config/s390/s390.c (s390_label_align): Likewise for local
2730         "prev_insn".  Introduce new rtx locals "set" and "src", using
2731         them in place of "prev_insn" for the results of single_set
2732         and SET_SRC respectively.
2733         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
2734         Introduce new rtx local "set" using in place of "jump" for the
2735         result of single_set.  Use SET_SRC (set) rather than plain
2736         XEXP (set, 1).
2737         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
2738         rtx to rtx_insn *.
2739         (noncall_uses_reg): Likewise.
2740         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
2741         guarded by GET_CODE check, using its methods for clarity, and to
2742         enable strengthening local "this_insn" from rtx to rtx_insn *.
2743         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
2744         "insn" from rtx to rtx_insn *.
2745         (define_expand "umulhisi3"): Likewise.
2746         (define_expand "smulsi3_highpart"): Likewise.
2747         (define_expand "umulsi3_highpart"): Likewise.
2748         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2749         local "after".  Replace GET_CODE check with a dyn_cast,
2750         introducing new local rtx_sequence * "seq", using insn method for
2751         typesafety.
2753         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
2754         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
2755         place of "insn" once we're dealing with patterns rather than the
2756         input insn.
2757         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
2758         (scan_trace): Likewise for local "elt", updating lookups within
2759         sequence to use insn method rather than element method.
2760         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
2761         to rtx_insn *.
2762         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
2763         * ifcvt.c (noce_try_abs): Likewise for local "insn".
2764         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
2765         invoking single_set.
2766         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
2767         "insn" from rtx to rtx_insn *.
2768         (skip_usage_debug_insns): Likewise for return type, adding a
2769         checked cast.
2770         (check_secondary_memory_needed_p): Likewise for local "insn".
2771         (inherit_reload_reg): Likewise.
2772         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
2773         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
2774         checked casts.
2775         (store_data_bypass_p): Likewise for both params.
2776         (if_test_bypass_p): Likewise.
2777         * recog.h (store_data_bypass_p): Likewise for both params.
2778         (if_test_bypass_p): Likewise.
2779         * reload.c (find_equiv_reg): Likewise for local "where".
2780         * reorg.c (delete_jump): Likewise for param "insn".
2781         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
2782         to const rtx_insn *.
2783         * store-motion.c (replace_store_insn): Likewise for param "del".
2784         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
2785         and use its methods for clarity, and to strengthen local "del"
2786         from rtx to rtx_insn *.
2787         (build_store_vectors): Use insn method of "st" when calling
2788         replace_store_insn for typesafety and clarity.
2790 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2792         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
2793         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
2794         on how to make it legal in future.
2796 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
2798         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
2799         to rtx_insn *.
2800         (restinsn): Likewise.
2801         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2802         Likewise for param.
2803         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
2804         Likewise.
2805         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
2806         first param.
2807         (arc_hazard): Likewise for both params.
2808         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
2809         checked casts to rtx_sequence * and uses of the insn method for
2810         type-safety.
2811         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
2812         (arc_adjust_insn_length): Likewise for param "insn".
2813         (struct insn_length_parameters_s): Likewise for first param of
2814         "get_variants" callback field.
2815         (arc_get_insn_variants): Likewise for first param and local
2816         "inner".  Replace a check of GET_CODE with a dyn_cast to
2817         rtx_sequence *, using methods for type-safety and clarity.
2818         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
2819         rtx_sequence * and uses of the insn method for type-safety when
2820         invoking arc_adjust_insn_length.
2821         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
2822         for param.
2823         (arm_address_offset_is_imm): Likewise.
2824         (struct tune_params): Likewise for params 1 and 3 of the
2825         "sched_adjust_cost" callback field.
2826         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
2827         params 1 and 3 ("insn" and "dep").
2828         (xscale_sched_adjust_cost): Likewise.
2829         (fa726te_sched_adjust_cost): Likewise.
2830         (cortexa7_older_only): Likewise for param "insn".
2831         (cortexa7_younger): Likewise.
2832         (arm_attr_length_move_neon): Likewise.
2833         (arm_address_offset_is_imm): Likewise.
2834         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
2835         * config/avr/avr.c (avr_notice_update_cc): Likewise.
2836         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
2837         (workaround_speculation): Likewise for local "last_condjump".
2838         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
2839         (shadow_or_blockage_p): Likewise.
2840         (get_unit_reqs): Likewise.
2841         (get_unit_operand_masks): Likewise.
2842         (c6x_registers_update): Likewise.
2843         (returning_call_p): Likewise.
2844         (can_use_callp): Likewise.
2845         (convert_to_callp): Likewise.
2846         (find_last_same_clock): Likwise for local "t".
2847         (reorg_split_calls): Likewise for local "shadow".
2848         (hwloop_pattern_reg): Likewise for param "insn".
2849         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
2850         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
2851         (frv_extract_membar): Likewise.
2852         (frv_optimize_membar_local): Strengthen param "last_membar" from
2853         rtx * to rtx_insn **.
2854         (frv_optimize_membar_global): Strengthen param "membar" from rtx
2855         to rtx_insn *.
2856         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
2857         to rtx_insn **.
2858         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
2859         both params from rtx to rtx_insn *.
2860         (ia64_ld_address_bypass_p): Likewise.
2861         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
2862         "insn".
2863         (ia64_safe_type): Likewise.
2864         (group_barrier_needed): Likewise.
2865         (safe_group_barrier_needed): Likewise.
2866         (ia64_single_set): Likewise.
2867         (is_load_p): Likewise.
2868         (record_memory_reference): Likewise.
2869         (get_mode_no_for_insn): Likewise.
2870         (important_for_bundling_p): Likewise.
2871         (unknown_for_bundling_p): Likewise.
2872         (ia64_st_address_bypass_p): Likewise for both params.
2873         (ia64_ld_address_bypass_p): Likewise.
2874         (expand_vselect): Introduce new local rtx_insn * "insn", using it
2875         in place of rtx "x" after the emit_insn call.
2876         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
2877         Strengthen param from rtx to rtx_insn *.
2878         (ix86_agi_dependent): Likewise for both params.
2879         (ix86_attr_length_immediate_default): Likewise for param 1.
2880         (ix86_attr_length_address_default): Likewise for param.
2881         (ix86_attr_length_vex_default): Likewise for param 1.
2882         * config/i386/i386.c (ix86_attr_length_immediate_default):
2883         Likewise for param "insn".
2884         (ix86_attr_length_address_default): Likewise.
2885         (ix86_attr_length_vex_default): Likewise.
2886         (ix86_agi_dependent): Likewise for both params.
2887         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
2888         (vselect_insn): Likewise for this variable.
2889         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
2890         for param 1.
2891         (m68k_sched_attr_opy_type): Likewise.
2892         * config/m68k/m68k.c (sched_get_operand): Likewise.
2893         (sched_attr_op_type): Likewise.
2894         (m68k_sched_attr_opx_type): Likewise.
2895         (m68k_sched_attr_opy_type): Likewise.
2896         (sched_get_reg_operand): Likewise.
2897         (sched_get_mem_operand): Likewise.
2898         (m68k_sched_address_bypass_p): Likewise for both params.
2899         (sched_get_indexed_address_scale): Likewise.
2900         (m68k_sched_indexed_address_bypass_p): Likewise.
2901         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
2902         (m68k_sched_indexed_address_bypass_p): Likewise.
2903         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
2904         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
2905         removing another.
2906         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
2907         params from rtx to rtx_insn *.
2908         (mips_fmadd_bypass): Likewise.
2909         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
2910         (mips_linked_madd_p): Likewise.
2911         (mips_macc_chains_last_hilo): Likewise for this variable.
2912         (mips_macc_chains_record): Likewise for param.
2913         (vr4130_last_insn): Likewise for this variable.
2914         (vr4130_swap_insns_p): Likewise for both params.
2915         (mips_ls2_variable_issue): Likewise for param.
2916         (mips_need_noat_wrapper_p): Likewise for param "insn".
2917         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
2918         in place of "x" after the emit_insn.
2919         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
2920         params from rtx to rtx_insn *.
2921         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
2922         (pa_combine_instructions): Introduce local "par" for result of
2923         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
2924         to make_insn_raw.
2925         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
2926         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
2927         (rl78_alloc_physical_registers_op1): Likewise.
2928         (rl78_alloc_physical_registers_op2): Likewise.
2929         (rl78_alloc_physical_registers_ro1): Likewise.
2930         (rl78_alloc_physical_registers_cmp): Likewise.
2931         (rl78_alloc_physical_registers_umul): Likewise.
2932         (rl78_alloc_address_registers_macax): Likewise.
2933         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
2934         * config/s390/predicates.md (execute_operation): Likewise for
2935         local "insn".
2936         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
2937         params.
2938         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
2939         (addr_generation_dependency_p): Likewise for param "insn".
2940         (s390_agen_dep_p): Likewise for both params.
2941         (s390_fpload_toreg): Likewise for param "insn".
2942         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
2943         * config/sh/sh.c (sh_loop_align): Likewise for param and local
2944         "next".
2945         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
2946         * config/sh/sh_treg_combine.cc
2947         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
2948         and local "i".
2949         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
2950         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
2951         "and_insn", "load", "shift".
2952         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
2953         "insn".
2954         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
2955         for XEXP (note, 0) of the REG_CC_SETTER note.
2956         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
2957         rtx_insn *, eliminating a checked cast made redundant by this.
2958         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
2959         to rtx_insn *.
2960         * genattr.c (main): When writing out the prototype to
2961         const_num_delay_slots, strengthen the param from rtx to
2962         rtx_insn *.
2963         * genattrtab.c (write_const_num_delay_slots): Likewise when
2964         writing out the implementation of const_num_delay_slots.
2965         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
2966         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
2967         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
2968         favor of new rtx locals "src" and "set" and new local rtx_insn *
2969         "insn" and "seq".
2970         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
2971         to rtx_insn *.
2972         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
2973         locals "cond", "if_then_else", "set" and new rtx_insn * locals
2974         "insn" and "seq".
2975         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
2976         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
2977         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
2978         the top-level scope, replacing with new more tightly-scoped rtx
2979         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
2980         "new_insn", "copy_of_insn_b", and make local rtx "set" more
2981         tightly-scoped.
2982         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
2983         rtx_insn *.
2984         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
2985         "move_insn".
2986         (ira_setup_alts): Likewise for param "insn".
2987         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
2988         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
2989         and an rtx_insn *.
2990         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
2991         new more-tightly scoped rtx locals "add3_insn", "insn",
2992         "add2_insn" and rtx_insn * "move_insn".
2993         * postreload-gcse.c (eliminate_partially_redundant_load): Add
2994         checked cast on result of gen_move_insn when invoking
2995         extract_insn.
2996         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
2997         rtx_insn *.
2998         (verify_changes): Add a checked cast on "object" when invoking
2999         insn_invalid_p.
3000         (extract_insn_cached): Strengthen param "insn" from rtx to
3001         rtx_insn *.
3002         (extract_constrain_insn_cached): Likewise.
3003         (extract_insn): Likewise.
3004         * recog.h (insn_invalid_p): Likewise for param 1.
3005         (recog_memoized): Likewise for param.
3006         (extract_insn): Likewise.
3007         (extract_constrain_insn_cached): Likewise.
3008         (extract_insn_cached): Likewise.
3009         * reload.c (can_reload_into): Likewise for local "test_insn".
3010         * reload.h (cleanup_subreg_operands): Likewise for param.
3011         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
3012         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
3013         result of emit_insn.  Remove a checked cast made redundant by this
3014         change.
3015         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
3016         rtx to rtx_insn *.
3017         * sel-sched.c (get_reg_class): Likewise.
3019 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3020         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3022          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
3023          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
3024         Define.
3025         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
3027 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3029         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
3030         const rtx_insn *, and from rtx to rtx_insn * for the other
3031         overloaded variant.
3032         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
3033         INSN_LOCATION, since we know INSN_P holds.
3034         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
3035         (insn_file): Likewise.
3036         (insn_scope): Likewise.
3037         (insn_location): Likewise.
3039         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
3040         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
3041         for the result of gen_load_const_gp.
3042         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
3043         param from rtx to rtx_insn *.
3044         * config/rs6000/rs6000.c (output_call): Likewise.
3045         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
3046         introducing a checked cast to rtx_sequence * and use of the insn
3047         method.
3048         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
3049         from rtx to rtx_insn *.
3050         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
3051         (insn_line): Likewise.
3052         (insn_file): Likewise.
3053         (insn_location): Likewise.
3054         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
3055         from rtx to rtx_insn *.
3056         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
3057         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
3058         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
3059         via a checked cast.
3060         * reorg.c (relax_delay_slots): Strengthen locals named "after"
3061         from rtx to rtx_insn *; use methods of "pat" for type-safety.
3063 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3065         * combine.c (try_combine): Eliminate checked cast on result of
3066         gen_rtx_INSN.
3067         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
3068         autogenerated one by strengthening the return type and params 2 and 3
3069         from rtx to rtx_insn *, and by naming the params.
3070         * gengenrtl.c (special_rtx): Add INSN to those that are
3071         special-cased.
3072         * rtl.h (gen_rtx_INSN): New prototype.
3074 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3076         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
3077         than NULL_RTX.
3078         (no_equiv): Likewise.
3079         (update_equiv_regs): Likewise.
3080         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
3081         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
3082         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
3083         clarity.
3084         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
3085         from rtx to rtx_insn_list *.
3086         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
3087         rtx_insn_list * and use methods for clarity and typesafety.
3088         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
3089         "list".
3090         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
3091         redundant check on INSN_P (insns): this cannot hold, as "insns" is
3092         an INSN_LIST, not an insn.
3093         (reverse_equiv_p): Strengthen local "insns" from rtx to
3094         rtx_insn_list * and use methods for clarity and typesafety.
3095         (contains_reloaded_insn_p): Likewise for local "list".
3097 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
3099         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
3100         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
3101         (arm_builtin_vectorized_function): Likewise.
3102         * config/arm/arm_neon_builtins.def: New macro for copysignf.
3103         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
3105 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3107         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
3108         * builtins.h (default_target_builtins): Likewise.
3109         * gcse.h (default_target_gcse): Likewise.
3110         * target-globals.h (target_globals): Add a destructor.  Convert
3111         void-pointer fields back to their real type and change from
3112         GTY((atomic)) to GTY((skip)).
3113         (restore_target_globals): Remove casts accordingly.
3114         * target-globals.c (save_target_globals): Use XCNEW rather than
3115         ggc_internal_cleared_alloc to allocate non-GC structures.
3116         Use ggc_cleared_alloc to allocate the target_globals structure
3117         itself.
3118         (target_globals::~target_globals): Define.
3120 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3122         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
3123         mnemonic instead of fldmfdd.
3124         * config/arm/arm.c (vfp_output_fstmd): Rename to...
3125         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
3126         Output vpush when address register is SP.
3127         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
3128         (vfp_output_vstmd): ... This.
3129         * config/arm/vfp.md (push_multi_vfp): Update call to
3130         vfp_output_vstmd.
3132 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3134         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
3136 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3138         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
3139         (*sqrtdf2_vfp): Likewise.
3140         (*cmpsf_vfp): Likewise.
3141         (*cmpsf_trap_vfp): Likewise.
3142         (*cmpdf_vfp): Likewise.
3143         (*cmpdf_trap_vfp): Likewise.
3145 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3147         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
3148         (*truncdfsf2_vfp): Likewise.
3149         (*truncsisf2_vfp): Likewise.
3150         (*truncsidf2_vfp): Likewise.
3151         (fixuns_truncsfsi2): Likewise.
3152         (fixuns_truncdfsi2): Likewise.
3153         (*floatsisf2_vfp): Likewise.
3154         (*floatsidf2_vfp): Likewise.
3155         (floatunssisf2): Likewise.
3156         (floatunssidf2): Likewise.
3158 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3160         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
3161         (*muldf3_vfp): Likewise.
3162         (*mulsf3negsf_vfp): Likewise.
3163         (*muldf3negdf_vfp): Likewise.
3164         (*mulsf3addsf_vfp): Likewise.
3165         (*muldf3adddf_vfp): Likewise.
3166         (*mulsf3subsf_vfp): Likewise.
3167         (*muldf3subdf_vfp): Likewise.
3168         (*mulsf3negsfaddsf_vfp): Likewise.
3169         (*fmuldf3negdfadddf_vfp): Likewise.
3170         (*mulsf3negsfsubsf_vfp): Likewise.
3171         (*muldf3negdfsubdf_vfp): Likewise.
3173 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3175         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
3176         (*absdf2_vfp): Likewise.
3177         (*negsf2_vfp): Likewise.
3178         (*negdf2_vfp): Likewise.
3179         (*addsf3_vfp): Likewise.
3180         (*adddf3_vfp): Likewise.
3181         (*subsf3_vfp): Likewise.
3182         (*subdf3_vfp): Likewise.
3183         (*divsf3_vfp): Likewise.
3184         (*divdf3_vfp): Likewise.
3186 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3188         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
3189         multiple.
3190         (arm_print_operand): Don't convert real values to decimal
3191         representation in default case.
3192         (fp_immediate_constant): Delete.
3193         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
3194         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
3195         syntax.
3196         (*thumb2_movsi_vfp): Likewise.
3197         (*movdi_vfp): Likewise.
3198         (*movdi_vfp_cortexa8): Likewise.
3199         (*movhf_vfp_neon): Likewise.
3200         (*movhf_vfp): Likewise.
3201         (*movsf_vfp): Likewise.
3202         (*thumb2_movsf_vfp): Likewise.
3203         (*movdf_vfp): Likewise.
3204         (*thumb2_movdf_vfp): Likewise.
3205         (*movsfcc_vfp): Likewise.
3206         (*thumb2_movsfcc_vfp): Likewise.
3207         (*movdfcc_vfp): Likewise.
3208         (*thumb2_movdfcc_vfp): Likewise.
3210 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
3212         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3213         (-mtune): Likewise.
3214         (-mcpu): Likewise.
3216 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3218         PR target/61749
3219         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3220         Use qualifier_immediate for last operand.  Rename to...
3221         (aarch64_types_ternop_lane_qualifiers): ... This.
3222         (TYPES_QUADOP): Rename to...
3223         (TYPES_TERNOP_LANE): ... This.
3224         (aarch64_simd_expand_args): Return const0_rtx when encountering user
3225         error.  Change return of 0 to return of NULL_RTX.
3226         (aarch64_crc32_expand_builtin): Likewise.
3227         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3228         ICE when expanding unknown builtin.
3229         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
3230         TERNOP_LANE qualifiers.
3231         (sqdmlsl_lane): Likewise.
3232         (sqdmlal_laneq): Likewise.
3233         (sqdmlsl_laneq): Likewise.
3234         (sqdmlal2_lane): Likewise.
3235         (sqdmlsl2_lane): Likewise.
3236         (sqdmlal2_laneq): Likewise.
3237         (sqdmlsl2_laneq): Likewise.
3239 2014-09-09  Nick Clifton  <nickc@redhat.com>
3241         * doc/invoke.texi (Optimization Options): Add missing @gol to the
3242         end of a line.
3243         (S/390 and zSeries Options): Remove superfluous word from the
3244         description of the -mhotpatch option.
3246 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3248         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
3249         * ira.c: #include "shrink-wrap.h"
3250         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
3251         * ifcvt.c: #include "shrink-wrap.h"
3252         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
3254 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
3256         * common/config/picochip/picochip-common.c: Remove.
3257         * config.gcc: Remove support for picochip.
3258         * config/picochip/constraints.md: Remove.
3259         * config/picochip/dfa_space.md: Remove.
3260         * config/picochip/dfa_speed.md: Remove.
3261         * config/picochip/picochip-protos.h: Remove.
3262         * config/picochip/picochip.c: Remove.
3263         * config/picochip/picochip.h: Remove.
3264         * config/picochip/picochip.md: Remove.
3265         * config/picochip/picochip.opt: Remove.
3266         * config/picochip/predicates.md: Remove.
3267         * config/picochip/t-picochip: Remove.
3268         * doc/md.texi: Don't document picochi.
3270 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
3272         * basic-block.h (control_flow_insn_p): Strengthen param from
3273         const_rtx to const rtx_insn *.
3274         * cfgbuild.c (control_flow_insn_p): Likewise.
3276 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
3278         * gcse.c (modify_mem_list): Strengthen this variable from
3279         vec<rtx> * to vec<rtx_insn *> *.
3280         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
3281         vec<rtx_insn *>.
3282         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
3283         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
3284         (record_last_mem_set_info): Strengthen param "insn" from rtx to
3285         rtx_insn *.
3286         (record_last_set_info): Likewise for local "last_set_insn".
3288 2014-09-08  DJ Delorie  <dj@redhat.com>
3290         * doc/invoke.texi (MSP430 Options): Add -minrt.
3292 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3294         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
3295         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
3296         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
3297         handling SH_SPLAT.
3298         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
3299         of extracted lane.
3300         (adjust_splat): New function.
3301         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
3302         (dump_swap_insn_table): Add case for SH_SPLAT.
3304 2014-09-08  Richard Biener  <rguenther@suse.de>
3306         PR ipa/63196
3307         * tree-inline.c (copy_loops): The source loop header should
3308         always be non-NULL.
3309         (tree_function_versioning): If loops need fixup after removing
3310         unreachable blocks fix them.
3311         * omp-low.c (simd_clone_adjust): Do not add incr block to
3312         loop under construction.
3314 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3316         * config/aarch64/aarch64-builtins.c
3317         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
3319 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
3321         * config/i386/cygming.h (TF_SIZE): Remove.
3322         * config/i386/darwin.h (TF_SIZE): Remove.
3323         * config/i386/dragonfly.h (TF_SIZE): Remove.
3324         * config/i386/freebsd.h (TF_SIZE): Remove.
3325         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
3326         * config/i386/openbsdelf.h (TF_SIZE): Remove.
3327         * config/i386/sol2.h (TF_SIZE): Remove.
3328         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
3329         * config/ia64/linux.h (TF_SIZE): Remove.
3330         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
3331         * doc/tm.texi: Regenerate.
3332         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
3334 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
3336         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3337         Remove.
3338         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
3339         Remove.
3340         * doc/tm.texi: Regenerate.
3341         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3342         Poison.
3343         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
3344         * config/cris/cris.h (__make_dp): Remove.
3346 2014-09-08  Richard Biener  <rguenther@suse.de>
3348         PR bootstrap/63204
3349         * cfgloop.c (mark_loop_for_removal): Track former header
3350         unconditionally.
3351         * cfgloop.h (struct loop): Add former_header member unconditionally.
3352         * loop-init.c (fix_loop_structure): Enable bogus loop removal
3353         diagnostic unconditionally.
3355 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
3357         PR target/63190
3358         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
3359         constraint for operand0 and remove write only modifier from operand3.
3361 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
3363         PR rtl-optimization/62208
3364         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
3365         rather than const0_rtx in eq/ne-xor simplifications.
3367 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
3369         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
3370         (arc_output_mi_thunk): Likewise.
3372         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
3373         arguments to silence bogus warning.
3375 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
3377         PR middle-end/63171
3378         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
3380 2014-09-06  Tom de Vries  <tom@codesourcery.com>
3382         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
3383         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
3384         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3386 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
3388         PR target/63188
3389         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
3390         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
3392 2014-09-05  Easwaran Raman  <eraman@google.com>
3394         PR rtl-optimization/62146
3395         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
3396         hoisted instruction unconditional.
3398 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
3400         PR target/63187
3401         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
3402         Do not allow any_mask_operand for operands[2].
3403         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
3405 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3407         * config/arc/arc.c (arc_print_operand): Use insn method of
3408         final_sequence for type-safety.
3409         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
3410         "insn" from rtx to rtx_insn *.
3411         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
3412         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3413         Likewise for locals "branch", "label".
3414         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
3415         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
3416         (same_cmp_following_p): Likewise for locals "i2", "i3".
3417         * config/sh/sh_optimize_sett_clrt.cc
3418         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
3419         param "cbranch_insn".
3420         * function.c (convert_jumps_to_returns): Likewis for local "jump".
3421         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
3422         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
3423         const rtx_insn *.
3424         (condjump_p): Likewise.
3425         (condjump_in_parallel_p): Likewise.
3426         (pc_set): Likewise.
3427         (any_uncondjump_p): Likewise.
3428         (any_condjump_p): Likewise.
3429         (condjump_label): Likewise.
3430         (returnjump_p): Strengthen param "insn" from rtx to
3431         const rtx_insn *.
3432         (onlyjump_p): Strengthen param "insn" from const_rtx to
3433         const rtx_insn *.
3434         (jump_to_label_p): Likewise.
3435         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
3436         (invert_jump): Likewise.
3437         * reorg.c (simplejump_or_return_p): Add checked cast when calling
3438         simplejump_p.
3439         (get_jump_flags): Strengthen param "insn" from rtx to
3440         const rtx_insn *.
3441         (get_branch_condition): Likewise.
3442         (condition_dominates_p): Likewise.
3443         (make_return_insns): Move declaration of local "pat" earlier, to
3444         after we've handled NONJUMP_INSN_P and non-sequences, using its
3445         methods to simplify the code and for type-safety.
3446         * rtl.h (find_constant_src): Strengthen param from const_rtx to
3447         const rtx_insn *.
3448         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
3449         (condjump_p): Strengthen param from const_rtx to
3450         const rtx_insn *.
3451         (any_condjump_p): Likewise.
3452         (any_uncondjump_p): Likewise.
3453         (pc_set): Likewise.
3454         (condjump_label): Likewise.
3455         (simplejump_p): Likewise.
3456         (returnjump_p): Likewise.
3457         (onlyjump_p): Likewise.
3458         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
3459         (invert_jump): Likewise.
3460         (condjump_in_parallel_p): Strengthen param from const_rtx to
3461         const rtx_insn *.
3462         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
3463         to const rtx_insn *.
3464         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
3465         to const rtx_insn *.
3466         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
3468 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3470         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
3471         above the conditional, and convert the check on GET_CODE to a
3472         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
3473         the conditional.  Simplify the conditional by using methods of
3474         "trial_seq".
3476 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3478         * haifa-sched.c (check_clobbered_conditions): Strengthen local
3479         "link" from rtx to rtx_insn_list *, and use its methods for
3480         clarity and type-safety.
3481         (toggle_cancelled_flags): Likewise.
3482         (restore_last_backtrack_point): Likewise.
3483         (queue_to_ready): Use insn method of "link" in one place.
3484         (schedule_block): Strengthen local "link" from rtx to
3485         rtx_insn_list *, and use its methods for clarity and type-safety.
3487 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3489         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
3490         param "insn" from const_rtx to const rtx_insn *.
3491         (sched_get_reverse_condition_uncached): Likewise.
3492         (sched_get_condition_with_rev): Likewise.
3493         (sched_has_condition_p): Likewise.
3494         (sched_insns_conditions_mutex_p): Likewise for both params.
3495         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
3496         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
3497         (setup_insn_reg_uses): Move local "list" to be more tightly
3498         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
3499         its methods for clarity and type-safety.
3500         (sched_analyze_1): Strengthen local "pending" from rtx to
3501         rtx_insn_list *, and local "pending_mem" from rtx to
3502         rtx_expr_list *.  Use methods of each for clarity and type-safety.
3503         (sched_analyze_2): Likewise.
3504         (sched_analyze_insn): Likewise.
3506         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
3507         param from const_rtx to const rtx_insn *.
3508         (sched_insns_conditions_mutex_p): Likewise for both params.
3509         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
3510         param.
3512         * system.h (CONST_CAST_RTX_INSN): New macro.
3514 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3516         * recog.c (peep2_attempt): Strengthen return type from rtx to
3517         rtx_insn *.
3518         (peep2_update_life): Likewise for params "last", "prev", removing
3519         a checked cast made redundant by this.
3520         (peephole2_optimize): Likewise for local "last".
3522 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3524         * basic-block.h (set_block_for_insn): Eliminate this macro in
3525         favor of...
3526         * rtl.h (set_block_for_insn): New inline function, imposing the
3527         requirement that the "insn" param is an rtx_insn *.
3529 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3531         * caller-save.c (setup_save_areas): Strengthen local "insn" from
3532         rtx to rtx_insn *.
3533         * final.c (get_call_reg_set_usage): Likewise for first param,
3534         eliminating a checked cast.
3535         * regs.h (get_call_reg_set_usage): Likewise for first param.
3536         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
3537         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
3538         cast, replacing references to "x" with "call_insn" where
3539         appropriate.
3540         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
3541         rtx_insn *, adding a checked cast.
3543 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3545         * output.h (final_scan_insn): Strengthen first param from rtx to
3546         rtx_insn *.
3548         * final.c (final_scan_insn): Likewise, renaming it back from
3549         "uncast_insn" to "insn", eliminating the checked cast.
3551         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
3552         "vec" with an rtx_sequence * "seq", taking a copy of
3553         "final_sequence", and using methods of "seq" for clarity, and for
3554         type-safety in the calls to final_scan_insn.
3555         * config/mips/mips.c (mips_output_conditional_branch): Use methods
3556         of "final_sequence" for clarity, and for type-safety in the call to
3557         final_scan_insn.
3558         * config/sh/sh.c (print_slot): Strengthen param from rtx to
3559         rtx_sequence * and rename from "insn" to "seq".
3561 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3563         * jump.c (delete_related_insns): Introduce a new local "table" by
3564         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
3565         get_labels method of "table" to simplify access to the labels in
3566         the jump table.
3568 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3570         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
3571         f_minmaxs, f_minmaxd types.
3573 2014-09-05  Richard Biener  <rguenther@suse.de>
3575         * cfgloop.c (mark_loop_for_removal): Record former header
3576         when ENABLE_CHECKING.
3577         * cfgloop.h (strut loop): Add former_header member when
3578         ENABLE_CHECKING.
3579         * loop-init.c (fix_loop_structure): Sanity check loops
3580         marked for removal if they re-appeared.
3582 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3584         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
3585         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
3587         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
3588         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
3589         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
3590         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
3591         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
3592         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
3593         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
3594         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
3595         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
3596         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
3597         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
3598         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
3599         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
3600         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
3601         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
3602         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
3603         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
3604         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
3605         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
3606         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
3607         with int{32,16,8}_t.
3609 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3611         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
3612         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
3613         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
3614         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
3615         Remove temporary __asm__ and reimplement.
3617 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3619         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
3620         handling cmge, cmgt, cmeq, cmtst.
3622         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
3623         cmlt, cmgeu, cmgtu, cmtst): Remove.
3625         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
3626         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
3627         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
3628         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
3630 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3632         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
3633         TYPES_TST): Define.
3634         (aarch64_fold_builtin): Update pattern for cmtst.
3636         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
3637         Declare.
3639         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
3641         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
3642         Switch operands, separate out more cases, refactor.
3644         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
3646         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
3647         argument; rename old version to...
3648         (aarch64_const_vec_all_same_in_range_p): ...this.
3649         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
3651         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
3653 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3655         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3656         Remove qualifier_const_pointer, update comment.
3658 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3660         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
3662 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3664         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
3665         varargs with pointer parameter.
3666         (aarch64_simd_expand_builtin): pass pointer into previous.
3668 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3670         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
3671         alus_ext.
3673 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3675         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
3676         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
3677         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
3678         Replace temporary asm with call to builtin.
3679         (vrbit_p8, vrbitq_p8): New functions.
3681 2014-09-05  Richard Biener  <rguenther@suse.de>
3683         * cfgloop.c (mark_loop_for_removal): New function.
3684         * cfgloop.h (mark_loop_for_removal): Declare.
3685         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
3686         (merge_blocks): Likewise.
3687         (duplicate_block): Likewise.
3688         * except.c (sjlj_emit_dispatch_table): Likewise.
3689         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3690         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
3691         (thread_through_loop_header): Likewise.
3693 2014-09-05  Richard Biener  <rguenther@suse.de>
3695         PR middle-end/63148
3696         * fold-const.c (try_move_mult_to_index): Remove.
3697         (fold_binary_loc): Do not call it.
3698         * tree-data-ref.c (dr_analyze_indices): Strip conversions
3699         from the base object again.
3701 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
3703         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
3704         DImode.
3706 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
3708         PR target/55701
3709         * config/arm/arm.md (setmem): New pattern.
3710         * config/arm/arm-protos.h (struct tune_params): New fields.
3711         (arm_gen_setmem): New prototype.
3712         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
3713         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3714         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3715         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
3716         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
3717         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
3718         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
3719         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3720         (arm_const_inline_cost): New function.
3721         (arm_block_set_max_insns): New function.
3722         (arm_block_set_non_vect_profit_p): New function.
3723         (arm_block_set_vect_profit_p): New function.
3724         (arm_block_set_unaligned_vect): New function.
3725         (arm_block_set_aligned_vect): New function.
3726         (arm_block_set_unaligned_non_vect): New function.
3727         (arm_block_set_aligned_non_vect): New function.
3728         (arm_block_set_vect, arm_gen_setmem): New functions.
3730 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
3732         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
3734 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
3736         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
3738 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3740         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
3741         an rtx.
3742         * valtrack.h: Adjust.
3744 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3746         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
3747         an rtx.
3748         (emit_jump_insn_before_noloc): Likewise.
3749         (emit_call_insn_before_noloc): Likewise.
3750         (emit_label_before): Likewise.
3751         (emit_label_after): Likewise.
3752         (emit_insn_before_setloc): Likewise.
3753         (emit_jump_insn_before_setloc): Likewise.
3754         (emit_call_insn_before_setloc): Likewise.
3755         (emit_call_insn_before): Likewise.
3756         * rtl.h: Adjust.
3758 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3760         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
3761         rtx_insn *, eliminating a checked cast.
3763 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3765         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
3766         const_rtx to const rtx_insn *.
3767         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
3768         cast.
3770 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3772         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
3773         fixup_args_size_notes.
3774         * expr.c (fixup_args_size_notes): Strengthen first two params from
3775         rtx to rtx_insn *, eliminating a checked cast.
3776         * rtl.h (fixup_args_size_notes): Strengthen first two params from
3777         rtx to rtx_insn *.
3779 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3781         * haifa-sched.c (get_ready_element): Strengthen return type from
3782         rtx to rtx_insn *.
3783         * sched-int.h (get_ready_element): Likewise.
3785 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
3787         PR target/63165
3788         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
3789         indexed_or_indirect_operand instead of memory_operand.
3790         (floatsi<mode>2_lfiwzx_mem): Ditto.
3792 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3794         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
3795         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
3796         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
3798 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3800         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
3801         rtx.
3802         (get_last_nonnote_insn): Likewise.
3803         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
3804         * resource.c (find_basic_block): Likewise.
3805         * rtl.h: Adjust.
3806         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
3807         const_rtx.
3809 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
3811         * genattr.c (main): Within the prototype of insn_latency written
3812         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
3813         * genautomata.c (output_internal_maximal_insn_latency_func):
3814         Within the implementation of insn_latency written out to
3815         insn-automata.c, strengthen both params from rtx to rtx_insn *,
3816         eliminating a pair of checked casts.
3818 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
3820         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
3821         rtx_insn *.
3823         * rtl.h (eh_returnjump_p): Likewise.
3825 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
3827         * Makefile.in (TAGS): Handle constructs in timevar.def.
3829 2014-09-04  Guozhi Wei  <carrot@google.com>
3831         PR target/62040
3832         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
3833         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
3834         it into two patterns.
3835         (move_lo_quad_internal_be_<mode>): Likewise.
3837 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3839         * doc/options.texi: Document that Var and Init are required if CPP
3840         is given.
3841         * optc-gen.awk: Require Var and Init if CPP is given.
3842         * common.opt (Wpedantic): Use Init.
3844 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3846         * config/rs6000/rs6000.c (special_handling_values): Add
3847         SH_EXTRACT.
3848         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
3849         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
3850         as swappable with special handling SH_EXTRACT.  Remove
3851         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
3852         optimization.
3853         (adjust_extract): New function.
3854         (handle_special_swappables): Add default to case statement; add
3855         case for SH_EXTRACT that calls adjust_extract.
3856         (dump_swap_insn_table): Handle SH_EXTRACT.
3858 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3860         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
3861         selection of 0th memory doubleword, regardless of endianness.
3863 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3865         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
3867 2014-09-04  Alan Modra  <amodra@gmail.com>
3869         PR debug/60655
3870         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
3871         can't be output.
3873 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
3875         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
3876         * targhooks.c (default_dwarf_frame_reg_mode): New function.
3877         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
3878         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
3879         * doc/tm.texi: Regenerate.
3880         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
3881         selection logic to default_dwarf_frame_reg_mode.
3883 2014-09-03  Marek Polacek  <polacek@redhat.com>
3885         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
3886         by -Wall.
3888 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
3890         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
3891         the automodified register.
3893 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
3895         * output.h (get_some_local_dynamic_name): Declare.
3896         * final.c (some_local_dynamic_name): New variable.
3897         (get_some_local_dynamic_name): New function.
3898         (final_end_function): Clear some_local_dynamic_name.
3899         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
3900         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3901         (print_operand): Report an error if '%&' is used inappropriately.
3902         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
3903         (get_some_local_dynamic_name_1): Delete.
3904         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
3905         (rs6000_get_some_local_dynamic_name): Delete.
3906         (rs6000_get_some_local_dynamic_name_1): Delete.
3907         (print_operand): Report an error if '%&' is used inappropriately.
3908         * config/s390/s390.c (machine_function): Remove some_ld_name.
3909         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3910         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
3911         * config/sparc/sparc.c: Include rtl-iter.h.
3912         (machine_function): Remove some_ld_name.
3913         (sparc_print_operand): Report an error if '%&' is used inappropriately.
3914         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3916 2014-09-03  Richard Henderson  <rth@redhat.com>
3918         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
3919         (aarch64_popwb_pair_reg): Remove.
3920         (aarch64_set_frame_expr): Remove.
3921         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
3922         the restore ops performed by the insns generated.
3923         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
3924         insn.  Perform the calls_eh_return addition later; do not attempt to
3925         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
3926         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
3927         special markup at all.  Load cfun->machine->frame.hard_fp_offset
3928         into a local variable.
3929         (aarch64_frame_pointer_required): Don't check calls_alloca.
3931 2014-09-03  Richard Biener  <rguenther@suse.de>
3933         * opts.c (default_options_optimization): Adjust
3934         max-combine-insns to 2 for -Og.
3936 2014-09-03  Martin Jambor  <mjambor@suse.cz>
3938         PR ipa/62015
3939         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
3940         pass-trough jump functions correctly.
3942 2014-09-03  Martin Jambor  <mjambor@suse.cz>
3944         PR ipa/61986
3945         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
3946         created replacements in ascending order of offsets.
3947         (known_aggs_to_agg_replacement_list): Likewise.
3949 2014-09-03  Martin Liska  <mliska@suse.cz>
3951         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
3952         is set to set uninitialized value for vnresult.
3954 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3956         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
3957         for TARGET_MUST_PASS_IN_STACK.
3959 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3961         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
3962         for TARGET_ARG_PARTIAL_BYTES.
3964 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3966         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
3967         instructions for varargs implementation.
3968         (nds32_expand_epilogue): Emit stack adjustment instructions for
3969         varargs implementation.
3971 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3973         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
3974         optimization detection.
3976 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3978         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
3979         arguments.
3980         (nds32_function_arg_advance): Deal with nameless arguments.
3981         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
3982         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
3983         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
3985 2014-09-03  Richard Biener  <rguenther@suse.de>
3987         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
3988         (struct bb_bitmap_sets): Remove deferred member.
3989         (BB_DEFERRED): Remove.
3990         (defer_or_phi_translate_block): Remove.
3991         (compute_antic_aux): Remove deferring of blocks, assert
3992         proper iteration order.
3993         (compute_antic): Do not set BB_DEFERRED.
3994         (eliminate): Allocate el_avail of proper size initially.
3996 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3998         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
3999         according to the value of crtl->args.pretend_args_size.
4001 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4003         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
4004         varargs information.
4006 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4008         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
4009         implementation for TARGET_SETUP_INCOMING_VARARGS.
4010         (nds32_strict_argument_naming): Refine comment.
4011         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
4012         Define for future implementation.
4014 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
4016         * config/i386/adxintrin.h (_subborrow_u32): New.
4017         (_addcarry_u32): Ditto.
4018         (_subborrow_u64): Ditto.
4019         (_addcarry_u64): Ditto.
4020         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
4021         IX86_BUILTIN_SBB64.
4022         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
4023         __builtin_ia32_sbb_u64
4025 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4027         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
4028         GPR-specific stuff.
4029         (nds32_function_arg_advance): Likewise.
4030         (nds32_init_cumulative_args): Likewise.
4031         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
4032         (NDS32_FIRST_GPR_REGNUM): Define.
4033         (NDS32_LAST_GPR_REGNUM): Define.
4034         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
4035         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4036         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4037         (machine_function): Use GRP-specific stuff.
4039 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4041         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
4042         (nds32_expand_epilogue): Likewise.
4043         (nds32_expand_prologue_v3push): Likewise.
4044         (nds32_expand_epilogue_v3pop): Likewise.
4046 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4048         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
4049         v3push/v3pop for variadic function.
4050         * config/nds32/nds32.md (prologue, epilogue): Likewise.
4052 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4054         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
4055         Check rtx for varargs implementation.
4056         (nds32_output_stack_pop): Likewise.
4057         * config/nds32/nds32-protos.h: Have a rtx argument for
4058         nds32_output_stack_push and nds32_output_stack_pop.
4059         * config/nds32/nds32.md: Likewise.
4061 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4063         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
4064         to check if FUNC is an interrupt service routine.
4065         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
4067 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4069         * config/nds32/nds32.h (machine_function): Add some fields for variadic
4070         arguments implementation.
4072 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4074         * config/nds32/nds32-predicates.c
4075         (nds32_valid_stack_push_pop): Rename to ...
4076         (nds32_valid_stack_push_pop_p): ... this.
4077         * config/nds32/nds32-protos.h: Likewise.
4078         * config/nds32/predicates.md: Likewise.
4080 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4082         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
4083         (nds32_emit_stack_v3push): ... this.
4084         (nds32_gen_stack_v3pop): Rename to ...
4085         (nds32_emit_stack_v3pop): ... this and consider CFA restore
4086         information.
4088 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4090         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
4091         (nds32_emit_stack_push_multiple): ... this.
4092         (nds32_gen_stack_pop_multiple): Rename to ...
4093         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
4094         information.
4096 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4098         PR target/61078
4099         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
4100         and add a second splitter to handle the remaining cases.
4102 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4104         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
4106 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4108         * cfgexpand.c (label_rtx_for_bb): Change type to
4109         hash_map<basic_block, rtx_code_label *> *.
4110         (expand_gimple_basic_block): Adjust.
4111         (pass_expand::execute): Likewise.
4113 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4115         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
4116         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
4117         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
4118         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
4119         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
4120         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
4121         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
4122         of rtx.
4124 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4126         * alloc-pool.c: Include coretypes.h.
4127         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
4128         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
4129         hash_set instead of htab.
4130         * ggc-page.c (in_gc): New variable.
4131         (ggc_free): Do nothing if a collection is taking place.
4132         (ggc_collect): Set in_gc appropriately.
4133         * ggc.h (gt_ggc_mx(const char *)): New function.
4134         (gt_pch_nx(const char *)): Likewise.
4135         (gt_ggc_mx(int)): Likewise.
4136         (gt_pch_nx(int)): Likewise.
4137         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
4138         (hash_map::hash_entry::pch_nx): Likewise.
4139         (hash_map::hash_entry::pch_nx_helper): Likewise.
4140 (hash_map::hash_map): Adjust.
4141 (hash_map::create_ggc): New function.
4142 (gt_ggc_mx): Likewise.
4143 (gt_pch_nx): Likewise.
4144         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
4145 (default_hashset_traits::pch_nx): Likewise.
4146 (hash_set::hash_entry::ggc_mx): Likewise.
4147 (hash_set::hash_entry::pch_nx): Likewise.
4148 (hash_set::hash_entry::pch_nx_helper): Likewise.
4149 (hash_set::hash_set): Adjust.
4150 (hash_set::create_ggc): New function.
4151 (hash_set::elements): Likewise.
4152 (gt_ggc_mx): Likewise.
4153 (gt_pch_nx): Likewise.
4154         * hash-table.h (hash_table::hash_table): Adjust.
4155 (hash_table::m_ggc): New member.
4156         (hash_table::~hash_table): Adjust.
4157         (hash_table::expand): Likewise.
4158         (hash_table::empty): Likewise.
4159 (gt_ggc_mx): New function.
4160         (hashtab_entry_note_pointers): Likewise.
4161 (gt_pch_nx): Likewise.
4163 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4165         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
4166         built-in definition.
4167         (XVCVUXDDP_SCALE): Likewise.
4168         (XVCVDPSXDS_SCALE): Likewise.
4169         (XVCVDPUXDS_SCALE): Likewise.
4170         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
4171         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
4172         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
4173         VSX_BUILTIN_XVCVDPUXDS_SCALE.
4174         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
4175         prototype.
4176         * config/rs6000/rs6000.c (real.h): New include.
4177         (rs6000_scale_v2df): New function.
4178         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
4179         (UNSPEC_VSX_XVCVUXDDP): Likewise.
4180         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
4181         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
4182         (vsx_xvcvsxddp_scale): New define_expand.
4183         (vsx_xvcvsxddp): New define_insn.
4184         (vsx_xvcvuxddp_scale): New define_expand.
4185         (vsx_xvcvuxddp): New define_insn.
4186         (vsx_xvcvdpsxds_scale): New define_expand.
4187         (vsx_xvcvdpsxds): New define_insn.
4188         (vsx_xvcvdpuxds_scale): New define_expand.
4189         (vsx_xvcvdpuxds): New define_insn.
4190         * doc/extend.texi (vec_ctf): Add new prototypes.
4191         (vec_cts): Likewise.
4192         (vec_ctu): Likewise.
4193         (vec_splat): Likewise.
4194         (vec_div): Likewise.
4195         (vec_mul): Likewise.
4197 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4199         PR target/62275
4200         * config/arm/neon.md
4201         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
4202         <v_cmp_result>): New pattern.
4203         * config/arm/iterators.md (NEON_VCVT): New int iterator.
4204         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
4205         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
4206         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4207         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4208         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4210 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4212         PR target/62275
4213         * config/arm/iterators.md (FIXUORS): New code iterator.
4214         (VCVT): New int iterator.
4215         (su_optab): New code attribute.
4216         (su): Likewise.
4217         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4219 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4221         * config/aarch64/predicates.md (aarch64_comparison_operation):
4222         New special predicate.
4223         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4224         aarch64_comparison_operation instead of matching an operator.
4225         Update operand numbers.
4226         (csinc3<mode>_insn): Likewise.
4227         (*csinv3<mode>_insn): Likewise.
4228         (*csneg3<mode>_insn): Likewise.
4229         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
4230         * config/aarch64/aarch64.c (aarch64_get_condition_code):
4231         Return -1 instead of aborting on invalid condition codes.
4232         (aarch64_print_operand): Update aarch64_get_condition_code callsites
4233         to assert that the returned condition code is valid.
4234         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
4236 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
4238         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
4239         tree.def, and gimple.def
4241 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
4242             Balaji V. Iyer  <balaji.v.iyer@intel.com>
4243             Igor Zamyatin  <igor.zamyatin@intel.com>
4245         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
4246         (__cilkrts_cilk_for_64): Likewise.
4247         * cilk-common.c (declare_cilk_for_builtin): New function.
4248         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
4249         __cilkrts_cilk_for_64 bultins.
4250         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
4251         CILK_TI_F_LOOP_64.
4252         (cilk_for_32_fndecl): New define.
4253         (cilk_for_64_fndecl): Likewise.
4254         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
4255         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
4256         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
4257         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
4258         GF_OMP_FOR_COMBINED_INTO.
4259         * gimplify.c (gimplify_scan_omp_clauses): Added
4260         OMP_CLAUSE__CILK_FOR_COUNT_ case.
4261         (gimplify_adjust_omp_clauses): Ditto.
4262         (gimplify_omp_for): Added CILK_FOR case.
4263         (gimplify_expr): Ditto.
4264         * omp-low.c: Include cilk.h.
4265         (extract_omp_for_data): Set appropriate kind for
4266         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
4267         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
4268         (create_omp_child_function_name): Added second argument to handle
4269         cilk_for case.
4270         (cilk_for_check_loop_diff_type): New function.
4271         (expand_cilk_for_call): Likewise.
4272         (expand_cilk_for): Likewise.
4273         (create_omp_child_function): Set cilk_for_count; handle the cases when
4274         it is true; call create_omp_child_function_name with second argument.
4275         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
4276         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
4277         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
4278         * tree-nested.c (convert_nonlocal_omp_clauses): Added
4279         OMP_CLAUSE__CILK_FOR_COUNT_ case.
4280         (convert_local_omp_clauses): Ditto.
4281         * tree-pretty-print.c (dump_omp_clause): Added
4282         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
4283         (dump_generic_node): Added CILK_FOR case.
4284         * tree.c (omp_clause_num_ops): New element
4285         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
4286         (omp_clause_code_name): New element _Cilk_for_count_.
4287         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
4288         * tree.def: Add tree code for CILK_FOR.
4290 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4292         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
4293         (ppc403-compare): Add "exts with dot" case.
4294         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
4295         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
4296         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
4297         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
4298         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
4299         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
4300         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
4301         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4302         cell-cmp-microcoded): Similarly.
4303         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
4304         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
4305         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
4306         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
4307         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
4308         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
4309         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
4310         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
4311         (power6-compare): Add "exts with dot" case.
4312         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
4313         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
4314         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
4316         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
4317         if avoiding Cell microcode.
4318         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
4319         (is_cracked_insn): Ditto.
4320         (insn_must_be_first_in_group): Ditto.
4321         * config/rs6000/rs6000.md (dot): Adjust comment.
4322         (cell_micro): Handle exts+dot.
4323         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
4324         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
4325         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
4326         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
4327         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
4328         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
4329         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
4331 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4333         * config/rs6000/rs6000.md (QHSI): Delete.
4334         (EXTQI, EXTHI, EXTSI): New mode iterators.
4335         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
4336         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
4337         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
4338         9 anonymous instructions, and 8 splitters): Delete.
4339         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
4340         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
4341         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
4342         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
4343         *zero_extendsi<mode>2_dot2): New.
4345 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4347         * config/rs6000/rs6000.md (any_extend): New code iterator.
4348         (u, su): New code attributes.
4349         (dmode, DMODE): New mode attributes.
4350         (<su>mul<mode>3_highpart): New.
4351         (*<su>mul<mode>3_highpart): New.
4352         (<su>mulsi3_highpart_le): New.
4353         (<su>muldi3_highpart_le): New.
4354         (<su>mulsi3_highpart_64): New.
4355         (<u>mul<mode><dmode>3): New.
4356         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
4357         splitters): Delete.
4358         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
4359         splitters): Delete.
4361 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4363         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
4364         *mulsi3_internal2, and two splitters): Delete.
4365         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
4366         Delete.
4367         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
4369 2014-09-02  Richard Biener  <rguenther@suse.de>
4371         PR tree-optimization/62695
4372         * tree-ssa-structalias.c (find_func_clobbers): Add missing
4373         vector truncate.
4375 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
4377         PR target/62312
4378         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
4380 2014-09-01  Andi Kleen  <ak@linux.intel.com>
4382         * file-find.c (add_prefix_begin): Add.
4383         (do_add_prefix): Rename from add_prefix with first argument.
4384         (add_prefix): Add new wrapper.
4385         * file-find.h (add_prefix_begin): Add.
4386         * gcc-ar.c (main): Support -B option.
4388 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4390         * genemit.c: Include dumpfile.h.
4391         (gen_split): Print name of splitter function to dump file.
4393 2014-09-01  Richard Biener  <rguenther@suse.de>
4395         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
4396         Use stack auto_vecs for constraint expressions.
4397         (find_func_aliases_for_call): Likewise.
4398         (find_func_aliases): Likewise.
4399         (find_func_clobbers): Likewise.
4401 2014-09-01  Richard Biener  <rguenther@suse.de>
4403         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
4404         operands vector in most cases.  Remove redundant code.
4406 2014-09-01  Olivier Hainque  <hainque@adacore.com>
4408         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
4409         $WIND_BASE instead of designating a harcoded arbitrary home dir.
4410         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
4412 2014-09-01  Richard Biener  <rguenther@suse.de>
4414         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
4415         copy_reference_ops_from_call, vn_nary_op_compute_hash,
4416         vn_reference_compute_hash, vn_reference_insert): Remove.
4417         (vn_reference_lookup_call): New function.
4418         * tree-ssa-sccvn.c (vn_reference_compute_hash,
4419         copy_reference_ops_from_ref, copy_reference_ops_from_call,
4420         vn_reference_insert, vn_nary_op_compute_hash): Make static.
4421         (create_reference_ops_from_call): Remove.
4422         (vn_reference_lookup_3): Properly update shared_lookup_references.
4423         (vn_reference_lookup_pieces): Assert that we updated
4424         shared_lookup_references properly.
4425         (vn_reference_lookup): Likewise.
4426         (vn_reference_lookup_call): New function.
4427         (visit_reference_op_call): Use it.  Avoid re-building the
4428         reference ops.
4429         (visit_reference_op_load): Remove redundant lookup.
4430         (visit_reference_op_store): Perform special tail-merging work
4431         only when possibly doing tail-merging.
4432         (visit_use): Likewise.
4433         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
4435 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
4437         PR target/62025
4438         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
4439         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
4440         (find_inc): Revert 2014-08-13 change.
4442 2014-09-01  Marek Polacek  <polacek@redhat.com>
4444         PR middle-end/61903
4445         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
4446         Change the type of V to unsigned HOST_WIDE_INT.
4448 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4450         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
4451         the size of byte markers.
4452         (do_shift_rotate): Fix confusion between host, target and marker byte
4453         size.
4454         (verify_symbolic_number_p): Likewise.
4455         (find_bswap_or_nop_1): Likewise.
4456         (find_bswap_or_nop): Likewise.
4458 2014-09-01  Olivier Hainque  <hainque@adacore.com>
4460         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4461         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
4463 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
4465         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
4466         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
4467         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
4469 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
4471         PR sanitizer/61897
4472         PR sanitizer/62140
4473         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
4474         (build_check_stmt): Likewise.
4475         (instrument_strlen_call): Likewise.
4476         (asan_expand_check_ifn): Likewise and fix types.
4477         (maybe_cast_to_ptrmode): New function.
4479 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4481         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
4483 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
4485         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
4487 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
4489         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
4490         prefix to function labels when generating fast indirect calls.
4492 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
4494         PR bootstrap/62304
4496         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
4497         param back from rtx_insn * to rtx.  Rename param from "label" to
4498         "label_or_return", reintroducing "label" as an rtx_insn * after
4499         we've ensured it's not a RETURN.
4500         (first_active_target_insn): Likewise for return type and param;
4501         add a checked cast to rtx_insn * once we've ensured "insn" is not
4502         a RETURN.
4503         (steal_delay_list_from_target): Convert param "pnew_thread" back
4504         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
4505         with JUMP_LABEL.
4506         (own_thread_p): Convert param "thread" back from an rtx_insn * to
4507         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
4508         cast once we've established we're not dealing with a RETURN,
4509         renaming subsequent uses of "thread" to "thread_insn".
4510         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
4511         to JUMP_LABEL.
4512         (follow_jumps): Convert return type and param "label" from
4513         rtx_insn * back to rtx.  Move initialization of "value" to after
4514         the handling for ANY_RETURN_P, adding a checked cast there to
4515         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
4516         rename to "this_label_or_return", reintroducing "this_label" as
4517         an rtx_insn * once we've handled the case where it could be an
4518         ANY_RETURN_P.
4519         (fill_slots_from_thread): Rename param "thread" to
4520         "thread_or_return", converting from an rtx_insn * back to an rtx.
4521         Reintroduce name "thread" as an rtx_insn * local with a checked
4522         cast once we've handled the case of it being an ANY_RETURN_P.
4523         Convert local "new_thread" from an rtx_insn * back to an rtx.
4524         Add a checked cast when assigning to "trial" from "new_thread".
4525         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
4526         checked cast to rtx_insn * from "new_thread" when invoking
4527         get_label_before.
4528         (fill_eager_delay_slots): Convert locals "target_label",
4529         "insn_at_target" from rtx_insn * back to rtx.
4530         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
4531         (relax_delay_slots): Convert locals "trial", "target_label" from
4532         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
4533         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
4534         invoking update_block.
4535         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
4536         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
4538         * resource.h (mark_target_live_regs): Undo erroneous conversion
4539         of second param of r214693, converting it back from rtx_insn * to
4540         rtx, since it could be a RETURN.
4542         * resource.c (find_dead_or_set_registers): Similarly, convert
4543         param "jump_target" back from an rtx_insn ** to an rtx *, as we
4544         could be writing back a RETURN.  Rename local rtx_insn * "next" to
4545         "next_insn", and introduce "lab_or_return" as a local rtx,
4546         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
4547         (mark_target_live_regs): Undo erroneous conversion
4548         of second param of r214693, converting it back from rtx_insn * to
4549         rtx, since it could be a RETURN.  Rename it from "target" to
4550         "target_maybe_return", reintroducing the name "target" as a local
4551         rtx_insn * with a checked cast, after we've handled the case of
4552         ANY_RETURN_P.
4554 2014-08-29  DJ Delorie  <dj@redhat.com>
4556         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
4557         pointer size up to a power of two.
4558         * defaults.h (DWARF2_ADDR_SIZE): Round up.
4559         (POINTER_SIZE_UNITS): New, rounded up value.
4560         * dwarf2asm.c (size_of_encoded_value): Use it.
4561         (dw2_output_indirect_constant_1): Likewise.
4562         * expmed.c (init_expmed_one_conv): We now know the sizes of
4563         partial int modes.
4564         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
4565         * optabs.c (expand_float): Use precision, not size.
4566         (expand_fix): Likewise.
4567         * simplify-rtx (simplify_unary_operation_1): Likewise.
4568         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4569         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
4570         (default_assemble_integer) Likewise.
4571         (dump_tm_clone_pairs): Likewise.
4572         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
4573         * var-tracking.c (adjust_mems): Allow partial-int modes also.
4574         (prepare_call_arguments): Likewise.
4575         * stor-layout.c (finalize_type_size): Preserve precision.
4576         (layout_type): Use precision, not size.
4578         * expr.c (convert_move): If the target has an explicit converter,
4579         use it.
4581 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
4583         * gdbinit.in: Skip various inline functions in rtl.h when
4584         stepping.
4586 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
4588         PR bootstrap/62301
4589         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
4591 2014-08-29  Richard Biener  <rguenther@suse.de>
4593         PR tree-optimization/62291
4594         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
4595         exactly the vector size needed and use quick_push.
4596         (phi_translate_1): Adjust comment.
4597         (valid_in_sets): Remove block argument and remove pointless
4598         checking of NAMEs.
4599         (dependent_clean): Adjust for removal of block argument.
4600         (clean): Likewise.
4601         (compute_antic_aux): Likewise.
4602         (compute_partial_antic_aux): Likewise.
4604 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4605             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4606             Anna Tikhonova  <anna.tikhonova@intel.com>
4607             Ilya Tocar  <ilya.tocar@intel.com>
4608             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4609             Ilya Verbin  <ilya.verbin@intel.com>
4610             Kirill Yukhin  <kirill.yukhin@intel.com>
4611             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4613         * config/i386/sse.md
4614         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
4615         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
4616         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
4617         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
4619 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4620             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4621             Anna Tikhonova  <anna.tikhonova@intel.com>
4622             Ilya Tocar  <ilya.tocar@intel.com>
4623             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4624             Ilya Verbin  <ilya.verbin@intel.com>
4625             Kirill Yukhin  <kirill.yukhin@intel.com>
4626             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4628         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
4629         * config/i386/sse.md
4630         (define_mode_iterator VI4_128_8_256): New.
4631         (define_mode_iterator VI2_128_4_256): Ditto.
4632         (define_mode_iterator PMOV_DST_MODE): Rename into
4633         (define_mode_iterator PMOV_DST_MODE_1): this.
4634         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
4635         Use PMOV_DST_MODE_1 mode iterator.
4636         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4637         Ditto.
4638         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4639         Ditto.
4640         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
4641         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
4642         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
4643         (define_mode_iterator PMOV_DST_MODE_2): New.
4644         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
4645         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
4646         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
4647         Ditto.
4648         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
4649         (define_mode_attr pmov_dst_3): Ditto.
4650         (define_mode_attr pmov_dst_zeroed_3): Ditto.
4651         (define_mode_attr pmov_suff_3): Ditto.
4652         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
4653         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
4654         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
4655         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
4656         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
4657         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
4658         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
4659         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
4660         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
4661         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
4662         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
4663         (define_mode_attr pmov_dst_4): Ditto.
4664         (define_mode_attr pmov_dst_zeroed_4): Ditto.
4665         (define_mode_attr pmov_suff_4): Ditto.
4666         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
4667         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
4668         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
4669         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
4670         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
4671         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
4672         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
4673         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
4674         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
4675         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
4676         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
4678 2014-08-29  Richard Biener  <rguenther@suse.de>
4680         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
4681         NON_LVALUE_EXPR in gimple.
4683 2014-08-29  Richard Biener  <rguenther@suse.de>
4685         PR middle-end/62292
4686         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
4687         from previous refactoring.
4688         (gimple_fold_builtin_strncpy): Likewise.
4690 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
4692         PR bootstrap/62300
4693         * function.c (assign_parm_setup_reg): Remove erroneous checked
4694         cast to rtx_insn * on result of gen_extend_insn in favor of
4695         introducing a new local rtx "pat".
4697 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4699         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
4700         to silence warning.
4701         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
4703 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4705         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
4706         (next_insn): Likewise.
4707         * emit-rtl.c (next_insn): Likewise.
4708         (previous_insn): Likewise.
4709         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
4710         "insn" and "next" from rtx to rtx_insn *.
4711         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
4712         "insn", "insn1", "vliw_start",  "prologue_end_note",
4713         "last_insn_in_packet".
4715 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4717         * shrink-wrap.h (active_insn_between): Strengthen both params from
4718         rtx to rtx_insn *.
4719         * function.c (active_insn_between): Likewise.
4721 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4723         * genattr.c (main): When writing out insn-attr.h, strengthen param
4724         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
4725         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
4726         writing out the definition of dfa_clear_single_insn_cache to the
4727         generated insn-automata.c
4729 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4731         * resource.h (clear_hashed_info_for_insn): Strengthen param from
4732         rtx to rtx_insn *.
4733         (incr_ticks_for_insn): Likewise.
4734         (init_resource_info): Likewise.
4736         * resource.c (init_resource_info): Likewise.
4737         (clear_hashed_info_for_insn): Likewise.
4738         (incr_ticks_for_insn): Likewise.
4740         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
4741         rtx to rtx_insn *.
4742         (steal_delay_list_from_target): Use methods of "seq".
4743         (try_merge_delay_insns): Use methods of "merged_insns".
4744         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
4745         (reorg_redirect_jump): Likewise for param "jump".
4747 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4749         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
4750         rtx to rtx_insn *.
4751         * config/s390/s390.c (s390_split_branches): Eliminate top-level
4752         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
4753         "set_insn".
4754         (s390_mainpool_finish): In three places, split out a local rtx
4755         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
4756         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
4757          and split another local rtx "insn" out into rtx "pat" and
4758         rtx_insn * "insn".
4759         * config/sh/sh.c (output_branchy_insn): Rather than working
4760         directly on operands[9], introduce local rtx_code_label *
4761         variables named "lab" in two places, working on them, and then
4762         assigning them to operands[9], so that the intervening operations
4763         are known by the type system to be on insns.
4765 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4767         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
4768         const rtx_insn *.
4770         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
4771         in invocation of INSN_HAS_LOCATION.
4773 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4775         * config/rs6000/altivec.h (vec_xl): New #define.
4776         (vec_xst): Likewise.
4777         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
4778         (XXSPLTD_V2DI): Likewise.
4779         (DIV_V2DI): Likewise.
4780         (UDIV_V2DI): Likewise.
4781         (MUL_V2DI): Likewise.
4782         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4783         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
4784         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
4785         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
4786         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
4787         (UNSPEC_VSX_DIVSD): Likewise.
4788         (UNSPEC_VSX_DIVUD): Likewise.
4789         (UNSPEC_VSX_MULSD): Likewise.
4790         (vsx_mul_v2di): New insn-and-split.
4791         (vsx_div_v2di): Likewise.
4792         (vsx_udiv_v2di): Likewise.
4793         (vsx_xxspltd_<mode>): New insn.
4795 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4797         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
4798         NEXT_INSN.
4799         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
4800         (NEXT_INSN): Likewise.
4801         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
4802         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
4803         const rtx_insn *.
4804         (no_labels_between_p): Likewise for both params.
4806         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
4807         cast when using NEXT_INSN on operands[2].
4808         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
4809         "insn" from rtx to rtx_insn *, adding a checked cast.
4810         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
4811         rtx_insn *.
4812         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
4813         for third param.
4814         (arc_text_label): Likewise for param "insn".
4815         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
4816         "insn".
4817         (arc_ccfsm_record_condition): Likewise for param "jump".
4818         (arc_text_label): Likewise for local "label".
4819         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
4820         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
4821         a method for typesafety.  Add a checked cast.
4822         * config/arc/constraints.md (Clb): Add a checked cast when getting
4823         the CODE_LABEL from a LABEL_REF.
4824         * config/arm/arm.c (require_pic_register): Strengthen locals
4825         "seq", "insn" from rtx to rtx_insn *.
4826         (create_fix_barrier): Likewise for locals "selected", "next".
4827         (thumb1_reorg): Likewise for locals "prev", "insn".
4828         (arm_expand_prologue): Likewise for local "last".
4829         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
4830         operands[0].
4831         (thumb2_output_casesi): Likewise for operands[2].
4832         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
4833         strengthen local "insn" from rtx to rtx_insn *.
4834         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
4835         type and param "insn".
4836         (find_prev_insn_start): Likewise.
4837         (hwloop_optimize): Likewise for locals "insn", "last_insn",
4838         "prev".
4839         (gen_one_bundle): Likewise for loal "t".
4840         (find_load): Likewise for param "insn".
4841         (workaround_speculation): Likewise for locals "insn", "next",
4842         "target", "next_tgt".
4843         * config/c6x/c6x.c (assign_reservations): Likewise for both params
4844         and for locals "insn", "within", "last".
4845         (count_unit_reqs): Likewise for params "head", "tail" and local
4846         "insn".
4847         (try_rename_operands): Likewise for params "head", "tail".
4848         (reshuffle_units): Likewise for locals "head", "tail", "insn".
4849         (struct c6x_sched_context): Likewise for fields
4850         "last_scheduled_insn", "last_scheduled_iter0".
4851         (init_sched_state): Replace NULL_RTX with NULL.
4852         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
4853         to rtx_insn *.
4854         (undo_split_delayed_nonbranch): Likewise for param and for local
4855         "prev".
4856         (conditionalize_after_sched): Likewise for local "insn".
4857         (bb_earliest_end_cycle): Likewise.
4858         (filter_insns_above): Likewise for locals "insn", "next".
4859         (hwloop_optimize): Remove redundant checked cast.
4860         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
4861         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
4862         NULL_RTX with NULL.
4863         (cris_simple_epilogue): Likewise.
4864         (cris_expand_prologue): Likewise.
4865         (cris_expand_epilogue): Likewise.
4866         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
4867         local "insn" from rtx to rtx_insn *.
4868         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
4869         (struct frv_packet_group): Likewise for the elements within array
4870         fields "insns", "sorted", and for field "nop".
4871         (frv_packet): Likewise for the elements within array field
4872         "insns".
4873         (frv_add_insn_to_packet): Likewise for param "insn".
4874         (frv_insert_nop_in_packet): Likewise for param "insn" and local
4875         "last".
4876         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
4877         (frv_sort_insn_group_1): Likewise for local "insn".
4878         (frv_optimize_membar_local): Likewise.
4879         (frv_align_label): Likewise for locals "x", "last", "barrier",
4880         "label".
4881         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
4882         local.
4883         (ia64_sched_init): Likewise for local "insn".
4884         (scheduled_good_insn): Likewise for param "last".
4885         (struct _ia64_sched_context): Likewise for field
4886         "last_scheduled_insn".
4887         (ia64_init_sched_context): Replace NULL_RTX with NULL.
4888         (struct bundle_state): Likewise for field "insn".
4889         (issue_nops_and_insn): Likewise for param "insn".
4890         (get_next_important_insn): Likewise for return type and both
4891         params.
4892         (ia64_add_bundle_selector_before): Likewise for param "insn".
4893         (bundling): Likewise for params "prev_head_insn", "tail" and
4894         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
4895         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
4896         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
4897         Strengthen final param from rtx to rtx_insn *.
4898         (iq2000_move_1word): Likewise for second param.
4899         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
4900         param "cur_insn" and local "next_insn".
4901         (iq2000_move_1word): Likewise for param "insn".
4902         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
4903         casts when using NEXT_INSN on operands[1].
4904         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
4905         "insn" from rtx to rtx_insn *.
4906         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
4907         "x", introducing local rtx_insn * "insn" for when working with the
4908         CODE_LABEL of the LABEL_REF.
4909         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
4910         rtx_insn *.
4911         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
4912         param.
4913         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
4914         type.
4915         (conditionalize_block): Likewise for return type and param.
4916         (mcore_is_dead): Likewise for param "first" and local "insn".
4917         (emit_new_cond_insn): Likewise for return type.
4918         (conditionalize_block): Likewise for return type, param, and
4919         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
4920         "newinsn".
4921         (conditionalize_optimization): Likewise for local "insn".
4922         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
4923         using NEXT_INSN.
4924         * config/microblaze/microblaze.md: Add checked casts when using
4925         NEXT_INSN.
4926         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
4927         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
4928         and rtx_insn * "insn".
4929         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
4930         checked cast when using NEXT_INSN on operands[2].
4931         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
4932         local "insn" from rtx to rtx_insn *.
4933         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
4934         Likewise.
4935         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
4936         Add a checked cast when using NEXT_INSN on operands[1].
4937         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
4938         rtx to rtx_insn *.
4939         (pa_output_cbranch): Likewise for final param.
4940         (pa_output_lbranch): Likewise for second param.
4941         (pa_output_bb): Likewise for third param.
4942         (pa_output_bvb): Likewise.
4943         (pa_output_dbra): Likewise for second param.
4944         (pa_output_movb): Likewise.
4945         (pa_output_parallel_movb): Likewise.
4946         (pa_output_parallel_addb): Likewise.
4947         (pa_output_millicode_call): Likewise for first param.
4948         (pa_output_mul_insn): Likewise for second param.
4949         (pa_output_div_insn): Likewise for third param.
4950         (pa_output_mod_insn): Likewise for second param.
4951         (pa_jump_in_call_delay): Likewise for param.
4952         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
4953         (pa_output_div_insn): Likewise.
4954         (pa_output_mod_insn): Likewise.
4955         (pa_output_cbranch): Likewise.
4956         (pa_output_lbranch): Likewise.
4957         (pa_output_bb): Likewise.
4958         (pa_output_bvb): Likewise.
4959         (pa_output_dbra): Likewise.
4960         (pa_output_movb): Likewise.
4961         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
4962         to simplify and for typesafety.
4963         (pa_output_call): Use method of rtx_sequence *.
4964         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
4965         (pa_jump_in_call_delay): Likewise.
4966         (pa_output_parallel_movb): Likewise.
4967         (pa_output_parallel_addb): Likewise.
4968         (pa_following_call): Likewise.
4969         (pa_combine_instructions): Likewise for locals "anchor",
4970         "floater".
4971         (pa_can_combine_p): Likewise for params "anchor", "floater" and
4972         locals "start", "end".
4973         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
4974         param "insn" and local "local_insn".
4975         (picochip_final_prescan_insn): Likewise for local "local_insn".
4976         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
4977         local "insn".
4978         (uses_TOC): Likewise.
4979         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
4980         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
4981         splitting out to more tightly-scoped locals, 3 as rtx and one as
4982         rtx_insn *.
4983         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
4984         to rtx_insn *.
4985         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
4986         where needed.
4987         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
4988         to rtx_insn *.
4989         (fixup_addr_diff_vecs): Likewise.
4990         (reg_unused_after): Likewise for param 2.
4991         (sh_can_redirect_branch): Likewise for both params.
4992         (check_use_sfunc_addr): Likewise for param 1.
4993         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
4994         (find_barrier): Likewise for local "last_got".
4995         (gen_block_redirect): Likewise for return type, param "jump" and
4996         locals "prev", "scan", "next", "insn".
4997         (struct far_branch): Likewise for fields "near_label",
4998         "insert_place", "far_label".
4999         (gen_far_branch): Likewise for local "jump".
5000         (fixup_addr_diff_vecs): Likewise for param "first" and locals
5001         "insn", "prev".
5002         (barrier_align): Likewise for param and for locals "prev", "x".
5003         Introduce local rtx_sequence * "prev_seq" and use insn method for
5004         typesafety and clarity.
5005         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
5006         (get_dest_uid): Likewise for local "dest".
5007         (split_branches): Likewise for locals "next", "beyond", "label",
5008         "block", "far_label".  Add checked casts when assigning to
5009         bp->far_label and "far_label".
5010         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
5011         (sequence_insn_p): Likewise.
5012         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
5013         more loop-scoped rtx "insn" when walking LABEL_REFS.
5014         (sh_can_redirect_branch): Strengthen both params from rtx to
5015         rtx_insn *.
5016         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
5017         new local rtx_sequence * "seq" via a dyn_cast, and use a method
5018         for clarity and typesafety.
5019         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
5020         "insn" from rtx to rtx_insn *.
5021         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
5022         when using NEXT_INSN on the CODE_LABEL in operands[2].
5023         (define_insn "casesi_worker_2"): Likewise.
5024         (define_insn "casesi_shift_media"): Likewise.
5025         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
5026         operands[3].
5027         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
5028         Strengthen field "insn" from rtx to rtx_insn *.
5029         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
5030         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
5031         param "start_insn" and local "start_insn".
5032         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
5033         field "insn".
5034         (find_set_of_reg_bb): Likewise for param "insn".
5035         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
5036         (trace_reg_uses): Likewise for param "start_insn".
5037         (sh_treg_combine::cbranch_trace): Likewise for field
5038         "cbranch_insn".
5039         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
5040         param "insn".
5041         (sh_treg_combine::record_set_of_reg): Likewise for param
5042         "start_insn" and local "i".
5043         (sh_treg_combine::can_remove_cstore): Likewise for local
5044         "prev_insn".
5045         (sh_treg_combine::try_optimize_cbranch): Likewise for param
5046         "insn".
5047         (sh_treg_combine::execute): Likewise for local "i".
5048         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
5049         param.
5050         (sparc_check_64): Likewise for second param.
5051         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5052         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
5053         dyn_cast, using its insn method for typesafety and clarity.
5054         (empty_delay_slot): Strengthen param "insn" from rtx to
5055         rtx_insn *.
5056         (set_extends): Likewise.
5057         (sparc_check_64): Likewise.
5058         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
5059         for locals "seq", "last_insn".
5060         (combine_bnp): Likewise for param "insn".
5061         (xstormy16_reorg): Likewise for local "insn".
5062         * config/v850/v850.c (substitute_ep_register): Likewise for params
5063         "first_insn", "last_insn" and local "insn".
5064         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
5065         elements of "regs" array, and local "insn".
5066         * except.c (emit_note_eh_region_end): Likewise for param "insn".
5067         * final.c (final_sequence): Strengthen this global from rtx to
5068         rtx_sequence *.
5069         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
5070         rtx_insn *.
5071         (final_scan_insn): Update assignment to "final_sequence" to be
5072         from "seq", the cast version of "body", for type-safety.
5073         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
5074         "insns" from rtx to rtx_insn *.
5075         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
5076         * genattr.c (main): When writing out generated insn-attr.h,
5077         strengthen params 1 and 3 of eligible_for_delay,
5078         eligible_for_annul_true, eligible_for_annul_false from rtx to
5079         rtx_insn *.
5080         * genattrtab.c (write_eligible_delay): Likewise when writing out
5081         generated insn-attrtab.c; also local "insn" the generated
5082         functions.
5083         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
5084         to rtx_insn *.
5085         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
5086         "start_label" from rtx to rtx_insn *.
5087         * ira.c (decrease_live_ranges_number): Likewise for local "p".
5088         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
5089         "insns" and local "insn".
5090         (validate_equiv_mem): Likewise for param "start" and local "insn".
5091         (memref_used_between_p): Likewise for params "start", "end" and
5092         local "insn".
5093         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
5094         final param.
5095         * loop-doloop.c (doloop_optimize): Within region guarded by
5096         INSN_P (doloop_pat), introduce a new local rtx_insn *
5097         "doloop_insn" via a checked cast, and use it for typesafety,
5098         eventually writing the value back into doloop_pat.
5099         * output.h (final_sequence): Strengthen this global from rtx to
5100         rtx_sequence *.
5101         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
5102         reintroducing "insn" as an rtx_insn * via a checked cast.
5103         Strengthen param "attempt" and local "new_insn"from rtx to
5104         rtx_insn *.
5105         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
5106         to rtx_insn *.
5107         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
5108         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
5109         "p" in favor of more tightly-scoped replacements, sometimes rtx
5110         and sometimes rtx_insn *, as appropriate.
5111         (delete_output_reload): Eliminate top-level rtx "i1", splitting
5112         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
5113         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
5114         local "trial" from rtx to rtx_insn *.
5115         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
5116         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
5117         rtx_sequence * and use methods for clarity and typesafety.
5118         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
5119         rtx to rtx_insn *.  Strenghten local "li" from rtx to
5120         rtx_insn_list * and use its methods for clarity and typesafety.
5121         (steal_delay_list_from_target): Strengthen param "insn" from rtx
5122         to rtx_insn *.
5123         (steal_delay_list_from_fallthrough): Likewise.
5124         (try_merge_delay_insns): Likewise for param "thread" and locals
5125         "trial", "next_trial", "delay_insn".
5126         (redundant_insn): Likewise for param "target" and local "trial".
5127         (own_thread_p): Likewise for param "thread" and locals
5128         "active_insn", "insn".
5129         (get_label_before): Likewise for param "insn".
5130         (fill_simple_delay_slots): Likewise for local "new_label"; use
5131         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
5132         (label_before_next_insn): Strengthen return type and local "insn"
5133         from rtx to rtx_insn *.
5134         (relax_delay_slots): Likewise for locals "other", "tmp".
5135         (make_return_insns): Likewise for param "first" and locals "insn",
5136         "jump_insn", "prev".  Move declaration of "pat" to its assignment
5137         and strengthen from rtx to rtx_sequence *.  Use its methods for
5138         clarity and typesafety.
5139         * rtlanal.c (no_labels_between_p): Strengthen params from
5140         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
5141         rtx_insn *.
5142         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
5143         from const_rtx to const rtx_insn *.
5144         (reg_set_between_p): Rename param "from_insn" to
5145         "uncast_from_insn", and reintroduce "from_insn" as a
5146         const rtx_insn * via a checked cast.
5147         (modified_between_p): Likewise for param "start" as "uncast_start".
5148         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
5149         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
5150         "tmp", head" from rtx to rtx_insn *.
5151         (recompute_rev_top_order): Likewise for local "insn".
5152         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
5153         * store-motion.c (build_store_vectors): Likewise for local "insn".
5154         Strengthen local "st" from rtx to rtx_insn_list * and use methods
5155         for clarity and typesafety.
5156         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
5157         rtx to rtx_insn *.
5158         (computation_cost): Likewise for local "seq".
5159         (get_address_cost): Likewise.
5161 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5163         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
5164         const rtx_insn *.
5165         (label_is_jump_target_p): Likewise for second param.
5167         * rtlanal.c (tablejump_p): Likewise for param "insn".
5168         (label_is_jump_target_p): Likewise for param "jump_insn".
5170 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5172         * rtl.h (find_first_parameter_load): Strengthen return type and
5173         both params from rtx to rtx_insn *.
5174         * rtlanal.c (find_first_parameter_load): Strengthen return type,
5175         both params and locals "before", "first_set" from rtx to
5176         rtx_insn *.  Remove now-redundant cast.
5177         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
5179 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5181         * rtl.h (find_last_value): Delete.
5182         * rtlanal.c (find_last_value): Delete.
5184 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5186         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
5187         from rtx to rtx_insn *.
5188         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
5189         rtx "note" with new local rtx_insn * "new_head" when calculating
5190         head insn of new basic block.
5191         * combine.c (combine_split_insns): Strengthen return type and local
5192         "ret" from rtx to rtx_insn *.
5193         (likely_spilled_retval_p): Likewise for locals "use" and "p".
5194         (try_combine): Eliminate local "m_split", splitting into new
5195         locals "m_split_insn" and "m_split_pat".
5196         (find_split_point): Strengthen local "seq" from rtx into
5197         rtx_insn *.
5198         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
5199         locals "label", "branch".
5200         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
5201         for local "insn".
5202         (define_expand "umulsi3_highpart"): Likewise for local "insn".
5203         * dse.c (note_add_store_info): Likewise for fields "first",
5204         "current".
5205         (note_add_store): Likewise for local "insn".
5206         (emit_inc_dec_insn_before): Likewise for locals "insn",
5207         "new_insn", "cur".
5208         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5209         (replace_read): Likewise for locals "insns", "this_insn".
5210         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5211         (notice_eh_throw): Likewise for param "insn".
5212         (before_next_cfi_note): Likewise for return type, param, and local
5213         "prev".
5214         (connect_traces): Likewise for local "note".
5215         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5216         (verify_rtl_sharing): Likewise.
5217         (unshare_all_rtl_in_chain): Likewise for param "insn".
5218         (get_first_nonnote_insn): Likewise for local "insn".
5219         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
5220         "seq" and use its methods to clarify things.
5221         (next_insn): Strengthen return type from rtx to rtx_insn *.
5222         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5223         local rtx_insn * using a checked cast, dropping a checked cast
5224         made redundant by this change.  Use a cast to and method of
5225         rtx_sequence to clarify the code.
5226         (previous_insn): Rename param "insn" to "uncast_insn" and
5227         reintroduce "insn" as a local rtx_insn * using a checked cast,
5228         dropping a checked cast made redundant by this change.  Use a cast
5229         to and method of rtx_sequence to clarify the code.
5230         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
5231         reintroduce "insn" as a local rtx_insn * using a checked cast,
5232         dropping a checked cast made redundant by this change.
5233         (next_nonnote_insn_bb): Likewise.
5234         (prev_nonnote_insn): Likewise.
5235         (prev_nonnote_insn_bb): Likewise.
5236         (next_nondebug_insn): Likewise.
5237         (prev_nondebug_insn): Likewise.
5238         (next_nonnote_nondebug_insn): Likewise.
5239         (prev_nonnote_nondebug_insn): Likewise.
5240         (next_real_insn): Likewise.
5241         (prev_real_insn): Likewise.
5242         (next_active_insn): Likewise.
5243         (prev_active_insn): Likewise.
5244         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
5245         clarity.
5246         (prev_cc0_setter): Likewise.
5247         (try_split): Rename param "trial" to "uncast_trial" and
5248         reintroduce "insn" as a local rtx_insn * using a checked cast,
5249         dropping checked casts made redundant by this change.
5250         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
5251         rtx to rtx_insn *.
5252         (remove_insn): Rename param "insn" to "uncast_insn" and
5253         reintroduce "insn" as a local rtx_insn * using a checked cast.
5254         (emit_pattern_after_setloc): Likewise for param "after", as
5255         "uncast_after".
5256         (emit_pattern_after): Likewise.  Strengthen local "prev" from
5257         rtx to rtx_insn *.
5258         (emit_pattern_before_setloc): Rename param "before" to
5259         "uncast_before" and reintroduce "before" as a local rtx_insn *
5260         using a checked cast.  Strengthen locals "first", "last" from
5261         rtx to rtx_insn *.
5262         (emit_pattern_before): Likewise rename/cast param "before" to
5263         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
5264         * except.c (copy_reg_eh_region_note_forward): Strengthen param
5265         "first" and local "insn" from rtx to rtx_insn *.
5266         (copy_reg_eh_region_note_backward): Likewise for param "last"
5267         and local "insn".
5268         * expr.c (fixup_args_size_notes): Rename param "last" to
5269         "uncast_last" and reintroduce "last" as a local rtx_insn *
5270         using a checked cast.  Strengthen local "insn" from rtx to
5271         rtx_insn *.
5272         * function.c (set_insn_locations): Strengthen param "insn" from
5273         rtx to rtx_insn *.
5274         (record_insns): Likewise for param "insns" and local "tmp".
5275         (active_insn_between): Rename param "tail" to
5276         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
5277         using a checked cast.
5278         (thread_prologue_and_epilogue_insns): Split out top-level local
5279         rtx "seq" into three different rtx_insn * locals.  Strengthen
5280         local "prologue_seq" from rtx to rtx_insn *.
5281         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
5282         from rtx to rtx_insn *.
5283         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5284         (priority): Likewise for locals "prev_first", "twin".
5285         (setup_insn_max_reg_pressure): Likewise for param "after".
5286         (sched_setup_bb_reg_pressure_info): Likewise.
5287         (no_real_insns_p): Strengthen params from const_rtx to
5288         const rtx_insn *.
5289         (schedule_block): Strengthen local "next_tail" from rtx to
5290         rtx_insn *.
5291         * ifcvt.c (find_active_insn_before): Strengthen return type and
5292         param "insn" from rtx to rtx_insn *.
5293         (find_active_insn_after): Likewise.
5294         (cond_exec_process_insns): Likewise for param "start" and local "insn".
5295         (cond_exec_process_if_block): Likewise for locals "then_start",
5296         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
5297         (noce_process_if_block): Likewise for local "jump".
5298         (merge_if_block): Likewise for two locals named "end".
5299         (cond_exec_find_if_block): Likewise for local "last_insn".
5300         * jump.c (delete_related_insns): Rename param "insn" to
5301         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
5302         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
5303         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
5304         NULL.
5305         (split_reg): Likewise.
5306         * lra.c (lra_process_new_insns): Likewise.
5307         * modulo-sched.c (permute_partial_schedule): Strengthen param
5308         "last" from rtx to rtx_insn *.
5309         * optabs.c (add_equal_note): Likewise for param "insns" and local
5310         "last_insn".
5311         (expand_binop_directly): Add checked casts to rtx_insn * within
5312         NEXT_INSN (pat) uses.
5313         (expand_unop_direct): Likewise.
5314         (maybe_emit_unop_insn): Likewise.
5315         * recog.c (peep2_attempt): Strengthen locals "last",
5316         "before_try", "x" from rtx to rtx_insn *.
5317         * reorg.c (optimize_skip): Strengthen return type and local
5318         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
5319         and locals "trial", "next_trial" from rtx to rtx_insn *.
5320         * resource.c (next_insn_no_annul): Strengthen return type and
5321         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
5322         rtx_sequence to clarify the code.
5323         (mark_referenced_resources): Add a checked cast to rtx_insn *
5324         within PREV_INSN (x).
5325         (find_dead_or_set_registers): Strengthen return type, param
5326         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
5327         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
5328         to rtx_insn **.
5329         (mark_target_live_regs): Strengthen params "insns" and "target",
5330         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
5331         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
5332         the code.
5333         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
5334         from rtx to rtx_insn *.
5335         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
5336         from rtx to rtx_insn *.
5337         (copy_reg_eh_region_note_backward): Likewise.
5338         (unshare_all_rtl_in_chain): Likewise for sole param.
5339         (dump_rtl_slim): Strengthen second and third params from const_rtx
5340         to const rtx_insn *.
5341         * sched-deps.c (sched_free_deps): Strengthen params "head" and
5342         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
5343         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
5344         "next_tail" from rtx to rtx_insn *.
5345         (begin_move_insn): Likewise for local "next".
5346         * sched-int.h (sched_free_deps): Likewise for first and second
5347         params.
5348         (no_real_insns_p): Strengthen both params from const_rtx to
5349         const rtx_insn *.
5350         (sched_setup_bb_reg_pressure_info): Strengthen second params from
5351         rtx to rtx_insn *.
5352         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
5353         "next_tail".
5354         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
5355         and locals "insn", "tail" from const_rtx to const rtx_insn *.
5356         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
5357         rtx_insn *.
5358         (debug_rtl_slim): Strengthen params "first" and "last" from
5359         const_rtx to const rtx_insn *.
5360         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
5361         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
5362         (convert_to_simple_return): Likewise for param "returnjump".
5363         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
5364         "prologue_seq".
5365         (convert_to_simple_return): Likewise for param "returnjump".
5366         * valtrack.c (propagate_for_debug): Likewise for params
5367         "insn", "last".
5368         * valtrack.h (propagate_for_debug): Likewise for second param.
5370 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5372         * output.h (insn_current_reference_address): Strengthen param
5373         from rtx to rtx_insn *.
5374         * final.c (insn_current_reference_address): Likewise.
5376 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5378         * basic-block.h (inside_basic_block_p): Strengthen param from
5379         const_rtx to const rtx_insn *.
5380         * cfgbuild.c (inside_basic_block_p): Likewise.
5382 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5384         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
5385         rtx_insn *.
5386         (get_trace_info): Likewise for param "insn".
5387         (save_point_p): Likewise.
5388         (maybe_record_trace_start): Likewise for both params.
5389         (maybe_record_trace_start_abnormal): Likewise.
5390         (create_trace_edges): Likewise for sole param and for three of the
5391         locals named "lab".
5392         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
5393         to rtx_insn *, and update a call to pat->element to pat->insn.
5395 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5397         * function.h (struct expr_status): Convert field "x_forced_labels"
5398         from rtx_expr_list * to rtx_insn_list *.
5400         * cfgbuild.c (make_edges): Convert local "x" from an
5401         rtx_expr_list * to an rtx_insn_list *, replacing use of
5402         "element" method with "insn" method.
5403         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5404         * except.c (sjlj_emit_dispatch_table): Replace use of
5405         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
5406         forced_labels.
5407         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
5408         rtx_expr_list * to an rtx_insn_list *, replacing use of
5409         "element" method with "insn" method.
5410         * reload1.c (set_initial_label_offsets): Likewise for local "x".
5411         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
5412         rtx_insn *, adding a checked cast.  Replace use of
5413         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
5414         forced_labels.
5415         (expand_label): Likewise for local "label_r".
5417 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5419         * function.h (struct rtl_data): Convert field
5420         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5421         rtx_insn_list *.
5422         * rtl.h (remove_node_from_insn_list): New prototype.
5424         * builtins.c (expand_builtin): When prepending to
5425         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5426         gen_rtx_EXPR_LIST.
5427         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
5428         to rtx_insn_list *, and use its "insn" method rather than
5429         "element" method.
5430         * cfgrtl.c (delete_insn): Use new function
5431         remove_node_from_insn_list rather than
5432         remove_node_from_expr_list.
5433         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
5434         to rtx_insn_list *, and use its "insn" method rather than
5435         "element" method.
5436         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5437         * reload1.c (set_initial_label_offsets): Likewise for local "x".
5438         * rtlanal.c (remove_node_from_insn_list): New function, adapted
5439         from remove_node_from_expr_list.
5440         * stmt.c (expand_label): When prepending to
5441         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5442         gen_rtx_EXPR_LIST.
5444 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5446         * function.h (struct rtl_data): Strengthen fields "x_return_label"
5447         and "x_naked_return_label" from rtx to rtx_code_label *.
5449 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5451         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
5452         (SET_NEXT_INSN): Likewise.
5453         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
5455         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
5456         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
5457         to split out the SEQUENCE from local "bundle", strengthening the
5458         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
5459         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
5460         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
5461         and the type of the elements of the "slot" array from rtx to
5462         rtx_insn *.
5463         (reorg_split_calls): Likewise for locals "insn" and "next", and
5464         the type of the elements of the "slot" array.
5466         * config/frv/frv.c (frv_nops): Likewise for the elements of this
5467         array.
5468         (frv_function_prologue): Likewise for locals "insn", "next",
5469         "last_call".
5470         (frv_register_nop): Introduce a local "nop_insn" to be the
5471         rtx_insn * containing rtx "nop".
5473         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
5474         used as an insn and sometimes as a pattern, so rename it to
5475         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
5476         using it where dealing with the core insn.
5478         * config/picochip/picochip.c (reorder_var_tracking_notes):
5479         Strengthen locals "insn", "next", "last_insn", "queue",
5480         "next_queue", "prev" from rtx to rtx_insn *.
5482         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
5483         the second param is an rtx_insn ** rather than an rtx **.
5484         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
5485         from rtx to rtx_sequence *, and introduce local named "sequence",
5486         using methods of rtx_sequence to clarify the code.
5487         (remove_insn): Introduce local rtx_sequence * named "sequence" and
5488         use its methods.
5489         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
5490         Rename param "after" to "uncast_after", reintroducing "after" as a
5491         local rtx_insn * with a checked cast.
5492         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
5493         reintroducing "after" as a local rtx_insn * with a checked cast.
5494         Strengthen local "last" from rtx to rtx_insn * and remove the
5495         now-redundant checked casts.
5496         (copy_delay_slot_insn): Strengthen return type and param from rtx
5497         to rtx_insn *.
5499         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
5500         "last" from rtx to rtx_insn *.
5502 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5504         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
5505         param from rtx to rtx_insn *.
5507         * emit-rtl.c (copy_delay_slot_insn): Likewise.
5509         * reorg.c (skip_consecutive_labels): Strengthen return type, param
5510         and local "insn" from rtx to rtx_insn *.
5511         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
5512         (unfilled_slots_next): Likewise.
5513         (function_return_label): Strengthen from rtx to rtx_code_label *.
5514         (function_simple_return_label): Likewise.
5515         (first_active_target_insn): Strengthen return type and param from
5516         rtx to rtx_insn *.
5517         (find_end_label): Strengthen return type from rtx to
5518         rtx_code_label *; strengthen locals as appropriate.
5519         (emit_delay_sequence): Strengthen return type, param "insn" and
5520         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
5521         and local "li" from rtx to rtx_insn_list *, using methods of
5522         rtx_insn_list for clarity and typesafety.
5523         (add_to_delay_list): Strengthen return type and param "insn" from
5524         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
5525         rtx_insn_list * and use methods of rtx_insn_list.
5526         (delete_from_delay_slot): Strengthen return type, param "insn",
5527         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
5528         Strengthen local "seq" from rtx to rtx_sequence *, and local
5529         "delay_list" from rtx to rtx_insn_list *, using methods of
5530         rtx_sequence for clarity and type-safety.
5531         (delete_scheduled_jump): Add checked cast when invoking
5532         delete_from_delay_slot.  Strengthen local "trial" from rtx to
5533         rtx_insn *.
5534         (optimize_skip): Strengthen return type and local "delay_list"
5535         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
5536         rtx_insn *.
5537         (steal_delay_list_from_target): Strengthen return type, param
5538         "delay_list" and local "new_delay_list" from rtx to
5539         rtx_insn_list *.  Strengthen param "seq" from rtx to
5540         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
5541         rtx_insn **.
5542         Split out local "temp" into multiple more-tightly scoped locals:
5543         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
5544         of rtx_insn_list and rtx_sequence for clarity and typesafety.
5545         Strengthen locals named "trial" from rtx to rtx_insn *.
5546         (steal_delay_list_from_fallthrough): Strengthen return type and
5547         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
5548         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
5549         Strengthen local "trial" from rtx to rtx_insn *.
5550         (try_merge_delay_insns): Strength local "merged_insns" from rtx
5551         to rtx_insn_list * and use its methods.  Strengthen local "pat"
5552         from rtx to rtx_sequence * and use its methods.  Strengthen locals
5553         "dtrial" and "new_rtx" from rtx to rtx_insn *.
5554         (get_label_before): Strengthen return type and local "label" from
5555         rtx to rtx_insn *.
5556         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
5557         "next_trial", "next", prev".  Strengthen local "delay_list" from
5558         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
5559         rtx_insn **.
5560         (follow_jumps): Strengthen return type, param "label" and locals
5561         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
5562         (fill_slots_from_thread): Strengthen return type, param
5563         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
5564         "insn", "thread", "opposite_thread" and locals "new_thread",
5565         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
5566         "sequence" from a checked cast to rtx_sequence so that we can call
5567         steal_delay_list_from_target and steal_delay_list_from_fallthrough
5568         with an rtx_sequence *.
5569         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
5570         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
5571         Strengthen local "delay_list" from rtx to rtx_insn_list *.
5572         (relax_delay_slots): Strengthen param "first" and locals "insn",
5573         "next", "trial", "delay_insn", "target_label" from rtx to
5574         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
5575         Introduce a local "trial_seq" for PATTERN (trial) of type
5576         rtx_sequence *, in both cases using methods of rtx_sequence.
5577         (dbr_schedule): Strengthen param "first" and locals "insn",
5578         "next", "epilogue_insn" from rtx to rtx_insn *.
5580 2014-08-28  Richard Biener  <rguenther@suse.de>
5582         PR tree-optimization/62283
5583         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5584         Do not peel loops for alignment where the vector loop likely
5585         doesn't run at least VF times.
5587 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
5589         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
5590         important_candidates.  Consider all important candidates if
5591         IVS doesn't give any result.  Remove check on ivs->upto.
5592         (try_add_cand_for): Call iv_ca_add_use only once.
5594 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5595             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5596             Anna Tikhonova  <anna.tikhonova@intel.com>
5597             Ilya Tocar  <ilya.tocar@intel.com>
5598             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5599             Ilya Verbin  <ilya.verbin@intel.com>
5600             Kirill Yukhin  <kirill.yukhin@intel.com>
5601             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5603         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
5604         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
5605         masking.
5606         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
5607         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5608         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5609         (define_insn "*mul<mode>3"): Add EVEX version.
5611 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5612             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5613             Anna Tikhonova  <anna.tikhonova@intel.com>
5614             Ilya Tocar  <ilya.tocar@intel.com>
5615             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5616             Ilya Verbin  <ilya.verbin@intel.com>
5617             Kirill Yukhin  <kirill.yukhin@intel.com>
5618             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5620         * config/i386/sse.md
5621         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
5622         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
5623         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
5624         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
5625         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
5626         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
5627         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
5628         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
5629         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
5630         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
5631         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
5632         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
5633         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
5634         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
5635         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
5636         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
5638 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5639             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5640             Anna Tikhonova  <anna.tikhonova@intel.com>
5641             Ilya Tocar  <ilya.tocar@intel.com>
5642             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5643             Ilya Verbin  <ilya.verbin@intel.com>
5644             Kirill Yukhin  <kirill.yukhin@intel.com>
5645             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5647         * config/i386/sse.md
5648         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
5649         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
5650         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
5652 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5653             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5654             Anna Tikhonova  <anna.tikhonova@intel.com>
5655             Ilya Tocar  <ilya.tocar@intel.com>
5656             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5657             Ilya Verbin  <ilya.verbin@intel.com>
5658             Kirill Yukhin  <kirill.yukhin@intel.com>
5659             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5661         * config/i386/sse.md
5662         (define_mode_iterator VI128_256): New.
5663         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
5665 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5666             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5667             Anna Tikhonova  <anna.tikhonova@intel.com>
5668             Ilya Tocar  <ilya.tocar@intel.com>
5669             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5670             Ilya Verbin  <ilya.verbin@intel.com>
5671             Kirill Yukhin  <kirill.yukhin@intel.com>
5672             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5674         * config/i386/sse.md
5675         (define_mode_iterator VI8_256_512): New.
5676         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
5677         Ditto.
5678         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5679         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
5680         Ditto.
5681         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
5683 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5685         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
5686         pointer to the cumulative reloc value and return the value for
5687         this reloc instead.
5688         (compute_reloc_for_rtx): Take a const_rtx.  Call
5689         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
5690         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
5691         for_each_rtx for the CONST case.
5693 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5695         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
5696         (mark_constants_in_pattern): ...this new function to iterate over
5697         all the subrtxes.
5698         (mark_constants): Update accordingly.
5700 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5702         * varasm.c: Include rtl-iter.h.
5703         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
5704         Remove the pointer to the cumulative hashval_t and just return
5705         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
5706         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5707         Accumulate the hashval_ts here instead of const_rtx_hash_1.
5709 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5711         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
5712         Give real type of data parameter.  Remove return value.
5713         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
5714         to iterate over subrtxes.
5716 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5718         * var-tracking.c (use_narrower_mode_test): Turn from being a
5719         for_each_rtx callback to being a function that examines each
5720         subrtx itself.
5721         (adjust_mems): Update accordingly.
5723 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5725         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
5726         callback to being a function that examines each subrtx itself.
5727         Remove handling of null rtxes.
5728         (add_uses): Update accordingly.
5730 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5732         * var-tracking.c: Include rtl-iter.h.
5733         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
5734         to being a function that examines each subrtx itself.
5735         (use_type): Update accordingly.
5737 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5739         * store-motion.c: Include rtl-iter.h.
5740         (extract_mentioned_regs_1): Delete.
5741         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
5742         for_each_rtx to iterate over subrtxes.
5744 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5746         * sel-sched.c: Include rtl-iter.h
5747         (count_occurrences_1): Delete.
5748         (count_occurrences_equiv): Turn rtxes into const_rtxes.
5749         Use FOR_EACH_SUBRTX rather than for_each_rtx.
5751 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5753         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
5754         * rtlanal.c (tls_referenced_p_1): Delete.
5755         (tls_referenced_p): Take a const_rtx rather than an rtx.
5756         Use FOR_EACH_SUBRTX rather than for_each_rtx.
5758 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5760         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
5761         (for_each_inc_dec): Take an rtx rather than an rtx *.
5762         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
5763         (cselib_record_sets): Likewise.
5764         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
5765         (check_for_inc_dec): Likewise.
5766         * rtlanal.c (for_each_inc_dec_ops): Delete.
5767         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
5768         rather than a pointer to the memory address.  Replace
5769         for_each_inc_dec_ops argument with separate function and data
5770         arguments.  Abort on non-autoinc addresses.
5771         (for_each_inc_dec_find_mem): Delete.
5772         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
5773         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
5775 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5777         * rtl.h (find_all_hard_regs): Declare.
5778         * rtlanal.c (find_all_hard_regs): New function.
5779         (record_hard_reg_uses_1): Delete.
5780         (record_hard_reg_uses): Use find_all_hard_regs.
5782 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5784         * rtl.h (replace_label_data): Delete.
5785         (replace_label): Take the old label, new label and update-nuses flag
5786         as direct arguments.  Return void.
5787         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
5788         * rtlanal.c (replace_label): Update interface as above.  Handle
5789         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
5790         iterator.  Use FOR_EACH_SUBRTX_PTR.
5792 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5794         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
5795         with const_rtx parameters.
5796         * varasm.c (get_pool_constant): Likewise.
5797         * rtlanal.c (rtx_referenced_p_1): Delete.
5798         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5799         Assert that the rtx we're looking for is nonnull.  Allow searches
5800         for constant pool SYMBOL_REFs.
5802 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5804         * reload1.c: Include rtl-iter.h.
5805         (note_reg_elim_costly): Turn from being a for_each_rtx callback
5806         to being a function that examines each subrtx itself.
5807         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
5809 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5811         * regcprop.c (cprop_find_used_regs_1): Delete.
5812         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5814 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5816         * regcprop.c: Include rtl-iter.h.
5817         (kill_value): Take a const_rtx.
5818         (kill_autoinc_value): Turn from being a for_each_rtx callback
5819         to being a function that examines each subrtx itself.
5820         (copyprop_hardreg_forward_1): Update accordingly.
5822 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5824         * reg-stack.c: Include rtl-iter.h.
5825         (subst_stack_regs_in_debug_insn): Delete.
5826         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
5827         instead of for_each_rtx.
5829 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5831         * lower-subreg.c (find_decomposable_subregs): Turn from being
5832         a for_each_rtx callback to being a function that examines each
5833         subrtx itself.  Remove handling of null rtxes.
5834         (decompose_multiword_subregs): Update accordingly.
5836 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5838         * lower-subreg.c (adjust_decomposed_uses): Delete.
5839         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
5840         Remove handling of null rtxes.
5842 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5844         * lower-subreg.c: Include rtl-iter.h.
5845         (resolve_subreg_use): Turn from being a for_each_rtx callback
5846         to being a function that examines each subrtx itself.  Remove
5847         handling of null rtxes.
5848         (resolve_reg_notes, resolve_simple_move): Update accordingly.
5849         (decompose_multiword_subregs): Likewise.
5851 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5853         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
5854         to being a function that examines each subrtx itself.
5855         (simplify_using_condition, simplify_using_initial_values): Update
5856         accordingly.
5858 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5860         * loop-iv.c: Include rtl-iter.h.
5861         (find_single_def_src): New function.
5862         (replace_single_def_regs): Turn from being a for_each_rtx callback
5863         to being a function that examines each subrtx itself.
5864         (replace_in_expr, simplify_using_initial_values): Update accordingly.
5866 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5868         * jump.c (eh_returnjump_p_1): Delete.
5869         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5870         Remove handling of null rtxes.
5872 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5874         * jump.c: Include rtl-iter.h.
5875         (returnjump_p_1): Delete.
5876         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5877         Remove handling of null rtxes.
5879 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5881         * ira.c: Include rtl-iter.h.
5882         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
5883         to being a function that examines each subrtx itself.  Remove
5884         handling of null rtxes.
5885         (update_equiv_regs): Update call accordingly.
5887 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5889         * fwprop.c: Include rtl-iter.h.
5890         (varying_mem_p): Turn from being a for_each_rtx callback to being
5891         a function that examines each subrtx itself.
5892         (propagate_rtx): Update accordingly.
5894 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5896         * function.c: Include rtl-iter.h
5897         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
5898         callback to being a function that examines each subrtx itself.
5899         Return the changed flag.
5900         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
5901         (instantiate_virtual_regs): Update calls accordingly.
5903 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5905         * final.c: Include rtl-iter.h.
5906         (mark_symbol_ref_as_used): Delete.
5907         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
5908         for_each_rtx.
5910 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5912         * emit-rtl.c: Include rtl-iter.h.
5913         (find_auto_inc): Turn from being a for_each_rtx callback to being
5914         a function that examines each subrtx itself.  Assume the first operand
5915         to an RTX_AUTOINC is the automodified register.
5916         (try_split): Update call accordingly.
5918 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5920         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
5921         Return a bool, inverting the result so that 0/false means "not ok".
5922         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
5923         subrtxes of a CONST.
5924         (mem_loc_descriptor, add_const_value_attribute)
5925         (resolve_addr_in_expr): Update calls accordingly.
5927 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5929         * dwarf2out.c: Include rtl-iter.h.
5930         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
5931         Remove unused data parameter.  Return a bool, inverting the result
5932         so that 0/false means "not ok".
5933         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
5934         instead of for_each_rtx.
5936 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5938         * dse.c: Include rtl-iter.h.
5939         (check_mem_read_rtx): Change void * parameter to real type.
5940         Remove return value.
5941         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
5942         for_each_rtx.  Don't handle null rtxes.
5944 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5946         * df-problems.c: Include rtl-iter.h.
5947         (find_memory): Turn from being a for_each_rtx callback to being
5948         a function that examines each subrtx itself.  Continue to look for
5949         volatile references even after a nonvolatile one has been found.
5950         (can_move_insns_across): Update calls accordingly.
5952 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5954         * ddg.c (walk_mems_2, walk_mems_1): Delete.
5955         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
5956         to iterate over subrtxes.  Return a bool rather than an int.
5958 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5960         * ddg.c: Include rtl-iter.h.
5961         (mark_mem_use_1): Rename to...
5962         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
5963         instead of for_each_rtx.
5964         (mem_read_insn_p): Update accordingly.
5966 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5968         * cse.c (change_cc_mode_args): Delete.
5969         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
5970         a function that examines each subrtx itself.  Take the fields of
5971         change_cc_mode_args as argument and return void.
5972         (cse_change_cc_mode_insn): Update calls accordingly.
5974 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5976         * cse.c (is_dead_reg): Change argument to const_rtx.
5977         (dead_debug_insn_data): Delete.
5978         (is_dead_debug_insn): Expand commentary.  Turn from being a
5979         for_each_rtx callback to being a function that examines
5980         each subrtx itself.  Take the fields of dead_debug_insn_data
5981         as argument.
5982         (delete_trivially_dead_insns): Update call accordingly.
5984 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5986         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
5987         being a for_each_rtx callback to being a function that examines
5988         each subrtx itself.
5989         (cse_extended_basic_block): Update call accordingly.
5991 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5993         * cse.c (check_dependence_data): Delete.
5994         (check_dependence): Change from being a for_each_rtx callback to being
5995         a function that examines all subrtxes itself.  Don't handle null rtxes.
5996         (invalidate): Update call accordingly.
5998 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6000         * cse.c: Include rtl-iter.h.
6001         (approx_reg_cost_1): Delete.
6002         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6003         Don't handle null rtxes.
6005 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6007         * cfgcleanup.c: Include rtl-iter.h.
6008         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
6009         to being a function that examines each subrtx itself.
6010         (thread_jump): Update accordingly.
6012 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6014         * combine-stack-adj.c: Include rtl-iter.h.
6015         (record_stack_refs_data): Delete.
6016         (record_stack_refs): Turn from being a for_each_rtx callback
6017         to being a function that examines each subrtx itself.
6018         Take a pointer to the reflist.  Invert sense of return value
6019         so that true means success and false means failure.  Don't
6020         handle null rtxes.
6021         (combine_stack_adjustments_for_block): Update accordingly.
6023 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6025         * combine.c (record_truncated_value): Turn from being a for_each_rtx
6026         callback to a function that takes an rtx and returns a bool
6027         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
6028         for_each_rtx.
6030 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6032         * combine.c: Include rtl-iter.h.
6033         (unmentioned_reg_p_1): Delete.
6034         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6035         Don't handle null rtxes.
6037 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6039         * calls.c: Include rtl-iter.h.
6040         (internal_arg_pointer_based_exp_1): Delete.
6041         (internal_arg_pointer_based_exp): Take a const_rtx.
6042         Use FOR_EACH_SUBRTX to iterate over subrtxes.
6044 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6046         * caller-save.c: Include rtl-iter.h.
6047         (add_used_regs_1): Delete.
6048         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
6049         to iterate over subrtxes.  Assert that any remaining pseudos
6050         have been spilled.
6052 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6054         * bt-load.c: Include rtl-iter.h.
6055         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
6056         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
6057         to iterate over subrtxes.
6058         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
6059         find_btr_use rather than btr_referenced_p.
6061 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6063         * alias.c: Include rtl-iter.h.
6064         (refs_newer_value_cb): Delete.
6065         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6067 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6069         * rtl-iter.h: New file.
6070         * rtlanal.c: Include it.
6071         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
6072         (generic_subrtx_iterator <T>::add_single_to_queue)
6073         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
6074         (generic_subrtx_iterator <T>::free_array): New functions.
6075         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
6076         (generic_subrtx_iterator <const_rtx_accessor>)
6077         (generic_subrtx_iterator <rtx_var_accessor>
6078         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
6079         (setup_reg_subrtx_bounds): New function.
6080         (init_rtlanal): Call it.
6082 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6084         PR target/62261
6085         * config/sh/sh.md (ashlsi3): Handle negative shift count for
6086         TARGET_SHMEDIA.
6087         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
6089 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
6091         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
6093 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6095         * rtl.h (JUMP_LABEL_AS_INSN): New.
6097 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6099         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
6100         rtx_expr_list **.
6101         (alloc_EXPR_LIST): Strengthen return type from rtx to
6102         rtx_expr_list *.
6103         (remove_free_EXPR_LIST_node): Likewise for param.
6104         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
6105         from rtx to rtx_expr_list *.
6106         * sched-int.h (struct deps_desc): Strengthen fields
6107         "pending_read_mems" and "pending_write_mems" from rtx to
6108         rtx_expr_list *.
6110         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
6111         rtx to rtx_expr_list *.
6112         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
6113         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
6114         rtx_expr_list **.
6115         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
6116         from rtx to rtx_expr_list *.
6117         * loop-iv.c (simplify_using_initial_values): Strengthen local
6118         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
6119         "pnote_next" from rtx * to rtx_expr_list **.
6120         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
6121         param "exprp" from rtx * to rtx_expr_list **.
6122         (add_insn_mem_dependence): Strengthen local "mem_list" from
6123         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
6124         to rtx_expr_list *.
6125         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
6126         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
6127         param "old_mems_p" from rtx * to rtx_expr_list **.
6128         * var-tracking.c (struct adjust_mem_data): Strengthen field
6129         "side_effects" from rtx to rtx_expr_list *.
6130         (adjust_insn): Replace NULL_RTX with NULL when assigning to
6131         rtx_expr_list *.
6132         (prepare_call_arguments): Likewise.
6134 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6136         * function.h (struct rtl_data): Strengthen field
6137         "x_stack_slot_list" from rtx to rtx_expr_list *.
6139         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
6140         when assigning to stack_slot_list.
6142 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6144         * function.h (struct rtl_data): Strengthen field
6145         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
6146         * rtl.h (remove_node_from_expr_list): Strengthen second param from
6147         rtx * to rtx_expr_list **.
6149         * cfgbuild.c (make_edges): In loop over
6150         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
6151         rtx_expr_list *, and use methods of the latter class to clarify
6152         the code.
6153         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
6154         rtx_expr_list *, and use methods of the latter class to clarify
6155         the code.
6156         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6157         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6158         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
6159         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
6160         to rtx_expr_list *.  Use methods of the latter class to clarify
6161         the code.
6163 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6165         * function.h (struct expr_status): Strengthen field
6166         "x_forced_labels" from rtx to rtx_expr_list *.
6168         * cfgbuild.c (make_edges): Split local "x" into two locals,
6169         strengthening one from rtx to rtx_expr_list *, and using methods
6170         of said class.
6171         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
6172         loop over forced_labels, introduce strengthen it from rtx to
6173         rtx_expr_list *, using methods to clarify the code.
6174         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
6175         to rtx_expr_list *, using methods of said class to clarify the
6176         code.
6177         * reload1.c (set_initial_label_offsets): Split local "x" into two
6178         per-loop variables, strengthening the first from rtx to
6179         rtx_expr_list * and using methods.
6181 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6183         * coretypes.h (class rtx_expr_list): Add forward declaration.
6184         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
6185         * gengenrtl.c (special_rtx): Add EXPR_LIST.
6186         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
6187         invariant: GET_CODE (X) == EXPR_LIST.
6188         (is_a_helper <rtx_expr_list *>::test): New.
6189         (rtx_expr_list::next): New.
6190         (rtx_expr_list::element): New.
6191         (gen_rtx_EXPR_LIST): New.
6193 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6195         * varasm.c (mark_constants): Convert a GET_CODE check into a
6196         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6197         Use methods of rtx_sequence to clarify the code.
6199 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6201         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
6202         local "seq" via a checked cast, and use methods of rtx_sequence
6203         to simplify the code.
6205 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6207         * resource.c (mark_referenced_resources): Strengthen local
6208         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6209         using methods of rtx_sequence to clarify the code.
6210         (find_dead_or_set_registers): Within the switch statement, convert
6211         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
6212         the JUMP_P handling, introduce another local "seq", adding a
6213         checked cast to rtx_sequence *.  In both cases, use methods of
6214         rtx_sequence to clarify the code.
6215         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6216         via a checked cast, and use methods of rtx_sequence to simplify
6217         the code.
6219 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6221         * reorg.c (redundant_insn): In two places in the function, replace
6222         a check of GET_CODE with a dyn_cast, introducing local "seq", and
6223         usings methods of rtx_sequence to clarify the code.
6225 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6227         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6228         local "seq" with a checked cast, and use methods of rtx_sequence
6229         to clarify the code.
6231 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6233         * function.c (contains): Introduce local "seq" for PATTERN (insn),
6234         with a checked cast, in the region for where we know it's a
6235         SEQUENCE.  Use methods of rtx_sequence.
6237 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6239         * final.c (get_attr_length_1): Replace GET_CODE check with a
6240         dyn_cast, introducing local "seq" and the use of methods of
6241         rtx_sequence.
6242         (shorten_branches): Likewise, introducing local "body_seq".
6243         Strengthen local "inner_insn" from rtx to rtx_insn *.
6244         (reemit_insn_block_notes): Replace GET_CODE check with a
6245         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
6246         Use methods of rtx_sequence.
6247         (final_scan_insn): Likewise, introducing local "seq" for when
6248         "body" is known to be a SEQUENCE, using its methods.
6250 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6252         * except.c (can_throw_external): Strengthen local "seq" from rtx
6253         to rtx_sequence *.  Use methods of rtx_sequence.
6254         (insn_nothrow_p): Likewise.
6256 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6258         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
6259         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6260         Use methods of rtx_sequence.
6261         (scan_trace): Likewise for local "pat".
6263 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6265         * coretypes.h (class rtx_sequence): Add forward declaration.
6266         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
6267         invariant: GET_CODE (X) == SEQUENCE.
6268         (is_a_helper <rtx_sequence *>::test): New.
6269         (is_a_helper <const rtx_sequence *>::test): New.
6270         (rtx_sequence::len): New.
6271         (rtx_sequence::element): New.
6272         (rtx_sequence::insn): New.
6274 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6276         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
6277         rtx_insn_list **.
6278         (alloc_INSN_LIST): Strengthen return type from rtx to
6279         rtx_insn_list *.
6280         (copy_INSN_LIST): Likewise for return type and param.
6281         (concat_INSN_LIST): Likewise for both params and return type.
6282         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
6283         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
6284         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
6285         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
6287         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
6288         "implicit_sets", "control_uses", "clobbers" from rtx to
6289         rtx_insn_list *.
6290         (struct deps_desc): Likewise for fields "pending_read_insns",
6291         "pending_write_insns", "pending_jump_insns",
6292         "last_pending_memory_flush", "last_function_call",
6293         "last_function_call_may_noreturn", "sched_before_next_call",
6294         "sched_before_next_jump".
6295         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
6296         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
6298         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
6299         from rtx to rtx_insn_list *.
6300         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
6301         rtx_insn_list *.
6303         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
6304         to rtx_insn_list **.
6305         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
6306         rtx_insn_list *.
6307         (queue_insn): Likewise for local "link".
6308         (struct haifa_saved_data): Strengthen field "insn_queue" from
6309         rtx * to rtx_insn_list **.
6310         (save_backtrack_point): Update allocation of save->insn_queue to
6311         reflect the strengthening of elements from rtx to rtx_insn_list *.
6312         (queue_to_ready): Strengthen local "link" from rtx to
6313         rtx_insn_list *; use methods "next" and "insn" when traversing the
6314         list.
6315         (early_queue_to_ready): Likewise for locals "link", "next_link",
6316         "prev_link".
6317         (schedule_block): Update allocation of insn_queue to reflect the
6318         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
6319         local "link" from rtx to rtx_insn_list *, and use methods when
6320         working it.
6321         (add_to_speculative_block): Strengthen locals "twins" and
6322         "next_node" from rtx to rtx_insn_list *, and use methods when
6323         working with them.  Strengthen local "twin" from rtx to
6324         rtx_insn *, eliminating a checked cast.
6325         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
6326         from rtx to rtx_insn_list *, and use methods when working with
6327         them.
6329         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
6330         from rtx to rtx_insn_list *, adding a checked cast.
6331         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
6332         rtx_insn_list **.
6333         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
6334         "newlink" from rtx to rtx_insn_list *.  Strengthen local
6335         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
6336         from rtx to rtx_insn *.
6337         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
6338         from rtx to rtx_insn_list *.  Use methods of the latter class.
6339         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
6340         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
6341         (remove_free_INSN_LIST_node): Strengthen return type and local
6342         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
6343         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
6344         rtx_insn_list *, using "insn" method.
6346         * sched-deps.c (add_dependence_list):  Strengthen param "list"
6347         from rtx to rtx_insn_list *, and use methods when working with it.
6348         (add_dependence_list_and_free):  Strengthen param "listp" from
6349         rtx * to rtx_insn_list **.
6350         (remove_from_dependence_list): Strenghten param "listp" from rtx *
6351         to rtx_insn_list **, and use methods when working with *listp.
6352         (remove_from_both_dependence_lists): Strengthen param "listp" from
6353         rtx * to rtx_insn_list **
6354         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
6355         to rtx_insn_list **.  Eliminate local "link", in favor of two new
6356         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
6357         respectively.
6358         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
6359         by introducing local "cond_deps".
6360         (remove_from_deps): Strengthen param "insn" from rtx to
6361         rtx_insn *.
6363         * sched-rgn.c (concat_insn_mem_list): Strengthen param
6364         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
6365         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
6366         Use methods of rtx_insn_list.
6368         * store-motion.c (struct st_expr): Strengthen fields
6369         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
6370         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
6371         rtx_insn_list *.
6372         (find_moveable_store): Split out "tmp" into multiple more-tightly
6373         scoped locals.  Use methods of rtx_insn_list *.
6374         (compute_store_table): Strengthen local "tmp" from rtx to
6375         rtx_insn *.  Use methods of rtx_insn_list *.
6377 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6379         * coretypes.h (class rtx_insn_list): Add forward declaration.
6380         * rtl.h (class rtx_insn_list): New subclass of rtx_def
6381         (is_a_helper <rtx_insn_list *>::test): New.
6382         (rtx_insn_list::next): New.
6383         (rtx_insn_list::insn): New.
6384         (gen_rtx_INSN_LIST): Add prototype.
6385         * emit-rtl.c (gen_rtx_INSN_LIST): New.
6386         * gengenrtl.c (special_rtx): Add INSN_LIST.
6388 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6390         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
6391         "prev" from rtx to rtx_insn *.
6393 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6395         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
6396         functions.  Require merely an rtx for now, not an rtx_insn *.
6397         (BLOCK_FOR_INSN): Likewise.
6398         (INSN_LOCATION): Likewise.
6399         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
6401 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6403         * rtl.h (PATTERN): Convert this macro into a pair of inline
6404         functions, for now, requiring const_rtx and rtx.
6406 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6408         * target.def (unwind_emit): Strengthen param "insn" from rtx to
6409         rtx_insn *.
6410         (final_postscan_insn): Likewise.
6411         (adjust_cost): Likewise.
6412         (adjust_priority): Likewise.
6413         (variable_issue): Likewise.
6414         (macro_fusion_pair_p): Likewise.
6415         (dfa_post_cycle_insn): Likewise.
6416         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
6417         (first_cycle_multipass_issue): Likewise.
6418         (dfa_new_cycle): Likewise.
6419         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
6420         (speculate_insn): Likewise for param "insn".
6421         (gen_spec_check): Likewise for params "insn" and "label".
6422         (get_insn_spec_ds): Likewise for param "insn".
6423         (get_insn_checked_ds): Likewise.
6424         (dispatch_do): Likewise.
6425         (dispatch): Likewise.
6426         (cannot_copy_insn_p): Likewise.
6427         (invalid_within_doloop): Likewise.
6428         (legitimate_combined_insn): Likewise.
6429         (needed): Likewise.
6430         (after): Likewise.
6432         * doc/tm.texi: Automatically updated to reflect changes to
6433         target.def.
6435         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
6436         working with insn.
6437         (schedule_block): Likewise.
6438         (sched_init): Likewise.
6439         (sched_speculate_insn): Strengthen param "insn" from rtx to
6440         rtx_insn *.
6441         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
6442         working with insn.
6443         * hooks.c (hook_bool_rtx_true): Rename to...
6444         hook_bool_rtx_insn_true): ...this, and strengthen first param from
6445         rtx to rtx_insn *.
6446         (hook_constcharptr_const_rtx_null): Rename to...
6447         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6448         first param from const_rtx to const rtx_insn *.
6449         (hook_bool_rtx_int_false): Rename to...
6450         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6451         param from rtx to rtx_insn *.
6452         (hook_void_rtx_int): Rename to...
6453         (hook_void_rtx_insn_int): ...this, and strengthen first param from
6454         rtx to rtx_insn *.
6456         * hooks.h (hook_bool_rtx_true): Rename to...
6457         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
6458         rtx to rtx_insn *.
6459         (hook_bool_rtx_int_false): Rename to...
6460         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6461         param from rtx to rtx_insn *.
6462         (hook_void_rtx_int): Rename to...
6463         (hook_void_rtx_insn_int): ...this, and strengthen first param from
6464         rtx to rtx_insn *.
6465         (hook_constcharptr_const_rtx_null): Rename to...
6466         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6467         first param from const_rtx to const rtx_insn *.
6469         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
6470         and local "prev" from rtx to rtx_insn *.
6472         * sched-int.h (sched_speculate_insn): Strengthen first param from
6473         rtx to rtx_insn *.
6475         * sel-sched.c (create_speculation_check): Likewise for local "label".
6476         * targhooks.c (default_invalid_within_doloop): Strengthen param
6477         "insn" from const_rtx to const rtx_insn *.
6478         * targhooks.h (default_invalid_within_doloop): Strengthen param
6479         from const_rtx to const rtx_insn *.
6481         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
6482         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
6484         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
6485         "insn".
6486         (arc_invalid_within_doloop): Likewise, with const.
6488         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
6489         (arm_cannot_copy_insn_p): Likewise for param "insn".
6490         (arm_unwind_emit): Likewise.
6492         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
6493         "dep_insn".
6495         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
6496         (c6x_variable_issue): Likewise.  Removed now-redundant checked
6497         cast.
6498         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
6500         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
6501         Likewise for param "insn".
6502         (epiphany_mode_after): Likewise.
6503         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
6504         params "insn", "dep_insn".
6505         (epiphany_mode_needed): Likewise for param "insn".
6506         (epiphany_mode_after): Likewise.
6508         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
6509         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6510         (ix86_avx_u128_mode_needed): Likewise.
6511         (ix86_i387_mode_needed): Likewise.
6512         (ix86_mode_needed): Likewise.
6513         (ix86_avx_u128_mode_after): Likewise.
6514         (ix86_mode_after): Likewise.
6515         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
6516         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
6517         (ix86_adjust_priority): Likewise for param "insn".
6518         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
6519         (do_dispatch): Likewise.
6520         (has_dispatch): Likewise.
6521         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6523         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
6524         reflect renaming of default hook implementation from
6525         hook_constcharptr_const_rtx_null to
6526         hook_constcharptr_const_rtx_insn_null.
6527         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
6528         rtx to rtx_insn *.
6529         (ia64_variable_issue): Likewise for param "insn".
6530         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
6531         (ia64_dfa_new_cycle): Likewise.
6532         (ia64_get_insn_spec_ds): Likewise.
6533         (ia64_get_insn_checked_ds): Likewise.
6534         (ia64_speculate_insn): Likewise.
6535         (ia64_gen_spec_check): Likewise for params "insn", "label".
6536         (ia64_asm_unwind_emit): Likewise for param "insn".
6538         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
6540         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
6541         "insn", "def_insn".
6542         (m68k_sched_variable_issue): Likewise for param "insn".
6544         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
6545         "def_insn".
6547         * config/microblaze/microblaze.c (microblaze_adjust_cost):
6548         Likewise for params "insn", "dep".
6550         * config/mips/mips.c (mips_adjust_cost): Likewise.
6551         (mips_variable_issue): Likewise for param "insn".
6552         (mips_final_postscan_insn): Likewise.
6554         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
6555         for params "insn", "dep".
6557         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
6558         "dep_insn".
6559         (pa_adjust_priority): Likewise for param "insn".
6561         * config/picochip/picochip.c (picochip_sched_adjust_cost):
6562         Likewise for params "insn", "dep_insn".
6564         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
6565         param "insn".
6566         (rs6000_variable_issue): Likewise.
6567         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
6568         (rs6000_debug_adjust_cost): Likewise.
6569         (rs6000_adjust_priority): Likewise for param "insn".
6570         (rs6000_use_sched_lookahead_guard): Likewise.
6571         (get_next_active_insn): Likewise for return type and both params.
6572         (redefine_groups): Likewise for params "prev_head_insn", "tail"
6573         and locals "insn", "next_insn".
6574         (pad_groups): Likewise.
6576         * config/s390/s390.c (s390_adjust_priority): Likewise for param
6577         "insn".
6578         (s390_cannot_copy_insn_p): Likewise.
6579         (s390_sched_variable_issue): Likewise for third param, eliminating
6580         checked cast.
6581         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
6582         default hook implementation from hook_constcharptr_const_rtx_null
6583         to hook_constcharptr_const_rtx_insn_null.
6585         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
6586         from rtx to rtx_insn *.
6587         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
6588         (sh_variable_issue): Likewise for param "insn".
6589         (sh_dfa_new_cycle): Likewise.
6590         (sh_mode_needed): Likewise.
6591         (sh_mode_after): Likewise.
6593         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
6594         params "insn", "dep_insn".
6595         (hypersparc_adjust_cost): Likewise.
6596         (sparc_adjust_cost): Likewise.
6598         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
6599         param, eliminated checked cast.
6600         (spu_sched_adjust_cost): Likewise for first and third params.
6602         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
6603         params "insn" and "dep_insn" from rtx to rtx_insn *.
6605         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
6607 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6609         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
6610         (set_is_load_p): ...this, updating to work on a SET pattern rather
6611         than an insn.
6612         (is_store_insn): Rename to...
6613         (set_is_store_p): ...this, updating to work on a SET pattern
6614         rather than an insn.
6615         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
6616         top of function to where it is needed.  Rewrite the bogus
6617         condition that checks for "insn" and "dep" being PARALLEL to
6618         instead use single_set, introducing locals "insn_set" and
6619         "dep_set".  Given that we only ever returned "cost" for a non-pair
6620         of SETs, bail out early if we don't have a pair of SET.
6621         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
6622         use the new locals "insn_set" and "dep_set", and update calls to
6623         is_load_insn and is_store_insn to be calls to set_is_load_p and
6624         set_is_store_p.
6626 2014-08-27  Guozhi Wei  <carrot@google.com>
6628         PR target/62262
6629         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
6630         amount before using it.
6632 2014-08-27  Richard Biener  <rguenther@suse.de>
6634         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
6635         get_maxval_strlen inside a more useful API.
6636         (gimple_fold_builtin_with_strlen): Remove and fold into ...
6637         (gimple_fold_builtin): ... caller.
6638         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
6639         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
6640         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
6641         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
6642         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
6643         gimple_fold_builtin_sprintf): Adjust to compute maxval
6644         themselves.
6646 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
6648         PR other/62248
6649         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
6651 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6652             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6653             Anna Tikhonova  <anna.tikhonova@intel.com>
6654             Ilya Tocar  <ilya.tocar@intel.com>
6655             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6656             Ilya Verbin  <ilya.verbin@intel.com>
6657             Kirill Yukhin  <kirill.yukhin@intel.com>
6658             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6660         * config/i386/sse.md
6661         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
6662         Use `concat_tg_mode' attribute to determine asm register size.
6664 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6665             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6666             Anna Tikhonova  <anna.tikhonova@intel.com>
6667             Ilya Tocar  <ilya.tocar@intel.com>
6668             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6669             Ilya Verbin  <ilya.verbin@intel.com>
6670             Kirill Yukhin  <kirill.yukhin@intel.com>
6671             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6673         * config/i386/sse.md
6674         (define_mode_iterator VI48_AVX512VL): New.
6675         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
6676         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
6677         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
6678         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6679         with VI1): Change mode iterator.
6680         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6681         with VI_ULOADSTORE_BW_AVX512VL): New.
6682         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6683         with VI_ULOADSTORE_F_AVX512VL): Ditto.
6684         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6685         with VI1): Change mode iterator.
6686         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6687         with VI_ULOADSTORE_BW_AVX512VL): New.
6688         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6689         with VI_ULOADSTORE_F_AVX512VL): Ditto.
6690         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6691         with VI1): Change mode iterator.
6692         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6693         with VI_ULOADSTORE_BW_AVX512VL): New.
6694         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6695         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
6696         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
6697         (define_insn "<avx512>_storedqu<mode>_mask" with
6698         VI48_AVX512VL): New.
6699         (define_insn "<avx512>_storedqu<mode>_mask" with
6700         VI12_AVX512VL): Ditto.
6702 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6703             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6704             Anna Tikhonova  <anna.tikhonova@intel.com>
6705             Ilya Tocar  <ilya.tocar@intel.com>
6706             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6707             Ilya Verbin  <ilya.verbin@intel.com>
6708             Kirill Yukhin  <kirill.yukhin@intel.com>
6709             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6711         * config/i386/sse.md
6712         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
6713         (define_mode_iterator VI48_AVX512BW): New.
6714         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
6715         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6716         with VI48_AVX2_48_AVX512F): New.
6717         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6718         with VI2_AVX512VL): Ditto.
6720 2014-08-27  Richard Biener  <rguenther@suse.de>
6722         PR middle-end/62239
6723         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
6724         (fold_builtin_3): Do not fold strcat_chk here.
6725         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
6726         from builtins.c.
6727         (gimple_fold_builtin): Fold strcat_chk here.
6729 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
6731         * dwarf2out.h (dwarf2out_decl): Remove prototype.
6732         * dwarf2out.c (dwarf2out_decl): Make static.
6734 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
6736         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
6738 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6740         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
6741         from rtx to rtx_insn *.
6742         (cselib_lookup_from_insn): Likewise for final param.
6743         (cselib_subst_to_values_from_insn): Likewise.
6744         (cselib_add_permanent_equiv): Likewise.
6746         * cselib.c (cselib_current_insn): Likewise for this variable.
6747         (cselib_subst_to_values_from_insn): Likewise for param "insn".
6748         (cselib_lookup_from_insn): Likewise.
6749         (cselib_add_permanent_equiv): Likewise for param "insn" and local
6750         "save_cselib_current_insn".
6751         (cselib_process_insn): Replace use of NULL_RTX with NULL.
6753         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
6754         from rtx to rtx_insn *.
6756 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6758         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
6759         rtx_insn *.
6761 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6763         * df.h (df_dump_insn_problem_function): Strengthen first param of
6764         this callback from const_rtx to const rtx_insn *.
6765         (struct df_insn_info): Strengthen field "insn" from rtx to
6766         rtx_insn *.
6767         (DF_REF_INSN): Eliminate this function, reinstating the older
6768         macro definition.
6769         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
6770         (df_reg_defined): Likewise.
6771         (df_find_use): Likewise.
6772         (df_reg_used): Likewise.
6773         (df_dump_insn_top): Strengthen param 1 from const_rtx to
6774         const rtx_insn *.
6775         (df_dump_insn_bottom): Likewise.
6776         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
6777         (df_insn_debug_regno): Likewise.
6778         (debug_df_insn): Likewise.
6779         (df_rd_simulate_one_insn): Likewise for param 2.
6780         (df_word_lr_simulate_defs): Likewise for param 1.
6781         (df_word_lr_simulate_uses): Likewise.
6782         (df_md_simulate_one_insn): Likewise for param 2.
6783         (df_simulate_find_noclobber_defs): Likewise for param 1.
6784         (df_simulate_find_defs): Likewise.
6785         (df_simulate_defs): Likewise.
6786         (df_simulate_uses): Likewise.
6787         (df_simulate_one_insn_backwards): Likewise for param 2.
6788         (df_simulate_one_insn_forwards): Likewise.
6789         (df_uses_create): Likewise for param 2.
6790         (df_insn_create_insn_record): Likewise for param 1.
6791         (df_insn_delete): Likewise.
6792         (df_insn_rescan): Likewise.
6793         (df_insn_rescan_debug_internal): Likewise.
6794         (df_insn_change_bb): Likewise.
6795         (df_notes_rescan): Likewise.
6796         * rtl.h (remove_death): Likewise for param 2.
6797         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
6798         const rtx_insn *.
6799         * sched-int.h (reemit_notes): Strengthen param from rtx to
6800         rtx_insn *.
6801         * valtrack.h (propagate_for_debug): Likewise for param 1.
6803         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
6804         local "tmp_rtx" from const_rtx to const rtx_insn *.
6805         * combine.c (remove_death): Strengthen param "insn" from rtx to
6806         rtx_insn *.
6807         (move_deaths): Likewise for local "where_dead".
6808         * cse.c (delete_trivially_dead_insns): Introduce local
6809         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
6810         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
6811         rtx_insn *.
6812         (df_reg_defined): Likewise.
6813         (df_find_use): Likewise.
6814         (df_reg_used): Likewise.
6815         (df_dump_insn_problem_data): Strengthen param "insn" from
6816         const_rtx to const rtx_insn *.
6817         (df_dump_insn_top): Likewise.
6818         (df_dump_insn_bottom): Likewise.
6819         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
6820         (df_insn_debug_regno): Likewise.
6821         (debug_df_insn): Likewise.
6822         (DF_REF_INSN): Delete.
6823         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
6824         from rtx to rtx_insn *.
6825         (df_chain_insn_top_dump): Strengthen param "insn" from
6826         const_rtx to const rtx_insn *.
6827         (df_chain_insn_bottom_dump): Likewise.
6828         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
6829         rtx_insn *.
6830         (df_word_lr_simulate_uses): Likewise.
6831         (df_print_note): Likewise.
6832         (df_remove_dead_and_unused_notes): Likewise.
6833         (df_set_unused_notes_for_mw): Likewise.
6834         (df_set_dead_notes_for_mw): Likewise.
6835         (df_create_unused_note): Likewise.
6836         (df_simulate_find_defs): Likewise.
6837         (df_simulate_find_uses): Likewise.
6838         (df_simulate_find_noclobber_defs): Likewise.
6839         (df_simulate_defs): Likewise.
6840         (df_simulate_uses): Likewise.
6841         (df_simulate_one_insn_backwards): Likewise.
6842         (df_simulate_one_insn_forwards): Likewise.
6843         (df_md_simulate_one_insn): Likewise.
6844         * df-scan.c (df_uses_create): Likewise.
6845         (df_insn_create_insn_record): Likewise.
6846         (df_insn_delete): Likewise.
6847         (df_insn_rescan): Likewise.
6848         (df_insn_rescan_debug_internal): Likewise.
6849         (df_insn_change_bb): Likewise.
6850         (df_notes_rescan): Likewise.
6851         (df_refs_add_to_chains): Likewise.
6852         (df_insn_refs_verify): Likewise.
6853         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
6854         when invoking df_insn_delete.
6855         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
6856         (set_unique_reg_note): Add checked cast.
6857         * final.c (cleanup_subreg_operands): Likewise.
6858         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
6859         "insn" from rtx to rtx_insn *.
6860         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
6861         "last" from rtx to rtx_insn *.
6862         * ira-emit.c (change_regs_in_insn): New function.
6863         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
6864         Invoke change_regs_in_insn rather than change_regs.
6865         * ira.c (update_equiv_regs): Strengthen locals "insn",
6866         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
6867         for_each_rtx_in_insn rather than for_each_rtx.
6868         * recog.c (confirm_change_group): Add checked casts.
6869         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
6870         Add checked cast.
6871         (peep2_fill_buffer): Add checked cast.
6872         * rtlanal.c (remove_note): Likewise.
6873         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
6874         locals "next" "end" from rtx to rtx_insn *.
6876 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6878         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
6879         to rtx_insn *.
6880         (struct reg_use_data): Likewise for field "insn".
6881         (insn_cost): Likewise for param.
6882         (real_insn_for_shadow): Likewise for return type and param.
6883         (increase_insn_priority): Likewise for param 1.
6884         (debug_dependencies): Likewise for both params.
6886         * haifa-sched.c (insn_delay): Likewise for param "insn".
6887         (real_insn_for_shadow): Likewise for return type and param "insn".
6888         (update_insn_after_change): Likewise for param "insn".
6889         (recompute_todo_spec): Likewise for param "next" and locals "pro",
6890         "other".
6891         (insn_cost): Likewise for param "insn".
6892         (increase_insn_priority): Likewise.
6893         (calculate_reg_deaths): Likewise.
6894         (setup_insn_reg_pressure_info): Likewise.
6895         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
6896         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
6897         (model_recompute): Likewise.
6898         (must_restore_pattern_p): Likewise for param "next".
6899         (model_excess_cost): Likewise for param "insn".
6900         (queue_remove): Likewise.
6901         (adjust_priority): Likewise for param "prev".
6902         (update_register_pressure): Likewise for param "insn".
6903         (setup_insn_max_reg_pressure): Likewise for local "insn".
6904         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
6905         (model_add_to_schedule): Likewise.
6906         (model_reset_queue_indices): Likewise for local "insn".
6907         (unschedule_insns_until): Strengthen local "recompute_vec" from
6908         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
6909         "con" from rtx to rtx_insn *.
6910         (restore_last_backtrack_point): Likewise for both locals "x". Add
6911         checked casts.
6912         (estimate_insn_tick): Likewise for param "insn".
6913         (commit_schedule): Likewise for params "prev_head", "tail" and
6914         local "x".
6915         (verify_shadows): Likewise for locals "i1", "i2".
6916         (dump_insn_stream): Likewise for params "head", "tail" and locals
6917         "next_tail", "insn".
6918         (schedule_block): Likewise for locals "insn", "x".  Add a checked
6919         cast.
6920         (fix_inter_tick): Likewise for params "head", "tail".
6921         (create_check_block_twin): Likewise for local "jump".
6922         (haifa_change_pattern): Likewise for param "insn".
6923         (haifa_speculate_insn): Likewise.
6924         (dump_new_block_header): Likewise for params "head", "tail".
6925         (fix_jump_move): Likewise for param "jump".
6926         (move_block_after_check): Likewise.
6927         (sched_init_insn_luid): Likewise for param "insn".
6928         (sched_init_luids): Likewise for local "insn".
6929         (insn_luid): Likewise for param "insn".
6930         (init_h_i_d): Likewise.
6931         (haifa_init_h_i_d): Likewise for local "insn".
6932         (haifa_init_insn): Likewise for param "insn".
6933         * sched-deps.c (add_dependence): Likewise for local "real_pro",
6934         "other".
6935         (create_insn_reg_use): Likewise for param "insn".
6936         (setup_insn_reg_uses): Likewise.  Add a checked cast.
6937         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
6938         "tail" from rtx to rtx_insn *.
6939         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
6940         "insn", "next_tail".
6942 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6944         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
6945         from rtx to rtx_insn *.
6946         (model_add_to_schedule): Likewise for locals "start", "end",
6947         "iter".
6949 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6951         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
6952         rtx_insn *.
6953         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
6954         "to" and locals "insn", "next", "copy".  Remove now-redundant
6955         checked cast.
6957 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6959         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
6960         rtx_insn * and param 4 from rtx * to rtx_insn **.
6961         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
6962         param 2 from rtx * to rtx_insn **.
6964         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
6965         rtx_insn * and final param from rtx * to rtx_insn **.
6967         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
6968         from rtx to rtx_insn *.
6969         (try_head_merge_bb): Likewise for both locals named "move_upto".
6970         * df-problems.c (can_move_insns_across): Likewise for params
6971         "from", "to", "across_from", "across_to" and locals "insn",
6972         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
6973         rtx_insn **.
6974         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
6975         from rtx to rtx_insn *.
6976         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
6977         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
6978         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
6979         rtx_insn *.
6980         (noce_try_abs): Likewise.
6981         (noce_get_condition): Likewise for param "jump".  Strengthen param
6982         "earliest" from rtx * to rtx_insn **.
6983         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
6984         rtx_insn *.
6985         (find_cond_trap): Likewise.
6986         (dead_or_predicable): Likewise for local "earliest".
6987         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
6988         checked cast.
6989         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
6990         and local "prev".  Strengthen param "earliest" from rtx * to
6991         rtx_insn **.
6992         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
6993         Strengthen param "earliest" from rtx * to rtx_insn **.
6995 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6997         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
6998         "to" and local "insn" from rtx to rtx_insn *.
7000 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7002         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
7003         from rtx to rtx_insn *.
7004         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
7005         (code_motion_path_driver): Likewise for local "last_insn".
7006         (simplify_changed_insns): Likewise for local "insn".
7008 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7010         * rtl.h (push_to_sequence): Strengthen param from rtx to
7011         rtx_insn *.
7012         (push_to_sequence2): Likewise for both params.
7013         (delete_insns_since): Likewise for param.
7014         (reorder_insns_nobb): Likewise for all three params.
7015         (set_new_first_and_last_insn): Likewise for both params.
7017         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
7018         rtx_insn *.  Remove now-redundant cast.
7019         (set_last_insn): Likewise.
7021         * builtins.c (expand_builtin_return): Strengthen local
7022         "call_fusage" from rtx to rtx_insn *.
7023         * cfgrtl.c (create_basic_block_structure): Likewise for local
7024         "after".
7025         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
7026         "first", "last" and local "insn".
7027         (delete_insns_since): Likewise for param "from".
7028         (reorder_insns_nobb): Likewise for params "from", "to", "after"
7029         and local "x".
7030         (push_to_sequence): Likewise for param "first" and local "last".
7031         (push_to_sequence2): Likewise for params "first" and "last".
7032         * lra.c (emit_add3_insn): Likewise for local "last".
7033         (lra_emit_add): Likewise.
7034         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
7035         "last_insn".
7036         (process_address_1): Likewise for locals "insn", last".
7037         * modulo-sched.c (ps_first_note): Likewise for return type.
7038         * optabs.c (expand_binop_directly): Likewise for param "last".
7040 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7042         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
7043         to rtx_insn*.
7044         * emit-rtl.c (get_last_insn_anywhere): Likewise.
7046 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7048         * function.h (struct sequence_stack): Strengthen fields "first"
7049         and "last" from rtx to rtx_insn *.
7050         (struct emit_status): Likewise for fields "x_first_insn" and
7051         "x_last_insn".
7053         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
7054         (set_first_insn): Add checked cast.
7055         (get_last_insn): Remove now-redundant checked cast.
7056         (set_last_insn): Add checked cast.
7058         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
7059         "saved_first" and "saved_last" from rtx to rtx_insn *.
7061 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7063         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
7064         (unlink_insn_chain): Strengthen both params from rtx to
7065         rtx_insn *.
7067         * cfgrtl.c (cfg_layout_function_header): Likewise for this
7068         variable.
7069         (unlink_insn_chain): Likewise for params "first" and "last".
7070         Remove now-redundant checked cast.
7071         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
7072         (fixup_reorder_chain): Strengthen local "insn" from rtx to
7073         rtx_insn *.
7074         * emit-rtl.c (link_insn_into_chain): Likewise for all three
7075         params.
7076         (add_insn): Likewise for param "insn" and local "prev".
7077         (add_insn_after_nobb): Likewise for both params and local "next".
7078         (add_insn_before_nobb): Likewise for both params and local "prev".
7079         (add_insn_after): Rename param "after" to "uncast_after",
7080         introducing local "after" with another checked cast.
7081         (add_insn_before): Rename params "insn" and "before", giving them
7082         "uncast_" prefixes, adding the old names back using checked casts.
7083         (emit_note_after): Likewise for param "after".
7084         (emit_note_before): Likewise for param "before".
7085         (emit_label): Add a checked cast.
7087 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7089         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
7090         "insn" from rtx to rtx_insn *.
7092         * cselib.c (cselib_record_sets_hook): Likewise.
7094         * var-tracking.c (add_with_sets): Likewise, renaming back from
7095         "uncast_insn" to "insn" and eliminating the checked cast from rtx
7096         to rtx_insn *.
7098 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7100         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
7101         and "header_" from rtx to rtx_insn *.
7102         (struct basic_block_d): Likewise for field "head_" within "x"
7103         field of union basic_block_il_dependent.
7104         (BB_HEAD): Drop function...
7105         (SET_BB_HEAD): ...and this function in favor of...
7106         (BB_HEAD): ...reinstate macro.
7107         (BB_END): Drop function...
7108         (SET_BB_END): ...and this function in favor of...
7109         (BB_END): ...reinstate macro.
7110         (BB_HEADER): Drop function...
7111         (SET_BB_HEADER): ...and this function in favor of...
7112         (BB_HEADER): ...reinstate macro.
7114         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
7115         (fix_crossing_unconditional_branches): Likewise.
7116         * caller-save.c (save_call_clobbered_regs): Likewise.
7117         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
7118         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
7119         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7120         (merge_blocks_move_successor_nojumps): Likewise.
7121         (outgoing_edges_match): Update use of for_each_rtx to
7122         for_each_rtx_in_insn.
7123         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
7124         (expand_gimple_cond): Likewise.
7125         (expand_gimple_tailcall): Likewise.
7126         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
7127         SET_BB_END.
7128         (construct_exit_block): Drop use of SET_BB_END.
7129         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
7130         rtx_insn *.
7131         (delete_insn): Rename param "insn" to "uncast_insn", introducing
7132         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
7133         SET_BB_HEAD and SET_BB_END.
7134         (create_basic_block_structure): Drop use of SET_BB_HEAD and
7135         SET_BB_END.
7136         (rtl_delete_block): Drop use of SET_BB_HEAD.
7137         (rtl_split_block): Drop use of SET_BB_END.
7138         (emit_nop_for_unique_locus_between): Likewise.
7139         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
7140         (block_label): Drop use of SET_BB_HEAD.
7141         (fixup_abnormal_edges): Drop use of SET_BB_END.
7142         (record_effective_endpoints): Drop use of SET_BB_HEADER.
7143         (relink_block_chain): Likewise.
7144         (fixup_reorder_chain): Drop use of SET_BB_END.
7145         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
7146         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
7147         rtx_insn **.  Drop use of SET_BB_HEADER.
7148         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
7149         SET_BB_HEAD.
7150         (BB_HEAD): Delete this function.
7151         (SET_BB_HEAD): Likewise.
7152         (BB_END): Likewise.
7153         (SET_BB_END): Likewise.
7154         (BB_HEADER): Likewise.
7155         (SET_BB_HEADER): Likewise.
7156         * emit-rtl.c (add_insn_after):  Rename param "insn" to
7157         "uncast_insn", adding a new local "insn" and a checked cast to
7158         rtx_insn *.  Drop use of SET_BB_END.
7159         (remove_insn): Strengthen locals "next" and "prev" from rtx to
7160         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
7161         (reorder_insns): Drop use of SET_BB_END.
7162         (emit_insn_after_1): Strengthen param "first" and locals "last",
7163         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
7164         (emit_pattern_after_noloc): Add checked cast.
7165         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
7166         (restore_other_notes): Likewise.
7167         (move_insn): Likewise.
7168         (sched_extend_bb): Likewise.
7169         (fix_jump_move): Likewise.
7170         * ifcvt.c (noce_process_if_block): Likewise.
7171         (dead_or_predicable): Likewise.
7172         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
7173         * reg-stack.c (change_stack): Drop use of SET_BB_END.
7174         * sel-sched-ir.c (sel_move_insn): Likewise.
7175         * sel-sched.c (move_nop_to_previous_block): Likewise.
7177         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
7178         SET_BB_END.
7179         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7181 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7183         * basic-block.h (create_basic_block_structure): Strengthen params
7184         1 "head" and 2 "end" from rtx to rtx_insn *.
7185         * cfgrtl.c (create_basic_block_structure): Likewise.
7186         (rtl_create_basic_block): Update casts from void * to rtx to
7187         rtx_insn *, so that we can pass them as rtx_insn * to
7188         create_basic_block_structure.
7189         * sel-sched-ir.c (sel_create_basic_block): Likewise.
7191 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7193         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
7194         rtx_insn **.
7195         (check_for_inc_dec): Strengthen param "insn" from rtx to
7196         rtx_insn *.
7198         * cselib.h (cselib_process_insn): Likewise.
7200         * cselib.c (cselib_record_sets): Likewise.
7201         (cselib_process_insn): Likewise.
7203         * dse.c (struct insn_info): Likewise for field "insn".
7204         (check_for_inc_dec_1): Likewise for local "insn".
7205         (check_for_inc_dec): Likewise for param "insn".
7206         (scan_insn): Likewise.
7207         (dse_step1): Likewise for local "insn".
7209         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7210         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
7212 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7214         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7215         from rtx to rtx_insn *.
7216         (DEP_PRO): Delete this function and...
7217         (SET_DEP_PRO): ...this function in favor of...
7218         (DEP_PRO): ...reinstate this macro.
7219         (DEP_CON): Delete this function and...
7220         (SET_DEP_CON): ...this function in favor of...
7221         (DEP_CON): ...reinstate this old macro.
7222         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7223         (init_dep): Likewise.
7224         (set_priorities): Likewise for both params.
7225         (sd_copy_back_deps): Likewise for params 1 and 2.
7227         * haifa-sched.c (priority): Likewise for param "insn" and local
7228         "next".
7229         (set_priorities): Likewise for params "head" and "tail" and local
7230         "insn".
7231         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
7232         local "consumer".
7233         (add_to_speculative_block): Add a checked cast.
7234         (create_check_block_twin): Drop use of SET_DEP_CON.
7235         (add_jump_dependencies): Strengthen params "insn" and "jump" from
7236         rtx to rtx_insn *.
7238         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
7239         Drop use of SET_DEP_PRO
7240         (init_dep): Strengthen params "pro" and "con" from rtx to
7241         rtx_insn *.
7242         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
7243         use of SET_DEP_CON.
7244         (DEP_PRO): Delete.
7245         (DEP_CON): Delete.
7246         (SET_DEP_PRO): Delete.
7247         (SET_DEP_CON): Delete.
7249 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7251         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
7252         from rtx to rtx_insn *.
7253         (VINSN_INSN_RTX): Eliminate rvalue function and...
7254         (SET_VINSN_INSN): ...lvalue function in favor of...
7255         (VINSN_INSN_RTX): reinstate this old macro.
7257         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
7258         in favor of VINSN_INSN_RTX.
7259         (VINSN_INSN_RTX): Delete this function.
7260         (SET_VINSN_INSN_RTX): Likewise.
7262 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7264         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
7265         (BND_TO): Delete this function and...
7266         (SET_BND_TO): ...this functions in favor of...
7267         (BND_TO): ...reinstating this macro.
7268         (struct _fence): Strengthen field "executing_insns" from
7269         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
7270         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
7271         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
7272         and param "insn" from rtx to insn_t.
7273         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
7274         rtx_insn *.
7276         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
7277         vec<rtx_insn *> .
7278         (rtx_vec_t): Likewise.
7279         (struct sched_deps_info_def): Strengthen param of "start_insn"
7280         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
7281         "note_mem_dep" callback and first param of "note_dep" callback.
7283         * haifa-sched.c (add_to_speculative_block): Strengthen param
7284         "insn" from rtx to rtx_insn *.
7285         (clear_priorities): Likewise.
7286         (calc_priorities): Likewise for local "insn".
7288         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
7289         Remove redundant checked cast.
7290         (haifa_note_mem_dep): Likewise for param "pending_insn".
7291         (haifa_note_dep): Likewise for param "elem".
7292         (note_mem_dep): Likewise for param "e".
7293         (sched_analyze_1): Add checked casts.
7294         (sched_analyze_2): Likewise.
7296         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
7297         from rtx to rtx_insn *.
7298         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
7299         from vec<rtx> * to vec<rtx_insn *> *.
7301         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
7302         scaffolding.
7303         (flist_add): Strengthen param "executing_insns" from
7304         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7305         (advance_deps_context): Remove now-redundant checked cast.
7306         (init_fences): Replace uses of NULL_RTX with NULL.
7307         (merge_fences): Strengthen params "last_scheduled_insn" and
7308         "sched_next" from rtx to rtx_insn * and "executing_insns" from
7309         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7310         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
7311         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
7312         an instruction, rather than doing double-duty as a pattern.
7313         (return_nop_to_pool): Update for change of insn_t.
7314         (deps_init_id): Remove now-redundant checked cast.
7315         (struct sched_scan_info_def): Strengthen param of "init_insn"
7316         callback from rtx to insn_t.
7317         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
7318         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
7319         NULL.
7320         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
7321         "end" from rtx to rtx_insn *.
7322         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
7323         (rtx insn_rtx, bool force_unique_p)
7324         (BND_TO): Delete function.
7325         (SET_BND_TO): Delete function.
7327         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
7328         rtx to rtx_insn *.
7329         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
7330         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
7331         rtx to rtx_insn *.
7332         (undo_transformations): Likewise for param "insn".
7333         (update_liveness_on_insn): Likewise.
7334         (compute_live_below_insn): Likewise for param "insn" and local
7335         "succ".
7336         (update_data_sets): Likewise for param "insn".
7337         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
7338         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
7339         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
7340         rtx_insn *.
7341         (move_cond_jump): Likewise for param "insn".
7342         (move_cond_jump): Drop use of SET_BND_TO.
7343         (compute_av_set_on_boundaries): Likewise.
7344         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
7345         (update_and_record_unavailable_insns): Strengthen local "bb_end"
7346         from rtx to rtx_insn *.
7347         (maybe_emit_renaming_copy): Likewise for param "insn".
7348         (maybe_emit_speculative_check): Likewise.
7349         (handle_emitting_transformations): Likewise.
7350         (remove_insn_from_stream): Likewise.
7351         (code_motion_process_successors): Strengthen local "succ" from rtx
7352         to insn_t.
7354 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7356         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
7357         ilist_t, not _xlist_t;
7358         (ILIST_INSN): Define in terms of new union field "insn".
7359         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
7360         _XLIST_NEXT.
7361         (struct _list_node): Add new field "insn" to the union, of type
7362         insn_t.
7363         (ilist_add): Replace macro with an inline function, requiring an
7364         insn_t.
7365         (ilist_remove): Define this macro directly in terms of
7366         _list_remove, rather than indirectly via _xlist_remove.
7367         (ilist_clear): Likewise, in terms of _list_clear rather than
7368         _xlist_clear.
7369         (ilist_is_in_p): Replace macro with an inline function, requiring
7370         an insn_t.
7371         (_list_iter_cond_insn): New function.
7372         (ilist_iter_remove): Define this macro directly in terms of
7373         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
7374         (ilist_iterator): Define directly in terms of _list_iterator
7375         rather than indirectly through _xlist_iterator.
7376         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
7377         than in terms of _FOR_EACH_X.
7378         (FOR_EACH_INSN_1): Likewise.
7380 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
7382         PR target/60606
7383         PR target/61330
7384         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
7385         DECL_HARD_REGISTER and return for invalid register specifications.
7386         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
7387         DECL_HARD_REGISTER, call expand_one_error_var.
7388         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
7389         CC_REGNUM with non-MODE_CC modes.
7390         (arm_regno_class): Return NO_REGS for PC_REGNUM.
7392 2014-08-26  Marek Polacek  <polacek@redhat.com>
7394         PR c/61271
7395         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
7397 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
7399         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
7400         qi cost; add di cost.
7401         (cortexa57_addrcost_table): Likewise.
7403 2014-08-26  Marek Polacek  <polacek@redhat.com>
7405         PR c/61271
7406         * expr.c (is_aligning_offset): Remove logical not.
7408 2014-08-26  Marek Polacek  <polacek@redhat.com>
7410         PR c/61271
7411         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
7412         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
7414 2014-08-26  Richard Biener  <rguenther@suse.de>
7416         PR tree-optimization/62175
7417         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7418         expand possibly trapping operations.
7420 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7422         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
7423         "insn" from rtx to rtx_insn *.
7424         (permute_load): Likewise for param "insn".
7425         (permute_store): Likewise.
7426         (handle_special_swappables): Likewise for local "insn".
7427         (replace_swap_with_copy): Likewise for locals "insn" and
7428         "new_insn".
7429         (rs6000_analyze_swaps): Likewise for local "insn".
7431 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7433         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
7434         to rtx_insn *.
7436 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7438         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
7439         "note_list" from rtx to rtx_insn *.
7440         (BB_NOTE_LIST): Replace this function and...
7441         (SET_BB_NOTE_LIST): ...this function with...
7442         (BB_NOTE_LIST): ...the former macro implementation.
7444         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
7445         local "from_start" from rtx to rtx_insn *.  Strengthen param
7446         "to_endp" from rtx * to rtx_insn **.
7448         * haifa-sched.c (concat_note_lists): Likewise.
7449         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
7450         BB_NOTE_LIST.
7451         (sel_restore_notes): Likewise.
7452         (move_bb_info): Likewise.
7453         (BB_NOTE_LIST): Delete this function.
7454         (SET_BB_NOTE_LIST): Delete this function.
7455         * sel-sched.c (create_block_for_bookkeeping): Eliminate
7456         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
7458 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7460         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
7461         from rtx * to rtx_insn **.
7462         (reorder2): Likewise.
7463         (dependencies_evaluation_hook): Strengthen params "head", "tail"
7464         from rtx to rtx_insn *.
7466         * doc/tm.texi: Update mechanically for above change to target.def.
7468         * sched-int.h (note_list): Strengthen this variable from rtx to
7469         rtx_insn *.
7470         (remove_notes): Likewise for both params.
7471         (restore_other_notes): Likewise for return type and first param.
7472         (struct ready_list): Strengthen field "vec" from rtx * to
7473         rtx_insn **.
7474         (struct dep_replacement): Strenghten field "insn" from rtx to
7475         rtx_insn *.
7476         (struct deps_desc): Likewise for fields "last_debug_insn",
7477         "last_args_size".
7478         (struct haifa_sched_info): Likewise for callback field
7479         "can_schedule_ready_p"'s param, for first param of "new_ready"
7480         callback field, for both params of "rank" callback field, for
7481         first field of "print_insn" callback field (with a const), for
7482         both params of "contributes_to_priority" callback, for param
7483         of "insn_finishes_block_p" callback, for fields "prev_head",
7484         "next_tail", "head", "tail", for first param of "add_remove_insn"
7485         callback, for first param of "begin_schedule_ready" callback, for
7486         both params of "begin_move_insn" callback, and for second param
7487         of "advance_target_bb" callback.
7488         (add_dependence): Likewise for params 1 and 2.
7489         (sched_analyze): Likewise for params 2 and 3.
7490         (deps_analyze_insn): Likewise for param 2.
7491         (ready_element): Likewise for return type.
7492         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7493         (try_ready): Strenghten param from rtx to rtx_insn *.
7494         (sched_emit_insn): Likewise for return type.
7495         (record_delay_slot_pair): Likewise for params 1 and 2.
7496         (add_delay_dependencies): Likewise for param.
7497         (contributes_to_priority): Likewise for both params.
7498         (find_modifiable_mems): Likewise.
7500         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
7501         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
7502         "first_older_only_insn" from rtx to rtx_insn *.
7503         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
7504         rtx_insn **.
7506         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
7507         "last_scheduled_iter0" from rtx to rtx_insn *.
7508         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
7509         (c6x_sched_reorder_1): Strengthen param "ready" and locals
7510         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
7511         "insn" from rtx to rtx_insn *.
7512         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
7513         rtx_insn **.
7514         (c6x_sched_reorder2): Strengthen param "ready" and locals
7515         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7516         "insn" from rtx to rtx_insn *.
7517         (c6x_variable_issue):  Add a checked cast when assigning from insn
7518         to ss.last_scheduled_iter0.
7519         (split_delayed_branch): Strengthen param "insn" and local "i1"
7520         from rtx to rtx_insn *.
7521         (split_delayed_nonbranch): Likewise.
7522         (undo_split_delayed_nonbranch): Likewise for local "insn".
7523         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
7524         "entry_after", "end_packet", "head_insn", "tail_insn",
7525         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
7526         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
7527         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
7528         but add a checked cast on loop->start_label.  Consolidate calls to
7529         avoid assigning result of gen_spkernel to "insn", now an
7530         rtx_insn *.
7532         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
7533         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
7534         rtx to rtx_insn *.
7535         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
7536         rtx_insn **.  Strengthen locals "top", "next" from rtx to
7537         rtx_insn *.
7538         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
7539         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
7540         (add_parameter_dependencies): Strengthen params "call", "head" and
7541         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
7542         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
7543         (add_dependee_for_func_arg): Likewise for param "arg" and local
7544         "insn".
7545         (ix86_dependencies_evaluation_hook): Likewise for params "head",
7546         "tail" and locals "insn", "first_arg".
7548         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
7549         for params "head", "tail" and locals "insn", "next", "next_tail".
7550         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
7551         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
7552         "insn", "lowest", "highest" from rtx to rtx_insn *.
7553         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
7554         rtx_insn **.
7555         (ia64_sched_reorder2): Likewise.
7557         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
7558         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
7559         from rtx * to rtx_insn **.
7560         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
7561         rtx_insn **.
7562         (mep_print_sched_insn): Strengthen param "insn" from rtx to
7563         rtx_insn *.
7564         (mep_sched_reorder): Strengthen param "ready" from rtx * to
7565         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
7566         to rtx_insn *.
7568         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
7569         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
7570         to rtx_insn *.
7571         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
7572         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
7573         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
7574         rtx_insn **.
7575         (vr4130_reorder): Likewise.
7576         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
7577         rtx to rtx_insn *.
7578         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
7579         rtx_insn **.
7580         (mips_sched_reorder): Likewise.
7581         (mips_sched_reorder2): Likewise.
7583         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
7585         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
7586         Strengthen local "tmp" from rtx to rtx_insn *.
7587         (rs6000_sched_reorder2): Likewise.
7589         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
7590         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
7591         (s390_sched_reorder): Strengthen param "ready" from rtx * to
7592         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
7594         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
7595         "tmp2" from rtx to rtx_insn *.
7596         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
7597         Strengthen local "insn" from rtx to rtx_insn *.
7598         (ready_reorder): Strengthen param "ready" from rtx * to
7599         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
7600         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
7601         (sh_reorder2): Likewise.
7603         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
7604         local "insn" from rtx to rtx_insn *.
7606         * haifa-sched.c (note_list): Strengthen this variable from rtx to
7607         rtx_insn *.
7608         (scheduled_insns): Strengthen this variable from vec<rtx> to
7609         vec<rtx_insn *>.
7610         (set_modulo_params): Likewise for locals "i1", "i2".
7611         (record_delay_slot_pair): Likewise for params "i1", "i2".
7612         (add_delay_dependencies): Likewise for param "insn".
7613         (cond_clobbered_p): Likewise.
7614         (recompute_todo_spec): Likewise for local "prev".
7615         (last_scheduled_insn): Likewise for this variable.
7616         (nonscheduled_insns_begin): Likewise.
7617         (model_set_excess_costs): Strengthen param "insns" from rtx * to
7618         rtx_insn **.
7619         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
7620         rtx_insn *.
7621         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
7622         Strengthen local "insn" from rtx to rtx_insn *.
7623         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
7624         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7625         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
7626         (ready_remove_first): Likewise for return type and local "t".
7627         (ready_element): Likewise for return type.
7628         (ready_remove): Likewise for return type and local "t".
7629         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
7630         (check_clobbered_conditions): Strengthen local "x" from rtx to
7631         rtx_insn *, adding a checked cast.
7632         (schedule_insn): Likewise for param "insn".
7633         (remove_notes): Likewise for params "head", "tail" and locals
7634         "next_tail", "insn", "next".
7635         (struct haifa_saved_data): Likewise for fields
7636         "last_scheduled_insn", "nonscheduled_insns_begin".
7637         (save_backtrack_point): Update for change to field "vec" of
7638         struct ready_list.
7639         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
7640         rtx_insn **.
7641         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
7642         from rtx to rtx_insn *
7643         (resolve_dependencies): Strengthen param "insn" from rtx to
7644         rtx_insn *
7645         (restore_other_notes): Likewise for return type, for param "head"
7646         and local "note_head".
7647         (undo_all_replacements): Likewise for local "insn".
7648         (first_nonscheduled_insn): Likewise for return type and local "insn".
7649         (queue_to_ready): Likewise for local "insn", adding checked casts.
7650         (early_queue_to_ready): Likewise for local "insn".
7651         (debug_ready_list_1): Strengthen local "p" from rtx * to
7652         rtx_insn **.
7653         (move_insn): Strengthen param "insn" and local "note" from rtx to
7654         rtx_insn *
7655         (insn_finishes_cycle_p): Likewise for param "insn".
7656         (max_issue): Likewise for local "insn".
7657         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
7658         to rtx_insn **.
7659         (commit_schedule): Strengthen param "prev_head" and local "insn"
7660         from rtx to rtx_insn *
7661         (prune_ready_list): Likewise for local "insn".
7662         (schedule_block): Likewise for locals "prev_head", "head", "tail",
7663         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
7664         (set_priorities): Likewise for local "prev_head".
7665         (try_ready): Likewise for param "next".
7666         (fix_tick_ready): Likewise.
7667         (change_queue_index): Likewise.
7668         (sched_extend_ready_list): Update for change to field "vec" of
7669         struct ready_list.
7670         (generate_recovery_code): Strengthen param "insn" from rtx to
7671         rtx_insn *.
7672         (begin_speculative_block): Likewise.
7673         (create_check_block_twin): Likewise for param "insn" and locals
7674         "label", "check", "twin".  Introduce local "check_pat" to avoid
7675         "check" being used as a plain rtx before being used as an insn.
7676         (fix_recovery_deps): Add a checked cast to rtx_insn * when
7677         extracting elements from ready_list.
7678         (sched_remove_insn): Strengthen param "insn" from rtx to
7679         rtx_insn *.
7680         (sched_emit_insn): Likewise for return type.
7681         (ready_remove_first_dispatch): Likewise for return type and local
7682         "insn".
7684         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
7686         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
7687         const rtx_insn *.
7689         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
7690         from rtx to rtx_insn *.
7691         (add_dependence_list): Likewise for param "insn".  Add a checked
7692         cast.
7693         (add_dependence_list_and_free): Strengthen param "insn" from rtx
7694         to rtx_insn *.  Strengthen param "list_p" from rtx * to
7695         rtx_insn **.
7696         (chain_to_prev_insn): Strengthen param "insn" and locals
7697         "prec_nonnote", "i" from rtx to rtx_insn *.
7698         (flush_pending_lists): Likewise for param "insn".
7699         (cur_insn): Likewise for this variable.
7700         (haifa_start_insn): Add a checked cast.
7701         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
7702         (sched_analyze_reg): Likewise for param "insn".
7703         (sched_analyze_1): Likewise.
7704         (sched_analyze_2): Likewise.  Add checked casts.
7705         (sched_analyze_insn): Likewise.  Also for local "prev".
7706         (deps_analyze_insn): Likewise for param "insn".
7707         (sched_analyze): Likewise for params "head", "tail" and local "insn".
7708         (add_dependence_1): Likewise for params "insn", "elem".
7709         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
7710         (parse_add_or_inc): Likewise for param "insn".
7711         (find_inc): Likewise for local "inc_cand".
7712         (find_modifiable_mems): Likewise for params "head", "tail" and
7713         locals "insn", "next_tail".
7715         * sched-ebb.c (init_ready_list): Likewise for local "insn".
7716         (begin_schedule_ready): Likewise for param "insn".
7717         (begin_move_insn): Likewise for params "insn" and "last".
7718         (ebb_print_insn): Strengthen param "insn" from const_rtx to
7719         const rtx_insn *.
7720         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
7721         (ebb_contributes_to_priority): Likewise for params "next", "insn".
7722         (ebb_add_remove_insn): Likewise for param "insn".
7723         (advance_target_bb): Likewise.
7725         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
7726         "insn".
7727         (check_live): Likewise for param "insn".
7728         (init_ready_list): Likewise for local "insn".
7729         (can_schedule_ready_p): Likewise for param "insn".
7730         (begin_schedule_ready): Likewise.
7731         (new_ready): Likewise for param "next".
7732         (rgn_print_insn): Likewise for param "insn".
7733         (rgn_rank): Likewise for params "insn1", "insn2".
7734         (contributes_to_priority): Likewise for params "next", "insn".
7735         (rgn_insn_finishes_block_p): Likewise for param "insn".
7736         (add_branch_dependences): Likewise for params "head", "tail" and
7737         locals "insn", "last".
7738         (rgn_add_remove_insn): Likewise for param "insn".
7739         (advance_target_bb): Likewise.
7741         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
7742         const_rtx to const rtx_insn *.
7744         * sel-sched-dump.h (sel_print_insn): Likewise.
7746         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
7747         (deps_init_id): Likewise.
7749         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
7750         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
7751         rtx_insn **.
7753 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7755         * output.h (final_start_function): Strengthen param 1 from rtx to
7756         rtx_insn *.
7758         * final.c (final_start_function): Likewise, renaming back from
7759         "uncast_first" to "first", and dropping the checked cast from rtx
7760         to rtx_insn *.
7762 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7764         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
7765         * final.c (final): Likewise.  Rename param back from
7766         "uncast_first" to "first" and eliminate the checked cast from rtx
7767         to rtx_insn *.
7769 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7771         * output.h (shorten_branches): Strengthen param from rtx to
7772         rtx_insn *.
7774         * final.c (shorten_branches): Likewise, renaming param back from
7775         "uncast_first" to "first", and dropping the checked cast from rtx
7776         to rtx_insn *.
7778         * genattr.c (gen_attr): Likewise when writing out the prototype of
7779         shorten_branches.
7781 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7783         * sched-int.h (struct haifa_sched_info): Strengthen fields
7784         "prev_head" and "next_tail" from rtx to rtx_insn *.
7786 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7788         * rtl.h (rtx_jump_table_data::get_labels): New method.
7789         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
7790         with use of the new rtx_jump_table_data::get_labels method.
7791         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
7792         to rtx_jump_table_data *.  Simplify by using get_labels method.
7793         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
7794         a dyn_cast, introducing local "table", using it to replace
7795         label-lookup logic with a get_labels method call.
7796         (patch_jump_insn): Simplify using get_labels method.
7797         * dwarf2cfi.c (create_trace_edges): Likewise.
7798         * rtlanal.c (label_is_jump_target_p): Likewise.
7800 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7802         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
7803         to rtx_insn *.
7805         * emit-rtl.c (unshare_all_rtl_1): Likewise.
7806         (unshare_all_rtl_again): Likewise, also for local "p".
7808 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7810         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
7811         to rtx_insn *.
7812         * cfgrtl.c (delete_insn_and_edges): Likewise.
7814 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7816         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
7817         from rtx to rtx_insn *.
7819         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
7821 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7823         * function.c (thread_prologue_and_epilogue_insns): Likewise for
7824         locals "returnjump", "epilogue_end", "insn", "next".
7826         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
7827         "returnjump" from rtx * to rtx_insn **.
7828         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
7830 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7832         * basic-block.h (struct edge_def). Strengthen "r" within
7833         union edge_def_insns from rtx to rtx_insn *.
7835         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
7836         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
7837         rtx_insn *.
7838         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
7839         from rtx to rtx_insn *.
7840         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
7841         rtx_insn *.
7842         * postreload-gcse.c (reg_killed_on_edge): Likewise.
7843         (reg_used_on_edge): Likewise.
7844         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
7845         (gt_pch_nx): New overload for rtx_insn *&.
7846         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
7847         from rtx to rtx_insn *.
7849 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7851         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
7852         from rtx to rtx_insn *.
7853         (BB_FOOTER): Replace function with access macro.
7854         (SET_BB_FOOTER): Delete.
7856         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
7857         with BB_FOOTER.
7858         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7859         (emit_barrier_after_bb): Likewise.
7860         (record_effective_endpoints): Likewise.
7861         (relink_block_chain): Likewise.
7862         (fixup_fallthru_exit_predecessor): Likewise.
7863         (cfg_layout_duplicate_bb): Likewise.
7864         (cfg_layout_split_block): Likewise.
7865         (cfg_layout_delete_block): Likewise.
7866         (cfg_layout_merge_blocks): Likewise.
7867         (BB_FOOTER): Delete function.
7868         (SET_BB_FOOTER): Delete function.
7869         * combine.c (update_cfg_for_uncondjump): Replace uses of
7870         SET_BB_FOOTER with BB_FOOTER.
7872 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7874         * except.h (struct eh_landing_pad_d): Strengthen field
7875         "landing_pad" from rtx to rtx_code_label *.
7877         * except.c (sjlj_emit_dispatch_table): Likewise for param
7878         "dispatch_label"
7879         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
7881 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7883         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
7884         first param from rtx to rtx_insn *.
7885         * config/xtensa/xtensa.c (struct machine_function): Likewise for
7886         field "set_frame_ptr_insn".
7887         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
7888         "csend" from rtx to rtx_code_label *.
7889         (xtensa_expand_atomic): Likewise for local "csloop".
7890         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
7891         rtx_insn *.
7892         (xtensa_call_tls_desc): Likewise for return type and locals
7893         "call_insn", "insns".
7894         (xtensa_legitimize_tls_address): Likewise for local "insns".
7895         (xtensa_expand_prologue): Likewise for locals "insn", "first".
7897 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7899         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
7900         first param from rtx to rtx_insn *.
7901         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
7902         "insn".
7904 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7906         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
7907         Strengthen param 1 from rtx to rtx_insn *.
7908         (tilepro_output_cbranch): Likewise.
7909         (tilepro_adjust_insn_length): Likewise.
7910         (tilepro_final_prescan_insn): Likewise for sole param.
7912         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
7913         Likewise for local "last".
7914         (cbranch_predicted_p): Likewise for param "insn".
7915         (tilepro_output_simple_cbranch_with_opcode): Likewise.
7916         (tilepro_output_cbranch_with_opcode): Likewise.
7917         (tilepro_output_cbranch): Likewise.
7918         (frame_emit_load): Likewise for return type and locals "seq",
7919         "insn".
7920         (emit_sp_adjust): Likewise for return type and local "insn".
7921         (tilepro_expand_epilogue): Likewise for locals "last_insn",
7922         "insn".
7923         (tilepro_adjust_insn_length): Likewise for param "insn".
7924         (next_insn_to_bundle): Likewise for return type and params
7925         "r", "end".
7926         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
7927         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
7928         local "new_insns".
7929         (match_addli_pcrel): Likewise for param "insn".
7930         (replace_addli_pcrel): Likewise.
7931         (match_auli_pcrel): Likewise.
7932         (replace_auli_pcrel): Likewise.
7933         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
7934         "next_insn".
7935         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7936         "queue", "next_queue", "prev".
7937         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
7938         (tilepro_final_prescan_insn): Likewise for param "insn".
7940 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7942         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
7943         Strengthen param 1 from rtx to rtx_insn *.
7944         (tilegx_output_cbranch): Likewise.
7945         (tilegx_adjust_insn_length): Likewise.
7946         (tilegx_final_prescan_insn): Likewise for sole param.
7948         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
7949         or local "last".
7950         (cbranch_predicted_p): Likewise for param "insn".
7951         (tilegx_output_simple_cbranch_with_opcode): Likewise.
7952         (tilegx_output_cbranch_with_opcode): Likewise.
7953         (tilegx_output_cbranch): Likewise.
7954         (frame_emit_load): Likewise for return type.
7955         (set_frame_related_p): Likewise for locals "seq", "insn".
7956         (emit_sp_adjust): Likewise for return type, and for local "insn".
7957         Introduce local "pat" for use in place of "insn" where the latter
7958         isn't an instruction.
7959         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
7960         from rtx to rtx_insn *.
7961         (tilegx_adjust_insn_length): Likewise for param "insn".
7962         (next_insn_to_bundle): Likewise for return type and params "r" and
7963         "end".
7964         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
7965         "end".
7966         (replace_insns): Likewise for params "old_insn", "new_insns".
7967         (replace_mov_pcrel_step1): Likewise for param "insn" and local
7968         "new_insns".
7969         (replace_mov_pcrel_step2): Likewise.
7970         (replace_mov_pcrel_step3): Likewise.
7971         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
7972         "next_insn".
7973         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7974         "queue", "next_queue", "prev".
7975         (tilegx_output_mi_thunk): Likewise for local "insn".
7976         (tilegx_final_prescan_insn): Likewise for param "insn".
7978 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7980         * config/spu/spu.c (frame_emit_store): Strengthen return type from
7981         rtx to rtx_insn *.
7982         (frame_emit_load): Likewise.
7983         (frame_emit_add_imm): Likewise, also for local "insn".
7984         (spu_expand_prologue): Likewise for local "insn".
7985         (struct spu_bb_info): Likewise for field "prop_jump".
7986         (emit_nop_for_insn): Likewise for param "insn" and local
7987         "new_insn".
7988         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
7989         "hbr_insn".
7990         (spu_emit_branch_hint): Likewise for params "before", "branch" and
7991         locals "hint", "insn".
7992         (get_branch_target): Likewise for param "branch".
7993         (insn_clobbers_hbr): Likewise for param "insn".
7994         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
7995         locals "insn", "before_4", "before_16".
7996         (insert_hbrp): Likewise for local "insn".
7997         (spu_machine_dependent_reorg): Likewise for locals "branch",
7998         "insn", "next", "bbend".
7999         (uses_ls_unit): Likewise for param "insn".
8000         (get_pipe): Likewise.
8001         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
8002         introducing a checked cast.
8003         (spu_sched_adjust_cost): Likewise for params "insn" and
8004         "dep_insn".
8005         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
8006         (spu_sms_res_mii): Likewise.
8008 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8010         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
8011         from rtx to rtx_insn *.
8012         (output_cbranch): Likewise for param 6.
8013         (output_return): Likewise for param 1.
8014         (output_sibcall): Likewise.
8015         (output_v8plus_shift): Likewise.
8016         (output_v8plus_mult): Likewise.
8017         (output_v9branch): Likewise for param 7.
8018         (output_cbcond):  Likewise for param 3.
8020         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
8021         for local "insn".
8022         (sparc_legitimize_pic_address): Likewise.
8023         (sparc_emit_call_insn): Likewise.
8024         (emit_save_or_restore_regs): Likewise.
8025         (emit_window_save): Likewise for return type and local "insn".
8026         (sparc_expand_prologue): Likewise for local "insn".
8027         (sparc_flat_expand_prologue): Likewise.
8028         (output_return): Likewise for param "insn".
8029         (output_sibcall): Likewise for param "insn" and local "delay".
8030         (output_ubranch): Likewise for param "insn".
8031         (output_cbranch): Likewise.
8032         (output_cbcond): Likewise.
8033         (output_v9branch): Likewise.
8034         (output_v8plus_shift): Likewise.
8035         (sparc_output_mi_thunk): Likewise for local "insn".
8036         (get_some_local_dynamic_name): Likewise.
8037         (output_v8plus_mult): Likewise for param "insn".
8039 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8041         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
8042         from rtx to rtx_insn *.
8043         (output_branchy_insn): Likewise for param 3.
8044         (output_far_jump): Likewise for param 1.
8045         (final_prescan_insn): Likewise.
8046         (sh_insn_length_adjustment): Likewise for sole param.
8048         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
8049         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
8050         rtx_code_label *.
8051         (sh_emit_compare_and_set): Likewise for local "lab".
8052         (output_far_jump): Strengthen param "insn" and local "prev" from
8053         rtx to rtx_insn *.
8054         (output_branchy_insn): Likewise for param "insn" and local
8055         "next_insn".
8056         (output_ieee_ccmpeq): Likewise for param "insn".
8057         (struct label_ref_list_d): Strengthen field "label" from rtx to
8058         rtx_code_label *.
8059         (pool_node): Likewise.
8060         (pool_window_label): Likewise for this global.
8061         (add_constant): Likewise for return type and locals "lab", "new_rtx".
8062         (dump_table): Strengthen params "start", "barrier" and local
8063         "scan" from rtx to rtx_insn *.
8064         (broken_move): Likewise for param "insn".
8065         (untangle_mova): Likewise for params "first_mova" and "new_mova".
8066         Strengthen param "first_mova" from rtx * to rtx_insn **.
8067         (mova_p): Likewise for param "insn".
8068         (fixup_mova): Likewise for param "mova".
8069         (find_barrier): Likewise for return type, params "mova" and
8070         "from", and locals "barrier_before_mova", "found_barrier",
8071         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
8072         "label" from rtx to rtx_code_label *.
8073         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
8074         rtx to rtx_insn *.
8075         (sh_reorg): Likewise for locals "link", "scan", "barrier".
8076         (split_branches): Likewise for param "first" and local "insn".
8077         (final_prescan_insn): Likewise for param "insn".
8078         (sequence_insn_p): Likewise for locals "prev", "next".
8079         (sh_insn_length_adjustment): Likewise for param "insn".
8080         (sh_can_redirect_branch): Likewise for local "insn".
8081         (find_r0_life_regions): Likewise for locals "end", "insn".
8082         (sh_output_mi_thunk): Likewise for local "insns".
8084 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8086         * config/score/score.c (score_output_mi_thunk): Strengthen local
8087         "insn" from rtx to rtx_insn *.
8088         (score_prologue): Likewise.
8090 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8092         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
8093         1 from rtx to rtx_insn *.
8094         (s390_emit_jump): Likewise for return type.
8095         (s390_emit_call): Likewise.
8096         (s390_load_got): Likewise.
8098         * config/s390/s390.c (last_scheduled_insn): Likewise for this
8099         variable.
8100         (s390_match_ccmode): Likewise for param "insn".
8101         (s390_emit_jump): Likewise for return type.
8102         (s390_split_branches): Likewise for local "label".
8103         (struct constant): Strengthen field "label" from rtx to
8104         rtx_code_label *.
8105         (struct constant_pool): Likewise for field "label".  Strengthen
8106         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
8107         rtx_insn *.
8108         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
8109         insns.
8110         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
8111         (s390_end_pool): Likewise.
8112         (s390_dump_pool): Likewise for local "insn".
8113         (s390_mainpool_start): Likewise.
8114         (s390_chunkify_start): Likewise.
8115         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
8116         with insns.  Strengthen locals "label", "jump", "barrier", "next",
8117         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
8118         (s390_chunkify_finish): Strengthen local "insn" from rtx to
8119         rtx_insn *.
8120         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
8121         "jump", "label", "next_insn".
8122         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
8123         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
8124         "tbegin_insn".
8125         (s390_load_got): Likewise for return type and local "insns".
8126         (s390_save_gprs_to_fprs): Likewise for local "insn".
8127         (s390_restore_gprs_from_fprs): Likewise.
8128         (pass_s390_early_mach::execute): Likewise.
8129         (s390_emit_prologue): Likewise for local "insns".
8130         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
8131         rtx_code_label *.
8132         (s390_emit_call): Strengthen return type and local "insn" from
8133         rtx to rtx_insn *.
8134         (s390_emit_tpf_eh_return): Likewise for local "insn".
8135         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
8136         "next_insn", introducing locals "s_pat", "rpat" to allow this.
8137         (s390_fix_long_loop_prediction): Likewise for param "insn" and
8138         local "cur_insn".
8139         (s390_non_addr_reg_read_p): Likewise for param "insn".
8140         (find_cond_jump): Likewise for return type and param "insn".
8141         (s390_swap_cmp): Likewise for param "insn".
8142         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
8143         "prev_insn", "next_insn".
8144         (s390_reorg): Likewise for locals "insn", "target".
8145         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
8146         (s390_sched_variable_issue): For now, rename param "insn" to
8147         "uncast_insn", introducing a checked cast.
8148         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
8149         insn.
8150         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
8151         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
8153 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8155         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
8156         param from rtx to rtx_insn *.
8157         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
8159 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8161         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
8162         4 from rtx to rtx_insn *.
8163         (rs6000_final_prescan_insn): Likewise for first param.
8164         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
8165         local "insn".
8166         (rs6000_get_some_local_dynamic_name): Likewise.
8167         (output_cbranch): Likewise for param "insn".
8168         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
8169         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
8170         (rs6000_emit_allocate_stack): Likewise for local "insn".
8171         (load_cr_save): Likewise.
8172         (restore_saved_cr): Likewise.
8173         (restore_saved_lr): Likewise.
8174         (emit_cfa_restores): Likewise.
8175         (rs6000_output_function_epilogue): Likewise for locals "insn" and
8176         "deleted_debug_label".
8177         (rs6000_output_mi_thunk): Likewise for local "insn".
8178         (rs6000_final_prescan_insn): Likewise for param "insn".
8180 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8182         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
8183         Strengthen param "insn" from rtx to rtx_insn *.
8184         * config/picochip/picochip.c (picochip_current_prescan_insn):
8185         Likewise for this variable.
8186         (picochip_final_prescan_insn): Likewise for param "insn".
8188 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8190         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
8191         from rtx to rtx_insn *.
8192         (pa_output_indirect_call): Likewise.
8193         (pa_adjust_insn_length): Likewise.
8194         (pa_attr_length_millicode_call): Likewise.
8195         (pa_attr_length_call): Likewise.
8196         (pa_attr_length_indirect_call): Likewise.
8198         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
8199         "insn".
8200         (pa_attr_length_millicode_call): Likewise.
8201         (pa_attr_length_call): Likewise.
8202         (pa_output_call): Likewise.
8203         (pa_attr_length_indirect_call): Likewise.
8204         (pa_output_indirect_call): Likewise.
8206 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8208         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8209         Strengthen first param from rtx to rtx_insn *.
8210         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8211         param "insn".
8213 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8215         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8216         type from rtx to rtx_insn *.
8217         (mips_expand_call): Likewise.
8218         (mips_adjust_insn_length): Likewise for first param.
8219         (mips_output_conditional_branch): Likewise.
8220         (mips_output_order_conditional_branch): Likewise.
8221         (mips_final_prescan_insn): Likewise.
8223         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8224         rtx_insn * for the SEQUENCE case.
8225         (SEQ_END): Likewise.
8226         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8227         (mips_emit_call_insn): Likewise, also for local "insn".
8228         (mips16_gp_pseudo_reg): Likewise for local "scan".
8229         (mips16_build_call_stub): Likewise for return type and for local
8230         "insn".  Introduce a new local "pattern" so that "insn" can indeed
8231         be an insn.
8232         (mips_expand_call): Strengthen return type and local "insn" from
8233         rtx to rtx_insn *.
8234         (mips_block_move_loop): Strengthen local "label" from rtx to
8235         rtx_code_label *.
8236         (mips_expand_synci_loop): Likewise for locals "label",
8237         "end_label".
8238         (mips_set_frame_expr): Strengthen local "insn" from rtx to
8239         rtx_insn *.
8240         (mips16e_collect_argument_saves): Likewise for locals "insn",
8241         "next".
8242         (mips_find_gp_ref): Likewise for param of callback for "pred"
8243         param, and for local "insn".
8244         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
8245         (mips_insn_has_flexible_gp_ref_p): Likewise.
8246         (mips_epilogue_emit_cfa_restores): Likewise for return type and
8247         local "insn".
8248         (mips_epilogue_set_cfa): Likewise for local "insn".
8249         (mips_expand_epilogue): Likewise.
8250         (mips_adjust_insn_length): Likewise for param "insn".
8251         (mips_output_conditional_branch): Likewise.
8252         (mips_output_order_conditional_branch): Likewise.
8253         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
8254         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
8255         "falu2_turn_enabled_insn".
8256         (mips_builtin_branch_and_move): Strengthen locals "true_label",
8257         "done_label" from rtx to rtx_code_label *.
8258         (struct mips16_constant): Likewise for field "label".
8259         (mips16_add_constant): Likewise for return type.
8260         (mips16_emit_constants_1): Strengthen return type and param "insn"
8261         from rtx to rtx_insn *.
8262         (mips16_emit_constants): Likewise for param "insn".
8263         (mips16_insn_length): Likewise.
8264         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
8265         to rtx_code_label *.
8266         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
8267         from rtx to rtx_insn *.
8268         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
8269         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
8270         (r10k_simplify_address): Strengthen param "insn" and local
8271         "def_insn" from rtx to rtx_insn *.
8272         (r10k_safe_address_p): Strengthen param "insn" from rtx to
8273         rtx_insn *.
8274         (r10k_needs_protection_p_1): Update target type of cast of data
8275         from to rtx to rtx_insn *.
8276         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
8277         rtx * to rtx_insn **.
8278         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
8279         rtx_insn *.
8280         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
8281         (mips_call_expr_from_insn): Likewise for param "insn".
8282         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
8283         (mips_find_pic_call_symbol): Likewise for param "insn".
8284         (mips_annotate_pic_calls): Likewise for local "insn".
8285         (mips_sim_insn): Likewise for this variable.
8286         (struct mips_sim): Likewise for field "insn" within elements of
8287         last_set array.
8288         (mips_sim_wait_reg): Likewise for param "insn".
8289         (mips_sim_wait_regs): Likewise.
8290         (mips_sim_wait_units): Likewise.
8291         (mips_sim_wait_insn): Likewise.
8292         (mips_sim_issue_insn): Likewise.
8293         (mips_sim_finish_insn): Likewise.
8294         (mips_seq_time): Likewise for param "seq" and local "insn".
8295         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
8296         locals "first", "second".
8297         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
8298         "last", "last2", "next".
8299         (mips_avoid_hazard): Likewise for params "after", "insn".
8300         (mips_reorg_process_insns): Likewise for locals "insn",
8301         "last_insn", "subinsn", "next_insn".
8302         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
8303         (mips16_split_long_branches): Likewise for locals "insn" "jump",
8304         "jump_sequence".
8305         (mips_output_mi_thunk): Likewise for local "insn".
8306         (mips_final_prescan_insn): Likewise for param "insn".
8308 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8310         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
8311         Strengthen return type and local "insns" from rtx to rtx_insn *.
8312         (microblaze_legitimize_tls_address): Likewise for local "insns".
8313         (microblaze_block_move_loop): Strengthen local "label" from rtx
8314         to rtx_code_label *.
8315         (microblaze_expand_prologue): Strengthen two locals named "insn"
8316         from rtx to rtx_insn *.
8317         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
8318         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
8319         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
8320         to rtx_code_label *.
8322 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8324         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
8325         param from rtx to rtx_insn *.
8326         (mep_reuse_lo): Likewise for third param.
8327         (mep_use_post_modify_p): Likewise for first param.
8328         (mep_core_address_length): Likewise.
8329         (mep_cop_address_length): Likewise.
8330         (mep_final_prescan_insn): Likewise.
8331         (mep_store_data_bypass_p): Likewise for both params.
8332         (mep_mul_hilo_bypass_p): Likewise.
8333         (mep_ipipe_ldc_p): Likewise for param.
8335         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
8336         (mep_rewrite_mult): Likewise.
8337         (mep_rewrite_mulsi3): Likewise.
8338         (mep_rewrite_maddsi3): Likewise.
8339         (mep_reuse_lo_p_1): Likewise.
8340         (mep_reuse_lo_p): Likewise.
8341         (mep_frame_expr): Likewise.
8342         (mep_make_parallel): Likewise for both params.
8343         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
8344         local "insn".
8345         (mep_use_post_modify_p): Likewise for param "insn".
8346         (mep_core_address_length): Likewise.
8347         (mep_cop_address_length): Likewise.
8348         (mep_reg_set_in_function): Likewise for local "insn".
8349         (mep_asm_without_operands_p): Likewise.
8350         (F): Likewise for return type and param "x".
8351         (add_constant): Likewise for local "insn".
8352         (maybe_dead_move): Likewise for return type and local "insn".
8353         (mep_expand_prologue): Likewise for local "insn".
8354         (mep_final_prescan_insn): Likewise for param "insn".
8355         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
8356         "next", "follow", "x".
8357         (mep_insert_repeat_label_last): Likewise for return type, param
8358         "last_insn", and locals "next", "prev".  Strengthen param "label"
8359         from rtx to rtx_code_label *.
8360         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
8361         rtx_insn *.
8362         (struct mep_doloop_end): Likewise for fields "insn" and
8363         "fallthrough".
8364         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
8365         Strengthen local "repeat_label" from rtx to rtx_code_label *.
8366         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
8367         rtx_insn *.
8368         (mep_invert_branch): Likewise for params "insn" and "after".
8369         (mep_reorg_erepeat): Likewise for param "insns" and locals
8370         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
8371         "l" from rtx to rtx_code_label *.
8372         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
8373         from rtx to rtx_insn *.
8374         (mep_reorg_addcombine): Likewise for param "insns" and locals
8375         "i", "n".
8376         (add_sp_insn_p): Likewise for param "insn".
8377         (mep_reorg_noframe): Likewise for param "insns" and locals
8378         "start_frame_insn", "end_frame_insn", "next".
8379         (mep_reorg): Likewise for local "insns".
8380         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
8381         cast.
8382         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
8383         (mep_mul_hilo_bypass_p): Likewise.
8384         (mep_ipipe_ldc_p): Likewise for param "insn".
8385         (mep_make_bundle): Likewise for return type, param "cop" and local
8386         "insn", splitting out the latter into a new local "seq" for when it
8387         is a SEQUENCE rather than an insn.
8388         (core_insn_p): Likewise for param "insn".
8389         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
8390         "last", "first", "note", "prev", "core_insn".
8392 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8394         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
8395         rtx to rtx_insn *.
8396         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
8397         (m68k_final_prescan_insn): Likewise for first param.
8399         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
8400         (m68k_set_frame_related): Likewise for param "insn".
8401         (output_btst): Likewise for param "insn".
8402         (m68k_final_prescan_insn): Likewise.
8403         (m68k_move_to_reg): Likewise for local "insn".
8404         (m68k_call_tls_get_addr): Likewise for local "insns".
8405         (m68k_call_m68k_read_tp): Likewise.
8406         (strict_low_part_peephole_ok): Likewise for param "first_insn".
8407         (m68k_output_mi_thunk): Likewise for local "insn".
8409 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8411         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
8412         first param from rtx to rtx_insn *.
8413         (iq2000_adjust_insn_length): Likewise.
8414         (iq2000_output_conditional_branch): Likewise.
8415         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
8416         "insn" and local "nop_insn".
8417         (iq2000_annotate_frame_insn): Likewise for param "insn".
8418         (iq2000_expand_prologue): Likewise for both locals "insn".
8419         (iq2000_adjust_insn_length): Likewise for param "insn".
8420         (iq2000_output_conditional_branch): Likewise.
8422 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8424         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
8425         "insns" from rtx to rtx_insn *.
8426         (ia64_emit_cond_move): Likewise for locals "insn", "first".
8427         (struct spill_fill_data): Likewise for field "init_after" and for
8428         elements of array field "prev_insn".
8429         (spill_restore_mem): Likewise for locals "insn", "first".
8430         (do_spill): Likewise for local "insn".
8431         (do_restore): Likewise.
8432         (ia64_expand_prologue): Likewise.
8433         (ia64_expand_epilogue): Likewise.
8434         (emit_insn_group_barriers): Likewise for locals "insn",
8435         "last_label".
8436         (emit_all_insn_group_barriers): Likewise for locals "insn",
8437         "last".
8438         (dfa_stop_insn): Likewise for this global.
8439         (dfa_pre_cycle_insn): Likewise.
8440         (ia64_nop): Likewise.
8441         (final_emit_insn_group_barriers): Likewise for locals "insn",
8442         "last".
8443         (emit_predicate_relation_info): Likewise for locals "head", "n",
8444         "insn", "b", "a".
8445         (ia64_reorg): Likewise for local "insn".
8446         (ia64_output_mi_thunk): Likewise.
8447         (expand_vec_perm_interleave_2): Likewise for local "seq".
8449 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8451         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
8452         param 1 "insn" from rtx to rtx_insn *.
8453         (ix86_use_lea_for_mov): Likewise.
8454         (ix86_avoid_lea_for_addr): Likewise.
8455         (ix86_split_lea_for_addr): Likewise.
8456         (ix86_lea_for_add_ok): Likewise.
8457         (ix86_output_call_insn): Likewise.
8459         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
8460         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
8461         (ix86_output_function_epilogue): Likewise for locals "insn",
8462         "deleted_debug_label".
8463         (legitimize_tls_address): Likewise for local "insn".
8464         (get_some_local_dynamic_name): Likewise.
8465         (increase_distance): Likewise for params "prev", "next".
8466         (distance_non_agu_define_in_bb): Likewise for params "insn",
8467         "start" and locals "prev", "next".
8468         (distance_non_agu_define): Likewise for param "insn".
8469         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
8470         locals "next", "prev".
8471         (distance_agu_use): Likewise for param "insn".
8472         (ix86_lea_outperforms): Likewise.
8473         (ix86_ok_to_clobber_flags): Likewise.
8474         (ix86_avoid_lea_for_add): Likewise.
8475         (ix86_use_lea_for_mov): Likewise.
8476         (ix86_avoid_lea_for_addr): Likewise.
8477         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
8478         (ix86_split_lea_for_addr): Likewise for param "insn".
8479         (ix86_lea_for_add_ok): Likewise for param "insn".
8480         (ix86_expand_carry_flag_compare): Likewise for local
8481         "compare_seq".
8482         (ix86_expand_int_movcc): Likewise.
8483         (ix86_output_call_insn): Likewise for param "insn".
8484         (ix86_output_call_insn): Likewise for local "i".
8485         (x86_output_mi_thunk): Introduce local "insn", using it in place
8486         of "tmp" when dealing with insns.
8487         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
8488         "start".
8489         (ix86_pad_returns): Likewise for locals "ret", "prev".
8490         (ix86_count_insn_bb): Likewise for local "insn".
8491         (ix86_pad_short_function): Likewise for locals "ret", "insn".
8492         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
8493         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
8494         (expand_vec_perm_interleave2): Likewise for local "seq".
8495         (expand_vec_perm_vperm2f128_vblend): Likewise.
8496         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
8497         call to for_each_rtx with for_each_rtx_in_insn.
8499 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8501         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
8502         "label" from rtx to rtx_code_label *.
8503         (ix86_expand_prologue): Likewise.
8504         (ix86_expand_split_stack_prologue): Likewise for locals "label",
8505         "varargs_label".
8506         (ix86_split_idivmod): Likewise for locals "end_label" and
8507         "qimode_label".
8508         (ix86_expand_branch): Likewise for local "label2".
8509         (ix86_expand_aligntest): Likewise for return type and local "label".
8510         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
8511         "top_label".
8512         (expand_movmem_epilogue): Likewise for the various locals named
8513         "label".
8514         (expand_setmem_epilogue): Likewise.
8515         (expand_small_movmem_or_setmem): Likewise for local "label".
8516         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8517         Strengthen param "done_label" from rtx * to rtx_code_label **.
8518         Strengthen locals "loop_label" and "label" from rtx to
8519         rtx_code_label *.
8520         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8521         Likewise for locals "loop_label", "label".
8522         (ix86_expand_set_or_movmem): Likewise for locals "label",
8523         "jump_around_label", "hot_label".
8524         (ix86_expand_strlensi_unroll_1): Likewise for locals
8525         "align_2_label", align_3_label", "align_4_label", "end_0_label",
8526         "end_2_label".
8527         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
8528         (void ix86_emit_i387_log1p): Likewise for locals "label1",
8529         "label2", "jump_label".
8530         (ix86_expand_sse_compare_and_jump): Likewise for return type and
8531         local "label".
8532         (ix86_expand_lfloorceil): Likewise for local "label".
8533         (ix86_expand_rint): Likewise.
8534         (ix86_expand_floorceildf_32): Likewise.
8535         (ix86_expand_floorceil): Likewise.
8536         (ix86_expand_rounddf_32): Likewise.
8537         (ix86_expand_trunc): Likewise.
8538         (ix86_expand_truncdf_32): Likewise.
8539         (ix86_expand_round): Likewise.
8541 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8543         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
8544         first param from rtx to rtx_insn *.
8545         (h8300_insn_length_from_table): Likewise.
8546         * config/h8300/h8300.c (F): Likewise for return type and param
8547         "x".
8548         (Fpa): Add a checked cast to rtx_insn *.
8549         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
8550         rtx_insn *.
8551         (final_prescan_insn): Likewise for param "insn".
8552         (h8300_binary_length): Likewise.
8553         (h8300_insn_length_from_table): Likewise.
8555 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8557         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
8558         Strengthen first param "insn" from rtx to rtx_insn *.
8560         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
8561         Likewise.
8562         (frame_insn): Likewise for return type.  Introduce local "insn"
8563         for use in place of local "x" for use as an rtx_insn *.
8564         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
8565         (epiphany_expand_prologue): Likewise for local "insn".
8566         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
8567         * config/epiphany/resolve-sw-modes.c
8568         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
8569         "seq".
8571 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8573         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
8574         param from rtx to rtx_insn *.
8575         (c6x_final_prescan_insn): Likewise for first param.
8577         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
8578         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
8579         (c6x_expand_compare): Strengthen local "insns" from rtx to
8580         rtx_insn *.
8581         (c6x_get_unit_specifier): Likewise for param "insn".
8582         (c6x_print_unit_specifier_field): Likewise.
8583         (c6x_final_prescan_insn): Likewise.
8584         (emit_add_sp_const): Likewise for local "insn".
8585         (c6x_expand_prologue): Likewise.
8587 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8589         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
8590         param 1 from rtx to rtx_insn *.
8591         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
8592         the various locals named "insn".
8593         (expand_epilogue_reg_restore): Likewise.
8594         (frame_related_constant_load): Likewise.
8595         (add_to_reg): Likewise.
8596         (emit_link_insn): Likewise.
8597         (do_link): Likewise.
8598         (expand_interrupt_handler_prologue): Likewise.
8599         (branch_dest): Likewise for param "branch".
8600         (asm_conditional_branch): Likewise for param "insn".
8601         (gen_one_bundle): Likewise for elements of param "slot" and local
8602         "t".
8603         (bfin_gen_bundles): Likewise for locals "insn", "next" and
8604         elements of local "slot".
8605         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8606         "queue", "next_queue", "prev".
8607         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
8608         (add_sched_insns_for_speculation): Likewise for local "insn".
8610 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8612         * config/avr/avr-protos.h (output_movqi): Strengthen first param
8613         from rtx to rtx_insn *.
8614         (output_movhi): Likewise.
8615         (output_movsisf): Likewise.
8616         (avr_out_tstsi): Likewise.
8617         (avr_out_tsthi): Likewise.
8618         (avr_out_tstpsi): Likewise.
8619         (avr_out_compare): Likewise.
8620         (avr_out_compare64): Likewise.
8621         (avr_out_movpsi): Likewise.
8622         (ashlqi3_out): Likewise.
8623         (ashlhi3_out): Likewise.
8624         (ashlsi3_out): Likewise.
8625         (ashrqi3_out): Likewise.
8626         (ashrhi3_out): Likewise.
8627         (ashrsi3_out): Likewise.
8628         (lshrqi3_out): Likewise.
8629         (lshrhi3_out): Likewise.
8630         (lshrsi3_out): Likewise.
8631         (avr_out_ashlpsi3): Likewise.
8632         (avr_out_ashrpsi3): Likewise.
8633         (avr_out_lshrpsi3): Likewise.
8634         (avr_out_fract): Likewise.
8635         (avr_out_sbxx_branch): Likewise.
8636         (avr_out_round): Likewise.
8637         (avr_out_xload): Likewise.
8638         (avr_out_movmem): Likewise.
8639         (adjust_insn_length): Likewise.
8640         (avr_out_lpm): Likewise.
8641         (reg_unused_after): Likewise.
8642         (_reg_unused_after): Likewise.
8643         (avr_jump_mode): Likewise for second param.
8644         (jump_over_one_insn): Likewise for first param.
8645         (avr_final_prescan_insn): Likewise.
8646         (out_shift_with_cnt): Likewise for second param.
8648         * config/avr/avr.c (get_sequence_length): Likewise for param
8649         "insns" and local "insn".
8650         (emit_push_byte): Likewise for local "insn".
8651         (emit_push_sfr): Likewise.
8652         (avr_prologue_setup_frame): Likewise for locals "insn",
8653         "fp_plus_insns", "sp_plus_insns".
8654         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
8655         "sp_plus_insns".
8656         (avr_jump_mode): Likewise for param "insn".
8657         (avr_final_prescan_insn): Likewise.
8658         (avr_find_unused_d_reg): Likewise.
8659         (avr_out_lpm_no_lpmx): Likewise.
8660         (avr_out_lpm): Likewise.
8661         (avr_out_xload): Likewise.
8662         (output_movqi): Likewise.
8663         (output_movhi): Likewise.
8664         (out_movqi_r_mr): Likewise.
8665         (out_movhi_r_mr): Likewise.
8666         (out_movsi_r_mr): Likewise.
8667         (out_movsi_mr_r): Likewise.
8668         (output_movsisf): Likewise.
8669         (avr_out_load_psi): Likewise.
8670         (avr_out_store_psi): Likewise.
8671         (avr_out_movpsi): Likewise.
8672         (out_movqi_mr_r): Likewise.
8673         (avr_out_movhi_mr_r_xmega): Likewise.
8674         (out_movhi_mr_r): Likewise.
8675         (compare_condition): Likewise for param "insn" and local "next".
8676         (compare_sign_p): Likewise for param "insn".
8677         (compare_diff_p): Likewise.
8678         (compare_eq_p): Likewise.
8679         (avr_out_compare): Likewise.
8680         (avr_out_compare64): Likewise.
8681         (avr_out_tsthi): Likewise.
8682         (avr_out_tstpsi): Likewise.
8683         (avr_out_tstsi): Likewise.
8684         (out_shift_with_cnt): Likewise.
8685         (ashlqi3_out): Likewise.
8686         (ashlhi3_out): Likewise.
8687         (avr_out_ashlpsi3): Likewise.
8688         (ashlsi3_out): Likewise.
8689         (ashrqi3_out): Likewise.
8690         (ashrhi3_out): Likewise.
8691         (avr_out_ashrpsi3): Likewise.
8692         (ashrsi3_out): Likewise.
8693         (lshrqi3_out): Likewise.
8694         (lshrhi3_out): Likewise.
8695         (avr_out_lshrpsi3): Likewise.
8696         (lshrsi3_out): Likewise.
8697         (avr_out_fract): Likewise.
8698         (avr_out_round): Likewise.
8699         (avr_adjust_insn_length): Likewise.
8700         (reg_unused_after): Likewise.
8701         (_reg_unused_after): Likewise.
8702         (avr_compare_pattern): Likewise.
8703         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
8704         and locals "branch1", "branch2", "insn2", "jump".
8705         (avr_reorg): Likewise for local "insn".
8706         (avr_2word_insn_p): Likewise for param "insn".
8707         (jump_over_one_insn_p): Likewise.
8708         (avr_out_sbxx_branch): Likewise.
8709         (avr_out_movmem): Likewise.
8711 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8713         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
8714         param from rtx to rtx_insn *.
8715         (thumb1_final_prescan_insn): Likewise.
8716         (thumb2_final_prescan_insn): Likewise.
8718         * config/arm/arm.c (emit_set_insn): Strengthen return type from
8719         rtx to rtx_insn *.
8720         (struct minipool_node): Likewise for field "insn".
8721         (dump_minipool): Likewise for param "scan".
8722         (create_fix_barrier): Likewise for local "from".  Strengthen local
8723         "label" from rtx to rtx_code_label *.
8724         (push_minipool_barrier): Strengthen param "insn" from rtx to
8725         rtx_insn *.
8726         (push_minipool_fix): Likewise.
8727         (note_invalid_constants): Likewise.
8728         (thumb2_reorg): Likewise for local "insn".
8729         (arm_reorg): Likewise.
8730         (thumb2_final_prescan_insn): Likewise for param
8731         "insn" and local "first_insn".
8732         (arm_final_prescan_insn): Likewise for param "insn" and locals
8733         "start_insn", "this_insn".
8734         (arm_debugger_arg_offset): Likewise for param "insn".
8735         (thumb1_emit_multi_reg_push): Likewise for return type and local
8736         "insn".
8737         (thumb1_final_prescan_insn): Likewise for param "insn".
8738         (thumb_far_jump_used_p): Likewise for local "insn".
8739         (thumb1_expand_prologue): Likewise.
8740         (arm_expand_epilogue_apcs_frame): Likewise.
8741         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
8742         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
8743         from rtx to rtx_code_label *.
8744         (arm_split_atomic_op): Likewise for local "label".
8745         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
8747 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8749         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
8750         first param from rtx to rtx_insn *.
8751         (arc_verify_short): Likewise.
8752         (arc_short_long): Likewise.
8753         (arc_need_delay): Likewise.
8755         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
8756         "target_insn".
8757         (arc_ccfsm_advance): Likewise for param "insn" and locals
8758         "start_insn", "this_insn".
8759         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
8760         (arc_ccfsm_post_advance): Likewise for param "insn".
8761         (arc_next_active_insn): Likewise for return type and param "insn".
8762         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
8763         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
8764         (output_short_suffix): Likewise for local "insn".
8765         (arc_final_prescan_insn): Likewise for param "insn".  Remove
8766         now-redundant checked cast.
8767         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
8768         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
8769         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
8770         for use where lc_set became an insn.
8771         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
8772         rtx to rtx_insn *.
8773         (arc_get_insn_variants): Likewise for local "prev".
8774         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
8775         "next".
8776         (arc_predicate_delay_insns): Likewise for local "insn".
8777         (arc_pad_return): Likewise for local "prev".  For now, add a
8778         checked cast when extracting the insn from "final_sequence".
8779         (arc_short_long): Likewise for param "insn".
8780         (arc_need_delay): Likewise for param "insn" and local "next".
8781         (arc_label_align): Likewise for locals "prev", "next".
8783 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8785         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
8786         "insn" from rtx to rtx_insn *.
8787         (alpha_gp_save_rtx): Likewise for local "seq".
8788         (alpha_instantiate_decls): Likewise for local "top".
8789         (get_some_local_dynamic_name): Likewise for local "insn".
8790         (alpha_does_function_need_gp): Likewise.
8791         (set_frame_related_p): Likewise for return type and for locals
8792         "seq" and "insn".
8793         (emit_frame_store_1): Likewise for local "insn".
8794         (alpha_expand_prologue): Likewise for locals "insn", "seq".
8795         (alpha_end_function): Likewise for local "insn".
8796         (alpha_output_mi_thunk_osf): Likewise.
8797         (alphaev4_insn_pipe): Likewise for param "insn".
8798         (alphaev5_insn_pipe): Likewise.
8799         (alphaev4_next_group): Likewise for return type and param 1
8800         "insn".
8801         (alphaev5_next_group): Likewise.
8802         (alpha_align_insns_1): Likewise for return type and param 1 of
8803         callback param "next_group", and for locals "i", "next", "prev",
8804         "where", "where2", "insn".
8806 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8808         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
8809         rather than modifying the stmt.
8811 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8813         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
8814         cgraph_state conversion.
8816 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8818         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8819         Strengthen local "insns" from rtx to rtx_insn *.
8820         (aarch64_set_frame_expr): Likewise for local "insn".
8821         (aarch64_save_or_restore_fprs): Likewise.
8822         (aarch64_save_or_restore_callee_save_registers): Likewise.
8823         (aarch64_expand_prologue): Likewise.
8824         (aarch64_expand_epilogue): Likewise.
8825         (aarch64_output_mi_thunk): Likewise.
8826         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
8827         "label2" from rtx to rtx_code_label *.
8828         (aarch64_split_atomic_op): Likewise for local "label".
8830 2014-08-25  Martin Liska  <mliska@suse.cz>
8832         * cgraph.h (symtab_node):
8833         (bool needed_p (void)): created from decide_is_symbol_needed
8834         (bool referred_to_p (void)): created from referred_to_p
8835         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
8836         * cgraph.h (cgraph_node):
8837         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
8838         (void expand (void)): created from expand_function
8839         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
8840         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
8841         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
8842         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
8843         * cgraph.h (varpool_node):
8844         (static void add (tree decl): created from varpool_add_new_variable
8845         * cgraph.h (cgraph_edge):
8846         void remove (void);
8847         (void remove_caller (void)): created from cgraph_edge_remove_caller
8848         (void remove_callee (void)): created from cgraph_edge_remove_callee
8849         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
8850           created from cgraph_set_call_stmt
8851         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
8852         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
8853         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
8854           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
8855         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
8856           created from cgraph_speculative_call_info
8857         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
8858           int freq_scale, bool update_original)): created from cgraph_clone_edge
8859         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
8860         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
8861         (bool recursive_p (void)): created from cgraph_edge_recursive_p
8862         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
8863         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
8864         (static void rebuild_references (void)): created from cgraph_rebuild_references
8865         * cgraph.h (symbol_table):
8866         (create_reference): renamed from add_reference
8867         (maybe_create_reference): renamed from maybe_add_reference
8868         (void register_symbol (symtab_node *node)): new function
8869         (void clear_asm_symbols (void)): new function
8870         (void unregister (symtab_node *node)): new function
8871         (void release_symbol (cgraph_node *node, int uid)): new function
8872         (cgraph_node * allocate_cgraph_symbol (void)): new function
8873         (void initialize (void)): created from cgraph_init
8874         (symtab_node *first_symbol (void)):new function
8875         (asm_node *first_asm_symbol (void)):new function
8876         (symtab_node *first_defined_symbol (void)):new function
8877         (varpool_node *first_variable (void)):new function
8878         (varpool_node *next_variable (varpool_node *node)):new function
8879         (varpool_node *first_static_initializer (void)):new function
8880         (varpool_node *next_static_initializer (varpool_node *node)):new function
8881         (varpool_node *first_defined_variable (void)):new function
8882         (varpool_node *next_defined_variable (varpool_node *node)):new function
8883         (cgraph_node *first_defined_function (void)):new function
8884         (cgraph_node *next_defined_function (cgraph_node *node)):new function
8885         (cgraph_node *first_function (void)):new function
8886         (cgraph_node *next_function (cgraph_node *node)):new function
8887         (cgraph_node *first_function_with_gimple_body (void)):new function
8888         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
8889         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
8890           created from symtab_remove_unreachable_nodes
8891         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
8892         (void process_new_functions (void)): created from cgraph_process_new_functions
8893         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
8894         (bool output_variables (void)): created from varpool_node::output_variables
8895         (void output_asm_statements (void)): created from output_asm_statements
8896         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
8897         (void compile (void)): created from compile
8898         (void output_weakrefs (void)): created from output_weakrefs
8899         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
8900         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
8901           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
8902         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
8903         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
8904           created from cgraph_next_function_with_gimple_body
8905         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
8906           created from cgraph_remove_edge_removal_hook
8907         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
8908           created from cgraph_add_node_removal_hook
8909         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
8910           created from cgraph_remove_node_removal_hook
8911         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
8912           created from varpool_add_node_removal_hook
8913         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
8914           created from varpool_remove_node_removal_hook
8915         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
8916           created from cgraph_add_function_insertion_hook
8917         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
8918           created from cgraph_remove_function_insertion_hook
8919         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
8920           created from varpool_add_variable_insertion_hook
8921         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
8922           created from varpool_remove_variable_insertion_hook
8923         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
8924           created from cgraph_add_edge_duplication_hook
8925         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
8926           created from cgraph_remove_edge_duplication_hook
8927         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
8928           created from cgraph_add_node_duplication_hook
8929         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
8930           created from cgraph_remove_node_duplication_hook
8931         (void call_edge_removal_hooks (cgraph_edge *e)):
8932           created from cgraph_call_edge_removal_hooks
8933         (void call_cgraph_insertion_hooks (cgraph_node *node)):
8934           created from call_function_insertion_hooks 
8935         (void call_cgraph_removal_hooks (cgraph_node *node)):
8936           created from cgraph_call_node_removal_hooks 
8937         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
8938           created from cgraph_node::call_duplication_hooks 
8939         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
8940           created from cgraph_call_edge_duplication_hooks
8941         (void call_varpool_removal_hooks (varpool_node *node)):
8942           created from varpool_call_node_removal_hooks
8943         (void call_varpool_insertion_hooks (varpool_node *node)):
8944           created from varpool_call_variable_insertion_hooks
8945         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
8946           created from insert_to_assembler_name_hash
8947         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
8948           created from unlink_from_assembler_name_hash
8949         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
8950           created from symtab_prevail_in_asm_name_hash
8951         (void symtab_initialize_asm_name_hash (void)):
8952           created from symtab_initialize_asm_name_hash
8953         (void change_decl_assembler_name (tree decl, tree name)):
8954           created from change_decl_assembler_name
8955         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
8956         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
8957           created from decl_assembler_name_hash
8958         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
8959           created from decl_assembler_name_equal
8960         (static hashval_t hash_node_by_assembler_name (const void *p)):
8961           created from hash_node_by_assembler_name
8962         (static int eq_assembler_name (const void *p1, const void *p2)):
8963           created from eq_assembler_name
8965 2014-08-25  Marek Polacek  <polacek@redhat.com>
8967         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
8969 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
8971         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
8972         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
8973         SWI1248_AVX512BW mode iterator.
8975 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
8977         PR target/62111
8978         * config/sh/predicates.md (general_extend_operand): Disable
8979         TRUNCATE before reload completes.
8981 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
8983         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
8985 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
8987         PR target/61996
8988         * config/sh/sh.opt (musermode): Allow negative form.
8989         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
8990         targets that don't support it.
8991         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
8992         Document -mno-usermode option.
8994 2014-08-24  Kito Cheng  <kito@0xlab.org>
8996         * system.h (CALLER_SAVE_PROFITABLE): Poison.
8997         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
8998         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
8999         * doc/tm.texi: Regenerate.
9001 2014-08-24  Kito Cheng  <kito@0xlab.org>
9003         * ira.c: Fix typo in comment.
9005 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
9007         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
9008         Deprecate c++1y. Change language to reflect greater confidence in C++14.
9010 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
9012         PR target/62038
9013         * config/pa/pa.c (pa_output_function_epilogue): Don't set
9014         last_address when the current function is a thunk.
9015         (pa_asm_output_mi_thunk): When we don't have named sections or they
9016         are not being used, check that thunk can reach the stub table with a
9017         short branch.
9019 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9021         * web.c (union_match_dups): Strengthen param "insn" from rtx to
9022         rtx_insn *.
9023         (pass_web::execute): Likewise for local "insn".
9025 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9027         * var-tracking.c (struct micro_operation_def): Strengthen field
9028         "insn" from rtx to rtx_insn *.
9029         (struct emit_note_data_def): Likewise.
9030         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
9031         (vt_stack_adjustments): Likewise for local "insn".
9032         (adjust_insn): Likewise for param "insn".
9033         (val_store): Likewise.
9034         (val_resolve): Likewise.
9035         (struct count_use_info): Likewise for field "insn".
9036         (log_op_type): Likewise for param "insn".
9037         (reverse_op): Likewise.
9038         (prepare_call_arguments): Likewise.
9039         (add_with_sets):  The initial param takes an insn, but we can't
9040         yet strengthen it from rtx to rtx_insn * since it's used as a
9041         cselib_record_sets_hook callback.  For now rename initial param
9042         from "insn" to "uncast_insn", and introduce a local "insn" of
9043         the stronger rtx_insn * type, with a checked cast.
9044         (compute_bb_dataflow): Strengthen local "insn" from rtx to
9045         rtx_insn *.
9046         (emit_note_insn_var_location): Likewise.
9047         (emit_notes_for_changes): Likewise.
9048         (emit_notes_for_differences): Likewise.
9049         (next_non_note_insn_var_location): Likewise for return type and
9050         for param "insn".
9051         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
9052         (vt_initialize): Likewise for local "insn".
9053         (delete_debug_insns): Likewise for locals "insn" and "next".
9055 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9057         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
9058         rtx_insn *.
9059         (mark_constant_pool): Likewise for local "insn".
9061 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9063         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
9064         rtx to rtx_insn *.
9065         (dead_debug_promote_uses): Likewise.
9066         (dead_debug_insert_temp): Likewise.
9068 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9070         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
9071         from const_rtx to const rtx_insn *.
9072         (store_killed_after): Likewise.  Strengthen locals "last", "act"
9073         from rtx to rtx_insn *.
9074         (store_killed_before): Strengthen param "insn" from const_rtx to
9075         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
9076         (find_moveable_store): Strengthen param "insn" from rtx to
9077         rtx_insn *.
9078         (compute_store_table): Likewise for local "insn".
9079         (insert_insn_start_basic_block): Likewise for param "insn" and
9080         locals "prev", "before", "insn".
9081         (insert_store): For now, add a checked cast to rtx_insn * on the
9082         result of gen_move_insn.
9083         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
9084         to rtx_insn *.
9085         (replace_store_insn): Likewise.  For now, add a checked cast to
9086         rtx_insn * on the result of gen_move_insn.
9088 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9090         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
9091         rtx_insn *.
9092         (expand_sjlj_dispatch_table): Likewise.
9094 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9096         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
9097         "insn" from rtx to rtx_insn *.
9099 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9101         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
9102         "insn" from rtx to rtx_insn *.
9103         (dup_block_and_redirect): Likewise for param 3 "before".
9105         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
9106         from rtx to rtx_insn *.
9107         (move_insn_for_shrink_wrap): Likewise.
9108         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
9109         (dup_block_and_redirect): Likewise for param "before" and local
9110         "insn".
9111         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
9112         "end".
9113         (convert_to_simple_return): Likewise for local "start".
9115         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
9116         Strengthen local "insn" from rtx to rtx_insn *, for use when
9117         invoking requires_stack_frame_p.
9119 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9121         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
9122         rtx_insn *.
9123         (speculate_expr): Likewise for locals "orig_insn_rtx",
9124         "spec_insn_rtx".
9125         (eq_transformed_insns): Likewise for locals "i1", "i2".
9126         (check_for_new_jump): Likewise for return type and local "end".
9127         (find_new_jump): Likewise for return type and local "jump".
9128         (sel_split_edge): Likewise for local "jump".
9129         (sel_create_recovery_block): Likewise.
9130         (sel_redirect_edge_and_branch_force): Likewise.
9131         (sel_redirect_edge_and_branch): Likewise.
9133 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9135         * sel-sched.c (substitute_reg_in_expr): Strengthen local
9136         "new_insn" from rtx to rtx_insn *.
9137         (create_insn_rtx_with_rhs): Likewise for return type and for local
9138         "insn_rtx".
9139         (create_insn_rtx_with_lhs): Likewise.
9140         (create_speculation_check): Likewise for local "insn_rtx".
9141         (implicit_clobber_conflict_p): Likewise for local "insn".
9142         (get_expr_cost): Likewise.
9143         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
9144         (move_cond_jump): Likewise for locals "next", "prev", "link",
9145         "head", "from", "to".
9147 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9149         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
9150         "next" from rtx to rtx_insn *.
9151         (find_conditional_protection): Likewise for local "next".
9152         (is_conditionally_protected): Likewise for local "insn1".
9153         (is_pfree): Likewise for locals "insn1", "insn2".
9155 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9157         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
9158         from rtx to rtx_insn *.
9160         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
9161         locals "insn1", "insn2" from rtx to rtx_insn *.
9162         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
9163         locals "insn", "prev", "last_jump", "next_tail".
9164         (schedule_ebb): Likewise for params "head", "tail".
9165         (schedule_ebbs): Likewise for locals "tail", "head".
9167         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
9168         to rtx_insn on "last_insn" in one of the invocations of
9169         schedule_ebb.
9171 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9173         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
9174         "elem", "insn" from rtx to rtx_insn *.
9175         (change_spec_dep_to_hard): Likewise.
9176         (get_back_and_forw_lists): Likewise for local "con".
9177         (sd_add_dep): Likewise for locals "elem", "insn".
9178         (sd_resolve_dep): Likewise for locals "pro", "con".
9179         (sd_unresolve_dep): Likewise.
9180         (sd_delete_dep): Likewise.
9181         (chain_to_prev_insn): Likewise for local "pro".
9182         (find_inc): Likewise for locals "pro", "con".
9184 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9186         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
9187         to rtx_insn *.
9188         (reg_set_between_p): Strengthen local "insn" from const_rtx to
9189         const rtx_insn *.
9190         (modified_between_p): Strengthen local "insn" from rtx to
9191         rtx_insn *.
9192         (remove_reg_equal_equiv_notes_for_regno): Likewise.
9193         (keep_with_call_p): Strengthen local "i2" from const_rtx to
9194         const rtx_insn *.
9196 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9198         * resource.c (next_insn_no_annul): Strengthen local "next" from
9199         rtx to rtx_insn *.
9200         (mark_referenced_resources): Likewise for local "insn".
9202 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9204         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
9205         to rtx_insn *.
9206         (find_reloads): Likewise for param 1.
9207         (subst_reloads): Likewise for sole param.
9208         (find_equiv_reg): Likwise for param 2.
9209         (regno_clobbered_p): Likwise for param 2.
9210         (reload): Likewise for param 1.
9212         * caller-save.c (save_call_clobbered_regs): Strengthen local
9213         "insn" from rtx to rtx_insn *.
9214         (insert_one_insn): Likewise for local "insn".
9216         * reload.c (this_insn): Likewise for this global.
9217         (find_reloads): Likewise for param "insn".
9218         (find_reloads_toplev): Likewise.
9219         (find_reloads_address): Likewise.
9220         (subst_reg_equivs): Likewise.
9221         (update_auto_inc_notes): Likewise.
9222         (find_reloads_address_1): Likewise.
9223         (find_reloads_subreg_address): Likewise.
9224         (subst_reloads): Likewise.
9225         (find_equiv_reg): Likewise, also for local "p".
9226         (regno_clobbered_p): Likewise for param "insn".
9228         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
9229         array.
9230         (spill_reg_store): Likewise for the elements of this array.
9231         (remove_init_insns): Likewise for local "equiv_insn".
9232         (will_delete_init_insn_p): Likewise for param "insn".
9233         (reload): Likewise for param ""first" and local "insn".
9234         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
9235         rtx_insn *.
9236         (calculate_elim_costs_all_insns): Likewise.
9237         (delete_caller_save_insns): Likewise.
9238         (spill_failure): Likewise for param "insn".
9239         (delete_dead_insn): Likewise.
9240         (set_label_offsets): Likewise.
9241         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
9242         "prev_insn".
9243         (elimination_costs_in_insn): Likewise for param "insn".
9244         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
9245         when referring to an insn.
9246         (set_initial_label_offsets): Likewise.
9247         (set_offsets_for_label): Strengthen param "insn" from rtx to
9248         rtx_insn *.
9249         (init_eliminable_invariants): Likewise for param "first" and local
9250         "insn".
9251         (fixup_eh_region_note): Likewise for param "insn".
9252         (reload_as_needed): Likewise for locals "prev", "insn",
9253         "old_next", "old_prev", "next".
9254         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
9255         "last".
9256         (reload_inheritance_insn): Strengthen elements of this array from
9257         rtx to rtx_insn *.
9258         (failed_reload): Likewise for param "insn".
9259         (choose_reload_regs): Likewise for local "insn".  Replace use of
9260         NULL_RTX with NULL when referring to an insn.
9261         (input_reload_insns): Strengthen elements of this array from rtx
9262         to rtx_insn *.
9263         (other_input_address_reload_insns): Likewise for this global.
9264         (other_input_reload_insns): Likewise for this global.
9265         (input_address_reload_insns): Likwise for the elements of this
9266         array.
9267         (inpaddr_address_reload_insns): Likwise for the elements of this
9268         array.
9269         (output_reload_insns): Likewise for the elements of this array.
9270         (output_address_reload_insns): Likewise for the elements of this
9271         array.
9272         (outaddr_address_reload_insns): Likewise for the elements of this
9273         array.
9274         (operand_reload_insns): Likewise for this global.
9275         (other_operand_reload_insns): Likewise for this global.
9276         (other_output_reload_insns): Likewise for the elements of this
9277         array.
9278         (new_spill_reg_store): Likewise for the elements of this
9279         array.
9280         (emit_input_reload_insns): Likewise for locals "insn", "temp".
9281         Strengthen local "where" from rtx * to rtx_insn **.
9282         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
9283         from rtx to rtx_insn *.
9284         (do_input_reload): Likewise for local "insn".
9285         (do_output_reload): Likewise for local "insn".
9286         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
9287         (emit_insn_if_valid_for_reload): Likewise for return type and local
9288         "last".  Add checked cast to rtx_insn when returning "insn" since
9289         this has been through emit_insn.
9290         (gen_reload): Strengthen return type and locals "last", "insn", "set"
9291         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
9292         returning "insn" since it's been through
9293         emit_insn_if_valid_for_reload at this point.
9294         (delete_output_reload): Strengthen param "insn" and locals
9295         "output_reload_insn", "i2" from rtx to rtx_insn *.
9296         (delete_address_reloads): Likewise for params "dead_insn",
9297         "current_insn" and locals "prev", "next".
9298         (delete_address_reloads_1): Likewise for params "dead_insn",
9299         "current_insn" and locals "prev", "i2".
9300         (inc_for_reload): Likewise for locals "last", "add_insn".
9301         (add_auto_inc_notes): Strengthen param "insn" from rtx to
9302         rtx_insn *.
9304         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
9305         param of this duplicate of the prototype from reload.h
9307 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9309         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
9310         rtx to rtx_insn *.
9311         (regstat_bb_compute_calls_crossed): Likewise.
9313 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9315         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
9316         to rtx_insn *.
9317         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
9318         with an insn.
9319         (regrename_analyze): Strengthen local "insn" from rtx to
9320         rtx_insn *.
9321         (scan_rtx_reg): Likewise for param "insn".
9322         (scan_rtx_address): Likewise.
9323         (scan_rtx): Likewise.
9324         (restore_operands): Likewise.
9325         (record_out_operands): Likewise.
9326         (build_def_use): Likewise for local "insn".  Replace use of
9327         NULL_RTX with NULL when dealing with an insn.
9329 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9331         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
9332         * reginfo.c (reg_scan): Likewise, also for local "insn".
9333         (reg_scan_mark_refs): Likewise for param "insn".
9334         (init_subregs_of_mode): Likewise for local "insn".
9336 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9338         * regcprop.c (struct queued_debug_insn_change): Strengthen field
9339         "insn" from rtx to rtx_insn *.
9340         (replace_oldest_value_reg): Likewise for param "insn".
9341         (replace_oldest_value_addr): Likewise.
9342         (replace_oldest_value_mem): Likewise.
9343         (apply_debug_insn_changes): Likewise for local "last_insn".
9344         (copyprop_hardreg_forward_1): Likewise for local "insn".
9346 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9348         * reg-stack.c (next_flags_user): Strengthen return type and param
9349         "insn" from rtx to rtx_insn *.
9350         (straighten_stack): Likewise for param "insn".
9351         (check_asm_stack_operands): Likewise.
9352         (remove_regno_note): Likewise.
9353         (emit_pop_insn): Likewise for return type, param "insn", local
9354         "pop_insn".
9355         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
9356         "limit" from rtx to rtx_insn *.
9357         (swap_to_top): Likewise for param "insn".
9358         (move_for_stack_reg): Likewise.
9359         (move_nan_for_stack_reg): Likewise.
9360         (swap_rtx_condition): Likewise.
9361         (compare_for_stack_reg): Likewise.
9362         (subst_all_stack_regs_in_debug_insn): Likewise.
9363         (subst_stack_regs_pat): Likewise, and local "insn2".
9364         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
9365         rtx_insn *.
9366         (subst_stack_regs): Likewise.
9367         (change_stack): Likewise.
9368         (convert_regs_1): Likewise for locals "insn", "next".
9370 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9372         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
9373         rtx_insn *.
9374         (combine_set_extension): Likewise for param "curr_insn".
9375         (transform_ifelse): Likewise for param "def_insn".
9376         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
9377         from vec<rtx> * to vec<rtx_insn *> *.
9378         (is_cond_copy_insn): Likewise for param "insn".
9379         (struct ext_state): Strengthen the four vec fields from vec<rtx>
9380         to vec<rtx_insn *>.
9381         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
9382         local "def_insn" from rtx to rtx_insn *.
9383         (get_sub_rtx): Likewise for param "def_insn".
9384         (merge_def_and_ext): Likewise.
9385         (combine_reaching_defs): Likewise.
9386         (add_removable_extension): Likewise for param "insn".
9387         (find_removable_extensions): Likewise for local "insn".
9388         (find_and_remove_re): Likewise for locals "curr_insn" and
9389         "def_insn".  Strengthen locals "reinsn_del_list" and
9390         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
9392 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9394         * recog.c (split_insn): Strengthen param "insn" and locals
9395         "first", "last" from rtx to rtx_insn *.
9396         (split_all_insns): Likewise for locals "insn", "next".
9397         (split_all_insns_noflow): Likewise.
9399 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9401         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
9402         const rtx_insn *.
9403         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9404         (debug_rtx_find): Likewise for param 1 "x".
9406         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
9407         const_rtx to const rtx_insn *.  Likewise for local "insn".
9408         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9409         (debug_rtx_find): Likewise for param 1 "x".
9410         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
9411         from const_rtx to const rtx_insn * within the appropriate cases of
9412         the switch statement.
9414         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
9415         Strengthen local "insns" from rtx to rtx_insn * since this is
9416         passed to a call to debug_rtx_list.
9418 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9420         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
9421         to rtx_insn *.
9423         * function.c (stack_protect_epilogue): Add checked cast to
9424         rtx_insn for now when invoking predict_insn_def.
9426         * predict.c (predict_insn): Strengthen param "insn" from rtx to
9427         rtx_insn *.
9428         (predict_insn_def): Likewise.
9429         (rtl_predict_edge): Likewise for local "last_insn".
9430         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
9431         const rtx_insn *.
9432         (combine_predictions_for_insn): Strengthen param "insn" from rtx
9433         to rtx_insn *.
9434         (bb_estimate_probability_locally): Likewise for local "last_insn".
9435         (expensive_function_p): Likewise for local "insn".
9437         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
9438         local "jmp", since this is used when invoking predict_insn_def.
9440 2014-08-22  Marek Polacek  <polacek@redhat.com>
9442         PR c++/62199
9443         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
9445 2014-08-22  Marek Polacek  <polacek@redhat.com>
9447         PR c/61271
9448         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
9449         a comparison in parens.
9450         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
9451         in parens.
9453 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9455         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
9456         rtx_insn *.
9458         * cprop.c (fis_get_condition): Likewise.
9460         * postreload.c (reload_cse_regs): Likewise for param "first".
9461         (reload_cse_simplify): Likewise for param "insn".
9462         (reload_cse_regs_1): Likewise for local "insn".
9463         (reload_cse_simplify_set): Likewise for param "insn".
9464         (reload_cse_simplify_operands): Likewise.
9465         (struct reg_use): Likewise for field "insn".
9466         (reload_combine_purge_insn_uses): Likewise for param "insn".
9467         (fixup_debug_insns): Likewise for params "from", "to" and local
9468         "insn".
9469         (try_replace_in_use): Likewise for local "use_insn".
9470         (reload_combine_recognize_const_pattern): Likewise for param
9471         "insn" and locals "add_moved_after_insn", "use_insn".
9472         (reload_combine_recognize_pattern): Likewise for param "insn" and
9473         local "prev".
9474         (reload_combine): Likewise for locals "insn", "prev".
9475         (reload_combine_note_use): Likewise for param "insn".
9476         (move2add_use_add2_insn): Likewise.
9477         (move2add_use_add3_insn): Likewise.
9478         (reload_cse_move2add): Likewise, also for local "next".
9479         (move2add_note_store): Likewise for local "insn".
9481 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9483         * postreload-gcse.c (struct occr): Strengthen field "insn" from
9484         rtx to rtx_insn *.
9485         (struct unoccr): Likewise.
9486         (struct modifies_mem): Likewise.
9487         (alloc_mem): Likewise for local "insn".
9488         (insert_expr_in_table): Likewise for param "insn".
9489         (dump_expr_hash_table_entry): Likewise for local "insn".
9490         (oprs_unchanged_p): Likewise for param "insn".
9491         (load_killed_in_block_p): Likewise for local "setter".
9492         (record_last_reg_set_info): Likewise for param "insn".
9493         (record_last_reg_set_info_regno): Likewise.
9494         (record_last_mem_set_info): Likewise.
9495         (record_last_set_info): Likewise for local "last_set_insn".
9496         (record_opr_changes): Likewise for param "insn".
9497         (hash_scan_set): Likewise.
9498         (compute_hash_table): Likewise for local "insn".
9499         (get_avail_load_store_reg): Likewise for param "insn".
9500         (eliminate_partially_redundant_load): Likewise, also for locals
9501         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
9502         RTX for insns.
9503         (eliminate_partially_redundant_loads): Likewise for local "insn".
9505 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9507         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
9508         rtx to rtx_insn *.
9509         (expand_binop): Likewise for locals "entry_last", "last", "insns"
9510         (expand_twoval_unop): Likewise for locals entry_last", "last".
9511         (expand_twoval_binop): Likewise.
9512         (expand_twoval_binop_libfunc): Likewise for local "insns".
9513         (widen_leading): Likewise for local "last".
9514         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
9515         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
9516         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
9517         (expand_parity): Likewise for locals "last" and "seq".
9518         (expand_ffs): Likewise for local "seq".  Strengthen local
9519         "nonzero_label" from rtx to rtx_code_label *.
9520         (expand_absneg_bit): Strengthen local "insns" from rtx to
9521         rtx_insn *.
9522         (expand_unop_direct): Likewise for local "last".
9523         (expand_unop): Likewise for locals "last", "insns".
9524         (expand_abs_nojump): Likewise for local "last".
9525         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
9526         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
9527         rtx_insn *.
9528         (expand_copysign_absneg): Strengthen local "label" from rtx to
9529         rtx_code_label *.
9530         (expand_copysign_bit): Strengthen local "insns" from rtx to
9531         rtx_insn *.
9532         (struct no_conflict_data): Likewise for fields "first", "insn".
9533         (emit_libcall_block_1): Likewise for param "insns" and locals
9534         "next", "last", "insn".
9535         (emit_libcall_block): For now, add a checked cast to rtx_insn *
9536         on "insns" when invoking emit_libcall_block_1.  Ultimately we
9537         want to strengthen insns itself.
9538         (prepare_cmp_insn): Strengthen local "last" from rtx to
9539         rtx_insn *.
9540         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
9541         (prepare_float_lib_cmp): Likewise for local "insns".
9542         (emit_conditional_move): Likewise for local "last".
9543         (emit_conditional_add): Likewise.
9544         (have_sub2_insn): Likewise for local "seq".
9545         (expand_float): Likewise for local "insns".  Strengthen locals
9546         "label", "neglabel" from rtx to rtx_code_label *.
9547         (expand_fix): Likewise for locals "last", "insn", "insns" (to
9548         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
9549         (expand_fixed_convert): Likewise for local "insns" (to
9550         rtx_insn *).
9551         (expand_sfix_optab): Likewise for local "last".
9552         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
9553         to rtx_code_label *.
9554         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
9555         from rtx to rtx_insn *.
9556         (expand_atomic_fetch_op): Likewise for local "insn".
9557         (maybe_legitimize_operand_same_code): Likewise for local "last".
9558         (maybe_legitimize_operands): Likewise.
9560 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9562         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
9563         "insn" from rtx to rtx_insn *.
9564         (ps_rtl_insn): Likewise for return type.
9565         (doloop_register_get): Likewise for params "head", "tail" and
9566         locals "insn", "first_insn_not_to_check".
9567         (schedule_reg_move): Likewise for local "this_insn".
9568         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
9569         of gen_move_insn for now.
9570         (reset_sched_times): Strengthen local "insn" from rtx to
9571         rtx_insn *.
9572         (permute_partial_schedule): Likewise.
9573         (duplicate_insns_of_cycles): Likewise for local "u_insn".
9574         (dump_insn_location): Likewise for param "insn".
9575         (loop_canon_p): Likewise for local "insn".
9576         (sms_schedule): Likewise.
9577         (print_partial_schedule): Likewise.
9578         (ps_has_conflicts): Likewise.
9580 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9582         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
9583         "tailp" from rtx * to rtx_insn **.
9585         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
9586         from rtx to rtx_insn *.
9587         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
9588         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
9589         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
9590         rtx to rtx_insn *.
9591         * modulo-sched.c (const_iteration_count): Strengthen return type
9592         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
9593         use of NULL_RTX with NULL when working with insns.
9594         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
9595         to rtx_insn *.
9596         (sms_schedule): Likewise.
9597         * sched-rgn.c (init_ready_list): Likewise, also for locals
9598         "src_head" and "src_next_tail".
9599         (compute_block_dependences): Likewise.
9600         (free_block_dependencies): Likewise.
9601         (debug_rgn_dependencies): Likewise.
9602         (free_rgn_deps): Likewise.
9603         (compute_priorities): Likewise.
9604         (schedule_region): Likewise.
9605         * sel-sched.c (find_ebb_boundaries): Likewise.
9607         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
9608         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
9610 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9612         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
9613         from rtx to rtx_insn *.
9614         (new_seginfo): Likewise for param "insn".
9615         (create_pre_exit): Likewise for locals "last_insn",
9616         "before_return_copy", "return_copy".
9617         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
9618         "mode_set".
9620 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9622         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
9623         from rtx to rtx_insn *.
9624         (lra_push_insn): Likewise for 1st param.
9625         (lra_push_insn_and_update_insn_regno_info): Likewise.
9626         (lra_pop_insn): Likewise for return type.
9627         (lra_invalidate_insn_data): Likewise for 1st param.
9628         (lra_set_insn_deleted): Likewise.
9629         (lra_delete_dead_insn): Likewise.
9630         (lra_process_new_insns): Likewise for first 3 params.
9631         (lra_set_insn_recog_data): Likewise for 1st param.
9632         (lra_update_insn_recog_data): Likewise.
9633         (lra_set_used_insn_alternative): Likewise.
9634         (lra_invalidate_insn_regno_info): Likewise.
9635         (lra_update_insn_regno_info): Likewise.
9636         (lra_former_scratch_operand_p): Likewise.
9637         (lra_eliminate_regs_1): Likewise.
9638         (lra_get_insn_recog_data): Likewise.
9640         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
9641         rtx to rtx_insn *.
9643         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
9644         "mv1" and "mv2".
9645         (substitute_within_insn): New.
9646         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
9647         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
9648         Replace call to "substitute" with call to substitute_within_insn.
9650         * lra-constraints.c (curr_insn): Strengthen from rtx to
9651         rtx_insn *.
9652         (get_equiv_with_elimination): Likewise for param "insn".
9653         (match_reload): Strengthen params "before" and "after" from rtx *
9654         to rtx_insn **.
9655         (emit_spill_move): Likewise for return type.  Add a checked cast
9656         to rtx_insn * on result of gen_move_insn for now.
9657         (check_and_process_move): Likewise for local "before".  Replace
9658         NULL_RTX with NULL when referring to insns.
9659         (process_addr_reg): Strengthen params "before" and "after" from
9660         rtx * to rtx_insn **.
9661         (insert_move_for_subreg): Likewise.
9662         (simplify_operand_subreg): Strengthen locals "before" and "after"
9663         from rtx to rtx_insn *.
9664         (process_address_1): Strengthen params "before" and "after" from
9665         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
9666         rtx to rtx_insn *.
9667         (process_address): Strengthen params "before" and "after" from
9668         rtx * to rtx_insn **.
9669         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
9670         (curr_insn_transform): Strengthen locals "before" and "after"
9671         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
9672         to insns.
9673         (loc_equivalence_callback): Update cast of "data", changing
9674         resulting type from rtx to rtx_insn *.
9675         (substitute_pseudo_within_insn): New.
9676         (inherit_reload_reg): Strengthen param "insn" from rtx to
9677         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
9678         NULL when referring to insns.  Add a checked cast to rtx_insn *
9679         when using usage_insn to invoke lra_update_insn_regno_info.
9680         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
9681         likewise for locals "restore", "save".  Add checked casts to
9682         rtx_insn * when using usage_insn to invoke
9683         lra_update_insn_regno_info and lra_process_new_insns.  Replace
9684         NULL_RTX with NULL when referring to insns.
9685         (split_if_necessary): Strengthen param "insn" from rtx to
9686         rtx_insn *.
9687         (update_ebb_live_info): Likewise for params "head", "tail" and local
9688         "prev_insn".
9689         (get_last_insertion_point): Likewise for return type and local "insn".
9690         (get_live_on_other_edges): Likewise for local "last".
9691         (inherit_in_ebb): Likewise for params "head", "tail" and locals
9692         "prev_insn", "next_insn", "restore".
9693         (remove_inheritance_pseudos): Likewise for local "prev_insn".
9694         (undo_optional_reloads): Likewise for local "insn".
9696         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
9697         "insn".
9698         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
9699         insns.
9700         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
9701         rtx_insn *.
9702         (spill_pseudos): Likewise for local "insn".
9703         (init_elimination): Likewise.
9704         (process_insn_for_elimination): Likewise for param "insn".
9706         * lra-lives.c (curr_insn): Likewise.;
9708         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
9709         (remove_pseudos): Likewise for param "insn".
9710         (spill_pseudos): Likewise for local "insn".
9711         (lra_final_code_change): Likewise for locals "insn", "curr".
9713         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
9714         (lra_set_insn_deleted): Likewise.
9715         (lra_delete_dead_insn): Likewise, and for local "prev".
9716         (new_insn_reg): Likewise for param "insn".
9717         (lra_set_insn_recog_data): Likewise.
9718         (lra_update_insn_recog_data): Likewise.
9719         (lra_set_used_insn_alternative): Likewise.
9720         (get_insn_freq): Likewise.
9721         (invalidate_insn_data_regno_info): Likewise.
9722         (lra_invalidate_insn_regno_info): Likewise.
9723         (lra_update_insn_regno_info): Likewise.
9724         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
9725         vec<rtx_insn *>.
9726         (lra_push_insn_1): Strengthen param "insn" from rtx to
9727         rtx_insn *.
9728         (lra_push_insn): Likewise.
9729         (lra_push_insn_and_update_insn_regno_info): Likewise.
9730         (lra_pop_insn): Likewise for return type and local "insn".
9731         (push_insns): Likewise for params "from", "to", and local "insn".
9732         (setup_sp_offset): Likewise for params "from", "last" and locals
9733         "before", "insn".
9734         (lra_process_new_insns): Likewise for params "insn", "before",
9735         "after" and local "last".
9736         (struct sloc): Likewise for field "insn".
9737         (lra_former_scratch_operand_p): Likewise for param "insn".
9738         (remove_scratches): Likewise for locals "insn", "last".
9739         (check_rtl): Likewise for local "insn".
9740         (add_auto_inc_notes): Likewise for param "insn".
9741         (update_inc_notes): Likewise for local "insn".
9742         (lra): Replace NULL_RTX with NULL when referring to insn.
9744 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9746         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
9747         to rtx_insn *.
9748         (resolve_reg_notes): Likewise.
9749         (resolve_simple_move): Likewise for return type, param "insn", and
9750         locals "insns", "minsn".
9751         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
9752         (resolve_use): Likewise.
9753         (resolve_debug): Likewise.
9754         (find_decomposable_shift_zext): Likewise.
9755         (resolve_shift_zext): Likewise for return type, param "insn", and
9756         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
9757         (decompose_multiword_subregs): Likewise for local "insn",
9758         "orig_insn", "decomposed_shift", "end".
9760 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9762         * basic-block.h (basic_block split_edge_and_insert): Strengthen
9763         param "insns" from rtx to rtx_insn *.
9765         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
9766         rtx to rtx_insn *.
9767         (struct iv_to_split): Likewise.
9768         (loop_exit_at_end_p): Likewise for local "insn".
9769         (split_edge_and_insert): Likewise for param "insns".
9770         (compare_and_jump_seq): Likewise for return type, param "cinsn",
9771         and locals "seq", "jump".
9772         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
9773         "branch_code"; update invocations of compare_and_jump_seq to
9774         eliminate NULL_RTX in favor of NULL.
9775         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
9776         rtx to rtx_insn *.
9777         (reset_debug_uses_in_loop): Likewise.
9778         (analyze_insn_to_expand_var): Likewise for param "insn".
9779         (analyze_iv_to_split_insn): Likewise.
9780         (analyze_insns_in_loop): Likewise for local "insn".
9781         (insert_base_initialization): Likewise for param
9782         "insn" and local "seq".
9783         (split_iv): Likewise for param "insn" and local "seq".
9784         (expand_var_during_unrolling): Likewise for param "insn".
9785         (insert_var_expansion_initialization): Likewise for local "seq".
9786         (combine_var_copies_in_loop_exit): Likewise.
9787         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
9788         "insn".
9789         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
9790         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
9791         "next".
9793 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9795         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
9796         rtx_insn *.
9797         (iv_analyze_result): Likewise.
9798         (iv_analyze_expr): Likewise.
9799         (biv_p): Likewise.
9801         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
9802         local "def_insn" from rtx to rtx_insn *.
9803         (get_biv_step_1): Likewise for local "insn".
9804         (iv_analyze_expr): Likewise for param "insn".
9805         (iv_analyze_def): Likewise for local "insn".
9806         (iv_analyze_op): Likewise for param "insn".
9807         (iv_analyze): Likewise.
9808         (iv_analyze_result): Likewise.
9809         (biv_p): Likewise.
9810         (suitable_set_for_replacement): Likewise.
9811         (simplify_using_initial_values): Likewise for local "insn".
9812         (iv_number_of_iterations): Likewise for param "insn".
9813         (check_simple_exit): Add checked cast to rtx_insn when invoking
9814         iv_number_of_iterations for now (until get_condition is
9815         strengthened).
9817         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
9818         "insn" from rtx to rtx_insn *.
9819         (analyze_insns_in_loop): Likewise for local "insn".
9821 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9823         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
9824         to rtx_insn *.
9825         (struct invariant): Likewise.
9826         (hash_invariant_expr_1): Likewise for param "insn".
9827         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
9828         (find_exits): Likewise for local "insn".
9829         (create_new_invariant): Likewise for param "insn".
9830         (check_dependencies): Likewise.
9831         (find_invariant_insn): Likewise.
9832         (record_uses): Likewise.
9833         (find_invariants_insn): Likewise.
9834         (find_invariants_bb): Likewise for local "insn".
9835         (get_pressure_class_and_nregs): Likewise for param "insn".
9836         (calculate_loop_reg_pressure): Likewise for local "insn".
9838 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9840         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
9841         to rtx_insn *.
9842         (add_test): Likewise for locals "seq", "jump".
9843         (doloop_modify): Likewise for locals "sequence", "jump_insn".
9845 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9847         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
9848         rtx_insn *.
9849         (rebuild_jump_labels_chain): Likewise for param "chain".
9851         * cfgexpand.c (pass_expand::execute): Add checked cast to
9852         rtx_insn * when calling rebuild_jump_labels_chain in region where
9853         we know e->insns.r is non-NULL.
9855         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
9856         rtx_insn *.
9857         (rebuild_jump_labels): Likewise.
9858         (rebuild_jump_labels_chain): Likewise for param "chain".
9859         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
9860         (init_label_info): Likewise for param "f".
9861         (maybe_propagate_label_ref): Likewise for params "jump_insn",
9862         "prev_nonjump_insn".
9863         (mark_all_labels): Likewise for param "f" and locals "insn",
9864         "prev_nonjump_insn".
9866 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9868         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
9869         from rtx to rtx_insn *insn.
9870         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
9871         (ira_add_allocno_copy): Likewise.
9872         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
9873         rtx to rtx_insn *.
9874         (ira_create_copy): Likewise.
9875         (ira_add_allocno_copy): Likewise.
9876         (create_bb_allocnos): Likewise for local "insn".
9877         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
9878         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
9879         process_regs_for_copy for rtx_insn * param.
9880         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
9881         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
9882         process_regs_for_copy for rtx_insn * param.
9883         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
9884         * ira-costs.c (record_reg_classes): Likewise for param "insn".
9885         (record_operand_costs): Likewise.
9886         (scan_one_insn): Likewise for return type, and for param "insn".
9887         (process_bb_for_costs): Likewise for local "insn".
9888         (process_bb_node_for_hard_reg_moves): Likewise.
9889         * ira-emit.c (struct move): Likewise for field "insn".
9890         (create_move): Eliminate use of NULL_RTX when dealing with an
9891         rtx_insn *.
9892         (emit_move_list): Strengthen return type and locals "result",
9893         "insn" from rtx to rtx_insn *insn.
9894         (emit_moves): Likewise for locals "insns", "tmp".
9895         (ira_emit): Likewise for local "insn".
9896         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
9897         "insn".
9898         (find_call_crossed_cheap_reg): Likewise.
9899         (process_bb_node_lives): Likewise for local "insn".
9900         * ira.c (decrease_live_ranges_number): Likewise.
9901         (compute_regs_asm_clobbered): Likewise.
9902         (build_insn_chain): Likewise.
9903         (find_moveable_pseudos): Likewise, also locals "def_insn",
9904         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
9905         to rtx_insn **.  Add a checked cast when assigning from
9906         "closest_use" into closest_uses array in a region where we know
9907         it's a non-NULL insn.
9908         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
9909         to rtx_insn *.
9910         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
9911         "last_interesting_insn", "uin".
9912         (move_unallocated_pseudos): Likewise for locals "def_insn",
9913         "move_insn", "newinsn".
9915 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9917         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
9918         Strengthen locals "done_label", "do_error" from rtx to
9919         rtx_code_label *.
9920         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
9921         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
9922         rtx_code_label *.
9923         (ubsan_expand_si_overflow_neg_check): Likewise for locals
9924         "done_label", "do_error" to rtx_code_label * and local  "last" to
9925         rtx_insn *.
9926         (ubsan_expand_si_overflow_mul_check): Likewise for locals
9927         "done_label", "do_error", "large_op0", "small_op0_large_op1",
9928         "one_small_one_large", "both_ops_large", "after_hipart_neg",
9929         "after_lopart_neg", "do_overflow", "hipart_different"  to
9930         rtx_code_label * and local  "last" to rtx_insn *.
9932 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9934         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
9935         "insn" and "move_insn" from rtx to rtx_insn *.
9937 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9939         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
9940         rtx_insn *.
9941         (cheap_bb_rtx_cost_p): Likewise.
9942         (first_active_insn): Likewise for return type and local "insn".
9943         (last_active_insn):  Likewise for return type and locals "insn",
9944         "head".
9945         (struct noce_if_info): Likewise for fields "jump", "insn_a",
9946         "insn_b".
9947         (end_ifcvt_sequence): Likewise for return type and locals "insn",
9948         "seq".
9949         (noce_try_move): Likewise for local "seq".
9950         (noce_try_store_flag): Likewise.
9951         (noce_try_store_flag_constants): Likewise.
9952         (noce_try_addcc): Likewise.
9953         (noce_try_store_flag_mask): Likewise.
9954         (noce_try_cmove): Likewise.
9955         (noce_try_minmax): Likewise.
9956         (noce_try_abs): Likewise.
9957         (noce_try_sign_mask): Likewise.
9958         (noce_try_bitop): Likewise.
9959         (noce_can_store_speculate_p): Likewise for local "insn".
9960         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
9961         seq".
9962         (check_cond_move_block): Likewise for local "insn".
9963         (cond_move_convert_if_block): Likewise.
9964         (cond_move_process_if_block): Likewise for locals "seq",
9965         "loc_insn".
9966         (noce_find_if_block): Likewise for local "jump".
9967         (merge_if_block): Likewise for local "last".
9968         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
9969         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
9970         (block_has_only_trap): Likewise for return type and local "trap".
9971         (find_if_case_1): Likewise for local "jump".
9972         (dead_or_predicable): Likewise for locals "head", "end", "jump",
9973         "insn".
9975 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9977         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
9978         "last_insn", "loop_end" from rtx to rtx_insn *.
9980         * hw-doloop.c (scan_loop): Likewise for local "insn".
9981         (discover_loop): Likewise for param "tail_insn".
9982         (discover_loops): Likewise for local "tail".
9984         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
9985         cast to rtx_insn * when assigning from an rtx local to a
9986         hwloop_info's "last_insn" field.
9988 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9990         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
9991         (add_delay_dependencies): Strengthen local "pro" from rtx to
9992         rtx_insn *.
9993         (recompute_todo_spec): Likewise.
9994         (dep_cost_1): Likewise for locals "insn", "used".
9995         (schedule_insn): Likewise for local "dbg".
9996         (schedule_insn): Likewise for locals "pro", "next".
9997         (unschedule_insns_until): Likewise for local "con".
9998         (restore_pattern): Likewise for local "next".
9999         (estimate_insn_tick): Likewise for local "pro".
10000         (resolve_dependencies): Likewise for local "next".
10001         (fix_inter_tick): Likewise.
10002         (fix_tick_ready): Likewise for local "pro".
10003         (add_to_speculative_block): Likewise for locals "check", "twin",
10004         "pro".
10005         (sched_extend_bb): Likewise for locals "end", "insn".
10006         (init_before_recovery): Likewise for local "x".
10007         (sched_create_recovery_block): Likewise for local "barrier".
10008         (create_check_block_twin): Likewise for local "pro".
10009         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
10010         "consumer".
10011         (unlink_bb_notes): Update for change to type of bb_header.
10012         Strengthen locals "prev", "label", "note", "next" from rtx to
10013         rtx_insn *.
10014         (clear_priorities): Likewise for local "pro".
10016 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10018         * gcse.c (struct occr): Strengthen field "insn" from rtx to
10019         rtx_insn *.
10020         (test_insn): Likewise for this global.
10021         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
10022         const rtx_insn *.
10023         (oprs_anticipatable_p): Likewise.
10024         (oprs_available_p): Likewise.
10025         (insert_expr_in_table): Strengthen param "insn" from  rtx to
10026         rtx_insn *.
10027         (hash_scan_set): Likewise.
10028         (hash_scan_clobber): Likewise.
10029         (hash_scan_call): Likewise.
10030         (hash_scan_insn): Likewise.
10031         (compute_hash_table_work): Likewise for local "insn".
10032         (process_insert_insn): Likewise for return type and local "pat".
10033         (insert_insn_end_basic_block): Likewise for locals "new_insn",
10034         "pat", "pat_end", "maybe_cc0_setter".
10035         (pre_edge_insert): Likewise for local "insn".
10036         (pre_insert_copy_insn): Likewise for param "insn".
10037         (pre_insert_copies): Likewise for local "insn".
10038         (struct set_data): Likewise for field "insn".
10039         (single_set_gcse): Likewise for param "insn".
10040         (gcse_emit_move_after): Likewise.
10041         (pre_delete): Likewise for local "insn".
10042         (update_bb_reg_pressure): Likewise for param "from" and local
10043         "insn".
10044         (should_hoist_expr_to_dom): Likewise for param "from".
10045         (hoist_code): Likewise for local "insn".
10046         (get_pressure_class_and_nregs): Likewise for param "insn".
10047         (calculate_bb_reg_pressure): Likewise for local "insn".
10048         (compute_ld_motion_mems): Likewise.
10050 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10052         * genpeep.c (main): Rename param back from "uncast_ins1" to
10053         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
10054         checked cast.
10056         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
10058 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
10060         PR target/62195
10061         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
10062         documentation to state it is only for VSX operations.
10064         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
10065         constraint only active if VSX.
10067         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
10068         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
10069         (lfiwzx): Likewise.
10071 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10073         * fwprop.c (single_def_use_dom_walker::before_dom_children):
10074         Strengthen local "insn" from rtx to rtx_insn *.
10075         (use_killed_between): Likewise for param "target_insn".
10076         (all_uses_available_at): Likewise for param "target_insn" and
10077         local "next".
10078         (update_df_init): Likewise for params "def_insn", "insn".
10079         (update_df): Likewise for param "insn".
10080         (try_fwprop_subst): Likewise for param "def_insn" and local
10081         "insn".
10082         (free_load_extend): Likewise for param "insn".
10083         (forward_propagate_subreg): Likewise for param "def_insn" and
10084         local "use_insn".
10085         (forward_propagate_asm): Likewise for param "def_insn" and local
10086         "use_insn".
10087         (forward_propagate_and_simplify): Likewise for param "def_insn"
10088         and local "use_insn".
10089         (forward_propagate_into): Likewise for locals "def_insn" and
10090         "use_insn".
10092 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10094         * function.c (emit_initial_value_sets): Strengthen local "seq"
10095         from rtx to rtx_insn *.
10096         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
10097         local "seq".
10098         (instantiate_virtual_regs): Likewise for local "insn".
10099         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
10100         (reorder_blocks_1): Likewise for param "insns" and local "insn".
10101         (expand_function_end): Likewise for locals "insn" and "seq".
10102         (epilogue_done): Likewise for local "insn".
10103         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
10104         "last", "trial".
10105         (reposition_prologue_and_epilogue_notes): Likewise for locals
10106         "insn", "last", "note", "first".
10107         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
10108         (pass_match_asm_constraints::execute): Likewise for local "insn".
10110 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10112         * output.h (final_scan_insn): Strengthen return type from rtx to
10113         rtx_insn *.
10114         (final_forward_branch_p): Likewise for param.
10115         (current_output_insn): Likewise for this global.
10117         * final.c (rtx debug_insn): Likewise for this variable.
10118         (current_output_insn): Likewise.
10119         (get_attr_length_1): Rename param "insn" to "uncast_insn",
10120         adding "insn" back in as an rtx_insn * with a checked cast, so
10121         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
10122         first param.
10123         (compute_alignments): Strengthen local "label" from rtx to
10124         rtx_insn *.
10125         (shorten_branches): Rename param from "first" to "uncast_first",
10126         introducing a new local rtx_insn * "first" using a checked cast to
10127         effectively strengthen "first" from rtx to rtx_insn * without
10128         affecting the type signature.  Strengthen locals "insn", "seq",
10129         "next", "label" from rtx to rtx_insn *.
10130         (change_scope): Strengthen param "orig_insn" and local "insn" from
10131         rtx to rtx_insn *.
10132         (final_start_function): Rename param from "first" to "uncast_first",
10133         introducing a new local rtx_insn * "first" using a checked cast to
10134         effectively strengthen "first" from rtx to rtx_insn * without
10135         affecting the type signature.  Strengthen local "insn" from rtx to
10136         rtx_insn *.
10137         (dump_basic_block_info): Strengthen param "insn" from rtx to
10138         rtx_insn *.
10139         (final): Rename param from "first" to "uncast_first",
10140         introducing a new local rtx_insn * "first" using a checked cast to
10141         effectively strengthen "first" from rtx to rtx_insn * without
10142         affecting the type signature.  Strengthen locals "insn", "next"
10143         from rtx to rtx_insn *.
10144         (output_alternate_entry_point): Strengthen param "insn" from rtx to
10145         rtx_insn *.
10146         (call_from_call_insn): Strengthen param "insn" from rtx to
10147         rtx_call_insn *.
10148         (final_scan_insn): Rename param from "insn" to "uncast_insn",
10149         introducing a new local rtx_insn * "insn" using a checked cast to
10150         effectively strengthen "insn" from rtx to rtx_insn * without
10151         affecting the type signature.  Strengthen return type and locals
10152         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
10153         now-redundant checked cast to rtx_insn * from both invocations of
10154         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
10155         introducing a local "call_insn" for use when invoking
10156         call_from_call_insn.
10157         (notice_source_line): Strengthen param "insn" from rtx to
10158         rtx_insn *.
10159         (leaf_function_p): Likewise for local "insn".
10160         (final_forward_branch_p): Likewise.
10161         (leaf_renumber_regs): Likewise for param "first".
10162         (rest_of_clean_state): Likewise for locals "insn" and "next".
10163         (self_recursive_call_p): Likewise for param "insn".
10164         (collect_fn_hard_reg_usage): Likewise for local "insn".
10165         (get_call_fndecl): Likewise for param "insn".
10166         (get_call_cgraph_rtl_info): Likewise.
10167         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
10168         introducing a new local rtx_insn * "insn" using a checked cast to
10169         effectively strengthen "insn" from rtx to rtx_insn * without
10170         affecting the type signature.
10172         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
10173         cast when assigning from param "insn" to current_output_insn.
10174         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
10175         so that we can assign it back to current_output_insn.
10177 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10179         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
10180         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
10181         atmxt540s and atmxt540sreva devices.
10182         * config/avr/avr-tables.opt: Regenerate.
10183         * config/avr/t-multilib: Regenerate.
10184         * doc/avr-mmcu.texi: Regenerate.
10186 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10188         * expr.c (convert_move): Strengthen local "insns" from rtx to
10189         rtx_insn *.
10190         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
10191         "top_label" from rtx to rtx_code_label *.
10192         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
10193         rtx_insn *.
10194         (emit_single_push_insn): Likewise for locals "prev", "last".
10195         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
10196         to rtx_code_label *.
10197         (store_constructor): Likewise for locals "loop_start", "loop_end".
10198         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
10199         rtx_insn *.
10200         (expand_expr_real_2): Likewise.
10201         (expand_expr_real_1): Strengthen local "label" from rtx to
10202         rtx_code_label *.
10204 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10206         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10207         from rtx to rtx_insn *.
10208         (store_bit_field_1): Likewise.
10209         (extract_bit_field_1): Likewise.
10210         (expand_mult_const): Likewise for local "insns".
10211         (expmed_mult_highpart): Strengthen local "label" from rtx to
10212         rtx_code_label *.
10213         (expand_smod_pow2): Likewise.
10214         (expand_sdiv_pow2): Likewise.
10215         (expand_divmod): Strengthen locals "last", "insn" from rtx to
10216         rtx_insn *.  Strengthen locals "label", "label1", "label2",
10217         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10218         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10219         (emit_store_flag): Likewise.
10220         (emit_store_flag_force): Strengthen local "label" from rtx to
10221         rtx_code_label *.
10222         (do_cmp_and_jump): Likewise for param "label".
10224 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10226         * explow.c (force_reg): Strengthen local "insn" from rtx to
10227         rtx_insn *.
10228         (adjust_stack_1): Likewise.
10229         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
10230         "final_label", "available_label", "space_available" from rtx to
10231         rtx_code_label *.
10232         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10233         (anti_adjust_stack_and_probe): Likewise.
10235 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10237         * except.h (sjlj_emit_function_exit_after): Strengthen param
10238         "after" from rtx to rtx_insn *.  This is only called with
10239         result of get_last_insn (in function.c) so type-change should be
10240         self-contained.
10242         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
10243         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10244         to rtx_insn *.  These fields are only used from except.c so this
10245         type-change should be self-contained to this patch.
10247         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
10248         local "last" from rtx to rtx_insn *.
10249         (dw2_build_landing_pads): Likewise for local "seq".
10250         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
10251         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
10252         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
10253         rtx to rtx_insn *.
10254         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
10255         to rtx_insn *.
10256         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
10257         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
10258         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
10259         referring to an insn.  Strengthen local "dispatch_label" from
10260         rtx to rtx_code_label *.
10261         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
10262         rtx_insn *.
10263         (expand_eh_return): Strengthen local "around_label" from
10264         rtx to rtx_code_label *.
10265         (convert_to_eh_region_ranges): Strengthen locals "iter",
10266         "last_action_insn", "first_no_action_insn",
10267         "first_no_action_insn_before_switch",
10268         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
10270 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10272         * dwarf2out.c (last_var_location_insn): Strengthen this variable
10273         from rtx to rtx_insn *.
10274         (cached_next_real_insn): Likewise.
10275         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
10276         working with insns.
10277         (dwarf2out_var_location): Strengthen locals "next_real",
10278         "next_note", "expected_next_loc_note", "last_start", "insn" from
10279         rtx to rtx_insn *.
10281 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10283         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
10284         from rtx to rtx_insn *.
10285         (create_pseudo_cfg): Likewise for local "insn".
10287 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10289         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
10290         from rtx to rtx_insn *.
10291         (df_bb_regno_last_def_find): Likewise.
10293         * df-problems.c (df_rd_bb_local_compute): Likewise.
10294         (df_lr_bb_local_compute): Likewise.
10295         (df_live_bb_local_compute): Likewise.
10296         (df_chain_remove_problem): Likewise.
10297         (df_chain_create_bb): Likewise.
10298         (df_word_lr_bb_local_compute): Likewise.
10299         (df_remove_dead_eq_notes): Likewise for param "insn".
10300         (df_note_bb_compute): Likewise for local "insn".
10301         (simulate_backwards_to_point): Likewise.
10302         (df_md_bb_local_compute): Likewise.
10304         * df-scan.c (df_scan_free_bb_info): Likewise.
10305         (df_scan_start_dump): Likewise.
10306         (df_scan_start_block): Likewise.
10307         (df_install_ref_incremental): Likewise for local "insn".
10308         (df_insn_rescan_all): Likewise.
10309         (df_reorganize_refs_by_reg_by_insn): Likewise.
10310         (df_reorganize_refs_by_insn_bb): Likewise.
10311         (df_recompute_luids): Likewise.
10312         (df_bb_refs_record): Likewise.
10313         (df_update_entry_exit_and_calls): Likewise.
10314         (df_bb_verify): Likewise.
10316 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10318         * ddg.h (struct ddg_node): Strengthen fields "insn" and
10319         "first_note" from rtx to rtx_insn *.
10320         (get_node_of_insn): Likewise for param 2 "insn".
10321         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10323         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
10324         rtx_insn *.
10325         (mem_write_insn_p): Likewise.
10326         (mem_access_insn_p): Likewise.
10327         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10328         (def_has_ccmode_p): Likewise for param "insn".
10329         (add_cross_iteration_register_deps): Likewise for locals
10330         "def_insn" and "use_insn".
10331         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
10332         (build_intra_loop_deps): Likewise for local "src_insn".
10333         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
10334         to rtx_insn *.
10335         (get_node_of_insn): Likewise for param "insn".
10337 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10339         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
10340         (deletable_insn_p): Strengthen param "insn" from rtx to
10341         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
10342         find_call_stack_args, since this is guarded by CALL_P (insn).
10343         (marked_insn_p): Strengthen param "insn" from rtx to
10344         rtx_insn *.
10345         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
10346         invoking find_call_stack_args, since this is guarded by
10347         CALL_P (insn).
10348         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
10349         rtx_insn *; we know this is an insn since this was called by
10350         mark_nonreg_stores.
10351         (mark_nonreg_stores_2): Likewise.
10352         (mark_nonreg_stores): Strengthen param "insn" from rtx to
10353         rtx_insn *.
10354         (find_call_stack_args): Strengthen param "call_insn" from rtx to
10355         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
10356         to rtx_insn *.
10357         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
10358         from rtx to rtx_insn *.
10359         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
10360         "next", "ref_insn".
10361         (delete_unmarked_insns): Likewise for locals "insn", "next".
10362         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
10363         (mark_reg_dependencies): Likewise for param "insn".
10364         (rest_of_handle_ud_dce): Likewise for local "insn".
10365         (word_dce_process_block): Likewise.
10366         (dce_process_block): Likewise.
10368 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10370         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
10371         from rtx to rtx_insn *.
10372         (struct change_cc_mode_args): Likewise for field "insn".
10373         (this_insn): Strengthen from rtx to rtx_insn *.
10374         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
10375         with insn.
10376         (validate_canon_reg): Strengthen param "insn" from rtx to
10377         rtx_insn *.
10378         (canon_reg): Likewise.
10379         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
10380         dealing with insn.
10381         (record_jump_equiv): Strengthen param "insn" from rtx to
10382         rtx_insn *.
10383         (try_back_substitute_reg): Likewise, also for locals "prev",
10384         "bb_head".
10385         (find_sets_in_insn): Likewise for param "insn".
10386         (canonicalize_insn): Likewise.
10387         (cse_insn): Likewise.  Add a checked cast.
10388         (invalidate_from_clobbers): Likewise for param "insn".
10389         (invalidate_from_sets_and_clobbers): Likewise.
10390         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
10391         dealing with insn.
10392         (cse_prescan_path): Strengthen local "insn" from rtx to
10393         rtx_insn *.
10394         (cse_extended_basic_block): Likewise for locals "insn" and
10395         "prev_insn".
10396         (cse_main): Likewise for param "f".
10397         (check_for_label_ref): Likewise for local "insn".
10398         (set_live_p): Likewise for second param ("insn").
10399         (insn_live_p): Likewise for first param ("insn") and for local
10400         "next".
10401         (cse_change_cc_mode_insn): Likewise for first param "insn".
10402         (cse_change_cc_mode_insns): Likewise for first and second params
10403         "start" and "end".
10404         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
10405         and "end".
10406         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
10407         "cc_src_insn".
10409 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10410             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10411             Anna Tikhonova  <anna.tikhonova@intel.com>
10412             Ilya Tocar  <ilya.tocar@intel.com>
10413             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10414             Ilya Verbin  <ilya.verbin@intel.com>
10415             Kirill Yukhin  <kirill.yukhin@intel.com>
10416             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10418         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
10419         New.
10420         * config/i386/sse.md
10421         (define_mode_iterator VI248_AVX2): Delete.
10422         (define_mode_iterator VI2_AVX2_AVX512BW): New.
10423         (define_mode_iterator VI48_AVX2): Ditto.
10424         (define_insn <shift_insn><mode>3): Delete.
10425         (define_insn "<shift_insn><mode>3<mask_name>" with
10426         VI2_AVX2_AVX512BW): New.
10427         (define_insn "<shift_insn><mode>3<mask_name>" with
10428         VI48_AVX2): Ditto.
10430 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10431             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10432             Anna Tikhonova  <anna.tikhonova@intel.com>
10433             Ilya Tocar  <ilya.tocar@intel.com>
10434             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10435             Ilya Verbin  <ilya.verbin@intel.com>
10436             Kirill Yukhin  <kirill.yukhin@intel.com>
10437             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10439         * config/i386/sse.md
10440         (define_mode_iterator VI4F_BRCST32x2): New.
10441         (define_mode_attr 64x2_mode): Ditto.
10442         (define_mode_attr 32x2mode): Ditto.
10443         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
10444         with VI4F_BRCST32x2): Ditto.
10445         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
10446         with V16FI mode iterator): Ditto.
10447         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10448         with V16FI): Ditto.
10449         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10450         with VI8F_BRCST64x2): Ditto.
10452 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10453             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10454             Anna Tikhonova  <anna.tikhonova@intel.com>
10455             Ilya Tocar  <ilya.tocar@intel.com>
10456             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10457             Ilya Verbin  <ilya.verbin@intel.com>
10458             Kirill Yukhin  <kirill.yukhin@intel.com>
10459             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10461         * config/i386/sse.md
10462         (define_mode_iterator VI8_AVX512VL): New.
10463         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
10465 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10467         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
10468         (define_mode_iterator V48_AVX512VL): New.
10469         (define_mode_iterator V12_AVX512VL): Ditto.
10470         (define_insn <avx512>_load<mode>_mask): Split into two similar
10471         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
10472         Refactor output template.
10473         (define_insn "<avx512>_store<mode>_mask"): Ditto.
10475 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10477         * cprop.c (struct occr): Strengthen field "insn" from rtx to
10478         rtx_insn *.
10479         (reg_available_p): Likewise for param "insn".
10480         (insert_set_in_table): Likewise.
10481         (hash_scan_set): Likewise.
10482         (hash_scan_insn): Likewise.
10483         (make_set_regs_unavailable): Likewise.
10484         (compute_hash_table_work): Likewise for local "insn".
10485         (reg_not_set_p): Strengthen param "insn" from const_rtx to
10486         const rtx_insn *.
10487         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
10488         (try_replace_reg): Likewise.
10489         (find_avail_set): Likewise.
10490         (cprop_jump): Likewise for params "setcc", "jump".
10491         (constprop_register): Likewise for param "insn".
10492         (cprop_insn): Likewise.
10493         (do_local_cprop): Likewise.
10494         (local_cprop_pass): Likewise for local "insn".
10495         (bypass_block): Likewise for params "setcc" and "jump".
10496         (bypass_conditional_jumps): Likewise for locals "setcc" and
10497         "insn".
10498         (one_cprop_pass): Likewise for local "insn".
10500 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10502         * compare-elim.c (struct comparison_use): Strengthen field "insn"
10503         from rtx to rtx_insn *.
10504         (struct comparison): Likewise, also for field "prev_clobber".
10505         (conforming_compare): Likewise for param "insn".
10506         (arithmetic_flags_clobber_p): Likewise.
10507         (find_flags_uses_in_insn): Likewise.
10508         (find_comparison_dom_walker::before_dom_children): Likewise for
10509         locals "insn", "next", "last_clobber".
10510         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
10512 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10514         * combine-stack-adj.c (struct csa_reflist): Strengthen field
10515         "insn" from rtx to rtx_insn *.
10516         (single_set_for_csa): Likewise for param "insn".
10517         (record_one_stack_ref): Likewise.
10518         (try_apply_stack_adjustment): Likewise.
10519         (struct record_stack_refs_data): Likewise for field "insn".
10520         (maybe_move_args_size_note): Likewise for params "last" and "insn".
10521         (prev_active_insn_bb): Likewise for return type and param "insn".
10522         (next_active_insn_bb): Likewise.
10523         (force_move_args_size_note): Likewise for params "prev" and "last"
10524         and locals "test", "next_candidate", "prev_candidate".
10525         (combine_stack_adjustments_for_block): Strengthen locals
10526         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
10527         rtx_insn *.
10529 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10531         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
10532         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
10533         (subst_insn): Likewise for this variable.
10534         (added_links_insn): Likewise.
10535         (struct insn_link): Likewise for field "insn".
10536         (alloc_insn_link): Likewise for param "insn".
10537         (struct undobuf): Likewise for field "other_insn".
10538         (find_single_use): Likewise for param "insn" and local "next".
10539         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
10540         (delete_noop_moves): Likewise for locals "insn", "next".
10541         (create_log_links): Likewise for locals "insn", "use_insn".
10542         Strengthen local "next_use" from rtx * to rtx_insn **.
10543         (insn_a_feeds_b): Likewise for params "a", "b".
10544         (combine_instructions): Likewise for param "f" and locals "insn",
10545         "next", "prev", "first", "last_combined_insn", "link", "link1",
10546         "temp".  Replace use of NULL_RTX with NULL when referring to
10547         insns.
10548         (setup_incoming_promotions): Likewise for param "first"
10549         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
10550         (can_combine_p): Likewise for params "insn", "i3", "pred",
10551         "pred2", "succ", "succ2" and for local "p".
10552         (combinable_i3pat): Likewise for param "i3".
10553         (cant_combine_insn_p): Likewise for param "insn".
10554         (likely_spilled_retval_p): Likewise.
10555         (adjust_for_new_dest): Likewise.
10556         (update_cfg_for_uncondjump): Likewise, also for local "insn".
10557         (try_combine): Likewise for return type and for params "i3", "i2",
10558         "i1", "i0", "last_combined_insn", and for locals "insn",
10559         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
10560         "i0_insn".  Eliminate local "tem" in favor of new locals
10561         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
10562         checked cast for now to rtx_insn * on the return type of
10563         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
10564         insns.
10565         (find_split_point): Strengthen param "insn" from rtx to
10566         rtx_insn *.
10567         (simplify_set): Likewise for local "other_insn".
10568         (recog_for_combine): Likewise for param "insn".
10569         (record_value_for_reg): Likewise.
10570         (record_dead_and_set_regs_1): Likewise for local
10571         "record_dead_insn".
10572         (record_dead_and_set_regs): Likewise for param "insn".
10573         (record_promoted_value): Likewise.
10574         (check_promoted_subreg): Likewise.
10575         (get_last_value_validate): Likewise.
10576         (reg_dead_at_p): Likewise.
10577         (move_deaths): Likewise for param "to_insn".
10578         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
10579         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
10580         in favor of new locals "tem_note" and "tem_insn", the latter being
10581         an rtx_insn *.
10582         (distribute_links): Strengthen locals "place", "insn" from rtx to
10583         rtx_insn *.
10585 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10587         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
10588         than a const_rtx.
10589         (can_delete_label_p): Require a const rtx_code_label * rather than
10590         a const_rtx.
10591         (delete_insn): Add checked cast to rtx_code_label * when we know
10592         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
10593         rtx to rtx_insn *.
10594         (delete_insn_chain): Strengthen locals "prev" and "current" from
10595         rtx to rtx_insn *.  Add a checked cast when assigning from
10596         "finish" (strengthening the params will come later).  Add a
10597         checked cast to rtx_note * in region where we know
10598         NOTE_P (current).
10599         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
10600         rtx_insn *.
10601         (compute_bb_for_insn): Likewise.
10602         (free_bb_for_insn): Likewise for local "insn".
10603         (compute_bb_for_insn): Likewise.
10604         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
10605         local "insn" from rtx to rtx_insn *
10606         (flow_active_insn_p): Require a const rtx_insn * rather than a
10607         const_rtx.
10608         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
10609         rtx_insn *.
10610         (can_fallthru): Likewise for locals "insn" and "insn2".
10611         (bb_note): Likewise for local "note".
10612         (first_insn_after_basic_block_note): Likewise for local "note" and
10613         for return type.
10614         (rtl_split_block): Likewise for locals "insn" and "next".
10615         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
10616         "end".
10617         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
10618         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
10619         "prev", "tmp".
10620         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
10621         them), "kill_from", "barrier", "new_insn".
10622         (patch_jump_insn): Likewise for params "insn", "old_label".
10623         (redirect_branch_edge): Likewise for locals "old_label", "insn".
10624         (force_nonfallthru_and_redirect): Likewise for locals "insn",
10625         "old_label", "new_label".
10626         (rtl_tidy_fallthru_edge): Likewise for local "q".
10627         (rtl_split_edge): Likewise for locals "before", "last".
10628         (commit_one_edge_insertion): Likewise for locals "before",
10629         "after", "insns", "tmp", "last", adding a checked cast where
10630         currently necessary.
10631         (commit_edge_insertions): Likewise.
10632         (rtl_dump_bb): Likewise for locals "insn", "last".
10633         (print_rtl_with_bb): Likewise for local "x".
10634         (rtl_verify_bb_insns): Likewise for local "x".
10635         (rtl_verify_bb_pointers): Likewise for local "insn".
10636         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
10637         "head", "end".
10638         (rtl_verify_fallthru): Likewise for local "insn".
10639         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
10640         (purge_dead_edges): Likewise for local "insn".
10641         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
10642         (skip_insns_after_block): Likewise for return type and for locals
10643         "insn", "last_insn", "next_head", "prev".
10644         (record_effective_endpoints): Likewise for locals "next_insn",
10645         "insn", "end".
10646         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
10647         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
10648         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
10649         (duplicate_insn_chain): For now, add checked cast from rtx to
10650         rtx_insn * when returning insn.
10651         (cfg_layout_duplicate_bb): Likewise for local "insn".
10652         (cfg_layout_delete_block): Likewise for locals "insn", "next",
10653         "prev", "remaints".
10654         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
10655         (rtl_block_empty_p): Likewise.
10656         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
10657         "split_point", "last".
10658         (rtl_block_ends_with_call_p): Likewise for local "insn".
10659         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
10660         const rtx_insn *.
10661         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
10662         "split_at_insn" from rtx to rtx_insn *.
10663         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
10664         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
10665         to const rtx_insn *.
10666         (rtl_account_profile_record): Likewise.
10668 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10670         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
10671         rtx to rtx_insn *.
10672         (average_num_loop_insns): Likewise.
10673         (init_set_costs): Likewise for local "seq".
10674         (seq_cost): Likewise for param "seq", from const_rtx to const
10675         rtx_insn *.
10677 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10679         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
10680         rtx to rtx_insn *.
10682 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10684         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
10685         "f1" and "f2" from rtx * to rtx_insn **.
10686         (flow_find_head_matching_sequence): Likewise.
10688         * cfgcleanup.c (try_simplify_condjump): Strengthen local
10689         "cbranch_insn" from rtx to rtx_insn *.
10690         (thread_jump): Likewise for local "insn".
10691         (try_forward_edges): Likewise for local "last".
10692         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
10693         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
10694         "real_b_end".
10695         (can_replace_by): Likewise for params "i1", "i2".
10696         (old_insns_match_p): Likewise.
10697         (merge_notes): Likewise.
10698         (walk_to_nondebug_insn): Likewise for param "i1".
10699         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
10700         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
10701         "afterlast1", "afterlast2" from rtx to rtx_insn *.
10702         (flow_find_head_matching_sequence): Strengthen params "f1" and
10703         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
10704         "last1", "last2", "beforelast1", "beforelast2" from rtx to
10705         rtx_insn *.
10706         (outgoing_edges_match): Likewise for locals "last1", "last2".
10707         (try_crossjump_to_edge): Likewise for local "insn".
10708         Replace call to for_each_rtx with for_each_rtx_in_insn.
10710         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
10711         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
10712         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
10713         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
10714         (try_optimize_cfg): Strengthen local "last" from rtx to
10715         rtx_insn *.
10716         (delete_dead_jumptables): Likewise for locals "insn", "next",
10717         "label".
10719         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
10720         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
10721         "rtx else_first_tail", to reflect the basic-block.h changes above.
10723 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10725         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
10726         rtx_insn *.
10727         (purge_dead_tablejump_edges): Likewise.
10728         (find_bb_boundaries): Likewise for locals "insn", "end",
10729         "flow_transfer_insn".
10731 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10733         * caller-save.c (save_call_clobbered_regs): Strengthen locals
10734         "ins" and "prev" from rtx to rtx_insn *.
10736 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10738         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
10739         rtx_insn *.
10740         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
10741         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
10742         "scan_start".
10743         (load_register_parameters): Likewise for local "before_arg".
10744         (check_sibcall_argument_overlap): Likewise for param "insn".
10745         (expand_call): Likewise for locals "normal_call_insns",
10746         "tail_call_insns", "insns", "before_call", "after_args",
10747         "before_arg", "last", "prev".  Strengthen one of the "last" from
10748         rtx to rtx_call_insn *.
10749         (fixup_tail_calls): Strengthen local "insn" from rtx to
10750         rtx_insn *.
10751         (emit_library_call_value_1): Likewise for locals "before_call" and
10752         "last".
10754 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10756         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
10757         and "last" from rtx to rtx_insn *.
10758         (expand_builtin_nonlocal_goto): Likewise for local "insn".
10759         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
10760         rtx_call_insn *.
10761         (expand_errno_check): Strengthen local "lab" from rtx to
10762         rtx_code_label *.
10763         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
10764         rtx_insn *.
10765         (expand_builtin_mathfn_2): Likewise.
10766         (expand_builtin_mathfn_ternary): Likewise.
10767         (expand_builtin_mathfn_3): Likewise.
10768         (expand_builtin_interclass_mathfn): Likewise for local "last".
10769         (expand_builtin_int_roundingfn): Likewise for local "insns".
10770         (expand_builtin_int_roundingfn_2): Likewise.
10771         (expand_builtin_strlen): Likewise for local "before_strlen".
10772         (expand_builtin_strncmp): Likewise for local "seq".
10773         (expand_builtin_signbit): Likewise for local "last".
10774         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
10775         from rtx to rtx_code_label *.
10776         (expand_stack_restore):  Strengthen local "prev" from rtx to
10777         rtx_insn *.
10779 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10781         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
10782         to rtx_insn *.
10783         (struct btr_def_s): Likewise.
10784         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
10785         const rtx_insn *.
10786         (add_btr_def): Likewise.
10787         (new_btr_user): Likewise.
10788         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
10789         rtx to rtx_insn *.
10790         (link_btr_uses): Likewise.
10791         (move_btr_def): Likewise for locals "insp", "old_insn",
10792         "new_insn".  Add checked cast to rtx_insn * for now on result of
10793         gen_move_insn.
10794         (can_move_up): Strengthen param "insn" from const_rtx to
10795         const rtx_insn *.
10797 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10799         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
10800         rtx_insn *.
10801         (get_uncond_jump_length): Likewise for locals "label", "jump".
10802         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
10803         "jump", "insn".
10804         (add_labels_and_missing_jumps): Likewise for local "new_jump".
10805         (fix_up_fall_thru_edges): Likewise for local "old_jump".
10806         (find_jump_block): Likewise for local "insn".
10807         (fix_crossing_conditional_branches): Likewise for locals
10808         "old_jump", "new_jump".
10809         (fix_crossing_unconditional_branches): Likewise for locals
10810         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
10811         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
10813 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10815         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
10816         rtx to rtx_insn *.
10817         (struct mem_insn): Likewise for field "insn".
10818         (reg_next_use): Strengthen from rtx * to rtx_insn **.
10819         (reg_next_inc_use): Likewise.
10820         (reg_next_def): Likewise.
10821         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
10822         from rtx to rtx_insn *.
10823         (move_insn_before): Likewise for param "next_insn" and local "insns".
10824         (attempt_change): Likewise for local "mov_insn".
10825         (try_merge): Likewise for param "last_insn".
10826         (get_next_ref): Likewise for return type and local "insn".
10827         Strengthen param "next_array" from rtx * to rtx_insn **.
10828         (parse_add_or_inc): Strengthen param "insn" from rtx to
10829         rtx_insn *.
10830         (find_inc): Likewise for locals "insn" and "other_insn" (three of
10831         the latter).
10832         (merge_in_block): Likewise for locals "insn", "curr",
10833         "other_insn".
10834         (pass_inc_dec::execute): Update allocations of the arrays to
10835         reflect the stronger types.
10837 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10839         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
10840         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
10841         from rtx to rtx_code_label *.
10843 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10845         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
10846         to rtx_insn *.
10848 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10850         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
10851         generated a warning and prevented bootstrapping the compiler.
10853 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10855         * rtl.h (delete_related_insns): Strengthen return type from rtx to
10856         rtx_insn *.
10858         * jump.c (delete_related_insns): Likewise, also for locals "next"
10859         and "prev".
10861 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10863         * genautomata.c (output_internal_insn_latency_func): When writing
10864         the function "internal_insn_latency" to insn-automata.c,
10865         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
10866         allowing the optional guard function of (define_bypass) clauses to
10867         expect a pair of rtx_insn *, rather than a pair of rtx.
10868         (output_insn_latency_func): When writing the function
10869         "insn_latency", add an "uncast_" prefix to params "insn" and
10870         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
10871         using checked casts from the params, thus enabling the above
10872         change to the generated "internal_insn_latency" function.
10874 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
10876         PR tree-optimization/62091
10877         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
10878         handle correctly arrays.
10879         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
10880         inheritance binfos.
10881         (record_known_type): Walk into inner type.
10882         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
10883         condition on no type changes.
10885 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10887         * genattrtab.c (write_attr_get): Within the generated get_attr_
10888         functions, rename param "insn" to "uncast_insn" and reintroduce
10889         "insn" as an local rtx_insn * using a checked cast, so that "insn"
10890         is an rtx_insn * within insn-attrtab.c
10892 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10894         * output.h (peephole): Strengthen return type from rtx to
10895         rtx_insn *.
10896         * rtl.h (delete_for_peephole): Likewise for both params.
10897         * genpeep.c (main): In generated "peephole" function, strengthen
10898         return type and local "insn" from rtx to rtx_insn *.  For now,
10899         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
10900         rtx_insn *, with a checked cast.
10901         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
10902         locals "insn", "next", "prev" from rtx to rtx_insn *.
10904 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
10906         PR tree-optimization/62112
10907         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
10908         * gimple-iterator.h (gsi_replace): Return bool.
10909         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
10910         moved from ref_may_alias_global_p.
10911         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
10912         New overloads.
10913         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
10914         (stmt_kills_ref_p_1): Rename...
10915         (stmt_kills_ref_p): ... to this.
10916         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
10917         stmt_kills_ref_p): Declare.
10918         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
10919         Move the self-assignment case...
10920         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
10922 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10924         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
10926         * emit-rtl.c (try_split): Likewise, also for locals "before" and
10927         "after".  For now, don't strengthen param "trial", which requires
10928         adding checked casts when returning it.
10930 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10932         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
10933         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
10934         "var_location" hook from rtx to rtx_insn *.
10935         (debug_nothing_rtx): Delete in favor of...
10936         (debug_nothing_rtx_code_label): New prototype.
10937         (debug_nothing_rtx_rtx): Delete unused prototype.
10938         (debug_nothing_rtx_insn): New prototype.
10940         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
10941         invoking debug_hooks->var_location (in two places, one in a NOTE
10942         case of a switch statement, the other guarded by a CALL_P
10943         conditional.  Add checked cast to rtx_code_label * when invoking
10944         debug_hooks->label (within CODE_LABEL case of switch statement).
10946         * dbxout.c (dbx_debug_hooks): Update "label" hook from
10947         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
10948         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
10949         (xcoff_debug_hooks): Likewise.
10950         * debug.c (do_nothing_debug_hooks): Likewise.
10951         (debug_nothing_rtx): Delete in favor of...
10952         (debug_nothing_rtx_insn): New function.
10953         (debug_nothing_rtx_rtx): Delete unused function.
10954         (debug_nothing_rtx_code_label): New function.
10955         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
10956         debug_nothing_rtx to debug_nothing_rtx_code_label.
10957         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
10958         to rtx_insn *.
10959         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
10960         debug_nothing_rtx to debug_nothing_rtx_insn.
10961         (sdbout_label): Strengthen param "insn" from rtx to
10962         rtx_code_label *.
10963         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
10964         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
10965         "var_location" hook from debug_nothing_rtx to
10966         debug_nothing_rtx_insn.
10968 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10970         * recog.h (insn_output_fn): Update this function typedef to match
10971         the changes below to the generated output functions, strengthening
10972         the 2nd param from rtx to rtx_insn *.
10974         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
10975         insn when invoking an output function, to match the new signature
10976         of insn_output_fn with a stronger second param.
10978         * genconditions.c (write_header): In the generated code for
10979         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
10980         to match the other changes in this patch.
10982         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
10983         the generated "gen_" functions from rtx to rtx_insn * within their
10984         implementations.
10986         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
10987         the subfunctions within the generated "recog_", "split", "peephole2"
10988         function trees from rtx to rtx_insn *.  For now, the top-level
10989         generated functions ("recog", "split", "peephole2") continue to
10990         take a plain rtx for "insn", to avoid introducing dependencies on
10991         other patches.  Rename this 2nd param from "insn" to
10992         "uncast_insn", and reintroduce "insn" as a local variable of type
10993         rtx_insn *, initialized at the top of the generated function with
10994         a checked cast on "uncast_insn".
10995         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
10996         the generated "gen_" functions from rtx to rtx_insn * within their
10997         prototypes.
10999         * genoutput.c (process_template): Strengthen the 2nd param within
11000         the generated "output_" functions "insn" from rtx to rtx_insn *.
11002 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11004         * tree-profile.c (tree_profiling): Skip external functions
11005         when doing coverage instrumentation.
11006         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
11008 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11010         * config/rs6000/altivec.h (vec_cpsgn): New #define.
11011         (vec_mergee): Likewise.
11012         (vec_mergeo): Likewise.
11013         (vec_cntlz): Likewise.
11014         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
11015         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
11016         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
11017         VMRGEW, and VMRGOW.
11018         * doc/extend.texi: Document various forms of vec_cpsgn,
11019         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
11020         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
11021         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
11022         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
11023         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
11025 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11027         * config/rs6000/rs6000.c (context.h): New include.
11028         (tree-pass.h): Likewise.
11029         (make_pass_analyze_swaps): New decl.
11030         (rs6000_option_override): Register pass_analyze_swaps.
11031         (swap_web_entry): New subsclass of web_entry_base (df.h).
11032         (special_handling_values): New enum.
11033         (union_defs): New function.
11034         (union_uses): Likewise.
11035         (insn_is_load_p): Likewise.
11036         (insn_is_store_p): Likewise.
11037         (insn_is_swap_p): Likewise.
11038         (rtx_is_swappable_p): Likewise.
11039         (insn_is_swappable_p): Likewise.
11040         (chain_purpose): New enum.
11041         (chain_contains_only_swaps): New function.
11042         (mark_swaps_for_removal): Likewise.
11043         (swap_const_vector_halves): Likewise.
11044         (adjust_subreg_index): Likewise.
11045         (permute_load): Likewise.
11046         (permute_store): Likewise.
11047         (handle_special_swappables): Likewise.
11048         (replace_swap_with_copy): Likewise.
11049         (dump_swap_insn_table): Likewise.
11050         (rs6000_analyze_swaps): Likewise.
11051         (pass_data_analyze_swaps): New pass_data.
11052         (pass_analyze_swaps): New rtl_opt_pass.
11053         (make_pass_analyze_swaps): New function.
11054         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
11056 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11058         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
11059         type from rtx to rtx_insn *.
11060         (create_copy_of_insn_rtx): Likewise.
11061         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
11062         (create_copy_of_insn_rtx): Likewise, also for local "res".
11064 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11066         * rtl.h (find_first_parameter_load): Strengthen return type from
11067         rtx to rtx_insn *.
11068         * rtlanal.c (find_first_parameter_load): Strengthen return type
11069         from rtx to rtx_insn *.  Add checked cast for now, to postpone
11070         strengthening the params.
11072 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11074         PR fortran/44054
11075         * diagnostic.c: Set default caret.
11076         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
11077         line is needed.
11078         * diagnostic.h (struct diagnostic_context):
11080 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11082         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
11083         (sel_bb_head): Strengthen return type insn_t (currently just an
11084         rtx) to rtx_insn *.
11085         (sel_bb_end): Likewise.
11087         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
11088         (sel_bb_head): Strengthen return type and local "head" from
11089         insn_t (currently just an rtx) to rtx_insn *.
11090         (sel_bb_end): Likewise for return type.
11091         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
11092         working with insn.
11094 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11096         * basic-block.h (get_last_bb_insn): Strengthen return type from
11097         rtx to rtx_insn *.
11098         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
11099         end".
11101 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11103         PR fortran/44054
11104         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
11105          to here ...
11106         (diagnostic_report_diagnostic): ... from here.
11107         * toplev.c (general_init): Move code to c-family.
11109 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11111         * df.h (web_entry_base): Replace existing struct web_entry with a
11112         new class web_entry_base with only the predecessor member.
11113         (unionfind_root): Remove declaration and move to class member.
11114         (unionfind_union): Remove declaration and move to friend
11115         function.
11116         (union_defs): Remove declaration.
11117         * web.c (web_entry_base::unionfind_root): Modify to be member
11118         function and adjust accessors.
11119         (unionfind_union): Modify to be friend function and adjust
11120         accessors.
11121         (web_entry): New subclass of web_entry_base containing the reg
11122         member.
11123         (union_match_dups): Modify for struct -> class changes.
11124         (union_defs): Likewise.
11125         (entry_register): Likewise.
11126         (pass_web::execute): Likewise.
11128 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
11130         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
11131         builtin define __VEC_ELEMENT_REG_ORDER__.
11133 2014-08-20  Martin Jambor  <mjambor@suse.cz>
11134             Wei Mi  <wmi@google.com>
11136         PR ipa/60449
11137         PR middle-end/61776
11138         * tree-ssa-operands.c (update_stmt_operands): Remove
11139         MODIFIED_NORETURN_CALLS.
11140         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
11141         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
11142         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
11143         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
11144         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
11145         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
11146         (gimple_call_set_ctrl_altering): New func.
11147         (gimple_call_ctrl_altering_p): Ditto.
11148         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
11149         (make_blocks): Use gimple_call_initialize_ctrl_altering.
11150         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
11151         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
11152         remove MODIFIED_NORETURN_CALLS.
11154 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11156         * coverage.c (coverage_compute_profile_id): Return non-0;
11157         also handle symbols with unique name.
11158         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
11160 2014-08-20  Steve Ellcey  <sellcey@mips.com>
11162         PR middle-end/49191
11163         * doc/sourcebuild.texi (non_strict_align): New.
11165 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11167         * cgraphunit.c (ipa_passes, compile): Reshedule
11168         symtab_remove_unreachable_nodes passes; update comments.
11169         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
11170         TODO_remove_functions before the pass; the functions ought to be
11171         already removed.
11172         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
11173         TODO_remove_functions.
11174         * passes.c (pass_data_early_local_passes): Do not schedule function
11175         removal.
11176         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
11178 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11180         PR c/59304
11181         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
11182         before setting the option.
11183         * diagnostic.c (diagnostic_classify_diagnostic): Record
11184         command-line status.
11186 2014-08-20  Richard Biener  <rguenther@suse.de>
11188         PR lto/62190
11189         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
11190         to build uint{16,32,64}_type_node.
11192 2014-08-20  Terry Guo  <terry.guo@arm.com>
11194         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
11195         with immediate_operand.
11197 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
11199         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
11200         "insn" from an as_a to a safe_as_a, for the case when "insn" is
11201         NULL.
11203 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11205         PR preprocessor/51303
11206         * incpath.c (remove_duplicates): Use cpp_warning.
11208 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11210         PR c/60975
11211         PR c/53063
11212         * doc/options.texi (CPP): Document it.
11213         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11214         * optc-gen.awk: Handle CPP.
11215         * opth-gen.awk: Likewise.
11217 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11219         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11220         rtx_insn *.
11221         (duplicate_insn_chain): Likewise.
11222         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11223         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
11224         checked cast for now (until we can strengthen the params in the
11225         same way).
11226         (duplicate_insn_chain): Likewise.
11228 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11230         * rtl.h (next_cc0_user): Strengthen return type from rtx to
11231         rtx_insn *.
11232         (prev_cc0_setter): Likewise.
11234         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
11235         rtx_insn *, adding checked casts for now as necessary.
11236         (prev_cc0_setter): Likewise.
11238 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11240         * expr.h (emit_move_insn): Strengthen return type from rtx to
11241         rtx_insn *.
11242         (emit_move_insn_1): Likewise.
11243         (emit_move_complex_push): Likewise.
11244         (emit_move_complex_parts): Likewise.
11246         * expr.c (emit_move_via_integer): Strengthen return type from rtx
11247         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
11248         with insns.
11249         (emit_move_complex_push): Strengthen return type from rtx to
11250         rtx_insn *.
11251         (emit_move_complex): Likewise, also for local "ret".
11252         (emit_move_ccmode): Likewise.
11253         (emit_move_multi_word): Likewise for return type and locals
11254         "last_insn", "seq".
11255         (emit_move_insn_1): Likewise for return type and locals "result",
11256         "ret".
11257         (emit_move_insn): Likewise for return type and local "last_insn".
11258         (compress_float_constant): Likewise.
11260 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11262         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
11263         from rtx to rtx_insn *.
11265         * rtl.h (emit_insn_before): Likewise.
11266         (emit_insn_before_noloc): Likewise.
11267         (emit_insn_before_setloc): Likewise.
11268         (emit_jump_insn_before): Likewise.
11269         (emit_jump_insn_before_noloc): Likewise.
11270         (emit_jump_insn_before_setloc): Likewise.
11271         (emit_call_insn_before): Likewise.
11272         (emit_call_insn_before_noloc): Likewise.
11273         (emit_call_insn_before_setloc): Likewise.
11274         (emit_debug_insn_before): Likewise.
11275         (emit_debug_insn_before_noloc): Likewise.
11276         (emit_debug_insn_before_setloc): Likewise.
11277         (emit_label_before): Likewise.
11278         (emit_insn_after): Likewise.
11279         (emit_insn_after_noloc): Likewise.
11280         (emit_insn_after_setloc): Likewise.
11281         (emit_jump_insn_after): Likewise.
11282         (emit_jump_insn_after_noloc): Likewise.
11283         (emit_jump_insn_after_setloc): Likewise.
11284         (emit_call_insn_after): Likewise.
11285         (emit_call_insn_after_noloc): Likewise.
11286         (emit_call_insn_after_setloc): Likewise.
11287         (emit_debug_insn_after): Likewise.
11288         (emit_debug_insn_after_noloc): Likewise.
11289         (emit_debug_insn_after_setloc): Likewise.
11290         (emit_label_after): Likewise.
11291         (emit_insn): Likewise.
11292         (emit_debug_insn): Likewise.
11293         (emit_jump_insn): Likewise.
11294         (emit_call_insn): Likewise.
11295         (emit_label): Likewise.
11296         (gen_clobber): Likewise.
11297         (emit_clobber): Likewise.
11298         (gen_use): Likewise.
11299         (emit_use): Likewise.
11300         (emit): Likewise.
11302         (emit_barrier_before): Strengthen return type from rtx to
11303         rtx_barrier *.
11304         (emit_barrier_after): Likewise.
11305         (emit_barrier): Likewise.
11307         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
11308         from rtx to rtx_insn *.  Add checked casts for now when converting
11309         "last" from rtx to rtx_insn *.
11310         (emit_insn_before_noloc): Likewise for return type.
11311         (emit_jump_insn_before_noloc): Likewise.
11312         (emit_call_insn_before_noloc): Likewise.
11313         (emit_debug_insn_before_noloc): Likewise.
11314         (emit_barrier_before): Strengthen return type and local "insn"
11315         from rtx to rtx_barrier *.
11316         (emit_label_before): Strengthen return type from rtx to
11317         rtx_insn *.  Add checked cast for now when returning param
11318         (emit_pattern_after_noloc): Strengthen return type from rtx to
11319         rtx_insn *.  Add checked casts for now when converting "last" from
11320         rtx to rtx_insn *.
11321         (emit_insn_after_noloc): Strengthen return type from rtx to
11322         rtx_insn *.
11323         (emit_jump_insn_after_noloc): Likewise.
11324         (emit_call_insn_after_noloc): Likewise.
11325         (emit_debug_insn_after_noloc): Likewise.
11326         (emit_barrier_after): Strengthen return type from rtx to
11327         rtx_barrier *.
11328         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
11329         Add checked cast for now when converting "label" from rtx to
11330         rtx_insn *.
11331         (emit_pattern_after_setloc): Strengthen return type from rtx to
11332         rtx_insn *.  Add checked casts for now when converting "last" from
11333         rtx to rtx_insn *.
11334         (emit_pattern_after): Strengthen return type from rtx to
11335         rtx_insn *.
11336         (emit_insn_after_setloc): Likewise.
11337         (emit_insn_after): Likewise.
11338         (emit_jump_insn_after_setloc): Likewise.
11339         (emit_jump_insn_after): Likewise.
11340         (emit_call_insn_after_setloc): Likewise.
11341         (emit_call_insn_after): Likewise.
11342         (emit_debug_insn_after_setloc): Likewise.
11343         (emit_debug_insn_after): Likewise.
11344         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
11345         when converting "last" from rtx to rtx_insn *.
11346         (emit_pattern_before): Strengthen return type from rtx to
11347         rtx_insn *.
11348         (emit_insn_before_setloc): Likewise.
11349         (emit_insn_before): Likewise.
11350         (emit_jump_insn_before_setloc): Likewise.
11351         (emit_jump_insn_before): Likewise.
11352         (emit_call_insn_before_setloc): Likewise.
11353         (emit_call_insn_before): Likewise.
11354         (emit_debug_insn_before_setloc): Likewise.
11355         (emit_debug_insn_before): Likewise.
11356         (emit_insn): Strengthen return type and locals "last", "insn",
11357         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
11358         within cases where we know we have an insn.
11359         (emit_debug_insn): Likewise.
11360         (emit_jump_insn): Likewise.
11361         (emit_call_insn): Strengthen return type and local "insn" from rtx
11362         to rtx_insn *.
11363         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
11364         a checked cast to rtx_insn * for now on "label".
11365         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
11366         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
11367         (emit_use): Likewise.
11368         (gen_use): Likewise, also for local "seq".
11369         (emit): Likewise for return type and local "insn".
11370         (rtx_insn): Likewise for return type and local "new_rtx".
11372         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
11373         from rtx to rtx_barrier *.
11375         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
11376         changed return type from rtx to rtx_insn *, we must update
11377         "emit_fn" type, and this in turn means updating...
11378         (frame_insn): ...this.  Strengthen return type from rtx to
11379         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
11381 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11383         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
11384         rtx to rtx_jump_table_data *.  Also for local.
11385         * rtl.h (emit_jump_table_data): Likewise.
11387 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11389         * basic-block.h (create_basic_block_structure): Strengthen third
11390         param "bb_note" from rtx to rtx_note *.
11391         * rtl.h (emit_note_before): Strengthen return type from rtx to
11392         rtx_note *.
11393         (emit_note_after): Likewise.
11394         (emit_note): Likewise.
11395         (emit_note_copy): Likewise.  Also, strengthen param similarly.
11396         * function.h (struct rtl_data): Strengthen field
11397         "x_stack_check_probe_note" from rtx to rtx_note *.
11399         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
11400         from rtx to rtx_note *.
11401         * cfgrtl.c (create_basic_block_structure): Strengthen third param
11402         "bb_note" from rtx to rtx_note *.
11403         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
11404         when calling emit_note_copy.
11405         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
11406         rtx_note *.
11407         (emit_note_after): Likewise.
11408         (emit_note_before): Likewise.
11409         (emit_note_copy): Likewise.  Also, strengthen param similarly.
11410         (emit_note): Likewise.
11411         * except.c (emit_note_eh_region_end): Likewise for return type.
11412         Strengthen local "next" from rtx to rtx_insn *.
11413         (convert_to_eh_region_ranges): Strengthen local "note"
11414         from rtx to rtx_note *.
11415         * final.c (change_scope): Likewise.
11416         (reemit_insn_block_notes): Likewise, for both locals named "note".
11417         Also, strengthen local "insn" from rtx to rtx_insn *.
11418         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
11419         rtx to rtx_note *.
11420         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
11421         strengthen local "seq" from rtx to rtx_insn *.
11422         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
11423         to rtx_note *.
11424         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
11425         vec<rtx_note *>.
11426         (get_bb_note_from_pool): Strengthen return type from rtx to
11427         rtx_note *.
11428         (sel_create_basic_block): Strengthen local "new_bb_note" from
11429         insn_t to rtx_note *.
11430         * var-tracking.c (emit_note_insn_var_location): Strengthen local
11431         "note" from rtx to rtx_note *.
11432         (emit_notes_in_bb): Likewise.
11434 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11436         * function.h (struct rtl_data): Strengthen field
11437         "x_parm_birth_insn" from rtx to rtx_insn *.
11438         * function.c (struct assign_parm_data_all): Strengthen fields
11439         "first_conversion_insn" and "last_conversion_insn" from rtx to
11440         rtx_insn *.
11442 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11444         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
11445         to rtx_insn *; also for local "var_end_seq".
11446         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
11447         (maybe_cleanup_end_of_block): Likewise for param "last" and local
11448         "insn".
11449         (expand_gimple_cond): Likewise for locals "last2" and "last".
11450         (mark_transaction_restart_calls): Likewise for local "insn".
11451         (expand_gimple_stmt): Likewise for return type and locals "last"
11452         and "insn".
11453         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
11454         (avoid_complex_debug_insns): Likewise for param "insn".
11455         (expand_debug_locations): Likewise for locals "insn", "last",
11456         "prev_insn" and "insn2".
11457         (expand_gimple_basic_block): Likewise for local "last".
11458         (construct_exit_block): Likewise for locals "head", "end",
11459         "orig_end".
11460         (pass_expand::execute): Likewise for locals "var_seq",
11461         "var_ret_seq", "next".
11463 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11465         * asan.h (asan_emit_stack_protection): Strengthen return type from
11466         rtx to rtx_insn *.
11467         * asan.c (asan_emit_stack_protection): Likewise.  Add local
11468         "insns" to hold the return value.
11470 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11472         * basic-block.h (bb_note): Strengthen return type from rtx to
11473         rtx_note *.
11474         * sched-int.h (bb_note): Likewise.
11475         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
11477 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11479         * rtl.h (make_insn_raw): Strengthen return type from rtx to
11480         rtx_insn *.
11482         * emit-rtl.c (make_insn_raw): Strengthen return type and local
11483         "insn" from rtx to rtx_insn *.
11484         (make_debug_insn_raw): Strengthen return type from rtx to
11485         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
11486         (make_jump_insn_raw):  Strengthen return type from rtx to
11487         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
11488         (make_call_insn_raw):  Strengthen return type from rtx to
11489         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
11490         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
11491         callback from rtx to rtx_insn *; likewise for local "insn" and
11492         "next", adding a checked cast to rtx_insn in the relevant cases of
11493         the switch statement.
11494         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
11495         callback from rtx to rtx_insn *.
11496         (emit_pattern_after_setloc): Likewise.
11497         (emit_pattern_after): Likewise.
11498         (emit_pattern_before_setloc): Likewise.
11499         (emit_pattern_before): Likewise.
11501 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11503         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
11504         rtx_call_insn *.
11505         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
11506         accepting an rtx_insn *.
11507         (last_call_insn): Strengthen return type from rtx to
11508         rtx_call_insn *.
11510 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11512         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
11513         "insns" from rtx to rtx_insn *.
11514         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
11515         locals "insn" and "prev".
11517 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11519         * rtl.h (tablejump_p): Strengthen third param from rtx * to
11520         rtx_jump_table_data **.
11522         * cfgbuild.c (make_edges): Introduce local "table", using it in
11523         place of "tmp" for jump table data.
11524         (find_bb_boundaries): Strengthen local "table" from rtx to
11525         rtx_jump_table_data *.
11526         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11527         (outgoing_edges_match): Likewise for locals "table1" and "table2".
11528         (try_crossjump_to_edge): Likewise.
11529         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
11530         "table".
11531         (patch_jump_insn): Introduce local "table", using it in place of
11532         "tmp" for jump table data.
11533         (force_nonfallthru_and_redirect): Introduce local "table", so that
11534         call to tablejump_p can receive an rtx_jump_table_data **.  Update
11535         logic around the call to overwrite "note" appropriately if
11536         tablejump_p returns non-zero.
11537         (get_last_bb_insn): Introduce local "table", using it in place of
11538         "tmp" for jump table data.
11539         * dwarf2cfi.c (create_trace_edges): Likewise.
11541         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
11542         from rtx to rtx_jump_table_data *.
11543         (create_fix_barrier): Strengthen local "tmp" from rtx to
11544         rtx_jump_table_data *.
11545         (arm_reorg): Likewise for local "table".
11547         * config/s390/s390.c (s390_chunkify_start): Likewise.
11549         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
11551         * jump.c (delete_related_insns): Strengthen local "lab_next" from
11552         rtx to rtx_jump_table_data *.
11554         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
11555         rtx_jump_table_data **.  Add a checked cast when writing through
11556         the pointer: we know there that local "table" is non-NULL and that
11557         JUMP_TABLE_DATA_P (table) holds.
11558         (label_is_jump_target_p): Introduce local "table", using it in
11559         place of "tmp" for jump table data.
11561 2014-08-19  Marek Polacek  <polacek@redhat.com>
11563         PR c++/62153
11564         * doc/invoke.texi: Document -Wbool-compare.
11566 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11568         * rtl.h (entry_of_function): Strengthen return type from rtx to
11569         rtx_insn *.
11570         * cfgrtl.c (entry_of_function): Likewise.
11572 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11574         * emit-rtl.h (get_insns): Strengthen return type from rtx to
11575         rtx_insn *, adding a checked cast for now.
11576         (get_last_insn): Likewise.
11578 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11580         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
11581         rtx_code_label *.
11583         * emit-rtl.c (gen_label_rtx): Likewise.
11585 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11587         * rtl.h (previous_insn): Strengthen return type from rtx to
11588         rtx_insn *.
11589         (next_insn): Likewise.
11590         (prev_nonnote_insn): Likewise.
11591         (prev_nonnote_insn_bb): Likewise.
11592         (next_nonnote_insn): Likewise.
11593         (next_nonnote_insn_bb): Likewise.
11594         (prev_nondebug_insn): Likewise.
11595         (next_nondebug_insn): Likewise.
11596         (prev_nonnote_nondebug_insn): Likewise.
11597         (next_nonnote_nondebug_insn): Likewise.
11598         (prev_real_insn): Likewise.
11599         (next_real_insn): Likewise.
11600         (prev_active_insn): Likewise.
11601         (next_active_insn): Likewise.
11603         * emit-rtl.c (next_insn): Strengthen return type from rtx to
11604         rtx_insn *, adding a checked cast.
11605         (previous_insn): Likewise.
11606         (next_nonnote_insn): Likewise.
11607         (next_nonnote_insn_bb): Likewise.
11608         (prev_nonnote_insn): Likewise.
11609         (prev_nonnote_insn_bb): Likewise.
11610         (next_nondebug_insn): Likewise.
11611         (prev_nondebug_insn): Likewise.
11612         (next_nonnote_nondebug_insn): Likewise.
11613         (prev_nonnote_nondebug_insn): Likewise.
11614         (next_real_insn): Likewise.
11615         (prev_real_insn): Likewise.
11616         (next_active_insn): Likewise.
11617         (prev_active_insn): Likewise.
11619         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
11620         param "stepfunc" so that it returns an rtx_insn * rather than an
11621         rtx, to track the change to prev_nonnote_insn_bb, which is the
11622         only function this is called with.
11623         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
11625 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
11627         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
11628         assert.
11630 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11632         * coretypes.h (class rtx_debug_insn): Add forward declaration.
11633         (class rtx_nonjump_insn): Likewise.
11634         (class rtx_jump_insn): Likewise.
11635         (class rtx_call_insn): Likewise.
11636         (class rtx_jump_table_data): Likewise.
11637         (class rtx_barrier): Likewise.
11638         (class rtx_code_label): Likewise.
11639         (class rtx_note): Likewise.
11641         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
11642         adding the invariant DEBUG_INSN_P (X).
11643         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
11644         the invariant NONJUMP_INSN_P (X).
11645         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
11646         the invariant JUMP_P (X).
11647         (class rtx_call_insn): New, a subclass of rtx_insn, adding
11648         the invariant CALL_P (X).
11649         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
11650         invariant JUMP_TABLE_DATA_P (X).
11651         (class rtx_barrier): New, a subclass of rtx_insn, adding the
11652         invariant BARRIER_P (X).
11653         (class rtx_code_label): New, a subclass of rtx_insn, adding
11654         the invariant LABEL_P (X).
11655         (class rtx_note): New, a subclass of rtx_insn, adding
11656         the invariant NOTE_P(X).
11657         (is_a_helper <rtx_debug_insn *>::test): New.
11658         (is_a_helper <rtx_nonjump_insn *>::test): New.
11659         (is_a_helper <rtx_jump_insn *>::test): New.
11660         (is_a_helper <rtx_call_insn *>::test): New.
11661         (is_a_helper <rtx_jump_table_data *>::test): New functions,
11662         overloaded for both rtx and rtx_insn *.
11663         (is_a_helper <rtx_barrier *>::test): New.
11664         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
11665         for both rtx and rtx_insn *.
11666         (is_a_helper <rtx_note *>::test): New.
11668 2014-08-19  Marek Polacek  <polacek@redhat.com>
11670         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
11671         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11672         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
11673         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11675 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11677         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
11678         rtx_insn *.  To help with transition, for now, convert from an
11679         access macro into a pair of functions: BND_TO, returning an
11680         rtx_insn *, and...
11681         (SET_BND_TO): New function, for use where BND_TO is used as an
11682         lvalue.
11684         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
11685         SET_BND_TO.
11686         (BND_TO): New function, adding a checked cast.
11687         (SET_BND_TO): New function.
11689         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
11690         SET_BND_TO.
11691         (compute_av_set_on_boundaries): Likewise.
11693 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11695         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
11696         destination if it is used in source.
11697         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
11698         (*popcount<mode>2_falsedep_1): Likewise.
11700 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11702         PR other/62168
11703         * configure.ac: Set install_gold_as_default to no first.
11704         * configure: Regenerated.
11706 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11708         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
11709         "note_list" field will eventually be an rtx_insn *.  To help with
11710         transition, for now, convert from an access macro into a pair of
11711         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
11712         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
11713         used as an lvalue.
11715         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
11716         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
11718         * sel-sched-ir.c (init_bb): Likewise.
11719         (sel_restore_notes): Likewise.
11720         (move_bb_info): Likewise.
11721         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
11722         (SET_BB_NOTE_LIST): New function.
11724 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11726         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
11727         field will eventually be an rtx_insn *.  To help with transition,
11728         for now, convert from an access macro into a pair of functions:
11729         VINSN_INSN_RTX, returning an rtx_insn *, and...
11730         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
11731         is used as an lvalue.
11733         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
11734         SET_VINSN_INSN_RTX where it's used as an lvalue.
11735         (VINSN_INSN_RTX): New function.
11736         (SET_VINSN_INSN_RTX): New function.
11738 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11740         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
11741         eventually be rtx_insn *, but to help with transition, for now,
11742         convert from an access macro into a pair of functions: DEP_PRO
11743         returning an rtx_insn * and...
11744         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
11745         lvalue, returning an rtx&.
11746         (DEP_CON): Analogous changes to DEP_PRO above.
11747         (SET_DEP_CON): Likewise.
11749         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
11750         an lvalue to SET_DEP_CON.
11751         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
11752         (sd_copy_back_deps): Likewise for DEP_CON.
11753         (DEP_PRO): New function, adding a checked cast for now.
11754         (DEP_CON): Likewise.
11755         (SET_DEP_PRO): New function.
11756         (SET_DEP_CON): Likewise.
11758 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
11760         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
11761         (extra_options): Add i386/cygwin.opt.
11762         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
11763         (CPP_SPEC): Accept -pthread.
11764         (LINK_SPEC): Ditto.
11765         (GOMP_SELF_SPECS): Update comment.
11766         * config/i386/cygwin.opt: New file for -pthread flag.
11768 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11770         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
11771         * df.h (DF_REF_INSN): Convert from a macro to a function, so
11772         that we can return an rtx_insn *.
11774 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
11776         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
11777         when building executables, not DLLs.  Add --large-address-aware
11778         under the same conditions.
11779         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
11780         when building executables, not DLLs.  Add --large-address-aware
11781         under the same conditions when using -m32.
11783         * config/i386/cygwin-stdint.h: Throughout, make type
11784         definitions dependent on target architecture, not host.
11786 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11788         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
11789         the return type from rtx to rtx_insn *,  which will enable various
11790         conversions in followup patches.  For now this is is done by a
11791         checked cast.
11792         (NEXT_INSN): Likewise.
11793         (SET_PREV_INSN): Convert to an inline function.  This is intended
11794         for use as an lvalue, and so returns an rtx& to allow in-place
11795         modification.
11796         (SET_NEXT_INSN): Likewise.
11798 2014-07-08  Mark Wielaard  <mjw@redhat.com>
11800         PR debug/59051
11801         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
11803 2014-08-19  Marek Polacek  <polacek@redhat.com>
11805         PR c/61271
11806         * cgraphunit.c (handle_alias_pairs): Fix condition.
11808 2014-08-19  Richard Biener  <rguenther@suse.de>
11810         * gimple-fold.c (fold_gimple_assign): Properly build a
11811         null-pointer constant when devirtualizing addresses.
11813 2014-07-07  Mark Wielaard  <mjw@redhat.com>
11815         * dwarf2out.c (decl_quals): New function.
11816         (modified_type_die): Take one cv_quals argument instead of two,
11817         one for const and one for volatile.
11818         (add_type_attribute): Likewise.
11819         (generic_parameter_die): Call add_type_attribute with one modifier
11820         argument.
11821         (base_type_for_mode): Likewise.
11822         (add_bounds_info): Likewise.
11823         (add_subscript_info): Likewise.
11824         (gen_array_type_die): Likewise.
11825         (gen_descr_array_type_die): Likewise.
11826         (gen_entry_point_die): Likewise.
11827         (gen_enumeration_type_die): Likewise.
11828         (gen_formal_parameter_die): Likewise.
11829         (gen_subprogram_die): Likewise.
11830         (gen_variable_die): Likewise.
11831         (gen_const_die): Likewise.
11832         (gen_field_die): Likewise.
11833         (gen_pointer_type_die): Likewise.
11834         (gen_reference_type_die): Likewise.
11835         (gen_ptr_to_mbr_type_die): Likewise.
11836         (gen_inheritance_die): Likewise.
11837         (gen_subroutine_type_die): Likewise.
11838         (gen_typedef_die): Likewise.
11839         (force_type_die): Likewise.
11841 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11843         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
11844         if unset.
11845         * configure: Regenerate.
11847 2014-08-19  Richard Biener  <rguenther@suse.de>
11849         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
11850         DECL_EXTERNALs in BLOCKs as non-references.
11851         * tree-streamer-out.c (streamer_write_chain): Likewise.
11853 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11854             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11855             Anna Tikhonova  <anna.tikhonova@intel.com>
11856             Ilya Tocar  <ilya.tocar@intel.com>
11857             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11858             Ilya Verbin  <ilya.verbin@intel.com>
11859             Kirill Yukhin  <kirill.yukhin@intel.com>
11860             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11862         * config/i386/sse.md
11863         (define_mode_iterator VI48_AVX512F): Delete.
11864         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
11865         (define_mode_iterator VI2_AVX512VL): Ditto.
11866         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
11867         Delete.
11868         (define_insn
11869         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
11870         New.
11871         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
11872         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
11873         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11874         with VI48_AVX512F_AVX512VL): New.
11875         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11876         with VI2_AVX512VL): Ditto.
11878 2014-08-19  Marek Polacek  <polacek@redhat.com>
11880         * doc/invoke.texi: Document -Wc99-c11-compat.
11882 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11884         * rtl.h (PREV_INSN): Split macro in two: the existing one,
11885         for rvalues, and...
11886         (SET_PREV_INSN): New macro, for use as an lvalue.
11887         (NEXT_INSN, SET_NEXT_INSN): Likewise.
11889         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
11890         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
11891         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11892         (fixup_abnormal_edges): Likewise.
11893         (unlink_insn_chain): Likewise.
11894         (fixup_reorder_chain): Likewise.
11895         (cfg_layout_delete_block): Likewise.
11896         (cfg_layout_merge_blocks): Likewise.
11897         * combine.c (update_cfg_for_uncondjump): Likewise.
11898         * emit-rtl.c (link_insn_into_chain): Likewise.
11899         (remove_insn): Likewise.
11900         (delete_insns_since): Likewise.
11901         (reorder_insns_nobb): Likewise.
11902         (emit_insn_after_1): Likewise.
11903         * final.c (rest_of_clean_state): Likewise.
11904         (final_scan_insn): Likewise.
11905         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
11906         * haifa-sched.c (concat_note_lists): Likewise.
11907         (remove_notes): Likewise.
11908         (restore_other_notes): Likewise.
11909         (move_insn): Likewise.
11910         (unlink_bb_notes): Likewise.
11911         (restore_bb_notes): Likewise.
11912         * jump.c (delete_for_peephole): Likewise.
11913         * optabs.c (emit_libcall_block_1): Likewise.
11914         * reorg.c (emit_delay_sequence): Likewise.
11915         (fill_simple_delay_slots): Likewise.
11916         * sel-sched-ir.c (sel_move_insn): Likewise.
11917         (sel_remove_insn): Likewise.
11918         (get_bb_note_from_pool): Likewise.
11919         * sel-sched.c (move_nop_to_previous_block): Likewise.
11921         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
11922         * config/c6x/c6x.c (gen_one_bundle): Likewise.
11923         (c6x_gen_bundles): Likewise.
11924         (hwloop_optimize): Likewise.
11925         * config/frv/frv.c (frv_function_prologue): Likewise.
11926         (frv_register_nop): Likewise.
11927         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
11928         (ia64_reorg): Likewise.
11929         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
11930         (mep_make_bundle): Likewise.
11931         (mep_bundle_insns): Likewise.
11932         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
11933         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
11934         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
11936 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11938         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
11939         return type from rtx to rtx_insn *.
11940         (BB_END): Likewise.
11941         (BB_HEADER): Likewise.
11942         (BB_FOOTER): Likewise.
11943         (SET_BB_HEAD): Convert to a function.
11944         (SET_BB_END): Likewise.
11945         (SET_BB_HEADER): Likewise.
11946         (SET_BB_FOOTER): Likewise.
11948         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
11949         Strengthen the return type from rtx to rtx_insn *.  For now, this
11950         is done by adding a checked cast, but this will eventually
11951         become a field lookup.
11952         (BB_END): Likewise.
11953         (BB_HEADER): Likewise.
11954         (BB_FOOTER): Likewise.
11955         (SET_BB_HEAD): New function, from macro of same name.  This is
11956         intended for use as an lvalue, and so returns an rtx& to allow
11957         in-place modification.
11958         (SET_BB_END): Likewise.
11959         (SET_BB_HEADER): Likewise.
11960         (SET_BB_FOOTER): Likewise.
11962 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
11964         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
11965         for rvalues, and...
11966         (SET_BB_HEAD): New macro, for use as a lvalue.
11967         (BB_END, SET_BB_END): Likewise.
11968         (BB_HEADER, SET_BB_HEADER): Likewise.
11969         (BB_FOOTER, SET_BB_FOOTER): Likewise.
11971         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
11972         of BB_* macros into SET_BB_* macros.
11973         (fix_crossing_unconditional_branches): Likewise.
11974         * caller-save.c (save_call_clobbered_regs): Likewise.
11975         (insert_one_insn): Likewise.
11976         * cfgbuild.c (find_bb_boundaries): Likewise.
11977         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11978         (outgoing_edges_match): Likewise.
11979         (try_optimize_cfg): Likewise.
11980         * cfgexpand.c (expand_gimple_cond): Likewise.
11981         (expand_gimple_tailcall): Likewise.
11982         (expand_gimple_basic_block): Likewise.
11983         (construct_exit_block): Likewise.
11984         * cfgrtl.c (delete_insn): Likewise.
11985         (create_basic_block_structure): Likewise.
11986         (rtl_delete_block): Likewise.
11987         (rtl_split_block): Likewise.
11988         (emit_nop_for_unique_locus_between): Likewise.
11989         (rtl_merge_blocks): Likewise.
11990         (block_label): Likewise.
11991         (try_redirect_by_replacing_jump): Likewise.
11992         (emit_barrier_after_bb): Likewise.
11993         (fixup_abnormal_edges): Likewise.
11994         (record_effective_endpoints): Likewise.
11995         (relink_block_chain): Likewise.
11996         (fixup_reorder_chain): Likewise.
11997         (fixup_fallthru_exit_predecessor): Likewise.
11998         (cfg_layout_duplicate_bb): Likewise.
11999         (cfg_layout_split_block): Likewise.
12000         (cfg_layout_delete_block): Likewise.
12001         (cfg_layout_merge_blocks): Likewise.
12002         * combine.c (update_cfg_for_uncondjump): Likewise.
12003         * emit-rtl.c (add_insn_after): Likewise.
12004         (remove_insn): Likewise.
12005         (reorder_insns): Likewise.
12006         (emit_insn_after_1): Likewise.
12007         * haifa-sched.c (get_ebb_head_tail): Likewise.
12008         (restore_other_notes): Likewise.
12009         (move_insn): Likewise.
12010         (sched_extend_bb): Likewise.
12011         (fix_jump_move): Likewise.
12012         * ifcvt.c (noce_process_if_block): Likewise.
12013         (dead_or_predicable): Likewise.
12014         * ira.c (update_equiv_regs): Likewise.
12015         * reg-stack.c (change_stack): Likewise.
12016         * sel-sched-ir.c (sel_move_insn): Likewise.
12017         * sel-sched.c (move_nop_to_previous_block): Likewise.
12019         * config/c6x/c6x.c (hwloop_optimize): Likewise.
12020         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
12022 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12024         * rtl.h (for_each_rtx_in_insn): New function.
12025         * rtlanal.c (for_each_rtx_in_insn): Likewise.
12027 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12029         * coretypes.h (class rtx_insn): Add forward declaration.
12031         * rtl.h: Include is-a.h.
12032         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
12033         workaround to ensure gengtype knows inheritance is occurring,
12034         whilst continuing to use the pre-existing special-casing for
12035         rtx_def.
12036         (class rtx_insn): New subclass of rtx_def, adding the
12037         invariant that we're dealing with something we can sanely use
12038         INSN_UID, NEXT_INSN, PREV_INSN on.
12039         (is_a_helper <rtx_insn *>::test): New.
12040         (is_a_helper <const rtx_insn *>::test): New.
12042 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12044         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
12046 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12048         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
12049         comdats as extern.
12051 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12053         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
12054         to BUILT_IN_UNREACHABLE.
12056 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
12058         PR target/62011
12059         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
12060         New tune flag.
12061         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
12062         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
12063         (ffs<mode>2): Do not expand with tzcnt for
12064         TARGET_AVOID_FALSE_DEP_FOR_BMI.
12065         (ffssi2_no_cmove): Ditto.
12066         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
12067         (ctz<mode>2): New expander.
12068         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
12069         (*ctz<mode>2_falsedep): New insn.
12070         (*ctz<mode>2): Rename from ctz<mode>2.
12071         (clz<mode>2_lzcnt): New expander.
12072         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
12073         (*clz<mode>2_lzcnt_falsedep): New insn.
12074         (*clz<mode>2): Rename from ctz<mode>2.
12075         (popcount<mode>2): New expander.
12076         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
12077         (*popcount<mode>2_falsedep): New insn.
12078         (*popcount<mode>2): Rename from ctz<mode>2.
12079         (*popcount<mode>2_cmp): Remove.
12080         (*popcountsi2_cmp_zext): Ditto.
12082 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
12084         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
12085         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
12086         * config/microblaze/microblaze.h
12087         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
12089 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12091         PR other/62168
12092         * configure.ac: Set install_gold_as_default to no for
12093          --enable-gold=no.
12094          * configure: Regenerated.
12096 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
12098         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
12099         * config.in: Add undef of HAVE_isl.
12100         * configure: Regenerate.
12101         * configure.ac: Add definition of HAVE_isl.
12102         * graphite-blocking.c: Add checking of HAVE_isl.
12103         * graphite-dependences.c: Likewise.
12104         * graphite-interchange.c: Likewise.
12105         * graphite-isl-ast-to-gimple.c: Likewise.
12106         * graphite-optimize-isl.c: Likewise.
12107         * graphite-poly.c: Likewise.
12108         * graphite-scop-detection.c: Likewise.
12109         * graphite-sese-to-poly.c: Likewise.
12110         * graphite.c: Likewise.
12111         * toplev.c: Replace the checking of HAVE_cloog with the checking
12112         of HAVE_isl.
12114 2014-08-18  Richard Biener  <rguenther@suse.de>
12116         PR tree-optimization/62090
12117         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
12118         (fold_builtin_3): Do not fold snprintf.
12119         (fold_builtin_4): Likewise.
12120         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
12121         moved from builtins.c.
12122         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
12123         (gimple_fold_builtin): Do not fold sprintf here.
12125 2014-08-18  Richard Biener  <rguenther@suse.de>
12127         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
12128         code to ...
12129         (maybe_canonicalize_mem_ref_addr): ... this function.
12130         (fold_stmt_1): Apply it here before all simplification.
12132 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
12134         PR ipa/61800
12135         * cgraph.h (cgraph_node::create_indirect_edge): Add
12136         compute_indirect_info param.
12137         * cgraph.c (cgraph_node::create_indirect_edge): Compute
12138         indirect_info only when it is required.
12139         * cgraphclones.c (cgraph_clone_edge): Do not recompute
12140         indirect_info fore cloned indirect edge.
12142 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12143             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12144             Anna Tikhonova  <anna.tikhonova@intel.com>
12145             Ilya Tocar  <ilya.tocar@intel.com>
12146             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12147             Ilya Verbin  <ilya.verbin@intel.com>
12148             Kirill Yukhin  <kirill.yukhin@intel.com>
12149             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12151         * config/i386/sse.md
12152         (define_mode_iterator VI8_AVX2_AVX512BW): New.
12153         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
12155 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12156             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12157             Anna Tikhonova  <anna.tikhonova@intel.com>
12158             Ilya Tocar  <ilya.tocar@intel.com>
12159             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12160             Ilya Verbin  <ilya.verbin@intel.com>
12161             Kirill Yukhin  <kirill.yukhin@intel.com>
12162             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12164         * config/i386/sse.md
12165         (define_mode_iterator VF1_AVX512VL): New.
12166         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
12167         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
12168         New.
12170 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12171             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12172             Anna Tikhonova  <anna.tikhonova@intel.com>
12173             Ilya Tocar  <ilya.tocar@intel.com>
12174             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12175             Ilya Verbin  <ilya.verbin@intel.com>
12176             Kirill Yukhin  <kirill.yukhin@intel.com>
12177             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12179         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
12180         * config/i386/i386.md
12181         (define_code_iterator any_float): New.
12182         (define_code_attr floatsuffix): New.
12183         * config/i386/sse.md
12184         (define_mode_iterator VF1_128_256VL): New.
12185         (define_mode_iterator VF2_512_256VL): New.
12186         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
12187         TARGET check.
12188         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
12189         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
12190         New.
12191         (define_mode_attr qq2pssuff): New.
12192         (define_mode_attr sselongvecmode): New.
12193         (define_mode_attr sselongvecmodelower): New.
12194         (define_mode_attr sseintvecmode3): New.
12195         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
12196         New.
12197         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
12198         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
12199         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
12200         (define_insn "ufloatv2siv2df2<mask_name>"): New.
12202 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12203             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12204             Anna Tikhonova  <anna.tikhonova@intel.com>
12205             Ilya Tocar  <ilya.tocar@intel.com>
12206             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12207             Ilya Verbin  <ilya.verbin@intel.com>
12208             Kirill Yukhin  <kirill.yukhin@intel.com>
12209             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12211         * config/i386/sse.md
12212         (define_mode_iterator VF2_AVX512VL): New.
12213         (define_mode_attr sseintvecmode2): New.
12214         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12215         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12216         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12217         (define_insn
12218         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12219         Ditto.
12220         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12221         Ditto.
12222         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12223         Ditto.
12225 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12226             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12227             Anna Tikhonova  <anna.tikhonova@intel.com>
12228             Ilya Tocar  <ilya.tocar@intel.com>
12229             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12230             Ilya Verbin  <ilya.verbin@intel.com>
12231             Kirill Yukhin  <kirill.yukhin@intel.com>
12232             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12234         * config/i386/i386.md
12235         (define_insn "*movoi_internal_avx"): Add evex version.
12236         (define_insn "*movti_internal"): Ditto.
12238 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12239             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12240             Anna Tikhonova  <anna.tikhonova@intel.com>
12241             Ilya Tocar  <ilya.tocar@intel.com>
12242             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12243             Ilya Verbin  <ilya.verbin@intel.com>
12244             Kirill Yukhin  <kirill.yukhin@intel.com>
12245             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12247         * config/i386/i386.md
12248         (define_attr "isa"): Add avx512dq, noavx512dq.
12249         (define_attr "enabled"): Ditto.
12250         * config/i386/sse.md
12251         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
12253 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12254             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12255             Anna Tikhonova  <anna.tikhonova@intel.com>
12256             Ilya Tocar  <ilya.tocar@intel.com>
12257             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12258             Ilya Verbin  <ilya.verbin@intel.com>
12259             Kirill Yukhin  <kirill.yukhin@intel.com>
12260             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12262         * config/i386/i386.c
12263         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
12264         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
12265         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
12266         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
12267         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
12268         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
12269         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
12270         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
12271         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
12272         * config/i386/sse.md
12273         (define_mode_iterator VMOVE): Allow V4TI mode.
12274         (define_mode_iterator V_AVX512VL): New.
12275         (define_mode_iterator V): New handling for AVX512VL.
12276         (define_insn "avx512f_load<mode>_mask"): Delete.
12277         (define_insn "<avx512>_load<mode>_mask"): New.
12278         (define_insn "avx512f_store<mode>_mask"): Delete.
12279         (define_insn "<avx512>_store<mode>_mask"): New.
12282 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
12284         PR sanitizer/62089
12285         * asan.c (instrument_derefs): Fix bitfield check.
12287 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12289         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
12290         * config/rs6000/htm.md (ttest): Remove clobber.
12291         * config/rs6000/predicates.md (any_mask_operand): New predicate.
12292         (and_operand): Reformat.
12293         (and_2rld_operand): New predicate.
12294         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
12295         parameter.
12296         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
12297         parameter.  Handle AND directly.
12298         (rs6000_split_logical_di): Remove last parameter.
12299         (rs6000_split_logical): Remove last parameter.  Remove obsolete
12300         comment.
12301         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
12302         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
12303         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
12304         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
12305         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
12306         and 5 anonymous splitters):  Delete.
12307         (and<mode>3): New expander.
12308         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
12309         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
12310         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
12311         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
12312         (floatdisf2_internal1): Remove clobbers.
12313         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
12314         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
12315         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
12316         (and<mode>3 for BOOL_128): Remove clobber.
12317         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
12318         rs6000_split_logical.
12319         (*bool<mode>3_internal for BOOL_128): Adjust call of
12320         rs6000_split_logical.
12321         (*boolc<mode>3_internal1 for BOOL_128,
12322         *boolc<mode>3_internal2 for BOOL_128,
12323         *boolcc<mode>3_internal1 for BOOL_128,
12324         *boolcc<mode>3_internal2 for BOOL_128,
12325         *eqv<mode>3_internal1 for BOOL_128,
12326         *eqv<mode>3_internal2 for BOOL_128,
12327         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
12328         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
12329         clobber.
12330         (*vec_reload_and_reg_<mptrsize>): Delete.
12332 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12334         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
12335         and split, *boolccsi3_internal3 and split): Delete.
12336         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
12337         *boolccdi3_internal3 and split): Delete.
12338         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
12339         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
12341 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12343         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
12344         and split, *boolcsi3_internal3 and split): Delete.
12345         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
12346         *boolcdi3_internal3 and split): Delete.
12347         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
12349 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12351         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
12352         <'u'>: Also support printing the low-order 16 bits.
12353         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
12354         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
12355         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
12356         *booldi3_internal3 and split): Delete.
12357         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
12358         *bool<mode>3_dot2): New.
12359         (two anonymous define_splits for non_logical_cint_operand): Merge.
12361 2014-08-17  Marek Polacek  <polacek@redhat.com>
12362             Manuel López-Ibáñez  <manu@gcc.gnu.org>
12364         PR c/62059
12365         * diagnostic.c (adjust_line): Add gcc_checking_assert.
12366         (diagnostic_show_locus): Don't print caret diagnostic
12367         if a column is larger than the line_width.
12369 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
12371         * common.opt: Make the ISL AST generator to be the main code generator
12372         of Graphite.
12374 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
12376         * wide-int.h (generic_wide_int): Declare as class instead of struct.
12378 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
12380         PR target/61641
12381         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
12382         Declare.
12383         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
12384         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
12385         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
12386         Define.
12387         * config/pa/pa.md (begin_brtab): Delete insn.
12388         (end_brtab): Likewise.
12390 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12392         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
12394 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
12396         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12397         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12398         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12399         (get_dynamic_type): Remove.
12400         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12401         (clear_speculation): Bring to ipa-deivrt.h
12402         (get_class_context): Rename to ...
12403         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12404         (contains_type_p): Update.
12405         (get_dynamic_type): Rename to ...
12406         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12407         (possible_polymorphic_call_targets): UPdate.
12408         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12409         * ipa-prop.c (ipa_analyze_call_uses): Update.
12411 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
12413         * doc/invoke.texi (SH options): Document missing processor variant
12414         options.  Remove references to Hitachi.  Undocument deprecated mspace
12415         option.
12417 2014-08-15  Jason Merrill  <jason@redhat.com>
12419         * tree.c (type_hash_canon): Uncomment assert.
12421 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12423         * input.h (in_system_header_at): Add comment.
12425 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12427         PR fortran/44054
12428         * diagnostic.c (build_message_string): Make it extern.
12429         * diagnostic.h (build_message_string): Make it extern.
12431 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
12433         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
12434         load/store from/to non-floating class pseudo.
12436 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12438         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
12440 2014-08-15  Richard Biener  <rguenther@suse.de>
12442         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
12443         (get_constraint_for_ssa_var): Remove dead code.
12444         (get_constraint_for_1): Adjust.
12445         (find_what_var_points_to): Likewise.
12446         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
12448 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
12450         PR target/61878
12451         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
12452         (_mm512_mask_cmpge_epu32_mask): Ditto.
12453         (_mm512_cmpge_epu32_mask): Ditto.
12454         (_mm512_mask_cmpge_epi64_mask): Ditto.
12455         (_mm512_cmpge_epi64_mask): Ditto.
12456         (_mm512_mask_cmpge_epu64_mask): Ditto.
12457         (_mm512_cmpge_epu64_mask): Ditto.
12458         (_mm512_mask_cmple_epi32_mask): Ditto.
12459         (_mm512_cmple_epi32_mask): Ditto.
12460         (_mm512_mask_cmple_epu32_mask): Ditto.
12461         (_mm512_cmple_epu32_mask): Ditto.
12462         (_mm512_mask_cmple_epi64_mask): Ditto.
12463         (_mm512_cmple_epi64_mask): Ditto.
12464         (_mm512_mask_cmple_epu64_mask): Ditto.
12465         (_mm512_cmple_epu64_mask): Ditto.
12466         (_mm512_mask_cmplt_epi32_mask): Ditto.
12467         (_mm512_cmplt_epi32_mask): Ditto.
12468         (_mm512_mask_cmplt_epu32_mask): Ditto.
12469         (_mm512_cmplt_epu32_mask): Ditto.
12470         (_mm512_mask_cmplt_epi64_mask): Ditto.
12471         (_mm512_cmplt_epi64_mask): Ditto.
12472         (_mm512_mask_cmplt_epu64_mask): Ditto.
12473         (_mm512_cmplt_epu64_mask): Ditto.
12474         (_mm512_mask_cmpneq_epi32_mask): Ditto.
12475         (_mm512_mask_cmpneq_epu32_mask): Ditto.
12476         (_mm512_cmpneq_epu32_mask): Ditto.
12477         (_mm512_mask_cmpneq_epi64_mask): Ditto.
12478         (_mm512_cmpneq_epi64_mask): Ditto.
12479         (_mm512_mask_cmpneq_epu64_mask): Ditto.
12480         (_mm512_cmpneq_epu64_mask): Ditto.
12481         (_mm512_castpd_ps): Ditto.
12482         (_mm512_castpd_si512): Ditto.
12483         (_mm512_castps_pd): Ditto.
12484         (_mm512_castps_si512): Ditto.
12485         (_mm512_castsi512_ps): Ditto.
12486         (_mm512_castsi512_pd): Ditto.
12487         (_mm512_castpd512_pd128): Ditto.
12488         (_mm512_castps512_ps128): Ditto.
12489         (_mm512_castsi512_si128): Ditto.
12490         (_mm512_castpd512_pd256): Ditto.
12491         (_mm512_castps512_ps256): Ditto.
12492         (_mm512_castsi512_si256): Ditto.
12493         (_mm512_castpd128_pd512): Ditto.
12494         (_mm512_castps128_ps512): Ditto.
12495         (_mm512_castsi128_si512): Ditto.
12496         (_mm512_castpd256_pd512): Ditto.
12497         (_mm512_castps256_ps512): Ditto.
12498         (_mm512_castsi256_si512): Ditto.
12499         (_mm512_cmpeq_epu32_mask): Ditto.
12500         (_mm512_mask_cmpeq_epu32_mask): Ditto.
12501         (_mm512_mask_cmpeq_epu64_mask): Ditto.
12502         (_mm512_cmpeq_epu64_mask): Ditto.
12503         (_mm512_cmpgt_epu32_mask): Ditto.
12504         (_mm512_mask_cmpgt_epu32_mask): Ditto.
12505         (_mm512_mask_cmpgt_epu64_mask): Ditto.
12506         (_mm512_cmpgt_epu64_mask): Ditto.
12507         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
12508         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
12509         * config/i386/i386.c (enum ix86_builtins): Add
12510         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
12511         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
12512         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
12513         (bdesc_args): Add __builtin_ia32_si512_256si,
12514         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
12515         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
12516         __builtin_ia32_pd512_pd.
12517         (ix86_expand_args_builtin): Handle new FTYPEs.
12518         * config/i386/sse.md (castmode): Add 512-bit modes.
12519         (AVX512MODE2P): New.
12520         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
12521         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
12523 2014-08-15  Richard Biener  <rguenther@suse.de>
12525         * fold-const.c (tree_swap_operands_p): Put all constants
12526         last, also strip sign-changing NOPs when considering further
12527         canonicalization.  Canonicalize also when optimizing for size.
12529 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12531         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
12532         one_match > zero_match case to just before simple_sequence.
12534 2014-08-15  Richard Biener  <rguenther@suse.de>
12536         * data-streamer.h (streamer_string_index, string_for_index):
12537         Remove.
12538         * data-streamer-out.c (streamer_string_index): Make static.
12539         * data-streamer-in.c (string_for_index): Likewise.
12540         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
12541         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
12543 2014-08-15  Richard Biener  <rguenther@suse.de>
12545         PR tree-optimization/62031
12546         * tree-data-ref.c (dr_analyze_indices): Do not set
12547         DR_UNCONSTRAINED_BASE.
12548         (dr_may_alias_p): All indirect accesses have to go the
12549         formerly DR_UNCONSTRAINED_BASE path.
12550         * tree-data-ref.h (struct indices): Remove
12551         unconstrained_base member.
12552         (DR_UNCONSTRAINED_BASE): Remove.
12554 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
12556         PR middle-end/62092
12557         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
12558         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
12559         in OMP_CLAUSE_MAP in some outer target region.
12561 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
12563         * tree-ssa-loop-ivopts.c (ivopts_data): New field
12564         name_expansion_cache.
12565         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
12566         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
12567         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
12568         (difference_cannot_overflow_p): New parameter.  Use affine
12569         expansion for equality check.
12570         (iv_elimination_compare_lt): Pass new argument.
12572 2014-08-14  DJ Delorie  <dj@redhat.com>
12574         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
12575         variables to the accumulator.
12577         * config/rl78/predicates.md (rl78_near_mem_operand): New.
12578         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
12579         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
12580         with far-far moves.
12582         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
12583         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
12584         (umulqihi3_virt): Likewise.
12585         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
12586         (umulqihi3_real): Likewise.
12588         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
12590 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
12592         PR tree-optimization/62091
12593         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
12594         function_entry_reached.
12595         (walk_aliased_vdefs): Clear it here.
12596         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
12598 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
12600         * ipa-utils.h (compare_virtual_tables): Declare.
12601         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
12603 2014-08-14  Marek Polacek  <polacek@redhat.com>
12605         DR 458
12606         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
12607         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
12609 2014-08-14  Tom de Vries  <tom@codesourcery.com>
12611         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
12613 2014-08-14  Tom de Vries  <tom@codesourcery.com>
12615         PR rtl-optimization/62004
12616         PR rtl-optimization/62030
12617         * ifcvt.c (rtx_interchangeable_p): New function.
12618         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
12619         * emit-rtl.h (mem_attrs_eq_p): Declare.
12621 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
12623         * graphite-scop-detection.c:
12624         Add inclusion of cp-tree.h.
12625         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
12626         in case they are pointers to object types
12628 2014-08-14  Richard Biener  <rguenther@suse.de>
12630         * BASE-VER: Change to 5.0.0
12632 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12633             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12634             Anna Tikhonova  <anna.tikhonova@intel.com>
12635             Ilya Tocar  <ilya.tocar@intel.com>
12636             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12637             Ilya Verbin  <ilya.verbin@intel.com>
12638             Kirill Yukhin  <kirill.yukhin@intel.com>
12639             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12641         * config/i386/sse.md (define_mode_attr avx512): New.
12642         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
12643         V4DI modes.
12644         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
12645         (define_mode_attr ssse3_avx2): Ditto.
12646         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
12647         (define_mode_attr avx2_avx512bw): New.
12648         (define_mode_attr ssedoublemodelower): New.
12649         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
12650         V32HI, V64QI modes.
12651         (define_mode_attr ssebytemode): Allow V8DI modes.
12652         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
12653         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
12654         (define_mode_attr ssePSmode2): New.
12655         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
12656         V16HI, V32HI modes.
12657         (define_mode_attr dbpsadbwmode): New.
12658         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
12659         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
12660         (vi8_sse4_1_avx2_avx512): New.
12661         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
12662         mode attribute.
12663         (define_mode_attr blendbits): Move before its immediate use.
12665 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12666             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12667             Anna Tikhonova  <anna.tikhonova@intel.com>
12668             Ilya Tocar  <ilya.tocar@intel.com>
12669             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12670             Ilya Verbin  <ilya.verbin@intel.com>
12671             Kirill Yukhin  <kirill.yukhin@intel.com>
12672             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12674         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
12675         * config/i386/subst.md
12676         (define_mode_iterator SUBST_V): Update.
12677         (define_mode_iterator SUBST_A): Ditto.
12678         (define_subst_attr "mask_operand7"): New.
12679         (define_subst_attr "mask_operand10"): New.
12680         (define_subst_attr "mask_operand_arg34") : New.
12681         (define_subst_attr "mask_expand_op3"): New.
12682         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
12683         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
12684         (define_subst_attr "mask_avx512vl_condition"): New.
12685         (define_subst_attr "round_mask_operand4"): Ditto.
12686         (define_subst_attr "round_mask_scalar_op3"): Delete.
12687         (define_subst_attr "round_mask_op4"): New.
12688         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
12689         V16SImode.
12690         (define_subst_attr "round_modev8sf_condition"): New.
12691         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
12692         <MODE>mode.
12693         (define_subst_attr "round_saeonly_mask_operand4"): New.
12694         (define_subst_attr "round_saeonly_mask_op4"): New.
12695         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
12696         V8DImode, V16SImode.
12697         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
12698         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
12699         (define_subst_attr "mask_expand4_args"): New.
12700         (define_subst "mask_expand4"): New.
12702 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12703             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12704             Anna Tikhonova  <anna.tikhonova@intel.com>
12705             Ilya Tocar  <ilya.tocar@intel.com>
12706             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12707             Ilya Verbin  <ilya.verbin@intel.com>
12708             Kirill Yukhin  <kirill.yukhin@intel.com>
12709             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12711         * config/i386/i386.md
12712         (define_attr "isa"): Add avx512bw,noavx512bw.
12713         (define_attr "enabled"): Ditto.
12714         (define_split): Add 32/64-bit mask logic.
12715         (define_insn "*k<logic>qi"): New.
12716         (define_insn "*k<logic>hi"): New.
12717         (define_insn "*anddi_1"): Add mask version.
12718         (define_insn "*andsi_1"): Ditto.
12719         (define_insn "*<code><mode>_1"): Ditto.
12720         (define_insn "*<code>hi_1"): Ditto.
12721         (define_insn "kxnor<mode>"): New.
12722         (define_insn "kunpcksi"): New.
12723         (define_insn "kunpckdi"): New.
12724         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
12725         (define_insn "*one_cmplhi2_1"): Ditto.
12727 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12728             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12729             Anna Tikhonova  <anna.tikhonova@intel.com>
12730             Ilya Tocar  <ilya.tocar@intel.com>
12731             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12732             Ilya Verbin  <ilya.verbin@intel.com>
12733             Kirill Yukhin  <kirill.yukhin@intel.com>
12734             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12736         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
12737         V32HImode.
12739 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12740             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12741             Anna Tikhonova  <anna.tikhonova@intel.com>
12742             Ilya Tocar  <ilya.tocar@intel.com>
12743             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12744             Ilya Verbin  <ilya.verbin@intel.com>
12745             Kirill Yukhin  <kirill.yukhin@intel.com>
12746             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12748         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
12749         registers.
12750         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
12751         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
12752         xmm/ymm16+ when availble.
12753         * config/i386/i386.h
12754         (HARD_REGNO_NREGS): Add mask regs.
12755         (VALID_AVX512F_REG_MODE): Ditto.
12756         (VALID_AVX512F_REG_MODE) : Define.
12757         (VALID_MASK_AVX512BW_MODE): Ditto.
12758         (reg_class) (MASK_REG_P(X)): Define.
12759         * config/i386/i386.md: Do not split long moves with mask register,
12760         use kmovb if avx512bw is availible.
12761         (movdi_internal): Handle mask registers.
12763 2014-08-14  Richard Biener  <rguenther@suse.de>
12765         PR tree-optimization/62081
12766         * tree-ssa-loop.c (pass_fix_loops): New pass.
12767         (pass_tree_loop::gate):  Do not fixup loops here.
12768         * tree-pass.h (make_pass_fix_loops): Declare.
12769         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
12771 2014-08-14  Richard Biener  <rguenther@suse.de>
12773         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
12774         (type_hash_canon): ... this and avoid 2nd lookup for the add.
12776 2014-08-14  Richard Biener  <rguenther@suse.de>
12778         PR tree-optimization/62090
12779         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
12780         (fold_builtin_2): Do not fold sprintf.
12781         (fold_builtin_3): Likewise.
12782         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
12783         moved from builtins.c.
12784         (gimple_fold_builtin): Fold sprintf.
12786 2014-08-14  Richard Biener  <rguenther@suse.de>
12788         PR rtl-optimization/62079
12789         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
12790         run cleanup_cfg.
12792 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
12794         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
12795         current_function_decl.
12797 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
12799         * cgraph.c (cgraph_node::function_symbol): Fix wrong
12800         cgraph_function_node to cgraph_node::function_symbol
12801         refactoring.
12803 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12805         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
12806         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
12808 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
12810         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
12811         warning.
12813 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
12815         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
12816         generator.
12818 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
12820         PR target/62025
12821         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
12822         any registers that are used in mem_insn.
12824 2014-08-12  Steve Ellcey  <sellcey@mips.com>
12826         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
12828 2014-08-12  Steve Ellcey  <sellcey@mips.com>
12830         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
12831         (MULTILIB_DIRNAMES): Ditto.
12832         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
12833         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
12834         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
12835         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
12836         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
12837         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
12839 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12841         PR target/61413
12842         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
12843         of __ARM_SIZEOF_WCHAR_T.
12845 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12847         PR target/62098
12848         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
12849         Remove unnecessary attributes.
12851 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
12853         * internal-fn.c (init_internal_fns): Fix off-by-one.
12855 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12856             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12857             Anna Tikhonova  <anna.tikhonova@intel.com>
12858             Ilya Tocar  <ilya.tocar@intel.com>
12859             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12860             Ilya Verbin  <ilya.verbin@intel.com>
12861             Kirill Yukhin  <kirill.yukhin@intel.com>
12862             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12864         * config/i386/i386.c (standard_sse_constant_opcode): Use
12865         vpxord/vpternlog if avx512 is availible.
12867 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12869         PR middle-end/62103
12870         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
12871         bitfields, that is when size doesn't match the size of type or the
12872         size of the constructor.
12874 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12876         * config/rs6000/constraints.md (wh constraint): New constraint,
12877         for FP registers if direct move is available.
12878         (wi constraint): New constraint, for VSX/FP registers that can
12879         handle 64-bit integers.
12880         (wj constraint): New constraint for VSX/FP registers that can
12881         handle 64-bit integers for direct moves.
12882         (wk constraint): New constraint for VSX/FP registers that can
12883         handle 64-bit doubles for direct moves.
12884         (wy constraint): Make documentation match implementation.
12886         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
12887         scalar_in_vmx_p field to simplify tests of whether SFmode or
12888         DFmode can go in the Altivec registers.
12889         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
12890         (rs6000_setup_reg_addr_masks): Likewise.
12891         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
12892         field, and wh/wi/wj/wk constraints.
12893         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
12894         the wh/wi/wj/wk constraints.
12895         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
12896         upper registers, prefer VSX registers unless the operation is a
12897         memory operation with REG+OFFSET addressing.
12899         * config/rs6000/vsx.md (VSr mode attribute): Add support for
12900         DImode.  Change SFmode to use ww constraint instead of d to allow
12901         SF registers in the upper registers.
12902         (VSr2): Likewise.
12903         (VSr3): Likewise.
12904         (VSr5): Fix thinko in comment.
12905         (VSa): New mode attribute that is an alternative to wa, that
12906         returns the VSX register class that a mode can go in, but may not
12907         be the preferred register class.
12908         (VS_64dm): New mode attribute for appropriate register classes for
12909         referencing 64-bit elements of vectors for direct moves and normal
12910         moves.
12911         (VS_64reg): Likewise.
12912         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
12913         register allocator to only registers the data type can handle.
12914         (vsx_le_perm_load_<mode>): Likewise.
12915         (vsx_le_perm_store_<mode>): Likewise.
12916         (vsx_xxpermdi2_le_<mode>): Likewise.
12917         (vsx_xxpermdi4_le_<mode>): Likewise.
12918         (vsx_lxvd2x2_le_<mode>): Likewise.
12919         (vsx_lxvd2x4_le_<mode>): Likewise.
12920         (vsx_stxvd2x2_le_<mode>): Likewise.
12921         (vsx_add<mode>3): Likewise.
12922         (vsx_sub<mode>3): Likewise.
12923         (vsx_mul<mode>3): Likewise.
12924         (vsx_div<mode>3): Likewise.
12925         (vsx_tdiv<mode>3_internal): Likewise.
12926         (vsx_fre<mode>2): Likewise.
12927         (vsx_neg<mode>2): Likewise.
12928         (vsx_abs<mode>2): Likewise.
12929         (vsx_nabs<mode>2): Likewise.
12930         (vsx_smax<mode>3): Likewise.
12931         (vsx_smin<mode>3): Likewise.
12932         (vsx_sqrt<mode>2): Likewise.
12933         (vsx_rsqrte<mode>2): Likewise.
12934         (vsx_tsqrt<mode>2_internal): Likewise.
12935         (vsx_fms<mode>4): Likewise.
12936         (vsx_nfma<mode>4): Likewise.
12937         (vsx_eq<mode>): Likewise.
12938         (vsx_gt<mode>): Likewise.
12939         (vsx_ge<mode>): Likewise.
12940         (vsx_eq<mode>_p): Likewise.
12941         (vsx_gt<mode>_p): Likewise.
12942         (vsx_ge<mode>_p): Likewise.
12943         (vsx_xxsel<mode>): Likewise.
12944         (vsx_xxsel<mode>_uns): Likewise.
12945         (vsx_copysign<mode>3): Likewise.
12946         (vsx_float<VSi><mode>2): Likewise.
12947         (vsx_floatuns<VSi><mode>2): Likewise.
12948         (vsx_fix_trunc<mode><VSi>2): Likewise.
12949         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
12950         (vsx_x<VSv>r<VSs>i): Likewise.
12951         (vsx_x<VSv>r<VSs>ic): Likewise.
12952         (vsx_btrunc<mode>2): Likewise.
12953         (vsx_b2trunc<mode>2): Likewise.
12954         (vsx_floor<mode>2): Likewise.
12955         (vsx_ceil<mode>2): Likewise.
12956         (vsx_<VS_spdp_insn>): Likewise.
12957         (vsx_xscvspdp): Likewise.
12958         (vsx_xvcvspuxds): Likewise.
12959         (vsx_float_fix_<mode>2): Likewise.
12960         (vsx_set_<mode>): Likewise.
12961         (vsx_extract_<mode>_internal1): Likewise.
12962         (vsx_extract_<mode>_internal2): Likewise.
12963         (vsx_extract_<mode>_load): Likewise.
12964         (vsx_extract_<mode>_store): Likewise.
12965         (vsx_splat_<mode>): Likewise.
12966         (vsx_xxspltw_<mode>): Likewise.
12967         (vsx_xxspltw_<mode>_direct): Likewise.
12968         (vsx_xxmrghw_<mode>): Likewise.
12969         (vsx_xxmrglw_<mode>): Likewise.
12970         (vsx_xxsldwi_<mode>): Likewise.
12971         (vsx_xscvdpspn): Tighten constraints to only use register classes
12972         the types use.
12973         (vsx_xscvspdpn): Likewise.
12974         (vsx_xscvdpspn_scalar): Likewise.
12976         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
12977         wj, and wk constraints.
12978         (GPR_REG_CLASS_P): New helper macro for register classes targeting
12979         general purpose registers.
12981         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
12982         direct moves.
12983         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
12984         DImode instead of wm.  Use wk constraint for direct move of DFmode
12985         instead of wm.
12986         (extendsidi2_lfiwax): Likewise.
12987         (lfiwax): Likewise.
12988         (lfiwzx): Likewise.
12989         (movdi_internal64): Likewise.
12991         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
12992         wk constraints. Make the wy constraint documentation match them
12993         implementation.
12995 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
12997         Replacement of isl_int by isl_val
12998         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
12999         (compute_bounds_for_param): use isl_val instead of isl_int
13000         (compute_bounds_for_loop): likewise
13001         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
13002         (build_linearized_memory_access): use isl_val instead of isl_int
13003         (pdr_stride_in_loop): likewise
13004         * graphite-optimize-isl.c:
13005         (getPrevectorMap): use isl_val instead of isl_int
13006         * graphite-poly.c:
13007         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
13008         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
13009         (extern the_isl_ctx): declare
13010         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
13011         (extract_affine_gmp): likewise
13012         (wrap): likewise
13013         (build_loop_iteration_domains): likewise
13014         (add_param_constraints): likewise
13016 2014-08-11  Richard Biener  <rguenther@suse.de>
13018         PR tree-optimization/62075
13019         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
13020         handle uses in patterns.
13022 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13023             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13024             Anna Tikhonova  <anna.tikhonova@intel.com>
13025             Ilya Tocar  <ilya.tocar@intel.com>
13026             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13027             Ilya Verbin  <ilya.verbin@intel.com>
13028             Kirill Yukhin  <kirill.yukhin@intel.com>
13029             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13031         * common/config/i386/i386-common.c
13032         (OPTION_MASK_ISA_AVX512VL_SET): Define.
13033         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
13034         (ix86_handle_option): Handle OPT_mavx512vl.
13035         * config/i386/cpuid.h (bit_AVX512VL): Define.
13036         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
13037         set -mavx512vl accordingly.
13038         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13039         OPTION_MASK_ISA_AVX512VL.
13040         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
13041         (ix86_option_override_internal): Define PTA_AVX512VL, handle
13042         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
13043         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
13044         * config/i386/i386.h (TARGET_AVX512VL): Define.
13045         (TARGET_AVX512VL_P(x)): Ditto.
13046         * config/i386/i386.opt: Add mavx512vl.
13048 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
13050         PR tree-optimization/62073
13051         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
13052         a basic block.
13054 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13055             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13056             Anna Tikhonova  <anna.tikhonova@intel.com>
13057             Ilya Tocar  <ilya.tocar@intel.com>
13058             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13059             Ilya Verbin  <ilya.verbin@intel.com>
13060             Kirill Yukhin  <kirill.yukhin@intel.com>
13061             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13063         * common/config/i386/i386-common.c
13064         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
13065         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
13066         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
13067         (ix86_handle_option): Handle OPT_mavx512bw.
13068         * config/i386/cpuid.h (bit_AVX512BW): Define.
13069         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
13070         set -mavx512bw accordingly.
13071         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13072         OPTION_MASK_ISA_AVX512BW.
13073         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
13074         (ix86_option_override_internal): Define PTA_AVX512BW, handle
13075         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
13076         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
13077         * config/i386/i386.h (TARGET_AVX512BW): Define.
13078         (TARGET_AVX512BW_P(x)): Ditto.
13079         * config/i386/i386.opt: Add mavx512bw.
13081 2014-08-11  Richard Biener  <rguenther@suse.de>
13083         PR tree-optimization/62070
13084         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
13085         Remove SSA checking.
13087 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13089         * asan.c (asan_check_flags): New enum.
13090         (build_check_stmt_with_calls): Removed function.
13091         (build_check_stmt): Split inlining logic to
13092         asan_expand_check_ifn.
13093         (instrument_derefs): Rename parameter.
13094         (instrument_mem_region_access): Rename parameter.
13095         (instrument_strlen_call): Likewise.
13096         (asan_expand_check_ifn): New function.
13097         (asan_instrument): Remove old code.
13098         (pass_sanopt::execute): Change handling of
13099         asan-instrumentation-with-call-threshold.
13100         (asan_clear_shadow): Fix formatting.
13101         (asan_function_start): Likewise.
13102         (asan_emit_stack_protection): Likewise.
13103         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
13104         Update description.
13105         * internal-fn.c (expand_ASAN_CHECK): New function.
13106         * internal-fn.def (ASAN_CHECK): New internal function.
13107         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
13108         Update description.
13109         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
13110         * tree.c: Small comment fix.
13112 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13114         * gimple.c (gimple_call_fnspec): Support internal functions.
13115         (gimple_call_return_flags): Use const.
13116         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
13117         * internal-fn.def: Add fnspec information.
13118         * internal-fn.h (internal_fn_fnspec): New function.
13119         (init_internal_fns): Declare new function.
13120         * internal-fn.c (internal_fn_fnspec_array): New global variable.
13121         (init_internal_fns): New function.
13122         * tree-core.h: Update macro call.
13123         * tree.c (build_common_builtin_nodes): Initialize internal fns.
13125 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
13127         * lto-streamer.h (struct output_block::symbol): Change from
13128         struct symtab_node to plain symtab_node.
13129         (referenced_from_this_partition_p): Change first parameter
13130         from struct symtab_node to plain symtab_node.
13132 2014-08-10  Marek Polacek  <polacek@redhat.com>
13134         PR c/51849
13135         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
13137 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
13139         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
13140         DECL correctly; do not give up on types in static storage.
13142 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
13144         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
13146 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
13148         * graphite-isl-ast-to-gimple.c:
13149         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
13151         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
13153 2014-08-08  Guozhi Wei  <carrot@google.com>
13155         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
13157 2014-08-08  Cary Coutant  <ccoutant@google.com>
13159         * dwarf2out.c (get_skeleton_type_unit): Remove.
13160         (output_skeleton_debug_sections): Remove skeleton type units.
13161         (output_comdat_type_unit): Likewise.
13162         (dwarf2out_finish): Likewise.
13164 2014-08-07  Yi Yang  <ahyangyi@google.com>
13166         * predict.c (expr_expected_value_1): Remove the redundant assignment.
13168 2014-08-08  Richard Biener  <rguenther@suse.de>
13170         * lto-streamer.h (struct lto_input_block): Make it a class
13171         with a constructor.
13172         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
13173         (struct lto_function_header, struct lto_simple_header,
13174         struct lto_simple_header_with_strings,
13175         struct lto_decl_header, struct lto_function_header): Make
13176         a simple inheritance hieararchy.  Remove unused fields.
13177         (struct lto_asm_header): Remove.
13178         * lto-streamer-out.c (produce_asm): Adjust.
13179         (lto_output_toplevel_asms): Likewise.
13180         (produce_asm_for_decls): Likewise.
13181         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13182         * data-streamer-in.c (string_for_index): Likewise.
13183         * ipa-inline-analysis.c (inline_read_section): Likewise.
13184         * ipa-prop.c (ipa_prop_read_section): Likewise.
13185         (read_replacements_section): Likewise.
13186         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13187         * lto-section-in.c (lto_create_simple_input_block): Likewise.
13188         (lto_destroy_simple_input_block): Likewise.
13189         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
13190         (lto_input_toplevel_asms): Likewise.
13192 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13193             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13194             Anna Tikhonova  <anna.tikhonova@intel.com>
13195             Ilya Tocar  <ilya.tocar@intel.com>
13196             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13197             Ilya Verbin  <ilya.verbin@intel.com>
13198             Kirill Yukhin  <kirill.yukhin@intel.com>
13199             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13201         * common/config/i386/i386-common.c
13202         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
13203         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
13204         (ix86_handle_option): Handle OPT_mavx512dq.
13205         * config/i386/cpuid.h (bit_AVX512DQ): Define.
13206         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13207         set -mavx512dq accordingly.
13208         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13209         OPTION_MASK_ISA_AVX512DQ.
13210         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13211         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13212         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13213         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13214         * config/i386/i386.h (TARGET_AVX512DQ): Define.
13215         (TARGET_AVX512DQ_P(x)): Ditto.
13216         * config/i386/i386.opt: Add mavx512dq.
13218 2014-08-08  Richard Biener  <rguenther@suse.de>
13220         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13221         target_percent, target_percent_s): Export.
13222         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13223         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13224         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13225         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13226         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13227         Move to gimple-fold.c.
13228         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
13229         strcat and strcpy.
13230         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
13231         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
13232         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
13233         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
13234         (rewrite_call_expr_array): Remove.
13235         (fold_builtin_sprintf_chk): Likewise.
13236         (fold_builtin_snprintf_chk): Likewise.
13237         (fold_builtin_varargs): Remove handling of sprintf_chk,
13238         vsprintf_chk, snprintf_chk and vsnprintf_chk.
13239         (gimple_fold_builtin_sprintf_chk): Remove.
13240         (gimple_fold_builtin_snprintf_chk): Likewise.
13241         (gimple_fold_builtin_varargs): Likewise.
13242         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
13243         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
13244         * gimple.c (gimple_seq_add_seq_without_update): New function.
13245         * gimple.h (gimple_seq_add_seq_without_update): Declare.
13246         * gimple-fold.c: Include output.h.
13247         (gsi_replace_with_seq_vops): New function, split out from ...
13248         (gimplify_and_update_call_from_tree): ... here.
13249         (replace_call_with_value): New function.
13250         (replace_call_with_call_and_fold): Likewise.
13251         (var_decl_component_p): Moved from builtins.c.
13252         (gimple_fold_builtin_memory_op): Moved from builtins.c
13253         fold_builtin_memory_op and rewritten to GIMPLE.
13254         (gimple_fold_builtin_memset): Likewise.
13255         (gimple_fold_builtin_strcpy): Likewise.
13256         (gimple_fold_builtin_strncpy): Likewise.
13257         (gimple_fold_builtin_strcat): Likewise.
13258         (gimple_fold_builtin_fputs): Likewise.
13259         (gimple_fold_builtin_memory_chk): Likewise.
13260         (gimple_fold_builtin_stxcpy_chk): Likewise.
13261         (gimple_fold_builtin_stxncpy_chk): Likewise.
13262         (gimple_fold_builtin_snprintf_chk): Likewise.
13263         (gimple_fold_builtin_sprintf_chk): Likewise.
13264         (gimple_fold_builtin_strlen): New function.
13265         (gimple_fold_builtin_with_strlen): New function split out from
13266         gimple_fold_builtin.
13267         (gimple_fold_builtin): Change signature and handle
13268         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
13269         here.  Call gimple_fold_builtin_with_strlen.
13270         (gimple_fold_call): Adjust.
13272 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
13274         * calls.c (precompute_arguments): Check
13275          promoted_for_signed_and_unsigned_p and set the promoted mode.
13276         (promoted_for_signed_and_unsigned_p): New function.
13277         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
13278         and set the promoted mode.
13279         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
13280         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
13281         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
13284 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
13286         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
13287         instead of SUBREG_PROMOTED_UNSIGNED_SET.
13288         (expand_call): Likewise.
13289         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
13290         to get promoted mode.
13291         * combine.c (record_promoted_value): Skip > 0 comparison with
13292         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
13293         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
13294         of SUBREG_PROMOTED_UNSIGNED_P.
13295         (convert_modes): Likewise.
13296         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
13297         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
13298         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
13299         SUBREG_PROMOTED_UNSIGNED_SET.
13300         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
13301         instead of SUBREG_PROMOTED_UNSIGNED_SET.
13302         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
13303         SUBREG_PROMOTED_SET.
13304         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
13305         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
13306         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
13307         of SUBREG_PROMOTED_UNSIGNED_P.
13308         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
13309         (SUBREG_PROMOTED_SET): New define.
13310         (SUBREG_PROMOTED_GET): Likewise.
13311         (SUBREG_PROMOTED_SIGN): Likewise.
13312         (SUBREG_PROMOTED_SIGNED_P): Likewise.
13313         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
13314         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
13315         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
13316         instead of SUBREG_PROMOTED_UNSIGNED_GET.
13317         (nonzero_bits1): Skip > 0 comparison with the results as
13318         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
13319         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
13320         of !SUBREG_PROMOTED_UNSIGNED_P.
13321         * simplify-rtx.c (simplify_unary_operation_1): Use new
13322         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
13323         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
13324         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
13325         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
13327 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
13329         * ipa-devirt.c: Include gimple-pretty-print.h
13330         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
13331         further tests.
13332         (decl_maybe_in_construction_p): Fix conditional on cdtor check
13333         (get_polymorphic_call_info): Fix return value
13334         (type_change_info): New sturcture based on ipa-prop
13335         variant.
13336         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
13337         based on ipa-prop variant.
13338         (extr_type_from_vtbl_ptr_store): New function
13339         based on ipa-prop variant.
13340         (record_known_type): New function.
13341         (check_stmt_for_type_change): New function.
13342         (get_dynamic_type): New function.
13343         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
13344         * tree-ssa-pre.c: ipa-utils.h
13345         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
13346         machinery; sanity check with ipa-prop devirtualization.
13347         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
13348         polymorphic flag.
13350 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
13352         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
13353         * alias.c, cfgexpand.c, cgraphbuild.c,
13354         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
13355         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
13356         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
13357         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
13358         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
13359         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13360         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
13361         dse.c, except.c, gengtype.c, gimple-expr.c,
13362         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
13363         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
13364         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
13365         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
13366         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
13367         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
13368         pointer-set.h.
13369         * pointer-set.c: Remove file.
13370         * pointer-set.h: Remove file.
13372 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13374         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
13375         * config/arm/types.md (f_sels, f_seld): Delete.
13377 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13379         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
13380         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
13381         (aarch64_movdi_<mode>high): Likewise.
13382         (aarch64_mov<mode>high_di): Likewise.
13383         (aarch64_movdi_<mode>low): Likewise.
13384         (aarch64_mov<mode>low_di): Likewise.
13385         (aarch64_movtilow_tilow): Likewise.
13386         Add comment explaining usage of fp,simd attributes and of
13387         TARGET_FLOAT and TARGET_SIMD.
13389 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
13390             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13392         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
13393         Use MOVN when one of the half-words is 0xffff.
13395 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
13397         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
13399 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13401         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
13402         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
13403         (rfs_str): String corresponding to RFS_* constants.
13404         (rank_for_schedule_stats_t): New typedef.
13405         (rank_for_schedule_stats): New static variable.
13406         (rfs_result): New static function.
13407         (rank_for_schedule): Track statistics for deciding heuristics.
13408         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
13409         static functions.
13410         (ready_sort): Use them for debug printouts.
13411         (schedule_block): Init statistics state.  Print statistics on
13412         rank_for_schedule decisions.
13414 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13416         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
13418 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
13420         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
13421         constraint.
13423 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
13425         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
13426         function to not conflict.
13427         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
13428         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
13429         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
13430         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
13431         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
13432         of pointer_map.
13434 2014-08-07  Marek Polacek  <polacek@redhat.com>
13436         * fold-const.c (fold_binary_loc): Add folding of
13437         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
13439 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
13441         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
13442         instead of type size.
13443         (ASM_FINISH_DECLARE_OBJECT): Likewise.
13445 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
13447         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
13448         (*thumb1_movqi_insn): Likewise.
13449         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
13451 2014-08-07  Tom de Vries  <tom@codesourcery.com>
13453         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13454         (glibc_2_11_or_earlier): Remove effective-target keywords.
13456 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
13458         * config/arm/arm.c (bdesc_2arg): Fix typo.
13459         (arm_atomic_assign_expand_fenv): Remove The default implementation.
13461 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13463         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
13465 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
13467         PR debug/61923
13468         * haifa-sched.c (advance_one_cycle): Fix dump.
13469         (schedule_block): Don't advance cycle if we are already at the
13470         beginning of the cycle.
13472 2014-08-06  Martin Jambor  <mjambor@suse.cz>
13474         PR ipa/61393
13475         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
13477 2014-08-06  Richard Biener  <rguenther@suse.de>
13479         PR lto/62034
13480         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
13481         SCCs here.
13482         (lto_input_tree): Pop SCCs here.
13484 2014-08-06  Richard Biener  <rguenther@suse.de>
13486         PR tree-optimization/61320
13487         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
13488         handle misaligned loads.
13490 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
13492         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
13493         (aarch64_expand_vec_perm_const): Check for dup before zip.
13495 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13497         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
13498         CONST_INT_P instead of GET_CODE and compare.
13499         (aarch64_select_cc_mode): Likewise.
13500         (aarch64_print_operand): Likewise.
13501         (aarch64_rtx_costs): Likewise.
13502         (aarch64_simd_valid_immediate): Likewise.
13503         (aarch64_simd_check_vect_par_cnst_half): Likewise.
13504         (aarch64_simd_emit_pair_result_insn): Likewise.
13506 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
13508         * gdbhooks.py (find_gcc_source_dir): New helper function.
13509         (class PassNames): New class, locating and parsing passes.def.
13510         (class BreakOnPass): New command "break-on-pass".
13512 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
13514         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
13515         getting olde.
13517 2014-08-05  Richard Biener  <rguenther@suse.de>
13519         PR rtl-optimization/61672
13520         * emit-rtl.h (mem_attrs_eq_p): Declare.
13521         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
13522         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
13523         * cfgcleanup.c (merge_memattrs): Likewise.
13524         Include emit-rtl.h.
13526 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13528         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
13529         rather than singleton vectors.
13530         (vqdmlsls_lane_s32): Likewise.
13532 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13534         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
13535         Use VSDQ_HSI mode iterator.
13536         (aarch64_sqrdmulh_laneq<mode>): Likewise.
13537         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
13538         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
13539         Use BUILTIN_VDQHS macro.
13540         (sqrdmulh_laneq): Likewise.
13541         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
13542         (vqdmlals_laneq_s32): Likewise.
13543         (vqdmlslh_laneq_s16): Likewise.
13544         (vqdmlsls_laneq_s32): Likewise.
13545         (vqdmulhh_laneq_s16): Likewise.
13546         (vqdmulhs_laneq_s32): Likewise.
13547         (vqrdmulhh_laneq_s16): Likewise.
13548         (vqrdmulhs_laneq_s32): Likewise.
13550 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13552         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
13553         (vmuld_laneq_f64): Likewise.
13554         (vmuls_laneq_f32): Likewise.
13555         (vmul_n_f64): Likewise.
13556         (vmuld_lane_f64): Reimplement in C.
13557         (vmuls_lane_f32): Likewise.
13559 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13561         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
13562         to reservation.
13563         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
13565 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13567         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
13568         (rbitsi2): Likewise.
13569         (*arm_rev): Set predicable and predicable_short_it attributes.
13571 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13573         * convert.c (convert_to_integer): Guard transformation to lrint by
13574         -fno-math-errno.
13576 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
13578         * config/aarch64/aarch64-builtins.c
13579         (aarch64_simd_builtin_type_mode): Delete.
13580         (v8qi_UP): Remap to V8QImode.
13581         (v4hi_UP): Remap to V4HImode.
13582         (v2si_UP): Remap to V2SImode.
13583         (v2sf_UP): Remap to V2SFmode.
13584         (v1df_UP): Remap to V1DFmode.
13585         (di_UP): Remap to DImode.
13586         (df_UP): Remap to DFmode.
13587         (v16qi_UP):V16QImode.
13588         (v8hi_UP): Remap to V8HImode.
13589         (v4si_UP): Remap to V4SImode.
13590         (v4sf_UP): Remap to V4SFmode.
13591         (v2di_UP): Remap to V2DImode.
13592         (v2df_UP): Remap to V2DFmode.
13593         (ti_UP): Remap to TImode.
13594         (ei_UP): Remap to EImode.
13595         (oi_UP): Remap to OImode.
13596         (ci_UP): Map to CImode.
13597         (xi_UP): Remap to XImode.
13598         (si_UP): Remap to SImode.
13599         (sf_UP): Remap to SFmode.
13600         (hi_UP): Remap to HImode.
13601         (qi_UP): Remap to QImode.
13602         (aarch64_simd_builtin_datum): Make mode a machine_mode.
13603         (VAR1): Build builtin name.
13604         (aarch64_init_simd_builtins): Remove dead code.
13606 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
13608         * graphite-isl-ast-to-gimple.c:
13609         (set_options): New function.
13610         (scop_to_isl_ast): Add calling of set_options.
13612 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
13614         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
13615         (analyze_iv_to_split_insn): Don't initialize them.
13616         (get_ivts_expr): Removed.
13617         (allocate_basic_variable, insert_base_initialization): Use
13618         SET_SRC instead of *get_ivts_expr.
13619         (split_iv): Use &SET_SRC instead of get_ivts_expr.
13621 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
13623         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
13624         (translate_isl_ast_for_loop): Add checking of the
13625         flag_loop_parallelize_all.
13626         (ast_build_before_for): New function.
13627         (scop_to_isl_ast): Add checking of the
13628         flag_loop_parallelize_all.
13629         * graphite-dependences.c: Move the defenition of the
13630         scop_get_dependences from graphite-optimize-isl.c to this file.
13631         (apply_schedule_on_deps): Add checking of the ux's emptiness.
13632         (carries_deps): Add checking of the x's value.
13633         * graphite-optimize-isl.c: Move the defenition of the
13634         scop_get_dependences to graphite-dependences.c.
13635         * graphite-poly.h: Add declarations of scop_get_dependences
13636         and carries_deps.
13638 2014-08-04  Rohit  <rohitarulraj@freescale.com>
13640         PR target/60102
13641         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
13642         names.
13643         (alt_reg_names): Likewise.
13644         (rs6000_dwarf_register_span): For SPE high registers, replace
13645         dwarf register numbers with GCC hard register numbers.
13646         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
13647         (rs6000_dbx_register_number): For SPE high registers, return dwarf
13648         register number for the corresponding GCC hard register number.
13649         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
13650         newly added GCC hard register numbers for SPE high registers.
13651         (DWARF_FRAME_REGISTERS):  Likewise.
13652         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
13653         (DWARF_FRAME_REGNUM): Likewise.
13654         (FIXED_REGISTERS): Likewise.
13655         (CALL_USED_REGISTERS): Likewise.
13656         (CALL_REALLY_USED_REGISTERS): Likewise.
13657         (REG_ALLOC_ORDER): Likewise.
13658         (enum reg_class): Likewise.
13659         (REG_CLASS_NAMES): Likewise.
13660         (REG_CLASS_CONTENTS): Likewise.
13661         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
13663 2014-08-04  Richard Biener  <rguenther@suse.de>
13665         * gimple-fold.h (gimple_fold_builtin): Remove.
13666         * gimple-fold.c (gimple_fold_builtin): Make static.
13667         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
13668         fold_stmt, not gimple_fold_builtin.
13670 2014-08-04  Martin Liska <mliska@suse.cz>
13672         * cgraph.h (csi_end_p): Removed.
13673         (csi_next): Likewise.
13674         (csi_node): Likewise.
13675         (csi_start): Likewise.
13676         (cgraph_node_in_set_p): Likewise.
13677         (cgraph_node_set_size): Likewise.
13678         (vsi_end_p): Likewise.
13679         (vsi_next): Likewise.
13680         (vsi_node): Likewise.
13681         (vsi_start): Likewise.
13682         (varpool_node_set_size): Likewise.
13683         (cgraph_node_set_nonempty_p): Likewise.
13684         (varpool_node_set_nonempty_p): Likewise.
13685         * cgraphunit.c (cgraph_process_new_functions): vec replaces
13686         cgraph_node_set.
13687         * ipa-inline-transform.c: Likewise.
13688         * ipa-utils.c (cgraph_node_set_new): Removed.
13689         (cgraph_node_set_add): Likewise.
13690         (cgraph_node_set_remove): Likewise.
13691         (cgraph_node_set_find): Likewise.
13692         (dump_cgraph_node_set): Likewise.
13693         (debug_cgraph_node_set): Likewise.
13694         (free_cgraph_node_set): Likewise.
13695         (varpool_node_set_new): Likewise.
13696         (varpool_node_set_add): Likewise.
13697         (varpool_node_set_remove): Likewise.
13698         (varpool_node_set_find): Likewise.
13699         (dump_varpool_node_set): Likewise.
13700         (free_varpool_node_set): Likewise.
13701         (debug_varpool_node_set): Likewise.
13702         * tree-emutls.c (struct tls_var_data):
13703         (emutls_index): Removed.
13704         (emutls_decl): Likewise.
13705         (gen_emutls_addr): Function implementation uses newly added
13706         hash_map<varpool_node *, tls_var_data>.
13707         (clear_access_vars): Likewise.
13708         (create_emultls_var): Likewise.
13709         (ipa_lower_emutls): Likewise.
13710         (reset_access): New function.
13712 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
13714         * config/i386/i386.c (ix86_option_override_internal): Add
13715         PTA_RDRND and PTA_MOVBE for bdver4.
13717 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13718             James Greenhalgh  <james.greenhalgh@arm.com>
13720         * doc/md.texi (clrsb): Document.
13721         (clz): Change reference to x into operand 1.
13722         (ctz): Likewise.
13723         (popcount): Likewise.
13725 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13727         PR target/61713
13728         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
13729         move to subtarget in serial version if result is ignored.
13731 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13732             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13734         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
13735         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
13736         (sched_analyze_insn): Update use of try_group_insn to
13737         sched_macro_fuse_insns.
13738         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
13739         arguments that are not conditional jumps.
13741 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
13743         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
13744         family information. Handle BTVER2 cpu with cpuid family value.
13746 2014-08-04  Tom de Vries  <tom@codesourcery.com>
13748         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13749         (glibc_2_11_or_earlier): Document effective-target keywords.
13751 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
13753         * ipa-devirt.c (odr_type_warn_count): Add type.
13754         (possible_polymorphic_call_targets): Set it.
13755         (ipa_devirt): Use it.
13757 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
13759         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
13760         Document.
13761         * ipa-devirt.c: Include hash-map.h
13762         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
13763         (clear_speculation): Break out of ...
13764         (get_class_context): ... here; speed up handling obviously useless
13765         speculations.
13766         (odr_type_warn_count, decl_warn_count): New structures.
13767         (final_warning_record): New structure.
13768         (final_warning_records): New static variable.
13769         (possible_polymorphic_call_targets): Cleanup handling of
13770         speculative info; do not build speculation when user do not care;
13771         record info about warnings when asked for.
13772         (add_decl_warning): New function.
13773         (type_warning_cmp): New function.
13774         (decl_warning_cmp): New function.
13775         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
13776         (gate): Enable pass when warnings are requested.
13777         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
13778         options.
13780 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
13782         * hash-map.h (default_hashmap_traits::mark_key_deleted):
13783         Fix cast.
13784         (hash_map::remove): New method.
13785         (hash_map::traverse): New method.
13786         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
13787         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
13788         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
13789         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
13790         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
13791         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
13792         pointer_map.
13794 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
13796         * hash-set.h: new File.
13797         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
13798         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
13799         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
13800         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
13801         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
13802         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
13803         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
13804         varpool.c: Use hash_set instead of pointer_set.
13806 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
13808         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
13810 2014-08-01  Jiong Wang <jiong.wang@arm.com>
13812         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
13813         for frame access when strict_p is false.
13815 2014-08-01  Renlin Li <renlin.li@arm.com>
13816 2014-08-01  Jiong Wang <jiong.wang@arm.com>
13818         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
13819         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
13820         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
13821         Declaration.
13822         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
13823         predicate.
13824         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
13825         aarch64_mem_pair_offset.
13827 2014-08-01  Jiong Wang <jiong.wang@arm.com>
13829         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
13830         offset.
13831         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
13832         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
13834 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
13836         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
13838 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
13840         PR regression/61510
13841         * cgraphunit.c (analyze_functions): Use get_create rather than get
13842         for decls which are clones of abstract functions.
13844 2014-08-01  Martin Liska  <mliska@suse.cz>
13846         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
13847         * ipa-prop.h (count_formal_params): Global function created from static.
13848         * ipa-prop.c (count_formal_params): Likewise.
13849         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
13850         profiles for semantically equivalent functions.
13851         * passes.c (do_per_function): If we load body of a function
13852         during WPA, this condition should behave same.
13853         * varpool.c (ctor_for_folding): More tolerant assert for variable
13854         aliases created during WPA.
13856 2014-08-01  Martin Liska  <mliska@suse.cz>
13858         * doc/invoke.texi (Options That Control Optimization): Documentation
13859         for -foptimize-strlen introduced. Optimization levels default options
13860         fixed.
13862 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
13864         * opts.c (common_handle_option): Handle -fsanitize=alignment.
13865         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
13866         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
13867         type to bool.
13868         * stor-layout.h (min_align_of_type): New prototype.
13869         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
13870         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
13871         check.
13872         * ubsan.c: Include builtins.h.
13873         (ubsan_expand_bounds_ifn): Change return type to bool,
13874         always return true.
13875         (ubsan_expand_null_ifn): Change return type to bool, change
13876         argument to gimple_stmt_iterator *.  Handle both null and alignment
13877         sanitization, take type from ckind argument's type rather than
13878         first argument.
13879         (instrument_member_call): Removed.
13880         (instrument_mem_ref): Remove t argument, add mem and base arguments.
13881         Handle both null and alignment sanitization, don't say whole
13882         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
13883         call instead of 2 argument.
13884         (instrument_null): Adjust instrument_mem_ref caller.  Don't
13885         instrument calls here.
13886         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
13887         like SANITIZE_NULL.
13888         * stor-layout.c (min_align_of_type): New function.
13889         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
13890         Or it into SANITIZE_UNDEFINED.
13891         * doc/invoke.texi (-fsanitize=alignment): Document.
13893 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13895         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
13897 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13899         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
13900         inchash.
13901         (vn_reference_compute_hash): Dito.
13902         (vn_nary_op_compute_hash): Dito.
13903         (vn_phi_compute_hash): Dito.
13904         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
13906 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13908         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
13909         Rename to inchash:add_expr_commutative. Convert to inchash.
13910         (iterative_hash_hashable_expr): Rename to
13911         inchash:add_hashable_expr. Convert to inchash.
13912         (avail_expr_hash): Dito.
13914 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13916         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
13917         Convert to inchash.
13919 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13921         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
13923 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13925         * Makefile.in (OBJS): Add rtlhash.o
13926         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
13927         (loc_checksum): Dito.
13928         (loc_checksum_ordered): Dito.
13929         (hash_loc_operands): Dito.
13930         (hash_locs): Dito.
13931         (hash_loc_list): Dito.
13932         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
13933         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
13934         * rtlhash.c: New file.
13935         * rtlhash.h: New file.
13937 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13939         * inchash.h (inchash): Change inchash class to namespace.
13940         (class hash): ... Rename from inchash.
13941         (add_object): Move from macro to class template.
13942         * lto-streamer-out.c (hash_tree): Change inchash
13943         to inchash::hash.
13944         * tree.c (build_type_attribute_qual_variant): Dito.
13945         (type_hash_list): Dito.
13946         (attribute_hash_list): Dito.
13947         (iterative_hstate_expr): Rename to inchash::add_expr
13948         (build_range_type_1): Change inchash to inchash::hash
13949         and use hash::add_expr.
13950         (build_array_type_1): Dito.
13951         (build_function_type): Dito
13952         (build_method_type_directly): Dito.
13953         (build_offset_type): Dito.
13954         (build_complex_type): Dito.
13955         (make_vector_type): Dito.
13956         * tree.h (iterative_hash_expr): Dito.
13958 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
13960         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
13962 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
13964         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
13965         correct alphabetical position.
13966         (vpaddd_f64): Rewrite using builtins.
13967         (vpaddd_s64): Move to correct alphabetical position.
13968         (vpaddd_u64): New.
13970 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
13972         PR target/61844
13973         * config/sh/sh.c (sh_legitimate_address_p,
13974         sh_legitimize_reload_address): Handle reg+reg address modes when
13975         ALLOW_INDEXED_ADDRESS is false.
13976         * config/sh/predicates.md (general_movsrc_operand,
13977         general_movdst_operand): Likewise.
13979 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
13981         * config/aarch64/aarch64-builtins.c
13982         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
13983         BYTES_BIG_ENDIAN.
13985 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
13987         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
13988         the generated mask based on BYTES_BIG_ENDIAN.
13989         (aarch64_simd_check_vect_par_cnst_half): New.
13990         * config/aarch64/aarch64-protos.h
13991         (aarch64_simd_check_vect_par_cnst_half): New.
13992         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
13993         the check out to aarch64_simd_check_vect_par_cnst_half.
13994         (vect_par_cnst_lo_half): Likewise.
13995         * config/aarch64/aarch64-simd.md
13996         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
13997         (move_hi_quad_<mode>): Always generate a low mask.
13999 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14001         * doc/invoke.texi (AVR Options): Add documentation about
14002         __AVR_DEVICE_NAME__ built-in macro.
14004 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
14006         PR target/61948
14007         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
14008         constraints are satisfied.
14009         (<shift>di3_neon): Likewise.
14011 2014-07-31  Richard Biener  <rguenther@suse.de>
14013         PR tree-optimization/61964
14014         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
14015         by structural equality.
14017 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
14019         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
14020         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
14021         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
14022         New enums.
14023         * gcc.c (sanitize_spec_function): Support new option.
14024         (SANITIZER_SPEC): Remove now redundant check.
14025         * opts.c (common_handle_option): Support new option.
14026         (finish_options): Check for incompatibilities.
14027         * toplev.c (process_options): Split userspace-specific checks.
14029 2014-07-31  Richard Biener  <rguenther@suse.de>
14031         * lto-streamer.h (struct output_block): Remove global.
14032         (struct data_in): Remove labels, num_named_labels and
14033         num_unnamed_labels.
14034         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
14035         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
14037 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
14039         PR c++/60517
14040         * common.opt (-Wreturn-local-addr): Moved from c.opt.
14041         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
14042         (isolate_path): New argument to avoid inserting a trap.
14043         (find_implicit_erroneous_behaviour): Handle returning the address
14044         of a local variable.
14045         (find_explicit_erroneous_behaviour): Likewise.
14047 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
14049         PR lto/61868
14050         * toplev.c (init_random_seed): Move piece of code never called to
14051         set_random_seed.
14052         (set_random_seed): see above.
14054 2014-07-31  Tom de Vries  <tom@codesourcery.com>
14056         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
14058 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
14060         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
14061         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
14063 2014-07-31  Richard Biener  <rguenther@suse.de>
14065         * data-streamer.h (streamer_write_data_stream): Declare here,
14066         renamed from ...
14067         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
14068         * lto-cgraph.c (lto_output_node): Adjust.
14069         (lto_output_varpool_node): Likewise.
14070         * data-streamer-out.c (streamer_string_index): Likewise.
14071         (streamer_write_data_stream, lto_append_block): Move from ...
14072         * lto-section-out.c (lto_output_data_stream,
14073         lto_append_block): ... here.
14075 2014-07-30  Mike Stump  <mikestump@comcast.net>
14077         * configure.ac: Also check for popen.
14078         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
14079         * configure: Regenerate.
14080         * config.in:  Regenerate.
14082 2014-07-30  Martin Jambor  <mjambor@suse.cz>
14084         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
14085         parameter to gimple.
14087 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14089         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
14090         address as second parameter to __tpf_eh_return routine.
14092 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
14094         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
14095         Thumb2.
14097 2014-07-30  Tom Tromey  <tromey@redhat.com>
14099         PR c/59855
14100         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
14101         * doc/extend.texi (Type Attributes): Document designated_init
14102         attribute.
14104 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
14106         * graphite-isl-ast-to-gimple.c:
14107         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
14108         (gcc_expression_from_isl_expression): Pass type to
14109         gcc_expression_from_isl_ast_expr_id.
14111 2014-07-30  Richard Biener  <rguenther@suse.de>
14113         * lto-streamer.h (lto_write_data): New function.
14114         * langhooks.c (lhd_append_data): Do not free block.
14115         * lto-section-out.c (lto_write_data): New function writing
14116         raw data to the current section.
14117         (lto_write_stream): Adjust for langhook semantic change.
14118         (lto_destroy_simple_output_block): Write header directly.
14119         * lto-opts.c (lto_write_options): Write options directly.
14120         * lto-streamer-out.c (produce_asm): Write heaeder directly.
14121         (lto_output_toplevel_asms): Likewise.
14122         (copy_function_or_variable): Copy data directly.
14123         (write_global_references): Output index table directly.
14124         (lto_output_decl_state_refs): Likewise.
14125         (write_symbol): Write data directly.
14126         (produce_symtab): Adjust.
14127         (produce_asm_for_decls): Output header and refs directly.
14129 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14131         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
14132         to speculative_targets
14133         (get_class_context): Fix handling of contextes without outer type;
14134         avoid matching non-polymorphic types in LTO.
14135         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
14136         parameter to speculative_targetsp; handle speculation.
14137         (dump_possible_polymorphic_call_targets): Update dumping.
14139 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14141         * common.opt (Wodr): Enable by default.
14143 2014-07-29  Olivier Hainque  <hainque@adacore.com>
14145         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
14147 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14149         PR bootstrap/61914
14150         * gengtype.c (strtoken): New function.
14151         (create_user_defined_type): Replace strtok with strtoken.
14153 2014-07-29  Nathan Sidwell  <nathan@acm.org>
14155         * gcov-io.c (gcov_var): Make hidden.
14156         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
14157         (gcov_do_dump): Declare.
14158         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
14160 2014-07-29  Martin Jambor  <mjambor@suse.cz>
14162         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
14163         parameter to gimple.
14164         (sra_modify_assign): Likewise.
14166 2014-07-29  Richard Biener  <rguenther@suse.de>
14168         PR middle-end/52478
14169         * expr.c (expand_expr_real_2): Revert last change.
14171 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14173         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
14174         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
14175         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
14176         call.
14177         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
14178         (contains_type_p): Forward declare.
14179         (polymorphic_call_target_hasher::hash): Hash speculative info.
14180         (polymorphic_call_target_hasher::equal): Compare speculative info.
14181         (get_class_context): Handle speuclation.
14182         (contains_type_p): Update.
14183         (get_polymorphic_call_info_for_decl): Update.
14184         (walk_ssa_copies): Break out from ...
14185         (get_polymorphic_call_info): ... here; set speculative context
14186         before giving up.
14187         * ipa-prop.c (ipa_write_indirect_edge_info,
14188         ipa_read_indirect_edge_info): Stream speculative context.
14189         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
14190         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
14191         SPECULATIVE_MAYBE_DERIVED_TYPE).
14192         (possible_polymorphic_call_targets overriders): Update.
14193         (dump_possible_polymorphic_call_targets overriders): Update.
14194         (dump_possible_polymorphic_call_target_p overriders): Update.
14196 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14198         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
14199         ipa-devirt path; fix thinko there.
14201 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
14203         * config/i386/i386.c (ix86_return_in_memory): Replace one
14204         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
14206 2014-07-28  Marek Polacek  <polacek@redhat.com>
14208         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
14210 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
14212         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14213         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14214         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14215         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14216         (USE_LD_AS_NEEDED): Likewise.
14217         (ASM_APP_ON): Likewise.
14218         (ASM_APP_OFF): Likewise.
14219         (TARGET_POSIX_IO): Likewise.
14220         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14221         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14222         (USE_LD_AS_NEEDED): Likewise.
14223         (ASM_APP_ON): Likewise.
14224         (ASM_APP_OFF): Likewise.
14225         (TARGET_POSIX_IO): Likewise.
14227 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14229         PR middle-end/61734
14230         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
14231         operators other than the equality operators.
14233 2014-07-28  Richard Biener  <rguenther@suse.de>
14235         PR middle-end/52478
14236         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
14237         sure to register SImode ones, not only >= word_mode ones.
14238         * expr.c (expand_expr_real_2): When expanding -ftrapv
14239         binops do not use OPTAB_LIB_WIDEN.
14241 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
14243         PR middle-end/61919
14244         * tree-outof-ssa.c (insert_partition_copy_on_edge)
14245         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
14246         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
14247         inserting them in the insn stream.
14249 2014-07-28  Marek Polacek  <polacek@redhat.com>
14251         PR middle-end/61913
14252         * common.opt (Wodr): Add Var.
14254 2014-07-28  Richard Biener  <rguenther@suse.de>
14256         PR tree-optimization/61921
14257         * tree-ssa-structalias.c (create_variable_info_for_1): Check
14258         if there is a varpool node before dereferencing it.
14260 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
14262         * graphite-sese-to-poly.c:
14263         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
14264         id of the pbb), which contains pointer to the pbb1.
14266         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
14268 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
14270         * graphite-isl-ast-to-gimple.c:
14271         (graphite_create_new_guard): New function.
14272         (translate_isl_ast_node_if): New function.
14273         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
14275         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
14277 2014-07-27  Anthony Green  <green@moxielogic.com>
14279         * config.gcc: Add moxie-*-moxiebox* configuration.
14280         * config/moxie/moxiebox.h: New file.
14282 2014-07-26  Andrew Pinski  <apinski@cavium.com>
14284         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
14285         from the read only register.
14287 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
14289         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
14290         as the allocation class if it isn't likely to be spilled.
14292 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
14294         * rtl.h (tls_referenced_p): Declare.
14295         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
14296         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
14297         (mips_cannot_force_const_mem): Use tls_referenced_p.
14298         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
14299         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
14300         instead of pa_tls_referenced_p.
14301         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
14302         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
14303         (pa_legitimate_constant_p): Likewise.
14304         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
14305         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
14306         (rs6000_cannot_force_const_mem, rs6000_emit_move)
14307         (rs6000_address_for_altivec): Use tls_referenced_p instead of
14308         rs6000_tls_referenced_p.
14309         (rs6000_tls_symbol_ref_1): Delete.
14311 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
14313         PR target/44551
14314         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
14315         Optimize inverse of a VEC_CONCAT.
14317 2014-07-25  Xinliang David Li  <davidxl@google.com>
14319         * params.def: New parameter.
14320         * coverage.c (get_coverage_counts): Check new flag.
14321         (coverage_compute_profile_id): Check new flag.
14322         (coverage_begin_function): Check new flag.
14323         (coverage_end_function): Check new flag.
14324         * value-prof.c (coverage_node_map_initialized_p): New function.
14325         (init_node_map): Populate map with all functions.
14326         * doc/invoke.texi: Document new parameter.
14328 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
14329             Richard Biener <rguenther@suse.de>
14331         * lto-streamer-out.c (struct sccs): Turn to ...
14332         (class DFS): ... this one; refactor the DFS walk so it can
14333         be re-done on per-SCC basis.
14334         (DFS::DFS): New constructor.
14335         (DFS::~DFS): New destructor.
14336         (hash_tree): Add new MAP argument holding in-SCC hash values;
14337         remove POINTER_TYPE hashing hack.
14338         (scc_entry_compare): Rename to ...
14339         (DFS::scc_entry_compare): ... this one.
14340         (hash_scc): Rename to ...
14341         (DFS::hash_scc): ... this one; pass output_block instead
14342         of streamer_cache; work harder to get unique and stable SCC
14343         hashes.
14344         (DFS_write_tree): Rename to ...
14345         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
14346         (lto_output_tree): Update.
14348 2014-07-25  Andi Kleen  <ak@linux.intel.com>
14350         * lto-streamer-out.c (hash_tree): Convert to inchash.
14352 2014-07-25  Andi Kleen  <ak@linux.intel.com>
14354         * tree.c (build_type_attribute_qual_variant): Use inchash.
14355         (type_hash_list): Dito.
14356         (attribute_hash_list): Dito
14357         (iterative_hstate_expr): Dito.
14358         (iterative_hash_expr): Dito.
14359         (build_range_type_1): Dito.
14360         (build_array_type_1): Dito.
14361         (build_function_type): Dito.
14362         (build_method_type_directly): Dito.
14363         (build_offset_type): Dito.
14364         (build_complex_type): Dito.
14365         (make_vector_type): Dito.
14366         * tree.h (iterative_hash_expr): Add compat wrapper.
14367         (iterative_hstate_expr): Add.
14369 2014-07-25  Andi Kleen  <ak@linux.intel.com>
14371         * Makefile.in (OBJS): Add inchash.o.
14372         (PLUGIN_HEADERS): Add inchash.h.
14373         * ipa-devirt.c: Include inchash.h.
14374         * lto-streamer-out.c: Dito.
14375         * tree-ssa-dom.c: Dito.
14376         * tree-ssa-pre.c: Dito.
14377         * tree-ssa-sccvn.c: Dito.
14378         * tree-ssa-tail-merge.c: Dito.
14379         * asan.c: Dito.
14380         * tree.c (iterative_hash_hashval_t): Move to ...
14381         (iterative_hash_host_wide_int): Move to ...
14382         * inchash.c: Here. New file.
14383         * tree.h (iterative_hash_hashval_t): Move to ...
14384         (iterative_hash_host_wide_int): Move to ...
14385         * inchash.h: Here. New file.
14387 2014-07-25  Richard Biener  <rguenther@suse.de>
14389         PR middle-end/61762
14390         PR middle-end/61894
14391         * fold-const.c (native_encode_int): Add and handle offset
14392         parameter to do partial encodings of expr.
14393         (native_encode_fixed): Likewise.
14394         (native_encode_real): Likewise.
14395         (native_encode_complex): Likewise.
14396         (native_encode_vector): Likewise.
14397         (native_encode_string): Likewise.
14398         (native_encode_expr): Likewise.
14399         * fold-const.c (native_encode_expr): Add offset parameter
14400         defaulting to -1.
14401         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
14402         (fold_ctor_reference): Handle all reads from tcc_constant
14403         ctors.
14405 2014-07-25  Richard Biener  <rguenther@suse.de>
14407         * tree-inline.c (estimate_move_cost): Mark speed_p argument
14408         as possibly unused.
14410 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14412         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
14414 2014-07-24  Kyle McMartin  <kyle@redhat.com>
14416         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
14418 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14420         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
14421         Add prototype.
14422         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
14423         function.
14424         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
14425         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14426         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
14428 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14430         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
14431         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
14432         aggregate types.  Instead, *all* aggregate types, except for single-
14433         element or homogeneous float/vector aggregates, are quadword-aligned
14434         if required by their type alignment.  Issue -Wpsabi note when a type
14435         is now treated differently than before.
14437 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14439         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
14440         does not fit fully into floating-point registers, and there is still
14441         space in the register parameter area, use GPRs to pass those parts
14442         of the argument.  Issue -Wpsabi note if any parameter is now treated
14443         differently than before.
14444         (rs6000_arg_partial_bytes): Update.
14446 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
14448         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
14450 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14452         * rtl.h (target_rtl): Remove lang_dependent_initialized.
14453         * toplev.c (initialize_rtl): Don't use it.  Move previously
14454         "language-dependent" calls to...
14455         (backend_init): ...here.
14456         (lang_dependent_init_target): Don't set lang_dependent_initialized.
14457         Assert that RTL initialization hasn't happend yet.
14459 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14461         PR rtl-optimization/61629
14462         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
14463         they have already been initialized.
14465 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14467         PR middle-end/61268
14468         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
14469         DECL_INCOMING_RTL and entry_parm.
14470         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
14471         * calls.c (load_register_parameters): Likewise argument values.
14472         (emit_library_call_value_1, store_one_arg): Likewise argument
14473         save areas.
14474         * config/i386/i386.c (assign_386_stack_local): Likewise the local
14475         stack slot.
14476         * explow.c (validize_mem): Modify the argument in-place.
14478 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14480         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
14481         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
14483 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14485         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
14486         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
14488 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14490         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
14491         (aarch64_save_callee_saves): New parameter "skip_wb".
14492         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
14494 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14496         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
14497         "wb_candidate2".
14498         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
14500 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
14502         * graphite-isl-ast-to-gimple.c:
14503         (graphite_create_new_loop): Add calling of isl_id_free to properly
14504         decrement reference counts.
14506         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
14508 2014-07-24  Martin Liska  <mliska@suse.cz>
14509         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
14510         function used.
14511         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
14512         (rs6000_code_end): Likewise.
14514 2014-07-24  Martin Liska  <mliska@suse.cz>
14516         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
14517         symtab_node funtion used.
14518         (rs6000_xcoff_declare_object_name): Likewise.
14520 2014-07-24  Martin Liska  <mliska@suse.cz>
14522         * cgraphunit.c (compile): Correct function used.
14524 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
14526         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
14527         as non-indexable.
14529 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
14531         PR lto/61802
14532         * varasm.c (bss_initializer_p): Handle offlined ctors.
14533         (align_variable, get_variable_align): Likewise.
14534         (make_decl_one_only): Likewise.
14535         (default_binds_local_p_1): Likewise.
14536         (decl_binds_to_current_def_p): Likewise.
14537         (get_variable_section): Get constructor if it is offlined.
14538         (assemble_variable_contents): Sanity check that the caller
14539         streamed in the ctor in LTO.
14541 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
14543         * graphite-isl-ast-to-gimple.c:
14544         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
14545         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
14546         isl_ast_op_pdiv_r to the different case.
14548         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
14550 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14552         PR middle-end/61876
14553         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
14554         when flag_errno_math is on.
14556 2014-07-24  Martin Liska  <mliska@suse.cz>
14558         * cgraph.h (varpool_node):
14559         (availability get_availability (void)):
14560         created from cgraph_variable_initializer_availability
14561         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
14562         created from: cgraph_variable_initializer_availability
14563         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
14564         (void finalize_named_section_flags (void)):
14565         created from varpool_finalize_named_section_flags
14566         (bool assemble_decl (void)): created from varpool_assemble_decl
14567         (void analyze (void)): created from varpool_analyze_node
14568         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
14569         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
14570         (void remove_initializer (void)): created from varpool_remove_initializer
14571         (tree get_constructor (void)): created from varpool_get_constructor
14572         (bool externally_visible_p (void)): created from varpool_externally_visible_p
14573         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
14574         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
14575         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
14576         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
14577         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
14578         (static bool output_variables (void)): created from varpool_output_variables
14579         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
14580         created from varpool_extra_name_alias
14581         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
14582         (static void dump_varpool (FILE *f)): created from dump_varpool
14583         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
14584         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
14585         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
14586         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
14587         (void assemble_aliases (void)): created from assemble_aliases
14589 2014-07-24  Martin Liska  <mliska@suse.cz>
14591         * cgraph.h (symtab_node):
14592         (void register_symbol (void)): created from symtab_register_node
14593         (void remove (void)): created from symtab_remove_node
14594         (void dump (FILE *f)): created from dump_symtab_node
14595         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
14596         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
14597         (struct ipa_ref *add_reference (symtab_node *referred_node,
14598         enum ipa_ref_use use_type)): created from add_reference 
14599         (struct ipa_ref *add_reference (symtab_node *referred_node,
14600         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
14601         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
14602         gimple stmt)): created from maybe_add_reference
14603         (bool semantically_equivalent_p (symtab_node *target)): created from
14604         symtab_semantically_equivalent_p
14605         (void remove_from_same_comdat_group (void)): created from
14606         remove_from_same_comdat_group
14607         (void add_to_same_comdat_group (symtab_node *old_node)): created from
14608         symtab_add_to_same_comdat_group
14609         (void dissolve_same_comdat_group_list (void)): created from
14610         symtab_dissolve_same_comdat_group_list
14611         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
14612         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
14613         created from symtab_alias_ultimate_target
14614         (inline symtab_node *next_defined_symbol (void)): created from
14615         symtab_next_defined_symbol
14616         (bool resolve_alias (symtab_node *target)): created from
14617         symtab_resolve_alias
14618         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
14619         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
14620         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
14621         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
14622         (void set_section (const char *section)): created from set_section_1 
14623         (enum availability get_availability (void)): created from symtab_node_availability
14624         (void make_decl_local (void)): created from symtab_make_decl_local
14625         (bool real_symbol_p (void)): created from symtab_read_node
14626         (can_be_discarded_p (void)): created from symtab_can_be_discarded
14627         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
14628         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
14629         symtab_in_same_comdat_p;
14630         (bool address_taken_from_non_vtable_p (void)): created from
14631         address_taken_from_non_vtable_p
14632         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
14633         (static void dump_table (FILE *)): created from dump_symtab
14634         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
14635         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
14636         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
14637         symtab_used_from_object_file_p 
14638         (void dump_base (FILE *)): created from dump_symtab_base
14639         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
14640         (void unregister (void)): created from symtab_unregister_node
14641         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
14642         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
14643         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
14644         symtab_nonoverwritable_alias_1
14645         * cgraph.h (cgraph_node):
14646         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
14647         created from cgraph_remove_node_and_inline_clones
14648         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
14649         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
14650         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
14651         (cgraph_node *function_symbol (enum availability *avail = NULL)):
14652         created from cgraph_function_node
14653         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
14654         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
14655         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
14656         created from cgraph_create_clone 
14657         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
14658         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
14659         created from cgraph_create_virtual_clone
14660         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
14661         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
14662         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
14663         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
14664         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
14665         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
14666         created from cgraph_function_version_info
14667         (struct cgraph_function_version_info *insert_new_function_version (void)):
14668         created from insert_new_cgraph_node_version
14669         (struct cgraph_function_version_info *function_version (void)): created from
14670         get_cgraph_node_version
14671         (void analyze (void)): created from analyze_function
14672         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
14673         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
14674         tree real_alias) cgraph_add_thunk
14675         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
14676         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
14677         created from cgraph_function_or_thunk_node
14678         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
14679         created from expand_thunk
14680         (void reset (void)): created from cgraph_reset_node
14681         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
14682         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
14683         (void remove (void)): created from cgraph_remove_node
14684         (void dump (FILE *f)): created from dump_cgraph_node
14685         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
14686         (bool get_body (void)): created from cgraph_get_body
14687         (void release_body (void)): created from cgraph_release_function_body
14688         (void unnest (void)): created from cgraph_unnest_node
14689         (void make_local (void)): created from cgraph_make_node_local
14690         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
14691         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
14692         gcov_type count, int freq)): created from cgraph_create_edge
14693         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
14694         gcov_type count, int freq)): created from cgraph_create_indirect_edge
14695         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
14696         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
14697         created from cgraph_create_edge_including_clones
14698         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
14699         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
14700         (void remove_callers (void)): created from cgraph_node_remove_callers
14701         (void remove_callees (void)): created from cgraph_node_remove_callees
14702         (enum availability get_availability (void)): created from cgraph_function_body_availability
14703         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
14704         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
14705         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
14706         (void call_duplication_hooks (cgraph_node *node2)): created from
14707         cgraph_call_node_duplication_hooks
14708         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
14709         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
14710         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
14711         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
14712         (void call_function_insertion_hooks (void)):
14713         created from cgraph_call_function_insertion_hooks
14714         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
14715         (bool local_p (void)): created from cgraph_local_node
14716         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
14717         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
14718         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
14719         (inline bool only_called_directly_or_aliased_p (void)):
14720         created from cgraph_only_called_directly_or_aliased_p
14721         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
14722         created from cgraph_will_be_removed_from_program_if_no_direct_calls
14723         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
14724         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
14725         (bool can_remove_if_no_direct_calls_p (void)):
14726         created from cgraph_can_remove_if_no_direct_calls_p
14727         (inline bool has_gimple_body_p (void)):
14728         created from cgraph_function_with_gimple_body_p
14729         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
14730         (static void dump_cgraph (FILE *f)): created from dump_cgraph
14731         (static inline void debug_cgraph (void)): created from debug_cgraph
14732         (static void record_function_versions (tree decl1, tree decl2)):
14733         created from record_function_versions
14734         (static void delete_function_version (tree decl)):
14735         created from delete_function_version
14736         (static void add_new_function (tree fndecl, bool lowered)):
14737         created from cgraph_add_new_function
14738         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
14739         (static cgraph_node * create (tree decl)): created from cgraph_create_node
14740         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
14741         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
14742         (static cgraph_node *get_for_asmname (tree asmname)):
14743         created from cgraph_node_for_asm
14744         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
14745         created from cgraph_same_body_alias 
14746         (static bool used_from_object_file_p_worker (cgraph_node *node,
14747         void *): new function
14748         (static bool non_local_p (cgraph_node *node, void *)):
14749         created from cgraph_non_local_node_p_1
14750         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
14751         created from verify_cgraph
14752         (static bool make_local (cgraph_node *node, void *)):
14753         created from cgraph_make_node_local
14754         (static cgraph_node *create_alias (tree alias, tree target)):
14755         created from cgraph_create_function_alias
14756         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
14757         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
14758         created from cgraph_create_edge_1
14759         * cgraph.h (varpool_node):
14760         (void remove (void)): created from varpool_remove_node
14761         (void dump (FILE *f)): created from dump_varpool_node
14763 2014-07-24  Richard Biener  <rguenther@suse.de>
14765         PR ipa/61823
14766         * tree-ssa-structalias.c (create_variable_info_for_1):
14767         Use varpool_get_constructor.
14768         (create_variable_info_for): Likewise.
14770 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14772         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
14773         subtract outgoing area size when restoring stack_pointer_rtx.
14775 2014-07-24  Nick Clifton  <nickc@redhat.com>
14777         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
14778         that operations are taking place in parallel.
14779         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
14781 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
14783         * omp-low.c (extract_omp_for_data): Add missing break statement.
14785 2014-07-24  Richard Biener  <rguenther@suse.de>
14787         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
14788         * tree-inline.c (estimate_move_cost): Add speed_p parameter
14789         and adjust MOVE_RATIO query accordingly.
14790         (estimate_num_insns): Adjust callers.
14791         * ipa-prop.c (ipa_populate_param_decls): Likewise.
14792         * ipa-cp.c (gather_context_independent_values,
14793         estimate_local_effects): Likewise.
14794         * ipa-split.c (consider_split): Likewise.
14796 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
14798         * config/i386/driver-i386.c: Remove names of unused arguments and
14799         unnecessary unused attributes.
14800         * config/i386/host-mingw32.c: Likewise.
14801         * config/i386/i386.c: Likewise.
14802         * config/i386/winnt-stubs.c: Likewise.
14803         * config/i386/winnt.c: Likewise.
14805 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14807         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
14808         (aarch64_gen_loadwb_pair): New helper function.
14809         (aarch64_expand_epilogue): Simplify code using new helper functions.
14810         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
14812 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14814         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
14815         (aarch64_gen_storewb_pair): New helper function.
14816         (aarch64_expand_prologue): Simplify code using new helper functions.
14817         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
14819 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14821         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
14822         Rename to aarch64_save_callee_saves, remove restore code.
14823         (aarch64_restore_callee_saves): New function.
14825 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14827         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
14828         (aarch64_save_callee_saves): New function to handle reg save
14829         for both core and vectore regs.
14831 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14833         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
14834         (aarch64_gen_store_pair): New helper function.
14835         (aarch64_save_or_restore_callee_save_registers)
14836         (aarch64_save_or_restore_fprs): Use new helper functions.
14838 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14840         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
14841         (aarch64_save_or_restore_callee_save_registers)
14842         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
14844 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14846         * config/aarch64/aarch64.c
14847         (aarch64_save_or_restore_callee_save_registers)
14848         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
14850 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14852         * config/aarch64/aarch64.c
14853         (aarch64_save_or_restore_callee_save_registers)
14854         (aarch64_save_or_restore_fprs): Remove 'increment'.
14856 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14858         * config/aarch64/aarch64.c
14859         (aarch64_save_or_restore_callee_save_registers)
14860         (aarch64_save_or_restore_fprs): Use register offset in
14861         cfun->machine->frame.reg_offset.
14863 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14865         * config/aarch64/aarch64.c
14866         (aarch64_save_or_restore_callee_save_registers)
14867         (aarch64_save_or_restore_fprs): Remove base_rtx.
14869 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14871         * config/aarch64/aarch64.c
14872         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
14873         to 'start_offset'.  Remove local variable 'start_offset'.
14875 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14877         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
14878         type to HOST_WIDE_INT.
14880 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14882         * config/aarch64/aarch64.c (aarch64_expand_prologue)
14883         (aarch64_save_or_restore_fprs)
14884         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
14886 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14888         * config/arm/t-rtems-eabi: Add
14889         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
14890         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
14891         mbig-endian/mthumb/march=armv7-r, and
14892         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
14893         multilibs.
14895 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14896             Chris Johns <chrisj@rtems.org>
14897             Joel Sherrill <joel.sherrill@oarcorp.com>
14899         * config.gcc: Add nios2-*-rtems*.
14900         * config/nios2/rtems.h: New file.
14901         * gcc/config/nios2/t-rtems: New file.
14903 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
14905         PR target/61396
14906         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
14907         constant numbers, not general constants.
14908         (rs6000_expand_vector_init): Ditto.
14910 2014-07-23  Nathan Sidwell  <nathan@acm.org>
14912         * gcov-tool.c (gcov_list): Declare here.
14913         (set_gcov_list): Remove.
14914         (gcov_output_files): Set gcov_list directly.
14916 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
14918         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
14920 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14922         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
14923         callee-saved registers are available for padding purpose
14924         and r3 is not mandatory, then prefer use those callee-saved
14925         instead of r3.
14927 2014-07-23  Richard Biener  <rguenther@suse.de>
14929         * params.def (PARAM_MAX_COMBINE_INSNS): New.
14930         * combine.c: Include statistics.h and params.h.
14931         (combine_instructions): Guard three and four insn combines
14932         with max-combine-insns value.  Record statistics for combines
14933         performed.
14934         * doc/invoke.texi (max-combine-insns): Document new param.
14936 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
14938         * graphite-isl-ast-to-gimple.c:
14939         (translate_isl_ast_node_block): New function.
14940         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
14942         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
14943         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
14945 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
14947         * graphite-isl-ast-to-gimple.c:
14948         (get_max_schedule_dimensions): New function.
14949         (extend_schedule): Likewise.
14950         (generate_isl_schedule): Add calling of extend_schedule and
14951         get_max_schedule_dimensions.
14953 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14955         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
14956         (case UNSPEC): Handle UNSPEC_RBIT.
14958 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14960         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
14961         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
14963 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14965         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
14967 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
14969         * graphite-isl-ast-to-gimple.c:
14970         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
14971         (ivs_params_clear):
14972         (build_iv_mapping): New function.
14973         (translate_isl_ast_node_user): Likewise.
14974         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
14976         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
14977         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
14978         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
14980 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
14982         PR target/55701
14983         * config/arm/arm.md (setmem): New pattern.
14984         * config/arm/arm-protos.h (struct tune_params): New fields.
14985         (arm_gen_setmem): New prototype.
14986         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
14987         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
14988         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
14989         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
14990         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
14991         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
14992         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
14993         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
14994         (arm_const_inline_cost): New function.
14995         (arm_block_set_max_insns): New function.
14996         (arm_block_set_non_vect_profit_p): New function.
14997         (arm_block_set_vect_profit_p): New function.
14998         (arm_block_set_unaligned_vect): New function.
14999         (arm_block_set_aligned_vect): New function.
15000         (arm_block_set_unaligned_non_vect): New function.
15001         (arm_block_set_aligned_non_vect): New function.
15002         (arm_block_set_vect, arm_gen_setmem): New functions.
15004 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
15006         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
15008 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
15010         PR target/61855
15011         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
15012         out of #ifdef __OPTIMIZE__.
15014 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15016         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
15017         different trapping status if -fnon-call-exceptions is enabled.
15019 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15021         * expr.c (store_field): Handle VOIDmode for calls that return values
15022         in multiple locations.
15024 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15026         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
15027         (altivec_vsldoi_<mode>): Likewise.
15029 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15031         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
15032         to the number of characters in the line.
15034 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15036         * graphite-isl-ast-to-gimple.c: Add using of
15037         build_nonstandard_integer_type instead of int128_integer_type_node.
15039 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
15041         * toplev.c (output_stack_usage): Adjust the location of the warning.
15043 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
15045         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
15046         (*membar_storeload): Disable for LEON3.
15048 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15050         PR rtl-optimization/61461
15051         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
15053 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
15055         PR target/61794
15056         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
15057         Fix instruction constraint.
15058         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
15060 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
15062         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
15064 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
15066         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
15067         GNU coding standards.
15068         (nds32_register_move_cost): Likewise.
15069         (nds32_memory_move_cost): Likewise.
15070         (nds32_address_cost): Likewise.
15072 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15074         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
15076 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
15078         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
15079         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
15080         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15081         (HAVE_sync_compare_and_swapqi): Define.
15082         (HAVE_sync_compare_and_swaphi): Likewise.
15083         (HAVE_sync_compare_and_swapsi): Likewise.
15085 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
15087         * config/mips/p5600.md: Add missing cpu tests.
15089 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15091         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
15092         (vmla_f64): Likewise.
15093         (vfms_f64): Likewise.
15094         (vmls_f64): Likewise.
15096 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15098         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
15099         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
15101 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15103         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
15104         (vmlal_high_lane_s32): Likewise.
15105         (vmlal_high_lane_u16): Likewise.
15106         (vmlal_high_lane_u32): Likewise.
15107         (vmlsl_high_lane_s16): Likewise.
15108         (vmlsl_high_lane_s32): Likewise.
15109         (vmlsl_high_lane_u16): Likewise.
15110         (vmlsl_high_lane_u32): Likewise.
15112 2014-07-17  Terry Guo  <terry.guo@arm.com>
15114         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
15115         (alus_reg): Renamed to alus_sreg.
15116         * config/arm/arm-fixed.md: Change type of non-dsp instructions
15117         from alu_reg to alu_sreg.  Change type of dsp instructions from
15118         alu_reg to alu_dsp_reg.
15119         * config/arm/thumb1.md: Likewise.
15120         * config/arm/thumb2.md: Likewise.
15121         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
15122         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
15123         with alu_sreg and alus_sreg.
15124         * config/arm/arm1026ejs.md (alu_op): Likewise.
15125         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
15126         * config/arm/arm926ejs.md (9_alu_op): Likewise.
15127         * config/arm/fa526.md (526_alu_op): Likewise.
15128         * config/arm/fa606te.md (606te_alu_op): Likewise.
15129         * config/arm/fa626te.md (626te_alu_op): Likewise.
15130         * config/arm/fa726te.md (726te_alu_op): Likewise.
15131         * config/arm/fmp626.md (mp626_alu_op): Likewise.
15132         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
15133         alu_sreg, alu_dsp_reg and alus_sreg.
15134         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
15135         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15136         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15137         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
15138         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
15139         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15140         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15141         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15142         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
15143         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
15144         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
15145         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
15146         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
15147         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
15148         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
15149         alus_reg to alus_sreg.
15151 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
15153         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
15154         infinity format.
15156 2014-07-17  Richard Biener  <rguenther@suse.de>
15158         PR rtl-optimization/61801
15159         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
15160         don't set reg_pending_barrier if it appears in a debug-insn.
15162 2014-07-16  DJ Delorie  <dj@redhat.com>
15164         * config/rx/rx.c (rx_option_override): Fix alignment values.
15165         (rx_align_for_label): Likewise.
15167 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
15169         PR target/61737.
15170         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
15171         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15172         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
15173         functions.
15174         (cris_print_index, cris_print_operand, cris_constant_index_p)
15175         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
15176         (cris_address_cost): Ditto last CONSTANT_P.
15177         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
15178         callers changed.  Yield cris_offsettable_symbol for non-PIC
15179         constant symbolic expressions including labels.  Yield cris_unspec
15180         for all unspecs.
15181         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
15182         target to pic_offset_table_rtx for calls that will likely go
15183         through PLT, const0_rtx when they can't.  All callers changed.
15184         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
15185         symbolic expressions to be PICified.  Remove second, redundant,
15186         assert on can_create_pseudo_p returning non-zero.  Use
15187         replace_equiv_address_nv, not replace_equiv_address, for final
15188         operand update.
15189         * config/cris/cris.md ("movsi"): Move variable t to pattern
15190         toplevel. Adjust assert for new cris_symbol_type member.  Use
15191         CONSTANT_P instead of CONSTANT_ADDRESS_P.
15192         ("*movsi_internal") <case 9>: Make check for valid unspec operands
15193         for lapc stricter.
15194         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
15195         ("call", "call_value"): Use second incoming operand as a marker
15196         for pic-offset-table-register being used.
15197         ("*expanded_call_non_v32", "*expanded_call_v32")
15198         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
15199         second incoming operand to CALL, match cris_call_type_marker.
15200         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
15201         ("*expanded_call_side"): Ditto.  Fix typo in comment.
15202         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
15203         CONSTANT_P.
15204         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
15205         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
15206         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
15207         users changed.  Add members cris_offsettable_symbol and cris_unspec.
15208         (cris_symbol_type): Rename from cris_pic_symbol_type.
15209         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15210         just CONSTANT_P.
15211         * config/cris/cris-protos.h (cris_symbol_type_of,
15212         cris_expand_pic_call_address): Adjust prototypes.
15213         (cris_legitimate_constant_p): New prototype.
15215         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15216         an existing tmake_file.  Don't add t-slibgcc and t-linux.
15218 2014-07-17  Jason Merrill  <jason@redhat.com>
15220         PR c++/61623
15221         * symtab.c (symtab_remove_from_same_comdat_group): Also
15222         set_comdat_group to NULL_TREE.
15223         (verify_symtab): Fix diagnostic.
15225 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
15227         PR target/61662
15228         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
15230 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
15232         Support location tracking for built-in macro tokens
15233         * input.h (is_location_from_builtin_token): New function declaration.
15234         * input.c (is_location_from_builtin_token): New function definition.
15235         * toplev.c (general_init): Tell libcpp what the pre-defined
15236         spelling location for built-in tokens is.
15238 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
15240         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
15241         on the FUNCTION_DECL.
15243 2014-07-16  Richard Biener  <rguenther@suse.de>
15245         PR other/61782
15246         * doc/extend.texi (always_inline): Clarify.
15248 2014-07-15  Eric Christopher  <echristo@gmail.com>
15250         * doc/invoke.texi (Link Options): Document -z option.
15252 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
15254         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
15255         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15257 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
15259         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
15261 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15263         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
15264         varpool_assemble_decl.
15265         * varpool.c (varpool_assemble_decl): Assert that node->definition is
15266         true.
15268 2014-07-15  Michael Matz  <matz@suse.de>
15270         PR rtl-optimization/61772
15271         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
15273 2014-07-15  Richard Biener  <rguenther@suse.de>
15275         * opts.c (default_options_table): Disable bit-ccp at -Og.
15277 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
15279         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
15281 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
15283         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
15284         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
15285         call langhook for unknown declaration.
15286         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
15287         * tree.h (DECL_ARGUMENTS): Update.
15288         * print-tree.c (print_node): Update.
15289         * tree-core.h (tree_decl_non_common): Remove arguments.
15290         (tree_function_decl): Add arguments.
15292 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
15294         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
15296 2014-07-14  Richard Biener  <rguenther@suse.de>
15298         PR tree-optimization/61779
15299         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
15300         simplifying a condition.
15302 2014-07-14  Richard Biener  <rguenther@suse.de>
15304         * builtins.c (c_strlen): Make only_value == 2 really only
15305         affect warning generation.
15307 2014-07-14  Richard Biener  <rguenther@suse.de>
15309         PR tree-optimization/61757
15310         PR tree-optimization/61783
15311         PR tree-optimization/61787
15312         * tree-ssa-dom.c (record_equality): Revert canonicalization
15313         change and add comment.
15314         (propagate_rhs_into_lhs): Revert previous fix, removing
15315         loop depth restriction again.
15317 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15319         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
15320         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15321         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15322         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
15323         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15324         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15325         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15327 2014-07-14  Richard Biener  <rguenther@suse.de>
15329         * cgraph.h (decl_in_symtab_p): Make inline.
15331 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
15333         PR middle-end/61294
15334         * doc/invoke.texi (-Wmemset-transposed-args): Document.
15336         PR target/61656
15337         * config/i386/i386.c (classify_argument): Don't merge classes above
15338         number of words.
15340 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
15342         * cgraph.h (symtab_node): Add nonzero_address.
15343         (decl_in_symtab_p): Break out from ...
15344         (symtab_get_node): ... here.
15345         * fold-const.c: Include cgraph.h
15346         (tree_single_nonzero_warnv_p): Use symtab to determine
15347         if symbol is non-zero.
15348         * symtab.c (symtab_node::nonzero_address): New method.
15350 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
15352         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
15353         forgotten in previous commit.
15355 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
15357         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
15358         on builtin types.
15359         * ipa-devirt.c: Include stor-layout.h and intl.h
15360         (odr_subtypes_equivalent_p): New function.
15361         (warn_odr): New function.
15362         (warn_type_mismatch): New function.
15363         (odr_types_equivalent_p): New function.
15364         (add_type_duplicate): Use it.
15365         * common.opt (Wodr): New flag.
15366         * doc/invoke.texi (Wodr): Document new warning.
15368 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
15370         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
15371         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
15372         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
15373         (varpool_get_constructor): Push CTORS_IN timevar.
15374         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
15376 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
15378         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
15379         Remove VOID_FTYPE_PUSHORT.
15380         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
15381         Change code to USHORT_FTYPE_VOID.
15382         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
15383         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
15384         (ix86_atomic_assign_expand_fenv): Update for
15385         __builtin_ia32_fnstsw changes.
15386         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
15387         (fnstsw): Change operand 0 to nonimmediate operand.
15389 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15391         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
15392         (varpool_get_constructor): New function.
15393         (varpool_ctor_useable_for_folding_p): Break out from ...
15394         (ctor_for_folding): ... here; use varpool_get_constructor.
15395         (varpool_assemble_decl): Likewise.
15396         * lto-streamer.h (struct output_block): Turn cgraph_node
15397         to symbol filed.
15398         (lto_input_variable_constructor): Declare.
15399         * ipa-visibility.c (function_and_variable_visibility): Use
15400         varpool_get_constructor.
15401         * cgraph.h (varpool_get_constructor): Declare.
15402         (varpool_ctor_useable_for_folding_p): New function.
15403         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
15404         parameter; return error_mark_node for non-trivial constructors.
15405         (lto_write_tree_1, DFS_write_tree): Update use of
15406         get_symbol_initial_value.
15407         (output_function): Update initialization of symbol.
15408         (output_constructor): New function.
15409         (copy_function): Rename to ..
15410         (copy_function_or_variable): ... this one; handle vars too.
15411         (lto_output): Output variable sections.
15412         * lto-streamer-in.c (input_constructor): New function.
15413         (lto_read_body): Rename from ...
15414         (lto_read_body_or_constructor): ... this one; handle vars too.
15415         (lto_input_variable_constructor): New function.
15416         * ipa-prop.c (ipa_prop_write_jump_functions,
15417         ipa_prop_write_all_agg_replacement): Update.
15418         * lto-cgraph.c (compute_ltrans_boundary): Use it.
15419         (output_cgraph_opt_summary): Set symbol to NULL.
15421 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15423         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
15424         non-polymorphic types.
15425         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
15426         * ipa-devirt.c (types_same_for_odr): Do not explode when one
15427         of types is not polymorphic.
15429 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
15431         * lra-constraints.c (remove_inheritance_pseudos): Process
15432         destination pseudo too.
15434 2014-07-11  Rong Xu  <xur@google.com>
15436         * gcov-tool.c (gcov_output_files): Fix build error introduced in
15437         commit r212448.
15439 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15441         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
15442         * config/avr/avr-devices.c (AVR_MCU): Same.
15443         (avr_mcu_types): add text start value to end of device list.
15444         * config/avr/avr-mcus.def: Add text section start for all devices.
15445         (ata5782): Add new avr5 device.
15446         (ata5831): Same.
15447         * config/avr/avr-tables.opt: Regenerate.
15448         * config/avr/avr.h: Add declaration for text section start handler.
15449         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
15450         SPEC functions.
15451         (LINK_SPEC): Include text section start handler to linker spec.
15452         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
15453         pass -Ttext option to linker if the text section start for the device
15454         is not zero.
15455         * config/avr/t-multilib: Regenerate.
15456         * doc/avr-mmcu.texi: Regenerate.
15458 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
15460         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
15461         * config/rs6000/aix52.h (LINK_SPEC): Same.
15462         * config/rs6000/aix53.h (LINK_SPEC): Same.
15463         * config/rs6000/aix61.h (LINK_SPEC): Same.
15464         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
15466 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
15468         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
15469         (graphite_verify): New function.
15470         (ivs_params_clear): New function.
15471         (gcc_expression_from_isl_ast_expr_id): New function.
15472         (gcc_expression_from_isl_expr_int): New function.
15473         (binary_op_to_tree): New function.
15474         (ternary_op_to_tree): New function.
15475         (unary_op_to_tree): New function.
15476         (nary_op_to_tree): New function.
15477         (gcc_expression_from_isl_expr_op): New function.
15478         (gcc_expression_from_isl_expression): New function.
15479         (graphite_create_new_loop): New function.
15480         (translate_isl_ast_for_loop): New function.
15481         (get_upper_bound): New function.
15482         (graphite_create_new_loop_guard): New function.
15483         (translate_isl_ast_node_for): New function.
15484         (translate_isl_ast): New function.
15485         (add_parameters_to_ivs_params): New function.
15486         (scop_to_isl_ast): New parameter ip.
15487         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
15489 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15491         * config/xtensa/predicates.md (call expander): Update for
15492         DECL_SECTION_NAME being string.
15494 2014-07-11  Richard Biener  <rguenther@suse.de>
15496         PR middle-end/61473
15497         * builtins.c (fold_builtin_memory_op): Inline memory moves that
15498         can be implemented with a single load followed by a single store.
15499         (c_strlen): Only warn when only_value is not 2.
15501 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
15503         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
15505 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
15507         PR target/61561
15508         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
15509         (*movhi_bytes): Likewise.
15510         (*arm_movqi_insn): Likewise.
15512 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
15514         PR target/56858
15515         * config/alpha/alpha.c: Include tree-pass.h, context.h
15516         and pass_manager.h.
15517         (pass_data_handle_trap_shadows): New pass.
15518         (pass_handle_trap_shadows::gate): New pass gate function.
15519         (make_pass_handle_trap_shadows): New function.
15520         (rest_of_handle_trap_shadows): Ditto.
15522         (alpha_align_insns_1): Rename from alpha_align_insns.
15523         (pass_data_align_insns): New pass.
15524         (pass_align_insns::gate): New pass gate function.
15525         (make_pass_aling_insns): New function.
15526         (rest_of_align_insns): Ditto.
15527         (alpha_align_insns): Ditto.
15529         (alpha_option_override): Declare handle_trap_shadows info
15530         and align_insns_info.  Register handle_trap_shadows and align_insns
15531         passes here.
15532         (alpha_reorg): Do not call alpha_trap_shadows and
15533         alpha_align_insn from here.
15535         (alpha_pad_function_end): Do not skip BARRIERs.
15537 2014-07-10  Rong Xu  <xur@google.com>
15539         Add gcov-tool: an offline gcda profile processing tool support.
15540         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
15541         (gcov_is_error): Ditto.
15542         (gcov_read_string): Ditto.
15543         (gcov_read_sync): Ditto.
15544         * gcov-io.h: Move counter defines to gcov-counter.def.
15545         * gcov-dump.c (tag_counters): Use gcov-counter.def.
15546         * coverage.c: Ditto.
15547         * gcov-tool.c: Offline gcda profile processing tool.
15548         (unlink_gcda_file): Remove one gcda file.
15549         (unlink_profile_dir): Remove gcda files from the profile path.
15550         (gcov_output_files): Output gcda files to an output dir.
15551         (profile_merge): Merge two profiles in directory.
15552         (print_merge_usage_message): Print merge usage.
15553         (merge_usage): Print merge usage and exit.
15554         (do_merge): Driver for profile merge sub-command.
15555         (profile_rewrite): Rewrite profile.
15556         (print_rewrite_usage_message): Print rewrite usage.
15557         (rewrite_usage): Print rewrite usage and exit.
15558         (do_rewrite): Driver for profile rewrite sub-command.
15559         (print_usage): Print gcov-info usage and exit.
15560         (print_version): Print gcov-info version.
15561         (process_args): Process arguments.
15562         (main): Main routine for gcov-tool.
15563         * Makefile.in: Build and install gcov-tool.
15564         * gcov-counter.def: New file split from gcov-io.h.
15565         * doc/gcc.texi: Include gcov-tool.texi.
15566         * doc/gcov-tool.texi: Document for gcov-tool.
15568 2014-07-10  Richard Biener  <rguenther@suse.de>
15570         PR tree-optimization/61757
15571         * tree-ssa-dom.c (loop_depth_of_name): Restore.
15572         (propagate_rhs_into_lhs): Revert part of last change.
15574 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
15576         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
15577         FUNCTION_DECLs.
15579 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
15581         PR middle-end/53590
15582         * function.c (allocate_struct_function): Revert r188667 change.
15584         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
15586 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
15588         * doc/install.texi: Remove links to defunct package providers for
15589         Solaris.
15591 2014-07-09  Tom de Vries  <tom@codesourcery.com>
15593         * final.c (get_call_fndecl): Declare.
15594         (self_recursive_call_p): New function.
15595         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
15597 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15599         * ipa-devirt.c (record_node): Walk through aliases.
15601 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15603         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
15605 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15607         Revert:
15608         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15610 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15612         * ipa-visibility.c (function_and_variable_visibility): Remove
15613         temporary hack disabling local aliases on AIX.
15615 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15617         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
15618         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
15620 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15622         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
15623         * rs6000/rs6000.c: Inline output of .set instruction.
15624         (declare_alias_data): New struct.
15625         (rs6000_declare_alias): New function.
15626         (rs6000_xcoff_declare_function_name): Use it.
15627         (rs6000_xcoff_declare_object_name): New function.
15628         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
15629         (ASM_OUTPUT_DEF): Turn to empty definition.
15631 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
15633         PR bootstrap/61679
15634         * hash-table.h: use hash_table::value_type instead of
15635         Descriptor::value_type in the return types of several methods.
15637 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
15639         * tree-pass.h (pass_data): Remove has_execute member.
15640         * passes.c (execute_one_pass): Don't check pass->has_execute.
15641         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15642         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15643         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15644         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15645         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15646         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15647         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15648         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15649         gimple-low.c, gimple-ssa-isolate-paths.c,
15650         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15651         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
15652         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
15653         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
15654         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
15655         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15656         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
15657         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
15658         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
15659         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
15660         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
15661         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15662         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15663         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15664         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15665         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15666         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15667         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15668         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15669         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15670         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15671         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15672         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
15673         web.c: Remove initializer for pass_data::has_execute.
15675 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
15677         * graphite-htab.h: Use hash_map instead of hash_table.
15678         * graphite-clast-to-gimple.c: Adjust.
15679         * passes.c: Use hash_map instead of hash_table.
15680         * sese.c: Likewise.
15681         * sese.h: Remove now unused code.
15683 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
15685         PR target/61599
15686         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
15687         than zero.
15689 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
15691         PR rtl-optimization/61673
15692         * combine.c (simplify_comparison): Test just mode's sign bit
15693         in tmode rather than the sign bit and any bits above it.
15695 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
15697         * graphite-isl-ast-to-gimple.c (generate_isl_context):
15698         Add __isl_give to the declaration.
15699         (generate_isl_schedule): Likewise.
15700         (scop_to_isl_ast): Likewise.
15702 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15704         * config/arm/arm.c (cortexa5_extra_costs): New table.
15705         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
15707 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
15709         PR tree-optimization/61725
15710         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
15711         range, use range_includes_zerop_p instead of integer_zerop on
15712         vr0->min, only use log2 of max if min is not negative.
15714 2014-07-08  Richard Biener  <rguenther@suse.de>
15716         * tree-ssa-dom.h (loop_depth_of_name): Remove.
15717         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
15718         restriction on loop depth difference.
15719         (record_equality): Likewise.
15720         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
15721         (loop_depth_of_name): Remove.
15722         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
15723         restriction on loop depth difference.
15724         (init_copy_prop): Likewise.
15726 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15728         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
15729         parameter.
15730         (walk_aliased_vdefs): Likewise.
15731         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
15732         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
15733         (detect_type_change_from_memory_writes): Check if entry was reached.
15735 2014-07-08  Richard Biener  <rguenther@suse.de>
15737         PR tree-optimization/61681
15738         * tree-ssa-structalias.c (find_what_var_points_to): Expand
15739         NONLOCAL inside ESCAPED.
15741 2014-07-08  Richard Biener  <rguenther@suse.de>
15743         PR tree-optimization/61680
15744         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15745         Handle properly all read-write dependences with group accesses.
15747 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
15749         PR tree-optimization/61576
15750         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
15751         block containing reduction statement is predecessor of phi basi block.
15753 2014-07-08  Marek Polacek  <polacek@redhat.com>
15755         PR c/60226
15756         * fold-const.c (round_up_loc): Change the parameter type.
15757         Remove assert.
15758         * fold-const.h (round_up_loc): Adjust declaration.
15759         * stor-layout.c (finalize_record_size): Check for too large types.
15761 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
15763         * symtab.c: Include calls.h.
15764         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
15766 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
15768         * config/rs6000/rs6000.c (output_vec_const_move): Handle
15769         little-endian code generation.
15770         * config/rs6000/spe.md (spe_evmergehi): Rename to...
15771         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
15772         (spe_evmergehilo): Rename to...
15773         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
15774         (spe_evmergelo): Rename to...
15775         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
15776         (spe_evmergelohi): Rename to...
15777         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
15778         (spe_evmergehi, spe_evmergehilo): New expanders.
15779         (spe_evmergelo, spe_evmergelohi): Likewise.
15780         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
15781         (*frob_tf_ti): Likewise.
15782         (*frob_<mode>_di_2): Likewise.
15783         (*frob_tf_di_8_2): Likewise.
15784         (*frob_di_<mode>): Likewise.
15785         (*frob_ti_tf): Likewise.
15786         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
15787         (*frob_ti_<mode>_8_2): Likewise.
15788         (*frob_ti_tf_2): Likewise.
15789         (mov_si<mode>_e500_subreg0): Rename to...
15790         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
15791         endianness only.
15792         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
15793         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
15794         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
15795         the big endianness only.
15796         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
15797         (*mov_si<mode>_e500_subreg0_2): Rename to...
15798         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
15799         big big endianness only.
15800         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
15801         (*mov_si<mode>_e500_subreg4): Rename to...
15802         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
15803         endianness only.
15804         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
15805         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
15806         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
15807         the big endianness only.
15808         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
15809         pattern.
15810         (*mov_si<mode>_e500_subreg4_2): Rename to...
15811         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
15812         endianness only.
15813         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
15814         (*mov_sitf_e500_subreg8): Rename to...
15815         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
15816         endianness only.
15817         (*mov_sitf_e500_subreg8_le): New instruction pattern.
15818         (*mov_sitf_e500_subreg8_2): Rename to...
15819         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
15820         endianness only.
15821         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
15822         (*mov_sitf_e500_subreg12): Rename to...
15823         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
15824         endianness only.
15825         (*mov_sitf_e500_subreg12_le): New instruction pattern.
15826         (*mov_sitf_e500_subreg12_2): Rename to...
15827         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
15828         endianness only.
15829         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
15831 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15833         * asan.c (instrument_strlen_call): Do not instrument first byte
15834         in strlen if already instrumented.
15836 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15838         * config/arm/arm.opt (mwords-little-endian): Delete.
15839         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
15840         of TARGET_LITTLE_WORDS.
15841         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
15842         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
15843         warning.
15844         * doc/invoke.texi: Remove references to -mwords-little-endian.
15846 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
15848         * expmed.c (struct init_expmed_rtl): Change all fields but
15849         pow2 and cint from struct rtx_def to rtx.
15850         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
15851         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
15852         at the end again.
15854 2014-07-06  Marek Polacek  <polacek@redhat.com>
15856         PR c/6940
15857         * doc/invoke.texi: Document -Wsizeof-array-argument.
15859 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
15861         * wide-int.h (wide_int_storage): Change declaration from struct
15862         to class.
15864 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
15866         * cgraph.c (cgraph_create_indirect_edge): Update call of
15867         get_polymorphic_call_info.
15868         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
15869         (possible_polymorphic_call_targets): Add parameter call.
15870         (decl_maybe_in_construction_p): New predicate.
15871         (get_polymorphic_call_info): Add parameter call;
15872         use decl_maybe_in_construction_p.
15873         * gimple-fold.c (fold_gimple_assign): Update use of
15874         possible_polymorphic_call_targets.
15875         (gimple_fold_call): Likewise.
15876         * ipa-prop.c: Inlcude calls.h
15877         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
15878         (param_type_may_change_p): New predicate.
15879         (detect_type_change_from_memory_writes): Break out from ...
15880         (detect_type_change): ... this one; use param_type_may_change_p.
15881         (detect_type_change_ssa): Use param_type_may_change_p.
15882         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
15884 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
15886         PR target/49423
15887         * config/arm/arm-protos.h (arm_legitimate_address_p,
15888         arm_is_constant_pool_ref): Add prototypes.
15889         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
15890         (arm_is_constant_pool_ref) New function.
15891         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
15892         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
15893         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
15894         operand. Remove pool_range and neg_pool_range attributes.
15895         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
15896         pool_range and neg_pool_range attributes.
15897         * config/arm/constraints.md (Uh): New constraint.
15898         (Uq): Don't allow constant pool references.
15900 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
15902         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
15903         (move_lo_quad_internal_be_<mode>): Likewise.
15904         (move_lo_quad_<mode>): Convert to define_expand.
15905         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
15906         (aarch64_simd_move_hi_quad_be_<mode>): New.
15907         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
15908         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
15909         (aarch64_combinez_be<mode>): New.
15910         (aarch64_combine<mode>): Convert to define_expand.
15911         (aarch64_combine_internal<mode>): New.
15912         (aarch64_simd_combine<mode>): Remove bogus RTL description.
15914 2014-07-04  Tom de Vries  <tom@codesourcery.com>
15916         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
15917         combination of earlyclobber and read/write modifiers.
15919 2014-07-04  Tom de Vries  <tom@codesourcery.com>
15921         * config/aarch64/aarch64-simd.md
15922         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
15924 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
15926         PR target/61714
15927         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
15929 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
15931         PR middle-end/61654
15932         * cgraphunit.c (expand_thunk): Call free_dominance_info.
15934         PR tree-optimization/61684
15935         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
15936         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
15938 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15939             Kito Cheng  <kito@0xlab.org>
15940             Monk Chiang  <sh.chiang04@gmail.com>
15942         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
15943         (nds32_symbol_load_store_p): Move to ...
15944         (nds32_fp_as_gp_check_available): Move to ...
15945         * config/nds32/nds32-fp-as-gp.c: ... here.
15946         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
15947         extern declaration.
15949 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15950             Kito Cheng  <kito@0xlab.org>
15951             Monk Chiang  <sh.chiang04@gmail.com>
15953         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
15954         (nds32_expand_store_multiple): Move to ...
15955         (nds32_expand_movmemqi): Move to ...
15956         * config/nds32/nds32-memory-manipulation.c: ... here.
15958 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15959             Kito Cheng  <kito@0xlab.org>
15960             Monk Chiang  <sh.chiang04@gmail.com>
15962         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
15963         (nds32_output_casesi_pc_relative): Move to ...
15964         (nds32_output_casesi): Move to ...
15965         (nds32_mem_format): Move to ...
15966         (nds32_output_16bit_store): Move to ...
15967         (nds32_output_16bit_load): Move to ...
15968         (nds32_output_32bit_store): Move to ...
15969         (nds32_output_32bit_load): Move to ...
15970         (nds32_output_32bit_load_s): Move to ...
15971         (nds32_output_stack_push): Move to ...
15972         (nds32_output_stack_pop): Move to ...
15973         * config/nds32/nds32-md-auxiliary.c: ... here.
15975 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15976             Ling-Hua Tseng  <uranus@tinlans.org>
15978         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
15979         the purpose of this file.
15981 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15982             Kito Cheng  <kito@0xlab.org>
15983             Monk Chiang  <sh.chiang04@gmail.com>
15985         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
15986         (nds32_address_cost): Move implementation to ...
15987         * config/nds32/nds32-cost.c: ... here.
15988         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
15989         (nds32_address_cost_impl): Declare.
15991 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15992             Kito Cheng  <kito@0xlab.org>
15993             Monk Chiang  <sh.chiang04@gmail.com>
15995         * config/nds32/nds32.c
15996         (nds32_consecutive_registers_load_store_p): Move to ...
15997         (nds32_valid_multiple_load_store): Move to ...
15998         (nds32_valid_stack_push_pop): Move to ...
15999         (nds32_can_use_bclr_p): Move to ...
16000         (nds32_can_use_bset_p): Move to ...
16001         (nds32_can_use_btgl_p): Move to ...
16002         (nds32_can_use_bitci_p): Move to ...
16003         * config/nds32/nds32-predicates.c: ... here.
16005 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16006             Kito Cheng  <kito@0xlab.org>
16007             Monk Chiang  <sh.chiang04@gmail.com>
16009         * config/nds32/nds32.c
16010         (nds32_expand_builtin_null_ftype_reg): Move to ...
16011         (nds32_expand_builtin_reg_ftype_imm): Move to ...
16012         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
16013         (nds32_init_builtins): Move implementation to ...
16014         (nds32_expand_builtin): Move implementation to ...
16015         * config/nds32/nds32-intrinsic.c: ... here.
16016         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
16017         (nds32_expand_builtin_impl): Declare.
16019 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16020             Kito Cheng  <kito@0xlab.org>
16021             Monk Chiang  <sh.chiang04@gmail.com>
16023         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
16024         (nds32_emit_section_tail_template): Move to ...
16025         (nds32_emit_isr_jmptbl_section): Move to ...
16026         (nds32_emit_isr_vector_section): Move to ...
16027         (nds32_emit_isr_reset_conten): Move to ...
16028         (nds32_check_isr_attrs_conflict): Move to ...
16029         (nds32_construct_isr_vectors_information): Move to ...
16030         (nds32_asm_file_start): Move implementation to ...
16031         (nds32_asm_file_end): Move implementation to ...
16032         * config/nds32/nds32-isr.c: ... here.
16033         * config/nds32/nds32-protos.h
16034         (nds32_check_isr_attrs_conflict): Declare.
16035         (nds32_construct_isr_vectors_information): Declare.
16036         (nds32_asm_file_start_for_isr): Declare.
16037         (nds32_asm_file_end_for_isr): Declare.
16039 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16040             Kito Cheng  <kito@0xlab.org>
16041             Monk Chiang  <sh.chiang04@gmail.com>
16043         * config.gcc (nds32*): Add new modules to extra_objs.
16044         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
16045         (nds32be-*-*): Likewise.
16046         * config/nds32/nds32-cost.c: New file.
16047         * config/nds32/nds32-fp-as-gp.c: New file.
16048         * config/nds32/nds32-intrinsic.c: New file.
16049         * config/nds32/nds32-isr.c: New file.
16050         * config/nds32/nds32-md-auxiliary.c: New file.
16051         * config/nds32/nds32-memory-manipulation.c: New file.
16052         * config/nds32/nds32-pipelines-auxiliary.c: New file.
16053         * config/nds32/nds32-predicates.c: New file.
16054         * config/nds32/t-nds32: New file.
16056 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16058         PR tree-optimization/61682
16059         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
16060         using cases and when one of the operands is equal to 1.
16062 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
16064         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
16065         ashr<mode>3): Correct mode of operands[2].
16066         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
16067         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
16068         Correct mode of operands[2].  Fix split condition.
16070 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
16072         * arm.md (arch): Add armv6_or_vfpv3.
16073         (arch_enabled): Add test for the above.
16074         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
16075         on VFP9.
16076         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
16078 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16080         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
16081         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
16082         HWI 1 and negate the unsigned value.
16083         * expmed.c (expand_sdiv_pow2): For modes wider than word always
16084         use AND instead of shift.
16085         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
16087 2014-07-03  Marek Polacek  <polacek@redhat.com>
16089         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
16090         (-fsanitize=float-divide-by-zero): Move to the table with
16091         -fsanitize=undefined suboptions.
16092         (-fsanitize=float-cast-overflow): Likewise.
16094 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
16096         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
16097         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
16098         endianness.
16100 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16102         * loop-invariant.c (struct invariant): Add a new member: eqno;
16103         (find_identical_invariants): Update eqno;
16104         (create_new_invariant): Init eqno;
16105         (get_inv_cost): Compute comp_cost with eqno;
16107 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
16109         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
16110         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
16111         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
16112         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
16113         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
16115 2014-07-02  Christian Bruel  <christian.bruel@st.com>
16117         PR target/29349
16118         PR target/53513
16119         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
16120         (make_preds_opaque): Delete.
16121         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
16122         (commit_mode_sets): New function.
16123         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
16124         Process all modes at once.
16125         * basic-block.h (pre_edge_lcm_avs): Declare.
16126         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
16127         Call clear_aux_for_edges. Fix comments.
16128         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
16129         (pre_edge_rev_lcm): Idem.
16130         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
16131         parameter.
16132         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
16133         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
16134         Idem.
16135         * config/i386/i386.c (x96_emit_mode_set): Idem.
16136         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
16137         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
16138         (fpscr_toggle) Disallow from delay slot.
16139         * target.def (emit_mode_set): Add prev_mode parameter.
16140         * doc/tm.texi: Regenerate.
16142 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16144         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
16145         variable i.
16147 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16149         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
16150         vtable_pointer_value_to_vtable): Constify.
16151         (contains_polymorphic_type_p): Declare.
16152         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
16153         vtable_pointer_value_to_vtable): Constify.
16154         (contains_polymorphic_type_p): New predicate.
16155         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
16156         polymorphic types.
16157         (ipa_set_ancestor_jf): Likewise.
16158         (detect_type_change): Return false in easy cases.
16159         (compute_complex_assign_jump_func): Require type to contain
16160         polymorphic type.
16161         (compute_known_type_jump_func): Likewise.
16163 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16165         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
16166         Remove.
16167         (type_in_anonymous_namespace_p): Constify argument.
16168         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
16169         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
16170         (main_odr_variant): New function.
16171         (hash_type_name): Make static; update assert; do not ICE on
16172         non-records.
16173         (types_same_for_odr): Bring here from tree.c; simplify and remove
16174         old structural comparing code that doesn't work for templates.
16175         (odr_hasher::equal): Update assert.
16176         (add_type_duplicate): Return true when bases should be computed;
16177         replace incomplete loader by complete; do not output duplicated
16178         warnings; do not ICE on non-records; set odr_violated flag.
16179         (get_odr_type): Be ready to replace incomplete type by complete
16180         one; work on ODR variants instead of main variants; reorder item
16181         in array so bases have still smaller indexes.
16182         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
16183         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
16185 2014-07-01  Cary Coutant  <ccoutant@google.com>
16187         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
16188         lookup.
16189         (resolve_addr_in_expr): When replacing the rtx in a location list
16190         entry, get a new address table entry.
16191         (dwarf2out_finish): Call index_location_lists even if there are no
16192         addr_index_table entries yet.
16194 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16196         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
16197         change for not being obvious.
16199 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16201         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
16202         unused argument.
16204 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16206         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16207         (vcagt_f64): Likewise.
16208         (vcale_f64): Likewise.
16209         (vcaled_f64): Likewise.
16210         (vcales_f32): Likewise.
16211         (vcalt_f64): Likewise.
16212         (vcaltd_f64): Likewise.
16213         (vcalts_f32): Likewise.
16215 2014-07-01  Marek Polacek  <polacek@redhat.com>
16217         * doc/invoke.texi: Document -Wint-conversion.
16219 2014-07-01  Marek Polacek  <polacek@redhat.com>
16221         PR c/58286
16222         * doc/invoke.texi: Document -Wincompatible-pointer-types.
16224 2014-07-01  Martin Liska  <mliska@suse.cz>
16226         IPA REF alias refactoring
16227         * cgraph.h (iterate_direct_aliases): New function.
16228         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
16229         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
16230         FOR_EACH_ALIAS added.
16231         (cgraph_for_node_and_aliases): Likewise.
16232         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
16233         * ipa-inline.c (reset_edge_caches): Likewise.
16234         (update_caller_keys): Likewise.
16235         * trans-mem.c (ipa_tm_execute): Likewise.
16236         *varpool.c (varpool_analyze_node): Likewise.
16237         (varpool_for_node_and_aliases): Likewise.
16238         * ipa-ref.h (first_alias): New function.
16239         (last_alias): Likewise.
16240         (has_aliases_p): Likewise.
16241         * ipa-ref.c (ipa_ref::remove_reference): Removal function
16242         is sensitive to IPA_REF_ALIASes.
16243         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
16244         are put at the beginning of the list.
16245         (symtab_node::iterate_direct_aliases): New function.
16247 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16249         Revert:
16250         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16251         type is complete.
16252         (write_ts_type_common_tree_pointers): Do not stream fields not set
16253         for incomplete types; do not stream duplicated fields for variants;
16254         sanity check that variant and type match.
16255         (write_ts_type_non_common_tree_pointers): Likewise.
16256         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16257         TYPE_SIZE whether type is complete.
16258         (lto_input_ts_type_common_tree_pointers): Do same changes as in
16259         write_ts_type_common_tree_pointers
16260         (lto_input_ts_type_non_common_tree_pointers): Likewise.
16262 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
16264         * var-tracking.c (add_stores): Return instead of asserting if old
16265         and new values for conditional store are the same.
16267 2014-06-30  Richard Henderson  <rth@redhat.com>
16269         PR rtl-opt/61608
16270         PR target/39284
16271         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
16272         the cfg if there were any changes.
16273         * passes.def: Revert move of peephole2 after reorder_blocks;
16274         move duplicate_computed_gotos before peephole2.
16276 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
16278         * except.c (emit_note_eh_region_end): New helper function.
16279         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
16280         emit EH_REGION_END note.
16281         * jump.c (cleanup_barriers): Do not split a call and its
16282         corresponding CALL_ARG_LOCATION note.
16284 2014-06-30  Jeff Law  <law@redhat.com>
16286         PR tree-optimization/61607
16287         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
16288         deeper into the SSA_NAME_VALUE chain.
16290 2014-06-30  Marek Polacek  <polacek@redhat.com>
16292         * convert.c (convert_to_integer): Don't instrument conversions if the
16293         function has no_sanitize_undefined attribute.
16294         * ubsan.c: Don't run the ubsan pass if the function has
16295         no_sanitize_undefined attribute.
16297 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
16299         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
16300         -fsanitize=undefined suboptions.
16302 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
16304         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
16305         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
16306         against bigendian and adjust indices.
16308 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
16310         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
16312 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16314         PR target/61633
16315         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
16316         Add alternative; make early clobber.  Adjust both split patterns
16317         to use operand 0 as the working register.
16319 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
16321         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
16322         as ira_object_id_map might be NULL, or 1.
16324 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16326         * loop-invariant.c (get_inv_cost): Handle register class.
16327         (gain_for_invariant): Check the register pressure of the inv
16328         and its overlapped register class, other than all.
16330 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
16332         * doc/invoke.texi (Optimize Options): Fix descriptions of
16333         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
16335 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
16337         * doc/extend.texi (Function Attributes): Update 'naked' attribute
16338         documentation.
16340 2014-06-29  Tobias Grosser <tobias@grosser.es>
16342         PR bootstrap/61650
16343         * graphite-isl-ast-to-gimple.c: Add missing guards.
16345 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
16347         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
16348         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
16349         * flag-types.h: Add new enum fgraphite_generator.
16350         * graphite-isl-ast-to-gimple.c: New.
16351         * graphite-isl-ast-to-gimple.h: New.
16352         * graphite.c (graphite_transform_loops): Add choice of Graphite
16353         code generator, which depends on flag_graphite_code_gen.
16355 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
16357         * graphite-dependences.c (subtract_commutative_associative_deps):
16358         Add NULL checking of the following variables: must_raw_no_source,
16359         may_raw_no_source, must_war_no_source, may_war_no_source,
16360         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
16361         must_war, may_war, must_waw, may_waw.
16363 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
16365         * graphite-clast-to-gimple.c: gloog is renamed to
16366         graphite_regenerate_ast_cloog.  gloog_error is renamed to
16367         graphite_regenerate_error.
16368         * graphite-clast-to-gimple.h: The definition of the struct
16369         bb_pbb_def is moved to graphite-htab.h.
16370         Add inclusion of the hash-table.h.
16371         * graphite-htab.h: The declaration of the function gloog is moved
16372         to graphite-clast-to-gimple.h and renamed to
16373         graphite_regenerate_ast_cloog.
16374         * graphite.c (graphite_transform_loops): gloog is renamed
16375         to graphite_regenerate_ast_cloog.
16377 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16379         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16380         type is complete.
16381         (write_ts_type_common_tree_pointers): Do not stream fields not set
16382         for incomplete types; do not stream duplicated fields for variants;
16383         sanity check that variant and type match.
16384         (write_ts_type_non_common_tree_pointers): Likewise.
16385         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16386         TYPE_SIZE whether type is complete.
16387         (lto_input_ts_type_common_tree_pointers): Do same changes as in
16388         write_ts_type_common_tree_pointers
16389         (lto_input_ts_type_non_common_tree_pointers): Likewise.
16391 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16393         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
16395 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16397         * tree-inline.c (remap_type_1): Do not duplicate fields
16398         that are shared in between type and its main variant.
16400 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16402         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
16403         of the type.
16404         (ipa_set_ancestor_jf) Likewise.
16405         (check_stmt_for_type_change): Check that we work on main variant.
16406         (detect_type_change): Look into main variant.
16407         (compute_known_type_jump_func): Check that main variant has BINFO.
16409 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16411         * ipa-devirt.c (set_type_binfo): New function.
16412         (add_type_duplicate): Use it.
16413         (get_odr_type): Sanity check that binfos points to main variants.
16414         (get_class_context): Be sure the context's outer_type is main variant.
16415         (contains_type_p): Walk main variant.
16416         (get_polymorphic_call_info_for_decl): Set outer_type to be
16417         main variant.
16418         (get_polymorphic_call_info): Likewise.
16419         (possible_polymorphic_call_targets): Sanity check that we operate
16420         on main variant.
16422 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16424         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16426 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16428         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
16429         accidental change due to wide-int branch merge.
16431 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16433         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
16434         compressed debug support.
16435         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
16436         * configure: Regenerate.
16437         * config.in: Regenerate.
16438         * common.opt (compressed_debug_sections): New enum.
16439         (gz, gz=): New options.
16440         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
16441         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
16442         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
16443         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
16444         LINK_COMPRESS_DEBUG_SPEC.
16445         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
16446         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
16447         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
16448         (Debugging Options): Document -gz[=type].
16450 2014-06-27  Martin Jambor  <mjambor@suse.cz>
16452         PR ipa/61160
16453         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
16454         args_to_skip, use those from node instead.  Copy args_to_skip and
16455         combined_args_to_skip from node to the new thunk.
16456         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
16457         (cgraph_create_virtual_clone): Moved computation of
16458         combined_args_to_skip...
16459         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
16461 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
16463         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
16464         redundant diagnostic machinary.
16466 2014-06-27  Richard Biener  <rguenther@suse.de>
16468         * tree-ssa-math-opts.c (bswap_replace): Fix
16469         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
16471 2014-06-27  Martin Liska  <mliska@suse.cz>
16473         * gimple.h (gimple_location_safe): New function introduced.
16474         * cgraphunit.c (walk_polymorphic_call_targets): Usage
16475         of gimple_location_safe replaces gimple_location.
16476         (gimple_fold_call): Likewise.
16477         * ipa-devirt.c (ipa_devirt): Likewise.
16478         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16479         * ipa.c (walk_polymorphic_call_targets): Likewise.
16480         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16482 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
16484         PR tree-optimization/57233
16485         PR tree-optimization/61299
16486         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
16487         functions.
16488         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
16489         would be lowered to scalar shifts, check if corresponding
16490         shifts and vector BIT_IOR_EXPR are supported and don't lower
16491         or lower just to narrower vector type in that case.
16492         * expmed.c (expand_shift_1): Fix up handling of vector
16493         shifts and rotates.
16495 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
16497         PR target/61586
16498         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
16500 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
16502         * doc/invoke.texi (-fsemantic-interposition): Document.
16503         * common.opt (fsemantic-interposition): New flag.
16504         * varasm.c (decl_replaceable_p): Use it.
16506 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16508         PR target/61542
16509         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
16510         extraction other than index 3.
16512 2014-06-26  Teresa Johnson  <tejohnson@google.com>
16514         * doc/invoke.texi: Fix typo.
16515         * dumpfile.c: Add support for documented -fdump-* options
16516         optimized/missed/note/optall.
16518 2014-06-26  Martin Jambor  <mjambor@suse.cz>
16520         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
16521         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
16522         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
16523         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
16524         * opts.c (default_options_optimization): Set
16525         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
16526         * doc/invoke.texi (allow-load-data-races)
16527         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
16528         (allow-store-data-races): Document the new default.
16530 2014-06-26  Martin Jambor  <mjambor@suse.cz>
16532         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
16533         renamed to ipa_impossible_devirt_target.  Fix typo.
16534         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
16535         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
16536         ipa_impossible_devirt_target.
16538 2014-06-26  Richard Biener  <rguenther@suse.de>
16540         PR tree-optimization/61607
16541         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
16542         explaining why we restrict copies on loop depth.
16543         * tree-ssa-dom.c (cprop_operand): Remove restriction on
16544         on loop depth.
16545         (record_equivalences_from_phis): Instead add it here.
16547 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
16549         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
16550         (LTO_WRAPPER_OBJS): New variable.
16551         (lto-wrapper$(exeext)): Use it.
16552         * collect2.c: Include "collect-utils.h".
16553         (verbose, debug): Remove variables.
16554         (at_file_supplied): No longer static.
16555         (tool_name): New variable.
16556         (do_wait, fork_execute, maybe_unlink): Don't declare.
16557         (tool_cleanup): No longer static.
16558         (notice): Remove function.
16559         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
16560         fork_execute calls.
16561         (collect_wait, do_wait, collect_execute): Remove functions.
16562         (maybe_unlink): No longer static.
16563         * collect2.h (verbose, debug): Don't declare.
16564         (at_file_supplied): Declare.
16565         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
16566         changed.
16567         (collect_execute): Replace with implementation from collect2, plus a
16568         new arg use_atfile.  All callers changed.
16569         (collect_wait): Replace with implementation from collect2.
16570         (maybe_unlink_file): Remove function.
16571         (fork_execute): Replace with implementation from collect2, plus a
16572         new arg use_atfile.  All callers changed.
16573         (do_wait): Add call to utils_cleanup to the error path.
16574         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
16575         (tool_cleanup): Adjust declarations.
16576         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
16577         * tlink.c: Include "collect-utils.h".
16578         (tlink_execute): New arg use_atfile.  All callers changed.
16579         (tlink_init, tlink_execute): Remove declarations.
16581         * collect-utils.c (save_temps): New variable.
16582         (do_wait): Use it instead of debug.  Use fatal_error.
16583         * collect-utils.h (save_temps): Declare.
16584         * collect2.c (verbose): Rename from vflag.  All uses changed.
16585         (tool_cleanup): New function, copied from collect_atexit.
16586         (collect_atexit, handler): Just call it.
16587         * collect2.h (verbose): Declaration renamed from vflag.
16588         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
16589         debug.
16591         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
16592         (lto-wrapper$(exeext)): Link with collect-utils.o.
16593         * collect-utils.c: New file.
16594         * collect-utils.h: New file.
16595         * lto-wrapper.c: Include "collect-utils.h".
16596         (args_name): Delete variable.
16597         (tool_name): New variable.
16598         (tool_cleanup): New function.
16599         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
16600         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
16601         (fork_execute): Remove functions.
16603 2014-06-26  Nick Clifton  <nickc@redhat.com>
16605         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
16607         * doc/extend.texi (Function Attributes): Fix typo in description
16608         of RX vector attribute.
16610 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
16612         * config.gcc (supported_defaults): Error when passing either
16613         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
16615 2014-06-26  Richard Biener  <rguenther@suse.de>
16617         * tree-ssa-dom.c (cprop_operand): Remove restriction on
16618         propagating volatile pointers.
16620 2014-06-26  Richard Biener  <rguenther@suse.de>
16622         PR tree-optimization/61607
16623         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
16624         loop if we redirected its latch edge.
16625         (thread_block_1): Do not cancel loops prematurely.
16627 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
16629         * toplev.c (backend_init_target): Move init_emit_regs and
16630         init_regs to...
16631         (backend_init) ... here; skip ira_init_once and backend_init_target.
16632         (target_reinit) ... and here; clear
16633         this_target_rtl->lang_dependent_initialized.
16634         (lang_dependent_init_target): Clear
16635         this_target_rtl->lang_dependent_initialized;
16636         break out rtl initialization to ...
16637         (initialize_rtl): ... here; call also backend_init_target
16638         and ira_init_once.
16639         * toplev.h (initialize_rtl): New function.
16640         * function.c: Include toplev.h
16641         (init_function_start): Call initialize_rtl.
16642         * rtl.h (target_rtl): Add target_specific_initialized,
16643         lang_dependent_initialized.
16645 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
16646             Jakub Jelinek  <jakub@redhat.com>
16648         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
16650 2014-06-25  Tom de Vries  <tom@codesourcery.com>
16652         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
16654 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16656         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
16657         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
16658         Issue a strict overflow warning if appropriate.
16660 2014-06-25  Martin Liska  <mliska@suse.cz>
16662         IPA REF refactoring
16663         * Makefile.in: Removed header file (ipa-ref-inline.h).
16664         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
16665         called.
16666         (cgraph_speculative_call_info): Likewise.
16667         (cgraph_for_node_thunks_and_aliases): Likewise.
16668         (cgraph_for_node_and_aliases): Likewise.
16669         (verify_cgraph_node): Likewise.
16670         * cgraph.h: Batch of IPA REF functions become member functions of
16671         symtab_node: add_reference, maybe_add_reference, clone_references,
16672         clone_referring, clone_reference, find_reference,
16673         remove_stmt_references, remove_all_references,
16674         remove_all_referring, dump_references, dump_referring,
16675         has_alias_p, iterate_reference, iterate_referring.
16676         * cgraphbuild.c (record_reference): New IPA REF function used.
16677         (record_type_list): Likewise.
16678         (record_eh_tables): Likewise.
16679         (mark_address): Likewise.
16680         (mark_load): Likewise.
16681         (mark_store): Likewise.
16682         (pass_build_cgraph_edges): Likewise.
16683         (rebuild_cgraph_edge): Likewise.
16684         (cgraph_rebuild_references): Likewise.
16685         (pass_remove_cgraph_callee_edges): Likewise.
16686         * cgraphclones.c (cgraph_clone_node): Likewise.
16687         (cgraph_create_virtual_clone): Likewise.
16688         (cgraph_materialize_clone): Likewise.
16689         (cgraph_materialize_all_clones): Likewise.
16690         * cgraphunit.c (cgraph_reset_node): Likewise.
16691         (cgraph_reset_node): Likewise.
16692         (analyze_function): Likewise.
16693         (assemble_thunks_and_aliases): Likewise.
16694         (expand_function): Likewise.
16695         * ipa-comdats.c (propagate_comdat_group): Likewise.
16696         (enqueue_references): Likewise.
16697         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
16698         (create_specialized_node): Likewise.
16699         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
16700         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
16701         * ipa-inline.c (reset_edge_caches): Likewise.
16702         (update_caller_keys): Likewise.
16703         (execute): Likewise.
16704         * ipa-prop.c (remove_described_reference): Likewise.
16705         (propagate_controlled_uses): Likewise.
16706         (ipa_edge_duplication_hook): Likewise.
16707         (ipa_modify_call_arguments): Likewise.
16708         * ipa-pure-const.c (propagate_pure_const): Likewise.
16709         * ipa-ref-inline.h: Header file removed, functions moved
16710         to symtab_node class.
16711         * ipa-ref.c (remove_reference): New class member function.
16712         (cannot_lead_to_return): New class member function.
16713         (referring_ref_list): Likewise.
16714         (referred_ref_list): Likewise.
16715         Rest of functions moved to symtab_node class.
16716         * ipa-ref.h: New member functions remove_reference,
16717         cannot_lead_to_return, referring_ref_list, referred_ref_list added
16718         to ipa_ref class.
16719         ipa_ref_list class has new member functions: first_reference,
16720         first_referring, clear, nreferences.
16721         * ipa-reference.c (analyze_function): New IPA REF function used.
16722         (write_node_summary_p): Likewise.
16723         (ipa_reference_write_optimization_summary): Likewise.
16724         * ipa-split.c (split_function): Likewise.
16725         * ipa-utils.c (ipa_reverse_postorder): Likewise.
16726         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
16727         (function_and_variable_visibility): Likewise.
16728         * ipa.c (has_addr_references_p): Likewise.
16729         (process_references): Argument type changed.
16730         (symtab_remove_unreachable_nodes): New IPA REF function used.
16731         (process_references): Likewise.
16732         (set_writeonly_bit): Likewise.
16733         * lto-cgraph.c: Implementation of new symtab_node member functions
16734         that uses new IPA REF functions.
16735         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
16736         function used.
16737         * lto-streamer-out.c (output_symbol_p): Likewise.
16738         * lto-streamer.h (referenced_from_this_partition_p): Argument type
16739         changed.
16740         * symtab.c: Implementation of new IPA REF API.
16741         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
16742         (ipa_tm_create_version): Likewise.
16743         (ipa_tm_execute): Likewise.
16744         * tree-emutls.c (gen_emutls_addr): Likewise.
16745         * tree-inline.c (copy_bb): Likewise.
16746         (delete_unreachable_blocks_update_callgraph): Likewise.
16747         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
16748         (varpool_for_node_and_aliases): Likewise.
16750 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
16752         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
16754 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
16756         PR bootstrap/61598
16757         * fold-const.c (fold_checksum_tree): Use a hash_table of const
16758         tree_node * instead of tree_node *.
16759         (fold): Adjust.
16760         (print_fold_checksum): Likewise.
16761         (fold_check_failed): Likewise.
16762         (debug_fold_checksum): Likewise.
16763         (fold_build1_stat_loc): Likewise.
16764         (fold_build2_stat_loc): Likewise.
16765         (fold_build3_stat_loc): Likewise.
16766         (fold_build_call_array_loc): Likewise.
16768 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
16770         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
16771         implementation with call to...
16772         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
16773         function.
16774         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
16775         Declare.
16777 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
16779         PR tree-optimization/57742
16780         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
16781         after replacing the statement.
16783 2014-06-25  Nick Clifton  <nickc@redhat.com>
16785         * config/v850/v850.c (GHS_default_section_names): Change to const
16786         char * type.
16787         (GHS_current_section_names): Likewise.
16788         (v850_insert_attributes): Do not build strings, just assign the
16789         names directly.  Change the type of 'chosen_section' to const
16790         char*.
16791         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
16792         directly to the array entry.
16793         * config/v850/v850.h (GHS_default_section_names): Change to const
16794         char * type.
16795         (GHS_current_section_names): Likewise.
16797 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16799         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
16800         (LANG_HOOKS_DECLS): Add it.
16801         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
16802         has correct type.
16803         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
16804         * langhooks.h (struct lang_hooks_for_decls): Add
16805         omp_clause_linear_ctor hook.
16806         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
16807         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
16808         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
16809         combined simd loop use omp_clause_linear_ctor hook.
16811 2014-06-24  Cong Hou  <congh@google.com>
16813         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
16814         pattern recognition.
16815         (type_conversion_p): PROMOTION is true if it's a type promotion
16816         conversion, and false otherwise.  Return true if the given expression
16817         is a type conversion one.
16818         * tree-vectorizer.h: Adjust the number of patterns.
16819         * tree.def: Add SAD_EXPR.
16820         * optabs.def: Add sad_optab.
16821         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
16822         * expr.c (expand_expr_real_2): Likewise.
16823         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16824         * gimple.c (get_gimple_rhs_num_ops): Likewise.
16825         * optabs.c (optab_for_tree_code): Likewise.
16826         * tree-cfg.c (estimate_operator_cost): Likewise.
16827         * tree-ssa-operands.c (get_expr_operands): Likewise.
16828         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
16829         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
16830         * doc/generic.texi: Add document for SAD_EXPR.
16831         * doc/md.texi: Add document for ssad and usad.
16833 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16835         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
16836         qualification in cast.
16838 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
16840         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
16841         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
16842         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
16843         (tree_function_decl): ... here.
16844         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
16845         streaming of vindex to ...
16846         (write_ts_function_decl_tree_pointers): ... here.
16847         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
16848         Do not stream DECL_VINDEX.
16849         (lto_input_ts_function_decl_tree_pointers): Stream it here.
16851 2014-06-24  Catherine Moore  <clm@codesourcery.com>
16852             Sandra Loosemore  <sandra@codesourcery.com>
16854         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
16855         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
16856         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
16858 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
16860         * doc/invoke.texi (Warning Options): Remove duplicated
16861         -Wmaybe-uninitialized.
16863 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
16865         PR tree-optimization/57742
16866         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
16867         (handle_builtin_malloc, handle_builtin_memset): New functions.
16868         (strlen_optimize_stmt): Call them.
16869         * passes.def: Move strlen after loop+dom but before vrp.
16871 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16873         PR target/61570
16874         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
16875         model family 6 CPU with has_longmode never use a CPU without
16876         64-bit support.
16878 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16880         PR target/61570
16881         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
16882         the last change.
16884 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16886         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
16887         * dominance.c (iterate_fix_dominators): Use hash_map instead of
16888         pointer_map.
16889         * hash-map.h: New file.
16890         * ipa-comdats.c: Use hash_map instead of pointer_map.
16891         * ipa.c: Likewise.
16892         * lto-section-out.c: Adjust.
16893         * lto-streamer.h: Replace pointer_map with hash_map.
16894         * symtab.c (verify_symtab): Likewise.
16895         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
16896         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
16897         * tree-streamer.h: Likewise.
16898         * tree-streamer.c: Adjust.
16899         * pointer-set.h: Remove pointer_map.
16901 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16903         * hash-table.h: Add a template arg to choose between storing values
16904         and storing pointers to values, and then provide partial
16905         specializations for both.
16906         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
16907         should store, not the type values should point to.
16908         * tree-into-ssa.c (var_info_hasher): Likewise.
16909         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16910         * tree-complex.c: Adjust.
16911         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
16912         table instead of int_tree_map *.
16913         * tree-parloops.c: Adjust.
16914         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
16915         type is being stored.
16916         * tree-vectorizer.c: Adjust.
16918 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16920         * hash-table.h: Remove a layer of indirection from hash_table so that
16921         it contains the hash table's data instead of a pointer to the data.
16922         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
16923         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
16924         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
16925         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
16926         fold-const.c, gcse.c, ggc-common.c,
16927         gimple-ssa-strength-reduction.c, gimplify.c,
16928         graphite-clast-to-gimple.c, graphite-dependences.c,
16929         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
16930         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16931         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
16932         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
16933         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
16934         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
16935         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
16936         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
16937         tree-ssa-live.c, tree-ssa-loop-im.c,
16938         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16939         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
16940         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16941         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
16942         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
16943         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
16944         vtable-verify.c, vtable-verify.h: Adjust.
16946 2014-06-24  Richard Biener  <rguenther@suse.de>
16948         PR tree-optimization/61572
16949         * tree-ssa-sink.c (statement_sink_location): Do not sink
16950         loads from hard registers.
16952 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16954         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
16955         not mentioned in clauses use private clause if the iterator is
16956         declared in #pragma omp for simd, and when adding lastprivate
16957         instead, add it to the outer #pragma omp for too.  Diagnose
16958         if the variable is private in outer context.  For simd collapse > 1
16959         loops, replace all iterators with temporaries.
16960         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
16961         same even in collapse > 1 loops.
16963         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
16964         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
16965         non-NULL.
16966         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
16967         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
16968         non-NULL.
16969         (gimplify_adjust_omp_clauses): Likewise.
16970         * omp-low.c (lower_rec_simd_input_clauses,
16971         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
16972         safelen the same as safelen(1).
16973         * tree-nested.c (convert_nonlocal_omp_clauses,
16974         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
16975         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
16976         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
16977         Fixup handling of GIMPLE_OMP_TARGET.
16978         (convert_tramp_reference_stmt, convert_gimple_call): Handle
16979         GIMPLE_OMP_TARGET.
16981 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
16983         PR tree-optimization/61554
16984         * tree-ssa-propagate.c: Include "bitmap.h".
16985         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
16986         properly update constructor/destructor.
16987         (substitute_and_fold_dom_walker::before_dom_children):
16988         Remove call to gimple_purge_dead_eh_edges, add bb->index to
16989         need_eh_cleaup instead.
16990         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
16991         need_eh_cleanup.
16993 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
16995         * varpool.c (dump_varpool_node): Dump used_by_single_function.
16996         * tree-pass.h (make_pass_ipa_single_use): New pass.
16997         * cgraph.h (used_by_single_function): New flag.
16998         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
16999         Stream it.
17000         * passes.def (pass_ipa_single_use): Scedule.
17001         * ipa.c (BOTTOM): New macro.
17002         (meet): New function
17003         (propagate_single_user): New function.
17004         (ipa_single_use): New function.
17005         (pass_data_ipa_single_use): New pass.
17006         (pass_ipa_single_use): New pass.
17007         (pass_ipa_single_use::gate): New gate.
17008         (make_pass_ipa_single_use): New function.
17010 2014-06-23  Kai Tietz  <ktietz@redhat.com>
17012         PR target/39284
17013         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
17014         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
17016 2014-06-23  Richard Biener  <rguenther@suse.de>
17018         * tree-ssa-loop.c (gate_loop): New function.
17019         (pass_tree_loop::gate): Call it.
17020         (pass_data_tree_no_loop, pass_tree_no_loop,
17021         make_pass_tree_no_loop): New.
17022         * tree-vectorizer.c: Include tree-scalar-evolution.c
17023         (pass_slp_vectorize::execute): Initialize loops and SCEV if
17024         required.
17025         (pass_slp_vectorize::clone): New method.
17026         * timevar.def (TV_TREE_NOLOOP): New.
17027         * tree-pass.h (make_pass_tree_no_loop): Declare.
17028         * passes.def (pass_tree_no_loop): New pass group with
17029         SLP vectorizer.
17031 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17033         PR target/61570
17034         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
17035         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
17037 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17039         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
17040         "yes" where needed.
17042 2014-06-23  Alan Modra  <amodra@gmail.com>
17044         PR bootstrap/61583
17045         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
17046         to zero on debug statements.
17048 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17050         PR target/60825
17051         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
17052         Ignore third operand if present by marking qualifier_internal.
17054         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
17056         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
17057         vector extension.
17058         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
17059         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
17060         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
17061         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
17062         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
17063         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
17064         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
17065         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
17066         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
17067         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
17068         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
17069         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
17070         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
17071         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
17072         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
17073         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
17074         logic in GCC vector extensions
17076         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
17077         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
17078         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
17079         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
17080         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
17081         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
17082         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
17083         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
17084         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
17085         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
17087         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
17089         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
17090         extensions.
17092         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
17093         (vget_low_s64): Use __GET_LOW macro.
17094         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
17095         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
17096         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
17097         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
17098         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
17100         (vcombine_s64): Use GCC vector extensions; remove cast.
17101         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
17102         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
17103         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
17104         Fix type signature; remove cast.
17106 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17108         PR target/60825
17109         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
17110         V1DFmode.
17111         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
17112         add V1DFmode
17113         (BUILTIN_VD1): New.
17114         (BUILTIN_VD_RE): Remove.
17115         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
17116         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
17117         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
17118         variant but not df.
17119         (vreinterpretv1df*, vreinterpret*v1df): New.
17120         (vreinterpretdf*, vreinterpret*df): Remove.
17121         * config/aarch64/aarch64-simd.md (aarch64_create,
17122         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
17123         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
17124         (VD1): New.
17125         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
17126         (vcreate_f64): Remove cast, use v1df builtin.
17127         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
17128         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
17129         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
17130         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
17131         vmov_n_f64, vst1_f64): Use gcc vector extensions.
17132         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
17133         add range check using __builtin_aarch64_im_lane_boundsi.
17134         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
17135         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
17136         type signature, use gcc vector extensions.
17137         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
17138         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
17139         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
17140         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
17141         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
17142         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
17143         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
17144         vreinterpret_u64_f64): Use v1df builtin not df.
17146 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17148         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
17149         vector registers.
17151 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
17153         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
17154         priority directly.
17156 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17158         * loop-invariant.c (pre_check_invariant_p): New function.
17159         (find_invariant_insn): Call pre_check_invariant_p.
17161 2014-06-22  Richard Henderson  <rth@redhat.com>
17163         PR target/61565
17164         * compare-elim.c (struct comparison): Add eh_note.
17165         (find_comparison_dom_walker::before_dom_children): Don't eliminate
17166         a redundant comparison in a different EH region.  Purge EH edges if
17167         necessary.
17169 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17171         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
17172         (var_shift): Use it.
17173         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
17174         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17175         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17176         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17177         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17178         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
17179         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
17180         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
17181         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
17182         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
17183         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
17184         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
17185         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
17186         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
17187         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
17188         *rotldi3_internal15be): Use the new attribute.  Merge register and
17189         integer alternatives.
17191 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17193         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
17194         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
17195         split, *ashrdi3_internal3 and split): Delete, merge into...
17196         (ashr<mode>3): New expander.
17197         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
17198         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
17200 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17202         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
17203         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
17204         *rotldi3_internal3 and split): Delete, merge into...
17205         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
17206         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
17207         Use "rotlw" extended mnemonic.
17209 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17211         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17212         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17213         and split, *ashldi3_internal3 and split): Delete, merge into...
17214         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17215         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
17217 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17219         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17220         (lshrsi3, two anonymous define_insns and define_splits,
17221         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17222         *lshrdi3_internal3 and split): Delete, merge into...
17223         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17224         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
17226 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17228         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
17229         Remove "O" alternative.
17231 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
17233         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
17234         (mips_move_from_gpr_cost): Likewise.
17235         (mips_register_move_cost): Update accordingly.
17236         (mips_secondary_reload_class): Remove name of in_p.
17238 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
17240         PR target/61503
17241         * config/i386/i386.md (x86_64_shrd, x86_shrd,
17242         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
17244 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17246         * config/nios2/nios2.c: Include "builtins.h".
17248 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17250         * cgraph.h (tls_model_names): New variable.
17251         * print-tree.c (print_node): Simplify.
17252         * varpool.c (tls_model_names): New variable.
17253         (dump_varpool_node): Output tls model.
17255 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17257         * ipa-visibility.c (function_and_variable_visibility): Disable
17258         temporarily local aliases for some targets.
17260 2014-06-20  Marek Polacek  <polacek@redhat.com>
17262         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
17263         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
17264         into SANITIZE_UNDEFINED.
17265         * doc/invoke.texi: Describe -fsanitize=bounds.
17266         * gimplify.c (gimplify_call_expr): Add gimplification of internal
17267         functions created in the FEs.
17268         * internal-fn.c: Move "internal-fn.h" after "tree.h".
17269         (expand_UBSAN_BOUNDS): New function.
17270         * internal-fn.def (UBSAN_BOUNDS): New internal function.
17271         * internal-fn.h: Don't define internal functions here.
17272         * opts.c (common_handle_option): Add -fsanitize=bounds.
17273         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
17274         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
17275         * tree-core.h: Define internal functions here.
17276         (struct tree_base): Add ifn field.
17277         * tree-pretty-print.c: Include "internal-fn.h".
17278         (dump_generic_node): Handle functions without CALL_EXPR_FN.
17279         * tree.c (get_callee_fndecl): Likewise.
17280         (build_call_expr_internal_loc): New function.
17281         * tree.def (CALL_EXPR): Update description.
17282         * tree.h (CALL_EXPR_IFN): Define.
17283         (build_call_expr_internal_loc): Declare.
17284         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
17285         types.
17286         (ubsan_type_descriptor): Change bool parameter to enum
17287         ubsan_print_style.  Adjust the code.  Add handling of
17288         UBSAN_PRINT_ARRAY.
17289         (ubsan_expand_bounds_ifn): New function.
17290         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
17291         (ubsan_build_overflow_builtin): Likewise.
17292         (instrument_bool_enum_load): Likewise.
17293         (ubsan_instrument_float_cast): Likewise.
17294         * ubsan.h (enum ubsan_print_style): New enum.
17295         (ubsan_expand_bounds_ifn): Declare.
17296         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
17298 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
17300         * config/rs6000/rs6000.md: Append `DONE' to preparation
17301         statements of `bswap' pattern splitters.
17303 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17305         * target.def (call_fusage_contains_non_callee_clobbers): Update
17306         definition.
17307         * doc/tm.texi: Regenerate.
17309 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
17310             Max Ostapenko  <m.ostapenko@partner.samsung.com>
17312         PR sanitizer/61547
17313         * asan.c (instrument_strlen_call): Fixed instrumentation of
17314         trailing byte.
17316 2014-06-20  Martin Jambor  <mjambor@suse.cz>
17318         PR ipa/61540
17319         * ipa-prop.c (impossible_devirt_target): New function.
17320         (try_make_edge_direct_virtual_call): Use it, also instead of
17321         asserting.
17323 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
17324             Max Ostapenko  <m.ostapenko@partner.samsung.com>
17326         PR sanitizer/61530
17327         * asan.c (build_check_stmt): Add condition.
17329 2014-06-20  Martin Jambor  <mjambor@suse.cz>
17331         PR ipa/61211
17332         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
17333         expanded clones.
17335 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17337         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
17338         Update comments.
17339         (VCONQ): Make comment more helpful.
17340         (VCON): Delete.
17341         * config/aarch64/aarch64-simd.md
17342         (aarch64_sqdmulh_lane<mode>):
17343         Use VCOND for operands 2.  Update lane checking and flipping logic.
17344         (aarch64_sqrdmulh_lane<mode>): Likewise.
17345         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
17346         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
17347         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
17348         attribute of operand 3 to VCOND.
17349         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
17350         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
17351         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
17352         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
17353         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
17354         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
17355         define_insn.
17356         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
17357         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
17358         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
17359         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
17360         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
17361         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
17362         operand to VCOND.  Update lane flipping and bounds checking logic.
17363         (aarch64_sqdmlal2_lane<mode>): Likewise.
17364         (aarch64_sqdmlsl_lane<mode>): Likewise.
17365         (aarch64_sqdmull_lane<mode>): Likewise.
17366         (aarch64_sqdmull2_lane<mode>): Likewise.
17367         (aarch64_sqdmlal_laneq<mode>):
17368         Replace VCON usage with VCONQ.
17369         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
17370         (aarch64_sqdmlal2_laneq<mode>): Emit
17371         aarch64_sqdmlal2_laneq<mode>_internal insn.
17372         Replace VCON with VCONQ.
17373         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
17374         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17375         (aarch64_sqdmull_laneq<mode>): Emit
17376         aarch64_sqdmull_laneq<mode>_internal insn.
17377         Replace VCON with VCONQ.
17378         (aarch64_sqdmull2_laneq<mode>): Emit
17379         aarch64_sqdmull2_laneq<mode>_internal insn.
17380         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
17381         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
17382         of 3rd argument to int16x4_t.
17383         (vqdmlalh_lane_s16): Likewise.
17384         (vqdmlslh_lane_s16): Likewise.
17385         (vqdmull_high_lane_s16): Likewise.
17386         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
17387         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
17388         (vqdmlsl_lane_s16): Likewise.
17389         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
17390         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
17391         (vqdmlals_lane_s32): Likewise.
17392         (vqdmlsls_lane_s32): Likewise.
17393         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
17394         (vqdmulls_lane_s32): Likewise.
17395         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
17396         (vqdmlsl_lane_s32): Likewise.
17397         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
17398         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
17399         (vqrdmulhh_lane_s16): Likewise.
17400         (vqdmlsl_high_lane_s16): Likewise.
17401         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
17402         (vqdmlsl_high_lane_s32): Likewise.
17403         (vqrdmulhs_lane_s32): Likewise.
17405 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17407         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
17408         get_call_reg_set_usage.
17410 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17412         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
17413         it contains all call_used_regs.
17415 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17417         * final.c (collect_fn_hard_reg_usage): Add and use variable
17418         function_used_regs.
17420 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17422         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
17423         (set_init_priority, get_init_priority, set_fini_priority,
17424         get_fini_priority): New methods.
17425         * tree.c (init_priority_for_decl): Remove.
17426         (init_ttree): Do not initialize init priority.
17427         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
17428         (decl_priority_info): Remove.
17429         (decl_init_priority_insert): Rewrite.
17430         (decl_fini_priority_insert): Rewrite.
17431         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
17432         tree_priority_map_marked_p): Remove.
17433         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
17434         * lto-streamer-out.c (hash_tree): Do not hash priorities.
17435         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
17436         not output priorities.
17437         (pack_ts_function_decl_value_fields): Likewise.
17438         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17439         not input priorities.
17440         (unpack_ts_function_decl_value_fields): Likewise.
17441         * symtab.c (symbol_priority_map): Declare.
17442         (init_priority_hash): Declare.
17443         (symtab_unregister_node): Unregister from priority hash, too.
17444         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
17445         New methods.
17446         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
17447         (symbol_priority_info): New function.
17448         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
17449         New methods.
17450         * tree-core.h (tree_priority_map): Remove.
17452 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
17454         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
17455         0xff to uint64_t before shifting it up.
17457 2014-06-20  Julian Brown  <julian@codesourcery.com>
17458             Chung-Lin Tang  <cltang@codesourcery.com>
17460         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
17461         TARGET_THUMB1_ONLY. Add comments.
17463 2014-06-19  Tom de Vries  <tom@codesourcery.com>
17465         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
17466         return type to void.
17467         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
17469 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17471         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
17472         as "move", from depends_on.
17474 2014-06-19  Terry Guo  <terry.guo@arm.com>
17476         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
17477         stage.
17479 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
17481         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
17482         Remove cr5.
17483         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
17485 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17487         PR target/61550
17488         * config/sh/sh.c (prepare_move_operands): Don't process TLS
17489         addresses here if reload in progress or completed.
17491 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17493         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
17494         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
17495         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
17496         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
17497         (mips_register_priority): New function that implements the target
17498         hook TARGET_REGISTER_PRIORITY.
17499         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
17500         (mips_lra_p): Likewise for TARGET_LRA_P.
17501         (TARGET_REGISTER_PRIORITY): Define macro.
17502         (TARGET_SPILL_CLASS): Likewise.
17503         (TARGET_LRA_P): Likewise.
17504         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
17505         classes.
17506         (REG_CLASS_NAMES): Likewise.
17507         (REG_CLASS_CONTENTS): Likewise.
17508         (BASE_REG_CLASS): Use M16_SP_REGS.
17509         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
17510         New set attribute to enable alternatives depending on the register
17511         allocator used.
17512         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
17513         (*lea64): Disable pattern for MIPS16.
17514         * config/mips/mips.opt (mlra): New option.
17516 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17518         * lra-constraints.c (base_to_reg): New function.
17519         (process_address): Use new function.
17521 2014-06-18  Tom de Vries  <tom@codesourcery.com>
17523         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
17524         * config/aarch64/aarch64.c
17525         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
17526         (aarch64_emit_call_insn): New function.
17527         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
17528         of emit_call_insn.
17529         * config/aarch64/aarch64.md (define_expand "call_internal")
17530         (define_expand "call_value_internal", define_expand "sibcall_internal")
17531         (define_expand "sibcall_value_internal"): New.
17532         (define_expand "call", define_expand "call_value")
17533         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
17534         expand variant and aarch64_emit_call_insn.
17536 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
17537             Tom de Vries  <tom@codesourcery.com>
17539         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
17540         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17541         Redefine to true.
17542         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
17543         clobbers to CALL_INSN_FUNCTION_USAGE.
17544         (define_expand "sibcall_internal")
17545         (define_expand "sibcall_value_internal"): New.
17546         (define_expand "call", define_expand "call_value"): Add argument to
17547         arm_emit_call_insn.
17548         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
17549         (define_expand "sibcall_value"): Use sibcall_value_internal and
17550         arm_emit_call_insn.
17552 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17554         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
17556 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17558         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
17559         __udivmoddi4.
17561 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17563         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
17564         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
17565         annotations. Fix DWARF information.
17567 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17569         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
17570         __udivmoddi4, and fixups for negative operands.
17572 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17574         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
17576 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17578         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
17579         to __udivmoddi4.
17581 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17583         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
17584         manipulation.
17586 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17588         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
17589         describing register usage on function entry and exit.
17591 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17593         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
17594         (__aeabi_ldivmod): Fix whitespace.
17596 2014-06-18  Andreas Schwab  <schwab@suse.de>
17598         * doc/md.texi (Standard Names): Use @itemx for grouped items.
17599         Remove blank line after @item.
17601 2014-06-18  Richard Henderson  <rth@redhat.com>
17603         PR target/61545
17604         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
17606 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17608         * config/arm/arm.c (neon_vector_mem_operand): Allow register
17609         POST_MODIFY for neon loads and stores.
17610         (arm_print_operand): Output post-index register for neon loads and
17611         stores.
17613 2014-06-18  Richard Biener  <rguenther@suse.de>
17615         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
17617 2014-06-18  Richard Biener  <rguenther@suse.de>
17619         * tree-pass.h (make_pass_dce_loop): Remove.
17620         * passes.def: Replace pass_dce_loop with pass_dce.
17621         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
17622         changed free niter estimates and reset the scev cache.
17623         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
17624         make_pass_dce_loop): Remove.
17625         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
17626         (fini_copy_prop): Return whether something changed.  Always
17627         let substitute_and_fold perform DCE and free niter estimates
17628         and reset the scev cache if so.
17629         (execute_copy_prop): If sth changed schedule cleanup-cfg.
17630         (pass_data_copy_prop): Do not unconditionally schedule
17631         cleanup-cfg or update-ssa.
17633 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
17635         PR tree-optimization/61518
17636         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17637         reduction var is used in reduction stmt or phi-function only.
17639 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17641         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
17643 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17645         PR tree-optimization/61517
17646         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
17647         whose rhs's first tree is the source expression instead of the
17648         expression itself.
17649         (find_bswap_or_nop): Likewise.
17650         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
17651         gimple stmt whose rhs's first tree is the source. In the memory source
17652         case, move the stmt to be replaced close to one of the original load to
17653         avoid the problem of a store between the load and the stmt's original
17654         location.
17655         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
17656         signature.
17658 2014-06-18  Andreas Schwab  <schwab@suse.de>
17660         PR rtl-optimization/54555
17661         * postreload.c (move2add_use_add2_insn): Substitute
17662         STRICT_LOW_PART only if it is cheaper.
17664 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
17666         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
17667         Do not use unspec as call operand.  Use memory_operand instead of
17668         memory_nox32_operand and add "m" operand constraint.  Disable
17669         pattern for TARGET_X32.
17670         (*sibcall_pop_memory): Ditto.
17671         (*sibcall_value_memory): Ditto.
17672         (*sibcall_value_pop_memory): Ditto.
17673         (sibcall peepholes): Merge SImode and DImode patterns using
17674         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
17675         Disable pattern for TARGET_X32.  Check if eliminated register is
17676         really dead after call insn.  Generate call RTX without unspec operand.
17677         (sibcall_value peepholes): Ditto.
17678         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
17679         instead of memory_nox32_operand.  Check if eliminated register is
17680         really dead after call insn. Generate call RTX without unspec operand.
17681         (sibcall_value_pop peepholes): Ditto.
17682         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
17684 2014-06-18  Terry Guo  <terry.guo@arm.com>
17686         PR target/61544
17687         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
17688         reach the head.
17690 2014-06-18  Olivier Hainque  <hainque@adacore.com>
17692         * tree-core.h (tree_block): Add an "end_locus" field, allowing
17693         memorization of the end of block source location.
17694         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
17695         * gimplify.c (gimplify_bind_expr): Propagate the block start and
17696         end source location info we have on the block entry/exit code we
17697         generate.
17699 2014-06-18  Richard Biener  <rguenther@suse.de>
17701         * common.opt (fssa-phiopt): New option.
17702         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
17703         but not with -Og.
17704         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
17705         * doc/invoke.texi (-fssa-phiopt): Document.
17707 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17709         * genattrtab.c (n_bypassed): New variable.
17710         (process_bypasses): Initialise n_bypassed.
17711         Count number of bypassed reservations.
17712         (make_automaton_attrs): Allocate space for bypassed reservations
17713         rather than number of bypasses.
17715 2014-06-18  Richard Biener  <rguenther@suse.de>
17717         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
17718         we propagated anything.
17719         (substitute_and_fold_dom_walker::before_dom_children): Something
17720         changed if we propagated into PHI arguments.
17721         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
17722         we removed a stmt.
17724 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
17726         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
17727         vector case.
17728         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
17729         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
17730         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
17731         Introduces alternative way of loads group permutaions.
17732         (vect_transform_grouped_load): Try alternative way of permutations.
17734 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
17736         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
17737         changed in ORT_TARGET region, don't jump to do_outer.
17738         (struct gimplify_adjust_omp_clauses_data): New type.
17739         (gimplify_adjust_omp_clauses_1): Adjust for data being
17740         a struct gimplify_adjust_omp_clauses_data pointer instead
17741         of tree *.  Pass pre_p as a new argument to
17742         lang_hooks.decls.omp_finish_clause hook.
17743         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
17744         splay_tree_foreach to pass both list_p and pre_p.
17745         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
17746         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
17747         gimplify_adjust_omp_clauses callers.
17748         * langhooks.c (lhd_omp_finish_clause): New function.
17749         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
17750         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
17751         * langhooks.h (struct lang_hooks_for_decls): Add a new
17752         gimple_seq * argument to omp_finish_clause hook.
17753         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
17754         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
17755         (scan_omp_parallel, lower_omp_for): When adding
17756         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
17757         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
17758         * tree-nested.c (convert_nonlocal_omp_clauses,
17759         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
17760         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
17762 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
17764         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
17765         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
17767 2014-06-17  Xinliang David Li  <davidxl@google.com>
17769         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
17770         * passes.c (pass_init_dump_file): Do not set initialize
17771         flag to false unconditionally.
17773 2014-06-17  Richard Biener  <rguenther@suse.de>
17775         * genopinit.c (main): Use vec<>::qsort method.
17776         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17777         Likewise.
17778         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
17780 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
17782         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
17783         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
17784         (mips_move_to_gpr_cost): Remove ST_REGS case.
17785         (mips_move_from_gpr_cost): Likewise.
17786         (mips_register_move_cost): Likewise.
17787         (mips_secondary_reload_class): Likewise.
17789 2014-06-17  Richard Biener  <rguenther@suse.de>
17791         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
17792         (pass_all_optimizations): Move 3rd copy-prop pass from after
17793         fre to before ifcombine/phiopt.
17795 2014-06-17  Richard Biener  <rguenther@suse.de>
17797         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
17798         and allow all blocks to be forwarders.
17800 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
17802         PR target/61483
17803         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
17804         variable 'size'; calculate 'size' right in the front; use
17805         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
17806         pcum->aapcs_stack_words.
17808 2014-06-17  Nick Clifton  <nickc@redhat.com>
17810         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
17811         (umulhi3, mulsidi3, umulsidi3): Likewise.
17813 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
17815         PR middle-end/61508
17816         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
17817         check for section name.
17819 2014-06-17  Richard Biener  <rguenther@suse.de>
17821         * tree-ssa-propagate.c: Include domwalk.h.
17822         (substitute_and_fold): Outline main worker into a domwalker ...
17823         (substitute_and_fold_dom_walker::before_dom_children): ... here.
17824         Schedule stmts we can fully propagate for removal.  Remove
17825         poor-mans DCE.
17826         (substitute_and_fold): Apply a dominator walk to perform
17827         substitution.  Process stmts scheduled for removal here.
17829 2014-06-17  Richard Biener  <rguenther@suse.de>
17831         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
17832         of PHI node moving.
17834 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
17836         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
17837         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
17838         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17839         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
17840         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
17841         TARGET_HARD_FLOAT.
17842         (get_fpscr) : Likewise.
17844 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
17846         PR rtl-optimization/61325
17847         * lra-constraints.c (valid_address_p): Add forward declaration.
17848         (simplify_operand_subreg): Check address validity before and after
17849         alter_reg of memory subreg.
17851 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
17853         * config/i386/i386.c (decide_alg): Correctly handle
17854         maximum size of stringop algorithm.
17856 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
17858         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
17860 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
17862         PR rtl-optimization/61522
17863         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
17865 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
17867         Revert:
17868         * symtab.c (symtab_node::reset_section): New method.
17869         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
17870         for localization.
17871         * cgraph.h (reset_section): Declare.
17872         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
17873         do not consider comdat locals.
17874         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
17875         for new symbol.
17876         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
17877         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
17878         reset sections of symbols dragged out of the comdats.
17879         (function_and_variable_visibility): Reset sections of
17880         localized symbols.
17882 2014-06-16  Richard Biener  <rguenther@suse.de>
17884         PR tree-optimization/61482
17885         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
17886         [-INF(OVF), +INF(OVF)] range.
17888 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17890         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
17891         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
17892         handling 32-bit multiplication.
17894 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
17896         PR middle-end/61430
17897         * lra-lives.c (process_bb_lives): Skip creating copy during
17898         insn scan when src/dest has constrained to same regno.
17900 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
17902         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
17903         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
17905 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
17907         * asan.c (check_func): New function.
17908         (maybe_create_ssa_name): Likewise.
17909         (build_check_stmt_with_calls): Likewise.
17910         (use_calls_p): Likewise.
17911         (report_error_func): Change interface.
17912         (build_check_stmt): Allow non-integer lengths; add support
17913         for new parameter.
17914         (asan_instrument): Likewise.
17915         (instrument_mem_region_access): Moved code to build_check_stmt.
17916         (instrument_derefs): Likewise.
17917         (instrument_strlen_call): Likewise.
17918         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
17919         * doc/invoke.texi: Describe new parameter.
17920         * params.def: Define new parameter.
17921         * params.h: Likewise.
17922         * sanitizer.def: Describe new builtins.
17924 2014-06-16  Richard Biener  <rguenther@suse.de>
17926         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17927         Make all defs available at the end.
17928         (eliminate): If we remove a PHI node schedule cfg-cleanup.
17930 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
17932         PR plugins/45078
17933         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
17935 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
17937         PR bootstrap/61516
17938         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
17939         initialization.  Replace remaining use of uid.
17941 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
17943         * c-family/c-common.c (handle_tls_model_attribute): Use
17944         set_decl_tls_model.
17945         * c-family/c-common.c (handle_tls_model_attribute): Use
17946         set_decl_tls_model.
17947         * cgraph.h (struct varpool_node): Add tls_model.
17948         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
17949         * tree.h (DECL_TLS_MODEL): Update.
17950         (DECL_THREAD_LOCAL_P): Check that variable is static.
17951         (decl_tls_model): Declare.
17952         (set_decl_tls_model): Declare.
17953         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
17954         set symbol prorperties.
17955         (get_emutls_init_templ_addr): Cleanup.
17956         (new_emutls_decl): Update.
17957         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
17958         (lto_input_varpool_node): Likewise.
17959         * lto-streamer-out.c (hash_tree): Likewise.
17960         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17961         not stream DECL_TLS_MODEL.
17962         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
17963         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
17965 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
17967         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
17969 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
17971         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
17972         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
17973         lists.
17974         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
17975         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
17976         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
17977         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
17978         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
17979         (df_get_artificial_defs, df_get_artificial_uses)
17980         (df_single_def, df_single_use): Update accordingly.
17981         (df_refs_chain_dump): Take the first element in a linked list as
17982         parameter, rather than a pointer to an array of pointers.
17983         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
17984         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
17985         (df_chain_create_bb_process_use): Likewise.
17986         (df_md_bb_local_compute_process_def): Likewise.
17987         * fwprop.c (process_defs, process_uses): Likewise.
17988         (register_active_defs, update_uses): Likewise.
17989         (forward_propagate_asm): Update for new df_ref linking.
17990         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
17991         (df_null_ref_rec, df_null_mw_rec): Likewise.
17992         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
17993         explicitly.
17994         (df_scan_free_bb_info): Remove check for null artificial_defs.
17995         (df_install_ref_incremental): Adjust for new df_ref linking.
17996         Use a single-element insertion rather than a full sort.
17997         (df_ref_chain_delete_du_chain): Take the first element
17998         in a linked list as parameter, rather than a pointer to an array of
17999         pointers.
18000         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
18001         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
18002         (df_insn_info_delete): Remove check for null defs and call to
18003         df_scan_free_mws_vec.
18004         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
18005         null rather than df_null_*_rec.
18006         (df_insn_rescan_debug_internal): Likewise, and update null
18007         checks in the same way.  Remove check for null defs.
18008         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
18009         Move a single element rather doing a full sort.
18010         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
18011         linking.
18012         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
18013         Initialize df_ref and df_mw_hardreg lists to null rather than
18014         df_null_*_rec.
18015         (df_ref_compare): Take df_refs as parameter, transferring the
18016         old interface to...
18017         (df_ref_ptr_compare): ...this new function.
18018         (df_sort_and_compress_refs): Update accordingly.
18019         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
18020         old interface to...
18021         (df_mw_ptr_compare): ...this new function.
18022         (df_sort_and_compress_mws): Update accordingly.
18023         (df_install_refs, df_install_mws): Return a linked list rather than
18024         an array of pointers.
18025         (df_refs_add_to_chains): Assert that old lists are empty rather
18026         than freeing them.
18027         (df_insn_refs_verify): Don't handle null defs speciailly.
18028         * web.c (union_match_dups): Update for new df_ref linking.
18030 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18032         * df.h (df_ref_create, df_ref_remove): Delete.
18033         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
18034         (df_ref_remove): Likewise.
18036 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18038         * df.h (df_single_def, df_single_use): New functions.
18039         * ira.c (find_moveable_pseudos): Use them.
18041 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18043         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
18044         * df-problems.c (df_note_bb_compute): Use it.
18045         * regstat.c (regstat_bb_compute_ri): Likewise.
18047 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18049         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
18050         * cse.c (cse_extended_basic_block): Use them.
18051         * dce.c (mark_artificial_use): Likewise.
18052         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
18053         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18054         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
18055         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
18056         (df_simulate_initialize_backwards): Likewise.
18057         (df_simulate_finalize_backwards): Likewise.
18058         (df_simulate_initialize_forwards): Likewise.
18059         (df_md_simulate_artificial_defs_at_top): Likewise.
18060         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18061         * regrename.c (init_rename_info): Likewise.
18062         * regstat.c (regstat_bb_compute_ri): Likewise.
18063         (regstat_bb_compute_calls_crossed): Likewise.
18065 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18067         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
18068         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
18069         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
18070         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
18071         * combine.c (create_log_links): Likewise.
18072         * compare-elim.c (find_flags_uses_in_insn): Likewise.
18073         (try_eliminate_compare): Likewise.
18074         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
18075         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
18076         (remove_reg_equal_equiv_notes_for_defs): Likewise.
18077         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
18078         (word_dce_process_block, dce_process_block): Likewise.
18079         * ddg.c (def_has_ccmode_p): Likewise.
18080         * df-core.c (df_bb_regno_first_def_find): Likewise.
18081         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
18082         * df-problems.c (df_rd_simulate_one_insn): Likewise.
18083         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18084         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
18085         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
18086         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
18087         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
18088         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
18089         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
18090         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
18091         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18092         * fwprop.c (local_ref_killed_between_p): Likewise.
18093         (all_uses_available_at, free_load_extend): Likewise.
18094         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
18095         * hw-doloop.c (scan_loop): Likewise.
18096         * ifcvt.c (dead_or_predicable): Likewise.
18097         * init-regs.c (initialize_uninitialized_regs): Likewise.
18098         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
18099         (process_bb_node_lives): Likewise.
18100         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
18101         (find_moveable_pseudos): Likewise.
18102         * loop-invariant.c (check_dependencies, record_uses): Likewise.
18103         * recog.c (peep2_find_free_register): Likewise.
18104         * ree.c (get_defs): Likewise.
18105         * regstat.c (regstat_bb_compute_ri): Likewise.
18106         (regstat_bb_compute_calls_crossed): Likewise.
18107         * sched-deps.c (find_inc, find_mem): Likewise.
18108         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
18109         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
18110         * shrink-wrap.c (requires_stack_frame_p): Likewise.
18111         (prepare_shrink_wrap): Likewise.
18112         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
18113         * web.c (union_defs, pass_web::execute): Likewise.
18114         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
18115         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
18117 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
18119         * lra-assign.c (assign_by_spills): Add code to assign vector regs
18120         to inheritance pseudos.
18121         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
18123 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
18125         PR target/61415
18126         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
18127         (BU_MISC_2): Rename to ...
18128         (BU_LDBL128_2): ... this.
18129         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
18130         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
18131         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18132         RS6000_BTM_LDBL128.
18133         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
18134         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
18135         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
18136         (unpacktf_1): Likewise.
18137         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
18138         (__builtin_longdouble_dw1): Likewise.
18139         * doc/sourcebuild.texi (longdouble128): Document.
18141 2014-06-13  Jeff Law  <law@redhat.com>
18143         PR rtl-optimization/61094
18144         PR rtl-optimization/61446
18145         * ree.c (combine_reaching_defs): Get the mode for the copy from
18146         the extension insn rather than the defining insn.
18148 2014-06-13  Dehao Chen  <dehao@google.com>
18150         * dwarf2out.c (add_linkage_name): Emit more linkage name.
18152 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
18154         * doc/install.texi (--enable-linker-plugin-configure-flags)
18155         (--enable-linker-plugin-flags): Document new flags.
18157 2014-06-13  Martin Jambor  <mjambor@suse.cz>
18159         PR ipa/61186
18160         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
18161         cache_token if returning early.
18163 2014-06-13  Nick Clifton  <nickc@redhat.com>
18165         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
18166         requested alignment is active.
18167         (LABEL_ALIGN): Likewise.
18168         (LOOP_ALIGN): Likewise.
18170 2014-06-13  Richard Biener  <rguenther@suse.de>
18172         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18173         Rewrite to propagate the VN result into all uses where
18174         possible and to remove stmts becoming dead because of that.
18175         (eliminate): Generalize stmt removal handling, remove in
18176         reverse dominator order to support proper debug stmt
18177         generation.  Update stmts before removing stmts.
18178         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
18180 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18182         PR tree-optimization/61375
18183         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
18184         symbolic number cannot be represented in an uint64_t.
18185         (find_bswap_or_nop_1): Likewise.
18187 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18189         * symtab.c (symtab_node::reset_section): New method.
18190         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18191         for localization.
18192         * cgraph.h (reset_section): Declare.
18193         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18194         do not consider comdat locals.
18195         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18196         for new symbol.
18197         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18198         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18199         reset sections of symbols dragged out of the comdats.
18200         (function_and_variable_visibility): Reset sections of
18201         localized symbols.
18203 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18205         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
18206         to use symtab and decl_binds_to_current_def_p
18207         * tree-vectorizer.c (increase_alignment): Increase alignment
18208         of alias target, too.
18210 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
18212         PR middle-end/61486
18213         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18214         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18215         if outer combined construct is distribute.
18216         (gimplify_omp_for): For OMP_DISTRIBUTE set
18217         gimplify_omp_ctxp->distribute.
18218         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18219         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18220         mapping into decl map.
18222 2014-06-12  Jason Merrill  <jason@redhat.com>
18224         * common.opt (fabi-version): Change default to 0.
18226 2014-06-12  Jason Merrill  <jason@redhat.com>
18228         * toplev.c (process_options): Reject -fabi-version=1.
18230 2014-06-12  Jeff Law  <law@redhat.com>
18232         PR tree-optimization/61009
18233         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
18234         value when we stop processing a block due to problematic PHIs.
18236 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
18238         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
18239         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
18240         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
18241         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
18242         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
18243         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
18244         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
18245         are not in the spec.
18247 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
18249         PR target/59843
18250         * config/aarch64/aarch64-modes.def: Add V1DFmode.
18251         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
18252         Support V1DFmode.
18254 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
18256         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
18258 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
18260         PR target/61443
18261         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
18262         loading from address spaces.
18264 2014-06-12  Martin Liska  <mliska@suse.cz>
18266         PR ipa/61462
18267         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
18268         statement is reachable.
18270 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
18272         * symtab.c (section_hash): New hash.
18273         (symtab_unregister_node): Clear section before freeing.
18274         (hash_section_hash_entry): New haser.
18275         (eq_sections): New function.
18276         (symtab_node::set_section_for_node): New method.
18277         (set_section_1): Update.
18278         (symtab_node::set_section): Take string instead of tree as parameter.
18279         (symtab_resolve_alias): Update.
18280         * cgraph.h (section_hash_entry_d): New structure.
18281         (section_hash_entry): New typedef.
18282         (cgraph_node): Change comdat_group_ to x_comdat_group,
18283         change section_ to x_section and turn into section_hash_entry;
18284         update accestors; put set_section_for_node offline.
18285         * tree.c (decl_section_name): Turn into string.
18286         (set_decl_section_name): Change parameter to be string.
18287         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
18288         * sdbout.c (sdbout_one_type): Update.
18289         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
18290         * varasm.c (IN_NAMED_SECTION, get_named_section,
18291         resolve_unique_section, hot_function_section, get_named_text_section,
18292         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
18293         make_decl_rtl, default_unique_section): Update.
18294         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
18295         (c6x_elf_unique_section): Update.
18296         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
18297         * config/pa/pa.c (pa_function_section): Update.
18298         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
18299         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
18300         * config/arc/arc.c (arc_in_small_data_p): Update.
18301         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
18302         * config/mcore/mcore.c (mcore_unique_section): Update.
18303         * config/mips/mips.c (mips16_build_function_stub): Update.
18304         (mips16_build_call_stub): Update.
18305         (mips_function_rodata_section): Update.
18306         (mips_in_small_data_p): Update.
18307         * config/score/score.c (score_in_small_data_p): Update.
18308         * config/rx/rx.c (rx_in_small_data): Update.
18309         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
18310         (rs6000_xcoff_asm_named_section): Update.
18311         (rs6000_xcoff_unique_section): Update.
18312         * config/frv/frv.c (frv_string_begins_with): Update.
18313         (frv_in_small_data_p): Update.
18314         * config/v850/v850.c (v850_encode_data_area): Update.
18315         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
18316         (bfin_handle_l1_data_attribute): Update.
18317         (bfin_handle_l2_attribute): Update.
18318         * config/mep/mep.c (mep_unique_section): Update.
18319         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
18320         Update.
18321         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
18322         (h8300_handle_tiny_data_attribute): Update.
18323         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
18324         (m32r_in_small_data_p): Update.
18325         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
18326         * config/i386/i386.c (ix86_in_large_data_p): Update.
18327         * config/i386/winnt.c (i386_pe_unique_section): Update.
18328         * config/darwin.c (darwin_function_section): Update.
18329         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
18330         * tree-emutls.c (get_emutls_init_templ_addr): Update.
18331         (new_emutls_decl): Update.
18332         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
18333         input_varpool_node): Update.
18334         (ead_string_cst): Turn to ...
18335         (read_string): ... this one.
18336         * dwarf2out.c (secname_for_decl): Update.
18337         * asan.c (asan_protect_global): Update.
18339 2014-06-11  DJ Delorie  <dj@redhat.com>
18341         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
18342         cache lines.
18343         * config/rx/rx.c (rx_option_override): Likewise.
18344         (rx_align_for_label): Likewise.
18346         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
18348 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
18350         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
18351         prototype.
18353 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18355         * common.md: New file.
18356         * doc/md.texi: Update description of generic, machine-independent
18357         constraints.
18358         * config/s390/constraints.md (e): Delete.
18359         * Makefile.in (md_file): Include common.md.
18360         * config/m32c/t-m32c (md_file): Likewise.
18361         * genpreds.c (general_mem): New array.
18362         (generic_constraint_letters): Remove constraints now defined by
18363         common.md.
18364         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18365         Allow the first character to be '<' or '>' as well.
18366         * genoutput.c (general_mem): New array.
18367         (indep_constraints): Remove constraints now defined by common.md.
18368         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18369         Remove special handling of 'm'.
18370         * ira-costs.c (record_reg_classes): Remove special handling of
18371         constraints now defined by common.md.
18372         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18373         * ira-lives.c (single_reg_class): Likewise.
18374         (ira_implicitly_set_insn_hard_regs): Likewise.
18375         * lra-constraints.c (reg_class_from_constraints): Likewise.
18376         (process_alt_operands, process_address, curr_insn_transform): Likewise.
18377         * postreload.c (reload_cse_simplify_operands): Likewise.
18378         * reload.c (push_secondary_reload, scratch_reload_class)
18379         (find_reloads, alternative_allows_const_pool_ref): Likewise.
18380         * reload1.c (maybe_fix_stack_asms): Likewise.
18381         * targhooks.c (default_secondary_reload): Likewise.
18382         * stmt.c (parse_output_constraint): Likewise.
18383         * recog.c (preprocess_constraints): Likewise.
18384         (constrain_operands, peep2_find_free_register): Likewise.
18385         (asm_operand_ok): Likewise, but add a comment saying why 'o'
18386         must be handled specially.
18388 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18390         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
18391         * genpreds.c (have_const_dbl_constraints): Delete.
18392         (add_constraint): Don't set it.
18393         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
18394         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
18395         constraints using the lookup_constraint logic.
18396         * ira-lives.c (single_reg_class): Likewise.
18397         * ira.c (ira_setup_alts): Likewise.
18398         * lra-constraints.c (process_alt_operands): Likewise.
18399         * recog.c (asm_operand_ok, constrain_operands): Likewise.
18400         * reload.c (find_reloads): Likewise.
18402 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18404         * genpreds.c (const_int_start, const_int_end): New variables.
18405         (choose_enum_order): Output CONST_INT constraints before memory
18406         constraints.
18407         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
18408         Add CT_CONST_INT.
18409         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
18410         * ira.c (ira_setup_alts): Likewise.
18411         * lra-constraints.c (process_alt_operands): Likewise.
18412         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18413         * reload.c (find_reloads): Likewise.
18415 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18417         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
18418         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
18419         * recog.c (preprocess_constraints): Update accordingly.
18421 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18423         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
18424         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
18425         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
18426         * genpreds.c (print_type_tree): New function.
18427         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
18428         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
18429         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
18430         Write out enum constraint_type and get_constraint_type.
18431         * lra-constraints.c (satisfies_memory_constraint_p): Take a
18432         constraint_num rather than a constraint string.
18433         (satisfies_address_constraint_p): Likewise.
18434         (reg_class_from_constraints): Avoid old constraint macros.
18435         (process_alt_operands, process_address_1): Likewise.
18436         (curr_insn_transform): Likewise.
18437         * ira-costs.c (record_reg_classes): Likewise.
18438         (record_operand_costs): Likewise.
18439         * ira-lives.c (single_reg_class): Likewise.
18440         (ira_implicitly_set_insn_hard_regs): Likewise.
18441         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18442         * postreload.c (reload_cse_simplify_operands): Likewise.
18443         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18444         (constrain_operands, peep2_find_free_register): Likewise.
18445         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
18446         (find_reloads, alternative_allows_const_pool_ref): Likewise.
18447         * reload1.c (maybe_fix_stack_asms): Likewise.
18448         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18449         * targhooks.c (default_secondary_reload): Likewise.
18450         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
18451         to EXTRA_CONSTRAINT_STR.
18452         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
18454 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18456         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
18457         (write_constraint_satisfied_p_array): ...this new function.
18458         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
18459         an array.
18460         (write_insn_preds_c): Update accordingly.
18462 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18464         * genpreds.c (write_lookup_constraint): Rename to...
18465         (write_lookup_constraint_1): ...this.
18466         (write_lookup_constraint_array): New function.
18467         (write_tm_preds_h): Define lookup_constraint as an inline function
18468         that uses write_lookup_constraint_array where possible.
18469         (write_insn_preds_c): Update for the changes above.
18471 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18473         * doc/md.texi (regclass_for_constraint): Rename to...
18474         (reg_class_for_constraint): ...this.
18475         * genpreds.c (num_constraints, enum_order, register_start)
18476         (register_end, satisfied_start, memory_start, memory_end)
18477         (address_start, address_end): New variables.
18478         (add_constraint): Count the number of constraints.
18479         (choose_enum_order): New function.
18480         (write_enum_constraint_num): Iterate over enum_order.
18481         (write_regclass_for_constraint): Rename to...
18482         (write_reg_class_for_constraint_1): ...this and update output
18483         accordingly.
18484         (write_constraint_satisfied_p): Rename to...
18485         (write_constraint_satisfied_p_1): ...this and update output
18486         accordingly.  Do nothing if all extra constraints are register
18487         constraints.
18488         (write_insn_extra_memory_constraint): Delete.
18489         (write_insn_extra_address_constraint): Delete.
18490         (write_range_function): New function.
18491         (write_tm_preds_h): Define constraint_satisfied_p and
18492         reg_class_for_constraint as inline functions that do a range check
18493         before calling the out-of-line function.  Use write_range_function
18494         to implement insn_extra_{register,memory,address}_constraint,
18495         the first of which is new.
18496         (write_insn_preds_c): Update after above changes to write_* functions.
18497         (main): Call choose_enum_order.
18499 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18501         PR tree-optimization/61306
18502         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
18503         expression instead of its size.
18504         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
18505         false to prevent optimization when the result is unpredictable due to
18506         arithmetic right shift of signed type with highest byte is set.
18507         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
18508         (init_symbolic_number): Likewise.
18509         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
18510         when the result is unpredictable due to sign extension.
18512 2014-06-11  Terry Guo  <terry.guo@arm.com>
18514         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
18515         (*thumb1_addsi3): Ditto.
18516         (*thumb_subdi3): Ditto.
18517         (thumb1_subsi3_insn): Ditto.
18518         (*thumb_mulsi3): Ditto.
18519         (*thumb_mulsi3_v6): Ditto.
18520         (*thumb1_andsi3_insn): Ditto.
18521         (thumb1_bicsi3): Ditto.
18522         (*thumb1_iorsi3_insn): Ditto.
18523         (*thumb1_xorsi3_insn): Ditto.
18524         (*thumb1_ashlsi3): Ditto.
18525         (*thumb1_ashrsi3): Ditto.
18526         (*thumb1_lshrsi3): Ditto.
18527         (*thumb1_rotrsi3): Ditto.
18528         (*thumb1_negdi2): Ditto.
18529         (*thumb1_negsi2): Ditto.
18530         (*thumb1_abssi2): Ditto.
18531         (*thumb1_neg_abssi2): Ditto.
18532         (*thumb1_one_cmplsi2): Ditto.
18533         (*thumb1_zero_extendhisi2): Ditto.
18534         (*thumb1_zero_extendqisi2): Ditto.
18535         (*thumb1_zero_extendqisi2_v6): Ditto.
18536         (thumb1_extendhisi2): Ditto.
18537         (thumb1_extendqisi2): Ditto.
18538         (*thumb1_movdi_insn): Ditto.
18539         (*thumb1_movsi_insn): Ditto.
18540         (*thumb1_movhi_insn): Ditto.
18541         (thumb_movhi_clobber): Ditto.
18542         (*thumb1_movqi_insn): Ditto.
18543         (*thumb1_movhf): Ditto.
18544         (*thumb1_movsf_insn): Ditto.
18545         (*thumb_movdf_insn): Ditto.
18546         (movmem12b): Ditto.
18547         (movmem8b): Ditto.
18548         (cbranchqi4): Ditto.
18549         (cbranchsi4_insn): Ditto.
18550         (cbranchsi4_scratch): Ditto.
18551         (*negated_cbranchsi4): Ditto.
18552         (*tbit_cbranch): Ditto.
18553         (*tlobits_cbranch): Ditto.
18554         (*tstsi3_cbranch): Ditto.
18555         (*cbranchne_decr1): Ditto.
18556         (*addsi3_cbranch): Ditto.
18557         (*addsi3_cbranch_scratch): Ditto.
18558         (*thumb_cmpdi_zero): Ditto.
18559         (cstoresi_eq0_thumb1): Ditto.
18560         (cstoresi_ne0_thumb1): Ditto.
18561         (*cstoresi_eq0_thumb1_insn): Ditto.
18562         (*cstoresi_ne0_thumb1_insn): Ditto.
18563         (cstoresi_nltu_thumb1): Ditto.
18564         (cstoresi_ltu_thumb1): Ditto.
18565         (thumb1_addsi3_addgeu): Ditto.
18566         (*thumb_jump): Ditto.
18567         (*call_reg_thumb1_v5): Ditto.
18568         (*call_reg_thumb1): Ditto.
18569         (*call_value_reg_thumb1_v5): Ditto.
18570         (*call_value_reg_thumb1): Ditto.
18571         (*call_insn): Ditto.
18572         (*call_value_insn): Ditto.
18573         (thumb1_casesi_internal_pic): Ditto.
18574         (thumb1_casesi_dispatch): Ditto.
18575         (*thumb1_indirect_jump): Ditto.
18576         (prologue_thumb1_interwork): Ditto.
18577         (*epilogue_insns): Ditto.
18578         (consttable_1): Ditto.
18579         (consttable_2): Ditto.
18580         (tablejump): Ditto.
18581         (*thumb1_tablejump): Ditto.
18582         (thumb_eh_return): Ditto.
18583         (define_peephole2): Two of them are thumb1 only and got moved into
18584         new file thumb1.md.
18585         (define_split): Six of them are thumb1 only and got moved into new
18586         file thumb1.md.
18587         * config/arm/thumb1.md: New file comprised of above thumb1 only
18588         patterns.
18590 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18592         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
18593         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
18594         dependencies.
18595         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
18596         (aarch64_crc_builtin_datum): New struct.
18597         (aarch64_crc_builtin_data): New.
18598         (aarch64_init_crc32_builtins): New function.
18599         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
18600         (aarch64_crc32_expand_builtin): New.
18601         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
18602         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18603         __ARM_FEATURE_CRC32 when appropriate.
18604         (TARGET_CRC32): Define.
18605         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
18606         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
18607         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
18608         (aarch64_<crc_variant>): New pattern.
18609         * config/aarch64/arm_acle.h: New file.
18610         * config/aarch64/iterators.md (CRC): New int iterator.
18611         (crc_variant, crc_mode): New int attributes.
18612         * doc/aarch64-acle-intrinsics.texi: New file.
18613         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
18614         Include aarch64-acle-intrinsics.texi.
18616 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
18618         * tree-vect-data-refs.c (vect_grouped_store_supported): New
18619         check for stores group of length 3.
18620         (vect_permute_store_chain): New permutations for stores group of
18621         length 3.
18622         * tree-vect-stmts.c (vect_model_store_cost): Change cost
18623         of vec_perm_shuffle for the new permutations.
18625 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
18627         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
18628         table rewriting temporarily on targets not supporting ONE_ONLY.
18630 2014-06-11  Richard Biener  <rguenther@suse.de>
18632         PR middle-end/61437
18633         Revert
18634         2014-06-04  Richard Biener  <rguenther@suse.de>
18636         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18637         TREE_PUBLIC and DECL_EXTERNAL decls.
18639 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
18641         * varasm.c (set_implicit_section): New function.
18642         (resolve_unique_section): Use it to set implicit section
18643         for aliases, too.
18644         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
18645         (default_function_section): Likewise.
18646         (decl_binds_to_current_def_p): Constify argument.
18647         * varasm.h (decl_binds_to_current_def_p): Update prototype.
18648         * asan.c (asan_protect_global): Use
18649         symtab_get_node (decl)->implicit_section.
18650         * symtab.c (dump_symtab_base): Dump implicit sections.
18651         (verify_symtab_base): Verify sanity of sectoins and comdats.
18652         (symtab_resolve_alias): Alias share the section of its target.
18653         (set_section_1): New function.
18654         (symtab_node::set_section): Move here, recurse to aliases.
18655         (verify_symtab): Check for duplicated symtab lists.
18656         * tree-core.h (implicit_section_name_p): Remove.
18657         * tree-vect-data-refs.c: Include varasm.h.
18658         (vect_can_force_dr_alignment_p): Fix conditional on when
18659         decl bints to current definition; use
18660         symtab_get_node (decl)->implicit_section.
18661         * cgraph.c (cgraph_make_node_local_1): Fix section set.
18662         * cgraph.h (struct symtab_node): Add implicit_section.
18663         (set_section): Rename to ...
18664         (set_section_for_node): ... this one.
18665         (set_section): Declare.
18666         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
18667         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
18668         input_overwrite_node, input_varpool_node): Stream implicit_section.
18669         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
18670         removal; it will fail in LTO.
18672 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18674         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
18675         Change second alternative type to f_mcr.
18676         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
18677         and 12th alternatives' types to f_mcr and f_mrc.
18678         (*movdi_aarch64): Same for 12th and 13th alternatives.
18679         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
18680         (aarch64_movtilow_tilow): Change type to fmov.
18682 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
18684         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
18685         (aarch64_save_or_restore_callee_save_registers): Fix layout.
18687 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18689         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
18690         New expander.
18691         (aarch64_sqrdmulh_lane<mode>): Likewise.
18692         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18693         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18694         (aarch64_sqdmulh_laneq<mode>): New expander.
18695         (aarch64_sqrdmulh_laneq<mode>): Likewise.
18696         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
18697         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
18698         (aarch64_sqdmulh_lane<mode>): New expander.
18699         (aarch64_sqrdmulh_lane<mode>): Likewise.
18700         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18701         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18702         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
18703         (aarch64_sqdmlal_laneq<mode>): Likewise.
18704         (aarch64_sqdmlsl_lane<mode>): Likewise.
18705         (aarch64_sqdmlsl_laneq<mode>): Likewise.
18706         (aarch64_sqdmlal2_lane<mode>): Likewise.
18707         (aarch64_sqdmlal2_laneq<mode>): Likewise.
18708         (aarch64_sqdmlsl2_lane<mode>): Likewise.
18709         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18710         (aarch64_sqdmull_lane<mode>): Likewise.
18711         (aarch64_sqdmull_laneq<mode>): Likewise.
18712         (aarch64_sqdmull2_lane<mode>): Likewise.
18713         (aarch64_sqdmull2_laneq<mode>): Likewise.
18715 2014-06-10  Richard Biener  <rguenther@suse.de>
18717         PR tree-optimization/61438
18718         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
18719         (eliminate_dom_walker::before_dom_children): Only try to inhibit
18720         insertion of IVs if running PRE.
18721         (eliminate): Adjust.
18722         (pass_pre::execute): Likewise.
18723         (pass_fre::execute): Likewise.
18725 2014-06-10  Richard Biener  <rguenther@suse.de>
18727         PR middle-end/61456
18728         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18729         Do not use the main variant for the type comparison.
18730         (ncr_compar): Likewise.
18731         (nonoverlapping_component_refs_p): Likewise.
18733 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18735         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
18736         REG_CFA_RESTORE mode.
18738 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
18740         * config/i386/i386.c (expand_vec_perm_pblendv): New.
18741         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
18742         expand_vec_perm_pblendv.
18744 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18746         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
18747         available.
18748         Simplify description of __crc32d and __crc32cd intrinsics.
18749         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
18750         availability.
18752 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
18754         PR lto/61334
18755         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
18756         * config.in: Regenerate.
18757         * configure: Likewise.
18759 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
18761         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
18762         and public vars.
18763         (intersect_static_var_sets): Remove.
18764         (propagate): Do not prune local statics.
18766 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
18768         PR fortran/60928
18769         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
18770         Set lastprivate_firstprivate even if omp_private_outer_ref
18771         langhook returns true.
18772         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
18773         langhook, call unshare_expr on new_var and call
18774         build_outer_var_ref to get the last argument.
18776 2014-06-10  Marek Polacek  <polacek@redhat.com>
18778         PR c/60988
18779         * doc/extend.texi: Add cindex for transparent_union.
18781 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18783         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
18784         init_symbolic_number ().
18786 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
18788         PR middle-end/61141
18789         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
18790         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
18791         (verify_rtl_sharing): Likewise.
18793 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
18795         PR c++/54442
18796         * tree.c (build_qualified_type): Use a canonical type for
18797         TYPE_CANONICAL.
18799 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18801         * config/arm/arm-modes.def: Remove XFmode.
18803 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
18805         PR target/61062
18806         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
18807         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
18808         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
18809         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
18810         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
18811         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
18812         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
18813         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
18814         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
18816 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
18818         * tree-core.h (tree_decl_with_vis): Remove section_name.
18820 2014-06-09  Kito Cheng  <kito@0xlab.org>
18822         * ira.c (ira): Don't call init_caller_save if LRA enabled
18823         since LRA use its own infrastructure to handle that.
18825 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18827         * symtab.c (dump_symtab_base): Update dumping.
18828         (symtab_make_decl_local): Clear only DECL_COMDAT.
18829         * tree-vect-data-refs.c (Check that variable is static before
18830         tampering with sections.
18831         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
18832         (cgraph_create_virtual_clone): Likewise.
18833         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
18834         (decl_section_name, set_decl_section_name): New accessors.
18835         (find_decls_types_r): Do not walk section name
18836         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
18837         (decl_comdat_group, decl_comdat_group_id): Constify.
18838         (decl_section_name, set_decl_section_name): Update.
18839         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
18840         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
18841         (cgraph_make_node_local_1): Clear section and comdat group.
18842         * cgraph.h (set_comdat_group): Sanity check.
18843         (get_section, set_section): New.
18844         * ipa-comdats.c (ipa_comdats): Use get_section.
18845         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
18846         * lto-streamer-out.c: Do not follow section names.
18847         * c-family/c-common.c (handle_section_attribute): Update.
18848         * lto-cgraph.c (lto_output_node): Output section.
18849         (lto_output_varpool_node): Likewise.
18850         (read_comdat_group): Rename to ...
18851         (read_identifier): ... this one.
18852         (read_string_cst): New function.
18853         (input_node, input_varpool_node): Input section names.
18854         * tree-emutls.c (get_emutls_init_templ_addr): Update.
18855         (new_emutls_decl): Update.
18856         (secname_for_decl): Check section names only of static vars.
18857         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
18858         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
18859         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18860         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18861         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
18862         * config/mcore/mcore.c (mcore_unique_section): Likewise.
18863         * config/mips/mips.c (mips16_build_function_stub): Likewise.
18864         * config/v850/v850.c (v850_insert_attributes): Likewise.
18865         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
18866         Likewise.
18867         (h8300_handle_tiny_data_attribute): Likewise.
18868         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
18869         (bfin_handle_l2_attribute): Likewise.
18871 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18873         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
18874         remove static initializer.
18876 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18878         * varasm.c (use_blocks_for_decl_p): Check symbol table
18879         instead of alias attribute.
18880         (place_block_symbol): Recurse on aliases.
18882 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18884         * ipa-visibility.c: Include varasm.h
18885         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
18887 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18889         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
18890         outputting aliases.
18892 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
18894         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
18895         from test_insn into GGC space escape via SET_SRC.
18897 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
18899         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
18900         call statement, if any.
18901         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
18902         statements, if any.  Tidy up.
18904 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18906         PR target/61431
18907         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
18908         iterators, VSX_D that handles 64-bit types, and VSX_LE that
18909         handles swapping the two 64-bit double words on little endian
18910         systems.  Include V1TImode and optionally TImode in VSX_LE so that
18911         these types are properly swapped.  Change all of the insns and
18912         splits that do the 64-bit swaps to use VSX_LE.
18913         (vsx_le_perm_load_<mode>): Likewise.
18914         (vsx_le_perm_store_<mode>): Likewise.
18915         (splitters for little endian memory operations): Likewise.
18916         (vsx_xxpermdi2_le_<mode>): Likewise.
18917         (vsx_lxvd2x2_le_<mode>): Likewise.
18918         (vsx_stxvd2x2_le_<mode>): Likewise.
18920 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
18922         PR target/61423
18923         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
18924         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
18925         and corresponding splitters.  Zero extend general register
18926         or memory input operand to XMM temporary.  Enable for
18927         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
18928         (floatunssi<mode>2): Update expander predicate.
18930 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
18932         PR rtl-optimization/61325
18933         * lra-constraints.c (process_address_1): Check scale equal to one
18934         to prevent transformation: base + scale * index => base + new_reg.
18936 2014-06-06  Richard Biener  <rguenther@suse.de>
18938         PR tree-optimization/59299
18939         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
18940         a def operand.
18941         (nearest_common_dominator_of_uses): Likewise.
18942         (statement_sink_location): Adjust.  Support sinking loads.
18944 2014-06-06  Martin Jambor  <mjambor@suse.cz>
18946         * ipa-prop.c (get_place_in_agg_contents_list): New function.
18947         (build_agg_jump_func_from_list): Likewise.
18948         (determine_known_aggregate_parts): Renamed to
18949         determine_locally_known_aggregate_parts.  Moved some functionality
18950         to the two functions above, removed bound checks.
18952 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
18954         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
18955         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
18956         (aarch64_progress_pointer): Likewise.
18957         (aarch64_copy_one_part_and_move_pointers): Likewise.
18958         (aarch64_expand_movmen): Likewise.
18959         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
18960         * config/aarch64/aarch64.md (movmem<mode>): New.
18962 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
18964         * targhooks.c (default_add_stmt_cost): Call target specific
18965         hook instead of default one.
18967 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18969         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
18970         endianness instead of host endianness.
18971         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
18972         comments.
18974 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
18976         PR debug/53927
18977         * function.c (instantiate_decls): Process the saved static chain.
18978         (expand_function_start): If not optimizing, save the static chain
18979         onto the stack.
18980         * tree-nested.c (convert_all_function_calls): Always create the static
18981         chain for nested functions if not optimizing.
18983 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
18985         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
18987 2014-06-06  Richard Biener  <rguenther@suse.de>
18989         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
18990         (construct_init_block): Likewise.
18991         (construct_exit_block): Likewise.
18992         (pass_expand::execute): Likewise.
18993         * graphite.c (graphite_transforms): Replace check for current_loops
18994         with a check for > 1 loops.
18995         (pass_graphite_transforms::execute): Adjust.
18996         * ipa-split.c (split_function): Remove check for current_loops.
18997         * omp-low.c (expand_parallel_call): Likewise.
18998         (expand_omp_for_init_counts): Likewise.
18999         (extract_omp_for_update_vars): Likewise.
19000         (expand_omp_for_generic): Likewise.
19001         (expand_omp_sections): Likewise.
19002         (expand_omp_target): Likewise.
19003         * tracer.c (tail_duplicate): Likewise.
19004         (pass_tracer::execute): Likewise.
19005         * trans-mem.c (expand_transaction): Likewise.
19006         * tree-complex.c (expand_complex_div_wide): Likewise.
19007         * tree-eh.c (lower_resx): Likewise.
19008         (cleanup_empty_eh_merge_phis): Likewise.
19009         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
19010         current_loops with a check for > 1 loops.
19011         (pass_predcom::execute): Adjust.
19012         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
19013         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
19014         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
19015         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
19016         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
19017         * tree-switch-conversion.c (process_switch): Likewise.
19018         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
19019         * tree-vrp.c (vrp_visit_phi_node): Likewise.
19020         (execute_vrp): Likewise.
19021         * ubsan.c (ubsan_expand_null_ifn): Likewise.
19023 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19025         * rtl.h (insn_location): Declare.
19026         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
19027         with UNKNOWN_LOCATION.
19028         * emit-rtl.c (insn_location): New function.
19029         * final.c (notice_source_line): Check that the instruction has a
19030         location before retrieving it and use insn_location.
19031         * modulo-sched.c (loop_single_full_bb_p): Likewise.
19032         * print-rtl.c (print_rtx): Likewise.
19034 2014-06-06  Richard Biener  <rguenther@suse.de>
19036         * passes.def: Move 2nd VRP pass before phi-only-cprop.
19038 2014-06-06  Christian Bruel  <christian.bruel@st.com>
19040         PR tree-optimization/43934
19041         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
19042         cost.
19044 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
19046         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
19047         return NO_REGS for extra address and memory constraints.  Handle
19048         operands that match (or are equivalent to something that matches)
19049         extra constant constraints.  Ignore other non-register operands.
19051 2014-06-06  Alan Modra  <amodra@gmail.com>
19053         PR target/61300
19054         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
19055         * doc/tm.texi: Regenerate.
19056         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
19057         Use throughout in place of REG_PARM_STACK_SPACE.
19058         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
19059         "incoming" param.  Pass to rs6000_function_parms_need_stack.
19060         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
19061         prototype_p when incoming.  Use function decl when incoming
19062         to handle K&R style functions.
19063         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
19064         (INCOMING_REG_PARM_STACK_SPACE): Define.
19066 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19068         PR target/52472
19069         * cfgexpand.c (expand_debug_expr): Use address space of nested
19070         TREE_TYPE for ADDR_EXPR and MEM_REF.
19072 2014-06-05  Jeff Law  <law@redhat.com>
19074         PR tree-optimization/61289
19075         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
19076         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
19077         looking for those which match LHS.  All callers changed.
19078         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
19079         parameters and code which manipulated them.  All callers changed.
19080         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
19081         and DST_MAP parameters.  Simplify invalidation code by just calling
19082         invalidate_equivalences.  All callers changed.
19083         (thread_across_edge): Simplify now that we don't need to maintain
19084         the map of equivalences to invalidate.
19086 2014-06-05  Kai Tietz  <ktietz@redhat.com>
19087             Richard Henderson  <rth@redhat.com>
19089         PR target/46219
19090         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
19091         checking for !TARGET_X32.
19092         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
19093         (sibcall_intern): New define_insn, plus required peepholes.
19094         (sibcall_pop_intern): Likewise.
19095         (sibcall_value_intern): Likewise.
19096         (sibcall_value_pop_intern): Likewise.
19098 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
19100         * tree-inline.c (tree_function_versioning): Check DF info existence
19101         before accessing it.
19103 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19105         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
19106         frame_size.
19107         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
19108         aarch64_frame hard_fp_offset and frame_size.
19109         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
19110         frame_size; remove original_frame_size.
19111         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
19112         (aarch64_initial_elimination_offset): Remove frame_size and
19113         offset.  Use aarch64_frame frame_size.
19115 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19116             Jiong Wang  <jiong.wang@arm.com>
19117             Renlin  <renlin.li@arm.com>
19119         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
19120         initialization of R30 offset.  Update offset.  Iterate core
19121         regisers upto X30.  Remove X29, X30 specific code.
19123 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19124             Jiong Wang  <jiong.wang@arm.com>
19126         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
19127         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
19128         (aarch64_register_saved_on_entry): Adjust test.
19130 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19132         * config/aarch64/aarch64.h (machine_function): Move
19133         saved_varargs_size from here...
19134         (aarch64_frame): ... to here.
19136         * config/aarch64/aarch64.c (aarch64_expand_prologue)
19137         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
19138         (aarch64_initial_elimination_offset)
19139         (aarch64_setup_incoming_varargs): Adjust location of
19140         saved_varargs_size.
19142 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19144         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
19145         layout comment.
19147 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
19148             Prachi Godbole  <Prachi.Godbole@imgtec.com>
19150         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
19151         mips32r5 entry to use PROCESSOR_P5600.
19152         * config/mips/mips-tables.opt: Regenerate.
19153         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
19154         * config/mips/mips.c (mips_fmadd_bypass): New function.
19155         (mips_rtx_cost_data): Add costs for p5600.
19156         (mips_issue_rate): Add support for p5600.
19157         (mips_multipass_dfa_lookahead): Likewise.
19158         * config/mips/mips.h (TUNE_P5600): New define.
19159         (TUNE_MACC_CHAINS): Add TUNE_P5600.
19160         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
19161         * config/mips/mips.md: Include p5600.md.
19162         (processor): Add p5600.
19163         * config/mips/p5600.md: New file.
19165 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
19167         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
19168         * config/i386/predicates.md (palignr_operand): New.
19169         Indicates if permutation is suitable for palignr instruction.
19171 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
19173         PR tree-optimization/61319
19174         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19175         stmt belongs to loop.
19177 2014-06-05  Richard Biener  <rguenther@suse.de>
19179         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
19180         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
19181         (lookup_tmp_var): Adjust.
19182         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
19184 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19186         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
19188 2014-06-05  Marek Polacek  <polacek@redhat.com>
19190         PR c/49706
19191         * doc/invoke.texi: Document -Wlogical-not-parentheses.
19193 2014-06-04  Tom de Vries  <tom@codesourcery.com>
19195         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
19196         CONST_INT.
19198 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
19200         PR tree-optimization/61385
19201         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
19203 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
19205         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
19206         changed to use fatal_error.
19207         (main): Ensure lto_wrapper_cleanup is run atexit.
19209 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19211         * lra-constraints.c (valid_address_p): Move earlier in file.
19212         (address_eliminator): New structure.
19213         (satisfies_memory_constraint_p): New function.
19214         (satisfies_address_constraint_p): Likewise.
19215         (process_alt_operands, process_address, curr_insn_transform): Use them.
19217 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19219         * lra-int.h (lra_static_insn_data): Make operand_alternative a
19220         const pointer.
19221         (target_lra_int, default_target_lra_int, this_target_lra_int)
19222         (op_alt_data): Delete.
19223         * lra.h (lra_init): Delete.
19224         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19225         (init_insn_code_data_once): Remove op_alt_data handling.
19226         (finish_insn_code_data_once): Likewise.
19227         (init_op_alt_data): Delete.
19228         (get_static_insn_data): Initialize operand_alternative to null.
19229         (free_insn_recog_data): Cast operand_alternative before freeing it.
19230         (setup_operand_alternative): Take the operand_alternative as
19231         parameter and assume it isn't already cached in the static
19232         insn data.
19233         (lra_set_insn_recog_data): Update accordingly.
19234         (lra_init): Delete.
19235         * ira.c (ira_init): Don't call lra_init.
19236         * target-globals.h (this_target_lra_int): Declare.
19237         (target_globals): Remove lra_int.
19238         (restore_target_globals): Update accordingly.
19239         * target-globals.c: Don't include lra-int.h.
19240         (default_target_globals, save_target_globals): Remove lra_int.
19242 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19244         * recog.h (operand_alternative): Convert reg_class, reject,
19245         matched and matches into bitfields.
19246         (preprocess_constraints): New overload.
19247         (preprocess_insn_constraints): New function.
19248         (preprocess_constraints): Take the insn as parameter.
19249         (recog_op_alt): Change into a pointer.
19250         (target_recog): Add x_op_alt.
19251         * recog.c (asm_op_alt): New variable.
19252         (recog_op_alt): Change into a pointer.
19253         (preprocess_constraints): New overload, replacing the old function
19254         definition with one that doesn't use global state.
19255         (preprocess_insn_constraints): New function.
19256         (preprocess_constraints): Use them.  Take the insn as parameter.
19257         Use asm_op_alt for asms.
19258         (recog_init): Free existing x_op_alt entries.
19259         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
19260         pointer const.
19261         (make_early_clobber_and_input_conflicts): Likewise.
19262         (process_bb_node_lives): Pass the insn to process_constraints.
19263         * reg-stack.c (check_asm_stack_operands): Likewise.
19264         (subst_asm_stack_regs): Likewise.
19265         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19266         * regrename.c (build_def_use): Likewise.
19267         * sched-deps.c (sched_analyze_insn): Likewise.
19268         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
19269         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
19270         (note_invalid_constants): Likewise.
19271         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19272         (ix86_legitimate_combined_insn): Make operand_alternative pointer
19273         const.
19275 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19277         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
19278         * ira-lives.c (check_and_make_def_conflict): Check for disabled
19279         alternatives.
19280         (make_early_clobber_and_input_conflicts): Likewise.
19281         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19283 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19285         * recog.h (alternative_class): New function.
19286         (which_op_alt): Return a const recog_op_alt.
19287         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
19288         (subst_asm_stack_regs): Likewise.
19289         * config/arm/arm.c (note_invalid_constants): Likewise.
19290         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
19291         the operand_alternative; use alternative class instead.
19292         * sel-sched.c (get_reg_class): Likewise.
19293         * regrename.c (build_def_use): Likewise.
19294         (hide_operands, restore_operands, record_out_operands): Update type
19295         accordingly.
19297 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19299         * recog.h (recog_op_alt): Convert to a flat array.
19300         (which_op_alt): New function.
19301         * recog.c (recog_op_alt): Convert to a flat array.
19302         (preprocess_constraints): Update accordingly, grouping all
19303         operands of the same alternative together, rather than the
19304         other way around.
19305         * ira-lives.c (check_and_make_def_conflict): Likewise.
19306         (make_early_clobber_and_input_conflicts): Likewise.
19307         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19308         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
19309         (subst_asm_stack_regs): Likewise.
19310         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19311         * regrename.c (hide_operands, record_out_operands): Likewise.
19312         (build_def_use): Likewise.
19313         * sel-sched.c (get_reg_class): Likewise.
19314         * config/arm/arm.c (note_invalid_constants): Likewise.
19316 2014-06-04  Jason Merrill  <jason@redhat.com>
19318         PR c++/51253
19319         PR c++/61382
19320         * gimplify.c (gimplify_arg): Non-static.
19321         * gimplify.h: Declare it.
19323 2014-06-04  Richard Biener  <rguenther@suse.de>
19325         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19326         TREE_PUBLIC and DECL_EXTERNAL decls.
19328 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
19330         * regcprop.c (copyprop_hardreg_forward_1): Account for
19331         HARD_REGNO_CALL_PART_CLOBBERED.
19333 2014-06-04  Richard Biener  <rguenther@suse.de>
19335         * configure.ac: Check whether the underlying type of int64_t
19336         is long or long long.
19337         * configure: Regenerate.
19338         * config.in: Likewise.
19339         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
19340         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19342 2014-06-04  Richard Biener  <rguenther@suse.de>
19344         PR tree-optimization/60098
19345         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
19346         we hit a kill.
19347         (dse_optimize_stmt): Simplify, now that we found a kill
19348         earlier.
19350 2014-06-04  Richard Biener  <rguenther@suse.de>
19352         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
19353         of accesses with non-invariant address.
19355 2014-06-04  Martin Liska  <mliska@suse.cz>
19357         * cgraph.h (cgraph_make_wrapper): New function introduced.
19358         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
19359         * ipa-inline.h (inline_analyze_function): The function is global.
19360         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
19362 2014-06-04  Martin Liska  <mliska@suse.cz>
19364         * tree.h (private_lookup_attribute_starting): New function.
19365         (lookup_attribute_starting): Likewise.
19366         * tree.c (private_lookup_attribute_starting): Likewise.
19368 2014-06-04  Martin Liska  <mliska@suse.cz>
19370         * cgraph.h (expand_thunk): New argument added.
19371         (address_taken_from_non_vtable_p): New global function.
19372         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
19373         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
19374         * cgraphunit.c (analyze_function): Likewise.
19375         (assemble_thunks_and_aliases): Argument added to call.
19376         (expand_thunk): New argument forces to produce GIMPLE thunk.
19378 2014-06-04  Martin Liska  <mliska@suse.cz>
19380         * coverage.h (coverage_compute_cfg_checksum): Argument added.
19381         * coverage.c (coverage_compute_cfg_checksum): Likewise.
19382         * profile.c (branch_prob): Likewise.
19384 2014-06-04  Martin Jambor  <mjambor@suse.cz>
19386         PR ipa/61340
19387         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
19388         handler for switch on an ipa_ref_use enum.
19389         * ipa-reference.c (analyze_function): Likewise.
19391 2014-06-04  Kai Tietz  <ktietz@redhat.com>
19393         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
19394         from old call-instruction.
19396 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
19398         * config/aarch64/aarch64.c (aarch64_classify_address)
19399         (aarch64_legitimize_reload_address): Support full addressing modes
19400         for vector modes.
19401         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
19402         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
19404 2014-06-03  Andrew Pinski  <apinski@cavium.com>
19406         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
19407         for OP0.
19409 2014-06-03  Andrew Pinski  <apinski@cavium.com>
19411         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
19412         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
19414 2014-06-03  Kai Tietz  <ktietz@redhat.com>
19416         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
19417         for 64-bit ms-abi.
19419 2014-06-03  Dehao Chen  <dehao@google.com>
19421         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
19422         the same loop.
19424 2014-06-03  Marek Polacek  <polacek@redhat.com>
19426         PR c/60439
19427         * doc/invoke.texi: Document -Wswitch-bool.
19428         * function.c (stack_protect_epilogue): Cast controlling expression of
19429         the switch to int.
19430         * gengtype.c (walk_type): Generate switch expression with its
19431         controlling expression cast to int.
19433 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
19435         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
19436         and attiny841.
19437         * config/avr/avr-tables.opt: Regenerate.
19438         * config/avr/t-multilib: Regenerate.
19439         * doc/avr-mmcu.texi: Regenerate.
19441 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
19442             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19444         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
19445         (ata6617c, ata664251): Add new avr35 devices.
19446         (ata6612c): Add new avr4 device.
19447         (ata6613c, ata6614q): Add new avr5 devices.
19448         * config/avr/avr-tables.opt: Regenerate.
19449         * config/avr/t-multilib: Regenerate.
19450         * doc/avr-mmcu.texi: Regenerate.
19452 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19454         * gcc/config/aarch64/aarch64-builtins.c
19455         (aarch64_types_binop_ssu_qualifiers): New static data.
19456         (TYPES_BINOP_SSU): Define.
19457         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
19458         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
19459         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
19460         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
19461         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
19462         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
19463         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
19464         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
19465         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
19466         suffix to builtin function name, remove cast.
19467         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
19468         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
19469         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
19471 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19473         * gcc/config/aarch64/aarch64-builtins.c
19474         (aarch64_types_binop_uus_qualifiers,
19475         aarch64_types_shift_to_unsigned_qualifiers,
19476         aarch64_types_unsigned_shiftacc_qualifiers): Define.
19477         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
19478         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
19479         sqshlu_n, uqshl_n): Update qualifiers.
19480         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
19481         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
19482         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
19483         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
19484         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
19485         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
19486         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
19487         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
19488         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
19489         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
19490         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
19491         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
19492         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
19493         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
19494         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
19495         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
19496         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
19497         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
19498         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
19499         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
19500         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
19501         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
19502         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
19503         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
19504         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
19505         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
19506         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
19508 2014-06-03  Teresa Johnson  <tejohnson@google.com>
19510         * tree-sra.c (modify_function): Record caller nodes after rebuild.
19512 2014-06-02  Jason Merrill  <jason@redhat.com>
19514         PR c++/61020
19515         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
19517 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19519         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
19520         location == 0.
19522 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19524         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
19525         New pattern.
19526         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
19527         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
19528         * config/aarch64/iterators.md (REVERSE): New iterator.
19529         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
19530         (rev_op): New int_attribute.
19531         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
19532         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
19533         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
19534         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
19535         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
19536         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
19537         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
19538         Replace temporary __asm__ with __builtin_shuffle.
19540 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19542         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
19543         mips64r5.
19544         * config/mips/mips-tables.opt: Regenerate.
19545         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
19546         to use mips_isa_rev rather than ISA_MIPS32R2.
19547         * config/mips/mips.h (ISA_MIPS32R3): New define.
19548         (ISA_MIPS32R5): New define.
19549         (ISA_MIPS64R3): New define.
19550         (ISA_MIPS64R5): New define.
19551         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
19552         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
19553         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
19554         and mips64r5.
19555         (MIPS_ISA_SYNCI_SPEC): Likewise.
19556         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
19557         (LINK_SPEC): Added mips32r3 and mips32r5.
19558         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
19559         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
19560         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
19561         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
19562         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
19563         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
19564         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
19566 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19568         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
19569         options.
19570         * config/mips/mips.opt (mxpa): New option.
19571         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
19572         assembler.
19574 2014-06-03  Martin Jambor  <mjambor@suse.cz>
19576         PR ipa/61160
19577         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
19578         thunks.
19580 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19582         PR tree-optimization/61328
19583         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
19584         initialization from find_bswap_or_nop_1.
19585         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
19586         in source_expr2 before using the size value the function sets. Also
19587         make use of init_symbolic_number () in both the old place and
19588         find_bswap_or_nop_load () to avoid reading uninitialized memory when
19589         doing recursion in the GIMPLE_BINARY_RHS case.
19591 2014-06-03  Richard Biener  <rguenther@suse.de>
19593         PR tree-optimization/61383
19594         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
19595         stmts can't trap.
19597 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
19599         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
19600         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
19601         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
19602         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
19603         in this file.
19604         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
19605         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
19606         * system.h: ...here and make it unconditional.
19607         * target.def (conditional_register_usage): Mention
19608         define_register_constraint instead of old-style constraint macros.
19609         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
19610         * doc/tm.texi: Regenerate.
19611         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
19612         protected by !USE_MD_CONSTRAINTS.
19613         * config/frv/frv.md: Remove quote from old version of documentation.
19614         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
19615         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
19616         CONST_DOUBLE_OK_FOR_LETTER.
19617         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
19619 2014-06-02  Andrew Pinski  <apinski@cavium.com>
19621         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
19622         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
19623         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
19624         file whose name depends on -mabi= and -mbig-endian.
19625         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
19626         Handle LP64 better and handle ilp32 too.
19627         (MULTILIB_OPTIONS): Delete.
19628         (MULTILIB_DIRNAMES): Delete.
19630 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
19632         * expr.h: Remove prototypes of functions defined in builtins.c.
19633         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
19634         Remove prototypes of functions defined in builtins.c.
19635         * builtins.h: Update prototype list to include all exported functions.
19636         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
19637         no_c99_libc_has_function): Move to targhooks.c
19638         (build_string_literal, build_call_expr_loc_array,
19639         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
19640         to tree.c.
19641         (expand_builtin_object_size, fold_builtin_object_size): Make static.
19642         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
19643         no_c99_libc_has_function): Relocate from builtins.c.
19644         * tree.c: Include builtins.h.
19645         (build_call_expr_loc_array, build_call_expr_loc_vec,
19646         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
19647         from builtins.c.
19648         * fold-const.h (fold_fma): Move prototype to builtins.h.
19649         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
19650         * asan.c: Include builtins.h.
19651         * cfgexpand.c: Likewise.
19652         * convert.c: Likewise.
19653         * emit-rtl.c: Likewise.
19654         * except.c: Likewise.
19655         * expr.c: Likewise.
19656         * fold-const.c: Likewise.
19657         * gimple-fold.c: Likewise.
19658         * gimple-ssa-strength-reduction.c: Likewise.
19659         * gimplify.c: Likewise.
19660         * ipa-inline.c: Likewise.
19661         * ipa-prop.c: Likewise.
19662         * lto-streamer-out.c: Likewise.
19663         * stmt.c: Likewise.
19664         * tree-inline.c: Likewise.
19665         * tree-object-size.c: Likewise.
19666         * tree-sra.c: Likewise.
19667         * tree-ssa-ccp.c: Likewise.
19668         * tree-ssa-forwprop.c: Likewise.
19669         * tree-ssa-loop-ivcanon.c: Likewise.
19670         * tree-ssa-loop-ivopts.c: Likewise.
19671         * tree-ssa-math-opts.c: Likewise.
19672         * tree-ssa-reassoc.c: Likewise.
19673         * tree-ssa-threadedge.c: Likewise.
19674         * tree-streamer-in.c: Likewise.
19675         * tree-vect-data-refs.c: Likewise.
19676         * tree-vect-patterns.c: Likewise.
19677         * tree-vect-stmts.c: Likewise.
19678         * config/aarch64/aarch64.c: Likewise.
19679         * config/alpha/alpha.c: Likewise.
19680         * config/arc/arc.c: Likewise.
19681         * config/arm/arm.c: Likewise.
19682         * config/avr/avr.c: Likewise.
19683         * config/bfin/bfin.c: Likewise.
19684         * config/c6x/c6x.c: Likewise.
19685         * config/cr16/cr16.c: Likewise.
19686         * config/cris/cris.c: Likewise.
19687         * config/epiphany/epiphany.c: Likewise.
19688         * config/fr30/fr30.c: Likewise.
19689         * config/frv/frv.c: Likewise.
19690         * config/h8300/h8300.c: Likewise.
19691         * config/i386/i386.c: Likewise.
19692         * config/i386/winnt.c: Likewise.
19693         * config/ia64/ia64.c: Likewise.
19694         * config/iq2000/iq2000.c: Likewise.
19695         * config/lm32/lm32.c: Likewise.
19696         * config/m32c/m32c.c: Likewise.
19697         * config/m32r/m32r.c: Likewise.
19698         * config/m68k/m68k.c: Likewise.
19699         * config/mcore/mcore.c: Likewise.
19700         * config/mep/mep.c: Likewise.
19701         * config/microblaze/microblaze.c: Likewise.
19702         * config/mips/mips.c: Likewise.
19703         * config/mmix/mmix.c: Likewise.
19704         * config/mn10300/mn10300.c: Likewise.
19705         * config/moxie/moxie.c: Likewise.
19706         * config/msp430/msp430.c: Likewise.
19707         * config/nds32/nds32.c: Likewise.
19708         * config/pa/pa.c: Likewise.
19709         * config/pdp11/pdp11.c: Likewise.
19710         * config/picochip/picochip.c: Likewise.
19711         * config/rl78/rl78.c: Likewise.
19712         * config/rs6000/rs6000.c: Likewise.
19713         * config/rx/rx.c: Likewise.
19714         * config/s390/s390.c: Likewise.
19715         * config/score/score.c: Likewise.
19716         * config/sh/sh.c: Likewise.
19717         * config/sparc/sparc.c: Likewise.
19718         * config/spu/spu.c: Likewise.
19719         * config/stormy16/stormy16.c: Likewise.
19720         * config/tilegx/tilegx.c: Likewise.
19721         * config/tilepro/tilepro.c: Likewise.
19722         * config/v850/v850.c: Likewise.
19723         * config/vax/vax.c: Likewise.
19724         * config/xtensa/xtensa.c: Likewise.
19726 2014-06-02  Jeff Law  <law@redhat.com>
19728         PR rtl-optimization/61094
19729         * ree.c (combine_reaching_defs): Do not reextend an insn if it
19730         was marked as do_no_reextend.  If a copy is needed to eliminate
19731         an extension, then mark it as do_not_reextend.
19733 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19735         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
19737 2014-06-02  Richard Henderson  <rth@redhat.com>
19739         PR target/61336
19740         * config/alpha/alpha.c (print_operand_address): Allow symbolic
19741         addresses inside asms.  Use output_operand_lossage instead of
19742         gcc_unreachable.
19744 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
19746         PR target/61239
19747         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
19748         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
19750 2014-06-02  Tom de Vries  <tom@codesourcery.com>
19752         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
19753         case that x has VOIDmode.
19755 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
19757         * varasm.c (copy_constant): Delete function.
19758         (build_constant_desc): Don't call it.
19760 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19762         PR target/61154
19763         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
19764         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
19765         with immediate_operand.
19767 2014-06-02  Andreas Schwab  <schwab@suse.de>
19769         * config/ia64/ia64.c
19770         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
19771         pending_data_specs first.
19773 2014-06-02  Richard Biener  <rguenther@suse.de>
19775         PR tree-optimization/61378
19776         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
19777         valueized_anything.
19779 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
19781         * config/i386/constraints.md (Bw): Rename from 'w'.
19782         (Bz): Rename from 'z'.
19783         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
19785 2014-06-01  Kai Tietz  <ktietz@redhat.com>
19787         PR target/61377
19788         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
19789         * config/i386/i386.md (sibcall_insn_operand): Use Bs
19790         instead of m constraint.
19792 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
19794         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
19795         a separate alternative where the scratch operand 2 is marked as
19796         early clobber.
19798 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
19800         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
19801         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
19802         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
19803         and __builtins_arm_get_fpscr.
19804         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19805         __builtins_arm_get_fpscr.
19806         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
19807         __builtins_arm_ldfpscr.
19808         (arm_atomic_assign_expand_fenv): New function.
19809         * config/arm/vfp.md (set_fpscr): New pattern.
19810         (get_fpscr) : Likewise.
19811         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
19812         VUNSPEC_SET_FPSCR.
19813         * doc/extend.texi (AARCH64 Built-in Functions) : Document
19814         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
19816 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
19818         * asan.c (report_error_func): Add SLOW_P argument, use
19819         BUILT_IN_ASAN_*_N if set.
19820         (build_check_stmt): Likewise.
19821         (instrument_derefs): If T has insufficient alignment,
19822         force same handling as for odd sizes.
19824         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
19825         BUILT_IN_ASAN_REPORT_STORE_N): New.
19826         * asan.c (struct asan_mem_ref): Change access_size type to
19827         HOST_WIDE_INT.
19828         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
19829         update_mem_ref_hash_table): Likewise.
19830         (asan_mem_ref_hasher::hash): Hash in a HWI.
19831         (report_error_func): Change size_in_bytes argument to HWI.
19832         Use *_N builtins if size_in_bytes is larger than 16 or not power of
19833         two.
19834         (build_shadow_mem_access): New function.
19835         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
19836         Handle size_in_bytes not power of two or larger than 16.
19837         (instrument_derefs): Don't give up if size_in_bytes is not
19838         power of two or is larger than 16.
19840 2014-05-30  Kai Tietz  <ktietz@redhat.com>
19842         PR target/60104
19843         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
19844         for sibling-tail-calls.
19845         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
19846         to its use.
19847         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
19848         (sibcall_insn_operand): Add check for sibcall_memory_operand.
19850 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19852         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
19853         * config/avr/avr-tables.opt: Regenerate.
19854         * config/avr/t-multilib: Regenerate.
19855         * doc/avr-mmcu.texi: Regenerate.
19857 2014-05-30  Ian Lance Taylor  <iant@google.com>
19859         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
19860         target("sse").
19862 2014-05-30  Tom de Vries  <tom@codesourcery.com>
19864         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19865         Redefine as true.
19867 2014-05-30  Tom de Vries  <tom@codesourcery.com>
19869         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19870         * lra.c (initialize_lra_reg_info_element): Add init of
19871         actual_call_used_reg_set field.
19872         (lra): Call lra_create_live_ranges before lra_inheritance for
19873         -fuse-caller-save.
19874         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19875         -fuse-caller-save.
19876         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
19877         instead of call_used_reg_set for -fuse-caller-save.
19878         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19880 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19882         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
19883         to mov_imm.
19884         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
19886 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
19888         * ira.c (ira_get_dup_out_num): Check for output operands at
19889         the start of the loop.  Handle cases where an included alternative
19890         follows an excluded one.
19892 2014-05-29  Mike Stump  <mikestump@comcast.net>
19894         PR debug/61352
19895         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
19896         post ld passes when lto is used.
19898 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
19900         PR rtl-optimization/61325
19901         * lra-constraints.c (process_address): Rename to process_address_1.
19902         (process_address): New function.
19904 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
19906         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
19907         TYPES_BINOPV): New static data.
19908         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
19909         New builtin.
19910         * config/aarch64/aarch64-simd.md (aarch64_ext,
19911         aarch64_im_lane_boundsi): New patterns.
19912         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
19913         patterns for EXT.
19914         (aarch64_evpc_ext): New function.
19916         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
19918         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
19919         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
19920         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
19921         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
19922         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
19924 2014-05-29  Tom de Vries  <tom@codesourcery.com>
19926         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
19928 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
19929             Richard Sandiford  <rdsandiford@googlemail.com>
19931         * arm/iterators.md (shiftable_ops): New code iterator.
19932         (t2_binop0, arith_shift_insn): New code attributes.
19933         * arm/predicates.md (shift_nomul_operator): New predicate.
19934         * arm/arm.md (insn_enabled): Delete.
19935         (enabled): Remove insn_enabled test.
19936         (*arith_shiftsi): Delete.  Replace with ...
19937         (*<arith_shift_insn>_multsi): ... new pattern.
19938         (*<arith_shift_insn>_shiftsi): ... new pattern.
19939         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
19941 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
19942             Tom de Vries  <tom@codesourcery.com>
19944         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
19945         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
19946         clobber.
19947         (mips_split_call): Use POST_CALL_TMP_REG.
19948         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
19950 2014-05-29  Tom de Vries  <tom@codesourcery.com>
19952         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
19953         with #ifdef STACK_REGS.
19955 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
19957         * varasm.c (get_variable_section): Walk aliases.
19958         (place_block_symbol): Walk aliases.
19960 2014-05-28  Tom de Vries  <tom@codesourcery.com>
19962         Revert:
19963         2014-05-28  Tom de Vries  <tom@codesourcery.com>
19965         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19966         * lra.c (initialize_lra_reg_info_element): Add init of
19967         actual_call_used_reg_set field.
19968         (lra): Call lra_create_live_ranges before lra_inheritance for
19969         -fuse-caller-save.
19970         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19971         -fuse-caller-save.
19972         * lra-constraints.c (need_for_call_save_p): Use
19973         actual_call_used_reg_set instead of call_used_reg_set for
19974         -fuse-caller-save.
19975         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19977 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19979         * doc/md.texi: Document that the % constraint character must
19980         be at the beginning of the string.
19981         * genoutput.c (validate_insn_alternatives): Check that '=',
19982         '+' and '%' only appear at the beginning of a constraint.
19983         * ira.c (commutative_constraint_p): Delete.
19984         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
19985         at the start of the string.
19986         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
19987         duplicate '='s.
19988         * config/arm/neon.md (bicdi3_neon): Likewise.
19989         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
19990         (slt_si, sltu_si): Likewise.
19991         * config/vax/vax.md (sbcdi3): Likewise.
19992         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
19993         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
19994         (mul64): Move '%' to beginning of constraint.
19995         * config/arm/arm.md (*xordi3_insn): Likewise.
19996         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
19997         (xorsi3): Likewise.
19999 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20001         * doc/md.texi: Document the restrictions on the "enabled" attribute.
20003 2014-05-28  Jason Merrill  <jason@redhat.com>
20005         PR c++/47202
20006         * cgraph.h (symtab_node::get_comdat_group_id): New.
20007         * cgraphunit.c (analyze_functions): Call it.
20008         * symtab.c (dump_symtab_node): Likewise.
20009         * tree.c (decl_comdat_group_id): New.
20010         * tree.h: Declare it.
20011         * lto-streamer-out.c (write_symbol): Use it.
20012         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
20014 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20016         PR bootstrap/PR61146
20017         * wide-int.cc: Do not include longlong.h when compiling with clang.
20019 2014-05-28  Richard Biener  <rguenther@suse.de>
20021         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
20022         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
20023         (vrp_visit_assignment_or_call): Print less vertical space.
20024         (vrp_visit_stmt): Likewise.
20025         (vrp_visit_phi_node): Likewise.  For a PHI argument with
20026         VR_VARYING range consider recording it as copy.
20028 2014-05-28  Richard Biener  <rguenther@suse.de>
20030         Revert
20031         2014-05-28  Richard Biener  <rguenther@suse.de>
20033         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20035 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20037         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
20038         sufficiently aligned and an offset is used at the same time.
20039         (expand_expr_real_1): Likewise.
20041 2014-05-28  Richard Biener  <rguenther@suse.de>
20043         PR middle-end/61045
20044         * fold-const.c (fold_comparison): When folding
20045         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
20046         the sign of the remaining constant operand stays the same.
20048 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
20050         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
20051         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
20052         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
20053         to the assembler.
20054         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
20055         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
20056         (m32bit-doubles) Likewise.
20057         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
20058         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
20059         option for RL78.
20061 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20063         * configure.ac ($gcc_cv_ld_clearcap): New test.
20064         * configure: Regenerate.
20065         * config.in: Regenerate.
20066         * config/sol2.opt (mclear-hwcap): New option.
20067         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
20068         * config/sol2-clearcap.map: Moved here from
20069         testsuite/gcc.target/i386/clearcap.map.
20070         * config/sol2-clearcapv2.map: Move here from
20071         gcc.target/i386/clearcapv2.map.
20072         * config/t-sol2 (install): Depend on install-clearcap-map.
20073         (install-clearcap-map): New target.
20074         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
20075         -mclear-hwcap.
20077 2014-05-28  Richard Biener  <rguenther@suse.de>
20079         * hwint.h (*_HALF_WIDE_INT*): Move to ...
20080         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
20081         ... here and remove the rest.
20082         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20084 2014-05-28  Richard Biener  <rguenther@suse.de>
20086         PR tree-optimization/61335
20087         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
20088         new range fails, drop to varying.
20090 2014-05-28  Olivier Hainque  <hainque@adacore.com>
20092         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
20093         (CPP_SPEC): Add entry for -mcpu=8548.
20094         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
20095         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
20097 2014-05-28  Tom de Vries  <tom@codesourcery.com>
20099         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20100         * lra.c (initialize_lra_reg_info_element): Add init of
20101         actual_call_used_reg_set field.
20102         (lra): Call lra_create_live_ranges before lra_inheritance for
20103         -fuse-caller-save.
20104         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20105         -fuse-caller-save.
20106         * lra-constraints.c (need_for_call_save_p): Use
20107         actual_call_used_reg_set instead of call_used_reg_set for
20108         -fuse-caller-save.
20109         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20111 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20112             Tom de Vries  <tom@codesourcery.com>
20114         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
20115         to gccoptlist.
20116         (@item -fuse-caller-save): New item.
20118 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20119             Tom de Vries  <tom@codesourcery.com>
20121         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
20122         OPT_fuse_caller_save.
20124 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20125             Tom de Vries  <tom@codesourcery.com>
20127         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
20128         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
20129         get_call_reg_set_usage.
20130         * resource.c (mark_set_resources, mark_target_live_regs): Use
20131         get_call_reg_set_usage.
20132         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
20133         field.
20134         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
20135         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
20136         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20137         * ira-build.c (ira_create_allocno): Init
20138         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20139         (create_cap_allocno, propagate_allocno_info)
20140         (propagate_some_info_from_allocno)
20141         (copy_info_to_removed_store_destinations): Handle
20142         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20143         * ira-costs.c (ira_tune_allocno_costs): Use
20144         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
20146 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20147             Tom de Vries  <tom@codesourcery.com>
20149         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
20150         and function_used_regs_valid fields.
20151         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
20152         find_all_hard_reg_sets.
20153         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
20154         (get_call_reg_set_usage): New function.
20155         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
20156         * regs.h (get_call_reg_set_usage): Declare.
20158 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20160         PR libgcc/61152
20161         * config/dbx.h (License): Add Runtime Library Exception.
20162         * config/newlib-stdint.h (License): Same.
20163         * config/rtems.h (License): Same
20164         * config/initfini-array.h (License): Same
20165         * config/v850/v850.h (License): Same.
20166         * config/v850/v850-opts.h (License): Same
20167         * config/v850/rtems.h (License): Same.
20169 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20171         PR target/61044
20172         * doc/extend.texi (Local Labels): Note that label differences are
20173         not supported for AVR.
20175 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20176             Olivier Hainque  <hainque@adacore.com>
20178         * rtl.h (set_for_reg_notes): Declare.
20179         * emit-rtl.c (set_for_reg_notes): New function.
20180         (set_unique_reg_note): Use it.
20181         * optabs.c (add_equal_note): Likewise
20183 2014-05-27  Andrew Pinski  <apinski@cavium.com>
20185         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
20186         Use <w> for the register in assembly template.
20187         (stack_protect_test): Use the mode of operands[0] for the result.
20188         (stack_protect_test_<mode>): Use <w> for the register
20189         in assembly template.
20191 2014-05-27  DJ Delorie  <dj@redhat.com>
20193         * config/rx/rx.c (add_vector_labels): New.
20194         (rx_output_function_prologue): Call it.
20195         (rx_handle_func_attribute): Don't require empty arguments.
20196         (rx_handle_vector_attribute): New.
20197         (rx_attribute_table): Add "vector" attribute.
20198         * doc/extend.texi (interrupt, vector): Document new/changed
20199         RX-specific attributes.
20201         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
20203 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20205         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
20206         predicate to detect a negative quotient.
20208 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20210         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20211         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20212         Add X - Y CMP 0 to X CMP Y transformation.
20213         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20215 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
20217         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20218         before printing.
20220 2014-05-27  Steve Ellcey  <sellcey@mips.com>
20222         * config/mips/mips.c: Add include of cgraph.h.
20224 2014-05-27  Richard Biener  <rguenther@suse.de>
20226         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20228 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
20230         PR libgcc/61152
20231         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
20232         * config/arm/arm-cores.def (License): Same.
20233         * config/arm/arm-opts.h (License): Same.
20234         * config/arm/aout.h (License): Same.
20235         * config/arm/bpabi.h (License): Same.
20236         * config/arm/elf.h (License): Same.
20237         * config/arm/linux-elf.h (License): Same.
20238         * config/arm/linux-gas.h (License): Same.
20239         * config/arm/netbsd-elf.h (License): Same.
20240         * config/arm/uclinux-eabi.h (License): Same.
20241         * config/arm/uclinux-elf.h (License): Same.
20242         * config/arm/vxworks.h (License): Same.
20244 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20246         * config/arm/neon.md (neon_bswap<mode>): New pattern.
20247         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
20248         (arm_init_neon_builtins): Handle NEON_BSWAP.
20249         Define required type nodes.
20250         (arm_expand_neon_builtin): Handle NEON_BSWAP.
20251         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
20252         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
20253         * config/arm/iterators.md (VDQHSD): New mode iterator.
20255 2014-05-27  Richard Biener  <rguenther@suse.de>
20257         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
20258         Try using literal operands when comparing value-ranges failed.
20260 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20262         * ira.c (commutative_operand): Adjust for change to recog_data.
20263         [Missing from previous commit.]
20265 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20267         * system.h (TEST_BIT): New macro.
20268         * recog.h (alternative_mask): New type.
20269         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
20270         (recog_data_d): Replace alternative_enabled_p array with
20271         enabled_alternatives.
20272         (target_recog): New structure.
20273         (default_target_recog, this_target_recog): Declare.
20274         (get_enabled_alternatives, recog_init): Likewise.
20275         * recog.c (default_target_recog, this_target_recog): New variables.
20276         (get_enabled_alternatives): New function.
20277         (extract_insn): Use it.
20278         (recog_init): New function.
20279         (preprocess_constraints, constrain_operands): Adjust for change to
20280         recog_data.
20281         * postreload.c (reload_cse_simplify_operands): Likewise.
20282         * reload.c (find_reloads): Likewise.
20283         * ira-costs.c (record_reg_classes): Likewise.
20284         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
20285         all alternatives after a disabled one would be skipped.
20286         (ira_implicitly_set_insn_hard_regs): Likewise.
20287         * ira.c (ira_setup_alts): Adjust for change to recog_data.
20288         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
20289         with enabled_alternatives.
20290         * lra.c (free_insn_recog_data): Update accordingly.
20291         (lra_update_insn_recog_data): Likewise.
20292         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
20293         * lra-constraints.c (process_alt_operands): Likewise.  Handle
20294         only_alternative as part of the enabled mask.
20295         * target-globals.h (this_target_recog): Declare.
20296         (target_globals): Add a recog field.
20297         (restore_target_globals): Restore this_target_recog.
20298         * target-globals.c: Include recog.h.
20299         (default_target_globals): Initialize recog field.
20300         (save_target_globals): Likewise.
20301         * reginfo.c (reinit_regs): Call recog_init.
20302         * toplev.c (backend_init_target): Likewise.
20304 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20306         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
20307         rather than any named insn's code.
20309 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
20311         PR libgcc/61152
20312         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
20313         * config/arm/arm-cores.def (License): Same.
20315 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
20317         * tree.h (decl_comdat_group): Declare.
20318         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
20319         * tree.c (decl_comdat_group): Here.
20321 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
20323         PR rtl-optimization/61222
20324         * combine.c (simplify_shift_const_1): When moving a PLUS outside
20325         the shift, truncate the PLUS operand to the result mode.
20327 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
20329         PR target/61271
20330         * config/i386/i386.c (ix86_rtx_costs)
20331         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
20332         Fix condition.
20334 2014-05-26  Martin Jambor  <mjambor@suse.cz>
20336         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
20337         subreg uses.
20339 2014-05-26  Richard Biener  <rguenther@suse.de>
20341         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
20342         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
20343         Provide specializations.
20344         (wi::int_traits <HOST_WIDE_INT>,
20345         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
20347 2014-05-26  Alan Modra  <amodra@gmail.com>
20349         PR target/61098
20350         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
20351         params and return a bool.  Remove dead code.  Update comment.
20352         Assert we have a const_int source.  Remove bogus code from
20353         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
20354         handling of constants > 2G and reg_equal note, from..
20355         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
20356         return value.  Update comment.  If we can, use a new pseudo
20357         for intermediate calculations.
20358         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
20359         prototype.
20360         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
20361         call to rs6000_emit_set_const in splitter.
20362         (movdi_internal64+2, +3): Likewise.
20364 2014-05-26  Richard Biener  <rguenther@suse.de>
20366         * system.h: Define __STDC_FORMAT_MACROS before
20367         including inttypes.h.
20368         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
20369         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
20370         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
20371         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
20372         HOST_WIDEST_INT_C): Remove.
20373         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
20374         if C99 inttypes.h is not available.
20375         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
20376         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
20377         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
20378         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
20379         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
20380         (struct output_info): Likewise.
20381         (print_statistics): Adjust.
20382         (dump_bitmap_statistics): Likewise.
20383         * bt-load.c (migrate_btr_defs): Print with PRId64.
20384         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
20385         (MAX_SAFE_MULTIPLIER): Adjust.
20386         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
20387         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
20388         dump_cgraph_node): Likewise.
20389         * final.c (dump_basic_block_info): Likewise.
20390         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
20391         * gcov.c (format_gcov): Likewise.
20392         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
20393         for calculation.
20394         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
20395         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
20396         (inline_small_functions, dump_overall_stats, dump_inline_stats):
20397         Use PRId64 for dumping.
20398         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
20399         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
20400         (add_allocno_hard_regs): Adjust.
20401         * loop-doloop.c (doloop_modify): Print using PRId64.
20402         * loop-iv.c (inverse): Compute in uint64_t.
20403         (determine_max_iter, iv_number_of_iterations): Likewise.
20404         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
20405         Print using PRId64.
20406         * lto-streamer-out.c (write_symbol): Use uint64_t.
20407         * mcf.c (CAP_INFINITY): Use int64_t maximum.
20408         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
20409         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
20410         * modulo-sched.c (const_iteration_count): Use int64_t.
20411         (sms_schedule): Dump using PRId64.
20412         * predict.c (dump_prediction): Likewise.
20413         * pretty-print.h (pp_widest_integer): Remove.
20414         * profile.c (get_working_sets, is_edge_inconsistent,
20415         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
20416         * tree-pretty-print.c (pp_double_int): Remove case handling
20417         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
20418         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
20419         and adjust users.
20420         (pass_optimize_bswap::execute): Remove restriction on hosts.
20421         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
20422         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
20423         * tree.c (widest_int_cst_value): Remove.
20424         * tree.h (widest_int_cst_value): Likewise.
20425         * value-prof.c (dump_histogram_value): Print using PRId64.
20426         * gengtype.c (main): Also inject int64_t.
20427         * ggc-page.c (struct max_alignment): Use int64_t.
20428         * alloc-pool.c (struct allocation_object_def): Likewise.
20429         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
20430         for computation.
20431         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
20432         * doc/tm.texi: Regenerated.
20433         * gengtype-lex.l (IWORD): Handle [u]int64_t.
20434         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
20435         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
20436         mmix_output_register_setting): Use [u]int64_t in prototypes.
20437         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
20438         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
20439         mmix_output_octa, mmix_output_shifted_value): Adjust.
20440         (mmix_intval): Adjust.  Remove unreachable case.
20441         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
20443 2014-05-26  Richard Biener  <rguenther@suse.de>
20445         * configure.ac: Drop __int64 type check.  Insist that we
20446         found uint64_t and int64_t.
20447         * hwint.h (HOST_BITS_PER___INT64): Remove.
20448         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
20449         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
20450         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
20451         (HOST_WIDEST_FAST_INT): Remove __int64 case.
20452         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
20453         for dst_q_src_df_rms_cdt.
20454         * configure: Regenerate.
20455         * config.in: Likewise.
20457 2014-05-26  Michael Tautschnig  <mt@debian.org>
20459         PR target/61249
20460         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
20461         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
20463 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20465         PR rtl-optimization/61278
20466         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
20468 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20470         PR rtl-optimization/61220
20471         Part of PR rtl-optimization/61225
20472         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
20473         insn; skip split_edge for a block with only one successor.
20475 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20477         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
20478         for variables.
20480 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20482         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
20483         (update_vtable_references): New function.
20484         (function_and_variable_visibility): Rewrite also vtable initializers.
20485         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
20487 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20489         * ggc.h (ggc_grow): New function.
20490         * ggc-none.c (ggc_grow): New function.
20491         * ggc-page.c (ggc_grow): Likewise.
20493 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20495         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20496         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
20497         comdat_can_be_unshared_p, cgraph_externally_visible_p,
20498         varpool_externally_visible_p, can_replace_by_local_alias,
20499         update_visibility_by_resolution_info, function_and_variable_visibility,
20500         pass_data_ipa_function_and_variable_visibility,
20501         make_pass_ipa_function_and_variable_visibility,
20502         whole_program_function_and_variable_visibility,
20503         pass_data_ipa_whole_program_visibility,
20504         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
20505         * cgraph.h (cgraph_local_node_p): Declare.
20506         * ipa-visibility.c: New file.
20507         * Makefile.in (OBJS): Add ipa-visiblity.o
20509 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20511         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
20512         that var decl is available.
20514 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20516         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
20517         symtab_node pointer.
20518         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
20519         (find_decls_types_r): Do not walk COMDAT_GROUP.
20520         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
20521         * varasm.c (make_decl_one_only): Use set_comdat_group;
20522         create node if needed.
20523         * ipa-inline-transform.c (save_inline_function_body): Update
20524         way we decl->symtab mapping.
20525         * symtab.c (symtab_hash, hash_node, eq_node
20526         symtab_insert_node_to_hashtable): Remove.
20527         (symtab_register_node): Update.
20528         (symtab_unregister_node): Update.
20529         (symtab_get_node): Reimplement as inline function.
20530         (symtab_add_to_same_comdat_group): Update.
20531         (symtab_dissolve_same_comdat_group_list): Update.
20532         (dump_symtab_base): Update.
20533         (verify_symtab_base): Update.
20534         (symtab_make_decl_local): Update.
20535         (fixup_same_cpp_alias_visibility): Update.
20536         (symtab_nonoverwritable_alias): Update.
20537         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
20538         * ipa.c (update_visibility_by_resolution_info): UPdate.
20539         * bb-reorder.c: Include cgraph.h
20540         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
20541         with comdat groups.
20542         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
20543         * cgraph.c (cgraph_get_create_node): Update.
20544         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
20545         and comdat_group_.
20546         (symtab_get_node): Make inline.
20547         (symtab_insert_node_to_hashtable): Remove.
20548         (symtab_can_be_discarded): Update.
20549         (decl_comdat_group): New function.
20550         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
20551         Update.
20552         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
20553         comdat group name.
20554         (read_comdat_group): New function.
20555         (input_node, input_varpool_node): Use it.
20556         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
20557         comdat groups.
20558         * mips.c (mips_start_unique_function): Likewise.
20559         (ix86_code_end): Likewise.
20560         (rs6000_code_end): Likweise.
20561         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
20563 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20565         * gengtype-state.c (fatal_reading_state): Bring offline.
20566         * optabs.c (widening_optab_handler): Bring offline.
20567         * optabs.h (widening_optab_handler): Likewise.
20568         * final.c (get_attr_length_1): Likewise.
20570 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20572         * sched-int.h (sd_iterator_cond): Manually tail recurse.
20574 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20576         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
20577         (ppc440-compare): Include shift with dot.
20578         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
20579         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
20580         without dot.
20581         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
20582         without dot.
20583         (e6500_sfx2): Include it.
20584         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
20585         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20586         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
20587         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
20588         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
20589         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
20590         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
20591         *lshiftrt_internal1le, *lshiftrt_internal1be,
20592         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
20593         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
20594         *rotldi3_internal10le, *rotldi3_internal10be,
20595         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
20596         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
20597         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
20598         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
20599         define_insns): Use type "shift" in the appropriate alternatives.
20601 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20603         * config/rs6000/rs6000.md (type): Add "logical".  Delete
20604         "fast_compare".
20605         (dot): Adjust comment.
20606         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
20607         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
20608         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
20609         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
20610         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
20611         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
20612         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
20613         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20615         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20616         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20617         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20618         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20619         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20620         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20621         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20622         * config/rs6000/8540.md (ppc8540_su): Adjust.
20623         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20624         cell-cmp-microcoded): Adjust.
20625         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20626         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20627         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20628         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20629         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20630         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20631         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20632         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20633         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20634         Adjust.
20635         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20636         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
20637         Adjust.  Adjust comment.
20638         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20639         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20641 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20643         * config/rs6000/rs6000.md (type): Add "add".
20644         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
20645         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
20646         define_insns): Use it.
20647         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20649         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20650         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20651         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20652         * config/rs6000/601.md (ppc601-integer): Adjust.
20653         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20654         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20655         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20656         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20657         * config/rs6000/8540.md (ppc8540_su): Adjust.
20658         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20659         cell-cmp-microcoded): Adjust.
20660         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20661         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20662         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20663         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20664         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20665         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20666         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20667         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20668         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20669         Adjust.
20670         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20671         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
20672         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20673         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20675 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20677         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
20678         "delayed_compare", "var_delayed_compare".
20679         (var_shift): New attribute.
20680         (cell_micro): Adjust.
20681         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
20682         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
20683         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
20684         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20685         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20686         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20687         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20688         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
20689         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
20690         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20691         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
20692         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
20693         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
20694         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
20695         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
20696         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
20697         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
20698         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
20699         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
20700         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
20701         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
20702         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
20703         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
20704         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20705         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20707         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20708         * config/rs6000/440.md (ppc440-integer): Adjust.
20709         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20710         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
20711         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20712         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20713         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20714         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20715         * config/rs6000/8540.md (ppc8540_su): Adjust.
20716         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20717         cell-cmp-microcoded): Adjust.
20718         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
20719         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20720         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
20721         e500mc64_delayed): Adjust.
20722         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
20723         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
20724         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20725         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
20726         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
20727         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
20728         power6-delayed-compare, power6-var-delayed-compare): Adjust.
20729         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
20730         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
20731         Adjust comment.
20732         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20733         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20735 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20737         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
20738         (bits): New mode_attr.
20739         (idiv_ldiv): Delete mode_attr.
20740         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
20741         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20742         rs6000_adjust_priority, is_nonpipeline_insn,
20743         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20745         * config/rs6000/40x.md (ppc403-idiv): Adjust.
20746         * config/rs6000/440.md (ppc440-idiv): Adjust.
20747         * config/rs6000/476.md (ppc476-idiv): Adjust.
20748         * config/rs6000/601.md (ppc601-idiv): Adjust.
20749         * config/rs6000/603.md (ppc603-idiv): Adjust.
20750         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
20751         ppc620-ldiv): Adjust.
20752         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
20753         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
20754         * config/rs6000/8540.md (ppc8540_divide): Adjust.
20755         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
20756         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
20757         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
20758         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
20759         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
20760         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
20761         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
20762         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
20763         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
20764         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
20765         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
20766         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
20767         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
20768         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
20769         * config/rs6000/titan.md (titan_fxu_div): Adjust.
20771 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20773         * config/rs6000/rs6000.md (type): Delete "insert_word",
20774         "insert_dword".  Add "insert".
20775         (size): Update comment.
20776         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20777         insn_must_be_first_in_group): Adjust.
20778         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20779         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20780         *insvsi_internal6, insvdi_internal): Adjust.
20782         * config/rs6000/40x.md (ppc403-integer): Adjust.
20783         * config/rs6000/440.md (ppc440-integer): Adjust.
20784         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
20785         * config/rs6000/601.md (ppc601-integer): Adjust.
20786         * config/rs6000/603.md (ppc603-integer): Adjust.
20787         * config/rs6000/6xx.md (ppc604-integer): Adjust.
20788         * config/rs6000/7450.md (ppc7450-integer): Adjust.
20789         * config/rs6000/7xx.md (ppc750-integer): Adjust.
20790         * config/rs6000/8540.md (ppc8540_su): Adjust.
20791         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
20792         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
20793         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20794         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
20795         * config/rs6000/e5500.md (e5500_sfx): Adjust.
20796         * config/rs6000/e6500.md (e6500_sfx): Adjust.
20797         * config/rs6000/mpc.md (mpccore-integer): Adjust.
20798         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
20799         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
20800         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
20801         * config/rs6000/power7.md (power7-integer): Adjust.
20802         * config/rs6000/power8.md (power8-1cyc): Adjust.
20803         * config/rs6000/rs64.md (rs64a-integer): Adjust.
20804         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20806 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20808         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
20809         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
20810         (size): New attribute.
20811         (dot): New attribute.
20812         (cell_micro): Adjust.
20813         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
20814         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
20815         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
20816         umuldi3_highpart): Adjust.
20817         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20818         rs6000_adjust_priority, is_nonpipeline_insn,
20819         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20821         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
20822         ppc405-imul3): Adjust.
20823         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
20824         * config/rs6000/476.md (ppc476-imul): Adjust.
20825         * config/rs6000/601.md (ppc601-imul): Adjust.
20826         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
20827         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
20828         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
20829         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
20830         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
20831         Adjust.
20832         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
20833         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
20834         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
20835         cell-imul): Adjust.
20836         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
20837         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
20838         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
20839         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
20840         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
20841         * config/rs6000/mpc.md (mpccore-imul): Adjust.
20842         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
20843         power4-lmul, power4-imul, power4-imul3): Adjust.
20844         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
20845         power5-lmul, power5-imul, power5-imul3): Adjust.
20846         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
20847         power6-lmul, power6-imul, power6-imul3): Adjust.
20848         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
20849         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
20851         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
20852         rs64a-lmul): Adjust.
20853         * config/rs6000/titan.md (titan_imul): Adjust.
20855 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20857         * config/rs6000/rs6000.md (type): Add new value "halfmul".
20858         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
20859         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
20860         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
20861         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
20862         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
20863         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
20864         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
20865         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
20866         * config/rs6000/titan.md: Delete nonsensical comment.
20867         (titan_imul): Add type imul3.
20868         (titan_mulhw): Remove type imul3; add type halfmul.
20870 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20872         * config/rs6000/rs6000.md (type): Reorder, reformat.
20874 2014-05-23  Martin Jambor  <mjambor@suse.cz>
20876         PR tree-optimization/53787
20877         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
20878         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
20879         analysis_done, update all uses.
20880         * ipa-prop.c: Include domwalk.h
20881         (param_analysis_info): Removed.
20882         (param_aa_status): New type.
20883         (ipa_bb_info): Likewise.
20884         (func_body_info): Likewise.
20885         (ipa_get_bb_info): New function.
20886         (aa_overwalked): Likewise.
20887         (find_dominating_aa_status): Likewise.
20888         (parm_bb_aa_status_for_bb): Likewise.
20889         (parm_preserved_before_stmt_p): Changed to use new param AA info.
20890         (load_from_unmodified_param): Accept func_body_info as a parameter
20891         instead of parms_ainfo.
20892         (parm_ref_data_preserved_p): Changed to use new param AA info.
20893         (parm_ref_data_pass_through_p): Likewise.
20894         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
20895         (compute_complex_assign_jump_func): Changed to use new param AA info.
20896         (compute_complex_ancestor_jump_func): Likewise.
20897         (ipa_compute_jump_functions_for_edge): Likewise.
20898         (ipa_compute_jump_functions): Removed.
20899         (ipa_compute_jump_functions_for_bb): New function.
20900         (ipa_analyze_indirect_call_uses): Likewise, moved variable
20901         declarations down.
20902         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
20903         and info, moved variable declarations down.
20904         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
20905         node and info.
20906         (ipa_analyze_stmt_uses): Likewise.
20907         (ipa_analyze_params_uses): Removed.
20908         (ipa_analyze_params_uses_in_bb): New function.
20909         (ipa_analyze_controlled_uses): Likewise.
20910         (free_ipa_bb_info): Likewise.
20911         (analysis_dom_walker): New class.
20912         (ipa_analyze_node): Handle node-specific forbidden analysis,
20913         initialize and free func_body_info, use dominator walker.
20914         (ipcp_modif_dom_walker): New class.
20915         (ipcp_transform_function): Create and free func_body_info, use
20916         ipcp_modif_dom_walker, moved a lot of functionality there.
20918 2014-05-23  Marek Polacek  <polacek@redhat.com>
20919             Jakub Jelinek  <jakub@redhat.com>
20921         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
20922         * gcc.c (sanitize_spec_function): Likewise.
20923         * convert.c (convert_to_integer): Include "ubsan.h".  Add
20924         floating-point to integer instrumentation.
20925         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
20926         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
20927         SANITIZE_NONDEFAULT.
20928         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
20929         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
20930         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
20931         * ubsan.c: Include "realmpfr.h" and "dfp.h".
20932         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
20933         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
20934         float/double/long double.
20935         (ubsan_instrument_float_cast): New function.
20936         * ubsan.h (ubsan_instrument_float_cast): Declare.
20938 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
20940         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
20941         predicate.
20942         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
20943         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
20944         Adjust for tailcalling through registers.
20945         * config/aarch64/aarch64.h (enum reg_class): New caller save
20946         register class.
20947         (REG_CLASS_NAMES): Likewise.
20948         (REG_CLASS_CONTENTS): Likewise.
20949         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
20950         Allow tailcalling without decls.
20952 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
20954         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20955         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
20957         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
20958         gsi, and variables v_* to v*.
20960 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
20962         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
20964 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
20966         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
20967         * omp-low.c: Update accordingly.
20969         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
20970         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
20971         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
20972         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
20973         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
20974         GF_OMP_TARGET_KIND_UPDATE.
20976         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20977         Explicitly enumerate the expected region types.
20979 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20981         PR other/56955
20982         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
20983         documentation; the old documentation didn't clearly state the
20984         constraints on the contents of the pointed-to storage.
20986 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20988         Fix bootstrap error on ia64
20989         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
20990         Return default value.
20992 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20994         PR tree-optimization/54733
20995         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
20996         (CMPNOP): Define.
20997         (find_bswap_or_nop_load): New.
20998         (find_bswap_1): Renamed to ...
20999         (find_bswap_or_nop_1): This. Also add support for memory source.
21000         (find_bswap): Renamed to ...
21001         (find_bswap_or_nop): This. Also add support for memory source and
21002         detection of bitwise operations equivalent to load in target
21003         endianness.
21004         (execute_optimize_bswap): Likewise. Also move its leading comment back
21005         in place and split statement transformation into ...
21006         (bswap_replace): This.
21008 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21010         PR rtl-optimization/61215
21011         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
21012         simplify_gen_subreg until final substitution.
21014 2014-05-23  Alan Modra  <amodra@gmail.com>
21016         PR target/61231
21017         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
21018         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
21019         Use "Y" constraint rather than "m".
21021 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
21023         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
21024         define.
21025         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
21026         New function declaration.
21027         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
21028         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
21029         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
21030         (aarch64_init_builtins) : Initialize builtins
21031         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21032         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21033         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
21034         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
21035         and __builtins_aarch64_set_fpsr.
21036         (aarch64_atomic_assign_expand_fenv): New function.
21037         * config/aarch64/aarch64.md (set_fpcr): New pattern.
21038         (get_fpcr) : Likewise.
21039         (set_fpsr) : Likewise.
21040         (get_fpsr) : Likewise.
21041         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
21042          and UNSPECV_SET_FPSR.
21043         * doc/extend.texi (AARCH64 Built-in Functions) : Document
21044         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21045         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21047 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21049         PR rtl-optimization/60969
21050         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
21051         constraints.  Set up mem cost for NO_REGS case.
21053 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
21055         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
21057 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
21059         * config/darwin.c: Include "lto-section-names.h".
21060         (LTO_SEGMENT_NAME): Don't define.
21061         * config/i386/winnt.c: Include "lto-section-names.h".
21062         * lto-streamer.c: Include "lto-section-names.h".
21063         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
21064         * lto-wrapper.c: Include "lto-section-names.h".
21065         (LTO_SECTION_NAME_PREFIX): Don't define.
21066         * lto-section-names.h: New file.
21067         * cgraphunit.c: Include "lto-section-names.h".
21069 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
21071         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
21073 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
21075         PR target/61208
21076         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
21078 2014-05-22  Nick Clifton  <nickc@redhat.com>
21080         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
21082 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
21084         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
21085         -> (T)A transformation to integer types.
21087 2014-05-22  Teresa Johnson  <tejohnson@google.com>
21089         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
21090         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
21091         (gcov_rewrite): Use gcov_nonruntime_assert.
21092         (gcov_open): Ditto.
21093         (gcov_write_words): Ditto.
21094         (gcov_write_length): Ditto.
21095         (gcov_read_words): Use gcov_nonruntime_assert, and remove
21096         gcc_assert from IN_LIBGCOV code.
21097         (gcov_read_summary): Use gcov_error to flag profile corruption.
21098         (gcov_sync): Use gcov_nonruntime_assert.
21099         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
21100         (gcov_histo_index): Use gcov_nonruntime_assert.
21101         (static void gcov_histogram_merge): Ditto.
21102         (compute_working_sets): Ditto.
21103         * gcov-io.h (gcov_nonruntime_assert): Define.
21104         (gcov_error): Define for !IN_LIBGCOV
21106 2014-05-22  Richard Biener  <rguenther@suse.de>
21108         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21109         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
21110         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
21111         and deallocation site.
21112         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21113         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
21114         passing through the incoming points-to set.
21115         (handle_lhs_call): Use flags argument instead of recomputing it.
21116         (find_func_aliases_for_call): Call handle_lhs_call with proper
21117         call return flags.
21119 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
21121         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
21122         all padding bits in REAL_VALUE_TYPE are cleared.
21124 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21126         Cleanup and improve multipass_dfa_lookahead_guard
21127         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
21128         (core2i7_first_cycle_multipass_begin,)
21129         (core2i7_first_cycle_multipass_issue,)
21130         (core2i7_first_cycle_multipass_backtrack): Update signature.
21131         * config/ia64/ia64.c
21132         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
21133         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
21134         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
21135         hook definition.
21136         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
21137         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
21138         values.
21139         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
21140         return values.
21141         * doc/tm.texi: Regenerate.
21142         * doc/tm.texi.in
21143         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
21144         * haifa-sched.c (ready_try): Make signed to allow negative values.
21145         (rebug_ready_list_1): Update.
21146         (choose_ready): Simplify.
21147         (sched_extend_ready_list): Update.
21149 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21151         Remove IA64 speculation tweaking flags
21152         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
21153         speculation tuning flags.
21154         (msched-prefer-non-data-spec-insns,)
21155         (msched-prefer-non-control-spec-insns): Obsolete options.
21156         * haifa-sched.c (choose_ready): Remove handling of
21157         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21158         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
21159         and PREFER_NON_DATA_SPEC.
21160         * sel-sched.c (process_spec_exprs): Remove handling of
21161         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21163 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21165         Improve scheduling debug output
21166         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
21167         (advance_one_cycle): Update.
21168         (schedule_insn, queue_to_ready): Add debug printouts.
21169         (debug_ready_list_1): New static function.
21170         (debug_ready_list): Update.
21171         (max_issue): Add debug printouts.
21172         (dump_insn_stream): New static function.
21173         (schedule_block): Use it.  Also better indent printouts.
21175 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21177         Fix sched_insn debug counter
21178         * haifa-sched.c (schedule_insn): Update.
21179         (struct haifa_saved_data): Add nonscheduled_insns_begin.
21180         (save_backtrack_point, restore_backtrack_point): Update.
21181         (first_nonscheduled_insn): New static function.
21182         (queue_to_ready, choose_ready): Use it.
21183         (schedule_block): Init nonscheduled_insns_begin.
21184         (sched_emit_insn): Update.
21187 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
21189         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
21190         to GENERAL_REGS.
21191         (aarch64_secondary_reload) : LikeWise.
21192         (aarch64_class_max_nregs) : Remove CORE_REGS.
21193         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
21194         (REG_CLASS_NAMES) : Likewise.
21195         (REG_CLASS_CONTENTS) : LikeWise.
21196         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
21198 2014-05-21  Guozhi Wei  <carrot@google.com>
21200         PR target/61202
21201         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
21202         constraint.
21203         (vqdmulhq_n_s16): Likewise.
21205 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21207         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21209 2014-05-21  Marek Polacek  <polacek@redhat.com>
21211         PR sanitizer/61272
21212         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21214 2014-05-21  Martin Jambor  <mjambor@suse.cz>
21216         * doc/invoke.texi (Optimize Options): Document parameters
21217         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21218         ipa-cp-array-index-hint-bonus.
21220 2014-05-21  Mark Wielaard  <mjw@redhat.com>
21222         PR debug/16063
21223         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21224         version >= 3 or not strict DWARF.
21225         * langhooks.h (struct lang_hooks_for_types): Add
21226         enum_underlying_base_type.
21227         * langhooks.c (lhd_enum_underlying_base_type): New function.
21228         * gcc/langhooks.h (struct lang_hooks_for_types): Add
21229         enum_underlying_base_type.
21230         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
21231         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
21232         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
21234 2014-05-21  Richard Biener  <rguenther@suse.de>
21236         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
21238 2014-05-21  John Marino  <gnugcc@marino.st>
21240         * config.gcc (*-*-dragonfly*): New target.
21241         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
21242         * configure: Regenerate.
21243         * config/dragonfly-stdint.h: New.
21244         * config/dragonfly.h: New.
21245         * config/dragonfly.opt: New.
21246         * config/i386/dragonfly.h: New.
21247         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
21249 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21251         * tree.def (VOID_CST): New.
21252         * tree-core.h (TI_VOID): New.
21253         * tree.h (void_node): New.
21254         * tree.c (tree_node_structure_for_code, tree_code_size)
21255         (iterative_hash_expr): Handle VOID_CST.
21256         (build_common_tree_nodes): Initialize void_node.
21258 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
21260         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
21261         functions.
21262         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
21264         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
21265         more places.
21267         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
21268         flag_reorder_blocks_and_partition.
21269         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
21271 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
21273         PR target/54236
21274         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
21275         constraints.
21276         (*addc_r_t): Add new insn_and_split.
21278 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
21280         PR middle-end/61252
21281         * omp-low.c (handle_simd_reference): New function.
21282         (lower_rec_input_clauses): Use it.  Defer adding reference
21283         initialization even for reduction without placeholder if in simd,
21284         handle it properly later on.
21286 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21288         PR tree-optimization/60899
21289         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
21290         assume all static symbols will have definition wile parsing and
21291         check the do have definition later in compilation; check that
21292         variable referring symbol will be output before concluding that
21293         reference is safe; be conservative for referring local statics;
21294         be more precise about when comdat is output in other partition.
21296 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21298         PR bootstrap/60984
21299         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
21300         parameter.
21301         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
21302         (ipa_inline): Loop inline_to_all_callers until no more aliases
21303         are removed.
21305 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21307         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
21308         set writeonly flag only for vars actually written to.
21310 2014-05-20  Dehao Chen  <dehao@google.com>
21312         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
21313         and callee count to get clone count.
21314         * tree-inline.c (expand_call_inline): Use callee count instead of bb
21315         count in copy_body.
21317 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
21319         PR rtl-optimization/61243
21320         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
21322 2014-05-20  Xinliang David Li  <davidxl@google.com>
21324         * cgraphunit.c (walk_polymorphic_call_targets): Add
21325         dbgcnt and fopt-info support.
21326         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
21327         * ipa-devirt.c (ipa_devirt): Ditto.
21328         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
21329         * ipa.c (walk_polymorphic_call_targets): Ditto.
21330         * gimple-fold.c (fold_gimple_assign): Ditto.
21331         (gimple_fold_call): Ditto.
21332         * dbgcnt.def: New counter.
21334 2014-05-20  DJ Delorie  <dj@redhat.com>
21336         * config/msp430/msp430.md (split): Don't allow subregs when
21337         splitting SImode adds.
21338         (andneghi): Fix subtraction logic.
21339         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
21341 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21343         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
21344         symbols.
21345         * except.c (switch_to_exception_section, resolve_unique_section,
21346         get_named_text_section, default_function_rodata_section,
21347         align_variable, get_block_for_decl, default_section_type_flags):
21348         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
21349         * symtab.c (symtab_add_to_same_comdat_group,
21350         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
21351         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
21352         Likewise.
21353         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
21354         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
21355         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21356         (c6x_function_in_section_p): Likewise.
21357         * config/darwin.c (machopic_select_section): Likewise.
21358         * config/arm/arm.c (arm_function_in_section_p): Likewise.
21359         * config/mips/mips.c (mips_function_rodata_section): Likewise.
21360         * config/mep/mep.c (mep_select_section): LIkewise.
21361         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21363 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21365         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
21366         EH region of calls to pure functions that can throw an exception.
21367         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
21368         (copy_reference_ops_from_call): Also copy the EH region of the call if
21369         it can throw an exception.
21371 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21373         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
21374         nested VEC_SELECTs that are inverses of each other.
21376 2014-05-20  Richard Biener  <rguenther@suse.de>
21378         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
21379         (extract_and_process_scc_for_name): not here.
21380         (cond_dom_walker::before_dom_children): Only process
21381         stmts that end the BB in interesting ways.
21382         (run_scc_vn): Mark param uses as visited.
21384 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21386         * config/arm/arm.md (arith_shiftsi): Do not predicate for
21387         arm_restrict_it.
21389 2014-05-20  Nick Clifton  <nickc@redhat.com>
21391         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21392         (msp430_gimplify_va_arg_expr): New function.
21393         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
21395         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
21396         operand 0 in order to prevent confusion about the number of
21397         registers involved.
21399 2014-05-20  Richard Biener  <rguenther@suse.de>
21401         PR tree-optimization/61221
21402         * tree-ssa-pre.c (el_to_update): Remove.
21403         (eliminate_dom_walker::before_dom_children): Handle released
21404         VDEFs by value-numbering them to the associated VUSE.  Update
21405         stmt immediately for substituted call address.
21406         (eliminate): Remove delayed stmt updating code.
21407         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
21408         possibly late re-numbered vuses.
21409         (vn_reference_lookup_2): Adjust.
21410         (vn_reference_lookup_pieces): Likewise.
21411         (vn_reference_lookup): Likewise.
21413 2014-05-20  Richard Biener  <rguenther@suse.de>
21415         * config.gcc: Remove need_64bit_hwint.
21416         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
21417         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
21418         it to be true.
21419         * config.in: Regenerate.
21420         * configure: Likewise.
21422 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
21424         * doc/extend.texi: Create Label Attributes section,
21425         move all label attributes into it and reference it.
21427 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
21429         * arm.c (thumb1_reorg): When scanning backwards skip anything
21430         that's not a proper insn.
21432 2014-05-19  Richard Biener  <rguenther@suse.de>
21434         PR tree-optimization/61221
21435         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21436         Do nothing for unreachable blocks.
21437         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
21438         Improve unreachability detection.
21440 2014-05-19  Richard Biener  <rguenther@suse.de>
21442         PR tree-optimization/61209
21443         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
21445 2014-05-19  Nick Clifton  <nickc@redhat.com>
21447         * except.c (init_eh): Fix computation of builtin setjmp buffer
21448         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
21450 2014-05-19  Richard Biener  <rguenther@suse.de>
21452         PR tree-optimization/61184
21453         * tree-vrp.c (is_negative_overflow_infinity): Use
21454         TREE_OVERFLOW_P and do that check first.
21455         (is_positive_overflow_infinity): Likewise.
21456         (is_overflow_infinity): Likewise.
21457         (vrp_operand_equal_p): Properly treat operands with
21458         differing overflow as not equal.
21460 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
21462         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
21463         shift simplification where it was intended.
21465 2014-05-19  Christian Bruel  <christian.bruel@st.com>
21467         PR target/61195
21468         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
21470 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
21472         PR target/61084
21473         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
21474         than wide_int.
21476 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21478         * reg-notes.def (CROSSING_JUMP): Likewise.
21479         * rtl.h (rtx_def): Update comment for jump flag.
21480         (CROSSING_JUMP_P): Define.
21481         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
21482         of a REG_CROSSING_JUMP note.
21483         * cfghooks.c (tidy_fallthru_edges): Likewise.
21484         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
21485         * emit-rtl.c (try_split): Likewise.
21486         * haifa-sched.c (sched_create_recovery_edges): Likewise.
21487         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
21488         * jump.c (redirect_jump_2): Likewise.
21489         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
21490         (relax_delay_slots): Likewise.
21491         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
21492         (bbit_di): Likewise.
21493         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
21494         * config/sh/sh.md (jump_compact): Likewise.
21495         * bb-reorder.c (rotate_loop): Likewise.
21496         (pass_duplicate_computed_gotos::execute): Likewise.
21497         (add_reg_crossing_jump_notes): Rename to...
21498         (update_crossing_jump_flags): ...this.
21499         (pass_partition_blocks::execute): Update accordingly.
21501 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21503         * tree.h: Remove extraneous template <>.
21505 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21507         * ipa.c (symtab_remove_unreachable_nodes): Remove
21508         symbol from comdat group if its body was eliminated.
21509         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
21510         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
21511         (symtab_unregister_node): ... this one.
21512         (verify_symtab_base): More strict checking of comdats.
21513         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
21515 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21517         * tree-pass.h (make_pass_ipa_comdats): New pass.
21518         * timevar.def (TV_IPA_COMDATS): New timevar.
21519         * passes.def (pass_ipa_comdats): Add.
21520         * Makefile.in (OBJS): Add ipa-comdats.o
21521         * ipa-comdats.c: New file.
21523 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21525         * ipa.c (update_visibility_by_resolution_info): New function.
21526         (function_and_variable_visibility): Use it.
21528 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21530         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
21531         New functions.
21532         (FOR_EACH_DEFINED_SYMBOL): New macro.
21533         (varpool_first_static_initializer, varpool_next_static_initializer,
21534         varpool_first_defined_variable, varpool_next_defined_variable):
21535         Fix comments.
21536         (symtab_in_same_comdat_p): Correctly deal with inline functions.
21538 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21540         * ggc-page.c (ggc_handle_finalizers): Add comment.
21542 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21544         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
21545         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
21546         (ggc_internal_cleared_alloc): Likewise.
21547         * ggc-page.c (finalizer): New class.
21548         (vec_finalizer): Likewise.
21549         (globals::finalizers): New member.
21550         (globals::vec_finalizers): Likewise.
21551         (ggc_internal_alloc): Record the finalizer if any for the block being
21552         allocated.
21553         (ggc_handle_finalizers): New function.
21554         (ggc_collect): Call ggc_handle_finalizers.
21555         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
21556         finalizer.
21557         (ggc_internal_cleared_alloc): Likewise.
21558         (finalize): New function.
21559         (need_finalization_p): Likewise.
21560         (ggc_alloc): Install the type's destructor as the finalizer if it
21561         might do something.
21562         (ggc_cleared_alloc): Likewise.
21563         (ggc_vec_alloc): Likewise.
21564         (ggc_cleared_vec_alloc): Likewise.
21566 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21568         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
21570 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21572         * alias.c (record_alias_subset): Adjust.
21573         * bitmap.c (bitmap_element_allocate): Likewise.
21574         (bitmap_gc_alloc_stat): Likewise.
21575         * cfg.c (init_flow): Likewise.
21576         (alloc_block): Likewise.
21577         (unchecked_make_edge): Likewise.
21578         * cfgloop.c (alloc_loop): Likewise.
21579         (flow_loops_find): Likewise.
21580         (rescan_loop_exit): Likewise.
21581         * cfgrtl.c (init_rtl_bb_info): Likewise.
21582         * cgraph.c (insert_new_cgraph_node_version): Likewise.
21583         (cgraph_allocate_node): Likewise.
21584         (cgraph_create_edge_1): Likewise.
21585         (cgraph_allocate_init_indirect_info): Likewise.
21586         * cgraphclones.c (cgraph_clone_edge): Likewise.
21587         * cgraphunit.c (add_asm_node): Likewise.
21588         (init_lowered_empty_function): Likewise.
21589         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
21590         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21591         (alpha_use_linkage): Likewise.
21592         * config/arc/arc.c (arc_init_machine_status): Likewise.
21593         * config/arm/arm.c (arm_init_machine_status): Likewise.
21594         * config/avr/avr.c (avr_init_machine_status): Likewise.
21595         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21596         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
21597         * config/cris/cris.c (cris_init_machine_status): Likewise.
21598         * config/darwin.c (machopic_indirection_name): Likewise.
21599         (darwin_build_constant_cfstring): Likewise.
21600         (darwin_enter_string_into_cfstring_table): Likewise.
21601         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
21602         * config/frv/frv.c (frv_init_machine_status): Likewise.
21603         * config/i386/i386.c (get_dllimport_decl): Likewise.
21604         (ix86_init_machine_status): Likewise.
21605         (assign_386_stack_local): Likewise.
21606         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21607         (i386_pe_maybe_record_exported_symbol): Likewise.
21608         (i386_pe_record_stub): Likewise.
21609         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21610         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21611         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21612         (m32c_note_pragma_address): Likewise.
21613         * config/mep/mep.c (mep_init_machine_status): Likewise.
21614         (mep_note_pragma_flag): Likewise.
21615         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21616         (mips16_local_alias): Likewise.
21617         (mips_init_machine_status): Likewise.
21618         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21619         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21620         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
21621         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
21622         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
21623         * config/pa/pa.c (pa_init_machine_status): Likewise.
21624         (pa_get_deferred_plabel): Likewise.
21625         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
21626         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21627         (rs6000_init_machine_status): Likewise.
21628         (output_toc): Likewise.
21629         * config/s390/s390.c (s390_init_machine_status): Likewise.
21630         * config/score/score.c (score_output_external): Likewise.
21631         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21632         * config/spu/spu.c (spu_init_machine_status): Likewise.
21633         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
21634         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
21635         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21636         * coverage.c (coverage_end_function): Likewise.
21637         * dbxout.c (dbxout_init): Likewise.
21638         * doc/gty.texi: Don't mention variable_size attribute.
21639         * dwarf2cfi.c (new_cfi): Adjust.
21640         (new_cfi_row): Likewise.
21641         (copy_cfi_row): Likewise.
21642         (create_cie_data): Likewise.
21643         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
21644         (new_loc_descr): Likewise.
21645         (find_AT_string_in_table): Likewise.
21646         (add_addr_table_entry): Likewise.
21647         (new_die): Likewise.
21648         (add_var_loc_to_decl): Likewise.
21649         (clone_die): Likewise.
21650         (clone_as_declaration): Likewise.
21651         (break_out_comdat_types): Likewise.
21652         (new_loc_list): Likewise.
21653         (add_loc_descr_to_each): Likewise.
21654         (add_location_or_const_value_attribute): Likewise.
21655         (add_linkage_name): Likewise.
21656         (lookup_filename): Likewise.
21657         (dwarf2out_var_location): Likewise.
21658         (new_line_info_table): Likewise.
21659         (dwarf2out_init): Likewise.
21660         (mem_loc_descriptor): Likewise.
21661         (loc_descriptor): Likewise.
21662         (add_const_value_attribute): Likewise.
21663         (tree_add_const_value_attribute): Likewise.
21664         (comp_dir_string): Likewise.
21665         (dwarf2out_vms_debug_main_pointer): Likewise.
21666         (string_cst_pool_decl): Likewise.
21667         * emit-rtl.c (set_mem_attrs): Likewise.
21668         (get_reg_attrs): Likewise.
21669         (start_sequence): Likewise.
21670         (init_emit): Likewise.
21671         (init_emit_regs): Likewise.
21672         * except.c (init_eh_for_function): Likewise.
21673         (gen_eh_region): Likewise.
21674         (gen_eh_region_catch): Likewise.
21675         (gen_eh_landing_pad): Likewise.
21676         (add_call_site): Likewise.
21677         * function.c (add_frame_space): Likewise.
21678         (insert_temp_slot_address): Likewise.
21679         (assign_stack_temp_for_type): Likewise.
21680         (get_hard_reg_initial_val): Likewise.
21681         (allocate_struct_function): Likewise.
21682         (prepare_function_start): Likewise.
21683         (types_used_by_var_decl_insert): Likewise.
21684         * gengtype.c (variable_size_p): Remove function.
21685         (enum alloc_quantity): Remove enum.
21686         (write_typed_alloc_def): Remove function.
21687         (write_typed_struct_alloc_def): Likewise.
21688         (write_typed_typedef_alloc_def): Likewise.
21689         (write_typed_alloc_defns): Likewise.
21690         (main): Adjust.
21691         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
21692         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
21693         * ggc.h (ggc_alloc): new function.
21694         (ggc_cleared_alloc): Likewise.
21695         (ggc_vec_alloc): Template on type of vector element, and remove
21696         element size argument.
21697         (ggc_cleared_vec_alloc): Likewise.
21698         * gimple.c (gimple_build_omp_for): Adjust.
21699         (gimple_copy): Likewise.
21700         * ipa-cp.c (get_replacement_map): Likewise.
21701         (find_aggregate_values_for_callers_subset): Likewise.
21702         (known_aggs_to_agg_replacement_list): Likewise.
21703         * ipa-devirt.c (get_odr_type): Likewise.
21704         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
21705         (read_agg_replacement_chain): Likewise.
21706         * loop-iv.c (get_simple_loop_desc): Likewise.
21707         * lto-cgraph.c (input_node_opt_summary): Likewise.
21708         * lto-section-in.c (lto_new_in_decl_state): Likewise.
21709         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21710         (input_eh_region): Likewise.
21711         (input_eh_lp): Likewise.
21712         (input_cfg): Likewise.
21713         * optabs.c (set_optab_libfunc): Likewise.
21714         (init_tree_optimization_optabs): Likewise.
21715         (set_conv_libfunc): Likewise.
21716         * passes.c (do_per_function_toporder): Likewise.
21717         * rtl.h: Don't use variable_size gty attribute.
21718         * sese.c (if_region_set_false_region): Adjust.
21719         * stringpool.c (gt_pch_save_stringpool): Likewise.
21720         * target-globals.c (save_target_globals): Likewise.
21721         * toplev.c (general_init): Likewise.
21722         * trans-mem.c (record_tm_replacement): Likewise.
21723         (split_bb_make_tm_edge): Likewise.
21724         * tree-cfg.c (move_sese_region_to_fn): Likewise.
21725         * tree-data-ref.h (lambda_vector_new): Likewise.
21726         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
21727         * tree-iterator.c (tsi_link_before): Likewise.
21728         (tsi_link_after): Likewise.
21729         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
21730         * tree-ssa-loop-niter.c (record_estimate): Likewise.
21731         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
21732         * tree-ssa-operands.h: Don't use variable_size gty attribute.
21733         * tree-ssa.c (init_tree_ssa): Adjust.
21734         * tree-ssanames.c (set_range_info): Likewise.
21735         (get_ptr_info): Likewise.
21736         (duplicate_ssa_name_ptr_info): Likewise.
21737         (duplicate_ssa_name_range_info): Likewise.
21738         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
21739         (unpack_ts_fixed_cst_value_fields): Likewise.
21740         * tree.c (build_fixed): Likewise.
21741         (build_real): Likewise.
21742         (build_string): Likewise.
21743         (decl_priority_info): Likewise.
21744         (decl_debug_expr_insert): Likewise.
21745         (decl_value_expr_insert): Likewise.
21746         (decl_debug_args_insert): Likewise.
21747         (type_hash_add): Likewise.
21748         (build_omp_clause): Likewise.
21749         * ubsan.c (decl_for_type_insert): Likewise.
21750         * varasm.c (get_unnamed_section): Likewise.
21751         (get_noswitch_section): Likewise.
21752         (get_section): Likewise.
21753         (get_block_for_section): Likewise.
21754         (create_block_symbol): Likewise.
21755         (build_constant_desc): Likewise.
21756         (create_constant_pool): Likewise.
21757         (force_const_mem): Likewise.
21758         (record_tm_clone_pair): Likewise.
21759         * varpool.c (varpool_create_empty_node): Likewise.
21761 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21763         * dwarf2out.c (tree_add_const_value_attribute): Call
21764         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
21765         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
21766         instead of ggc_internal_<x>alloc_stat.
21767         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
21768         (ggc_realloc): Likewise.
21769         * ggc-none.c (ggc_internal_alloc): Likewise.
21770         (ggc_internal_cleared_alloc): Likewise.
21771         * ggc-page.c: Likewise.
21772         * ggc.h (ggc_internal_alloc_stat): Likewise.
21773         (ggc_internal_alloc): Remove macro.
21774         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
21775         (ggc_internal_cleared_alloc): Remove macro.
21776         (GGC_RESIZEVEC): Adjust.
21777         (ggc_resizevar): Remove macro.
21778         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
21779         (ggc_internal_cleared_vec_alloc_stat): Likewise.
21780         (ggc_internal_vec_cleared_alloc): Remove macro.
21781         (ggc_alloc_atomic_stat): Drop _stat suffix.
21782         (ggc_alloc_atomic): Remove macro.
21783         (ggc_alloc_cleared_atomic): Remove macro.
21784         (ggc_alloc_string_stat): Drop _stat suffix.
21785         (ggc_alloc_string): Remove macro.
21786         (ggc_alloc_rtx_def_stat): Adjust.
21787         (ggc_alloc_tree_node_stat): Likewise.
21788         (ggc_alloc_cleared_tree_node_stat): Likewise.
21789         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
21790         (ggc_alloc_cleared_simd_clone_stat): Likewise.
21791         * gimple.c (gimple_build_omp_for): Likewise.
21792         (gimple_copy): Likewise.
21793         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
21794         * toplev.c (realloc_for_line_map): Adjust.
21795         * tree-data-ref.h (lambda_vector_new): Likewise.
21796         * tree-phinodes.c (allocate_phi_node): Likewise.
21797         * tree.c (grow_tree_vec_stat): Likewise.
21798         * vec.h (va_gc::reserve): Adjust.
21800 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
21802         * config/microblaze/microblaze.c (break_handler): New Declaration.
21803         (microblaze_break_function_p,microblaze_is_break_handler): New.
21804         (compute_frame_size): Use microblaze_break_function_p.
21805         Add the test of break_handler.
21806         (microblaze_function_prologue) : Add the test of variable
21807         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
21808         (microblaze_function_epilogue) : Add the test of break_handler.
21809         (microblaze_globalize_label) : Add the test of break_handler.
21810         Check the name by BREAK_HANDLER_NAME.
21812         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
21814         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
21815         microblaze_is_break_handler test.
21816         (call_internal1,call_value_intern): Use microblaze_break_function_p.
21817         Use SYMBOL_REF_DECL.
21819         * config/microblaze/microblaze-protos.h
21820         (microblaze_break_function_p,microblaze_is_break_handler):
21821         New Declaration.
21823         * doc/extend.texi (MicroBlaze break_handler Functions): Document
21824         new MicroBlaze break_handler functions.
21826 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
21828         * doc/extend.texi (Size of an asm): Move node text according
21829         to its @menu entry position.
21831 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
21833         PR tree-optimization/61140
21834         PR tree-optimization/61150
21835         PR tree-optimization/61197
21836         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
21838 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
21840         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
21842 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
21844         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
21845         __SIZEOF_INT128__ is defined.
21847 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
21849         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
21850         (rs6000_delegitimize_address): Use it.
21852 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
21854         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
21855         inplace argument.  Store the new address in the original MEM when true.
21856         * emit-rtl.c (change_address_1): Likewise.
21857         (adjust_address_1, adjust_automodify_address_1, offset_address):
21858         Update accordingly.
21859         * rtl.h (plus_constant): Add an inplace argument.
21860         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
21861         when true.  Avoid generating (plus X (const_int 0)).
21862         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
21863         in-place.  Pass true to plus_constant.
21864         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
21866 2014-05-16  Dehao Chen  <dehao@google.com>
21868         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
21870 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
21872         PR target/54089
21873         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
21874         patterns.
21875         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
21877 2014-05-16  Dehao Chen  <dehao@google.com>
21879         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
21880         optimize_function_for_size_p.
21881         * regs.h (REG_FREQ_FROM_BB): Likewise.
21883 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
21885         PR target/51244
21886         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
21887         negt_reg_operand cases.
21888         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
21889         predicate.
21890         * config/sh/predicates.md (cbranch_treg_value): Simplify.
21892 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
21894         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
21895         target variants.
21897 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
21899         Revert:
21900         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
21902         * tree-cfg.c (dump_function_to_file): Dump the return type of
21903         functions, in a line to itself before the function body, mimicking
21904         the layout of a C function.
21906 2014-05-16  Dehao Chen  <dehao@google.com>
21908         * cfghooks.c (make_forwarder_block): Use direct computation to
21909         get fall-through edge's count and frequency.
21911 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
21913         * config/arc/arc.c (arc_init): Fix typo in error message.
21914         * config/i386/i386.c (ix86_expand_builtin): Likewise.
21915         (split_stack_prologue_scratch_regno): Likewise.
21916         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
21917         word from error message.
21919 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21921         * ira-costs.c: Fix typo in comment.
21923 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
21925         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
21927 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
21929         * varpool.c (dump_varpool_node): Dump write-only flag.
21930         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
21931         write-only flag.
21932         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
21933         write-only variables.
21934         * ipa.c (process_references): New function.
21935         (set_readonly_bit): New function.
21936         (set_writeonly_bit): New function.
21937         (clear_addressable_bit): New function.
21938         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
21939         fix handling of aliases.
21940         * cgraph.h (struct varpool_node): Add writeonly flag.
21942 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
21944         PR rtl-optimization/60969
21945         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
21946         Calculate costs for this case.
21948 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
21950         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
21951         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
21953 2014-05-16  Richard Biener  <rguenther@suse.de>
21955         PR tree-optimization/61194
21956         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
21957         bool patterns ending in a COND_EXPR.
21959 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21961         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
21963 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21965         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
21966         where we were unable to cost an RTX.
21968 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21970         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
21971         HIGH, LO_SUM.
21973 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21974             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21976         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
21978 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21979             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21981         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
21982         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
21984 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21985             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21987         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
21988         operators.
21990 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21991             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21993         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
21994         DIV/MOD.
21996 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21997             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21999         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
22000         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
22002 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22003             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22005         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22006         rotates and shifts.
22008 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22009             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22011         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
22012         ZERO_EXTEND and SIGN_EXTEND better.
22014 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22015             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22017         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
22018         logical operations.
22020 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22021             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22023         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
22024         costs when costing loads and stores to memory.
22026 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22027             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
22029         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
22030         for SET RTX.
22032 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22034         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
22036 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22037             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22039         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
22040         to...
22041         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
22042         well formed.
22043         (aarch64_rtx_mult_cost): New.
22044         (aarch64_rtx_costs): Use it, refactor as appropriate.
22046 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22047             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22049         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
22050         emit instructions, return number of instructions which would
22051         be emitted.
22052         (aarch64_add_constant): Update call to aarch64_build_constant.
22053         (aarch64_output_mi_thunk): Likewise.
22054         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
22055         a CONST_DOUBLE.
22057 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22059         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
22060         (TARGET_RTX_COSTS): Call it.
22062 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22064         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
22065         (cortexa57_vector_cost): Likewise.
22066         (cortexa57_tunings): Use them.
22068 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22070         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
22071         (cpu_addrcost_table): Use it.
22072         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
22073         (aarch64_address_cost): Rewrite using aarch64_classify_address,
22074         move it.
22076 2014-05-16  Richard Biener  <rguenther@suse.de>
22078         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
22079         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
22080         (visit_phi): Ignore edges marked as not executable.
22081         (class cond_dom_walker): New.
22082         (cond_dom_walker::before_dom_children): Value-number
22083         control statements and mark successor edges as not
22084         executable if possible.
22085         (run_scc_vn): First walk all control statements in
22086         dominator order, marking edges as not executable.
22087         * tree-inline.c (copy_edges_for_bb): Be not confused
22088         about random edge flags.
22090 2014-05-16  Richard Biener  <rguenther@suse.de>
22092         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
22094 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
22096         PR target/61193
22097         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
22098         (__TM_simple_begin): Use it.
22099         (__TM_begin): Likewise.
22101 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22103         PR ipa/61085
22104         * ipa-prop.c (update_indirect_edges_after_inlining): Check
22105         type_preserved flag when the indirect edge is polymorphic.
22107 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22109         PR tree-optimization/61090
22110         * tree-sra.c (sra_modify_expr): Pass the current gsi to
22111         build_ref_for_model.
22113 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22115         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
22116         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
22118 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
22120         PR tree-optimization/61158
22121         * fold-const.c (fold_binary_loc): If X is zero-extended and
22122         shiftc >= prec, make sure zerobits is all ones instead of
22123         invoking undefined behavior.
22125 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22127         * regcprop.h: New file.
22128         * regcprop.c (skip_debug_insn_p): New decl.
22129         (replace_oldest_value_reg): Check skip_debug_insn_p.
22130         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
22131         * shrink-wrap.c: Include regcprop.h.
22132         (prepare_shrink_wrap): Call
22133         copyprop_hardreg_forward_bb_without_debug_insn.
22135 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22137         * shrink-wrap.h: Update comment.
22138         * shrink-wrap.c: Update comment.
22139         (next_block_for_reg): Rename to live_edge_for_reg.
22140         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
22141         (move_insn_for_shrink_wrap): Split live_edge.
22142         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
22144 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22146         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
22147         Delete.
22148         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
22149         * config/sparc/sparc.md (fptype_ut699): New attribute.
22150         (in_branch_delay): Return false if -mfix-ut699 is specified and
22151         fptype_ut699 is set to single.
22152         (truncdfsf2): Add fptype_ut699 attribute.
22153         (fix_truncdfsi2): Likewise.
22154         (floatsisf2): Change fptype attribute.
22155         (fix_truncsfsi2): Likewise.
22156         (negtf2_notv9): Delete.
22157         (negtf2_v9): Likewise.
22158         (negtf2_hq): New instruction.
22159         (negtf2): New instruction and splitter.
22160         (negdf2_notv9): Rewrite.
22161         (abstf2_notv9): Delete.
22162         (abstf2_hq_v9): Likewise.
22163         (abstf2_v9): Likewise.
22164         (abstf2_hq): New instruction.
22165         (abstf2): New instruction and splitter.
22166         (absdf2_notv9): Rewrite.
22168 2014-05-14  Cary Coutant  <ccoutant@google.com>
22170         PR debug/61013
22171         * opts.c (common_handle_option): Don't special-case "-g".
22172         (set_debug_level): Default to at least level 2 with "-g".
22174 2014-05-14  DJ Delorie  <dj@redhat.com>
22176         * config/msp430/msp430.c (msp430_builtin): Add
22177         MSP430_BUILTIN_DELAY_CYCLES.
22178         (msp430_init_builtins): Register void __delay_cycles(long long).
22179         (msp430_builtin_decl): Add it.
22180         (cg_magic_constant): New.
22181         (msp430_expand_delay_cycles): New.
22182         (msp430_expand_builtin): Call it.
22183         (msp430_print_operand_raw): Change integer printing from "int" to
22184         HOST_WIDE_INT.
22185         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
22186         (delay_cycles_start): New.
22187         (delay_cycles_end): New.
22188         (delay_cycles_32): New.
22189         (delay_cycles_32x): New.
22190         (delay_cycles_16): New.
22191         (delay_cycles_16x): New.
22192         (delay_cycles_2): New.
22193         (delay_cycles_1): New.
22194         * doc/extend.texi: Document __delay_cycles().
22196 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
22198         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
22199         length attribute computation.
22201 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
22203         PR debug/61188
22204         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
22206 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
22208         PR target/61084
22209         * config/sparc/sparc.md: Fix types of low and high in DI constant
22210         splitter.  Use gen_int_mode in some other splitters.
22212 2014-05-14  Martin Jambor  <mjambor@suse.cz>
22214         PR ipa/60897
22215         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22217 2014-05-14  James Norris  <jnorris@codesourcery.com>
22219         * omp-low.c (expand_parallel_call): Remove shadow variable.
22220         (expand_omp_taskreg): Likewise.
22222 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
22224         * common/config/i386/i386-common.c
22225         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22226         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22227         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22228         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
22229         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
22230         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
22231         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
22232         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
22233         xsavecintrin.h, xsavesintrin.h.
22234         (x86_64-*-*): Ditto.
22235         * config/i386/clflushoptintrin.h: New.
22236         * config/i386/xsavecintrin.h: Ditto.
22237         * config/i386/xsavesintrin.h: Ditto.
22238         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
22239         (bit_XSAVES): Ditto.
22240         (bit_XSAVES): Ditto.
22241         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22242         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
22243         -mno-clflushopt.
22244         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22245         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
22246         OPTION_MASK_ISA_XSAVES.
22247         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
22248         -mxsavec, -mxsaves.
22249         (PTA_CLFLUSHOPT) Define.
22250         (PTA_XSAVEC): Ditto.
22251         (PTA_XSAVES): Ditto.
22252         (ix86_option_override_internal): Handle new options.
22253         (ix86_valid_target_attribute_inner_p): Ditto.
22254         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
22255         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
22256         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
22257         (bdesc_special_args): Add __builtin_ia32_xsaves,
22258         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
22259         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
22260         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
22261         (ix86_expand_builtin): Handle new builtins.
22262         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
22263         (TARGET_CLFLUSHOPT_P): Ditto.
22264         (TARGET_XSAVEC): Ditto.
22265         (TARGET_XSAVEC_P): Ditto.
22266         (TARGET_XSAVES): Ditto.
22267         (TARGET_XSAVES_P): Ditto.
22268         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
22269         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
22270         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
22271         (ANY_XRSTOR): New.
22272         (ANY_XRSTOR64): Ditto.
22273         (xrstor): Ditto.
22274         (xrstor): Change into <xrstor>.
22275         (xrstor_rex64): Change into <xrstor>_rex64.
22276         (xrstor64): Change into <xrstor>64
22277         (clflushopt): New.
22278         * config/i386/i386.opt (mclflushopt): New.
22279         (mxsavec): Ditto.
22280         (mxsaves): Ditto.
22281         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
22282         xsavecintrin.h.
22283         * doc/invoke.texi: Document new options.
22285 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
22287         PR rtl-optimization/60866
22288         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
22289         Default it to -1.  Pass it down to init_simplejump_data.
22290         (init_simplejump_data): New parameter old_seqno.  Pass it down
22291         to get_seqno_for_a_jump.
22292         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
22293         initializing new jump seqno as a last resort.  Add comment.
22294         (sel_redirect_edge_and_branch): Save old seqno of the conditional
22295         jump and pass it down to sel_init_new_insn.
22296         (sel_redirect_edge_and_branch_force): Likewise.
22298 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
22300         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
22301         shifted values to avoid build warning.
22303 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22305         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
22306         * cfgrtl.c (rtl_merge_blocks): Fix comment.
22307         (cfg_layout_merge_blocks): Likewise.
22308         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
22310 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
22312         PR rtl-optimization/60901
22313         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
22314         bb predecessor belongs to the same scheduling region.  Adjust comment.
22316 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
22318         * doc/sourcebuild.texi: (dfp_hw): Document.
22319         (p8vector_hw): Likewise.
22320         (powerpc_eabi_ok): Likewise.
22321         (powerpc_elfv2): Likewise.
22322         (powerpc_htm_ok): Likewise.
22323         (ppc_recip_hw): Likewise.
22324         (vsx_hw): Likewise.
22326 2014-05-13  Cary Coutant  <ccoutant@google.com>
22328         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
22330 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
22332         * gengtype-parse.c (require3): Eliminate in favor of...
22333         (require4): New.
22334         (require_template_declaration): Update to support optional single *
22335         on a type.
22337         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
22338         (create_user_defined_type): Handle a single level of explicit
22339         pointerness within template arguments.
22340         (struct write_types_data): Add field "kind".
22341         (filter_type_name): Handle "*" character.
22342         (write_user_func_for_structure_ptr): Require a write_types_data
22343         rather than just a prefix string, so that we can look up the kind
22344         of the wtd and use it as an index into wrote_user_func_for_ptr,
22345         ensuring that such functions are written at most once.  Support
22346         subclasses by invoking the marking function of the ultimate base class.
22347         (write_user_func_for_structure_body): Require a write_types_data
22348         rather than just a prefix string, so that we can pass this to
22349         write_user_func_for_structure_ptr.
22350         (write_func_for_structure): Likewise.
22351         (ggc_wtd): Add initializer of new "kind" field.
22352         (pch_wtd): Likewise.
22354         * gengtype.h (enum write_types_kinds): New.
22355         (struct type): Add field wrote_user_func_for_ptr to the "s"
22356         union member.
22358 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
22360         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
22361         instead of const_binop.
22362         (fold_binary_loc): Likewise.
22364 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
22366         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
22367         calculation to match get_ref_base_and_extent.
22369 2014-05-13  Catherine Moore  <clm@codesourcery.com>
22370             Sandra Loosemore  <sandra@codesourcery.com>
22372         * configure.ac: Fix assembly for explicit JALR relocation check.
22373         * configure: Regenerate.
22375 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22377         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
22378         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
22379         Remove associated type declarations and initialisations.
22380         (arm_expand_neon_builtin): Likewise.
22381         (neon_emit_pair_result_insn): Delete.
22382         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
22383         * config/arm/neon.md (neon_vtrn<mode>): Delete.
22384         (neon_vzip<mode>): Likewise.
22385         (neon_vuzp<mode>): Likewise.
22387 2014-05-13  Richard Biener  <rguenther@suse.de>
22389         PR ipa/60973
22390         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
22391         it needs revisiting whether the call still may be tail-called.
22393 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22395         * rtl.def (SYMBOL_REF): Remove middle "0" field.
22396         * rtl.h (block_symbol): Reduce number of fields to 2.
22397         (rtx_def): Add u2.symbol_ref_flags.
22398         (SYMBOL_REF_FLAGS): Use it.
22399         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
22400         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
22401         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
22402         Lower index of SYMBOL_REF_DATA.
22403         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
22404         Print SYMBOL_REF_FLAGS at the same time.
22405         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
22407 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22409         * rtl.def (VAR_LOCATION): Remove "i" field.
22410         * rtl.h (rtx_def): Add u2.var_location_status.
22411         (PAT_VAR_LOCATION_STATUS): Use it.
22412         (gen_rtx_VAR_LOCATION): Declare.
22413         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
22414         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
22415         * var-tracking.c (emit_note_insn_var_location): Remove casts.
22417 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22419         * rtl.def (scratch): Fix outdated comment and remove "0" field.
22420         * gengtype.c (adjust_field_rtx_def): Update accordingly.
22422 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22424         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
22425         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
22426         * rtl.h (rtx_def): Add insn_uid to u2 field.
22427         (RTX_FLAG_CHECK8): Delete in favor of...
22428         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
22429         (INSN_DELETED_P): Update accordingly.
22430         (INSN_UID): Use u2.insn_uid.
22431         (INSN_CHAIN_CODE_P): Define.
22432         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
22433         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
22434         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
22435         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
22436         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
22437         indices accordingly.
22438         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
22439         Update indices for insn-chain rtxes.
22440         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
22441         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
22442         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
22443         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
22444         * combine.c (try_combine): Likewise.
22445         * ira.c (setup_prohibited_mode_move_regs): Likewise.
22447 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22449         * rtl.def (REG): Remove middle field.
22450         * rtl.h (rtx_def): Add orignal_regno to u2.
22451         (ORIGINAL_REGNO): Use it instead of field 1.
22452         (REG_ATTRS): Lower field index accordingly.
22453         * gengtype.c (adjust_field_rtx_def): Remove handling of
22454         ORIGINAL_REGNO.  Move REG_ATTRS index down.
22455         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
22456         code that prints the REGNO.
22458 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22460         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
22461         GENERATOR_FILE.
22463 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22465         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
22467 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
22469         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
22470         (alloc_iv): Lower base expressions containing ADDR_EXPR.
22472 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
22474         * config/aarch64/aarch64-protos.h
22475         (aarch64_hard_regno_caller_save_mode): New prototype.
22476         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
22477         New function.
22478         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
22480 2014-05-13  Christian Bruel  <christian.bruel@st.com>
22482         * target.def (mode_switching): New hook vector.
22483         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
22484         (mode_exit, modepriority_to_mode): Likewise.
22485         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
22486         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22487         * target.h: Include tm.h and hard-reg-set.h.
22488         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
22489         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
22490         * doc/tm.texi Regenerate.
22491         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22492         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22493         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
22494         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
22495         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22496         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22497         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
22498         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
22499         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
22500         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
22501         (ix86_emit_mode_set): Hookify.
22502         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
22503         Delete.
22504         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22505         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
22506         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
22507         (epiphany_mode_priority_to_mode): Remove declaration.
22508         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
22509         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
22510         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
22511         Likewise.
22512         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
22513         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
22514         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
22516 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
22518         PR target/61060
22519         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
22520         is const0_rtx, return immediately.  Don't test count == 0 when
22521         it is always true.
22523 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22525         * Makefile.in: add shrink-wrap.o.
22526         * config/i386/i386.c: include "shrink-wrap.h"
22527         * function.c: Likewise.
22528         (requires_stack_frame_p, next_block_for_reg,
22529         move_insn_for_shrink_wrap, prepare_shrink_wrap,
22530         dup_block_and_redirect): Move to shrink-wrap.c
22531         (thread_prologue_and_epilogue_insns): Extract three code segments
22532         as functions in shrink-wrap.c
22533         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
22534         shrink-wrap.h
22535         * shrink-wrap.c: New file.
22536         * shrink-wrap.h: New file.
22538 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
22540         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
22541         reference to Solaris.
22543 2014-05-12  Mike Stump  <mikestump@comcast.net>
22545         PR other/31778
22546         * genattrtab.c (filename): Add.
22547         (convert_set_attr_alternative): Improve error message.
22548         (check_defs): Restore read_md_filename for error messages.
22549         (gen_insn): Save filename.
22551 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
22553         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
22554         -fno-local-ivars and -fivar-visibility.
22555         * c-family/c.opt: Make -Wshadow also implicitly enable
22556         -Wshadow-ivar.
22558 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
22560         * doc/tm.texi: Remove reference to deleted macro.
22561         * doc/tm.texi.in: Likewise.
22563 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22565         PR target/60991
22566         * config/avr/avr.c (avr_out_store_psi): Use correct constant
22567         to restore Y.
22569 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
22571         PR libgcc/61152
22572         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
22573         * config/arm/aout.h (License): Same.
22574         * config/arm/bpabi.h (License): Same.
22575         * config/arm/elf.h (License): Same.
22576         * config/arm/linux-elf.h (License): Same.
22577         * config/arm/linux-gas.h (License): Same.
22578         * config/arm/netbsd-elf.h (License): Same.
22579         * config/arm/uclinux-eabi.h (License): Same.
22580         * config/arm/uclinux-elf.h (License): Same.
22581         * config/arm/vxworks.h (License): Same.
22583 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
22585         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
22586         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
22587         number of operands to 3.
22588         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
22589         * tree-nested.c (convert_nonlocal_omp_clauses,
22590         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
22591         * gimplify.c (gimplify_scan_omp_clauses): Handle
22592         OMP_CLAUSE_LINEAR_STMT.
22593         * omp-low.c (lower_rec_input_clauses): Fix typo.
22594         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
22595         cast between Fortran boolean_type_node and C _Bool if
22596         needed.
22598 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
22600         PR tree-optimization/61136
22601         * wide-int.h (multiple_of_p): Define a version that doesn't return
22602         the quotient.
22603         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
22604         integer_zerop/const_binop pair.
22605         (multiple_of_p): Likewise, converting both operands to widest_int
22606         precision.
22608 2014-05-09  Teresa Johnson  <tejohnson@google.com>
22610         * cgraphunit.c (analyze_functions): Use correct dump file.
22612 2014-05-09  Florian Weimer  <fweimer@redhat.com>
22614         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
22615         expand_used_vars.
22616         (stack_protect_return_slot_p): New function.
22617         (expand_used_vars): Call stack_protect_decl_p and
22618         stack_protect_return_slot_p for -fstack-protector-strong.
22620 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
22621         Andrew Haley <aph@redhat.com>
22622         Richard Sandiford <rdsandiford@googlemail.com>
22624         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
22625         pages.
22627 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
22629         PR middle-end/61111
22630         * fold-const.c (fold_binary_loc): Changed width of mask.
22632 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
22634         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
22635         unsigned int initializers for regno_in, regno_out.
22637 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
22639         PR target/61055
22640         * config/avr/avr.md (cc): Add new attribute set_vzn.
22641         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
22642         Set cc insn attribute to set_vzn instead of set_zn for alternatives
22643         with INC, DEC or NEG.
22644         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
22645         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
22646         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
22648 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22650         Revert:
22651         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22653         * wide-int.cc (UTItype): Define.
22654         (UDWtype): Define for appropriate W_TYPE_SIZE.
22656 2014-05-09  Richard Biener  <rguenther@suse.de>
22658         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
22659         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
22660         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
22661         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
22662         ssa_propagate): Adjust.
22664 2014-05-08  Jeff Law  <law@redhat.com>
22666         PR tree-optimization/61009
22667         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
22668         tri-state rather than a boolean.  When a block is too big to
22669         thread through, inform caller via negative return value.
22670         (thread_across_edge): If a block was too big for normal threading,
22671         then it's too big for a joiner too, so remove temporary equivalences
22672         and return immediately.
22674 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22675             Matthias Klose  <doko@ubuntu.com>
22677         PR driver/61106
22678         * optc-gen.awk: Fix option handling for -Wunused-parameter.
22680 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
22682         PR target/59952
22683         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
22685 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
22687         PR target/61092
22688         * config/alpha/alpha.c: Include gimple-iterator.h.
22689         (alpha_gimple_fold_builtin): New function.  Move
22690         ALPHA_BUILTIN_UMULH folding from ...
22691         (alpha_fold_builtin): ... here.
22692         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
22694 2014-05-08  Wei Mi  <wmi@google.com>
22696         PR target/58066
22697         * config/i386/i386.c (ix86_compute_frame_layout): Update
22698         preferred_stack_boundary for call, expanded from tls descriptor.
22699         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
22700         to depend on SP register.
22701         (*tls_local_dynamic_base_32_gnu): Ditto.
22702         (*tls_local_dynamic_32_once): Ditto.
22703         (tls_global_dynamic_64_<mode>): Set
22704         ix86_tls_descriptor_calls_expanded_in_cfun.
22705         (tls_local_dynamic_base_64_<mode>): Ditto.
22706         (tls_global_dynamic_32): Set
22707         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
22708         to depend on SP register.
22709         (tls_local_dynamic_base_32): Ditto.
22711 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22713         * config/arm/arm_neon.h: Update comment.
22714         * config/arm/neon-docgen.ml: Delete.
22715         * config/arm/neon-gen.ml: Delete.
22716         * doc/arm-neon-intrinsics.texi: Update comment.
22718 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22720         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
22721         and v4sf versions.
22722         (vand, vorr, veor, vorn, vbic): Remove.
22723         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
22724         iterator.
22725         (neon_vsub_unspec): Likewise.
22726         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
22728 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22730         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
22731         (vadd_s16): Likewise.
22732         (vadd_s32): Likewise.
22733         (vadd_f32): Likewise.
22734         (vadd_u8): Likewise.
22735         (vadd_u16): Likewise.
22736         (vadd_u32): Likewise.
22737         (vadd_s64): Likewise.
22738         (vadd_u64): Likewise.
22739         (vaddq_s8): Likewise.
22740         (vaddq_s16): Likewise.
22741         (vaddq_s32): Likewise.
22742         (vaddq_s64): Likewise.
22743         (vaddq_f32): Likewise.
22744         (vaddq_u8): Likewise.
22745         (vaddq_u16): Likewise.
22746         (vaddq_u32): Likewise.
22747         (vaddq_u64): Likewise.
22748         (vmul_s8): Likewise.
22749         (vmul_s16): Likewise.
22750         (vmul_s32): Likewise.
22751         (vmul_f32): Likewise.
22752         (vmul_u8): Likewise.
22753         (vmul_u16): Likewise.
22754         (vmul_u32): Likewise.
22755         (vmul_p8): Likewise.
22756         (vmulq_s8): Likewise.
22757         (vmulq_s16): Likewise.
22758         (vmulq_s32): Likewise.
22759         (vmulq_f32): Likewise.
22760         (vmulq_u8): Likewise.
22761         (vmulq_u16): Likewise.
22762         (vmulq_u32): Likewise.
22763         (vsub_s8): Likewise.
22764         (vsub_s16): Likewise.
22765         (vsub_s32): Likewise.
22766         (vsub_f32): Likewise.
22767         (vsub_u8): Likewise.
22768         (vsub_u16): Likewise.
22769         (vsub_u32): Likewise.
22770         (vsub_s64): Likewise.
22771         (vsub_u64): Likewise.
22772         (vsubq_s8): Likewise.
22773         (vsubq_s16): Likewise.
22774         (vsubq_s32): Likewise.
22775         (vsubq_s64): Likewise.
22776         (vsubq_f32): Likewise.
22777         (vsubq_u8): Likewise.
22778         (vsubq_u16): Likewise.
22779         (vsubq_u32): Likewise.
22780         (vsubq_u64): Likewise.
22781         (vand_s8): Likewise.
22782         (vand_s16): Likewise.
22783         (vand_s32): Likewise.
22784         (vand_u8): Likewise.
22785         (vand_u16): Likewise.
22786         (vand_u32): Likewise.
22787         (vand_s64): Likewise.
22788         (vand_u64): Likewise.
22789         (vandq_s8): Likewise.
22790         (vandq_s16): Likewise.
22791         (vandq_s32): Likewise.
22792         (vandq_s64): Likewise.
22793         (vandq_u8): Likewise.
22794         (vandq_u16): Likewise.
22795         (vandq_u32): Likewise.
22796         (vandq_u64): Likewise.
22797         (vorr_s8): Likewise.
22798         (vorr_s16): Likewise.
22799         (vorr_s32): Likewise.
22800         (vorr_u8): Likewise.
22801         (vorr_u16): Likewise.
22802         (vorr_u32): Likewise.
22803         (vorr_s64): Likewise.
22804         (vorr_u64): Likewise.
22805         (vorrq_s8): Likewise.
22806         (vorrq_s16): Likewise.
22807         (vorrq_s32): Likewise.
22808         (vorrq_s64): Likewise.
22809         (vorrq_u8): Likewise.
22810         (vorrq_u16): Likewise.
22811         (vorrq_u32): Likewise.
22812         (vorrq_u64): Likewise.
22813         (veor_s8): Likewise.
22814         (veor_s16): Likewise.
22815         (veor_s32): Likewise.
22816         (veor_u8): Likewise.
22817         (veor_u16): Likewise.
22818         (veor_u32): Likewise.
22819         (veor_s64): Likewise.
22820         (veor_u64): Likewise.
22821         (veorq_s8): Likewise.
22822         (veorq_s16): Likewise.
22823         (veorq_s32): Likewise.
22824         (veorq_s64): Likewise.
22825         (veorq_u8): Likewise.
22826         (veorq_u16): Likewise.
22827         (veorq_u32): Likewise.
22828         (veorq_u64): Likewise.
22829         (vbic_s8): Likewise.
22830         (vbic_s16): Likewise.
22831         (vbic_s32): Likewise.
22832         (vbic_u8): Likewise.
22833         (vbic_u16): Likewise.
22834         (vbic_u32): Likewise.
22835         (vbic_s64): Likewise.
22836         (vbic_u64): Likewise.
22837         (vbicq_s8): Likewise.
22838         (vbicq_s16): Likewise.
22839         (vbicq_s32): Likewise.
22840         (vbicq_s64): Likewise.
22841         (vbicq_u8): Likewise.
22842         (vbicq_u16): Likewise.
22843         (vbicq_u32): Likewise.
22844         (vbicq_u64): Likewise.
22845         (vorn_s8): Likewise.
22846         (vorn_s16): Likewise.
22847         (vorn_s32): Likewise.
22848         (vorn_u8): Likewise.
22849         (vorn_u16): Likewise.
22850         (vorn_u32): Likewise.
22851         (vorn_s64): Likewise.
22852         (vorn_u64): Likewise.
22853         (vornq_s8): Likewise.
22854         (vornq_s16): Likewise.
22855         (vornq_s32): Likewise.
22856         (vornq_s64): Likewise.
22857         (vornq_u8): Likewise.
22858         (vornq_u16): Likewise.
22859         (vornq_u32): Likewise.
22860         (vornq_u64): Likewise.
22862 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22864         * wide-int.cc (UTItype): Define.
22865         (UDWtype): Define for appropriate W_TYPE_SIZE.
22867 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
22869         PR tree-optimization/59100
22870         * tree-ssa-phiopt.c: Include tree-inline.h.
22871         (neutral_element_p, absorbing_element_p): New functions.
22872         (value_replacement): Handle conditional binary operations with a
22873         neutral or absorbing element.
22875 2014-05-08  Richard Biener  <rguenther@suse.de>
22877         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
22878         folding the expression.
22879         (valueize_expr): Remove.
22880         (visit_reference_op_load): Do not valueize the result of
22881         vn_get_expr_for.
22882         (simplify_binary_expression): Likewise.
22883         (simplify_unary_expression): Likewise.
22885 2014-05-08  Richard Biener  <rguenther@suse.de>
22887         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
22888         looking at TYPE_ARG_TYPES.
22890 2014-05-08  Richard Biener  <rguenther@suse.de>
22892         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
22893         pointer propagation special-case.
22895 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
22897         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
22898         core part of address expressions.
22900 2014-05-08  Alan Modra  <amodra@gmail.com>
22902         PR target/60737
22903         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
22904         loads and stores when -mno-strict-align at any alignment.
22905         (expand_block_clear): Similarly.  Also correct calculation of
22906         instruction count.
22908 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22910         PR middle-end/39246
22911         * tree-complex.c (expand_complex_move): Keep line info when expanding
22912         complex move.
22913         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
22914         of complex expression. Use new argument to display correct location
22915         for values coming from phi statement.
22916         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
22917         (warn_uninitialized_phi): Pass location of phi argument to
22918         warn_uninit.
22919         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
22920         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
22922 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
22924         * config/rs6000/predicates.md (indexed_address_mem): New.
22925         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
22926         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
22927         fpstore_ux, fpstore_u.
22928         (sign_extend, indexed, update): New.
22929         (cell_micro): Adjust.
22930         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
22931         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
22932         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
22933         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
22934         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
22935         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
22936         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
22937         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
22938         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
22939         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
22940         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
22941         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
22942         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
22943         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
22944         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
22946         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
22947         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
22948         *vsx_extract_<mode>_store): Adjust.
22949         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
22950         is_cracked_insn, insn_must_be_first_in_group,
22951         insn_must_be_last_in_group): Adjust.
22953         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
22954         Adjust.
22955         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
22956         ppc440-fpstore): Adjust.
22957         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
22958         ppc476-fpstore): Adjust.
22959         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
22960         ppc601-fpstore): Adjust.
22961         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
22962         Adjust.
22963         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
22964         Adjust.
22965         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
22966         ppc7450-fpstore): Adjust.
22967         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
22968         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
22969         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
22970         Adjust.
22971         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
22972         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
22973         cell-fpstore, cell-fpstore-update): Adjust.
22974         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
22975         ppce300c3_store, ppce300c3_fpstore): Adjust.
22976         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
22977         e500mc_fpstore): Adjust.
22978         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
22979         e500mc64_store, e500mc64_fpstore): Adjust.
22980         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
22981         e5500_fpstore): Adjust.
22982         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
22983         e6500_fpstore): Adjust.
22984         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
22985         Adjust.
22986         * config/rs6000/power4.md (power4-load, power4-load-ext,
22987         power4-load-ext-update, power4-load-ext-update-indexed,
22988         power4-load-update-indexed, power4-load-update, power4-fpload,
22989         power4-fpload-update, power4-store, power4-store-update,
22990         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
22991         Adjust.
22992         * config/rs6000/power5.md (power5-load, power5-load-ext,
22993         power5-load-ext-update, power5-load-ext-update-indexed,
22994         power5-load-update-indexed, power5-load-update, power5-fpload,
22995         power5-fpload-update, power5-store, power5-store-update,
22996         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
22997         Adjust.
22998         * config/rs6000/power6.md (power6-load, power6-load-ext,
22999         power6-load-update, power6-load-update-indexed,
23000         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
23001         power6-fpload-update, power6-store, power6-store-update,
23002         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
23003         Adjust.
23004         * config/rs6000/power7.md (power7-load, power7-load-ext,
23005         power7-load-update, power7-load-update-indexed,
23006         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
23007         power7-fpload-update, power7-store, power7-store-update,
23008         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
23009         Adjust.
23010         * config/rs6000/power8.md (power8-load, power8-load-update,
23011         power8-load-ext, power8-load-ext-update, power8-fpload,
23012         power8-fpload-update, power8-store, power8-store-update-indexed,
23013         power8-fpstore, power8-fpstore-update): Adjust.
23014         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
23015         Adjust.
23016         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
23017         titan_lsu_store, titan_lsu_fpstore): Adjust.
23018         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
23020 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
23022         PR target/60884
23023         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
23024         unrolled byte insns.  Emit address increments after move insns.
23026 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
23028         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
23029         const_gimple, rather than a gimple.
23030         (gimple_call_builtin_p): Likewise, for the three variants.
23032         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
23033         (gimple_call_builtin_p): Likewise, for the three variants.
23035 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23037         PR tree-optimization/61095
23038         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
23040 2014-05-07  Richard Biener  <rguenther@suse.de>
23042         PR tree-optimization/61034
23043         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
23044         (maybe_skip_until): Use translate to take into account
23045         lattices when trying to do disambiguations.
23046         (get_continuation_for_phi_1): Likewise.
23047         (get_continuation_for_phi): Adjust for added translate arguments.
23048         (walk_non_aliased_vuses): Likewise.
23049         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
23050         (walk_non_aliased_vuses): Likewise.
23051         (call_may_clobber_ref_p_1): Declare.
23052         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
23053         calls.  Stop early if we are only supposed to disambiguate.
23054         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
23056 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
23058         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
23059         Emit an error when the function has arguments.
23061 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23063         * cfgloop.h (unswitch_loops): Remove.
23064         * doc/passes.texi: Remove references to loop-unswitch.c
23065         * timevar.def (TV_LOOP_UNSWITCH): Remove.
23067 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
23069         * tree-vect-data-refs.c (vect_grouped_load_supported): New
23070         check for loads group of length 3.
23071         (vect_permute_load_chain): New permutations for loads group of
23072         length 3.
23073         * tree-vect-stmts.c (vect_model_load_cost): Change cost
23074         of vec_perm_shuffle for the new permutations.
23076 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
23078         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
23079         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
23080         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
23081         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
23082         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
23083         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
23084         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
23085         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
23087 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23089         * loop-unswitch.c: Delete.
23091 2014-05-07  Richard Biener  <rguenther@suse.de>
23093         * config.gcc: Always set need_64bit_hwint to yes.
23095 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
23097         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
23098         of using optimize_size.
23100 2014-05-06  Mike Stump  <mikestump@comcast.net>
23102         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
23104 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
23106         * config/i386/sse.md (*mov<mode>_internal)
23107         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
23108         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
23109         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
23110         (*<code><mode>3, *andnot<mode>3<mask_name>)
23111         (<mask_codefor><code><mode>3<mask_name>): Only consider
23112         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
23114 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23116         Revert:
23117         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
23119         * lra-constraints.c (valid_address_p): Move earlier in file.
23120         Add a constraint argument to the address_info version.
23121         (satisfies_memory_constraint_p): New function.
23122         (satisfies_address_constraint_p): Likewise.
23123         (process_alt_operands, curr_insn_transform): Use them.
23124         (process_address): Pass the constraint to valid_address_p when
23125         checking address operands.
23127 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
23129         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
23130         to their respective blocks.  Fix inadvertent use of "node".
23132 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23134         * emit-rtl.c (init_derived_machine_modes): New functionm, split
23135         out from...
23136         (init_emit_once): ...here.
23137         * rtl.h (init_derived_machine_modes): Declare.
23138         * toplev.c (do_compile): Call it even if no_backend.
23140 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
23141             Mike Stump  <mikestump@comcast.net>
23142             Richard Sandiford  <rdsandiford@googlemail.com>
23143             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23145         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
23146         (rtx_equal_for_memref_p): Update comment.
23147         (adjust_offset_for_component_ref): Use wide-int interfaces.
23148         * builtins.c (get_object_alignment_2): Likewise.
23149         (c_readstr): Likewise.
23150         (target_char_cast): Add comment.
23151         (determine_block_size): Use wide-int interfaces.
23152         (expand_builtin_signbit): Likewise.
23153         (fold_builtin_int_roundingfn): Likewise.
23154         (fold_builtin_bitop): Likewise.
23155         (fold_builtin_bswap): Likewise.
23156         (fold_builtin_logarithm): Use signop.
23157         (fold_builtin_pow): Likewise.
23158         (fold_builtin_memory_op): Use wide-int interfaces.
23159         (fold_builtin_object_size): Likewise.
23160         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
23161         nb_iterations_estimate.
23162         (record_niter_bound): Use wide-int interfaces.
23163         (get_estimated_loop_iterations_int): Likewise.
23164         (get_estimated_loop_iterations): Likewise.
23165         (get_max_loop_iterations): Likewise.
23166         * cfgloop.h: Include wide-int.h.
23167         (struct nb_iter_bound): Change bound to widest_int.
23168         (struct loop): Change nb_iterations_upper_bound and
23169         nb_iterations_estimate to widest_int.
23170         (record_niter_bound): Switch to use widest_int.
23171         (get_estimated_loop_iterations): Likewise.
23172         (get_max_loop_iterations): Likewise.
23173         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
23174         update for wide-int.
23175         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
23176         * combine.c (try_combine): Likewise.
23177         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
23178         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
23179         interfaces.
23180         (aarch64_float_const_representable_p): Likewise.
23181         * config/arc/arc.c: Include wide-int.h.
23182         (arc_can_use_doloop_p): Use wide-int interfaces.
23183         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
23184         (vfp3_const_double_index): Likewise.
23185         * config/avr/avr.c (avr_out_round): Likewise.
23186         (avr_fold_builtin): Likewise.
23187         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
23188         (bfin_can_use_doloop_p): Likewise.
23189         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
23190         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
23191         * config/i386/i386.c: Include wide-int.h.
23192         (ix86_data_alignment): Use wide-int interfaces.
23193         (ix86_local_alignment): Likewise.
23194         (ix86_emit_swsqrtsf): Update real_from_integer.
23195         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
23196         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23197         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
23198         (zero_constant): Likewise.
23199         (input_operand): Likewise.
23200         (splat_input_operand): Likewise.
23201         (non_logical_cint_operand): Change const_double to const_wide_int.
23202         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
23203         (easy_altivec_constant): Remove comment.
23204         (paired_expand_vector_init): Use CONSTANT_P.
23205         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
23206         (rs6000_emit_move): Update checks.
23207         (rs6000_aggregate_candidate): Use wide-int interfaces.
23208         (rs6000_expand_ternop_builtin): Likewise.
23209         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23210         (rs6000_assemble_integer): Likewise.
23211         (rs6000_hash_constant): Likewise.
23212         (output_toc): Likewise.
23213         (rs6000_rtx_costs): Likewise.
23214         (rs6000_emit_swrsqrt); Update call to real_from_integer.
23215         * config/rs6000/rs6000-c.c: Include wide-int.h.
23216         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23217         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23218         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23219         Handle CONST_WIDE_INT.
23220         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23221         Use tree_fits_uhwi_p.
23222         * config/sparc/sparc.c: Include wide-int.h.
23223         (sparc_fold_builtin): Use wide-int interfaces.
23224         * config/vax/vax.c: Include wide-int.h.
23225         (vax_float_literal): Use real_from_integer.
23226         * coretypes.h (struct hwivec_def): New.
23227         (hwivec): New.
23228         (const_hwivec): New.
23229         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
23230         (equiv_constant): Handle CONST_WIDE_INT.
23231         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
23232         (cselib_hash_rtx): Handle CONST_WIDE_INT.
23233         * dbxout.c (stabstr_U): Use wide-int interfaces.
23234         (dbxout_type): Update to use cst_fits_shwi_p.
23235         * defaults.h (LOG2_BITS_PER_UNIT): Define.
23236         (TARGET_SUPPORTS_WIDE_INT): Add default.
23237         * dfp.c: Include wide-int.h.
23238         (decimal_real_to_integer2): Use wide-int interfaces and rename to
23239         decimal_real_to_integer.
23240         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
23241         decimal_real_to_integer.
23242         * doc/generic.texi (Constant expressions): Update for wide_int.
23243         * doc/rtl.texi (const_double): Likewise.
23244         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
23245         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
23246         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
23247         (REAL_VALUE_FROM_INT): Remove.
23248         (TARGET_SUPPORTS_WIDE_INT): New.
23249         * doc/tm.texi: Regenerate.
23250         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
23251         * double-int.h: Include wide-int.h.
23252         (struct wi::int_traits): New.
23253         * dwarf2out.c (get_full_len): New.
23254         (dw_val_equal_p): Add case dw_val_class_wide_int.
23255         (size_of_loc_descr): Likewise.
23256         (output_loc_operands): Likewise.
23257         (insert_double): Remove.
23258         (insert_wide_int): New.
23259         (add_AT_wide): New.
23260         (print_die): Add case dw_val_class_wide_int.
23261         (attr_checksum): Likewise.
23262         (attr_checksum_ordered): Likewise.
23263         (same_dw_val_p): Likewise.
23264         (size_of_die): Likewise.
23265         (value_format): Likewise.
23266         (output_die): Likewise.
23267         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
23268         Use wide-int.
23269         (clz_loc_descriptor): Use wide-int interfaces.
23270         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
23271         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
23272         (round_up_to_align): Use wide-int interfaces.
23273         (field_byte_offset): Likewise.
23274         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
23275         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
23276         CONST_DOUBLE handling.  Use wide-int interfaces.
23277         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
23278         (gen_enumeration_type_die): Use add_AT_wide.
23279         (hash_loc_operands): Add case dw_val_class_wide_int.
23280         (compare_loc_operands): Likewise.
23281         * dwarf2out.h: Include wide-int.h.
23282         (wide_int_ptr): New.
23283         (enum dw_val_class): Add dw_val_class_wide_int.
23284         (struct dw_val_struct): Add val_wide.
23285         * emit-rtl.c (const_wide_int_htab): New.
23286         (const_wide_int_htab_hash): New.
23287         (const_wide_int_htab_eq): New.
23288         (lookup_const_wide_int): New.
23289         (const_double_htab_hash): Use wide-int interfaces.
23290         (const_double_htab_eq): Likewise.
23291         (rtx_to_double_int): Conditionally compile for wide-int.
23292         (immed_double_int_const): Rename to immed_wide_int_const and
23293         update for wide-int.
23294         (immed_double_const): Conditionally compile for wide-int.
23295         (init_emit_once): Use wide-int interfaces.
23296         * explow.c (plus_constant): Likewise.
23297         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
23298         (lshift_value): Use wide-int interfaces.
23299         (expand_mult): Likewise.
23300         (choose_multiplier): Likewise.
23301         (expand_smod_pow2): Likewise.
23302         (make_tree): Likewise.
23303         * expr.c (convert_modes): Consolidate handling of constants.
23304         Use wide-int interfaces.
23305         (emit_group_load_1): Add note.
23306         (store_expr): Update comment.
23307         (get_inner_reference): Use wide-int interfaces.
23308         (expand_constructor): Update comment.
23309         (expand_expr_real_2): Use wide-int interfaces.
23310         (expand_expr_real_1): Likewise.
23311         (reduce_to_bit_field_precision): Likewise.
23312         (const_vector_from_tree): Likewise.
23313         * final.c: Include wide-int-print.h.
23314         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
23315         * fixed-value.c: Include wide-int.h.
23316         (fixed_from_string): Use wide-int interfaces.
23317         (fixed_to_decimal): Likewise.
23318         (fixed_convert_from_real): Likewise.
23319         (real_convert_from_fixed): Likewise.
23320         * fold-const.h (mem_ref_offset): Return an offset_int.
23321         (div_if_zero_remainder): Remove code parameter.
23322         * fold-const.c (div_if_zero_remainder): Remove code parameter.
23323         Use wide-int interfaces.
23324         (may_negate_without_overflow_p): Use wide-int interfaces.
23325         (negate_expr_p): Likewise.
23326         (fold_negate_expr): Likewise.
23327         (int_const_binop_1): Likewise.
23328         (const_binop): Likewise.
23329         (fold_convert_const_int_from_int): Likewise.
23330         (fold_convert_const_int_from_real): Likewise.
23331         (fold_convert_const_int_from_fixed): Likewise.
23332         (fold_convert_const_fixed_from_int): Likewise.
23333         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
23334         (sign_bit_p): Use wide-int interfaces.
23335         (make_range_step): Likewise.
23336         (build_range_check): Likewise.  Pass an integer of the correct type
23337         instead of using integer_one_node.
23338         (range_predecessor): Pass an integer of the correct type instead
23339         of using integer_one_node.
23340         (range_successor): Likewise.
23341         (merge_ranges): Likewise.
23342         (unextend): Use wide-int interfaces.
23343         (extract_muldiv_1): Likewise.
23344         (fold_div_compare): Likewise.
23345         (fold_single_bit_test): Likewise.
23346         (fold_sign_changed_comparison): Likewise.
23347         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
23348         (fold_plusminus_mult_expr): Use wide-int interfaces.
23349         (native_encode_int): Likewise.
23350         (native_interpret_int): Likewise.
23351         (fold_unary_loc): Likewise.
23352         (pointer_may_wrap_p): Likewise.
23353         (size_low_cst): Likewise.
23354         (mask_with_tz): Likewise.
23355         (fold_binary_loc): Likewise.
23356         (fold_ternary_loc): Likewise.
23357         (multiple_of_p): Likewise.
23358         (tree_call_nonnegative_warnv_p): Update calls to
23359         tree_int_cst_min_precision and real_from_integer.
23360         (fold_negate_const): Use wide-int interfaces.
23361         (fold_abs_const): Likewise.
23362         (fold_relational_const): Use tree_int_cst_lt.
23363         (round_up_loc): Use wide-int interfaces.
23364         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
23365         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
23366         * gengtype.c: Remove include of double-int.h.
23367         (do_typedef): Use wide-int interfaces.
23368         (open_base_files): Add wide-int.h.
23369         (main): Add offset_int and widest_int typedefs.
23370         * gengtype-lex.l: Handle "^".
23371         (CXX_KEYWORD): Add "static".
23372         * gengtype-parse.c (require3): New.
23373         (require_template_declaration): Handle constant template arguments
23374         and nested templates.
23375         * gengtype-state.c: Don't include "double-int.h".
23376         * genpreds.c (write_one_predicate_function): Update comment.
23377         (write_tm_constrs_h): Add check for hval and lval use in
23378         CONST_WIDE_INT.
23379         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
23380         (add_to_sequence): Likewise.
23381         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
23382         and const_double_operand.
23383         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
23384         interfaces.
23385         * gimple-fold.c (get_base_constructor): Likewise.
23386         (fold_array_ctor_reference): Likewise.
23387         (fold_nonarray_ctor_reference): Likewise.
23388         (fold_const_aggregate_ref_1): Likewise.
23389         (gimple_val_nonnegative_real_p): Likewise.
23390         (gimple_fold_indirect_ref): Likewise.
23391         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
23392         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
23393         (struct slsr_cand_d): Change index to be widest_int.
23394         (struct incr_info_d): Change incr to be widest_int.
23395         (alloc_cand_and_find_basis): Use wide-int interfaces.
23396         (slsr_process_phi): Likewise.
23397         (backtrace_base_for_ref): Likewise.  Return a widest_int.
23398         (restructure_reference): Take a widest_int instead of a double_int.
23399         (slsr_process_ref): Use wide-int interfaces.
23400         (create_mul_ssa_cand): Likewise.
23401         (create_mul_imm_cand): Likewise.
23402         (create_add_ssa_cand): Likewise.
23403         (create_add_imm_cand): Take a widest_int instead of a double_int.
23404         (slsr_process_add): Use wide-int interfaces.
23405         (slsr_process_cast): Likewise.
23406         (slsr_process_copy): Likewise.
23407         (dump_candidate): Likewise.
23408         (dump_incr_vec): Likewise.
23409         (replace_ref): Likewise.
23410         (cand_increment): Likewise.  Return a widest_int.
23411         (cand_abs_increment): Likewise.
23412         (replace_mult_candidate): Take a widest_int instead of a double_int.
23413         (replace_unconditional_candidate): Use wide-int interfaces.
23414         (incr_vec_index): Take a widest_int instead of a double_int.
23415         (create_add_on_incoming_edge): Likewise.
23416         (create_phi_basis): Use wide-int interfaces.
23417         (replace_conditional_candidate): Likewise.
23418         (record_increment): Take a widest_int instead of a double_int.
23419         (record_phi_increments): Use wide-int interfaces.
23420         (phi_incr_cost): Take a widest_int instead of a double_int.
23421         (lowest_cost_path): Likewise.
23422         (total_savings): Likewise.
23423         (analyze_increments): Use wide-int interfaces.
23424         (ncd_with_phi): Take a widest_int instead of a double_int.
23425         (ncd_of_cand_and_phis): Likewise.
23426         (nearest_common_dominator_for_cands): Likewise.
23427         (insert_initializers): Use wide-int interfaces.
23428         (all_phi_incrs_profitable): Likewise.
23429         (replace_one_candidate): Likewise.
23430         (replace_profitable_candidates): Likewise.
23431         * godump.c: Include wide-int-print.h.
23432         (go_output_typedef): Use wide-int interfaces.
23433         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
23434         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
23435         (build_loop_iteration_domains): Likewise.
23436         * hooks.h: Include wide-int.h rather than double-int.h.
23437         (hook_bool_dint_dint_uint_bool_true): Delete.
23438         (hook_bool_wint_wint_uint_bool_true): Declare.
23439         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
23440         (hook_bool_wint_wint_uint_bool_true): New.
23441         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
23442         interfaces.
23443         (ubsan_expand_si_overflow_mul_check): Likewise.
23444         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
23445         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
23446         (get_ancestor_addr_info): Likewise.
23447         (ipa_modify_call_arguments): Likewise.
23448         * loop-doloop.c (doloop_modify): Likewise.
23449         (doloop_optimize): Likewise.
23450         * loop-iv.c (iv_number_of_iterations): Likewise.
23451         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
23452         (unroll_loop_constant_iterations): Likewise.
23453         (decide_unroll_runtime_iterations): Likewise.
23454         (unroll_loop_runtime_iterations): Likewise.
23455         (decide_peel_simple): Likewise.
23456         (decide_unroll_stupid): Likewise.
23457         * lto-streamer-in.c (streamer_read_wi): Add.
23458         (input_cfg): Use wide-int interfaces.
23459         (lto_input_tree_1): Likewise.
23460         * lto-streamer-out.c (streamer_write_wi): Add.
23461         (hash_tree): Use wide-int interfaces.
23462         (output_cfg): Likewise.
23463         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
23464         (GTFILES): Add wide-int.h and signop.h.
23465         (TAGS): Look for .cc files too.
23466         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
23467         * optabs.c (expand_subword_shift): Likewise.
23468         (expand_doubleword_shift): Likewise.
23469         (expand_absneg_bit): Likewise.
23470         (expand_copysign_absneg): Likewise.
23471         (expand_copysign_bit): Likewise.
23472         * postreload.c (reload_cse_simplify_set): Likewise.
23473         * predict.c (predict_iv_comparison): Likewise.
23474         * pretty-print.h: Include wide-int-print.h.
23475         (pp_wide_int) New.
23476         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
23477         * print-tree.c: Include wide-int-print.h.
23478         (print_node_brief): Use wide-int interfaces.
23479         (print_node): Likewise.
23480         * read-rtl.c (validate_const_wide_int): New.
23481         (read_rtx_code): Add CONST_WIDE_INT case.
23482         * real.c: Include wide-int.h.
23483         (real_to_integer2): Delete.
23484         (real_to_integer): New function, returning a wide_int.
23485         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23486         (ten_to_ptwo): Update call to real_from_integer.
23487         (real_digit): Likewise.
23488         * real.h: Include signop.h, wide-int.h and insn-modes.h.
23489         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
23490         (REAL_VALUE_TO_INT): Delete.
23491         (real_to_integer): Declare a wide-int form.
23492         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23493         * recog.c (const_int_operand): Improve comment.
23494         (const_scalar_int_operand): New.
23495         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
23496         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
23497         (split_double): Likewise.
23498         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
23499         (rtx_size): Likewise.
23500         (rtx_alloc_stat_v): New.
23501         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
23502         (cwi_output_hex): New.
23503         (iterative_hash_rtx): Handle CONST_WIDE_INT.
23504         (cwi_check_failed_bounds): New.
23505         * rtl.def (CONST_WIDE_INT): New.
23506         * rtl.h: Include <utility> and wide-int.h.
23507         (struct hwivec_def): New.
23508         (CWI_GET_NUM_ELEM): New.
23509         (CWI_PUT_NUM_ELEM): New.
23510         (struct rtx_def): Add num_elem and hwiv.
23511         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
23512         (CASE_CONST_UNIQUE): Likewise.
23513         (CASE_CONST_ANY): Likewise.
23514         (CONST_SCALAR_INT_P): Likewise.
23515         (CONST_WIDE_INT_P): New.
23516         (CWI_ELT): New.
23517         (HWIVEC_CHECK): New.
23518         (cwi_check_failed_bounds): New.
23519         (CWI_ELT): New.
23520         (HWIVEC_CHECK): New.
23521         (CONST_WIDE_INT_VEC) New.
23522         (CONST_WIDE_INT_NUNITS) New.
23523         (CONST_WIDE_INT_ELT) New.
23524         (rtx_mode_t): New type.
23525         (wi::int_traits <rtx_mode_t>): New.
23526         (wi::shwi): New.
23527         (wi::min_value): New.
23528         (wi::max_value): New.
23529         (rtx_alloc_v) New.
23530         (const_wide_int_alloc): New.
23531         (immed_wide_int_const): New.
23532         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
23533         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
23534         * signop.h: New file.
23535         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
23536         (simplify_const_unary_operation): Use wide-int interfaces.
23537         (simplify_binary_operation_1): Likewise.
23538         (simplify_const_binary_operation): Likewise.
23539         (simplify_const_relational_operation): Likewise.
23540         (simplify_immed_subreg): Likewise.
23541         * stmt.c (expand_case): Likewise.
23542         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
23543         signop rather than a bool.
23544         * stor-layout.c (layout_type): Use wide-int interfaces.
23545         (initialize_sizetypes): Update calls to
23546         set_min_and_max_values_for_integral_type.
23547         (set_min_and_max_values_for_integral_type): Take a signop rather
23548         than a bool.  Use wide-int interfaces.
23549         (fixup_signed_type): Update accordingly.  Remove
23550         HOST_BITS_PER_DOUBLE_INT limit.
23551         (fixup_unsigned_type): Likewise.
23552         * system.h (STATIC_CONSTANT_P): New.
23553         (STATIC_ASSERT): New.
23554         * target.def (can_use_doloop_p): Take widest_ints rather than
23555         double_ints.
23556         * target.h: Include wide-int.h rather than double-int.h.
23557         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
23558         than double_ints.
23559         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
23560         rather than INT_CST_LT_UNSIGNED.
23561         (can_use_doloop_if_innermost): Take widest_ints rather than
23562         double_ints.
23563         * tree-affine.c: Include wide-int-print.h.
23564         (double_int_ext_for_comb): Delete.
23565         (wide_int_ext_for_comb): New.
23566         (aff_combination_zero): Use wide-int interfaces.
23567         (aff_combination_const): Take a widest_int instead of a double_int.
23568         (aff_combination_elt): Use wide-int interfaces.
23569         (aff_combination_scale): Take a widest_int instead of a double_int.
23570         (aff_combination_add_elt): Likewise.
23571         (aff_combination_add_cst): Likewise.
23572         (aff_combination_add): Use wide-int interfaces.
23573         (aff_combination_convert): Likewise.
23574         (tree_to_aff_combination): Likewise.
23575         (add_elt_to_tree): Take a widest_int instead of a double_int.
23576         (aff_combination_to_tree): Use wide-int interfaces.
23577         (aff_combination_remove_elt): Likewise.
23578         (aff_combination_add_product): Take a widest_int instead of
23579         a double_int.
23580         (aff_combination_mult): Use wide-int interfaces.
23581         (aff_combination_expand): Likewise.
23582         (double_int_constant_multiple_p): Delete.
23583         (wide_int_constant_multiple_p): New.
23584         (aff_combination_constant_multiple_p): Take a widest_int pointer
23585         instead of a double_int pointer.
23586         (print_aff): Use wide-int interfaces.
23587         (get_inner_reference_aff): Take a widest_int pointer
23588         instead of a double_int pointer.
23589         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
23590         * tree-affine.h: Include wide-int.h.
23591         (struct aff_comb_elt): Change type of coef to widest_int.
23592         (struct affine_tree_combination): Change type of offset to widest_int.
23593         (double_int_ext_for_comb): Delete.
23594         (wide_int_ext_for_comb): New.
23595         (aff_combination_const): Use widest_int instead of double_int.
23596         (aff_combination_scale): Likewise.
23597         (aff_combination_add_elt): Likewise.
23598         (aff_combination_constant_multiple_p): Likewise.
23599         (get_inner_reference_aff): Likewise.
23600         (aff_comb_cannot_overlap_p): Likewise.
23601         (aff_combination_zero_p): Use wide-int interfaces.
23602         * tree.c: Include tree.h.
23603         (init_ttree): Use make_int_cst.
23604         (tree_code_size): Removed code for INTEGER_CST case.
23605         (tree_size): Add INTEGER_CST case.
23606         (make_node_stat): Update comment.
23607         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
23608         (build_int_cst_type): Use wide-int interfaces.
23609         (double_int_to_tree): Likewise.
23610         (double_int_fits_to_tree_p): Delete.
23611         (force_fit_type_double): Delete.
23612         (force_fit_type): New.
23613         (int_cst_hash_hash): Use wide-int interfaces.
23614         (int_cst_hash_eq): Likewise.
23615         (build_int_cst_wide): Delete.
23616         (wide_int_to_tree): New.
23617         (cache_integer_cst): Use wide-int interfaces.
23618         (build_low_bits_mask): Likewise.
23619         (cst_and_fits_in_hwi): Likewise.
23620         (real_value_from_int_cst): Likewise.
23621         (make_int_cst_stat): New.
23622         (integer_zerop): Use wide_int interfaces.
23623         (integer_onep): Likewise.
23624         (integer_all_onesp): Likewise.
23625         (integer_pow2p): Likewise.
23626         (integer_nonzerop): Likewise.
23627         (tree_log2): Likewise.
23628         (tree_floor_log2): Likewise.
23629         (tree_ctz): Likewise.
23630         (int_size_in_bytes): Likewise.
23631         (mem_ref_offset): Return an offset_int rather than a double_int.
23632         (build_type_attribute_qual_variant): Use wide_int interfaces.
23633         (type_hash_eq): Likewise
23634         (tree_int_cst_equal): Likewise.
23635         (tree_int_cst_lt): Delete.
23636         (tree_int_cst_compare): Likewise.
23637         (tree_fits_shwi_p): Use wide_int interfaces.
23638         (tree_fits_uhwi_p): Likewise.
23639         (tree_int_cst_sign_bit): Likewise.
23640         (tree_int_cst_sgn): Likewise.
23641         (tree_int_cst_min_precision): Take a signop rather than a bool.
23642         (simple_cst_equal): Use wide_int interfaces.
23643         (compare_tree_int): Likewise.
23644         (iterative_hash_expr): Likewise.
23645         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
23646         INT_CST_LT.
23647         (get_type_static_bounds): Use wide_int interfaces.
23648         (tree_int_cst_elt_check_failed): New.
23649         (build_common_tree_nodes): Reordered to set prec before filling in
23650         value.
23651         (int_cst_value): Check cst_and_fits_in_hwi.
23652         (widest_int_cst_value): Use wide_int interfaces.
23653         (upper_bound_in_type): Likewise.
23654         (lower_bound_in_type): Likewise.
23655         (num_ending_zeros): Likewise.
23656         (drop_tree_overflow): Likewise.
23657         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
23658         (gen_conditions_for_pow_cst_base): Likewise.
23659         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
23660         (group_case_labels_stmt): Use wide-int interfaces.
23661         (verify_gimple_assign_binary): Likewise.
23662         (print_loop): Likewise.
23663         * tree-chrec.c (tree_fold_binomial): Likewise.
23664         * tree-core.h (struct tree_base): Add int_length.
23665         (struct tree_int_cst): Change rep of value.
23666         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
23667         (dr_may_alias_p): Likewise.
23668         (max_stmt_executions_tree): Likewise.
23669         * tree.def (INTEGER_CST): Update comment.
23670         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
23671         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
23672         * tree-dump.c: Include wide-int.h and wide-int-print.h.
23673         (dequeue_and_dump): Use wide-int interfaces.
23674         * tree.h: Include wide-int.h.
23675         (NULL_TREE): Moved to earlier loc in file.
23676         (TREE_INT_CST_ELT_CHECK): New.
23677         (tree_int_cst_elt_check_failed): New.
23678         (TYPE_SIGN): New.
23679         (TREE_INT_CST): Delete.
23680         (TREE_INT_CST_LOW): Use wide-int interfaces.
23681         (TREE_INT_CST_HIGH): Delete.
23682         (TREE_INT_CST_NUNITS): New.
23683         (TREE_INT_CST_EXT_NUNITS): Likewise.
23684         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
23685         (TREE_INT_CST_ELT): Likewise.
23686         (INT_CST_LT): Delete.
23687         (tree_int_cst_elt_check): New (two forms).
23688         (type_code_size): Update comment.
23689         (make_int_cst_stat, make_int_cst): New.
23690         (tree_to_double_int): Delete.
23691         (double_int_fits_to_tree_p): Delete.
23692         (force_fit_type_double): Delete.
23693         (build_int_cstu): Replace with out-of-line function.
23694         (build_int_cst_wide): Delete.
23695         (tree_int_cst_lt): Define inline.
23696         (tree_int_cst_le): New.
23697         (tree_int_cst_compare): Define inline.
23698         (tree_int_cst_min_precision): Take a signop rather than a bool.
23699         (wi::int_traits <const_tree>): New.
23700         (wi::int_traits <tree>): New.
23701         (wi::extended_tree): New.
23702         (wi::int_traits <wi::extended_tree>): New.
23703         (wi::to_widest): New.
23704         (wi::to_offset): New.
23705         (wi::fits_to_tree_p): New.
23706         (wi::min_value): New.
23707         (wi::max_value): New.
23708         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
23709         (copy_tree_body_r): Likewise.
23710         * tree-object-size.c (compute_object_offset): Likewise.
23711         (addr_object_size): Likewise.
23712         * tree-predcom.c: Include wide-int-print.h.
23713         (struct dref_d): Change type of offset to widest_int.
23714         (dump_dref): Call wide-int printer.
23715         (aff_combination_dr_offset): Use wide-int interfaces.
23716         (determine_offset): Take a widest_int pointer rather than a
23717         double_int pointer.
23718         (split_data_refs_to_components): Use wide-int interfaces.
23719         (suitable_component_p): Likewise.
23720         (order_drefs): Likewise.
23721         (add_ref_to_chain): Likewise.
23722         (valid_initializer_p): Likewise.
23723         (determine_roots_comp): Likewise.
23724         * tree-pretty-print.c: Include wide-int-print.h.
23725         (dump_generic_node): Use wide-int interfaces.
23726         * tree-sra.c (sra_ipa_modify_expr): Likewise.
23727         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
23728         (move_fixed_address_to_symbol): Likewise.
23729         (move_hint_to_base): Likewise.
23730         (move_pointer_to_base): Likewise.
23731         (move_variant_to_index): Likewise.
23732         (most_expensive_mult_to_index): Likewise.
23733         (addr_to_parts): Likewise.
23734         (copy_ref_info): Likewise.
23735         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
23736         (indirect_refs_may_alias_p): Likewise.
23737         (stmt_kills_ref_p_1): Likewise.
23738         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
23739         * tree-ssa-ccp.c: Update comment at top of file.  Include
23740         wide-int-print.h.
23741         (struct prop_value_d): Change type of mask to widest_int.
23742         (extend_mask): New function.
23743         (dump_lattice_value): Use wide-int interfaces.
23744         (get_default_value): Likewise.
23745         (set_constant_value): Likewise.
23746         (set_value_varying): Likewise.
23747         (valid_lattice_transition): Likewise.
23748         (set_lattice_value): Likewise.
23749         (value_to_double_int): Delete.
23750         (value_to_wide_int): New.
23751         (get_value_from_alignment): Use wide-int interfaces.
23752         (get_value_for_expr): Likewise.
23753         (do_dbg_cnt): Likewise.
23754         (ccp_finalize): Likewise.
23755         (ccp_lattice_meet): Likewise.
23756         (bit_value_unop_1): Use widest_ints rather than double_ints.
23757         (bit_value_binop_1): Likewise.
23758         (bit_value_unop): Use wide-int interfaces.
23759         (bit_value_binop): Likewise.
23760         (bit_value_assume_aligned): Likewise.
23761         (evaluate_stmt): Likewise.
23762         (ccp_fold_stmt): Likewise.
23763         (visit_cond_stmt): Likewise.
23764         (ccp_visit_stmt): Likewise.
23765         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
23766         (constant_pointer_difference): Likewise.
23767         (associate_pointerplus): Likewise.
23768         (combine_conversions): Likewise.
23769         * tree-ssa-loop.h: Include wide-int.h.
23770         (struct tree_niter_desc): Change type of max to widest_int.
23771         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
23772         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
23773         (remove_redundant_iv_tests): Likewise.
23774         (canonicalize_loop_induction_variables): Likewise.
23775         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
23776         (constant_multiple_of): Take a widest_int pointer instead of
23777         a double_int pointer.
23778         (get_computation_aff): Use wide-int interfaces.
23779         (ptr_difference_cost): Likewise.
23780         (difference_cost): Likewise.
23781         (get_loop_invariant_expr_id): Likewise.
23782         (get_computation_cost_at): Likewise.
23783         (iv_elimination_compare_lt): Likewise.
23784         (may_eliminate_iv): Likewise.
23785         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
23786         instead of double_int.
23787         (max_loop_iterations): Likewise.
23788         (max_stmt_executions): Likewise.
23789         (estimated_stmt_executions): Likewise.
23790         * tree-ssa-loop-niter.c: Include wide-int-print.h.
23791         (split_to_var_and_offset): Use wide-int interfaces.
23792         (determine_value_range): Likewise.
23793         (bound_difference_of_offsetted_base): Likewise.
23794         (bounds_add): Take a widest_int instead of a double_int.
23795         (number_of_iterations_ne_max): Use wide-int interfaces.
23796         (number_of_iterations_ne): Likewise.
23797         (number_of_iterations_lt_to_ne): Likewise.
23798         (assert_loop_rolls_lt): Likewise.
23799         (number_of_iterations_lt): Likewise.
23800         (number_of_iterations_le): Likewise.
23801         (number_of_iterations_cond): Likewise.
23802         (number_of_iterations_exit): Likewise.
23803         (finite_loop_p): Likewise.
23804         (derive_constant_upper_bound_assign): Likewise.
23805         (derive_constant_upper_bound): Return a widest_int.
23806         (derive_constant_upper_bound_ops): Likewise.
23807         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
23808         (record_estimate): Take a widest_int rather than a double_int.
23809         (record_nonwrapping_iv): Use wide-int interfaces.
23810         (double_int_cmp): Delete.
23811         (wide_int_cmp): New.
23812         (bound_index): Take a widest_int rather than a double_int.
23813         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
23814         (maybe_lower_iteration_bound): Likewise.
23815         (estimate_numbers_of_iterations_loop): Likewise.
23816         (estimated_loop_iterations): Take a widest_int pointer than than
23817         a double_int pointer.
23818         (estimated_loop_iterations_int): Use wide-int interfaces.
23819         (max_loop_iterations): Take a widest_int pointer than than
23820         a double_int pointer.
23821         (max_loop_iterations_int): Use wide-int interfaces.
23822         (max_stmt_executions): Take a widest_int pointer than than
23823         a double_int pointer.
23824         (estimated_stmt_executions): Likewise.
23825         (n_of_executions_at_most): Use wide-int interfaces.
23826         (scev_probably_wraps_p): Likewise.
23827         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
23828         to real_to_integer.
23829         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
23830         interfaces.
23831         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
23832         double_ints.  Adjust for trailing_wide_ints <3> representation.
23833         (set_nonzero_bits): Likewise.
23834         (get_range_info): Return wide_ints rather than double_ints.
23835         Adjust for trailing_wide_ints <3> representation.
23836         (get_nonzero_bits): Likewise.
23837         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
23838         representation.
23839         * tree-ssanames.h (struct range_info_def): Replace min, max and
23840         nonzero_bits with a trailing_wide_ints <3>.
23841         (set_range_info): Use wide_int_refs rather than double_ints.
23842         (set_nonzero_bits): Likewise.
23843         (get_range_info): Return wide_ints rather than double_ints.
23844         (get_nonzero_bits): Likewise.
23845         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
23846         * tree-ssa-pre.c (phi_translate_1): Likewise.
23847         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
23848         (acceptable_pow_call): Likewise.
23849         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
23850         interfaces.
23851         (vn_reference_fold_indirect): Likewise.
23852         (vn_reference_maybe_forwprop_address): Likewise.
23853         (valueize_refs_1): Likewise.
23854         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
23855         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
23856         tree_int_cst_lt and tree_int_cst_le.
23857         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
23858         interfaces.
23859         (streamer_alloc_tree): Likewise.
23860         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
23861         (streamer_write_tree_header): Likewise.
23862         (streamer_write_integer_cst): Likewise.
23863         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23864         (build_constructors): Likewise.
23865         (array_value_type): Likewise.
23866         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
23867         (vect_check_gather): Likewise.
23868         * tree-vect-generic.c (build_replicated_const): Likewise.
23869         (expand_vector_divmod): Likewise.
23870         * tree-vect-loop.c (vect_transform_loop): Likewise.
23871         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
23872         (vect_do_peeling_for_alignment): Likewise.
23873         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
23874         * tree-vrp.c: Include wide-int.h.
23875         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
23876         (extract_range_from_assert): Use wide-int interfaces.
23877         (vrp_int_const_binop): Likewise.
23878         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
23879         double_int pointers.
23880         (ranges_from_anti_range): Use wide-int interfaces.
23881         (quad_int_cmp): Delete.
23882         (quad_int_pair_sort): Likewise.
23883         (extract_range_from_binary_expr_1): Use wide-int interfaces.
23884         (extract_range_from_unary_expr_1): Likewise.
23885         (adjust_range_with_scev): Likewise.
23886         (masked_increment): Take and return wide_ints rather than double_ints.
23887         (register_edge_assert_for_2): Use wide-int interfaces.
23888         (check_array_ref): Likewise.
23889         (search_for_addr_array): Likewise.
23890         (maybe_set_nonzero_bits): Likewise.
23891         (union_ranges): Pass an integer of the correct type instead of
23892         using integer_one_node.
23893         (intersect_ranges): Likewise.
23894         (simplify_truth_ops_using_ranges): Likewise.
23895         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
23896         (range_fits_type_p): Likewise.
23897         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
23898         a bool.
23899         (simplify_conversion_using_ranges): Use wide-int interfaces.
23900         (simplify_float_conversion_using_ranges): Likewise.
23901         (vrp_finalize): Likewise.
23902         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
23903         (gimple_stringops_transform): Likewise.
23904         * varasm.c (decode_addr_const): Likewise.
23905         (const_hash_1): Likewise.
23906         (const_rtx_hash_1): Likewise
23907         (output_constant): Likewise.
23908         (array_size_for_constructor): Likewise.
23909         (output_constructor_regular_field): Likewise.
23910         (output_constructor_bitfield): Likewise.
23911         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
23912         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
23913         GENERATOR_FILEs.
23914         * gencheck.c: Define BITS_PER_UNIT.
23915         * wide-int.cc: New.
23916         * wide-int.h: New.
23917         * wide-int-print.cc: New.
23918         * wide-int-print.h: New.
23920 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23922         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
23924 2014-05-06  Richard Biener  <rguenther@suse.de>
23926         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
23927         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
23928         (TODO_verify_all): Adjust.
23929         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
23930         TODO_verify_stmts and TODO_verify_rtl_sharing.
23931         * bb-reorder.c: Likewise.
23932         * cfgexpand.c: Likewise.
23933         * cprop.c: Likewise.
23934         * cse.c: Likewise.
23935         * function.c: Likewise.
23936         * fwprop.c: Likewise.
23937         * gcse.c: Likewise.
23938         * gimple-ssa-isolate-paths.c: Likewise.
23939         * gimple-ssa-strength-reduction.c: Likewise.
23940         * ipa-split.c: Likewise.
23941         * loop-init.c: Likewise.
23942         * loop-unroll.c: Likewise.
23943         * lower-subreg.c: Likewise.
23944         * modulo-sched.c: Likewise.
23945         * postreload-gcse.c: Likewise.
23946         * predict.c: Likewise.
23947         * recog.c: Likewise.
23948         * sched-rgn.c: Likewise.
23949         * store-motion.c: Likewise.
23950         * tracer.c: Likewise.
23951         * trans-mem.c: Likewise.
23952         * tree-call-cdce.c: Likewise.
23953         * tree-cfg.c: Likewise.
23954         * tree-cfgcleanup.c: Likewise.
23955         * tree-complex.c: Likewise.
23956         * tree-eh.c: Likewise.
23957         * tree-emutls.c: Likewise.
23958         * tree-if-conv.c: Likewise.
23959         * tree-into-ssa.c: Likewise.
23960         * tree-loop-distribution.c: Likewise.
23961         * tree-object-size.c: Likewise.
23962         * tree-parloops.c: Likewise.
23963         * tree-pass.h: Likewise.
23964         * tree-sra.c: Likewise.
23965         * tree-ssa-ccp.c: Likewise.
23966         * tree-ssa-copy.c: Likewise.
23967         * tree-ssa-copyrename.c: Likewise.
23968         * tree-ssa-dce.c: Likewise.
23969         * tree-ssa-dom.c: Likewise.
23970         * tree-ssa-dse.c: Likewise.
23971         * tree-ssa-forwprop.c: Likewise.
23972         * tree-ssa-ifcombine.c: Likewise.
23973         * tree-ssa-loop-ch.c: Likewise.
23974         * tree-ssa-loop-ivcanon.c: Likewise.
23975         * tree-ssa-loop.c: Likewise.
23976         * tree-ssa-math-opts.c: Likewise.
23977         * tree-ssa-phiopt.c: Likewise.
23978         * tree-ssa-phiprop.c: Likewise.
23979         * tree-ssa-pre.c: Likewise.
23980         * tree-ssa-reassoc.c: Likewise.
23981         * tree-ssa-sink.c: Likewise.
23982         * tree-ssa-strlen.c: Likewise.
23983         * tree-ssa-tail-merge.c: Likewise.
23984         * tree-ssa-uncprop.c: Likewise.
23985         * tree-switch-conversion.c: Likewise.
23986         * tree-tailcall.c: Likewise.
23987         * tree-vect-generic.c: Likewise.
23988         * tree-vectorizer.c: Likewise.
23989         * tree-vrp.c: Likewise.
23990         * tsan.c: Likewise.
23991         * var-tracking.c: Likewise.
23992         * bt-load.c: Likewise.
23993         * cfgcleanup.c: Likewise.
23994         * combine-stack-adj.c: Likewise.
23995         * combine.c: Likewise.
23996         * compare-elim.c: Likewise.
23997         * config/epiphany/resolve-sw-modes.c: Likewise.
23998         * config/i386/i386.c: Likewise.
23999         * config/mips/mips.c: Likewise.
24000         * config/s390/s390.c: Likewise.
24001         * config/sh/sh_treg_combine.cc: Likewise.
24002         * config/sparc/sparc.c: Likewise.
24003         * dce.c: Likewise.
24004         * dse.c: Likewise.
24005         * final.c: Likewise.
24006         * ifcvt.c: Likewise.
24007         * mode-switching.c: Likewise.
24008         * passes.c: Likewise.
24009         * postreload.c: Likewise.
24010         * ree.c: Likewise.
24011         * reg-stack.c: Likewise.
24012         * regcprop.c: Likewise.
24013         * regrename.c: Likewise.
24014         * web.c: Likewise.
24016 2014-05-06  Richard Biener  <rguenther@suse.de>
24018         PR middle-end/61070
24019         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
24020         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
24022 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
24024         PR ipa/60965
24025         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
24027 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
24028             Tom de Vries  <tom@codesourcery.com>
24030         * target.def (call_fusage_contains_non_callee_clobbers): New
24031         DEFHOOKPOD.
24032         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
24033         Hooks to @menu.
24034         (@node Miscellaneous Register Hooks): New node.
24035         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
24036         * doc/tm.texi: Regenerate.
24038 2014-05-05  Marek Polacek  <polacek@redhat.com>
24040         PR driver/61065
24041         * opts.c (common_handle_option): Call error_at instead of warning_at.
24043 2014-05-05  Richard Biener  <rguenther@suse.de>
24045         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
24046         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
24047         under the TODO_verify_il umbrella.
24049 2014-05-05  Richard Biener  <rguenther@suse.de>
24051         * passes.c (execute_function_todo): Move TODO_verify_flow under
24052         the TODO_verify_ul umbrella.
24054 2014-05-05  Richard Biener  <rguenther@suse.de>
24056         PR middle-end/61010
24057         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
24058         X & CST away from a CST that is the mask of a mode.
24060 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24062         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
24063         int argument to enum machine_mode.
24064         (picochip_class_max_nregs): Ditto.
24065         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
24066         (picochip_class_max_nregs): Ditto.
24068 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24070         * target.def: Add new target hook.
24071         * doc/tm.texi: Regenerate.
24072         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
24073         * targhooks.c (default_keep_leaf_when_profiled): New function.
24075         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
24076         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
24078 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
24080         PR tree-optimization/60363
24081         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
24082         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
24083         (update_destination_phis): New parameter.
24084         (create_edge_and_update_destination_phis): Ditto.
24085         (ssa_fix_duplicate_block_edges): Pass new arguments.
24086         (thread_single_edge): Ditto.
24088 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
24090         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
24091         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
24092         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
24093         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
24094         Use RS6000_BTM_HARD_FLOAT.
24095         (BU_MISC_2): Likewise.
24096         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
24097         RS6000_BTM_HARD_FLOAT.
24098         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
24099         is explicitly used.
24100         (rs6000_invalid_builtin): Add hard floating builtin support.
24101         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
24102         hard float builtins.
24103         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
24105 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24107         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
24108         Add missing function* argument.
24110 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24112         * lra-constraints.c (valid_address_p): Move earlier in file.
24113         Add a constraint argument to the address_info version.
24114         (satisfies_memory_constraint_p): New function.
24115         (satisfies_address_constraint_p): Likewise.
24116         (process_alt_operands, curr_insn_transform): Use them.
24117         (process_address): Pass the constraint to valid_address_p when
24118         checking address operands.
24120 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24122         * config/mips/mips.c (mips_isa_rev): New variable.
24123         (mips_set_architecture): Set it.
24124         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
24125         from mips_isa_rev.
24126         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
24127         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
24128         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
24129         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
24130         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
24131         conditions in terms of mips_isa_rev.
24132         (mips_isa_rev): Declare.
24134 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24136         * config/sh/sh-mem.cc: Use tabs instead of spaces.
24137         (prob_unlikely, prob_likely): Make variables const.
24139 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
24141         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
24143 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24145         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
24147 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24149         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
24150         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
24151         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
24152         functions.
24153         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
24154         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
24155         sh_pass_in_reg_p.
24156         Replace usage of ROUND_REG with sh_round_reg.
24157         Use CEIL instead of ROUND_ADVANCE.
24159 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24161         PR target/61026
24162         * config/sh/sh.c: Include stdlib headers before everything else.
24164 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
24166         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
24167         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
24168         (gimplify_adjust_omp_clauses): Simd region is never
24169         directly nested in combined parallel.  Instead, for linear
24170         with copyin/copyout, if in combined for simd loop, make decl
24171         firstprivate/lastprivate on OMP_FOR.
24172         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
24173         expand_omp_for_static_chunk): When setting endvar, also set
24174         fd->loop.v to the same value.
24176 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24178         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
24180 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
24182         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
24183         expression.
24185 2014-05-02  Marek Polacek  <polacek@redhat.com>
24187         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
24189 2014-05-02  Kito Cheng  <kito@0xlab.org>
24191         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
24192         to a C expression marco.
24193         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
24194         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
24195         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
24196         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
24197         HONOR_REG_ALLOC_ORDER.
24198         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
24200 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24202         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
24204 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24206         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24208 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
24210         * tree-if-conv.c (is_cond_scalar_reduction): New function.
24211         (convert_scalar_cond_reduction): Likewise.
24212         (predicate_scalar_phi): Add recognition and transformation
24213         of simple conditioanl reduction to be vectorizable.
24215 2014-05-01  Marek Polacek  <polacek@redhat.com>
24217         PR c/43245
24218         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24220 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
24222         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24223         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24224         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24225         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24226         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24227         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24228         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
24229         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
24231 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
24233         * config/arc/arc.opt (mlra): Move comment above option name
24234         to avoid mis-parsing as language options.
24236 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24238         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
24239         * config/sol2.h: ... here.
24240         * config/sol2-10.h: Remove.
24242         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
24243         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
24244         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
24245         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
24246         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
24247         * config/sol2.h: ... here.
24248         (SECTION_NAME_FORMAT): Don't redefine.
24249         (STARTFILE_ARCH32_SPEC): Rename to ...
24250         (STARTFILE_ARCH_SPEC): ... this.
24251         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24252         * config/sparc/sol2.h: ... here.
24253         (SECTION_NAME_FORMAT): Don't undef.
24254         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
24255         (SUBTARGET_EXTRA_SPECS): Remove.
24256         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
24258         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
24259         (MD_STARTFILE_PREFIX): Remove.
24260         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
24261         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
24262         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
24263         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
24264         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
24265         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
24266         * config/i386/sol2.h: ... here.
24267         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
24268         * config/i386/sol2-bi.h: Remove.
24269         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
24270         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
24272         * config/i386/t-sol2-64: Rename to ...
24273         * config/i386/t-sol2: ... this.
24274         * config/sparc/t-sol2-64: Rename to ...
24275         * config/sparc/t-sol2: ... this.
24277         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
24278         sol2_tm_file_head, sol2_tm_file_tail.
24279         Include ${cpu_type}/sol2.h before sol2.h.
24280         Remove sol2-10.h.
24281         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
24282         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
24283         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
24284         Reflect i386/t-sol2-64 renaming.
24285         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
24286         Reflect sparc/t-sol2-64 renaming.
24288 2014-04-30  Richard Biener  <rguenther@suse.de>
24290         * passes.c (execute_function_todo): Move TODO_verify_stmts
24291         and TODO_verify_ssa under the TODO_verify_il umbrella.
24292         * tree-ssa.h (verify_ssa): Adjust prototype.
24293         * tree-ssa.c (verify_ssa): Add parameter to tell whether
24294         we should verify SSA operands.
24295         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
24296         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
24297         whether we should verify whether not throwing stmts have EH info.
24298         * graphite-scop-detection.c (create_sese_edges): Adjust.
24299         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
24300         * tree-eh.c (lower_try_finally_switch): Do not add the
24301         default case label twice.
24303 2014-04-30  Marek Polacek  <polacek@redhat.com>
24305         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
24306         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
24307         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
24308         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
24310 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
24312         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
24313         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
24314         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
24315         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
24316         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
24317         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
24318         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
24319         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
24321 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
24323         * tree-cfg.c (dump_function_to_file): Dump the return type of
24324         functions, in a line to itself before the function body, mimicking
24325         the layout of a C function.
24327 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
24329         PR tree-optimization/60971
24330         * tree-tailcall.c (process_assignment): Reject conversions which
24331         reduce precision.
24333 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
24335         * calls.c (initialize_argument_information): Always treat
24336         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
24337         (expand_call): Likewise.
24338         (emit_library_call_calue_1): Likewise.
24339         * expr.c (PUSH_ARGS_REVERSED): Do not define.
24340         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
24341         code accordingly.
24343 2014-04-29  Nick Clifton  <nickc@redhat.com>
24345         * config/msp430/msp430.md (umulsidi): Fix typo.
24346         (mulhisi3): Enable even inside interrupt handlers.
24347         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
24348         bigger return address pushed in large mode.
24350 2014-04-29  Nick Clifton  <nickc@redhat.com>
24352         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
24353         (arc_init_reg_tables): Use a machine_mode enum to iterate over
24354         available modes.
24355         * config/m32r/m32r.c (init_reg_tables): Likewise.
24356         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
24357         enum to hold the modes.
24359 2014-04-29  Richard Biener  <rguenther@suse.de>
24361         * dominance.c (free_dominance_info): Add overload with
24362         function parameter.
24363         (dom_info_state): Likewise.
24364         (dom_info_available_p): Likewise.
24365         * basic-block.h (free_dominance_info, dom_info_state,
24366         dom_info_available_p): Declare overloads.
24367         * passes.c (execute_function_todo): Verify that verifiers
24368         don't change dominator info state.  Drop dominator info
24369         for IPA pass invocations.
24370         * cgraph.c (release_function_body): Restore asserts that
24371         dominator information is released.
24373 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
24375         * doc/invoke.texi: Fix typo.
24376         * tree-vrp.c: Fix typos.
24377         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
24379 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24381         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
24383 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
24385         * config/aarch64/aarch64-builtins.c
24386         (aarch64_types_storestruct_lane_qualifiers): New.
24387         (TYPES_STORESTRUCT_LANE): Likewise.
24388         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
24389         (st3_lane): Likewise.
24390         (st4_lane): Likewise.
24391         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
24392         (vec_store_lanesci_lane<mode>): Likewise.
24393         (vec_store_lanesxi_lane<mode>): Likewise.
24394         (aarch64_st2_lane<VQ:mode>): Likewise.
24395         (aarch64_st3_lane<VQ:mode>): Likewise.
24396         (aarch64_st4_lane<VQ:mode>): Likewise.
24397         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
24398         * config/aarch64/arm_neon.h
24399         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
24400         use new macro arguments.
24401         (__ST3_LANE_FUNC): Likewise.
24402         (__ST4_LANE_FUNC): Likewise.
24403         * config/aarch64/iterators.md (V_TWO_ELEM): New.
24404         (V_THREE_ELEM): Likewise.
24405         (V_FOUR_ELEM): Likewise.
24407 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
24409         * doc/gimple.texi: Replace the description of the now-defunct
24410         union gimple_statement_d with a diagram showing the
24411         gimple_statement_base class hierarchy and its relationships to
24412         the GSS_ and GIMPLE_ enums.
24414 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
24416         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
24417         * config/aarch64/aarch64.c
24418         (aarch64_cannot_change_mode_class): Weaken conditions.
24419         (aarch64_modes_tieable_p): New.
24420         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
24422 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
24424         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24425         (loadsync_<mode>): Change mode.
24426         (load_quadpti, store_quadpti): New.
24427         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24428         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24430 2014-04-28  Martin Jambor  <mjambor@suse.cz>
24432         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
24433         same alias type as the original statement.
24434         (subreplacement_assignment_data): New type.
24435         (handle_unscalarized_data_in_subtree): New type of parameter,
24436         generate new memory accesses with same alias type as the original
24437         statement.
24438         (load_assign_lhs_subreplacements): Likewise.
24439         (sra_modify_constructor_assign): Generate new memory accesses with
24440         same alias type as the original statement.
24442 2014-04-28  Richard Biener  <rguenther@suse.de>
24444         * tree-pass.h (TODO_verify_il): Define.
24445         (TODO_verify_all): Complete properly.
24446         * passes.c (execute_function_todo): Move existing loop-closed
24447         SSA verification under TODO_verify_il.
24448         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
24449         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
24450         Fix tree sharing issue.
24452 2014-04-28  Richard Biener  <rguenther@suse.de>
24454         PR middle-end/60092
24455         * builtins.def (DEF_C11_BUILTIN): Add.
24456         (BUILT_IN_ALIGNED_ALLOC): Likewise.
24457         * coretypes.h (enum function_class): Add function_c11_misc.
24458         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24459         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
24460         (call_may_clobber_ref_p_1): Likewise.
24461         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24462         (mark_all_reaching_defs_necessary_1): Likewise.
24463         (propagate_necessity): Likewise.
24464         (eliminate_unnecessary_stmts): Likewise.
24465         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
24467 2014-04-28  Richard Biener  <rguenther@suse.de>
24469         * tree-vrp.c (vrp_var_may_overflow): Remove.
24470         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
24471         with overflow immediately bump to one before that value and
24472         let iteration figure out overflow status.
24474 2014-04-28  Richard Biener  <rguenther@suse.de>
24476         * configure.ac: Do valgrind header checks unconditionally.
24477         Add --enable-valgrind-annotations.
24478         * system.h: Guard valgrind header inclusion with
24479         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
24480         * alloc-pool.c (pool_alloc, pool_free): Use
24481         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
24482         to guard possibly dead code.
24483         * config.in: Regenerated.
24484         * configure: Likewise.
24486 2014-04-28  Jeff Law  <law@redhat.com>
24488         PR tree-optimization/60902
24489         * tree-ssa-threadedge.c
24490         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
24491         over real defs when invalidating outputs from statements that do not
24492         produce useful outputs for threading.
24494 2014-04-28  Richard Biener  <rguenther@suse.de>
24496         PR tree-optimization/60979
24497         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
24498         SCOPs that end in a block with a successor with abnormal
24499         predecessors.
24501 2014-04-28  Richard Biener  <rguenther@suse.de>
24503         * tree-pass.h (execute_pass_list): Adjust prototype.
24504         * passes.c (pass_manager::execute_early_local_passes): Adjust.
24505         (do_per_function): Change callback signature, push all actual
24506         work to the callbals.
24507         (do_per_function_toporder): Likewise.
24508         (execute_function_dump): Adjust.
24509         (execute_function_todo): Likewise.
24510         (clear_last_verified): Likewise.
24511         (verify_curr_properties): Likewise.
24512         (update_properties_after_pass): Likewise.
24513         (execute_pass_list_1): Split out from ...
24514         (execute_pass_list): ... here.  Adjust.
24515         (execute_ipa_pass_list): Likewise.
24516         * cgraphunit.c (cgraph_add_new_function): Adjust.
24517         (analyze_function): Likewise.
24518         (expand_function): Likewise.
24519         * cgraph.c (release_function_body): Free dominance info
24520         here instead of asserting it was magically freed elsewhere.
24522 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24524         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
24525         * configure: Regenerate.
24526         * config/sparc/sparc.opt (muser-mode): New option.
24527         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
24528         for LEON3.
24529         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
24530         * doc/invoke.texi (SPARC options): Document -muser-mode.
24532 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
24534         * cselib.c (find_slot_memmode): Delete.
24535         (cselib_hasher): Change compare_type to a struct.
24536         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
24537         constants.
24538         (preserve_constants_and_equivs): Adjust for new compare_type.
24539         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
24540         (wrap_constant): Delete.
24541         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
24543 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
24545         * doc/install.texi (Building with profile feedback): Remove
24546         outdated sentence.
24548 2014-04-26  Tom de Vries  <tom@codesourcery.com>
24550         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
24551         array accesses.
24553 2014-04-25  Cary Coutant  <ccoutant@google.com>
24555         PR debug/60929
24556         * dwarf2out.c (should_move_die_to_comdat): A type definition
24557         can contain a subprogram definition, but don't move it to a
24558         comdat unit.
24559         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
24560         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
24561         from original DIE.
24562         (clone_tree_hash): Rename to...
24563         (clone_tree_partial): ...this; change callers.  Copy
24564         DW_TAG_subprogram DIEs as declarations.
24565         (copy_decls_walk): Don't copy children of a declaration into a
24566         type unit.
24568 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
24570         PR target/60969
24571         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
24572         alternative 12.
24574 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
24576         * config/arm/predicates.md (call_insn_operand): Add long_call check.
24577         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
24578         reg for long_call.
24579         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
24580         restriction.
24582 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24584         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
24586 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24588         PR tree-optimization/60930
24589         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
24590         creating a multiply candidate by folding two constant
24591         multiplicands when the result overflows.
24593 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
24595         PR tree-optimization/60960
24596         * tree-vect-generic.c (expand_vector_operation): Only call
24597         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
24599 2014-04-25  Tom de Vries  <tom@codesourcery.com>
24601         * expr.c (clobber_reg_mode): New function.
24602         * expr.h (clobber_reg): New function.
24604 2014-04-25  Tom de Vries  <tom@codesourcery.com>
24606         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
24607         clobbers.
24609 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
24610             Tom de Vries  <tom@codesourcery.com>
24612         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
24613         handle.
24614         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
24615         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
24616         new argument to find_all_hard_reg_sets call.
24618 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24620         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
24621         Use HOST_WIDE_INT_C for mask literal.
24622         (aarch_rev16_shleft_mask_imm_p): Likewise.
24624 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
24626         PR target/60941
24627         * config/sparc/sparc.md (ashlsi3_extend): Delete.
24629 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
24631         PR preprocessor/56540
24632         * config/i386/i386-c.c (ix86_target_macros): Define
24633         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
24635 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24637         * configure.ac (tga_func): Remove.
24638         (LIB_TLS_SPEC): Remove.
24639         * configure: Regenerate.
24640         * config.in: Regenerate.
24641         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
24643 2014-04-25  Richard Biener  <rguenther@suse.de>
24645         PR ipa/60912
24646         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
24647         call stmt use/clobber sets during stmt walk instead of
24648         walking the possibly incomplete set of caller edges.
24650 2014-04-25  Richard Biener  <rguenther@suse.de>
24652         PR ipa/60911
24653         * passes.c (apply_ipa_transforms): Inline into only caller ...
24654         (execute_one_pass): ... here.  Properly bring in function
24655         bodies for nodes we want to apply IPA transforms to.
24657 2014-04-24  Cong Hou  <congh@google.com>
24659         PR tree-optimization/60896
24660         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
24661         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
24662         (vect_mark_pattern_stmts): Set the def type of all statements in
24663         PATTERN_DEF_SEQ as vect_internal_def.
24665 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24667         * doc/extend.texi (PowerPC Built-in Functions): Document new
24668         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
24669         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
24671         * config/rs6000/predicates.md (const_0_to_3_operand): New
24672         predicate to match 0..3 integer constants.
24674         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
24675         to support adding miscellaneous builtin functions.
24676         (BU_DFP_MISC_2): Likewise.
24677         (BU_P7_MISC_1): Likewise.
24678         (BU_P7_MISC_2): Likewise.
24679         (BU_P8V_MISC_3): Likewise.
24680         (BU_MISC_1): Likewise.
24681         (BU_MISC_2): Likewise.
24682         (DIVWE): Add extended divide builtin functions.
24683         (DIVWEO): Likewise.
24684         (DIVWEU): Likewise.
24685         (DIVWEUO): Likewise.
24686         (DIVDE): Likewise.
24687         (DIVDEO): Likewise.
24688         (DIVDEU): Likewise.
24689         (DIVDEUO): Likewise.
24690         (DXEX): Add decimal floating-point builtin functions.
24691         (DXEXQ): Likewise.
24692         (DDEDPD): Likewise.
24693         (DDEDPDQ): Likewise.
24694         (DENBCD): Likewise.
24695         (DENBCDQ): Likewise.
24696         (DIEX): Likewise.
24697         (DIEXQ): Likewise.
24698         (DSCLI): Likewise.
24699         (DSCLIQ): Likewise.
24700         (DSCRI): Likewise.
24701         (DSCRIQ): Likewise.
24702         (CDTBCD): Add new BCD builtin functions.
24703         (CBCDTD): Likewise.
24704         (ADDG6S): Likewise.
24705         (BCDADD): Likewise.
24706         (BCDADD_LT): Likewise.
24707         (BCDADD_EQ): Likewise.
24708         (BCDADD_GT): Likewise.
24709         (BCDADD_OV): Likewise.
24710         (BCDSUB): Likewise.
24711         (BCDSUB_LT): Likewise.
24712         (BCDSUB_EQ): Likewise.
24713         (BCDSUB_GT): Likewise.
24714         (BCDSUB_OV): Likewise.
24715         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
24716         (UNPACK_TD): Likewise.
24717         (PACK_TF): Likewise.
24718         (UNPACK_TF): Likewise.
24719         (UNPACK_TF_0): Likewise.
24720         (UNPACK_TF_1): Likewise.
24721         (PACK_V1TI): Likewise.
24722         (UNPACK_V1TI): Likewise.
24724         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24725         support for decimal floating point builtin functions.
24726         (rs6000_expand_ternop_builtin): Add checks for the new builtin
24727         functions that take constant arguments.
24728         (rs6000_invalid_builtin): Add decimal floating point builtin support.
24729         (rs6000_init_builtins): Setup long double, _Decimal64, and
24730         _Decimal128 types for new builtin functions.
24731         (builtin_function_type): Set the unsigned flags appropriately for
24732         the new builtin functions.
24733         (rs6000_opt_masks): Add support for decimal floating point builtin
24734         functions.
24736         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
24737         floating point builtin functions.
24738         (RS6000_BTM_COMMON): Likewise.
24739         (RS6000_BTI_long_double): Likewise.
24740         (RS6000_BTI_dfloat64): Likewise.
24741         (RS6000_BTI_dfloat128): Likewise.
24742         (long_double_type_internal_node): Likewise.
24743         (dfloat64_type_internal_node): Likewise.
24744         (dfloat128_type_internal_node): Likewise.
24746         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
24747         2.07 bcd arithmetic instructions.
24748         (UNSPEC_BCDSUB): Likewise.
24749         (UNSPEC_BCD_OVERFLOW): Likewise.
24750         (UNSPEC_BCD_ADD_SUB): Likewise.
24751         (bcd_add_sub): Likewise.
24752         (BCD_TEST): Likewise.
24753         (bcd<bcd_add_sub>): Likewise.
24754         (bcd<bcd_add_sub>_test): Likewise.
24755         (bcd<bcd_add_sub>_test2): Likewise.
24756         (bcd<bcd_add_sub>_<code>): Likewise.
24757         (peephole2 for combined bcd ops): Likewise.
24759         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
24760         decimal floating point builtin functions.
24761         (UNSPEC_DENBCD): Likewise.
24762         (UNSPEC_DXEX): Likewise.
24763         (UNSPEC_DIEX): Likewise.
24764         (UNSPEC_DSCLI): Likewise.
24765         (UNSPEC_DSCRI): Likewise.
24766         (D64_D128): Likewise.
24767         (dfp_suffix): Likewise.
24768         (dfp_ddedpd_<mode>): Likewise.
24769         (dfp_denbcd_<mode>): Likewise.
24770         (dfp_dxex_<mode>): Likewise.
24771         (dfp_diex_<mode>): Likewise.
24772         (dfp_dscli_<mode>): Likewise.
24773         (dfp_dscri_<mode>): Likewise.
24775         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
24776         builtin functions.
24777         (UNSPEC_CDTBCD): Likewise.
24778         (UNSPEC_CBCDTD): Likewise.
24779         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
24780         (UNSPEC_DIVEO): Likewise.
24781         (UNSPEC_DIVEU): Likewise.
24782         (UNSPEC_DIVEUO): Likewise.
24783         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
24784         pack/unpack 128-bit types.
24785         (UNSPEC_PACK_128BIT): Likewise.
24786         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
24787         (udiv<mode>3): Use idiv_ldiv mode attribute.
24788         (div<mode>3): Likewise.
24789         (addg6s): Add new BCD builtin functions.
24790         (cdtbcd): Likewise.
24791         (cbcdtd): Likewise.
24792         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
24793         (div_extend): Likewise.
24794         (div<div_extend>_<mode>"): Likewise.
24795         (FP128_64): Add support for new builtin functions to pack/unpack
24796         128-bit types.
24797         (unpack<mode>): Likewise.
24798         (unpacktf_0): Likewise.
24799         (unpacktf_1): Likewise.
24800         (unpack<mode>_dm): Likewise.
24801         (unpack<mode>_nodm): Likewise.
24802         (pack<mode>): Likewise.
24803         (unpackv1ti): Likewise.
24804         (packv1ti): Likewise.
24806 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
24808         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
24809         is disabled.
24811 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
24813         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
24814         * gimplify.c (omp_is_private): Change last argument's type to int.
24815         Only diagnose lastprivate if the simd argument is 1, only diagnose
24816         linear if the simd argument is 2.
24817         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
24818         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
24819         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
24820         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
24821         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
24822         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24823         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
24824         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24825         * tree-nested.c (convert_nonlocal_omp_clauses,
24826         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
24828 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
24830         PR target/60822
24831         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
24832         operand 1.
24834 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
24836         * flag-types.h (enum ivar_visibility): Add.
24838 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
24840         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
24841         function * argument.
24843 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
24845         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
24847 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
24848             Tom de Vries  <tom@codesourcery.com>
24850         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
24851         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
24852         reg-note.
24853         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
24854         * emit-rtl.c (try_split): Same.
24856 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
24857             Tom de Vries  <tom@codesourcery.com>
24859         * common.opt (fuse-caller-save): New option.
24861 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
24863         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
24864         elements for big-endian.
24866 2014-04-24  Richard Biener  <rguenther@suse.de>
24868         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
24869         during TER and instead use the sepops interface for expanding
24870         non-GIMPLE_SINGLE_RHS.
24872 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24874         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
24875         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
24877 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24879         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
24880         assembler 64-bit option.
24881         * configure: Regenerate.
24883 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24885         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
24886         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
24887         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
24888         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
24889         (TARGET_CRYPTO): Take TARGET_SIMD into account.
24891 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24893         * config/aarch64/aarch64-builtins.c
24894         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
24895         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
24896         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
24897         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
24898         builtins.
24899         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
24900         (Vrevsuff): New mode attribute.
24902 2014-04-24  Terry Guo  <terry.guo@arm.com>
24904         * config/arm/arm.h (machine_function): Define variable
24905         after_arm_reorg here.
24906         * config/arm/arm.c (after_arm_reorg): Remove the definition.
24907         (arm_split_constant): Update the way to access variable
24908         after_arm_reorg.
24909         (arm_reorg): Ditto.
24910         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
24912 2014-04-23  Tom de Vries  <tom@codesourcery.com>
24914         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
24916 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
24918         * is-a.h: Update comments to reflect the following changes to the
24919         "pointerness" of the API, making the template parameter match the
24920         return type, allowing use of is-a.h with typedefs of pointers.
24921         (is_a_helper::cast): Return a T rather then a pointer to a T, so
24922         that the return type matches the parameter to the is_a_helper.
24923         (as_a): Likewise.
24924         (dyn_cast): Likewise.
24926         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
24927         pointer from the is-a.h API.
24929         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
24930         (is_a_helper <cgraph_node *>::test): ...this, matching change to
24931         is-a.h API.
24932         (is_a_helper <varpool_node>::test): Likewise, convert to...
24933         (is_a_helper <varpool_node *>::test): ...this.
24935         (varpool_first_variable): Update for removal of implicit pointer
24936         from the is-a.h API.
24937         (varpool_next_variable): Likewise.
24938         (varpool_first_static_initializer): Likewise.
24939         (varpool_next_static_initializer): Likewise.
24940         (varpool_first_defined_variable): Likewise.
24941         (varpool_next_defined_variable): Likewise.
24942         (cgraph_first_defined_function): Likewise.
24943         (cgraph_next_defined_function): Likewise.
24944         (cgraph_first_function): Likewise.
24945         (cgraph_next_function): Likewise.
24946         (cgraph_first_function_with_gimple_body): Likewise.
24947         (cgraph_next_function_with_gimple_body): Likewise.
24948         (cgraph_alias_target): Likewise.
24949         (varpool_alias_target): Likewise.
24950         (cgraph_function_or_thunk_node): Likewise.
24951         (varpool_variable_node): Likewise.
24952         (symtab_real_symbol_p): Likewise.
24953         * cgraphunit.c (referred_to_p): Likewise.
24954         (analyze_functions): Likewise.
24955         (handle_alias_pairs): Likewise.
24956         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
24957         * gimple-ssa.h (gimple_vuse_op): Likewise.
24958         (gimple_vdef_op): Likewise.
24959         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
24960         * gimple.c (gimple_build_asm_1): Likewise.
24961         (gimple_build_try): Likewise.
24962         (gimple_build_resx): Likewise.
24963         (gimple_build_eh_dispatch): Likewise.
24964         (gimple_build_omp_for): Likewise.
24965         (gimple_omp_for_set_clauses): Likewise.
24967         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
24968         (is_a_helper <gimple_statement_asm *>::test): ...this.
24969         (is_a_helper <gimple_statement_bind>::test): Convert to...
24970         (is_a_helper <gimple_statement_bind *>::test): ...this.
24971         (is_a_helper <gimple_statement_call>::test): Convert to...
24972         (is_a_helper <gimple_statement_call *>::test): ...this.
24973         (is_a_helper <gimple_statement_catch>::test): Convert to...
24974         (is_a_helper <gimple_statement_catch *>::test): ...this.
24975         (is_a_helper <gimple_statement_resx>::test): Convert to...
24976         (is_a_helper <gimple_statement_resx *>::test): ...this.
24977         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
24978         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
24979         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
24980         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
24981         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
24982         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
24983         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
24984         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
24985         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
24986         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
24987         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
24988         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
24989         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
24990         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
24991         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
24992         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
24993         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
24994         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
24995         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
24996         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
24997         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
24998         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
24999         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
25000         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
25001         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
25002         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
25003         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
25004         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
25005         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
25006         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
25007         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
25008         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
25009         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
25010         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
25011         (is_a_helper <gimple_statement_phi>::test): Convert to...
25012         (is_a_helper <gimple_statement_phi *>::test): ...this.
25013         (is_a_helper <gimple_statement_transaction>::test): Convert to...
25014         (is_a_helper <gimple_statement_transaction *>::test): ...this.
25015         (is_a_helper <gimple_statement_try>::test): Convert to...
25016         (is_a_helper <gimple_statement_try *>::test): ...this.
25017         (is_a_helper <gimple_statement_wce>::test): Convert to...
25018         (is_a_helper <gimple_statement_wce *>::test): ...this.
25019         (is_a_helper <const gimple_statement_asm>::test): Convert to...
25020         (is_a_helper <const gimple_statement_asm *>::test): ...this.
25021         (is_a_helper <const gimple_statement_bind>::test): Convert to...
25022         (is_a_helper <const gimple_statement_bind *>::test): ...this.
25023         (is_a_helper <const gimple_statement_call>::test): Convert to...
25024         (is_a_helper <const gimple_statement_call *>::test): ...this.
25025         (is_a_helper <const gimple_statement_catch>::test): Convert to...
25026         (is_a_helper <const gimple_statement_catch *>::test): ...this.
25027         (is_a_helper <const gimple_statement_resx>::test): Convert to...
25028         (is_a_helper <const gimple_statement_resx *>::test): ...this.
25029         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
25030         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
25031         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
25032         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
25033         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
25034         Convert to...
25035         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
25036         ...this.
25037         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
25038         Convert to...
25039         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
25040         ...this.
25041         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
25042         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
25043         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
25044         to...
25045         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
25046         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
25047         to...
25048         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
25049         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
25050         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
25051         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
25052         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
25053         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
25054         to...
25055         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
25056         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
25057         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
25058         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
25059         to...
25060         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
25061         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
25062         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
25063         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
25064         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
25065         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
25066         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
25067         (is_a_helper <const gimple_statement_phi>::test): Convert to...
25068         (is_a_helper <const gimple_statement_phi *>::test): ...this.
25069         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
25070         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
25071         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
25072         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
25073         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
25074         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
25075         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
25076         to...
25077         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
25078         ...this.
25079         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
25080         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
25082         (gimple_use_ops): Update for removal of implicit pointer from the
25083         is-a.h API.
25084         (gimple_set_use_ops): Likewise.
25085         (gimple_vuse): Likewise.
25086         (gimple_vdef): Likewise.
25087         (gimple_vuse_ptr): Likewise.
25088         (gimple_vdef_ptr): Likewise.
25089         (gimple_set_vuse): Likewise.
25090         (gimple_set_vdef): Likewise.
25091         (gimple_omp_return_set_lhs): Likewise.
25092         (gimple_omp_return_lhs): Likewise.
25093         (gimple_omp_return_lhs_ptr): Likewise.
25094         (gimple_call_fntype): Likewise.
25095         (gimple_call_set_fntype): Likewise.
25096         (gimple_call_set_internal_fn): Likewise.
25097         (gimple_call_use_set): Likewise.
25098         (gimple_call_clobber_set): Likewise.
25099         (gimple_bind_vars): Likewise.
25100         (gimple_bind_set_vars): Likewise.
25101         (gimple_bind_body_ptr): Likewise.
25102         (gimple_bind_set_body): Likewise.
25103         (gimple_bind_add_stmt): Likewise.
25104         (gimple_bind_block): Likewise.
25105         (gimple_bind_set_block): Likewise.
25106         (gimple_asm_ninputs): Likewise.
25107         (gimple_asm_noutputs): Likewise.
25108         (gimple_asm_nclobbers): Likewise.
25109         (gimple_asm_nlabels): Likewise.
25110         (gimple_asm_input_op): Likewise.
25111         (gimple_asm_input_op_ptr): Likewise.
25112         (gimple_asm_output_op): Likewise.
25113         (gimple_asm_output_op_ptr): Likewise.
25114         (gimple_asm_set_output_op): Likewise.
25115         (gimple_asm_clobber_op): Likewise.
25116         (gimple_asm_set_clobber_op): Likewise.
25117         (gimple_asm_label_op): Likewise.
25118         (gimple_asm_set_label_op): Likewise.
25119         (gimple_asm_string): Likewise.
25120         (gimple_catch_types): Likewise.
25121         (gimple_catch_types_ptr): Likewise.
25122         (gimple_catch_handler_ptr): Likewise.
25123         (gimple_catch_set_types): Likewise.
25124         (gimple_catch_set_handler): Likewise.
25125         (gimple_eh_filter_types): Likewise.
25126         (gimple_eh_filter_types_ptr): Likewise.
25127         (gimple_eh_filter_failure_ptr): Likewise.
25128         (gimple_eh_filter_set_types): Likewise.
25129         (gimple_eh_filter_set_failure): Likewise.
25130         (gimple_eh_must_not_throw_fndecl): Likewise.
25131         (gimple_eh_must_not_throw_set_fndecl): Likewise.
25132         (gimple_eh_else_n_body_ptr): Likewise.
25133         (gimple_eh_else_e_body_ptr): Likewise.
25134         (gimple_eh_else_set_n_body): Likewise.
25135         (gimple_eh_else_set_e_body): Likewise.
25136         (gimple_try_eval_ptr): Likewise.
25137         (gimple_try_cleanup_ptr): Likewise.
25138         (gimple_try_set_eval): Likewise.
25139         (gimple_try_set_cleanup): Likewise.
25140         (gimple_wce_cleanup_ptr): Likewise.
25141         (gimple_wce_set_cleanup): Likewise.
25142         (gimple_phi_capacity): Likewise.
25143         (gimple_phi_num_args): Likewise.
25144         (gimple_phi_result): Likewise.
25145         (gimple_phi_result_ptr): Likewise.
25146         (gimple_phi_set_result): Likewise.
25147         (gimple_phi_arg): Likewise.
25148         (gimple_phi_set_arg): Likewise.
25149         (gimple_resx_region): Likewise.
25150         (gimple_resx_set_region): Likewise.
25151         (gimple_eh_dispatch_region): Likewise.
25152         (gimple_eh_dispatch_set_region): Likewise.
25153         (gimple_omp_critical_name): Likewise.
25154         (gimple_omp_critical_name_ptr): Likewise.
25155         (gimple_omp_critical_set_name): Likewise.
25156         (gimple_omp_for_clauses): Likewise.
25157         (gimple_omp_for_clauses_ptr): Likewise.
25158         (gimple_omp_for_set_clauses): Likewise.
25159         (gimple_omp_for_collapse): Likewise.
25160         (gimple_omp_for_index): Likewise.
25161         (gimple_omp_for_index_ptr): Likewise.
25162         (gimple_omp_for_set_index): Likewise.
25163         (gimple_omp_for_initial): Likewise.
25164         (gimple_omp_for_initial_ptr): Likewise.
25165         (gimple_omp_for_set_initial): Likewise.
25166         (gimple_omp_for_final): Likewise.
25167         (gimple_omp_for_final_ptr): Likewise.
25168         (gimple_omp_for_set_final): Likewise.
25169         (gimple_omp_for_incr): Likewise.
25170         (gimple_omp_for_incr_ptr): Likewise.
25171         (gimple_omp_for_set_incr): Likewise.
25172         (gimple_omp_for_pre_body_ptr): Likewise.
25173         (gimple_omp_for_set_pre_body): Likewise.
25174         (gimple_omp_parallel_clauses): Likewise.
25175         (gimple_omp_parallel_clauses_ptr): Likewise.
25176         (gimple_omp_parallel_set_clauses): Likewise.
25177         (gimple_omp_parallel_child_fn): Likewise.
25178         (gimple_omp_parallel_child_fn_ptr): Likewise.
25179         (gimple_omp_parallel_set_child_fn): Likewise.
25180         (gimple_omp_parallel_data_arg): Likewise.
25181         (gimple_omp_parallel_data_arg_ptr): Likewise.
25182         (gimple_omp_parallel_set_data_arg): Likewise.
25183         (gimple_omp_task_clauses): Likewise.
25184         (gimple_omp_task_clauses_ptr): Likewise.
25185         (gimple_omp_task_set_clauses): Likewise.
25186         (gimple_omp_task_child_fn): Likewise.
25187         (gimple_omp_task_child_fn_ptr): Likewise.
25188         (gimple_omp_task_set_child_fn): Likewise.
25189         (gimple_omp_task_data_arg): Likewise.
25190         (gimple_omp_task_data_arg_ptr): Likewise.
25191         (gimple_omp_task_set_data_arg): Likewise.
25192         (gimple_omp_taskreg_clauses): Likewise.
25193         (gimple_omp_taskreg_clauses_ptr): Likewise.
25194         (gimple_omp_taskreg_set_clauses): Likewise.
25195         (gimple_omp_taskreg_child_fn): Likewise.
25196         (gimple_omp_taskreg_child_fn_ptr): Likewise.
25197         (gimple_omp_taskreg_set_child_fn): Likewise.
25198         (gimple_omp_taskreg_data_arg): Likewise.
25199         (gimple_omp_taskreg_data_arg_ptr): Likewise.
25200         (gimple_omp_taskreg_set_data_arg): Likewise.
25201         (gimple_omp_task_copy_fn): Likewise.
25202         (gimple_omp_task_copy_fn_ptr): Likewise.
25203         (gimple_omp_task_set_copy_fn): Likewise.
25204         (gimple_omp_task_arg_size): Likewise.
25205         (gimple_omp_task_arg_size_ptr): Likewise.
25206         (gimple_omp_task_set_arg_size): Likewise.
25207         (gimple_omp_task_arg_align): Likewise.
25208         (gimple_omp_task_arg_align_ptr): Likewise.
25209         (gimple_omp_task_set_arg_align): Likewise.
25210         (gimple_omp_single_clauses): Likewise.
25211         (gimple_omp_single_clauses_ptr): Likewise.
25212         (gimple_omp_single_set_clauses): Likewise.
25213         (gimple_omp_target_clauses): Likewise.
25214         (gimple_omp_target_clauses_ptr): Likewise.
25215         (gimple_omp_target_set_clauses): Likewise.
25216         (gimple_omp_target_child_fn): Likewise.
25217         (gimple_omp_target_child_fn_ptr): Likewise.
25218         (gimple_omp_target_set_child_fn): Likewise.
25219         (gimple_omp_target_data_arg): Likewise.
25220         (gimple_omp_target_data_arg_ptr): Likewise.
25221         (gimple_omp_target_set_data_arg): Likewise.
25222         (gimple_omp_teams_clauses): Likewise.
25223         (gimple_omp_teams_clauses_ptr): Likewise.
25224         (gimple_omp_teams_set_clauses): Likewise.
25225         (gimple_omp_sections_clauses): Likewise.
25226         (gimple_omp_sections_clauses_ptr): Likewise.
25227         (gimple_omp_sections_set_clauses): Likewise.
25228         (gimple_omp_sections_control): Likewise.
25229         (gimple_omp_sections_control_ptr): Likewise.
25230         (gimple_omp_sections_set_control): Likewise.
25231         (gimple_omp_for_set_cond): Likewise.
25232         (gimple_omp_for_cond): Likewise.
25233         (gimple_omp_atomic_store_set_val): Likewise.
25234         (gimple_omp_atomic_store_val): Likewise.
25235         (gimple_omp_atomic_store_val_ptr): Likewise.
25236         (gimple_omp_atomic_load_set_lhs): Likewise.
25237         (gimple_omp_atomic_load_lhs): Likewise.
25238         (gimple_omp_atomic_load_lhs_ptr): Likewise.
25239         (gimple_omp_atomic_load_set_rhs): Likewise.
25240         (gimple_omp_atomic_load_rhs): Likewise.
25241         (gimple_omp_atomic_load_rhs_ptr): Likewise.
25242         (gimple_omp_continue_control_def): Likewise.
25243         (gimple_omp_continue_control_def_ptr): Likewise.
25244         (gimple_omp_continue_set_control_def): Likewise.
25245         (gimple_omp_continue_control_use): Likewise.
25246         (gimple_omp_continue_control_use_ptr): Likewise.
25247         (gimple_omp_continue_set_control_use): Likewise.
25248         (gimple_transaction_body_ptr): Likewise.
25249         (gimple_transaction_label): Likewise.
25250         (gimple_transaction_label_ptr): Likewise.
25251         (gimple_transaction_set_body): Likewise.
25252         (gimple_transaction_set_label): Likewise.
25254         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
25255         * ipa-inline-analysis.c (inline_write_summary): Likewise.
25256         * ipa-ref.c (ipa_record_reference): Likewise.
25257         * ipa-reference.c (analyze_function): Likewise.
25258         (ipa_reference_write_optimization_summary): Likewise.
25259         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
25260         (address_taken_from_non_vtable_p): Likewise.
25261         (comdat_can_be_unshared_p_1): Likewise.
25262         * lto-cgraph.c (lto_output_ref): Likewise.
25263         (add_references): Likewise.
25264         (compute_ltrans_boundary): Likewise.
25265         (output_symtab): Likewise.
25266         (input_ref): Likewise.
25267         (input_cgraph_1): Likewise.
25268         (output_cgraph_opt_summary): Likewise.
25269         * lto-streamer-out.c (lto_output): Likewise.
25270         (output_symbol_p): Likewise.
25271         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
25272         (lsei_start_function_in_partition): Likewise.
25273         (lsei_next_variable_in_partition): Likewise.
25274         (lsei_start_variable_in_partition): Likewise.
25275         * symtab.c (insert_to_assembler_name_hash): Likewise.
25276         (unlink_from_assembler_name_hash): Likewise.
25277         (symtab_unregister_node): Likewise.
25278         (symtab_remove_node): Likewise.
25279         (dump_symtab_node): Likewise.
25280         (verify_symtab_base): Likewise.
25281         (verify_symtab_node): Likewise.
25282         (symtab_make_decl_local): Likewise.
25283         (symtab_alias_ultimate_target): Likewise.
25284         (symtab_resolve_alias): Likewise.
25285         (symtab_get_symbol_partitioning_class): Likewise.
25286         * tree-phinodes.c (allocate_phi_node): Likewise.
25287         (reserve_phi_args_for_new_edge): Likewise.
25288         (remove_phi_args): Likewise.
25289         * varpool.c (varpool_node_for_asm): Likewise.
25290         (varpool_remove_unreferenced_decls): Likewise.
25292 2014-04-23  Jeff Law  <law@redhat.com>
25294         PR tree-optimization/60902
25295         * tree-ssa-threadedge.c
25296         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
25297         invalidate outputs from statements that do not produce useful
25298         outputs for threading.
25300 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
25302         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
25303         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
25304         machine descriptions for Stack Smashing Protector.
25306 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
25308         * aarch64.md (<optab>_rol<mode>3): New pattern.
25309         (<optab>_rolsi3_uxtw): Likewise.
25310         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
25312 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
25314         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
25315         (arm_cortex_a12_tune): Likewise.
25317 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25319         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
25321 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25323         * config/arm/arm.md (arm_rev16si2): New pattern.
25324         (arm_rev16si2_alt): Likewise.
25325         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
25327 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25329         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
25330         (rev16<mode>2_alt): Likewise.
25331         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
25332         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
25333         (aarch_rev16_shleft_mask_imm_p): Likewise.
25334         (aarch_rev16_p_1): Likewise.
25335         (aarch_rev16_p): Likewise.
25336         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
25337         (aarch_rev16_shright_mask_imm_p): Likewise.
25338         (aarch_rev16_shleft_mask_imm_p): Likewise.
25340 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25342         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
25343         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
25344         rev cost.
25345         (cortex_a53_extra_costs): Likewise.
25346         (cortex_a57_extra_costs): Likewise.
25347         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
25348         (cortexa7_extra_costs): Likewise.
25349         (cortexa8_extra_costs): Likewise.
25350         (cortexa12_extra_costs): Likewise.
25351         (cortexa15_extra_costs): Likewise.
25352         (v7m_extra_costs): Likewise.
25353         (arm_new_rtx_costs): Handle BSWAP.
25355 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25357         * config/arm/arm.c (cortexa8_extra_costs): New table.
25358         (arm_cortex_a8_tune): New tuning struct.
25359         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
25361 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25363         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
25365 2014-04-23  Richard Biener  <rguenther@suse.de>
25367         * Makefile.in (OBJS): Remove loop-unswitch.o.
25368         * tree-pass.h (make_pass_rtl_unswitch): Remove.
25369         * passes.def (pass_rtl_unswitch): Likewise.
25370         * loop-init.c (gate_rtl_unswitch): Likewise.
25371         (rtl_unswitch): Likewise.
25372         (pass_data_rtl_unswitch): Likewise.
25373         (pass_rtl_unswitch): Likewise.
25374         (make_pass_rtl_unswitch): Likewise.
25375         * rtl.h (reversed_condition): Likewise.
25376         (compare_and_jump_seq): Likewise.
25377         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
25378         and make static.
25379         * loop-unroll.c (compare_and_jump_seq): Likewise.
25381 2014-04-23  Richard Biener  <rguenther@suse.de>
25383         PR tree-optimization/60903
25384         * tree-ssa-loop-im.c (analyze_memory_references): Remove
25385         commented code block.
25386         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
25387         loop flags to newly created BBs and edges.
25389 2014-04-23  Nick Clifton  <nickc@redhat.com>
25391         * config/msp430/msp430.c (msp430_handle_option): Move function
25392         to msp430-common.c
25393         (msp430_option_override): Simplify mcu and mcpu option handling.
25394         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
25395         support for -mhwmult command line option.
25396         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
25397         -mhwmult command line option.
25398         (msp430_hwmult_enabled): Delete.
25399         (msp43o_output_labelref): Add support for -mhwmult command line option.
25400         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
25401         (umulsidi3): Likewise.
25402         * config/msp430/msp430.opt (mmcu): Add Report attribute.
25403         (mcpu, mlarge, msmall): Likewise.
25404         (mhwmult): New option.
25405         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
25406         prototype.
25407         (msp430_is_f5_mcu): Remove prototype.
25408         (msp430_use_f5_series_hwmult): Add prototype.
25409         * config/msp430/msp430-opts.h: New file.
25410         * common/config/msp430: New directory.
25411         * common/config/msp430/msp430-common.c: New file.
25412         * config.gcc (msp430): Remove target_has_targetm_common.
25413         * doc/invoke.texi: Document -mhwmult command line option.
25415 2014-04-23  Nick Clifton  <nickc@redhat.com>
25417         * config/i386/cygwin.h (ENDFILE_SPEC): Include
25418         default-manifest.o if it can be found in the search path.
25419         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25421 2014-04-23  Terry Guo  <terry.guo@arm.com>
25423         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
25425 2014-04-23  Richard Biener  <rguenther@suse.de>
25427         PR middle-end/60895
25428         * tree-inline.c (declare_return_variable): Use mark_addressable.
25430 2014-04-23  Richard Biener  <rguenther@suse.de>
25432         PR middle-end/60891
25433         * loop-init.c (loop_optimizer_init): Make sure to apply
25434         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
25436 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25438         PR sanitizer/60275
25439         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
25440         New options.
25441         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
25442         if flag_sanitize_undefined_trap_on_error.
25443         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
25444         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
25445         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
25446         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
25447         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
25448         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
25449         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
25450         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
25451         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
25452         * ubsan.c (ubsan_instrument_unreachable): Return
25453         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
25454         (ubsan_expand_null_ifn): Emit __builtin_trap ()
25455         if flag_sanitize_undefined_trap_on_error and
25456         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
25457         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
25458         instrument_bool_enum_load): Emit __builtin_trap () if
25459         flag_sanitize_undefined_trap_on_error and
25460         __builtin_handle_*_abort () if !flag_sanitize_recover.
25461         * doc/invoke.texi (-fsanitize-recover,
25462         -fsanitize-undefined-trap-on-error): Document.
25464 2014-04-22  Christian Bruel  <christian.bruel@st.com>
25466         * config/sh/sh.md (mov<mode>): Replace movQIHI.
25467          Force immediates to SImode.
25469 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
25471         * config/nios2/nios2.md (UNSPEC_ROUND): New.
25472         (lroundsfsi2): New.
25473         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
25474         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
25475         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
25476         (nios2_fpu_insn): Add entry for round.
25477         (N2FPU_NO_ERRNO_P): Define.
25478         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
25479         flag_errno_math.
25480         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
25482 2014-04-22  Richard Henderson  <rth@redhat.com>
25484         * config/aarch64/aarch64 (addti3, subti3): New expanders.
25485         (add<GPI>3_compare0): Remove leading * from name.
25486         (add<GPI>3_carryin): Likewise.
25487         (sub<GPI>3_compare0): Likewise.
25488         (sub<GPI>3_carryin): Likewise.
25489         (<su_optab>mulditi3): New expander.
25490         (multi3): New expander.
25491         (madd<GPI>): Remove leading * from name.
25493 2014-04-22  Martin Jambor  <mjambor@suse.cz>
25495         * cgraphclones.c (cgraph_function_versioning): Copy
25496         ipa_transforms_to_apply instead of asserting it is empty.
25498 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
25500         PR target/60868
25501         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
25502         on count_exp to get mode.
25504 2014-04-22  Andrew Pinski  <apinski@cavium.com>
25506         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25507         Handle TLS for ILP32.
25508         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
25509         (tlsie_small_<mode>): this and handle PTR.
25510         (tlsie_small_sidi): New pattern.
25511         (tlsle_small): Change to an expand to handle ILP32.
25512         (tlsle_small_<mode>): New pattern.
25513         (tlsdesc_small): Rename to ...
25514         (tlsdesc_small_<mode>): this and handle PTR.
25516 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25518         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
25520 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25522         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25523         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
25524         (aarch64_types_signed_poly_qualifiers): Likewise.
25525         (aarch64_types_unsigned_signed_qualifiers): Likewise.
25526         (aarch64_types_poly_signed_qualifiers): Likewise.
25527         (TYPES_REINTERP_SS): Type macro added.
25528         (TYPES_REINTERP_SU): Likewise.
25529         (TYPES_REINTERP_SP): Likewise.
25530         (TYPES_REINTERP_US): Likewise.
25531         (TYPES_REINTERP_PS): Likewise.
25532         (aarch64_fold_builtin): New expression folding added.
25533         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
25534         Declarations removed.
25535         (REINTERP_SS): Declarations added.
25536         (REINTERP_US): Likewise.
25537         (REINTERP_PS): Likewise.
25538         (REINTERP_SU): Likewise.
25539         (REINTERP_SP): Likewise.
25540         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
25541         (vreinterpretq_p8_f64): Likewise.
25542         (vreinterpret_p16_f64): Likewise.
25543         (vreinterpretq_p16_f64): Likewise.
25544         (vreinterpret_f32_f64): Likewise.
25545         (vreinterpretq_f32_f64): Likewise.
25546         (vreinterpret_f64_f32): Likewise.
25547         (vreinterpret_f64_p8): Likewise.
25548         (vreinterpret_f64_p16): Likewise.
25549         (vreinterpret_f64_s8): Likewise.
25550         (vreinterpret_f64_s16): Likewise.
25551         (vreinterpret_f64_s32): Likewise.
25552         (vreinterpret_f64_s64): Likewise.
25553         (vreinterpret_f64_u8): Likewise.
25554         (vreinterpret_f64_u16): Likewise.
25555         (vreinterpret_f64_u32): Likewise.
25556         (vreinterpret_f64_u64): Likewise.
25557         (vreinterpretq_f64_f32): Likewise.
25558         (vreinterpretq_f64_p8): Likewise.
25559         (vreinterpretq_f64_p16): Likewise.
25560         (vreinterpretq_f64_s8): Likewise.
25561         (vreinterpretq_f64_s16): Likewise.
25562         (vreinterpretq_f64_s32): Likewise.
25563         (vreinterpretq_f64_s64): Likewise.
25564         (vreinterpretq_f64_u8): Likewise.
25565         (vreinterpretq_f64_u16): Likewise.
25566         (vreinterpretq_f64_u32): Likewise.
25567         (vreinterpretq_f64_u64): Likewise.
25568         (vreinterpret_s64_f64): Likewise.
25569         (vreinterpretq_s64_f64): Likewise.
25570         (vreinterpret_u64_f64): Likewise.
25571         (vreinterpretq_u64_f64): Likewise.
25572         (vreinterpret_s8_f64): Likewise.
25573         (vreinterpretq_s8_f64): Likewise.
25574         (vreinterpret_s16_f64): Likewise.
25575         (vreinterpretq_s16_f64): Likewise.
25576         (vreinterpret_s32_f64): Likewise.
25577         (vreinterpretq_s32_f64): Likewise.
25578         (vreinterpret_u8_f64): Likewise.
25579         (vreinterpretq_u8_f64): Likewise.
25580         (vreinterpret_u16_f64): Likewise.
25581         (vreinterpretq_u16_f64): Likewise.
25582         (vreinterpret_u32_f64): Likewise.
25583         (vreinterpretq_u32_f64): Likewise.
25585 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25587         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25588         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
25589         (vreinterpret_p8_s8): Likewise.
25590         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
25591         (vreinterpret_p8_s16): Likewise.
25592         (vreinterpret_p8_s32): Likewise.
25593         (vreinterpret_p8_s64): Likewise.
25594         (vreinterpret_p8_f32): Likewise.
25595         (vreinterpret_p8_u8): Likewise.
25596         (vreinterpret_p8_u16): Likewise.
25597         (vreinterpret_p8_u32): Likewise.
25598         (vreinterpret_p8_u64): Likewise.
25599         (vreinterpret_p8_p16): Likewise.
25600         (vreinterpretq_p8_s8): Likewise.
25601         (vreinterpretq_p8_s16): Likewise.
25602         (vreinterpretq_p8_s32): Likewise.
25603         (vreinterpretq_p8_s64): Likewise.
25604         (vreinterpretq_p8_f32): Likewise.
25605         (vreinterpretq_p8_u8): Likewise.
25606         (vreinterpretq_p8_u16): Likewise.
25607         (vreinterpretq_p8_u32): Likewise.
25608         (vreinterpretq_p8_u64): Likewise.
25609         (vreinterpretq_p8_p16): Likewise.
25610         (vreinterpret_p16_s8): Likewise.
25611         (vreinterpret_p16_s16): Likewise.
25612         (vreinterpret_p16_s32): Likewise.
25613         (vreinterpret_p16_s64): Likewise.
25614         (vreinterpret_p16_f32): Likewise.
25615         (vreinterpret_p16_u8): Likewise.
25616         (vreinterpret_p16_u16): Likewise.
25617         (vreinterpret_p16_u32): Likewise.
25618         (vreinterpret_p16_u64): Likewise.
25619         (vreinterpret_p16_p8): Likewise.
25620         (vreinterpretq_p16_s8): Likewise.
25621         (vreinterpretq_p16_s16): Likewise.
25622         (vreinterpretq_p16_s32): Likewise.
25623         (vreinterpretq_p16_s64): Likewise.
25624         (vreinterpretq_p16_f32): Likewise.
25625         (vreinterpretq_p16_u8): Likewise.
25626         (vreinterpretq_p16_u16): Likewise.
25627         (vreinterpretq_p16_u32): Likewise.
25628         (vreinterpretq_p16_u64): Likewise.
25629         (vreinterpretq_p16_p8): Likewise.
25630         (vreinterpret_f32_s8): Likewise.
25631         (vreinterpret_f32_s16): Likewise.
25632         (vreinterpret_f32_s32): Likewise.
25633         (vreinterpret_f32_s64): Likewise.
25634         (vreinterpret_f32_u8): Likewise.
25635         (vreinterpret_f32_u16): Likewise.
25636         (vreinterpret_f32_u32): Likewise.
25637         (vreinterpret_f32_u64): Likewise.
25638         (vreinterpret_f32_p8): Likewise.
25639         (vreinterpret_f32_p16): Likewise.
25640         (vreinterpretq_f32_s8): Likewise.
25641         (vreinterpretq_f32_s16): Likewise.
25642         (vreinterpretq_f32_s32): Likewise.
25643         (vreinterpretq_f32_s64): Likewise.
25644         (vreinterpretq_f32_u8): Likewise.
25645         (vreinterpretq_f32_u16): Likewise.
25646         (vreinterpretq_f32_u32): Likewise.
25647         (vreinterpretq_f32_u64): Likewise.
25648         (vreinterpretq_f32_p8): Likewise.
25649         (vreinterpretq_f32_p16): Likewise.
25650         (vreinterpret_s64_s8): Likewise.
25651         (vreinterpret_s64_s16): Likewise.
25652         (vreinterpret_s64_s32): Likewise.
25653         (vreinterpret_s64_f32): Likewise.
25654         (vreinterpret_s64_u8): Likewise.
25655         (vreinterpret_s64_u16): Likewise.
25656         (vreinterpret_s64_u32): Likewise.
25657         (vreinterpret_s64_u64): Likewise.
25658         (vreinterpret_s64_p8): Likewise.
25659         (vreinterpret_s64_p16): Likewise.
25660         (vreinterpretq_s64_s8): Likewise.
25661         (vreinterpretq_s64_s16): Likewise.
25662         (vreinterpretq_s64_s32): Likewise.
25663         (vreinterpretq_s64_f32): Likewise.
25664         (vreinterpretq_s64_u8): Likewise.
25665         (vreinterpretq_s64_u16): Likewise.
25666         (vreinterpretq_s64_u32): Likewise.
25667         (vreinterpretq_s64_u64): Likewise.
25668         (vreinterpretq_s64_p8): Likewise.
25669         (vreinterpretq_s64_p16): Likewise.
25670         (vreinterpret_u64_s8): Likewise.
25671         (vreinterpret_u64_s16): Likewise.
25672         (vreinterpret_u64_s32): Likewise.
25673         (vreinterpret_u64_s64): Likewise.
25674         (vreinterpret_u64_f32): Likewise.
25675         (vreinterpret_u64_u8): Likewise.
25676         (vreinterpret_u64_u16): Likewise.
25677         (vreinterpret_u64_u32): Likewise.
25678         (vreinterpret_u64_p8): Likewise.
25679         (vreinterpret_u64_p16): Likewise.
25680         (vreinterpretq_u64_s8): Likewise.
25681         (vreinterpretq_u64_s16): Likewise.
25682         (vreinterpretq_u64_s32): Likewise.
25683         (vreinterpretq_u64_s64): Likewise.
25684         (vreinterpretq_u64_f32): Likewise.
25685         (vreinterpretq_u64_u8): Likewise.
25686         (vreinterpretq_u64_u16): Likewise.
25687         (vreinterpretq_u64_u32): Likewise.
25688         (vreinterpretq_u64_p8): Likewise.
25689         (vreinterpretq_u64_p16): Likewise.
25690         (vreinterpret_s8_s16): Likewise.
25691         (vreinterpret_s8_s32): Likewise.
25692         (vreinterpret_s8_s64): Likewise.
25693         (vreinterpret_s8_f32): Likewise.
25694         (vreinterpret_s8_u8): Likewise.
25695         (vreinterpret_s8_u16): Likewise.
25696         (vreinterpret_s8_u32): Likewise.
25697         (vreinterpret_s8_u64): Likewise.
25698         (vreinterpret_s8_p8): Likewise.
25699         (vreinterpret_s8_p16): Likewise.
25700         (vreinterpretq_s8_s16): Likewise.
25701         (vreinterpretq_s8_s32): Likewise.
25702         (vreinterpretq_s8_s64): Likewise.
25703         (vreinterpretq_s8_f32): Likewise.
25704         (vreinterpretq_s8_u8): Likewise.
25705         (vreinterpretq_s8_u16): Likewise.
25706         (vreinterpretq_s8_u32): Likewise.
25707         (vreinterpretq_s8_u64): Likewise.
25708         (vreinterpretq_s8_p8): Likewise.
25709         (vreinterpretq_s8_p16): Likewise.
25710         (vreinterpret_s16_s8): Likewise.
25711         (vreinterpret_s16_s32): Likewise.
25712         (vreinterpret_s16_s64): Likewise.
25713         (vreinterpret_s16_f32): Likewise.
25714         (vreinterpret_s16_u8): Likewise.
25715         (vreinterpret_s16_u16): Likewise.
25716         (vreinterpret_s16_u32): Likewise.
25717         (vreinterpret_s16_u64): Likewise.
25718         (vreinterpret_s16_p8): Likewise.
25719         (vreinterpret_s16_p16): Likewise.
25720         (vreinterpretq_s16_s8): Likewise.
25721         (vreinterpretq_s16_s32): Likewise.
25722         (vreinterpretq_s16_s64): Likewise.
25723         (vreinterpretq_s16_f32): Likewise.
25724         (vreinterpretq_s16_u8): Likewise.
25725         (vreinterpretq_s16_u16): Likewise.
25726         (vreinterpretq_s16_u32): Likewise.
25727         (vreinterpretq_s16_u64): Likewise.
25728         (vreinterpretq_s16_p8): Likewise.
25729         (vreinterpretq_s16_p16): Likewise.
25730         (vreinterpret_s32_s8): Likewise.
25731         (vreinterpret_s32_s16): Likewise.
25732         (vreinterpret_s32_s64): Likewise.
25733         (vreinterpret_s32_f32): Likewise.
25734         (vreinterpret_s32_u8): Likewise.
25735         (vreinterpret_s32_u16): Likewise.
25736         (vreinterpret_s32_u32): Likewise.
25737         (vreinterpret_s32_u64): Likewise.
25738         (vreinterpret_s32_p8): Likewise.
25739         (vreinterpret_s32_p16): Likewise.
25740         (vreinterpretq_s32_s8): Likewise.
25741         (vreinterpretq_s32_s16): Likewise.
25742         (vreinterpretq_s32_s64): Likewise.
25743         (vreinterpretq_s32_f32): Likewise.
25744         (vreinterpretq_s32_u8): Likewise.
25745         (vreinterpretq_s32_u16): Likewise.
25746         (vreinterpretq_s32_u32): Likewise.
25747         (vreinterpretq_s32_u64): Likewise.
25748         (vreinterpretq_s32_p8): Likewise.
25749         (vreinterpretq_s32_p16): Likewise.
25750         (vreinterpret_u8_s8): Likewise.
25751         (vreinterpret_u8_s16): Likewise.
25752         (vreinterpret_u8_s32): Likewise.
25753         (vreinterpret_u8_s64): Likewise.
25754         (vreinterpret_u8_f32): Likewise.
25755         (vreinterpret_u8_u16): Likewise.
25756         (vreinterpret_u8_u32): Likewise.
25757         (vreinterpret_u8_u64): Likewise.
25758         (vreinterpret_u8_p8): Likewise.
25759         (vreinterpret_u8_p16): Likewise.
25760         (vreinterpretq_u8_s8): Likewise.
25761         (vreinterpretq_u8_s16): Likewise.
25762         (vreinterpretq_u8_s32): Likewise.
25763         (vreinterpretq_u8_s64): Likewise.
25764         (vreinterpretq_u8_f32): Likewise.
25765         (vreinterpretq_u8_u16): Likewise.
25766         (vreinterpretq_u8_u32): Likewise.
25767         (vreinterpretq_u8_u64): Likewise.
25768         (vreinterpretq_u8_p8): Likewise.
25769         (vreinterpretq_u8_p16): Likewise.
25770         (vreinterpret_u16_s8): Likewise.
25771         (vreinterpret_u16_s16): Likewise.
25772         (vreinterpret_u16_s32): Likewise.
25773         (vreinterpret_u16_s64): Likewise.
25774         (vreinterpret_u16_f32): Likewise.
25775         (vreinterpret_u16_u8): Likewise.
25776         (vreinterpret_u16_u32): Likewise.
25777         (vreinterpret_u16_u64): Likewise.
25778         (vreinterpret_u16_p8): Likewise.
25779         (vreinterpret_u16_p16): Likewise.
25780         (vreinterpretq_u16_s8): Likewise.
25781         (vreinterpretq_u16_s16): Likewise.
25782         (vreinterpretq_u16_s32): Likewise.
25783         (vreinterpretq_u16_s64): Likewise.
25784         (vreinterpretq_u16_f32): Likewise.
25785         (vreinterpretq_u16_u8): Likewise.
25786         (vreinterpretq_u16_u32): Likewise.
25787         (vreinterpretq_u16_u64): Likewise.
25788         (vreinterpretq_u16_p8): Likewise.
25789         (vreinterpretq_u16_p16): Likewise.
25790         (vreinterpret_u32_s8): Likewise.
25791         (vreinterpret_u32_s16): Likewise.
25792         (vreinterpret_u32_s32): Likewise.
25793         (vreinterpret_u32_s64): Likewise.
25794         (vreinterpret_u32_f32): Likewise.
25795         (vreinterpret_u32_u8): Likewise.
25796         (vreinterpret_u32_u16): Likewise.
25797         (vreinterpret_u32_u64): Likewise.
25798         (vreinterpret_u32_p8): Likewise.
25799         (vreinterpret_u32_p16): Likewise.
25800         (vreinterpretq_u32_s8): Likewise.
25801         (vreinterpretq_u32_s16): Likewise.
25802         (vreinterpretq_u32_s32): Likewise.
25803         (vreinterpretq_u32_s64): Likewise.
25804         (vreinterpretq_u32_f32): Likewise.
25805         (vreinterpretq_u32_u8): Likewise.
25806         (vreinterpretq_u32_u16): Likewise.
25807         (vreinterpretq_u32_u64): Likewise.
25808         (vreinterpretq_u32_p8): Likewise.
25809         (vreinterpretq_u32_p16): Likewise.
25811 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25813         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
25814         Pattern extended.
25815         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
25816         (sqabs): Likewise.
25817         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
25818         (vqnegd_s64): Likewise.
25819         (vqabs_s64): Likewise.
25820         (vqabsd_s64): Likewise.
25822 2014-04-22  Richard Henderson  <rth@redhat.com>
25824         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
25825         computation to the top of the loop.
25827 2014-04-22  Renlin  <renlin.li@arm.com>
25828             Jiong Wang  <jiong.wang@arm.com>
25830         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
25831         * config/aarch64/aarch64.c (aarch64_layout_frame)
25832         (aarch64_initial_elimination_offset): Likewise.
25834 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25836         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
25837         Fix indentation.
25839 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
25841         * machmode.h (bitwise_mode_for_mode): Declare.
25842         * stor-layout.h (bitwise_type_for_mode): Likewise.
25843         * stor-layout.c (bitwise_mode_for_mode): New function.
25844         (bitwise_type_for_mode): Likewise.
25845         * builtins.c (fold_builtin_memory_op): Use it instead of
25846         int_mode_for_mode and build_nonstandard_integer_type.
25848 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25850         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
25851         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
25852         (*-*-solaris2*): Simplify.
25853         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
25854         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
25855         *-*-solaris2.9* handling.
25857         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
25858         as bug.
25859         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
25860         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
25861         handling, simplify.
25862         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
25863         * configure: Regenerate.
25865         * config/i386/sol2-9.h: Remove.
25867         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
25868         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
25869         Remove Solaris 9 references.
25871 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
25873         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
25874         (floatuns<GPI:mode><GPF:mode>2): Remove.
25875         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
25876         and floatuns conversions.
25877         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
25878         and floatuns conversions.
25879         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
25880         (w1,w2): New mode attributes for inequal width conversions.
25882 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
25884         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
25885         the output asm format.
25887 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
25889         * config/aarch64/aarch64-simd.md
25890         (aarch64_cm<optab>di): Always split.
25891         (*aarch64_cm<optab>di): New.
25892         (aarch64_cmtstdi): Always split.
25893         (*aarch64_cmtstdi): New.
25895 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25897         PR tree-optimization/60823
25898         * omp-low.c (ipa_simd_modify_function_body): Go through
25899         all SSA_NAMEs and for those refering to vector arguments
25900         which are going to be replaced adjust SSA_NAME_VAR and,
25901         if it is a default definition, change it into a non-default
25902         definition assigned at the beginning of function from new_decl.
25903         (ipa_simd_modify_stmt_ops): Rewritten.
25904         * tree-dfa.c (set_ssa_default_def): When removing default def,
25905         check for NULL loc instead of NULL *loc.
25907 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25909         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
25910         restrictions on core registers for DImode values in Thumb2.
25912 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
25914         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
25915         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
25917 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
25919         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
25920         (*iordi_notzesidi_di): Likewise.
25921         (*iordi_notsesidi_di): Likewise.
25923 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
25925         * config/arm/arm-protos.h (tune_params): New struct members.
25926         * config/arm/arm.c: Initialise tune_params per processor.
25927         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
25928         for speed, based on new tune_params.
25930 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25932         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
25933         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
25934         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
25935         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
25936         * config/aarch64/arm_neon.h (vrnd_f64): Added.
25937         (vrnda_f64): Likewise.
25938         (vrndi_f64): Likewise.
25939         (vrndm_f64): Likewise.
25940         (vrndn_f64): Likewise.
25941         (vrndp_f64): Likewise.
25942         (vrndx_f64): Likewise.
25944 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25946         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
25947         GET_MODE_SIZE argument is enum machine_mode.
25949 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25951         PR target/60910
25952         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
25953         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
25955 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
25957         PR middle-end/60281
25958         * asan.c (asan_emit_stack_protection): Force the base to align to
25959         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
25960         appropriate bits if STRICT_ALIGNMENT.
25961         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
25962         when asan is on.
25963         (expand_used_vars): Leave a space in the stack frame for alignment
25964         if STRICT_ALIGNMENT.
25966 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
25968         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
25969         than a gimple.
25970         (gimple_store_p): Likewise.
25971         (gimple_assign_load_p): Likewise.
25972         (gimple_assign_cast_p): Likewise.
25973         (gimple_clobber_p): Likewise.
25975         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
25976         rather than a gimple.
25977         (gimple_assign_cast_p): Likewise.
25979 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25981         PR target/60735
25982         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
25983         If mode is DDmode and TARGET_E500_DOUBLE allow move.
25985         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
25986         more debug information for E500 if -mdebug=reg.
25988 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
25990         PR target/60909
25991         * config/i386/i386.c (ix86_expand_builtin)
25992         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
25993         register for target RTX.
25994         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
25996 2014-04-18  Cong Hou  <congh@google.com>
25998         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
25999         the widen-mult pattern by handling two operands with different sizes,
26000         and operands whose size is smaller than half of the result type.
26002 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26004         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
26005         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
26006         (do_estimate_edge_time): Compute it.
26007         * ipa-inline.c (want_inline_small_function_p): Bypass
26008         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
26010 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26012         * ipa-inline.c (spec_rem): New static variable.
26013         (dump_overall_stats): New function.
26014         (dump_inline_stats): New function.
26016 2014-04-18  Richard Henderson  <rth@redhat.com>
26018         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
26019         to GET_MODE_SIZE, not a reg_class_t.
26021 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26023         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
26024         (vsx_xxmrglw_<mode>): Likewise.
26026 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
26028         PR target/60876
26029         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
26030         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
26031         (rs6000_init_hard_regno_mode_ok): Likewise.
26033 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
26035         * ipa-inline.c (inline_small_functions): Account only non-cold
26036         functions.
26037         * doc/invoke.texi (inline-unit-growth): Update documentation.
26039 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
26041         * config/rs6000/rs6000.md (addti3, subti3): New.
26043 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
26045         PR target/60863
26046         * config/i386/i386.c (ix86_expand_clear): Remove outdated
26047         comment.  Check optimize_insn_for_size_p instead of
26048         optimize_insn_for_speed_p.
26050 2014-04-17  Martin Jambor  <mjambor@suse.cz>
26052         * gimple-iterator.c (gsi_start_edge): New function.
26053         * gimple-iterator.h (gsi_start_edge): Declare.
26054         * tree-sra.c (single_non_eh_succ): New function.
26055         (disqualify_ops_if_throwing_stmt): Renamed to
26056         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
26057         having one non-EH successor BB.
26058         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
26059         generate loads into replacements.
26060         (sra_modify_assign): Likewise and and also use the simple path for
26061         such statements.
26062         (sra_modify_function_body): Commit statements on edges.
26064 2014-04-17  Richard Biener  <rguenther@suse.de>
26066         PR middle-end/60849
26067         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
26068         comparison results and add clarifying comment.
26070 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
26072         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
26073         (blank_mode): Initialize it.
26074         (emit_mode_size_inline, emit_mode_nunits_inline,
26075         emit_mode_inner_inline): New functions.
26076         (emit_insn_modes_h): Call them and surround their output with
26077         #if GCC_VERSION >= 4001 ... #endif.
26078         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
26079         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
26080         mode_* arrays if the argument is __builtin_constant_p.
26081         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
26082         is enum machine_mode.
26084 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26086         * passes.c (opt_pass::execute): Adjust.
26087         (pass_manager::execute_pass_mode_switching): Likewise.
26088         (early_local_passes::execute): Likewise.
26089         (execute_one_pass): Pass cfun to the pass's execute method.
26090         * tree-pass.h (opt_pass::execute): Add function * argument.
26091         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26092         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26093         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26094         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26095         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26096         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
26097         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
26098         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26099         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26100         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
26101         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
26102         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
26103         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
26104         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
26105         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26106         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26107         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26108         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
26109         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
26110         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26111         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26112         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26113         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26114         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26115         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26116         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26117         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26118         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26119         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26120         Adjust.
26122 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26124         * passes.c (opt_pass::gate): Take function * argument.
26125         (gate_all_early_local_passes): Merge into
26126         (early_local_passes::gate): this.
26127         (gate_all_early_optimizations): Merge into
26128         (all_early_optimizations::gate): this.
26129         (gate_all_optimizations): Mege into
26130         (all_optimizations::gate): this.
26131         (gate_all_optimizations_g): Merge into
26132         (all_optimizations_g::gate): this.
26133         (gate_rest_of_compilation): Mege into
26134         (rest_of_compilation::gate): this.
26135         (gate_postreload): Merge into
26136         (postreload::gate): this.
26137         (dump_one_pass): Pass cfun to the pass's gate method.
26138         (execute_ipa_summary_passes): Likewise.
26139         (execute_one_pass): Likewise.
26140         (ipa_write_summaries_2): Likewise.
26141         (ipa_write_optimization_summaries_1): Likewise.
26142         (ipa_read_summaries_1): Likewise.
26143         (ipa_read_optimization_summaries_1): Likewise.
26144         (execute_ipa_stmt_fixups): Likewise.
26145         * tree-pass.h (opt_pass::gate): Add function * argument.
26146         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
26147         combine-stack-adj.c, combine.c, compare-elim.c,
26148         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26149         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
26150         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
26151         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
26152         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26153         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26154         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26155         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
26156         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
26157         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
26158         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26159         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26160         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
26161         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26162         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26163         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26164         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26165         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26166         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26167         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26168         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26169         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26170         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
26171         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
26172         var-tracking.c, vtable-verify.c, web.c: Adjust.
26174 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26176         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
26177         * configure: Regenerate.
26179 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26181         * passes.c (dump_one_pass): don't check pass->has_gate.
26182         (execute_ipa_summary_passes): Likewise.
26183         (execute_one_pass): Likewise.
26184         (ipa_write_summaries_2): Likewise.
26185         (ipa_write_optimization_summaries_1): Likewise.
26186         (ipa_read_optimization_summaries_1): Likewise.
26187         (execute_ipa_stmt_fixups): Likewise.
26188         * tree-pass.h (pass_data::has_gate): Remove.
26189         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26190         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26191         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26192         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26193         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26194         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26195         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26196         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26197         gimple-low.c, gimple-ssa-isolate-paths.c,
26198         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26199         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
26200         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26201         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
26202         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
26203         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
26204         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
26205         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
26206         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26207         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26208         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26209         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26210         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26211         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26212         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26213         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26214         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26215         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26216         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26217         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26218         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26219         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26220         Adjust.
26222 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26224         * pass_manager.h (pass_manager::register_dump_files_1): Remove
26225         declaration.
26226         * passes.c (pass_manager::register_dump_files_1): Merge into
26227         (pass_manager::register_dump_files): this, and remove its handling of
26228         properties since the pass always has the properties anyway.
26229         (pass_manager::pass_manager): Adjust.
26231 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26233         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
26234         * passes.c (pass_manager::register_dump_files_1): Remove dead code
26235         dealing with properties.
26236         (pass_manager::register_dump_files): Adjust.
26238 2014-03-20  Mark Wielaard  <mjw@redhat.com>
26240         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
26241         then represent the bound as normal constant value.
26243 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
26245         PR target/60847
26246         Forward port from 4.8 branch
26247         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
26249         * config/i386/bmiintrin.h (_blsi_u32): New.
26250         (_blsi_u64): Ditto.
26251         (_blsr_u32): Ditto.
26252         (_blsr_u64): Ditto.
26253         (_blsmsk_u32): Ditto.
26254         (_blsmsk_u64): Ditto.
26255         (_tzcnt_u32): Ditto.
26256         (_tzcnt_u64): Ditto.
26258 2014-04-17  Kito Cheng  <kito@0xlab.org>
26260         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
26262 2014-04-17  Richard Biener  <rguenther@suse.de>
26264         PR middle-end/60849
26265         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
26266         boolean results for comparisons.
26268 2014-04-17  Richard Biener  <rguenther@suse.de>
26270         PR tree-optimization/60836
26271         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
26272         initial PHI args to be gimple values.
26274 2014-04-17  Richard Biener  <rguenther@suse.de>
26276         PR tree-optimization/60841
26277         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
26278         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
26279         of stmts to SLP build.
26280         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
26281         (vect_analyze_slp): Likewise.
26282         (vect_analyze_slp_instance): Likewise.
26283         (vect_build_slp_tree): Limit overall SLP tree growth.
26284         * tree-vectorizer.h (vect_analyze_data_refs,
26285         vect_analyze_slp): Adjust prototypes.
26287 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26289         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
26290         Silvermont.
26292 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26294         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
26295         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
26296         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
26297         for TARGET_SLOW_PSHUFB
26299 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26301         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
26302         * config/i386/i386.c (intel_cost): Ditto.
26304 2014-04-17  Joey Ye  <joey.ye@arm.com>
26306         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
26308 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
26310         * opts.c (common_handle_option): Disable -fipa-reference coorectly
26311         with -fuse-profile.
26313 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
26315         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
26316         (type_all_derivations_known_p): New predicate.
26317         (type_all_ctors_visible_p): New predicate.
26318         (type_possibly_instantiated_p): New predicate.
26319         (get_odr_type): Compute all_derivations_known.
26320         (dump_odr_type): Dump the flag.
26321         (maybe_record_type): Cleanup.
26322         (record_target_from_binfo): Add bases_to_consider array;
26323         record bases for types w/o instances and skip CXX destructor.
26324         (possible_polymorphic_call_targets_1): Add bases_to_consider
26325         and consider_construction parameters; check if type may have instance.
26326         (get_polymorphic_call_info): Set maybe_in_construction to true
26327         when we know nothing.
26328         (record_targets_from_bases): Skip CXX destructors; they are
26329         never called for types in construction.
26330         (possible_polymorphic_call_targets): Do not record target when
26331         type may not have instance.
26333 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
26335         PR ipa/60854
26336         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
26337         external aliases alive, too.
26339 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
26341         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
26342         definition.
26344 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
26346         * final.c (compute_alignments): Do not apply loop alignment to a block
26347         falling through to the exit.
26349 2014-04-16  Catherine Moore  <clm@codesourcery.com>
26351         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
26352         Adjust constraints for microMIPS store patterns.
26354 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
26356         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
26358 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
26360         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
26361         (append_use): Run at -O0.
26362         (append_vdef): Likewise.
26363         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
26364         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
26366 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
26368         PR tree-optimization/60844
26369         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
26370         (propagate_op_to_single_use, remove_visited_stmt_chain,
26371         linearize_expr, repropagate_negates, reassociate_bb): Use it
26372         instead of gsi_remove.
26374 2014-04-16  Martin Jambor  <mjambor@suse.cz>
26376         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
26377         ipa_transforms_to_apply.
26378         (cgraph_function_versioning): Assert that old_node has empty
26379         ipa_transforms_to_apply.
26380         * trans-mem.c (ipa_tm_create_version): Likewise.
26381         * tree-inline.c (tree_function_versioning): Do not duplicate
26382         ipa_transforms_to_apply.
26384 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26386         PR target/60817
26387         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
26388         x86_64-*-* cases.
26389         Pass necessary as flags on 64-bit Solaris/x86.
26390         Use lowercase relocs for x86_64-*-*.
26391         * configure: Regenerate.
26393 2014-04-15  Jan Hubicka  <jh@suse.cz>
26395         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
26396         (maybe_record_node, likely_target_p): Use it.
26398 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26400         PR target/60839
26401         Revert following patch
26403         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26405         PR target/60735
26406         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26407         software floating point or no floating point registers, do not
26408         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
26409         in GPRs that occurs after we tested for GPRs that would never be
26410         true.
26412         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26413         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26414         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
26415         specifically allow DDmode, since that does not use the SPE SIMD
26416         instructions.
26418 2014-03-21  Mark Wielaard  <mjw@redhat.com>
26420         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
26421         as unsigned or int depending on type and value used.
26423 2014-04-15  Richard Biener  <rguenther@suse.de>
26425         PR rtl-optimization/56965
26426         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
26427         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
26428         ... here.
26429         * alias.c (true_dependence_1): Do not call
26430         nonoverlapping_component_refs_p.
26431         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
26432         nonoverlapping_component_refs_p.
26433         (indirect_refs_may_alias_p): Likewise.
26435 2014-04-15  Teresa Johnson  <tejohnson@google.com>
26437         * cfg.c (dump_bb_info): Fix flags check.
26438         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
26440 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26442         PR rtl-optimization/60663
26443         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
26444         avoid 0 cost.
26446 2014-04-15  Richard Biener  <rguenther@suse.de>
26448         * lto-streamer.h (LTO_major_version): Bump to 4.
26450 2014-04-15  Richard Biener  <rguenther@suse.de>
26452         * common.opt (lto_partition_model): New enum.
26453         (flto-partition=): Merge separate options with a single with argument,
26454         add -flto-partition=one support.
26455         * flag-types.h (enum lto_partition_model): Declare.
26456         * opts.c (finish_options): Remove duplicate -flto-partition=
26457         option check.
26458         * lto-wrapper.c (run_gcc): Adjust.
26460 2014-04-15  Richard Biener  <rguenther@suse.de>
26462         * alias.c (ncr_compar): New function.
26463         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
26465 2014-04-15  Richard Biener  <rguenther@suse.de>
26467         * alias.c (record_component_aliases): Do not walk BINFOs.
26469 2014-04-15  Richard Biener  <rguenther@suse.de>
26471         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26472         Add struct function argument and adjust.
26473         (find_func_aliases_for_call): Likewise.
26474         (find_func_aliases): Likewise.
26475         (find_func_clobbers): Likewise.
26476         (intra_create_variable_infos): Likewise.
26477         (compute_points_to_sets): Likewise.
26478         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
26480 2014-04-15  Richard Biener  <rguenther@suse.de>
26482         * tree.c (iterative_hash_expr): Use enum tree_code_class
26483         to store TREE_CODE_CLASS.
26484         (tree_block): Likewise.
26485         (tree_set_block): Likewise.
26486         * tree.h (fold_build_pointer_plus_loc): Use
26487         convert_to_ptrofftype_loc.
26489 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
26491         PR plugins/59335
26492         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
26493         added in 4.9.
26495 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26497         * cfgloop.h (struct loop): Move force_vectorize down.
26498         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
26499         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
26500         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
26501         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
26502         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
26503         * tree-core.h (enum annot_expr_kind): Add new kind values.
26504         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
26505         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
26506         kinds.
26507         * tree.def (ANNOTATE_EXPR): Tweak comment.
26509 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26511         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
26512         cxa_pure_virtual).
26514 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
26516         * tree.h (TYPE_IDENTIFIER): Declare.
26517         * tree.c (subrange_type_for_debug_p): Use it.
26518         * godump.c (go_format_type): Likewise.
26519         * dwarf2out.c (is_cxx_auto, modified_type_die,
26520         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
26521         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
26523 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26525         PR lto/60820
26526         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
26528 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
26530         * config/i386/i386.c (examine_argument): Return bool.  Return true if
26531         parameter should be passed in memory.
26532         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
26533         (construct_container): Update calls to examine_argument.
26534         (function_arg_advance_64): Ditto.
26535         (return_in_memory_32): Merge with ix86_return_in_memory.
26536         (return_in_memory_64): Ditto.
26537         (return_in_memory_ms_64): Ditto.
26539 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26541         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
26542         * coverage.c (coverage_compute_profile_id): Handle externally visible
26543         symbols.
26545 2014-04-14  Martin Jambor  <mjambor@suse.cz>
26547         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
26548         DECL_DISREGARD_INLINE_LIMITS functions.
26550 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
26552         PR target/60827
26553         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
26555 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
26557         PR target/60827
26558         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
26559         optimize_insn_for_speed_p instead of
26560         optimize_function_for_speed_p.
26562 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
26564         * doc/invoke.texi (free): Document AArch64.
26566 2014-04-14  Richard Biener  <rguenther@suse.de>
26568         PR tree-optimization/60042
26569         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
26570         (insert_into_preds_of_block): Do not prevent PHI insertion
26571         for REFERENCE exprs here ...
26572         (eliminate_dom_walker::before_dom_children): ... but prevent
26573         their use here under similar conditions when applied to the
26574         IL after PRE optimizations.
26576 2014-04-14  Richard Biener  <rguenther@suse.de>
26578         * passes.def: Move early points-to after early SRA.
26580 2014-04-14  Richard Biener  <rguenther@suse.de>
26582         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
26583         check for which sign-changes we allow when forwarding
26584         a converted value into a switch.
26586 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
26588         * stor-layout.c (place_field): Finalize non-constant offset for the
26589         field, if any.
26591 2014-04-14  Richard Biener  <rguenther@suse.de>
26593         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
26594         as argument.
26595         (expand_switch_using_bit_tests_p): Likewise.
26596         (process_switch): Compute and pass on speed_p based on the
26597         switch stmt.
26598         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
26599         optimize_bb_for_speed_p.
26601 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
26603         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
26604         * function.h (struct function): Rename has_force_vect_loops into
26605         has_force_vectorize_loops.
26606         * lto-streamer-in.c (input_cfg): Adjust for renaming.
26607         (input_struct_function_base): Likewise.
26608         * lto-streamer-out.c (output_cfg): Likewise.
26609         (output_struct_function_base): Likewise.
26610         * omp-low.c (expand_omp_simd): Likewise.
26611         * tree-cfg.c (move_sese_region_to_fn): Likewise.
26612         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
26613         (version_loop_for_if_conversion): Likewise.
26614         (tree_if_conversion): Likewise.
26615         (main_tree_if_conversion): Likewise.
26616         (gate_tree_if_conversion): Likewise.
26617         * tree-inline.c (copy_loops): Likewise.
26618         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
26619         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
26620         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26621         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
26622         * tree-vectorizer.c (vectorize_loops): Likewise.
26623         * tree-vectorizer.h (unlimited_cost_model): Likewise.
26625 2014-04-14  Richard Biener  <rguenther@suse.de>
26627         PR lto/60720
26628         * lto-streamer-out.c (wrap_refs): New function.
26629         (lto_output): Wrap symbol references in global initializes in
26630         type-preserving MEM_REFs.
26632 2014-04-14  Christian Bruel  <christian.bruel@st.com>
26634         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
26636 2014-04-14  Christian Bruel  <christian.bruel@st.com>
26638         * config/sh/sh.md (setmemqi): New expand pattern.
26639         * config/sh/sh.h (CLEAR_RATIO): Define.
26640         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
26641         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
26643 2014-04-14  Richard Biener  <rguenther@suse.de>
26645         PR middle-end/55022
26646         * fold-const.c (negate_expr_p): Don't negate directional rounding
26647         division.
26648         (fold_negate_expr): Likewise.
26650 2014-04-14  Richard Biener  <rguenther@suse.de>
26652         PR tree-optimization/59817
26653         PR tree-optimization/60453
26654         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
26655         recursion to catch all CHRECs in the scalar evolution and restrict
26656         the predicate for the remains appropriately.
26658 2014-04-12  Catherine Moore  <clm@codesourcery.com>
26660         * config/mips/constraints.md: Add new register constraint "kb".
26661         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
26662         (*movhi_internal): Likewise.
26663         (*movqi_internal): Likewise.
26664         * config/mips/mips.h (M16_STORE_REGS): New register class.
26665         (REG_CLASS_NAMES): Add M16_STORE_REGS.
26666         (REG_CLASS_CONTENTS): Likewise.
26667         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
26669 2014-04-11  Tobias Burnus  <burnus@net-b.de>
26671         PR c/60194
26672         * doc/invoke.texi (-Wformat-signedness): Document it.
26673         (Wformat=2): Mention that this enables -Wformat-signedness.
26675 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26677         * common/config/epiphany/epiphany-common.c
26678         (epiphany_option_optimization_table): Enable section anchors by
26679         default at -O1 or higher.
26680         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
26681         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
26682         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
26683         carries no extra cost.
26684         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
26685         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
26686         * config/epiphany/predicates.md (memclob_operand): New predicate.
26687         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
26688         Use memclob_operand predicate and X constraint for operand 3.
26690 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26692         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
26693         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
26694         its operands.
26696 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26698         PR rtl-optimization/60651
26699         * mode-switching.c (optimize_mode_switching): Make sure to emit
26700         sets of a lower numbered entity before sets of a higher numbered
26701         entity to a mode of the same or lower priority.
26702         When creating a seginfo for a basic block that starts with a code
26703         label, move the insertion point past the code label.
26704         (new_seginfo): Document and enforce requirement that
26705         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
26706         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
26707         * doc/tm.texi: Regenerate.
26709 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26711         PR target/60811
26712         * config/arc/arc.c (arc_save_restore): Fix assert typo.
26714 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
26716         * BASE-VER: Set to 4.10.0.
26718 2014-04-11  Tobias Burnus  <burnus@net-b.de>
26720         PR other/59055
26721         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
26722         * doc/gcc.texi (Service): Update description in the @menu
26723         * doc/invoke.texi (Option Summary): Remove misplaced and
26724         duplicated @menu.
26726 2014-04-11  Steve Ellcey  <sellcey@mips.com>
26727             Jakub Jelinek  <jakub@redhat.com>
26729         PR middle-end/60556
26730         * expr.c (convert_move): Use emit_store_flag_force instead of
26731         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
26732         argument to it.
26734 2014-04-11  Richard Biener  <rguenther@suse.de>
26736         PR middle-end/60797
26737         * varasm.c (assemble_alias): Avoid endless error reporting
26738         recursion by setting TREE_ASM_WRITTEN.
26740 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26742         * config/s390/s390.md: Add a splitter for NOT rtx.
26744 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
26746         PR rtl-optimization/60663
26747         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
26749 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
26750             Jakub Jelinek  <jakub@redhat.com>
26752         PR lto/60567
26753         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
26754         flag from decl_node to node.
26756 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26758         PR debug/60655
26759         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
26760         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
26761         ameliorating the cases where it can be.
26763 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
26765         Revert
26766         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
26768         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26769         (loadsync_<mode>): Change mode.
26770         (load_quadpti, store_quadpti): New.
26771         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26772         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26773         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
26775 2014-04-09  Cong Hou  <congh@google.com>
26777         PR testsuite/60773
26778         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
26779         documentation.
26781 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26783         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
26784         instead of vnor to exploit possible fusion opportunity in the
26785         future.
26786         (altivec_expand_vec_perm_const_le): Likewise.
26788 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
26790         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26791         (loadsync_<mode>): Change mode.
26792         (load_quadpti, store_quadpti): New.
26793         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26794         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26796 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
26798         PR target/60763
26799         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
26800         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
26801         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
26803 2014-04-08  Richard Biener  <rguenther@suse.de>
26805         PR middle-end/60706
26806         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
26807         a 64bit widest int print double-int similar to on HWI64 hosts.
26809 2014-04-08  Richard Biener  <rguenther@suse.de>
26811         PR tree-optimization/60785
26812         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
26813         default defs properly.
26815 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
26817         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
26818         (Weffc++): Likewise.
26820 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
26822         * ipa-devirt.c (maybe_record_node): When node is not recorded,
26823         set completep to false rather than true.
26825 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
26827         PR target/60504
26828         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
26829         ARM_TARGET2_DWARF_FORMAT.
26831 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
26833         PR target/60609
26834         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
26835         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
26836         ADDR_DIFF_VEC.
26838 2014-04-07  Richard Biener  <rguenther@suse.de>
26840         PR tree-optimization/60766
26841         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
26842         (may_eliminate_iv): Convert cand_value_at result to desired type.
26844 2014-04-07  Jason Merrill  <jason@redhat.com>
26846         PR c++/60731
26847         * common.opt (-fno-gnu-unique): Add.
26848         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
26850 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26852         * haifa-sched.c: Fix outdated function reference and minor
26853         grammar errors in introductory comment.
26855 2014-04-07  Richard Biener  <rguenther@suse.de>
26857         PR middle-end/60750
26858         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
26859         for noreturn calls.
26860         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
26862 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
26864         PR debug/55794
26865         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
26866         size accounting for thunks.
26867         (pa_asm_output_mi_thunk): Use final_start_function() and
26868         final_end_function() to output function start and end directives.
26870 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
26872         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
26873         device specific ISA/ feature information. Remove short_sp and
26874         errata_skip ds.  Add avr_device_specific_features enum to have device
26875         specific info.
26876         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
26877         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
26878         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
26879         updated device specific info.
26880         * config/avr/avr-mcus.def: Merge device specific details to
26881         dev_attribute field.
26882         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
26883         errata_skip.
26884         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
26885         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
26886         assembler if RMW isa supported by current device.
26887         * config/avr/genmultilib.awk: Update as device info structure changed.
26888         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
26890 2014-04-04  Cong Hou  <congh@google.com>
26892         PR tree-optimization/60656
26893         * tree-vect-stmts.c (supportable_widening_operation):
26894         Fix a bug that elements in a vector with vect_used_by_reduction
26895         property are incorrectly reordered when the operation on it is not
26896         consistant with the one in reduction operation.
26898 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
26900         PR rtl-optimization/60155
26901         * gcse.c (record_set_data): New function.
26902         (single_set_gcse): New function.
26903         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
26904         (hoist_code): Likewise.
26905         (get_pressure_class_and_nregs): Likewise.
26907 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
26909         * explow.c (probe_stack_range): Emit a final optimization blockage.
26911 2014-04-04  Anthony Green  <green@moxielogic.com>
26913         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
26914         typos.
26916 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
26918         PR ipa/59626
26919         * lto-cgraph.c (input_overwrite_node): Check that partitioning
26920         flags are set only during streaming.
26921         * ipa.c (process_references, walk_polymorphic_call_targets,
26922         symtab_remove_unreachable_nodes): Drop bodies of always inline
26923         after early inlining.
26924         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
26926 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
26927         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26929         PR debug/60655
26930         * dwarf2out.c (const_ok_for_output_1): Reject expressions
26931         containing a NOT.
26933 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26935         PR bootstrap/60743
26936         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
26937         duration.
26938         (cortex_a53_fdivd): Likewise.
26940 2014-04-04  Martin Jambor  <mjambor@suse.cz>
26942         PR ipa/60640
26943         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
26944         Adjust all callers.
26945         * cgraph.c (clone_of_p): Also return true if thunks match.
26946         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
26947         cgraph_function_or_thunk_node and an obsolete comment.
26948         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
26949         file.
26950         (build_function_decl_skip_args): Likewise.
26951         (set_new_clone_decl_and_node_flags): New function.
26952         (duplicate_thunk_for_node): Likewise.
26953         (redirect_edge_duplicating_thunks): Likewise.
26954         (cgraph_clone_node): New parameter args_to_skip, pass it to
26955         redirect_edge_duplicating_thunks which is called instead of
26956         cgraph_redirect_edge_callee.
26957         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
26958         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
26960 2014-04-04  Jeff Law  <law@redhat.com>
26962         PR target/60657
26963         * config/arm/predicates.md (const_int_I_operand): New predicate.
26964         (const_int_M_operand): Similarly.
26965         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
26966         const_int_operand.
26967         (insv_t2, extv_reg, extzv_t2): Likewise.
26968         (load_multiple_with_writeback): Similarly for const_int_I_operand.
26969         (pop_multiple_with_writeback_and_return): Likewise.
26970         (vfp_pop_multiple_with_writeback): Likewise
26972 2014-04-04  Richard Biener  <rguenther@suse.de>
26974         PR ipa/60746
26975         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
26976         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
26977         non-GIMPLE_LABELs.
26978         * gimplify.h (gimple_add_tmp_var_fn): Declare.
26979         * gimplify.c (gimple_add_tmp_var_fn): New function.
26980         * gimple-expr.h (create_tmp_reg_fn): Declare.
26981         * gimple-expr.c (create_tmp_reg_fn): New function.
26982         * gimple-low.c (record_vars_into): Don't change cfun.
26983         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
26984         code generation without cfun.
26986 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
26988         PR bootstrap/60719
26989         * Makefile.in (install-driver): Fix shell scripting.
26991 2014-04-03  Cong Hou  <congh@google.com>
26993         PR tree-optimization/60505
26994         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
26995         threshold of number of iterations below which no vectorization
26996         will be done.
26997         * tree-vect-loop.c (new_loop_vec_info):
26998         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
26999         * tree-vect-loop.c (vect_analyze_loop_operations):
27000         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
27001         * tree-vect-loop.c (vect_transform_loop):
27002         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
27003         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
27004         of iterations of the loop and see if we should build the epilogue.
27006 2014-04-03  Richard Biener  <rguenther@suse.de>
27008         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
27009         (streamer_tree_cache_create): Adjust.
27010         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
27011         to allow optional nodes array.
27012         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
27013         (streamer_tree_cache_append): Likewise.
27014         (streamer_tree_cache_create): Create nodes array optionally
27015         as specified by parameter.
27016         * lto-streamer-out.c (create_output_block): Avoid maintaining
27017         the node array in the writer cache.
27018         (DFS_write_tree): Remove assertion.
27019         (produce_asm_for_decls): Free the out decl state hash table early.
27020         * lto-streamer-in.c (lto_data_in_create): Adjust for
27021         streamer_tree_cache_create prototype change.
27023 2014-04-03  Richard Biener  <rguenther@suse.de>
27025         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
27026         set TREE_CHAIN to NULL_TREE.
27028 2014-04-03  Richard Biener  <rguenther@suse.de>
27030         PR tree-optimization/60740
27031         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
27032         over all GIMPLE_COND operands.
27034 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
27036         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
27037         (Weffc++): Remove Scott's numbering, merge lists and reference
27038         Wnon-virtual-dtor.
27040 2014-04-03  Nick Clifton  <nickc@redhat.com>
27042         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
27043         properly.
27045 2014-04-03  Martin Jambor  <mjambor@suse.cz>
27047         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
27048         mention gcc_unreachable before failing.
27049         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
27050         removed symbols.
27052 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
27054         PR ipa/60659
27055         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
27056         inconsistent code and instead mark the context inconsistent.
27057         (possible_polymorphic_call_targets): For inconsistent contexts
27058         return empty complete list.
27060 2014-04-02  Anthony Green  <green@moxielogic.com>
27062         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
27063         (extendqisi2, extendhisi2): Define.
27064         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
27065         (WCHAR_TYPE): Change to unsigned int.
27067 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27069         PR tree-optimization/60733
27070         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
27071         insertion point for PHI candidates to be the end of the feeding
27072         block for the PHI argument.
27074 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
27076         PR rtl-optimization/60650
27077         * lra-constraints.c (process_alt_operands): Decrease reject for
27078         earlyclobber matching.
27080 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27082         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
27084 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27086         * config/spu/spu.c (pad_bb): Do not crash when the last
27087         insn is CODE_FOR_blockage.
27089 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27091         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
27092         lies outside the target mode.
27094 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27096         PR target/60735
27097         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27098         software floating point or no floating point registers, do not
27099         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
27100         in GPRs that occurs after we tested for GPRs that would never be
27101         true.
27103         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27104         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27105         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
27106         specifically allow DDmode, since that does not use the SPE SIMD
27107         instructions.
27109 2014-04-02  Richard Biener  <rguenther@suse.de>
27111         PR middle-end/60729
27112         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
27113         MODE_INTs.  Properly use negv_optab.
27114         (expand_abs): Likewise.
27116 2014-04-02  Richard Biener  <rguenther@suse.de>
27118         PR bootstrap/60719
27119         * Makefile.in (install-driver): Guard extra installs with special
27120         names properly.
27122 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27124         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27125         Document vec_vgbbd.
27127 2014-04-01  Richard Henderson  <rth@redhat.com>
27129         PR target/60704
27130         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
27131         alternative enabled before register allocation.
27133 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
27135         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
27136         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
27137         typo.
27138         (nios2_large_got_address): Remove unneeded 'sym' parameter.
27139         (nios2_got_address): Update nios2_large_got_address call site.
27140         (nios2_delegitimize_address): New function.
27141         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
27142         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
27143         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
27145 2014-04-01  Martin Husemann  <martin@duskware.de>
27147         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
27148         for -mabi=32.
27150 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
27152         PR rtl-optimization/60604
27153         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
27154         check from register_operand.
27155         (register_operand): Redefine in terms of general_operand.
27156         (nonmemory_operand): Use register_operand for the non-constant cases.
27158 2014-04-01  Richard Biener  <rguenther@suse.de>
27160         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
27162 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27164         * doc/invoke.texi (mapp-regs): Clarify.
27166 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
27168         * config/i386/avx512fintrin.h (__v32hi): Define type.
27169         (__v64qi): Likewise.
27170         (_mm512_set1_epi8): Define.
27171         (_mm512_set1_epi16): Define.
27172         (_mm512_set4_epi32): Define.
27173         (_mm512_set4_epi64): Define.
27174         (_mm512_set4_pd): Define.
27175         (_mm512_set4_ps): Define.
27176         (_mm512_setr4_epi64): Define.
27177         (_mm512_setr4_epi32): Define.
27178         (_mm512_setr4_pd): Define.
27179         (_mm512_setr4_ps): Define.
27180         (_mm512_setzero_epi32): Define.
27182 2014-03-31  Martin Jambor  <mjambor@suse.cz>
27184         PR middle-end/60647
27185         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
27186         callsite_arguments_match_p.  Updated all callers.  Also check types of
27187         corresponding formal parameters and actual arguments.
27188         (not_all_callers_have_enough_arguments_p) Renamed to
27189         some_callers_have_mismatched_arguments_p.
27191 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
27193         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
27195 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
27197         PR target/60034
27198         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
27199         section anchor.
27201 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
27203         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
27204         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
27205         Split out
27206         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27207         Use FMAMODE_NOVF512 mode iterator.
27208         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27209         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27210         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27211         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27212         Split out
27213         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27214         Use VF_128_256 mode iterator.
27215         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27216         Ditto.
27218 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27220         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27221         static chain if needed.
27223 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27225         PR target/60697
27226         * lra-constraints.c (index_part_to_reg): New.
27227         (process_address): Use it.
27229 2014-03-27  Jeff Law  <law@redhat.com>
27230             Jakub Jelinek  <jakub@redhat.com>
27232         PR target/60648
27233         * expr.c (do_tablejump): Use simplify_gen_binary rather than
27234         gen_rtx_{PLUS,MULT} to build up the address expression.
27236         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
27237         creating non-canonical RTL.
27239 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27241         PR ipa/60243
27242         * ipa-inline.c (want_inline_small_function_p): Short circuit large
27243         functions; reorganize to make cheap checks first.
27244         (inline_small_functions): Do not estimate growth when dumping;
27245         it is expensive.
27246         * ipa-inline.h (inline_summary): Add min_size.
27247         (growth_likely_positive): New function.
27248         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
27249         (set_cond_stmt_execution_predicate): Cleanup.
27250         (estimate_edge_size_and_time): Compute min_size.
27251         (estimate_calls_size_and_time): Likewise.
27252         (estimate_node_size_and_time): Likewise.
27253         (inline_update_overall_summary): Update min_size.
27254         (do_estimate_edge_time): Likewise.
27255         (do_estimate_edge_size): Update.
27256         (do_estimate_edge_hints): Update.
27257         (growth_likely_positive): New function.
27259 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
27261         PR target/60693
27262         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
27263         also if addr has VOIDmode.
27265 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27267         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
27268         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
27269         Declare extern.
27270         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
27271         instructions as well as AdvancedSIMD loads.
27273 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27275         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
27276         Use crypto_aese type.
27277         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
27278         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
27279         crypto_aese, crypto_aesmc.  Move to types.md.
27280         * config/arm/types.md (crypto_aes): Split into crypto_aese,
27281         crypto_aesmc.
27282         * config/arm/iterators.md (crypto_type): Likewise.
27284 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27286         * cgraph.c: Include expr.h and tree-dfa.h.
27287         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
27288         remove LHS.
27290 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27292         PR target/60675
27293         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
27294         regs from checking multi-reg pseudos.
27296 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27298         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
27300 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27302         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
27303         if it would clobber the stack pointer, even temporarily.
27305 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
27307         * mode-switching.c: Make small adjustments to the top comment.
27309 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
27311         * config/rs6000/constraints.md (wD constraint): New constraint to
27312         match the constant integer to get the top DImode/DFmode out of a
27313         vector in a VSX register.
27315         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
27316         match the constant integer to get the top DImode/DFmode out of a
27317         vector in a VSX register.
27319         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
27320         for ISA 2.07.
27322         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27323         vbpermq builtins.
27325         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27326         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
27328         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
27329         Optimize vec_extract of 64-bit values, where the value being
27330         extracted is in the top word, where we can use scalar
27331         instructions.  Add direct move and store support.  Combine the big
27332         endian/little endian vector select load support into a single insn.
27333         (vsx_extract_<mode>_internal1): Likewise.
27334         (vsx_extract_<mode>_internal2): Likewise.
27335         (vsx_extract_<mode>_load): Likewise.
27336         (vsx_extract_<mode>_store): Likewise.
27337         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
27338         combined into vsx_extract_<mode>_load.
27339         (vsx_extract_<mode>_one_le): Likewise.
27341         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
27342         define the top 64-bit vector element.
27344         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
27345         constraint.
27347         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27348         Document vec_vbpermq builtin.
27350         PR target/60672
27351         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
27352         enable use of xxsldwi and xxpermdi builtin functions.
27353         (vec_xxpermdi): Likewise.
27355         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27356         Document use of vec_xxsldwi and vec_xxpermdi builtins.
27358 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
27360         PR rtl-optimization/60650
27361         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
27362         first_p.  Use it.
27363         (find_spills_for): New.
27364         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
27365         Spill all pseudos on the second iteration.
27367 2014-03-27  Marek Polacek  <polacek@redhat.com>
27369         PR c/50347
27370         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
27371         types.
27373 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27375         * config/s390/s390.c (s390_can_use_return_insn): Check for
27376         call-saved FPRs on 31 bit.
27378 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
27380         PR middle-end/60682
27381         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
27382         if they need regimplification, just drop them instead of
27383         calling gimple_regimplify_operands on them.
27385 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27387         PR target/60580
27388         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
27389         (aarch64_frame_pointer_required): Adjust logic.
27390         (aarch64_can_eliminate): Adjust logic.
27391         (aarch64_override_options_after_change): Adjust logic.
27393 2014-03-27  Dehao Chen  <dehao@google.com>
27395         * ipa-inline.c (early_inliner): Update node's inline info.
27397 2014-03-26  Dehao Chen  <dehao@google.com>
27399         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
27400         compiler inserted conditional jumps for NAN float check.
27402 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
27404         * ubsan.h (ubsan_create_data): Change second argument's type
27405         to const location_t *.
27406         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
27407         _("<unknown>").
27408         (ubsan_create_data): Change second argument to const location_t *PLOC.
27409         Create Loc field whenever PLOC is non-NULL.
27410         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
27411         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
27412         callers.
27414         PR other/59545
27415         * real.c (real_to_integer2): Change type of low to UHWI.
27417 2014-03-26  Tobias Burnus  <burnus@net-b.de>
27419         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
27420         (CILK_SELF_SPECS): New define.
27421         (driver_self_specs): Use it.
27423 2014-03-26  Richard Biener  <rguenther@suse.de>
27425         * tree-pretty-print.c (percent_K_format): Implement special
27426         case for LTO and its stripped down BLOCK tree.
27428 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
27430         PR sanitizer/60636
27431         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
27433         * tree-vrp.c (simplify_internal_call_using_ranges): If only
27434         one range is range_int_cst_p, but not both, at least optimize
27435         addition/subtraction of 0 and multiplication by 0 or 1.
27436         * gimple-fold.c (gimple_fold_call): Fold
27437         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
27438         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
27439         INTEGER_CSTs, try to fold at least x * 0 and y - y.
27441 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
27443         PR rtl-optimization/60452
27444         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
27445         <case REG>: Return 1 for invalid offsets from the frame pointer.
27447 2014-03-26  Marek Polacek  <polacek@redhat.com>
27449         PR c/37428
27450         * doc/extend.texi (C Extensions): Mention variable-length arrays in
27451         a structure/union.
27453 2014-03-26  Marek Polacek  <polacek@redhat.com>
27455         PR c/39525
27456         * doc/extend.texi (Designated Inits): Describe what happens to omitted
27457         field members.
27459 2014-03-26  Marek Polacek  <polacek@redhat.com>
27461         PR other/59545
27462         * ira-color.c (update_conflict_hard_regno_costs): Perform the
27463         multiplication in unsigned type.
27465 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
27467         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
27469 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
27471         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
27473 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
27475         PR ipa/60315
27476         * cif-code.def (UNREACHABLE) New code.
27477         * ipa-inline.c (inline_small_functions): Skip edges to
27478         __builtlin_unreachable.
27479         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
27480         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
27481         predicate to __bulitin_unreachable.
27482         (set_cond_stmt_execution_predicate): Fix issue when
27483         invert_tree_comparison returns ERROR_MARK.
27484         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
27485         propagate to inline clones.
27486         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
27487         to unreachable.
27488         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
27489         * cgraphclones.c (cgraph_clone_node): If call destination is already
27490         ureachable, do not redirect it back.
27491         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
27492         unreachable.
27494 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
27496         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
27497         Do not modify inline clones.
27499 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
27501         * config/i386/i386.md (general_sext_operand): New mode attr.
27502         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
27503         don't generate (sign_extend (const_int)).
27504         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
27505         operands[2].  Use We constraint instead of <i> and
27506         <general_sext_operand> predicate instead of <general_operand>.
27507         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
27508         * config/i386/constraints.md (We): New constraint.
27509         * config/i386/predicates.md (x86_64_sext_operand,
27510         sext_operand): New predicates.
27512 2014-03-25  Martin Jambor  <mjambor@suse.cz>
27514         PR ipa/60600
27515         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
27516         inconsistent devirtualizations to __builtin_unreachable.
27518 2014-03-25  Marek Polacek  <polacek@redhat.com>
27520         PR c/35449
27521         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
27523 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
27525         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
27526         order of elements for big-endian.
27528 2014-03-25  Richard Biener  <rguenther@suse.de>
27530         PR middle-end/60635
27531         * gimplify-me.c (gimple_regimplify_operands): Update the
27532         re-gimplifed stmt.
27534 2014-03-25  Martin Jambor  <mjambor@suse.cz>
27536         PR ipa/59176
27537         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
27538         (lto_output_varpool_node): Likewise.
27539         (input_overwrite_node): Likewise.
27540         (input_varpool_node): Likewise.
27542 2014-03-25  Richard Biener  <rguenther@suse.de>
27544         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
27545         (run_gcc): Likewise.
27547 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
27549         * combine.c (simplify_compare_const): Add MODE argument.
27550         Handle mode_width 0 as very large mode_width.
27551         (try_combine, simplify_comparison): Adjust callers.
27553         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
27554         type to avoid signed integer overflow.
27555         * explow.c (plus_constant): Likewise.
27557 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27559         * doc/generic.texi: Correct typos.
27561 2014-03-24  Tobias Burnus  <burnus@net-b.de>
27563         * doc/invoke.texi (-flto): Expand section about
27564         using static libraries with LTO.
27566 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27568         PR rtl-optimization/60501
27569         * optabs.def (addptr3_optab): New optab.
27570         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
27571         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
27572         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
27574         * lra.c (emit_add3_insn): Use the addptr pattern if available.
27576         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
27578 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
27580         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
27581         _mm512_set1_pd.
27583         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
27584         (_mm256_undefined_ps): Define.
27585         (_mm256_undefined_pd): Define.
27586         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
27587         (_mm_undefined_pd): Define.
27588         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
27589         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
27590         (_mm512_undefined_ps): Define.
27591         (_mm512_undefined_pd): Define.
27592         Use _mm*_undefined_*.
27593         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
27595 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
27597         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
27598         (lshr_simd): DI mode added.
27599         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
27600         (aarch64_ushr_simddi): Likewise.
27601         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
27602         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
27603         (vshrd_n_u64): Likewise.
27605 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27607         * Makefile.in (s-macro_list): Depend on cc1.
27609 2014-03-23  Teresa Johnson  <tejohnson@google.com>
27611         * ipa-utils.c (ipa_print_order): Use specified dump file.
27613 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
27615         PR rtl-optimization/60601
27616         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
27618         * gcc.c (eval_spec_function): Initialize save_growing_value.
27620 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
27622         PR sanitizer/60613
27623         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
27624         code == MINUS_EXPR, never swap op0 with op1.
27626         * toplev.c (init_local_tick): Avoid signed integer multiplication
27627         overflow.
27628         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
27629         shift by first operand's bitsize.
27631 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
27633         PR target/60610
27634         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
27635         redefine to 1 or 0.
27636         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
27637         TARGET_ISA_64BIT_P(x).
27639 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27641         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
27642         pattern for vector nor instead of subtract from splat(-1).
27643         (altivec_expand_vec_perm_const_le): Likewise.
27645 2014-03-21  Richard Henderson  <rth@twiddle.net>
27647         PR target/60598
27648         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
27649         related insns after epilogue_completed.
27651 2014-03-21  Martin Jambor  <mjambor@suse.cz>
27653         PR ipa/59176
27654         * cgraph.h (symtab_node): New flag body_removed.
27655         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
27656         when removing bodies.
27657         * symtab.c (dump_symtab_base): Dump body_removed flag.
27658         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
27659         had their bodies removed.
27661 2014-03-21  Martin Jambor  <mjambor@suse.cz>
27663         PR ipa/60419
27664         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
27665         in the border.
27667 2014-03-21  Richard Biener  <rguenther@suse.de>
27669         PR tree-optimization/60577
27670         * tree-core.h (struct tree_base): Document nothrow_flag use
27671         in DECL_NONALIASED.
27672         * tree.h (DECL_NONALIASED): New.
27673         (may_be_aliased): Adjust.
27674         * coverage.c (build_var): Set DECL_NONALIASED.
27676 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27678         * expr.c (expand_expr_real_1): Remove outdated comment.
27680 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
27682         PR middle-end/60597
27683         * ira.c (adjust_cleared_regs): Call copy_rtx on
27684         *reg_equiv[REGNO (loc)].src_p before passing it to
27685         simplify_replace_fn_rtx.
27687         PR target/60568
27688         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
27689         into CONST, put pic register as first operand of PLUS.  Use
27690         gen_const_mem for both 32-bit and 64-bit PIC got loads.
27692 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27694         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
27696 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27698         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
27699         around for store forwarding issue in the FPU on the UT699.
27700         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
27701         loads and operations if -mfix-ut699 is specified.
27702         (divtf3_hq): Tweak attribute.
27703         (sqrttf2_hq): Likewise.
27705 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27707         * calls.c (store_one_arg): Remove incorrect const qualification on the
27708         type of the temporary.
27709         * cfgexpand.c (expand_return): Likewise.
27710         * expr.c (expand_constructor): Likewise.
27711         (expand_expr_real_1): Likewise.
27713 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27715         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
27716         of parts.
27718 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
27720         PR target/60039
27721         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
27723 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
27725         * config/arm/aarch-common-protos.h
27726         (alu_cost_table): Fix spelling of "extend".
27727         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
27729 2014-03-19  Richard Biener  <rguenther@suse.de>
27731         PR middle-end/60553
27732         * tree-core.h (tree_type_common): Re-order pointer members
27733         to reduce recursion depth during GC walks.
27735 2014-03-19  Marek Polacek  <polacek@redhat.com>
27737         PR sanitizer/60569
27738         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
27739         before accessing it.
27741 2014-03-19  Richard Biener  <rguenther@suse.de>
27743         PR lto/59543
27744         * lto-streamer-in.c (input_function): In WPA stage do not drop
27745         debug stmts.
27747 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
27749         PR tree-optimization/60559
27750         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
27751         with build_zero_cst assignment.
27753 2014-03-18  Kai Tietz  <ktietz@redhat.com>
27755         PR rtl-optimization/56356
27756         * sdbout.c (sdbout_parms): Verify that parms'
27757         incoming argument is valid.
27758         (sdbout_reg_parms): Likewise.
27760 2014-03-18  Richard Henderson  <rth@redhat.com>
27762         PR target/60562
27763         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
27764         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
27765         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
27767 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
27769         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
27770         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
27771         Italicize plugin event names in description.  Explain that
27772         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
27773         Remind that no GCC functions should be called after PLUGIN_FINISH.
27774         Explain what pragmas with expansion are.
27776 2014-03-18  Martin Liska  <mliska@suse.cz>
27778         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
27779         gimple call statement is update.
27780         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
27781         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
27783 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
27785         PR sanitizer/60557
27786         * ubsan.c (ubsan_instrument_unreachable): Call
27787         initialize_sanitizer_builtins.
27788         (ubsan_pass): Likewise.
27790         PR sanitizer/60535
27791         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
27792         varpool_finalize_decl instead of rest_of_decl_compilation.
27794 2014-03-18  Richard Biener  <rguenther@suse.de>
27796         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
27797         by using bitmap_and_compl instead of bitmap_and_compl_into.
27798         (df_rd_transfer_function): Likewise.
27800 2014-03-18  Richard Biener  <rguenther@suse.de>
27802         * doc/lto.texi (fresolution): Fix typo.
27804 2014-03-18  Richard Biener  <rguenther@suse.de>
27806         * doc/invoke.texi (flto): Update for changes in 4.9.
27808 2014-03-18  Richard Biener  <rguenther@suse.de>
27810         * doc/loop.texi: Remove section on the removed lambda framework.
27811         Update loop docs with recent changes in preserving loop structure.
27813 2014-03-18  Richard Biener  <rguenther@suse.de>
27815         * doc/lto.texi (-fresolution): Document.
27817 2014-03-18  Richard Biener  <rguenther@suse.de>
27819         * doc/contrib.texi: Adjust my name.
27821 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
27823         PR ipa/58721
27824         * internal-fn.c: Include diagnostic-core.h.
27825         (expand_BUILTIN_EXPECT): New function.
27826         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
27827         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
27828         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
27829         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
27830         IFN_BUILTIN_EXPECT.
27831         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
27832         Revert 3 argument __builtin_expect code.
27833         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
27834         * gimple-fold.c (gimple_fold_call): Likewise.
27835         * tree.h (fold_builtin_expect): New prototype.
27836         * builtins.c (build_builtin_expect_predicate): Add predictor
27837         argument, if non-NULL, create 3 argument __builtin_expect.
27838         (fold_builtin_expect): No longer static.  Add ARG2 argument,
27839         pass it through to build_builtin_expect_predicate.
27840         (fold_builtin_2): Adjust caller.
27841         (fold_builtin_3): Handle BUILT_IN_EXPECT.
27842         * internal-fn.def (BUILTIN_EXPECT): New.
27844 2014-03-18  Tobias Burnus  <burnus@net-b.de>
27846         PR ipa/58721
27847         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
27848         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
27849         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
27851 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
27853         PR ipa/58721
27854         * predict.c (combine_predictions_for_bb): Fix up formatting.
27855         (expr_expected_value_1, expr_expected_value): Add predictor argument,
27856         fill what it points to if non-NULL.
27857         (tree_predict_by_opcode): Adjust caller, use the predictor.
27858         * predict.def (PRED_COMPARE_AND_SWAP): Add.
27860 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
27862         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
27863         proper constant for the store mode.
27865 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
27867         * symtab.c (change_decl_assembler_name): Fix transparent alias
27868         chain construction.
27870 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
27872         * config/aarch64/aarch64.c: Correct the comments about the
27873         aarch64 stack layout.
27875 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
27877         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
27878         check for GF_OMP_FOR_KIND_FOR.
27880 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
27882         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
27883         ymm and zmm register names.
27885 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
27887         PR target/60516
27888         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
27889         note creation for the 2010-08-31 changes.
27891 2014-03-17  Marek Polacek  <polacek@redhat.com>
27893         PR middle-end/60534
27894         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
27895         as -fno-tree-loop-vectorize.
27896         (expand_omp_simd): Likewise.
27898 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27900         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
27901         (eligible_for_call_delay): New prototype.
27902         * config/sparc/sparc.c (tls_call_delay): Rename into...
27903         (eligible_for_call_delay): ...this.  Return false if the instruction
27904         cannot be put in the delay slot of a branch.
27905         (eligible_for_restore_insn): Simplify.
27906         (eligible_for_return_delay): Return false if the instruction cannot be
27907         put in the delay slot of a branch and simplify.
27908         (eligible_for_sibcall_delay): Return false if the instruction cannot be
27909         put in the delay slot of a branch.
27910         * config/sparc/sparc.md (fix_ut699): New attribute.
27911         (tls_call_delay): Delete.
27912         (in_call_delay): Reimplement.
27913         (eligible_for_sibcall_delay): Rename into...
27914         (in_sibcall_delay): ...this.
27915         (eligible_for_return_delay): Rename into...
27916         (in_return_delay): ...this.
27917         (in_branch_delay): Reimplement.
27918         (in_uncond_branch_delay): Delete.
27919         (in_annul_branch_delay): Delete.
27921 2014-03-14  Richard Henderson  <rth@redhat.com>
27923         PR target/60525
27924         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
27925         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
27926         (*floathi<X87MODEF>2_i387_with_temp): Remove.
27927         (floathi splitters): Remove.
27928         (float<SWI48x>xf2): New pattern.
27929         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
27930         code that tried to handle DImode for 32-bit, but which was excluded
27931         by the pattern's condition.  Drop allocation of stack temporary.
27932         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
27933         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
27934         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
27935         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
27936         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
27937         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
27938         (*float<SWI48><MODEF>2_sse_interunit): Remove.
27939         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
27940         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
27941         (*float<SWI48x><X87MODEF>2_i387): Remove.
27942         (all float _with_temp splitters): Remove.
27943         (*float<SWI48x><MODEF>2_i387): New pattern.
27944         (*float<SWI48><MODEF>2_sse): New pattern.
27945         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
27946         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
27948 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
27949             Marek Polacek  <polacek@redhat.com>
27951         PR middle-end/60484
27952         * common.opt (dump_base_name_prefixed): New Variable.
27953         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
27954         if x_dump_base_name_prefixed is already set, set it at the end.
27956 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
27958         PR rtl-optimization/60508
27959         * lra-constraints.c (get_reload_reg): Add new parameter
27960         in_subreg_p.
27961         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
27962         Pass the new parameter values.
27964 2014-03-14  Richard Biener  <rguenther@suse.de>
27966         * common.opt: Revert unintented changes from r205065.
27967         * opts.c: Likewise.
27969 2014-03-14  Richard Biener  <rguenther@suse.de>
27971         PR middle-end/60518
27972         * cfghooks.c (split_block): Properly adjust all loops the
27973         block was a latch of.
27975 2014-03-14  Martin Jambor  <mjambor@suse.cz>
27977         PR lto/60461
27978         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
27979         and simplify it.
27981 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
27983         PR target/59396
27984         * config/avr/avr.c (avr_set_current_function): Pass function name
27985         through default_strip_name_encoding before sanity checking instead
27986         of skipping the first char of the assembler name.
27988 2014-03-13  Richard Henderson  <rth@redhat.com>
27990         PR debug/60438
27991         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
27992         (ix86_force_to_memory, ix86_free_from_memory): Remove.
27993         * config/i386/i386-protos.h: Likewise.
27994         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
27995         in the expander instead of a splitter.
27996         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
27997         any possibility of requiring a memory.
27998         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
27999         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
28000         (fp branch splitters): Update for ix86_split_fp_branch.
28001         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
28002         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
28003         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
28004         (*fop_<MODEF>_2_i387): Remove f/r alternative.
28005         (*fop_<MODEF>_3_i387): Likewise.
28006         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
28007         (splitters for the fop_* register patterns): Remove.
28008         (fscalexf4_i387): Rename from *fscalexf4_i387.
28009         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
28011 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28013         PR tree-optimization/59779
28014         * tree-dfa.c (get_ref_base_and_extent): Use double_int
28015         type for bitsize and maxsize instead of HOST_WIDE_INT.
28017 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
28019         PR rtl-optimization/57320
28020         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
28021         the CFG after thread_prologue_and_epilogue_insns.
28023 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
28025         PR rtl-optimization/57189
28026         * lra-constraints.c (process_alt_operands): Disfavor spilling
28027         vector pseudos.
28029 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
28031         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
28033 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28035         PR tree-optimization/59025
28036         PR middle-end/60418
28037         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
28038         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
28040 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
28042         PR target/60486
28043         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
28044         calls of avr_out_plus_1.
28046 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
28048         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
28049         BB's single pred and update the father loop's latch info later.
28051 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
28053         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
28054         (VEC_M): Likewise.
28055         (VEC_N): Likewise.
28056         (VEC_R): Likewise.
28057         (VEC_base): Likewise.
28058         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
28059         registers, we need to swap double words in little endian mode.
28061         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
28062         to be a container mode for 128-bit integer operations added in ISA
28063         2.07.  Unlike TImode and PTImode, the preferred register set is
28064         the Altivec/VMX registers for the 128-bit operations.
28066         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
28067         declarations.
28068         (rs6000_split_128bit_ok_p): Likewise.
28070         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
28071         macros for creating ISA 2.07 normal and overloaded builtin
28072         functions with 3 arguments.
28073         (BU_P8V_OVERLOAD_3): Likewise.
28074         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
28075         for use as overloaded functions.
28076         (VPERM_1TI_UNS): Likewise.
28077         (VSEL_1TI): Likewise.
28078         (VSEL_1TI_UNS): Likewise.
28079         (ST_INTERNAL_1ti): Likewise.
28080         (LD_INTERNAL_1ti): Likewise.
28081         (XXSEL_1TI): Likewise.
28082         (XXSEL_1TI_UNS): Likewise.
28083         (VPERM_1TI): Likewise.
28084         (VPERM_1TI_UNS): Likewise.
28085         (XXPERMDI_1TI): Likewise.
28086         (SET_1TI): Likewise.
28087         (LXVD2X_V1TI): Likewise.
28088         (STXVD2X_V1TI): Likewise.
28089         (VEC_INIT_V1TI): Likewise.
28090         (VEC_SET_V1TI): Likewise.
28091         (VEC_EXT_V1TI): Likewise.
28092         (EQV_V1TI): Likewise.
28093         (NAND_V1TI): Likewise.
28094         (ORC_V1TI): Likewise.
28095         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
28096         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
28097         overloaded builtin.
28098         (VADDUQM): Likewise.
28099         (VSUBCUQ): Likewise.
28100         (VADDEUQM): Likewise.
28101         (VADDECUQ): Likewise.
28102         (VSUBEUQM): Likewise.
28103         (VSUBECUQ): Likewise.
28105         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
28106         __int128_t and __uint128_t types.
28107         (__uint128_type): Likewise.
28108         (altivec_categorize_keyword): Add support for vector __int128_t,
28109         vector __uint128_t, vector __int128, and vector unsigned __int128
28110         as a container type for TImode operations that need to be done in
28111         VSX/Altivec registers.
28112         (rs6000_macro_to_expand): Likewise.
28113         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
28114         to support 128-bit integer instructions vaddcuq, vadduqm,
28115         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
28116         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
28118         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
28119         for V1TImode, and set up preferences to use VSX/Altivec registers.
28120         Setup VSX reload handlers.
28121         (rs6000_debug_reg_global): Likewise.
28122         (rs6000_init_hard_regno_mode_ok): Likewise.
28123         (rs6000_preferred_simd_mode): Likewise.
28124         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
28125         (easy_altivec_constant): Likewise.
28126         (output_vec_const_move): Likewise.
28127         (rs6000_expand_vector_set): Convert V1TImode set and extract to
28128         simple move.
28129         (rs6000_expand_vector_extract): Likewise.
28130         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
28131         addressing.
28132         (rs6000_const_vec): Add support for V1TImode.
28133         (rs6000_emit_le_vsx_load): Swap double words when loading or
28134         storing TImode/V1TImode.
28135         (rs6000_emit_le_vsx_store): Likewise.
28136         (rs6000_emit_le_vsx_move): Likewise.
28137         (rs6000_emit_move): Add support for V1TImode.
28138         (altivec_expand_ld_builtin): Likewise.
28139         (altivec_expand_st_builtin): Likewise.
28140         (altivec_expand_vec_init_builtin): Likewise.
28141         (altivec_expand_builtin): Likewise.
28142         (rs6000_init_builtins): Add support for V1TImode type.  Add
28143         support for ISA 2.07 128-bit integer builtins.  Define type names
28144         for the VSX/Altivec vector types.
28145         (altivec_init_builtins): Add support for overloaded vector
28146         functions with V1TImode type.
28147         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
28148         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
28149         external function.
28150         (rs6000_split_128bit_ok_p): Likewise.
28151         (rs6000_handle_altivec_attribute): Create V1TImode from vector
28152         __int128_t and vector __uint128_t.
28154         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
28155         and mode attributes.
28156         (VSX_M): Likewise.
28157         (VSX_M2): Likewise.
28158         (VSm): Likewise.
28159         (VSs): Likewise.
28160         (VSr): Likewise.
28161         (VSv): Likewise.
28162         (VS_scalar): Likewise.
28163         (VS_double): Likewise.
28164         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
28166         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
28167         we support the ISA 2.07 128-bit integer arithmetic instructions.
28168         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
28169         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
28170         and TImode types for use with the builtin functions.
28171         (V1TI_type_node): Likewise.
28172         (unsigned_V1TI_type_node): Likewise.
28173         (intTI_type_internal_node): Likewise.
28174         (uintTI_type_internal_node): Likewise.
28176         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
28177         128-bit builtin functions.
28178         (UNSPEC_VADDEUQM): Likewise.
28179         (UNSPEC_VADDECUQ): Likewise.
28180         (UNSPEC_VSUBCUQ): Likewise.
28181         (UNSPEC_VSUBEUQM): Likewise.
28182         (UNSPEC_VSUBECUQ): Likewise.
28183         (VM): Add V1TImode to vector mode iterators.
28184         (VM2): Likewise.
28185         (VI_unit): Likewise.
28186         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
28187         (altivec_vaddcuq): Likewise.
28188         (altivec_vsubuqm): Likewise.
28189         (altivec_vsubcuq): Likewise.
28190         (altivec_vaddeuqm): Likewise.
28191         (altivec_vaddecuq): Likewise.
28192         (altivec_vsubeuqm): Likewise.
28193         (altivec_vsubecuq): Likewise.
28195         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
28196         mode iterators.
28197         (BOOL_128): Likewise.
28198         (BOOL_REGS_OUTPUT): Likewise.
28199         (BOOL_REGS_OP1): Likewise.
28200         (BOOL_REGS_OP2): Likewise.
28201         (BOOL_REGS_UNARY): Likewise.
28202         (BOOL_REGS_AND_CR0): Likewise.
28204         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
28205         128-bit integer builtin support.
28206         (vec_vadduqm): Likewise.
28207         (vec_vaddecuq): Likewise.
28208         (vec_vaddeuqm): Likewise.
28209         (vec_vsubecuq): Likewise.
28210         (vec_vsubeuqm): Likewise.
28211         (vec_vsubcuq): Likewise.
28212         (vec_vsubuqm): Likewise.
28214         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28215         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28216         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28217         128-bit integer add/subtract to ISA 2.07.
28219 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
28221         * config/arc/arc.c (arc_predicate_delay_insns):
28222         Fix third argument passed to conditionalize_nonjump.
28224 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
28226         * config/aarch64/aarch64-builtins.c
28227         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28228         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
28229         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
28230         instead of __builtin_lfloor.
28231         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
28233 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28235         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
28236         (tree_ssa_ifcombine_bb_1): New function.
28237         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
28238         is an empty forwarder block to then_bb or vice versa and then_bb
28239         and else_bb are effectively swapped.
28241 2014-03-12  Christian Bruel  <christian.bruel@st.com>
28243         PR target/60264
28244         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
28245         REG_CFA_DEF_CFA note.
28246         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
28247         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
28249 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28251         PR tree-optimization/60454
28252         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
28254 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28256         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
28257         Do not define target_cpu_default2 to generic.
28258         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
28259         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
28260         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
28262 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28263             Marc Glisse  <marc.glisse@inria.fr>
28265         PR tree-optimization/60502
28266         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
28267         instead of build_low_bits_mask.
28269 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28271         PR middle-end/60482
28272         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
28273         if there are multiple uses, but op doesn't live on E edge.
28274         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
28275         clobber stmts before __builtin_unreachable.
28277 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
28279         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
28280         hard_frame_pointer_rtx.
28281         * cse.c (cse_insn): Remove volatile check.
28282         * cselib.c (cselib_process_insn): Likewise.
28283         * dse.c (scan_insn): Likewise.
28285 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28287         * config/arc/arc.c (conditionalize_nonjump): New function,
28288         broken out of ...
28289         (arc_ifcvt): ... this.
28290         (arc_predicate_delay_insns): Use it.
28292 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28294         * config/arc/predicates.md (extend_operand): During/after reload,
28295         allow const_int_operand.
28296         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
28297         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
28298         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
28299         to "i".
28300         (umulsi3_highpart_i): Likewise.
28302 2014-03-11  Richard Biener  <rguenther@suse.de>
28304         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
28305         Add asserts to guard possible wrong-code bugs.
28307 2014-03-11  Richard Biener  <rguenther@suse.de>
28309         PR tree-optimization/60429
28310         PR tree-optimization/60485
28311         * tree-ssa-structalias.c (set_union_with_increment): Properly
28312         take into account all fields that overlap the shifted vars.
28313         (do_sd_constraint): Likewise.
28314         (do_ds_constraint): Likewise.
28315         (get_constraint_for_ptr_offset): Likewise.
28317 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
28319         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
28320         (nios2_compute_frame_layout):
28321         Add calculation of cfun->machine->fp_save_offset.
28322         (nios2_expand_prologue): Correct setting of frame pointer register
28323         in prologue.
28324         (nios2_expand_epilogue): Update recovery of stack pointer from
28325         frame pointer accordingly.
28326         (nios2_initial_elimination_offset): Update calculation of offset
28327         for eliminating to HARD_FRAME_POINTER_REGNUM.
28329 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
28331         PR ipa/60457
28332         * ipa.c (symtab_remove_unreachable_nodes): Don't call
28333         cgraph_get_create_node on VAR_DECLs.
28335 2014-03-10  Richard Biener  <rguenther@suse.de>
28337         PR middle-end/60474
28338         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
28340 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
28342         * config/vms/vms.opt (vms_float_format): New variable.
28344 2014-03-08  Tobias Burnus  <burnus@net-b.de>
28346         * doc/invoke.texi (-fcilkplus): Update implementation status.
28348 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
28349             Richard Biener  <rguenther@suse.de>
28351         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
28352         consistently accross all TUs.
28353         (run_gcc): Enable -fshort-double automatically at link at link-time
28354         and disallow override.
28356 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
28358         PR target/58271
28359         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
28360         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
28361         if they can't be used.
28363 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28365         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
28366         for Solaris 11/x86 ld.
28367         * configure: Regenerate.
28369 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28371         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
28372         (LIB_TLS_SPEC): Save as ld_tls_libs.
28373         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
28374         (HAVE_AS_IX86_TLSLDM): New test.
28375         * configure, config.in: Regenerate.
28376         * config/i386/i386.c (legitimize_tls_address): Fall back to
28377         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
28378         cannot support TLS_MODEL_LOCAL_DYNAMIC.
28379         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
28380         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
28382 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
28384         * common.opt (fira-loop-pressure): Mark as optimization.
28386 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
28388         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
28389         an OpenMP mappable type.
28391 2014-03-06  Matthias Klose  <doko@ubuntu.com>
28393         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
28394         MULTILIB_OSDIRNAMES is not defined.
28396 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
28397             Meador Inge  <meadori@codesourcery.com>
28399         PR target/58595
28400         * config/arm/arm.c (arm_tls_symbol_p): Remove.
28401         (arm_legitimize_address): Call legitimize_tls_address for any
28402         arm_tls_referenced_p expression, handle constant addend.  Call it
28403         before testing for !TARGET_ARM.
28404         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
28406 2014-03-06  Richard Biener  <rguenther@suse.de>
28408         PR middle-end/60445
28409         PR lto/60424
28410         PR lto/60427
28411         Revert
28412         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
28414         * tree-streamer.c (record_common_node): Assert we don't record
28415         nodes with type double.
28416         (preload_common_node): Skip type double, complex double and double
28417         pointer since it is now frontend dependent due to fshort-double option.
28419 2014-03-06  Richard Biener  <rguenther@suse.de>
28421         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
28422         or -fno-lto is specified and the linker has full plugin support.
28423         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
28424         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
28425         * lto-wrapper.c (merge_and_complain): Merge compile-time
28426         optimization levels.
28427         (run_gcc): And pass it through to the link options.
28429 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
28431         PR debug/60381
28432         Revert:
28433         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28434         PR debug/59992
28435         * cselib.c (remove_useless_values): Skip to avoid quadratic
28436         behavior if the condition moved from...
28437         (cselib_process_insn): ... here holds.
28439 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
28441         PR plugins/59335
28442         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
28443         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
28445         PR plugins/59335
28446         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
28447         (TM_H): Add x86-tune.def.
28449 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28451         * config/aarch64/aarch64.c (generic_tunings):
28452         Use cortexa57_extra_costs.
28454 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
28456         PR lto/60404
28457         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
28458         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
28459         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
28460         cost for in_lto_p.
28462 2014-03-04  Heiher  <r@hev.cc>
28464         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
28465         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
28467 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
28469         * config/i386/predicates.md (const2356_operand): Change to ...
28470         (const2367_operand): ... this.
28471         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
28472         const2367_operand.
28473         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28474         (*avx512pf_scatterpf<mode>sf): Ditto.
28475         (avx512pf_scatterpf<mode>df): Ditto.
28476         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28477         (*avx512pf_scatterpf<mode>df): Ditto.
28478         * config/i386/i386.c (ix86_expand_builtin): Update
28479         incorrect hint operand error message.
28481 2014-03-04  Richard Biener  <rguenther@suse.de>
28483         * lto-section-in.c (lto_get_section_data): Fix const cast.
28485 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
28487         * tree-streamer.c (record_common_node): Assert we don't record
28488         nodes with type double.
28489         (preload_common_node): Skip type double, complex double and double
28490         pointer since it is now frontend dependent due to fshort-double option.
28492 2014-03-04  Richard Biener  <rguenther@suse.de>
28494         PR lto/60405
28495         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
28496         (lto_input_toplevel_asms): Likewise.
28497         * lto-section-in.c (lto_get_section_data): Instead do it here
28498         for every section.
28500 2014-03-04  Richard Biener  <rguenther@suse.de>
28502         PR tree-optimization/60382
28503         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
28504         dead PHIs a reduction.
28506 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
28508         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
28509         hint value.
28510         (_mm_prefetch): Move out of GCC target("sse") pragma.
28511         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
28512         GCC target("prfchw") pragma.
28513         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
28514         for locality <= 2.
28515         * config/i386/i386.c (ix86_option_override_internal): Enable
28516         -mprfchw with -mprefetchwt1.
28518 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28520         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
28521         Mark as varying.
28523 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28525         * opts.h (CL_PCH_IGNORE): Define.
28526         * targhooks.c (option_affects_pch_p):
28527         Return false for options that have CL_PCH_IGNORE set.
28528         * opt-functions.awk: Process PchIgnore.
28529         * doc/options.texi: Document PchIgnore.
28531         * config/arc/arc.opt (misize): Add PchIgnore property.
28533 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28535         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
28536         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
28537         constraint on constants to permit them being loaded into
28538         GENERAL_REGS or BASE_REGS.
28540 2014-03-03  Nick Clifton  <nickc@redhat.com>
28542         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
28543         anti-cacnonical alternatives.
28544         (negandhi3_real): New pattern.
28545         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
28547 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28549         * config/avr/avr-mcus.def: Remove atxmega16x1.
28550         * config/avr/avr-tables.opt: Regenerate.
28551         * config/avr/t-multilib: Regenerate.
28552         * doc/avr-mmcu.texi: Regenerate.
28554 2014-03-03  Tobias Grosser  <tobias@grosser.es>
28555             Mircea Namolaru  <mircea.namolaru@inria.fr>
28557         PR tree-optimization/58028
28558         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
28559         scalar dimensions.
28561 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28563         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
28564         not handled by recognizers.
28566 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
28568         PR middle-end/60175
28569         * function.c (expand_function_end): Don't emit
28570         clobber_return_register sequence if clobber_after is a BARRIER.
28571         * cfgexpand.c (construct_exit_block): Append instructions before
28572         return_label to prev_bb.
28574 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28576         * config/rs6000/constraints.md: Document reserved use of "wc".
28578 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
28580         PR ipa/60150
28581         * ipa.c (function_and_variable_visibility): When dissolving comdat
28582         group, also set all symbols to local.
28584 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
28586         PR ipa/60306
28588         Revert:
28589         2013-12-14  Jan Hubicka  <jh@suse.cz>
28590         PR middle-end/58477
28591         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
28593 2014-03-02  Jon Beniston  <jon@beniston.com>
28595         PR bootstrap/48230
28596         PR bootstrap/50927
28597         PR bootstrap/52466
28598         PR target/46898
28599         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
28600           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
28601         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
28602         (simple_return, *simple_return): New patterns
28603         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
28604         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
28606 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
28608         * dwarf2out.c (gen_subprogram_die): Tidy.
28610 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
28612         PR target/60071
28613         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
28614         (*mov_t_msb_neg_negc): ... this new insn.
28616 2014-02-28  Jason Merrill  <jason@redhat.com>
28618         PR c++/58678
28619         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
28620         function.
28622 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
28624         PR c++/60314
28625         * dwarf2out.c (decltype_auto_die): New static.
28626         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
28627         (gen_type_die_with_usage): Handle 'decltype(auto)'.
28628         (is_cxx_auto): Likewise.
28630 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
28632         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
28633         we are not using general regs only.
28635 2014-02-28  Richard Biener  <rguenther@suse.de>
28637         PR target/60280
28638         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
28639         previous fix and only allow to remove trivial pre-headers
28640         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
28641         (remove_forwarder_block): Properly update the latch of a loop.
28643 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28645         PR debug/59992
28646         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
28647         (cselib_preserved_hash_table): New.
28648         (preserve_constants_and_equivs): Move preserved vals to it.
28649         (cselib_find_slot): Look it up first.
28650         (cselib_init): Initialize it.
28651         (cselib_finish): Release it.
28652         (dump_cselib_table): Dump it.
28654 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28656         PR debug/59992
28657         * cselib.c (remove_useless_values): Skip to avoid quadratic
28658         behavior if the condition moved from...
28659         (cselib_process_insn): ... here holds.
28661 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28663         PR debug/57232
28664         * var-tracking.c (vt_initialize): Apply the same condition to
28665         preserve the CFA base value.
28667 2014-02-28  Joey Ye  <joey.ye@arm.com>
28669         PR target/PR60169
28670         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
28671         if reload in progress or completed.
28673 2014-02-28  Tobias Burnus  <burnus@net-b.de>
28675         PR middle-end/60147
28676         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
28677         NAMELIST_DECL.
28679 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
28681         * doc/tm.texi.in (Condition Code Status): Update documention for
28682         relative locations of cc0-setter and cc0-user.
28684 2014-02-27  Jeff Law  <law@redhat.com>
28686         PR rtl-optimization/52714
28687         * combine.c (try_combine): When splitting an unrecognized PARALLEL
28688         into two independent simple sets, if I3 is a jump, ensure the
28689         pattern we place into I3 is a (set (pc) ...).
28691 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
28692             Jeff Law  <law@redhat.com>
28694         PR rtl-optimization/49847
28695         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
28696         are in different blocks.
28697         * doc/tm.texi (Condition Code Status): Update documention for
28698         relative locations of cc0-setter and cc0-user.
28700 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28702         PR target/59222
28703         * lra.c (lra_emit_add): Check SUBREG too.
28705 2014-02-27  Andreas Schwab  <schwab@suse.de>
28707         * config/m68k/m68k.c (m68k_option_override): Disable
28708         -flive-range-shrinkage for classic m68k.
28709         (m68k_override_options_after_change): Likewise.
28711 2014-02-27  Marek Polacek  <polacek@redhat.com>
28713         PR middle-end/59223
28714         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
28715         -Wmaybe-uninitialized.
28717 2014-02-27  Alan Modra  <amodra@gmail.com>
28719         PR target/57936
28720         * reload1.c (emit_input_reload_insns): When reload_override_in,
28721         set old to rl->in_reg when rl->in_reg is a subreg.
28723 2014-02-26  Richard Biener  <rguenther@suse.de>
28725         PR bootstrap/60343
28726         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
28728 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
28730         * common/config/i386/predicates.md (const1256_operand): Remove.
28731         (const2356_operand): New.
28732         (const_1_to_2_operand): Remove.
28733         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28734         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28735         (*avx512pf_gatherpf<mode>sf): Ditto.
28736         (avx512pf_gatherpf<mode>df): Ditto.
28737         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28738         (*avx512pf_gatherpf<mode>df): Ditto.
28739         (avx512pf_scatterpf<mode>sf): Ditto.
28740         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28741         (*avx512pf_scatterpf<mode>sf): Ditto.
28742         (avx512pf_scatterpf<mode>df): Ditto.
28743         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28744         (*avx512pf_scatterpf<mode>df): Ditto.
28745         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
28747 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
28749         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
28750         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
28751         (_mm512_mask_testn_epi64_mask): Move to ...
28752         * config/i386/avx512cdintrin.h: Here.
28753         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
28754         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
28755         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
28756         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
28757         TARGET_AVX512F from TARGET_AVX512CD.
28759 2014-02-26  Richard Biener  <rguenther@suse.de>
28761         PR ipa/60327
28762         * ipa.c (walk_polymorphic_call_targets): Properly guard
28763         call to inline_update_overall_summary.
28765 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
28767         PR target/60280
28768         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
28769         and latches only if requested.  Fix latch if it is removed.
28770         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
28771         LOOPS_HAVE_PREHEADERS.
28773 2014-02-25  Andrew Pinski  <apinski@cavium.com>
28775         * builtins.c (expand_builtin_thread_pointer): Create a new target
28776         when the target is NULL.
28778 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
28780         PR rtl-optimization/60317
28781         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28782         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28783         * lra-assigns.c: Include params.h.
28784         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
28785         other reload pseudos considerations.
28787 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28789         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
28790         to use canonical form for nor<mode>3.
28792 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28794         PR target/55426
28795         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
28796         conversions.
28798 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
28800         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
28801         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
28802         (ix86_handle_option): Handle OPT_mprefetchwt1.
28803         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
28804         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28805         PREFETCHWT1 CPUID.
28806         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28807         OPTION_MASK_ISA_PREFETCHWT1.
28808         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
28809         (PTA_PREFETCHWT1): New.
28810         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
28811         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
28812         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
28813         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
28814         (*prefetch_avx512pf_<mode>_: Change into ...
28815         (*prefetch_prefetchwt1_<mode>: This.
28816         * config/i386/i386.opt (mprefetchwt1): New.
28817         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
28818         (_mm_prefetch): Handle intent to write.
28819         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
28821 2014-02-25  Richard Biener  <rguenther@suse.de>
28823         PR middle-end/60291
28824         * emit-rtl.c (mem_attrs_htab): Remove.
28825         (mem_attrs_htab_hash): Likewise.
28826         (mem_attrs_htab_eq): Likewise.
28827         (set_mem_attrs): Always allocate new mem-attrs when something changed.
28828         (init_emit_once): Do not allocate mem_attrs_htab.
28830 2014-02-25  Richard Biener  <rguenther@suse.de>
28832         PR lto/60319
28833         * lto-opts.c (lto_write_options): Output non-explicit conservative
28834         -fwrapv, -fno-trapv and -fno-strict-overflow.
28835         * lto-wrapper.c (merge_and_complain): Handle merging those options.
28836         (run_gcc): And pass them through.
28838 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
28840         * sel-sched.c (calculate_new_fences): New parameter ptime.
28841         Calculate it as a maximum over all fence cycles.
28842         (sel_sched_region_2): Adjust the call to calculate_new_fences.
28843         Print the final schedule timing when sched_verbose.
28845 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
28847         PR rtl-optimization/60292
28848         * sel-sched.c (fill_vec_av_set): Do not reset target availability
28849         bit fot the fence instruction.
28851 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
28853         * calls.h: Fix typo in comment.
28855 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
28857         * config/pa/pa.c (pa_output_move_double): Don't valididate when
28858         adjusting offsetable addresses.
28860 2014-02-24  Guozhi Wei  <carrot@google.com>
28862         * sparseset.h (sparseset_pop): Fix the wrong index.
28864 2014-02-24  Walter Lee  <walt@tilera.com>
28866         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
28867         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
28868         triplet.
28869         * common/config/tilegx/tilegx-common.c
28870         (TARGET_DEFAULT_TARGET_FLAGS): Define.
28871         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
28872         (LINK_SPEC): Ditto.
28873         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
28874         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
28875         (tilegx_gimplify_va_arg_expr): Handle big endian.
28876         (tilegx_expand_unaligned_load): Ditto.
28877         (tilegx_expand_unaligned_store): Ditto.
28878         (TARGET_RETURN_IN_MSB): New.
28879         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
28880         (TARGET_ENDIAN_DEFAULT): New.
28881         (TARGET_BIG_ENDIAN): Handle big endian.
28882         (BYTES_BIG_ENDIAN): Ditto.
28883         (WORDS_BIG_ENDIAN): Ditto.
28884         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
28885         (ENDIAN_SPEC): New.
28886         (EXTRA_SPECS): New.
28887         * config/tilegx/tilegx.md (extv): Handle big endian.
28888         (extzv): Ditto.
28889         (insn_st<n>): Ditto.
28890         (insn_st<n>_add<bitsuffix>): Ditto.
28891         (insn_stnt<n>): Ditto.
28892         (insn_stnt<n>_add<bitsuffix>):Ditto.
28893         (vec_interleave_highv8qi): Handle big endian.
28894         (vec_interleave_highv8qi_be): New.
28895         (vec_interleave_highv8qi_le): New.
28896         (insn_v1int_h): Handle big endian.
28897         (vec_interleave_lowv8qi): Handle big endian.
28898         (vec_interleave_lowv8qi_be): New.
28899         (vec_interleave_lowv8qi_le): New.
28900         (insn_v1int_l): Handle big endian.
28901         (vec_interleave_highv4hi): Handle big endian.
28902         (vec_interleave_highv4hi_be): New.
28903         (vec_interleave_highv4hi_le): New.
28904         (insn_v2int_h): Handle big endian.
28905         (vec_interleave_lowv4hi): Handle big endian.
28906         (vec_interleave_lowv4hi_be): New.
28907         (vec_interleave_lowv4hi_le): New.
28908         (insn_v2int_l): Handle big endian.
28909         (vec_interleave_highv2si): Handle big endian.
28910         (vec_interleave_highv2si_be): New.
28911         (vec_interleave_highv2si_le): New.
28912         (insn_v4int_h): Handle big endian.
28913         (vec_interleave_lowv2si): Handle big endian.
28914         (vec_interleave_lowv2si_be): New.
28915         (vec_interleave_lowv2si_le): New.
28916         (insn_v4int_l): Handle big endian.
28917         * config/tilegx/tilegx.opt (mbig-endian): New option.
28918         (mlittle-endian): New option.
28919         * doc/install.texi: Document tilegxbe-linux.
28920         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
28922 2014-02-24  Martin Jambor  <mjambor@suse.cz>
28924         PR ipa/60266
28925         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
28926         there are no parameter descriptors.
28928 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
28930         PR rtl-optimization/60268
28931         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
28932         initialization to ...
28933         (sched_rgn_init): ... here.
28934         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
28936 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
28938         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
28939         names.
28941 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
28943         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
28944         definition.
28946 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
28948         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
28949         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
28951 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
28953         * config/microblaze/predicates.md: Add cmp_op predicate.
28954         * config/microblaze/microblaze.md: Add branch_compare instruction
28955         which uses cmp_op predicate and emits cmp insn before branch.
28956         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
28957         to microblaze_expand_conditional_branch and consolidate logic.
28958         (microblaze_expand_conditional_branch): emit branch_compare
28959         insn instead of handling cmp op separate from branch insn.
28961 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28963         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
28964         to permit subregs.
28966 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28968         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
28969         define_insn with define_expand and new define_insn
28970         *altivec_lve<VI_char>x_internal.
28971         (altivec_stve<VI_char>x): Replace define_insn with define_expand
28972         and new define_insn *altivec_stve<VI_char>x_internal.
28973         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
28974         prototype.
28975         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
28976         lve*x built-ins.
28977         (altivec_expand_stvex_be): New function.
28979 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
28981         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
28982         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
28983         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
28984         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
28986 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
28988         PR target/60298
28989         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
28990         instead of emit_move_insn.
28992 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28994         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
28995         vspltw with vsldoi.
28996         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
28997         gen_altivec_vsumsws.
28999 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29001         * config/rs6000/altivec.md (altivec_lvxl): Rename as
29002         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
29003         (altivec_lvxl_<mode>): New define_expand incorporating
29004         -maltivec=be semantics where needed.
29005         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
29006         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
29007         semantics where needed.
29008         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
29009         (altivec_stvx_<mode>): New define_expand incorporating
29010         -maltivec=be semantics where needed.
29011         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
29012         VM2 iterator instead of V4SI.
29013         (altivec_stvxl_<mode>): New define_expand incorporating
29014         -maltivec=be semantics where needed.
29015         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
29016         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
29017         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
29018         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
29019         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
29020         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
29021         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
29022         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
29023         ALTIVEC_BUILTIN_STVXL.
29024         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
29025         (altivec_expand_stvx_be): Likewise.
29026         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
29027         (altivec_expand_lvx_be): Likewise.
29028         (altivec_expand_stvx_be): Likewise.
29029         (altivec_expand_builtin): Add cases for
29030         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
29031         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
29032         (altivec_init_builtins): Add definitions for
29033         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
29034         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
29036 2014-02-21  Catherine Moore  <clm@codesourcery.com>
29038         * doc/invoke.texi (mvirt, mno-virt): Document.
29039         * config/mips/mips.opt (mvirt): New option.
29040         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
29042 2014-02-21  Richard Biener  <rguenther@suse.de>
29044         PR tree-optimization/60276
29045         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
29046         (STMT_VINFO_MIN_NEG_DIST): New macro.
29047         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
29048         STMT_VINFO_MIN_NEG_DIST.
29049         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
29050         made for negative dependence distances still hold.
29052 2014-02-21  Richard Biener  <rguenther@suse.de>
29054         PR middle-end/60291
29055         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
29056         DECL_INITIAL for globals not in the current function context.
29058 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29060         PR tree-optimization/56490
29061         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
29062         * tree-ssa-uninit.c: Include params.h.
29063         (compute_control_dep_chain): Add num_calls argument, return false
29064         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
29065         num_calls to recursive call.
29066         (find_predicates): Change dep_chain into normal array,
29067         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
29068         variable and adjust compute_control_dep_chain caller.
29069         (find_def_preds): Likewise.
29071 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
29073         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
29074         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
29076 2014-02-21  Nick Clifton  <nickc@redhat.com>
29078         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
29079         (pushhi1): Likewise.
29080         (popqi1): Add mode to pre_dec.
29081         (pophi1): Likewise.
29083 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29085         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
29086         mode for mask of V8SFmode permutation.
29088 2014-02-20  Richard Henderson  <rth@redhat.com>
29090         PR c++/60272
29091         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
29092         a new pseudo for OLDVAL.
29094 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
29096         PR target/57896
29097         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
29098         gen_reg_rtx if d->testing_p.
29099         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
29100         if d->testing_p and we will certainly return true.
29101         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
29102         if d->testing_p.
29104 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
29106         * emit-rtl.c (gen_reg_rtx): Assert that
29107         crtl->emit.regno_pointer_align_length is non-zero.
29109 2014-02-20  Richard Henderson  <rth@redhat.com>
29111         PR c++/60272
29112         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
29113         on failure the store back into EXPECT.
29115 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
29116             Sandra Loosemore  <sandra@codesourcery.com>
29118         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
29119         * config/nios2/nios2.c (nios2_function_profiler): Add
29120         -fPIC (flag_pic == 2) support.
29121         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
29122         (nios2_large_offset_p): New function.
29123         (nios2_unspec_reloc_p): Move up position, update to use
29124         nios2_large_offset_p.
29125         (nios2_unspec_address): Remove function.
29126         (nios2_unspec_offset): New function.
29127         (nios2_large_got_address): New function.
29128         (nios2_got_address): Add large offset support.
29129         (nios2_legitimize_tls_address): Update usage of removed and new
29130         functions.
29131         (nios2_symbol_binds_local_p): New function.
29132         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
29133         (nios2_legitimize_address): Update to use nios2_large_offset_p.
29134         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
29135         (nios2_print_operand): Merge H/L processing, add hiadj/lo
29136         processing for (const (unspec ...)).
29137         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
29139 2014-02-20  Richard Biener  <rguenther@suse.de>
29141         * tree-cfg.c (replace_uses_by): Mark altered BBs before
29142         doing the substitution.
29143         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
29145 2014-02-20  Martin Jambor  <mjambor@suse.cz>
29147         PR ipa/55260
29148         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
29149         info when checking whether lattices are bottom.
29151 2014-02-20  Richard Biener  <rguenther@suse.de>
29153         PR middle-end/60221
29154         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
29155         regions at -O0.
29157 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
29159         PR ipa/58555
29160         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
29161         parameter specifying the scaling.
29162         (inline_call): Update.
29163         (want_inline_recursively): Guard division by zero.
29164         (recursive_inlining): Update.
29165         * ipa-inline.h (clone_inlined_nodes): Update.
29167 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29169         PR target/60204
29170         * config/i386/i386.c (classify_argument): Pass structures of size
29171         64 bytes or less in register.
29173 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29174             Kirill Yukhin  <kirill.yukhin@intel.com>
29176         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
29177         (_mm_rcp28_round_ss): Ditto.
29178         (_mm_rsqrt28_round_sd): Ditto.
29179         (_mm_rsqrt28_round_ss): Ditto.
29180         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
29181         (_mm_rcp14_round_ss): Ditto.
29182         (_mm_rsqrt14_round_sd): Ditto.
29183         (_mm_rsqrt14_round_ss): Ditto.
29184         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
29185         the first input operand, get rid of match_dup.
29186         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
29187         attribute to sse.
29188         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29189         Ditto.
29190         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
29191         operand as the first input operand, set type attribute.
29192         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29193         Set type attribute.
29194         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
29195         operand as the first input operand, set type attribute.
29197 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29199         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
29200         bit of zero.
29202 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
29204         PR target/60207
29205         * config/i386/i386.c (construct_container): Remove TFmode check
29206         for X86_64_INTEGER_CLASS.
29208 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
29210         PR target/59794
29211         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29212         only when -Wpsabi is enabled.
29214 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
29216          PR target/59799
29217         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29218         passing arrays in registers are the same as for structs, so remove the
29219         special case for them.
29221 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
29223         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29224         destination type, extract only the valid bits if the source type is not
29225         integral and has a different mode.
29227 2014-02-19  Richard Biener  <rguenther@suse.de>
29229         PR ipa/60243
29230         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
29231         for all calls.
29233 2014-02-19  Richard Biener  <rguenther@suse.de>
29235         PR ipa/60243
29236         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
29237         (ipa_modify_call_arguments): Emit an argument load explicitely and
29238         preserve virtual SSA form there and for the replacement call.
29239         Do not update SSA form nor free dominance info.
29241 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29243         * ipa.c (function_and_variable_visibility): Also clear WEAK
29244         flag when disolving COMDAT_GROUP.
29246 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29248         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
29249         * ipa-prop.c (ipa_set_jf_known_type): Return early when
29250         not devirtualizing.
29251         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
29252         do more sanity checks.
29253         (detect_type_change): Return true when giving up early.
29254         (compute_complex_assign_jump_func): Fix type parameter of
29255         ipa_set_ancestor_jf.
29256         (compute_complex_ancestor_jump_func): Likewise.
29257         (update_jump_functions_after_inlining): Fix updating of
29258         ancestor function.
29259         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
29261 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29263         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
29264         inline clones when edge disappears.
29266 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
29268         PR target/60203
29269         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
29270         Split 64-bit moves into 2 patterns.  Do not allow the use of
29271         direct move for TDmode in little endian, since the decimal value
29272         has little endian bytes within a word, but the 64-bit pieces are
29273         ordered in a big endian fashion, and normal subreg's of TDmode are
29274         not allowed.
29275         (mov<mode>_64bit_dm): Likewise.
29276         (movtd_64bit_nodm): Likewise.
29278 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
29280         PR tree-optimization/60174
29281         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
29282         statement of an SSA_NAME that occurs in an abnormal PHI node.
29284 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
29286         PR sanitizer/60142
29287         * final.c (SEEN_BB): Remove.
29288         (SEEN_NOTE, SEEN_EMITTED): Renumber.
29289         (final_scan_insn): Don't force_source_line on second
29290         NOTE_INSN_BASIC_BLOCK.
29292 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
29294         PR target/60205
29295         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
29296         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
29297         (type_natural_mode): Warn ABI change when %zmm register is not
29298         available for AVX512F vector value passing.
29300 2014-02-18  Kai Tietz  <ktietz@redhat.com>
29302         PR target/60193
29303         * config/i386/i386.c (ix86_expand_prologue): Use value in
29304         rax register as displacement when restoring %r10 or %rax.
29305         Fix wrong offset when restoring both registers.
29307 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
29309         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
29310         assertion with conditional return.
29312 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
29313             Uros Bizjak  <ubizjak@gmail.com>
29315         PR driver/60233
29316         * config/i386/driver-i386.c (host_detect_local_cpu): If
29317         YMM state is not saved by the OS, also clear has_f16c.  Move
29318         CPUID 0x80000001 handling before YMM state saving checking.
29320 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
29322         PR rtl-optimization/58960
29323         * haifa-sched.c (alloc_global_sched_pressure_data): New,
29324         factored out from ...
29325         (sched_init): ... here.
29326         (free_global_sched_pressure_data): New, factored out from ...
29327         (sched_finish): ... here.
29328         * sched-int.h (free_global_sched_pressure_data): Declare.
29329         * sched-rgn.c (nr_regions_initial): New static global.
29330         (haifa_find_rgns): Initialize it.
29331         (schedule_region): Disable sched-pressure for the newly
29332         generated regions.
29334 2014-02-17  Richard Biener  <rguenther@suse.de>
29336         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
29337         release SSA defs of pattern stmts.
29339 2014-02-17  Richard Biener  <rguenther@suse.de>
29341         * tree-inline.c (expand_call_inline): Release the virtual
29342         operand defined by the call we are about to inline.
29344 2014-02-17  Richard Biener  <rguenther@suse.de>
29346         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
29348 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
29349             Ilya Tocar  <ilya.tocar@intel.com>
29351         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
29352         arguments order in builtin.
29353         (_mm512_permutexvar_epi64): Ditto.
29354         (_mm512_mask_permutexvar_epi64): Ditto
29355         (_mm512_maskz_permutexvar_epi32): Ditto
29356         (_mm512_permutexvar_epi32): Ditto
29357         (_mm512_mask_permutexvar_epi32): Ditto
29359 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29361         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
29362         (p8_vmrgow): Likewise.
29364 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29366         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
29367         endian targets.
29369 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
29371         PR target/60203
29372         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
29373         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
29374         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
29375         using direct move instructions on ISA 2.07.  Also adjust
29376         instruction length for 64-bit.
29377         (mov<mode>_64bit, TFmode/TDmode): Likewise.
29378         (mov<mode>_32bit, TFmode/TDmode): Likewise.
29380 2014-02-15  Alan Modra  <amodra@gmail.com>
29382         PR target/58675
29383         PR target/57935
29384         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29385         find_replacement on parts of insn rtl that might be reloaded.
29387 2014-02-15  Richard Biener  <rguenther@suse.de>
29389         PR tree-optimization/60183
29390         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
29391         (tree_ssa_phiprop): Calculate and free post-dominators.
29393 2014-02-14  Jeff Law  <law@redhat.com>
29395         PR rtl-optimization/60131
29396         * ree.c (get_extended_src_reg): New function.
29397         (combine_reaching_defs): Use it rather than assuming location of REG.
29398         (find_and_remove_re): Verify first operand of extension is
29399         a REG before adding the insns to the copy list.
29401 2014-02-14  Roland McGrath  <mcgrathr@google.com>
29403         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
29404         * configure: Regenerated.
29405         * config.in: Regenerated.
29406         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
29407         instead of ASM_SHORT.
29409 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
29410             Richard Earnshaw  <rearnsha@arm.com>
29412         PR rtl-optimization/59535
29413         * lra-constraints.c (process_alt_operands): Encourage alternative
29414         when unassigned pseudo class is superset of the alternative class.
29415         (inherit_reload_reg): Don't inherit when optimizing for code size.
29416         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
29417         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
29418         modes not less than 4 for Thumb1.
29420 2014-02-14  Kyle McMartin  <kyle@redhat.com>
29422         PR pch/60010
29423         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
29425 2014-02-14  Richard Biener  <rguenther@suse.de>
29427         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
29428         (get_frame_arg): Drop the assert with langhook types_compatible_p.
29429         Do not strip INDIRECT_REFs.
29431 2014-02-14  Richard Biener  <rguenther@suse.de>
29433         PR lto/60179
29434         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
29435         DECL_FUNCTION_SPECIFIC_TARGET.
29436         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
29437         * tree-streamer-out.c (pack_ts_target_option): Remove.
29438         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
29439         (write_ts_function_decl_tree_pointers): Do not stream
29440         DECL_FUNCTION_SPECIFIC_TARGET.
29441         * tree-streamer-in.c (unpack_ts_target_option): Remove.
29442         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
29443         (lto_input_ts_function_decl_tree_pointers): Do not stream
29444         DECL_FUNCTION_SPECIFIC_TARGET.
29446 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
29448         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
29449         (get_initial_def_for_induction, vectorizable_induction): Ignore
29450         debug stmts when looking for exit_phi.
29451         (vectorizable_live_operation): Fix up condition.
29453 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29455         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
29456         nreverse() because it changes the content of original tree list.
29458 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29460         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
29461         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
29463 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29465         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
29466         GNU coding standards.
29468 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
29470         PR debug/60152
29471         * dwarf2out.c (gen_subprogram_die): Don't call
29472         add_calling_convention_attribute if subr_die is old_die.
29474 2014-02-13  Sharad Singhai  <singhai@google.com>
29476         * doc/optinfo.texi: Fix order of nodes.
29478 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
29480         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
29481         operands[2], not operands[3].
29483 2014-02-13  Richard Biener  <rguenther@suse.de>
29485         PR bootstrap/59878
29486         * doc/install.texi (ISL): Update recommended version to 0.12.2,
29487         mention the possibility of an in-tree build.
29488         (CLooG): Update recommended version to 0.18.1, mention the
29489         possibility of an in-tree build and clarify that the ISL
29490         bundled with CLooG does not work.
29492 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
29494         PR target/43546
29495         * expr.c (compress_float_constant): If x is a hard register,
29496         extend into a pseudo and then move to x.
29498 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29500         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
29501         caused by bad second argument to warning_at() with -mhotpatch and
29502         nested functions (e.g. with gfortran).
29504 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
29506         * opts.c (option_name): Remove "enabled by default" rider.
29508 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
29510         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
29512 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29513             Uros Bizjak  <ubizjak@gmail.com>
29515         PR target/60151
29516         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
29517         * configure: Regenerated.
29519 2014-02-12  Richard Biener  <rguenther@suse.de>
29521         * vec.c (vec_prefix::calculate_allocation): Move as
29522         inline variant to vec.h.
29523         (vec_prefix::calculate_allocation_1): New out-of-line version.
29524         * vec.h (vec_prefix::calculate_allocation_1): Declare.
29525         (vec_prefix::m_has_auto_buf): Rename to ...
29526         (vec_prefix::m_using_auto_storage): ... this.
29527         (vec_prefix::calculate_allocation): Inline the easy cases
29528         and dispatch to calculate_allocation_1 which doesn't need the
29529         prefix address.
29530         (va_heap::reserve): Use gcc_checking_assert.
29531         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
29532         m_using_auto_storage.
29533         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
29534         member and adjust.
29535         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
29536         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
29537         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
29539 2014-02-12  Richard Biener  <rguenther@suse.de>
29541         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
29542         when we found a dependence.
29544 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
29546         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
29547         common code...
29548         (maybe_fold_stmt): ... into this new function.
29549         * omp-low.c (lower_omp): Update comment.
29551         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
29552         last use.
29554         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
29555         dereference.
29557 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
29559         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
29560         identifiers in comments.
29561         (cortexa53_extra_costs): Likewise.
29562         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
29563         (cortexa7_extra_costs): Likewise.
29564         (cortexa12_extra_costs): Likewise.
29565         (cortexa15_extra_costs): Likewise.
29566         (v7m_extra_costs): Likewise.
29568 2014-02-12  Richard Biener  <rguenther@suse.de>
29570         PR middle-end/60092
29571         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
29572         of posix_memalign being successful.
29573         (lower_stmt): Restrict lowering of posix_memalign to when
29574         -ftree-bit-ccp is enabled.
29576 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29578         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
29579         arg_loc.
29580         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
29582 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
29584         PR rtl-optimization/60116
29585         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
29586         other_insn once the combination has been validated.
29588 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
29590         PR lto/59468
29591         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
29592         and wrapper.
29593         * ipa-devirt.c: Include demangle.h
29594         (odr_violation_reported): New static variable.
29595         (add_type_duplicate): Update odr_violations.
29596         (maybe_record_node): Add completep parameter; update it.
29597         (record_target_from_binfo): Add COMPLETEP parameter;
29598         update it as needed.
29599         (possible_polymorphic_call_targets_1): Likewise.
29600         (struct polymorphic_call_target_d): Add nonconstruction_targets;
29601         rename FINAL to COMPLETE.
29602         (record_targets_from_bases): Sanity check we found the binfo;
29603         fix COMPLETEP updating.
29604         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
29605         parameter, fix computing of COMPLETEP.
29606         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
29607         at LTO time do demangling.
29608         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
29609         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
29610         parameter.
29611         (gimple_get_virt_method_for_binfo): Likewise.
29612         * gimple-fold.h (gimple_get_virt_method_for_binfo,
29613         gimple_get_virt_method_for_vtable): Update prototypes.
29615 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
29617         PR target/49008
29618         * genautomata.c (add_presence_absence): Fix typo with
29619         {final_}presence_list.
29621 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
29623         PR target/60137
29624         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
29625         for VSX/Altivec vectors that land in GPR registers.
29627 2014-02-11  Richard Henderson  <rth@redhat.com>
29628             Jakub Jelinek  <jakub@redhat.com>
29630         PR debug/59776
29631         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
29632         around drhs if type conversion to lacc->type is not useless.
29634 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29636         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
29637         tuning struct.
29638         (cortex-a57.cortex-a53): Likewise.
29639         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
29641 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29643         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
29644         arm_restrict_it.
29646 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
29648         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
29649         add_options_for_arm_vfp3.
29651 2014-02-11  Jeff Law  <law@redhat.com>
29653         PR middle-end/54041
29654         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
29655         object with an undesirable mode.
29657 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29659         PR libgomp/60107
29660         * config/i386/sol2-9.h: New file.
29661         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
29662         *-*-solaris2.9*): Use it.
29664 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
29666         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
29667         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
29669 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
29671         * config/microblaze/microblaze.c: Extend mcpu version format
29673 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
29675         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
29677 2014-02-10  Richard Henderson  <rth@redhat.com>
29679         PR target/59927
29680         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
29681         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
29682         ms-abi vs -mno-accumulate-outgoing-args.
29683         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
29684         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
29685         respect to ms-abi.
29687 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29689         PR middle-end/60080
29690         * cfgexpand.c (expand_asm_operands): Attach source location to
29691         ASM_INPUT rtx objects.
29692         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
29694 2014-02-10  Nick Clifton  <nickc@redhat.com>
29696         * config/mn10300/mn10300.c (popcount): New function.
29697         (mn10300_expand_prologue): Include saved registers in stack usage
29698         count.
29700 2014-02-10  Jeff Law  <law@redhat.com>
29702         PR middle-end/52306
29703         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
29704         when changing the SET_DEST of a prior insn to avoid an input reload.
29706 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29708         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
29709         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
29710         -mcall-openbsd, or -mcall-linux.
29711         (CC1_ENDIAN_BIG_SPEC): Remove.
29712         (CC1_ENDIAN_LITTLE_SPEC): Remove.
29713         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29714         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
29715         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
29716         and %cc1_endian_default.
29717         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29719 2014-02-10  Richard Biener  <rguenther@suse.de>
29721         PR tree-optimization/60115
29722         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
29723         MEM_REF handling.  Properly verify that the accesses are not
29724         out of the objects bound.
29726 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29728         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
29729         coretex to cortex.
29731 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
29733         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
29734         proper constants and fix formatting.
29735         (possible_polymorphic_call_targets): Fix formatting.
29737 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
29738             Ilya Tocar  <ilya.tocar@intel.com>
29740         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
29741         (_mm512_loadu_epi32): Renamed into...
29742         (_mm512_loadu_si512): This.
29743         (_mm512_storeu_epi32): Renamed into...
29744         (_mm512_storeu_si512): This.
29745         (_mm512_maskz_ceil_ps): Removed.
29746         (_mm512_maskz_ceil_pd): Ditto.
29747         (_mm512_maskz_floor_ps): Ditto.
29748         (_mm512_maskz_floor_pd): Ditto.
29749         (_mm512_floor_round_ps): Ditto.
29750         (_mm512_floor_round_pd): Ditto.
29751         (_mm512_ceil_round_ps): Ditto.
29752         (_mm512_ceil_round_pd): Ditto.
29753         (_mm512_mask_floor_round_ps): Ditto.
29754         (_mm512_mask_floor_round_pd): Ditto.
29755         (_mm512_mask_ceil_round_ps): Ditto.
29756         (_mm512_mask_ceil_round_pd): Ditto.
29757         (_mm512_maskz_floor_round_ps): Ditto.
29758         (_mm512_maskz_floor_round_pd): Ditto.
29759         (_mm512_maskz_ceil_round_ps): Ditto.
29760         (_mm512_maskz_ceil_round_pd): Ditto.
29761         (_mm512_expand_pd): Ditto.
29762         (_mm512_expand_ps): Ditto.
29763         * config/i386/i386.c (ix86_builtins): Remove
29764         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
29765         (bdesc_args): Ditto.
29766         * config/i386/predicates.md (const1256_operand): New.
29767         (const_1_to_2_operand): Ditto.
29768         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29769         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29770         (*avx512pf_gatherpf<mode>sf): Ditto.
29771         (avx512pf_gatherpf<mode>df): Ditto.
29772         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29773         (*avx512pf_gatherpf<mode>df): Ditto.
29774         (avx512pf_scatterpf<mode>sf): Ditto.
29775         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29776         (*avx512pf_scatterpf<mode>sf): Ditto.
29777         (avx512pf_scatterpf<mode>df): Ditto.
29778         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29779         (*avx512pf_scatterpf<mode>df): Ditto.
29780         (avx512f_expand<mode>): Removed.
29781         (<shift_insn><mode>3<mask_name>): Change predicate type.
29783 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
29785         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
29786         not at the end of datarefs vector use ordered_remove to avoid
29787         reordering datarefs vector.
29789         PR c/59984
29790         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
29791         mark local addressable non-static vars as GOVD_PRIVATE
29792         instead of GOVD_LOCAL.
29793         * omp-low.c (lower_omp_for): Move gimple_bind_vars
29794         and BLOCK_VARS of gimple_bind_block to new_stmt rather
29795         than copying them.
29797         PR middle-end/60092
29798         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
29799         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
29800         assume_aligned or alloc_align attributes.
29801         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
29802         arguments.  Handle also assume_aligned and alloc_align attributes.
29803         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
29804         calls to functions with assume_aligned or alloc_align attributes.
29805         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
29807 2014-02-08  Terry Guo  <terry.guo@arm.com>
29809         * doc/invoke.texi: Document ARM -march=armv7e-m.
29811 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
29813         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
29814         flag on __cilkrts_rethrow builtin.
29816         PR ipa/60026
29817         * ipa-cp.c (determine_versionability): Fail at -O0
29818         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
29819         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
29821         Revert:
29822         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
29824         PR ipa/60026
29825         * tree-inline.c (copy_forbidden): Fail for
29826         __attribute__((optimize (0))) functions.
29828 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
29830         * varpool.c: Include pointer-set.h.
29831         (varpool_remove_unreferenced_decls): Variables in other partitions
29832         will not be output; be however careful to not lose information
29833         about partitioning.
29835 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
29837         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
29838         lookup in the vtable constructor.
29840 2014-02-07  Jeff Law  <law@redhat.com>
29842         PR target/40977
29843         * config/m68k/m68k.md (ashldi_extsi): Turn into a
29844         define_insn_and_split.
29846         * ipa-inline.c (inline_small_functions): Fix typos.
29848 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29850         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
29851         (s390_can_use_return_insn): Declare.
29852         * config/s390/s390.h (EPILOGUE_USES): Define.
29853         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
29854         instructions.
29855         (s390_chunkify_start): Handle return JUMP_LABELs.
29856         (s390_early_mach): Emit a main_pool instruction on the entry edge.
29857         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
29858         (s390_can_use_return_insn): New functions.
29859         (s390_fix_long_loop_prediction): Handle conditional returns.
29860         (TARGET_SET_UP_BY_PROLOGUE): Define.
29861         * config/s390/s390.md (ANY_RETURN): New code iterator.
29862         (*creturn, *csimple_return, return, simple_return): New patterns.
29864 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29866         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
29867         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
29868         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
29869         REG_CFA_RESTORE list when deciding not to restore a register.
29871 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29873         * config/s390/s390.c: Include tree-pass.h and context.h.
29874         (s390_early_mach): New function, split out from...
29875         (s390_emit_prologue): ...here.
29876         (pass_data_s390_early_mach): New pass structure.
29877         (pass_s390_early_mach): New class.
29878         (s390_option_override): Create and register early_mach pass.
29879         Move to end of file.
29881 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29883         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
29884         to match for the exit block.
29886 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29888         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
29889         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
29890         Reject misaligned operands.
29892 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29894         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
29896 2014-02-07  Richard Biener  <rguenther@suse.de>
29898         PR middle-end/60092
29899         * gimple-low.c (lower_builtin_posix_memalign): New function.
29900         (lower_stmt): Call it to lower posix_memalign in a way
29901         to make alignment info accessible.
29903 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
29905         PR c++/60082
29906         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
29907         __builtin_setjmp_receiver.
29909 2014-02-07  Richard Biener  <rguenther@suse.de>
29911         PR middle-end/60092
29912         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
29913         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
29914         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29915         Handle BUILT_IN_POSIX_MEMALIGN.
29916         (find_func_clobbers): Likewise.
29917         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29918         (call_may_clobber_ref_p_1): Likewise.
29920 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29922         PR ipa/59918
29923         * ipa-devirt.c (record_target_from_binfo): Remove overactive
29924         sanity check.
29926 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29928         PR ipa/59469
29929         * lto-cgraph.c (lto_output_node): Use
29930         symtab_get_symbol_partitioning_class.
29931         (lto_output_varpool_node): likewise.
29932         (symtab_get_symbol_partitioning_class): Move here from
29933         lto/lto-partition.c
29934         * cgraph.h (symbol_partitioning_class): Likewise.
29935         (symtab_get_symbol_partitioning_class): Declare.
29937 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29939         * ggc.h (ggc_internal_cleared_alloc): New macro.
29940         * vec.h (vec_safe_copy): Handle memory stats.
29941         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
29942         * target-globals.c (save_target_globals): Likewise.
29944 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29946         PR target/60077
29947         * expr.c (emit_move_resolve_push): Export; be bit more selective
29948         on when to clear alias set.
29949         * expr.h (emit_move_resolve_push): Declare.
29950         * function.h (struct function): Add tail_call_marked.
29951         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
29952         * config/i386/i386-protos.h (ix86_expand_push): Remove.
29953         * config/i386/i386.md (TImode move expander): De not call
29954         ix86_expand_push.
29955         (FP push expanders): Preserve memory attributes.
29956         * config/i386/sse.md (push<mode>1): Remove.
29957         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
29958         (ix86_expand_push): Remove.
29959         * config/i386/mmx.md (push<mode>1): Remove.
29961 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
29963         PR rtl-optimization/60030
29964         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
29965         lopart with paradoxical subreg before shifting it up by hprec.
29967 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29969         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
29970         Remove extra newline at end of file.
29971         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
29972         (arm_issue_rate): Handle cortexa57.
29973         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
29974         (cortex-a57.cortex-a53): Likewise.
29976 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
29978         PR target/59575
29979         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
29980         don't record in REG_FRAME_RELATED_EXPR registers not set in that
29981         bitmask.
29982         (arm_expand_prologue): Adjust all callers.
29983         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
29984         info, registers also at the lowest numbered registers side.  Use
29985         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
29986         XEXP.
29988         PR debug/59992
29989         * var-tracking.c (adjust_mems): Before adding a SET to
29990         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
29992 2014-02-06  Alan Modra  <amodra@gmail.com>
29994         PR target/60032
29995         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
29996         change SDmode to DDmode when lra_in_progress.
29998 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30000         PR middle-end/59150
30001         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
30002         free_data_ref on the dr first, and before goto again also set dr
30003         to the next dr.  For simd_lane_access, free old datarefs[i] before
30004         overwriting it.  For get_vectype_for_scalar_type failure, don't
30005         free_data_ref if simd_lane_access.
30007         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
30009         PR target/60062
30010         * tree.h (opts_for_fn): New inline function.
30011         (opt_for_fn): Define.
30012         * config/i386/i386.c (ix86_function_regparm): Use
30013         opt_for_fn (decl, optimize) instead of optimize.
30015 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30017         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
30018         for SYMBOL_REF in large memory model.
30020 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30022         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
30023         and crypto support.
30024         (cortex-a57): Likewise.
30025         (cortex-a57.cortex-a53): Likewise.
30027 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
30028             Kugan Vivekanandarajah  <kuganv@linaro.org>
30030         * config/arm/arm.c (arm_vector_alignment_reachable): Check
30031         unaligned_access.
30032         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
30034 2014-02-06  Richard Biener  <rguenther@suse.de>
30036         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
30037         set_loop_copy and initialize_original_copy_tables.
30039 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
30041         * config/aarch64/aarch64-simd.md
30042         (aarch64_ashr_simddi): Change QI to SI.
30044 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30045             Jakub Jelinek  <jakub@redhat.com>
30047         PR middle-end/60013
30048         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
30049         of the dataflow.
30051 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30053         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
30054         CODE_FOR_altivec_vpku[hw]um to
30055         CODE_FOR_altivec_vpku[hw]um_direct.
30056         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
30057         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
30058         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
30059         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
30061 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30063         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
30064         generation for -maltivec=be.
30065         (altivec_vsumsws): Simplify redundant test.
30067 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30069         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
30070         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
30071         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
30072         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
30073         gen_altivec_vpkuwum.
30074         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
30075         BYTES_BIG_ENDIAN.
30076         (altivec_vpks<VI_char>ss): Likewise.
30077         (altivec_vpks<VI_char>us): Likewise.
30078         (altivec_vpku<VI_char>us): Likewise.
30079         (altivec_vpku<VI_char>um): Likewise.
30080         (altivec_vpku<VI_char>um_direct): New (copy of
30081         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
30082         internal use).
30083         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
30084         target is little endian and -maltivec=be is not specified.
30085         (*altivec_vupkhs<VU_char>_direct): New (copy of
30086         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
30087         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
30088         target is little endian and -maltivec=be is not specified.
30089         (*altivec_vupkls<VU_char>_direct): New (copy of
30090         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
30091         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
30092         little endian and -maltivec=be is not specified.
30093         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
30094         little endian and -maltivec=be is not specified.
30096 2014-02-05  Richard Henderson  <rth@redhat.com>
30098         PR debug/52727
30099         * combine-stack-adj.c: Revert r206943.
30100         * sched-int.h (struct deps_desc): Add last_args_size.
30101         * sched-deps.c (init_deps): Initialize it.
30102         (sched_analyze_insn): Add OUTPUT dependencies between insns that
30103         contain REG_ARGS_SIZE notes.
30105 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30107         * lto-cgraph.c (asm_nodes_output): Make global.
30108         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
30109         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
30110         (driver_handle_option): Handle OPT_fwpa.
30112 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
30114         PR ipa/59947
30115         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
30116         a comment typo and formatting issue.  If odr_hash hasn't been
30117         created, return vNULL and set *completep to false.
30119         PR middle-end/57499
30120         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
30121         bb with no successors.
30123 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
30125         PR target/59718
30126         * doc/invoke.texi (-march): Clarify documentation for ARM.
30127         (-mtune): Likewise.
30128         (-mcpu): Likewise.
30130 2014-02-05  Richard Biener  <rguenther@suse.de>
30132         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
30133         when not vectorizing because of too many alias checks.
30134         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30135         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
30137 2014-02-05  Nick Clifton  <nickc@redhat.com>
30139         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
30140         accept extended registers in any mode when compiling for the MN10300.
30142 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
30144         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
30145         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
30146         sanitization attributes.
30147         (can_inline_edge_p): Likewise.
30148         (sanitize_attrs_match_for_inline_p): New function.
30150 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30152         * ipa-prop.c (detect_type_change): Shor circuit testing of
30153         type changes on THIS pointer.
30155 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
30157         PR target/59777
30158         * config/pa/pa.c (legitimize_tls_address): Return original address
30159         if not passed a SYMBOL_REF rtx.
30160         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
30161         addresses.
30162         (pa_emit_move_sequence): Simplify TLS source operands.
30163         (pa_legitimate_constant_p): Reject all TLS constants.
30164         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
30165         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
30167 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30169         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
30170         groups when we know they are controlled by LTO.
30171         * varasm.c (default_binds_local_p_1): If object is in other partition,
30172         it will be resolved locally.
30174 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30176         * config/host-linux.c (linux_gt_pch_use_address): Don't
30177         use SSIZE_MAX because it is not always defined.
30179 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
30181         PR bootstrap/59913
30182         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
30183         threshold for pseudo splitting.
30184         (update_ebb_live_info): Process call argument hard registers and
30185         hard registers from insn definition too.
30186         (max_small_class_regs_num): New constant.
30187         (inherit_in_ebb): Update live hard regs through EBBs.  Update
30188         reloads_num only for small register classes.  Don't split for
30189         outputs of jumps.
30191 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
30193         PR ipa/60058
30194         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
30195         is non-null.
30197 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30199         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
30200         visibility is safe.
30202 2014-02-04  Marek Polacek  <polacek@redhat.com>
30204         * gdbinit.in (pel): Define.
30206 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30208         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30209         behavior.
30211 2014-02-04  Richard Biener  <rguenther@suse.de>
30213         PR lto/59723
30214         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30215         in function context local.
30216         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30217         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30218         similar to LTO_imported_decl_ref.
30220 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
30222         PR tree-optimization/60002
30223         * cgraphclones.c (build_function_decl_skip_args): Clear
30224         DECL_LANG_SPECIFIC.
30226         PR tree-optimization/60023
30227         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30228         false to gsi_replace.
30229         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
30230         has been in some EH region and vec_stmt could throw, add
30231         vec_stmt into the same EH region.
30232         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
30233         has no lhs, ignore it.
30234         * internal-fn.c (expand_MASK_LOAD): Likewise.
30236         PR ipa/60026
30237         * tree-inline.c (copy_forbidden): Fail for
30238         __attribute__((optimize (0))) functions.
30240         PR other/58712
30241         * omp-low.c (simd_clone_struct_copy): If from->inbranch
30242         is set, copy one less argument.
30243         (expand_simd_clones): Don't subtract clone_info->inbranch
30244         from simd_clone_struct_alloc argument.
30246         PR rtl-optimization/57915
30247         * recog.c (simplify_while_replacing): If all unary/binary/relational
30248         operation arguments are constant, attempt to simplify those.
30250         PR middle-end/59261
30251         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
30252         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
30254 2014-02-04  Richard Biener  <rguenther@suse.de>
30256         PR tree-optimization/60012
30257         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
30258         TBAA disambiguation to all DDRs.
30260 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30262         PR target/59788
30263         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
30264         (LINK_SPEC): Use it for -shared, -shared-libgcc.
30266 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30268         PR ipa/59882
30269         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
30271 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30273         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
30274         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
30276 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30278         PR ipa/59831
30279         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
30280         to figure out targets of polymorphic calls with known decl.
30281         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30282         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
30283         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
30284         (get_polymorphic_call_info): ... here.
30285         (get_polymorphic_call_info_from_invariant): New function.
30287 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30289         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
30290         lookup via vtable pointer; check for type consistency
30291         and turn inconsitent facts into UNREACHABLE.
30292         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30293         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
30294         type inconsistent querries; return UNREACHABLE instead.
30296 2014-02-03  Richard Henderson  <rth@twiddle.net>
30298         PR tree-opt/59924
30299         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
30300         already processed this node.
30301         (normalize_one_pred_1): Pass along mark_set.
30302         (normalize_one_pred): Create and destroy a pointer_set_t.
30303         (normalize_one_pred_chain): Likewise.
30305 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
30307         PR gcov-profile/58602
30308         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
30310 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30312         PR ipa/59831
30313         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
30314         -fno-devirtualize; try to devirtualize by the knowledge of
30315         virtual table pointer given by aggregate propagation.
30316         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30317         (ipa_print_node_jump_functions): Dump also offset that
30318         is relevant for polymorphic calls.
30319         (determine_known_aggregate_parts): Add arg_type parameter; use it
30320         instead of determining the type from pointer type.
30321         (ipa_compute_jump_functions_for_edge): Update call of
30322         determine_known_aggregate_parts.
30323         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
30324         (gimple_get_virt_method_for_binfo): ... here; simplify using
30325         vtable_pointer_value_to_vtable.
30326         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
30327         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
30328         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
30329         (vtable_pointer_value_to_vtable): Break out from ...; handle also
30330         POINTER_PLUS_EXPR.
30331         (vtable_pointer_value_to_binfo): ... here.
30332         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
30334 2014-02-03  Teresa Johnson  <tejohnson@google.com>
30336         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
30337         redef of outer loop index variable.
30339 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
30341         PR c++/53017
30342         PR c++/59211
30343         * doc/extend.texi (Function Attributes): Typo.
30345 2014-02-03  Cong Hou  <congh@google.com>
30347         PR tree-optimization/60000
30348         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
30349         if the vectorized statement is a store.  A store statement can only
30350         appear at the end of pattern statements.
30352 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
30354         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
30355         (ix86_option_override_internal): Default long double to 64-bit for
30356         32-bit Bionic and to 128-bit for 64-bit Bionic.
30358         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
30359         TARGET_LONG_DOUBLE_128 is true.
30360         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30362         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
30363         (mlong-double-64): Negate -mlong-double-128.
30364         (mlong-double-128): New option.
30366         * config/i386/i386-c.c (ix86_target_macros): Define
30367         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
30369         * doc/invoke.texi: Document -mlong-double-128.
30371 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
30373         PR rtl-optimization/60024
30374         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
30376 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
30378         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
30380 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
30382         PR rtl-optimization/57662
30383         * sel-sched.c (code_motion_path_driver): Do not mark already not
30384         existing blocks in the visiting bitmap.
30386 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
30388         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
30389         on the insn being emitted.
30391 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
30392             Will Deacon  <will.deacon@arm.com>
30394         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
30396 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30398         * config/arm/arm-tables.opt: Regenerate.
30400 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30402         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
30403         for vector types other than V16QImode.
30404         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
30405         define_expand, and call altivec_expand_vec_perm_le when producing
30406         code with little endian element order.
30407         (*altivec_vperm_<mode>_internal): New insn having previous
30408         behavior of altivec_vperm_<mode>.
30409         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
30410         altivec_expand_vec_perm_le when producing code with little endian
30411         element order.
30412         (*altivec_vperm_<mode>_uns_internal): New insn having previous
30413         behavior of altivec_vperm_<mode>_uns.
30415 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30417         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
30418         (altivec_vsumsws): Add handling for -maltivec=be with a little
30419         endian target.
30420         (altivec_vsumsws_direct): New.
30421         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
30422         gen_altivec_vsumsws.
30424 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
30426         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
30427         vtable_pointer_value_to_binfo): New functions.
30428         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
30429         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
30431 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
30433         * config/nios2/nios2.md (load_got_register): Initialize GOT
30434         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
30435         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
30437 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
30439         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
30440         preserverd by passthrough, do not propagate the type.
30442 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30444         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
30445         (mips_atomic_assign_expand_fenv): New function.
30446         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30448 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30450         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
30451         (__builtin_mips_set_fcsr): Likewise.
30452         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
30453         MIPS_USI_FTYPE_VOID.
30454         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
30455         (mips16_expand_set_fcsr): Likewise.
30456         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
30457         (mips16_set_fcsr_stub): Likewise.
30458         (mips16_get_fcsr_one_only_stub): New class.
30459         (mips16_set_fcsr_one_only_stub): Likewise.
30460         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
30461         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
30462         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
30463         (hard_float): New availability predicate.
30464         (mips_builtins): Add get_fcsr and set_fcsr.
30465         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
30466         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
30467         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
30468         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
30469         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
30470         patterns.
30472 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30474         * config/mips/mips.c (mips_one_only_stub): New class.
30475         (mips_need_mips16_rdhwr_p): Replace with...
30476         (mips16_rdhwr_stub): ...this new variable.
30477         (mips16_stub_call_address): New function.
30478         (mips16_rdhwr_one_only_stub): New class.
30479         (mips_expand_thread_pointer): Use mips16_stub_call_address.
30480         (mips_output_mips16_rdhwr): Delete.
30481         (mips_finish_stub): New function.
30482         (mips_code_end): Use it to handle rdhwr stubs.
30484 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
30486         PR target/60017
30487         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
30488         when calculating size of integer atomic types.
30490 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
30492         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
30494 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
30496         PR tree-optimization/60003
30497         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
30498         * profile.c (branch_prob): Use gimple_call_builtin_p
30499         to check for BUILT_IN_SETJMP_RECEIVER.
30500         * tree-inline.c (copy_bb): Call notice_special_calls.
30502 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
30504         PR bootstrap/59985
30505         * lra-constraints.c (process_alt_operands): Update reload_sum only
30506         on the first pass.
30508 2014-01-31  Richard Henderson  <rth@redhat.com>
30510         PR middle-end/60004
30511         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
30512         until after else_eh is processed.
30514 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
30516         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
30517         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
30518         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
30519         in smmintrin.h, remove them.
30520         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
30521         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
30522         * config/i386/i386.md (ROUND_SAE): Fix value.
30523         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
30524         (const48_operand): New.
30525         * config/i386/subst.md (round), (round_expand): Use
30526         const_4_or_8_to_11_operand.
30527         (round_saeonly), (round_saeonly_expand): Use const48_operand.
30529 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
30531         * config/i386/constraints.md (Yk): Swap meaning with k.
30532         * config/i386/i386.md (movhi_internal): Change Yk to k.
30533         (movqi_internal): Ditto.
30534         (*k<logic><mode>): Ditto.
30535         (*andhi_1): Ditto.
30536         (*andqi_1): Ditto.
30537         (kandn<mode>): Ditto.
30538         (*<code>hi_1): Ditto.
30539         (*<code>qi_1): Ditto.
30540         (kxnor<mode>): Ditto.
30541         (kortestzhi): Ditto.
30542         (kortestchi): Ditto.
30543         (kunpckhi): Ditto.
30544         (*one_cmplhi2_1): Ditto.
30545         (*one_cmplqi2_1): Ditto.
30546         * config/i386/sse.md (): Change k to Yk.
30547         (avx512f_load<mode>_mask): Ditto.
30548         (avx512f_blendm<mode>): Ditto.
30549         (avx512f_store<mode>_mask): Ditto.
30550         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
30551         (avx512f_storedqu<mode>_mask): Ditto.
30552         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
30553         Ditto.
30554         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
30555         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
30556         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
30557         (avx512f_maskcmp<mode>3): Ditto.
30558         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
30559         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
30560         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
30561         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
30562         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
30563         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
30564         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
30565         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
30566         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
30567         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
30568         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
30569         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
30570         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
30571         (vec_extract_lo_<mode>_maskm): Ditto.
30572         (vec_extract_hi_<mode>_maskm): Ditto.
30573         (avx512f_vternlog<mode>_mask): Ditto.
30574         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
30575         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
30576         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
30577         (avx512f_<code>v8div16qi2_mask): Ditto.
30578         (avx512f_<code>v8div16qi2_mask_store): Ditto.
30579         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
30580         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
30581         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
30582         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
30583         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30584         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30585         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30586         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30587         (avx512cd_maskb_vec_dupv8di): Ditto.
30588         (avx512cd_maskw_vec_dupv16si): Ditto.
30589         (avx512f_vpermi2var<mode>3_maskz): Ditto.
30590         (avx512f_vpermi2var<mode>3_mask): Ditto.
30591         (avx512f_vpermi2var<mode>3_mask): Ditto.
30592         (avx512f_vpermt2var<mode>3_maskz): Ditto.
30593         (*avx512f_gathersi<mode>): Ditto.
30594         (*avx512f_gathersi<mode>_2): Ditto.
30595         (*avx512f_gatherdi<mode>): Ditto.
30596         (*avx512f_gatherdi<mode>_2): Ditto.
30597         (*avx512f_scattersi<mode>): Ditto.
30598         (*avx512f_scatterdi<mode>): Ditto.
30599         (avx512f_compress<mode>_mask): Ditto.
30600         (avx512f_compressstore<mode>_mask): Ditto.
30601         (avx512f_expand<mode>_mask): Ditto.
30602         * config/i386/subst.md (mask): Change k to Yk.
30603         (mask_scalar_merge): Ditto.
30604         (sd): Ditto.
30606 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
30608         * doc/extend.texi (Vector Extensions): Document ?: in C++.
30610 2014-01-31  Richard Biener  <rguenther@suse.de>
30612         PR middle-end/59990
30613         * builtins.c (fold_builtin_memory_op): Make sure to not
30614         use a floating-point mode or a boolean or enumeral type for
30615         the copy operation.
30617 2014-01-30  DJ Delorie  <dj@redhat.com>
30619         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
30620         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
30621         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
30622         whenever main() has an epilogue.
30624 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30626         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
30627         unused variable "field".
30628         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
30629         (vsx_mergeh_<mode>): Likewise.
30630         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
30631         (altivec_vmrghh): Likewise.
30632         (altivec_vmrghw): Likewise.
30633         (altivec_vmrglb): Likewise.
30634         (altivec_vmrglh): Likewise.
30635         (altivec_vmrglw): Likewise.
30636         (altivec_vspltb): Add missing uses.
30637         (altivec_vsplth): Likewise.
30638         (altivec_vspltw): Likewise.
30639         (altivec_vspltsf): Likewise.
30641 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
30643         PR target/59923
30644         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
30645         frame related instructions.
30647 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30649         PR rtl-optimization/59959
30650         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
30651         any reload of register whose subreg is invalid.
30653 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
30655         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
30656         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
30657         Add missing return type - void.
30659 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30661         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
30662         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
30663         remove element index adjustment for endian (now handled in vsx.md
30664         and altivec.md).
30665         (altivec_expand_vec_perm_const): Use
30666         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
30667         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
30668         (vsx_xxspltw_<mode>): Adjust element index for little endian.
30669         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
30670         define_expand and a new define_insn *altivec_vspltb_internal;
30671         adjust for -maltivec=be on a little endian target.
30672         (altivec_vspltb_direct): New.
30673         (altivec_vsplth): Divide into a define_expand and a new
30674         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
30675         little endian target.
30676         (altivec_vsplth_direct): New.
30677         (altivec_vspltw): Divide into a define_expand and a new
30678         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
30679         little endian target.
30680         (altivec_vspltw_direct): New.
30681         (altivec_vspltsf): Divide into a define_expand and a new
30682         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
30683         a little endian target.
30685 2014-01-30  Richard Biener  <rguenther@suse.de>
30687         PR tree-optimization/59993
30688         * tree-ssa-forwprop.c (associate_pointerplus): Check we
30689         can propagate form the earlier stmt and avoid the transform
30690         when the intermediate result is needed.
30692 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
30694         * README.Portability: Fix typo.
30696 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
30698         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
30699         comparison_operator with ordered_comparison_operator.
30701 2014-01-30  Nick Clifton  <nickc@redhat.com>
30703         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
30704         Rename to mn10300_store_multiple_regs.
30705         * config/mn10300/mn10300.c: Likewise.
30706         * config/mn10300/mn10300.md (store_movm): Fix typo: call
30707         store_multiple_regs.
30708         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
30709         Call mn10300_store_multiple_regs.
30711 2014-01-30  Nick Clifton  <nickc@redhat.com>
30712             DJ Delorie  <dj@redhat.com>
30714         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
30715         %fp 2 to keep registers after it properly word-aligned.
30716         (rl78_alloc_physical_registers_umul): Handle the case where both
30717         input operands are the same.
30719 2014-01-30  Richard Biener  <rguenther@suse.de>
30721         PR tree-optimization/59903
30722         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
30723         check properly.
30725 2014-01-30  Jason Merrill  <jason@redhat.com>
30727         PR c++/59633
30728         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
30730         PR c++/59645
30731         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
30733 2014-01-30  Richard Biener  <rguenther@suse.de>
30735         PR tree-optimization/59951
30736         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
30738 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
30740         PR target/59784
30741         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
30742         SFmode to DFmode case.
30744 2014-01-29  DJ Delorie  <dj@redhat.com>
30746         * config/msp430/msp430.opt (-minrt): New.
30747         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
30748         if -minrt given.
30749         (ENDFILE_SPEC): Likewise.
30751 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
30753         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
30754         (estimate_function_body_sizes): Use it.
30756 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
30758         PR c++/58561
30759         * dwarf2out.c (is_cxx_auto): New.
30760         (is_base_type): Use it.
30761         (gen_type_die_with_usage): Likewise.
30763 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30765         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
30766         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
30767         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
30768         -maltivec=be with LE targets.
30769         (vsx_mergeh_<mode>): Likewise.
30770         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
30771         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
30772         (altivec_vmrghb): Replace with define_expand and new
30773         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
30774         (altivec_vmrghb_direct): New define_insn.
30775         (altivec_vmrghh): Replace with define_expand and new
30776         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
30777         (altivec_vmrghh_direct): New define_insn.
30778         (altivec_vmrghw): Replace with define_expand and new
30779         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
30780         (altivec_vmrghw_direct): New define_insn.
30781         (*altivec_vmrghsf): Adjust for endianness.
30782         (altivec_vmrglb): Replace with define_expand and new
30783         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
30784         (altivec_vmrglb_direct): New define_insn.
30785         (altivec_vmrglh): Replace with define_expand and new
30786         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
30787         (altivec_vmrglh_direct): New define_insn.
30788         (altivec_vmrglw): Replace with define_expand and new
30789         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
30790         (altivec_vmrglw_direct): New define_insn.
30791         (*altivec_vmrglsf): Adjust for endianness.
30792         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30793         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30794         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30795         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30796         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30797         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30798         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30799         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30801 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30803         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
30804         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
30805         whitespace.
30807 2014-01-29  Richard Biener  <rguenther@suse.de>
30809         PR tree-optimization/58742
30810         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
30811         associate_pointerplus_align.
30812         (associate_pointerplus_diff): New function.
30813         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
30814         and associate_pointerplus_diff.
30816 2014-01-29  Richard Biener  <rguenther@suse.de>
30818         * lto-streamer.h (LTO_major_version): Bump to 3.
30819         (LTO_minor_version): Reset to 0.
30821 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
30823         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
30824         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
30825         (arm_file_start): Generate correct asm header for armv7ve.
30826         * config/arm/bpabi.h: Add multilib support for armv7ve.
30827         * config/arm/driver-arm.c: Change the architectures of cortex-a7
30828         and cortex-a15 to armv7ve.
30829         * config/arm/t-aprofile: Add multilib support for armv7ve.
30830         * doc/invoke.texi: Document -march=armv7ve.
30832 2014-01-29  Richard Biener  <rguenther@suse.de>
30834         PR tree-optimization/58742
30835         * tree-ssa-forwprop.c (associate_plusminus): Return true
30836         if we changed sth, defer EH cleanup to ...
30837         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
30838         (simplify_mult): New function.
30840 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
30842         PR middle-end/59917
30843         PR tree-optimization/59920
30844         * tree.c (build_common_builtin_nodes): Remove
30845         __builtin_setjmp_dispatcher initialization.
30846         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
30847         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
30848         instead of gsi_after_labels + manually skipping debug stmts.
30849         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
30850         ignore bbs with IFN_ABNORMAL_DISPATCHER.
30851         * tree-inline.c (copy_edges_for_bb): Remove
30852         can_make_abnormal_goto argument, instead add abnormal_goto_dest
30853         argument.  Ignore computed_goto_p stmts.  Don't call
30854         make_abnormal_goto_edges.  If a call might need abnormal edges
30855         for non-local gotos, see if it already has an edge to
30856         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
30857         with true argument, don't do anything then, otherwise add
30858         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
30859         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
30860         caller.
30861         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
30862         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
30863         (lower_stmt): Don't set data->calls_builtin_setjmp.
30864         (lower_builtin_setjmp): Adjust comment.
30865         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
30866         * tree-cfg.c (found_computed_goto): Remove.
30867         (factor_computed_gotos): Remove.
30868         (make_goto_expr_edges): Return bool, true for computed gotos.
30869         Don't call make_abnormal_goto_edges.
30870         (build_gimple_cfg): Don't set found_computed_goto, don't call
30871         factor_computed_gotos.
30872         (computed_goto_p): No longer static.
30873         (make_blocks): Don't set found_computed_goto.
30874         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
30875         (make_edges): If make_goto_expr_edges returns true, push bb
30876         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
30877         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
30878         vector.  Record mapping between bbs and OpenMP regions if there
30879         are any, adjust make_gimple_omp_edges caller.  Call
30880         handle_abnormal_edges.
30881         (make_abnormal_goto_edges): Remove.
30882         * tree-cfg.h (make_abnormal_goto_edges): Remove.
30883         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
30884         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
30885         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
30886         * internal-fn.def (ABNORMAL_DISPATCHER): New.
30887         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
30888         filling *region also set *region_idx to (*region)->entry->index.
30890         PR other/58712
30891         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
30892         For REGs set ORIGINAL_REGNO.
30894 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
30896         * doc/md.texi: Mention that a target shouldn't implement
30897         vec_widen_(s|u)mul_even/odd pair if it is less efficient
30898         than hi/lo pair.
30900 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
30902         PR tree-optimization/59594
30903         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
30904         a copy of the datarefs vector rather than the vector itself.
30906 2014-01-28  Jason Merrill  <jason@redhat.com>
30908         PR c++/53756
30909         * dwarf2out.c (auto_die): New static.
30910         (gen_type_die_with_usage): Handle C++1y 'auto'.
30911         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
30912         on definition.
30914 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
30916         PR target/59672
30917         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
30918         (SPEC_X32): Likewise.
30919         (SPEC_64): Likewise.
30920         * config/i386/i386.c (ix86_option_override_internal): Turn off
30921         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
30922         for TARGET_16BIT.
30923         (x86_file_start): Output .code16gcc for TARGET_16BIT.
30924         * config/i386/i386.h (TARGET_16BIT): New macro.
30925         (TARGET_16BIT_P): Likewise.
30926         * config/i386/i386.opt: Add m16.
30927         * doc/invoke.texi: Document -m16.
30929 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
30931         PR preprocessor/59935
30932         * input.c (location_get_source_line): Bail out on when line number
30933         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
30935 2014-01-28  Richard Biener  <rguenther@suse.de>
30937         PR tree-optimization/58742
30938         * tree-ssa-forwprop.c (associate_plusminus): Handle
30939         pointer subtraction of the form (T)(P + A) - (T)P.
30941 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30943         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
30944         at const_int_cost.
30946 2014-01-28  Richard Biener  <rguenther@suse.de>
30948         Revert
30949         2014-01-28  Richard Biener  <rguenther@suse.de>
30951         PR rtl-optimization/45364
30952         PR rtl-optimization/59890
30953         * var-tracking.c (local_get_addr_clear_given_value): Handle
30954         already cleared slot.
30955         (val_reset): Handle not allocated local_get_addr_cache.
30956         (vt_find_locations): Use post-order on the inverted CFG.
30958 2014-01-28  Richard Biener  <rguenther@suse.de>
30960         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
30962 2014-01-28  Richard Biener  <rguenther@suse.de>
30964         PR rtl-optimization/45364
30965         PR rtl-optimization/59890
30966         * var-tracking.c (local_get_addr_clear_given_value): Handle
30967         already cleared slot.
30968         (val_reset): Handle not allocated local_get_addr_cache.
30969         (vt_find_locations): Use post-order on the inverted CFG.
30971 2014-01-28  Alan Modra  <amodra@gmail.com>
30973         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
30974         * configure.ac <recursive call for build != host>: Define
30975         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
30976         and LD_FOR_BUILD too.
30977         * configure: Regenerate.
30979 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
30981         * config/i386/i386.c (get_builtin_code_for_version): Separate
30982         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
30983         Broadwell from Haswell.
30985 2014-01-27  Steve Ellcey  <sellcey@mips.com>
30987         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
30988         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
30989         * config/mips/mips.c (mips_option_override): Change setting
30990         of TARGET_DSP.
30991         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
30992         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
30993         Change from Mask to Var.
30995 2014-01-27  Jeff Law  <law@redhat.com>
30997         * ipa-inline.c (inline_small_functions): Fix typo.
30999 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
31001         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
31002         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
31003         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
31004         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
31005         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
31006         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
31007         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
31008         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
31009         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
31010         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
31011         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
31012         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
31013         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
31014         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
31015         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
31016         (_mm512_storeu_epi64): Ditto.
31017         (_mm512_cmpge_epi32_mask): Ditto.
31018         (_mm512_cmpge_epu32_mask): Ditto.
31019         (_mm512_cmpge_epi64_mask): Ditto.
31020         (_mm512_cmpge_epu64_mask): Ditto.
31021         (_mm512_cmple_epi32_mask): Ditto.
31022         (_mm512_cmple_epu32_mask): Ditto.
31023         (_mm512_cmple_epi64_mask): Ditto.
31024         (_mm512_cmple_epu64_mask): Ditto.
31025         (_mm512_cmplt_epi32_mask): Ditto.
31026         (_mm512_cmplt_epu32_mask): Ditto.
31027         (_mm512_cmplt_epi64_mask): Ditto.
31028         (_mm512_cmplt_epu64_mask): Ditto.
31029         (_mm512_cmpneq_epi32_mask): Ditto.
31030         (_mm512_cmpneq_epu32_mask): Ditto.
31031         (_mm512_cmpneq_epi64_mask): Ditto.
31032         (_mm512_cmpneq_epu64_mask): Ditto.
31033         (_mm512_expand_pd): Ditto.
31034         (_mm512_expand_ps): Ditto.
31035         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
31036         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
31037         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
31038         * config/i386/i386.c (ix86_builtins): Add
31039         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
31040         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
31041         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
31042         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
31043         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
31044         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
31045         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
31046         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
31047         IX86_BUILTIN_PMOVUSQW512_MEM.
31048         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
31049         __builtin_ia32_pmovsqd512mem_mask,
31050         __builtin_ia32_pmovqd512mem_mask,
31051         __builtin_ia32_pmovusqw512mem_mask,
31052         __builtin_ia32_pmovsqw512mem_mask,
31053         __builtin_ia32_pmovqw512mem_mask,
31054         __builtin_ia32_pmovusdw512mem_mask,
31055         __builtin_ia32_pmovsdw512mem_mask,
31056         __builtin_ia32_pmovdw512mem_mask,
31057         __builtin_ia32_pmovqb512mem_mask,
31058         __builtin_ia32_pmovusqb512mem_mask,
31059         __builtin_ia32_pmovsqb512mem_mask,
31060         __builtin_ia32_pmovusdb512mem_mask,
31061         __builtin_ia32_pmovsdb512mem_mask,
31062         __builtin_ia32_pmovdb512mem_mask.
31063         (bdesc_args): Add __builtin_ia32_expanddf512,
31064         __builtin_ia32_expandsf512.
31065         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
31066         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
31067         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
31068         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
31069         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
31070         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
31071         (avx512f_<code>v8div16qi2_mask_store): This.
31072         (avx512f_expand<mode>): New.
31074 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
31076         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
31077         New.
31078         (_mm512_mask_prefetch_i64gather_pd): Ditto.
31079         (_mm512_prefetch_i32scatter_pd): Ditto.
31080         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
31081         (_mm512_prefetch_i64scatter_pd): Ditto.
31082         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
31083         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
31084         (_mm512_mask_prefetch_i64gather_ps): Ditto.
31085         (_mm512_prefetch_i32scatter_ps): Ditto.
31086         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
31087         (_mm512_prefetch_i64scatter_ps): Ditto.
31088         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
31089         * config/i386/i386-builtin-types.def: Define
31090         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
31091         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
31092         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
31093         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
31094         IX86_BUILTIN_SCATTERPFQPD.
31095         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
31096         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
31097         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
31098         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
31099         __builtin_ia32_scatterpfqps.
31100         (ix86_expand_builtin): Expand new built-ins.
31101         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
31102         fix memory access data type.
31103         (*avx512pf_gatherpf<mode>_mask): Ditto.
31104         (*avx512pf_gatherpf<mode>): Ditto.
31105         (avx512pf_scatterpf<mode>): Ditto.
31106         (*avx512pf_scatterpf<mode>_mask): Ditto.
31107         (*avx512pf_scatterpf<mode>): Ditto.
31108         (GATHER_SCATTER_SF_MEM_MODE): New.
31109         (avx512pf_gatherpf<mode>df): Ditto.
31110         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31111         (*avx512pf_scatterpf<mode>df): Ditto.
31113 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
31115         PR bootstrap/59934
31116         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
31117         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
31118         reached.
31120 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31122         * common/config/arm/arm-common.c
31123         (arm_rewrite_mcpu): Handle multiple names.
31124         * config/arm/arm.h
31125         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31127 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31129         * gimple-builder.h (create_gimple_tmp): Delete.
31131 2014-01-27  Christian Bruel  <christian.bruel@st.com>
31133         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
31134         words comparisons.
31136 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
31138         * config/pa/pa.md (call): Generate indirect long calls to non-local
31139         functions when outputing 32-bit code.
31140         (call_value): Likewise except for special call to buggy powf function.
31142         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
31143         portable runtime and PIC indirect calls.
31144         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
31145         and PIC call sequences.  Use ldo instead of blr to set return register
31146         in PIC call sequence.
31148 2014-01-25  Walter Lee  <walt@tilera.com>
31150         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
31151         avoid clobbering a live register.
31153 2014-01-25  Walter Lee  <walt@tilera.com>
31155         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
31156         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
31157         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
31158         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
31160 2014-01-25  Walter Lee  <walt@tilera.com>
31162         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
31163         arguments on even registers.
31164         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
31165         STACK_BOUNDARY.
31166         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
31167         (BIGGEST_ALIGNMENT): Ditto.
31168         (BIGGEST_FIELD_ALIGNMENT): Ditto.
31170 2014-01-25  Walter Lee  <walt@tilera.com>
31172         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
31173         insns before bundling.
31174         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
31176 2014-01-25  Walter Lee  <walt@tilera.com>
31178         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
31179         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
31180         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
31182 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31184         * config/mips/constraints.md (kl): Delete.
31185         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
31186         define expands, using...
31187         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
31188         instructions for MIPS16.
31189         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
31190         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
31192 2014-01-25  Walter Lee  <walt@tilera.com>
31194         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
31195         (clzdi2): Ditto.
31196         (ffsdi2): Ditto.
31198 2014-01-25  Walter Lee  <walt@tilera.com>
31200         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
31201         (TARGET_EXPAND_TO_RTL_HOOK): Define.
31203 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31205         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31206         Handle XOR.
31208 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
31210         * print-rtl.c (in_call_function_usage): New var.
31211         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31212         EXPR_LIST mode as mode and not as reg note name.
31214         PR middle-end/59561
31215         * cfgloopmanip.c (copy_loop_info): If
31216         loop->warned_aggressive_loop_optimizations, make sure
31217         the flag is set in target loop too.
31219 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
31221         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31222         flag_cilkplus.
31223         * builtins.def: Likewise.
31224         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31225         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31226         * ira.c (ira_setup_eliminable_regset): Likewise.
31227         * omp-low.c (gate_expand_omp): Likewise.
31228         (execute_lower_omp): Likewise.
31229         (diagnose_sb_0): Likewise.
31230         (gate_diagnose_omp_blocks): Likewise.
31231         (simd_clone_clauses_extract): Likewise.
31232         (gate): Likewise.
31234 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31236         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
31237         correction for little endian...
31238         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
31239         here.
31241 2014-01-24  Jeff Law  <law@redhat.com>
31243         PR tree-optimization/59919
31244         * tree-vrp.c (find_assert_locations_1): Do not register asserts
31245         for non-returning calls.
31247 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
31249         * common/config/aarch64/aarch64-common.c
31250         (aarch64_rewrite_mcpu): Handle multiple names.
31251         * config/aarch64/aarch64.h
31252         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31254 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
31256         * input.c (add_file_to_cache_tab): Handle the case where fopen
31257         returns NULL.
31259 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
31261         PR target/59929
31262         * config/i386/i386.md (pushsf splitter): Get stack adjustment
31263         from push operand if code of push isn't PRE_DEC.
31265 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
31267         PR target/59909
31268         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
31269         -mquad-memory-atomic.  Update -mquad-memory documentation to say
31270         it is only used for non-atomic loads/stores.
31272         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
31273         -mquad-memory or -mquad-memory-atomic switches.
31275         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
31276         -mquad-memory-atomic to ISA 2.07 support.
31278         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
31279         to separate support of normal quad word memory operations (ldq, stq)
31280         from the atomic quad word memory operations.
31282         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31283         support to separate non-atomic quad word operations from atomic
31284         quad word operations.  Disable non-atomic quad word operations in
31285         little endian mode so that we don't have to swap words after the
31286         load and before the store.
31287         (quad_load_store_p): Add comment about atomic quad word support.
31288         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
31289         options printed with -mdebug=reg.
31291         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
31292         -mquad-memory-atomic as the test for whether we have quad word
31293         atomic instructions.
31294         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
31295         or -mp8-vector are used, allow byte/half-word atomic operations.
31297         * config/rs6000/sync.md (load_lockedti): Insure that the address
31298         is a proper indexed or indirect address for the lqarx instruction.
31299         On little endian systems, swap the hi/lo registers after the lqarx
31300         instruction.
31301         (load_lockedpti): Use indexed_or_indirect_operand predicate to
31302         insure the address is valid for the lqarx instruction.
31303         (store_conditionalti): Insure that the address is a proper indexed
31304         or indirect address for the stqcrx. instruction.  On little endian
31305         systems, swap the hi/lo registers before doing the stqcrx.
31306         instruction.
31307         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
31308         insure the address is valid for the stqcrx. instruction.
31310         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
31311         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
31312         type of quad memory support is available.
31314 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
31316         PR regression/59915
31317         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
31318         there is a danger of looping.
31320 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
31322         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31323         force flag_ira_loop_pressure if set via command line.
31325 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31327         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
31328         (ashr_simd): New builtin handling DI mode.
31329         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
31330         (aarch64_sshr_simddi): New match pattern.
31331         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
31332         (vshrd_n_s64): Likewise.
31333         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
31335 2014-01-23  Nick Clifton  <nickc@redhat.com>
31337         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
31338         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
31339         favour of mcu specific scripts.
31340         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
31341         430x multilibs.
31343 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
31344             Alex Velenko  <Alex.Velenko@arm.com>
31346         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
31347         (vaddv_s16): Likewise.
31348         (vaddv_s32): Likewise.
31349         (vaddv_u8): Likewise.
31350         (vaddv_u16): Likewise.
31351         (vaddv_u32): Likewise.
31352         (vaddvq_s8): Likewise.
31353         (vaddvq_s16): Likewise.
31354         (vaddvq_s32): Likewise.
31355         (vaddvq_s64): Likewise.
31356         (vaddvq_u8): Likewise.
31357         (vaddvq_u16): Likewise.
31358         (vaddvq_u32): Likewise.
31359         (vaddvq_u64): Likewise.
31360         (vaddv_f32): Likewise.
31361         (vaddvq_f32): Likewise.
31362         (vaddvq_f64): Likewise.
31363         (vmaxv_f32): Likewise.
31364         (vmaxv_s8): Likewise.
31365         (vmaxv_s16): Likewise.
31366         (vmaxv_s32): Likewise.
31367         (vmaxv_u8): Likewise.
31368         (vmaxv_u16): Likewise.
31369         (vmaxv_u32): Likewise.
31370         (vmaxvq_f32): Likewise.
31371         (vmaxvq_f64): Likewise.
31372         (vmaxvq_s8): Likewise.
31373         (vmaxvq_s16): Likewise.
31374         (vmaxvq_s32): Likewise.
31375         (vmaxvq_u8): Likewise.
31376         (vmaxvq_u16): Likewise.
31377         (vmaxvq_u32): Likewise.
31378         (vmaxnmv_f32): Likewise.
31379         (vmaxnmvq_f32): Likewise.
31380         (vmaxnmvq_f64): Likewise.
31381         (vminv_f32): Likewise.
31382         (vminv_s8): Likewise.
31383         (vminv_s16): Likewise.
31384         (vminv_s32): Likewise.
31385         (vminv_u8): Likewise.
31386         (vminv_u16): Likewise.
31387         (vminv_u32): Likewise.
31388         (vminvq_f32): Likewise.
31389         (vminvq_f64): Likewise.
31390         (vminvq_s8): Likewise.
31391         (vminvq_s16): Likewise.
31392         (vminvq_s32): Likewise.
31393         (vminvq_u8): Likewise.
31394         (vminvq_u16): Likewise.
31395         (vminvq_u32): Likewise.
31396         (vminnmv_f32): Likewise.
31397         (vminnmvq_f32): Likewise.
31398         (vminnmvq_f64): Likewise.
31400 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
31402         * config/aarch64/aarch64-simd.md
31403         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
31404         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
31405         (*aarch64_mul3_elt<mode>): Likewise.
31406         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
31407         (*aarch64_mul3_elt_to_64v2df): Likewise.
31408         (*aarch64_mla_elt<mode>): Likewise.
31409         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31410         (*aarch64_mls_elt<mode>): Likewise.
31411         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31412         (*aarch64_fma4_elt<mode>): Likewise.
31413         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31414         (*aarch64_fma4_elt_to_64v2df): Likewise.
31415         (*aarch64_fnma4_elt<mode>): Likewise.
31416         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31417         (*aarch64_fnma4_elt_to_64v2df): Likewise.
31418         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
31419         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
31420         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31421         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31422         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31423         (aarch64_sqdmull_lane<mode>_internal): Likewise.
31424         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31426 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31428         * config/aarch64/aarch64-simd.md
31429         (aarch64_be_checked_get_lane<mode>): New define_expand.
31430         * config/aarch64/aarch64-simd-builtins.def
31431         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
31432         New builtin definition.
31433         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
31434         Use new safe be builtin.
31436 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31438         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
31439         New define_insn.
31440         (aarch64_be_st1<mode>): Likewise.
31441         (aarch_ld1<VALL:mode>): Define_expand modified.
31442         (aarch_st1<VALL:mode>): Likewise.
31443         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
31444         (UNSPEC_ST1): Likewise.
31446 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
31448         * config/microblaze/microblaze.md: Add trap insn and attribute
31450 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
31452         PR preprocessor/58580
31453         * input.h (location_get_source_line): Take an additional line_size
31454         parameter.
31455         (void diagnostics_file_cache_fini): Declare new function.
31456         * input.c (struct fcache): New type.
31457         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
31458         New static constants.
31459         (diagnostic_file_cache_init, total_lines_num)
31460         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
31461         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
31462         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
31463         (get_next_line, read_next_line, goto_next_line, read_line_num):
31464         New static function definitions.
31465         (diagnostic_file_cache_fini): New function.
31466         (location_get_source_line): Take an additional output line_len
31467         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
31468         read_line_num.
31469         * diagnostic.c (diagnostic_finish): Call
31470         diagnostic_file_cache_fini.
31471         (adjust_line): Take an additional input parameter for the length
31472         of the line, rather than calculating it with strlen.
31473         (diagnostic_show_locus): Adjust the use of
31474         location_get_source_line and adjust_line with respect to their new
31475         signature.  While displaying a line now, do not stop at the first
31476         null byte.  Rather, display the zero byte as a space and keep
31477         going until we reach the size of the line.
31478         * Makefile.in: Add vec.o to OBJS-libcommon
31480 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
31481             Ilya Tocar  <ilya.tocar@intel.com>
31483         * config/i386/avx512fintrin.h (_mm512_kmov): New.
31484         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
31485         (__builtin_ia32_kmov16): Ditto.
31486         * config/i386/i386.md (UNSPEC_KMOV): New.
31487         (kmovw): Ditto.
31489 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
31491         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
31492         (_mm512_storeu_si512): Ditto.
31494 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
31496         PR target/52125
31497         * rtl.h (get_referenced_operands): Declare.
31498         * recog.c (get_referenced_operands): New function.
31499         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
31500         operands have been referenced when recording LO_SUM references.
31502 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
31504         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
31506 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
31508         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
31509         Enable for generic and recent AMD targets.
31511 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
31513         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
31514         ARG_SIZE note when adjustment was eliminated.
31516 2014-01-22  Jeff Law  <law@redhat.com>
31518         PR tree-optimization/59597
31519         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
31520         in file.  Accept new argument REGISTERING and use it to modify
31521         dump output appropriately.
31522         (register_jump_thread): Corresponding changes.
31523         (mark_threaded_blocks): Reinstate code to cancel unprofitable
31524         thread paths involving joiner blocks.  Add code to dump cancelled
31525         jump threading paths.
31527 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
31529         PR rtl-optimization/59477
31530         * lra-constraints.c (inherit_in_ebb): Process call for living hard
31531         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
31533 2014-01-22  Tom Tromey  <tromey@redhat.com>
31535         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
31536         PARAMS.
31537         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
31539 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
31541         PR rtl-optimization/59896
31542         * lra-constraints.c (process_alt_operands): Check unused note for
31543         matched operands of insn with no output reloads.
31545 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
31547         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
31548         (mips_move_from_gpr_cost): Likewise.
31550 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
31552         PR rtl-optimization/59858
31553         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
31554         ira_class_hard_regs_num.
31555         (process_alt_operands): Increase reject for dying matched operand.
31557 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
31559         PR target/59003
31560         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
31561         smaller than size, perform several stores or loads and stores
31562         at dst + count - size to store or copy all of size bytes, rather
31563         than just last modesize bytes.
31565 2014-01-20  DJ Delorie  <dj@redhat.com>
31567         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
31568         that CLOBBERs are REGs before propogating their values.
31570 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
31572         PR middle-end/59789
31573         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
31574         (cgraph_inline_failed_type): New function.
31575         * cgraph.h (DEFCIFCODE): Add type.
31576         (cgraph_inline_failed_type_t): New enum.
31577         (cgraph_inline_failed_type): New prototype.
31578         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
31579         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31580         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
31581         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
31582         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
31583         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
31584         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
31585         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
31586         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
31587         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
31588         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
31589         OPTIMIZATION_MISMATCH.
31590         * tree-inline.c (expand_call_inline): Emit errors during
31591         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
31593 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
31595         PR target/59685
31596         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
31597         mode attribute in insn output.
31599 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
31601         * output.h (output_constant): Delete.
31602         * varasm.c (output_constant): Make private.
31604 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
31606         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
31608 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
31610         PR middle-end/59860
31611         * tree.h (fold_builtin_strcat): New prototype.
31612         * builtins.c (fold_builtin_strcat): No longer static.  Add len
31613         argument, if non-NULL, don't call c_strlen.  Optimize
31614         directly into __builtin_memcpy instead of __builtin_strcpy.
31615         (fold_builtin_2): Adjust fold_builtin_strcat caller.
31616         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
31618 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
31620         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31621         for SImode_address_operand operands, having only a REG argument.
31623 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31625         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
31626         loader name using mbig-endian.
31627         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
31629 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
31631         * doc/invoke.texi (-march): Clarify documentation for AArch64.
31632         (-mtune): Likewise.
31633         (-mcpu): Likewise.
31635 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
31637         * config/aarch64/aarch64-protos.h
31638         (aarch64_cannot_change_mode_class_ptr): Declare.
31639         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
31640         aarch64_cannot_change_mode_class_ptr): New.
31641         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
31642         backend hook aarch64_cannot_change_mode_class.
31644 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
31646         * common/config/aarch64/aarch64-common.c
31647         (aarch64_handle_option): Don't handle any option order logic here.
31648         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
31649         selected_cpu, warn on architecture version mismatch.
31650         (aarch64_override_options): Fix parsing order for option strings.
31652 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31653             Iain Sandoe  <iain@codesourcery.com>
31655         PR bootstrap/59496
31656         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
31657         warning.  Amend comment to reflect current functionality.
31659 2014-01-20  Richard Biener  <rguenther@suse.de>
31661         PR middle-end/59860
31662         * builtins.c (fold_builtin_strcat): Remove case better handled
31663         by tree-ssa-strlen.c.
31665 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
31667         * config/aarch64/aarch64.opt
31668         (mcpu, march, mtune): Make case-insensitive.
31670 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
31672         PR target/59880
31673         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31674         if operands[1] is a REG or ZERO_EXTEND of a REG.
31676 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
31678         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
31680 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
31682         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
31683         long non-pic millicode calls.
31685 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31687         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
31689 2014-01-19  Kito Cheng  <kito@0xlab.org>
31691         * builtins.c (expand_movstr): Check movstr expand done or fail.
31693 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
31694             H.J. Lu  <hongjiu.lu@intel.com>
31696         PR target/59379
31697         * config/i386/i386.md (*lea<mode>): Zero-extend return register
31698         to DImode for zero-extended addresses.
31700 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
31702         PR rtl-optimization/57763
31703         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
31704         on the new indirect jump_insn and increment LABEL_NUSES (label).
31706 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
31708         PR bootstrap/59580
31709         PR bootstrap/59583
31710         * config.gcc (x86_archs): New variable.
31711         (x86_64_archs): Likewise.
31712         (x86_cpus): Likewise.
31713         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
31714         --with-arch/--with-cpu= options.
31715         Support --with-arch=/--with-cpu={nehalem,westmere,
31716         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
31718 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
31720         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
31721         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
31723 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
31725         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
31727 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
31729         PR target/58944
31730         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
31731         clear cpp_get_options (parse_in)->warn_unused_macros for
31732         ix86_target_macros_internal with cpp_define.
31734 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
31736         * jump.c (delete_related_insns): Keep (use (insn))s.
31737         * reorg.c (redundant_insn): Check for barriers too.
31739 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31741         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
31743 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
31745         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
31746         call to $$dyncall when TARGET_LONG_CALLS is true.
31748 2014-01-17  Jeff Law  <law@redhat.com>
31750         * ree.c (combine_set_extension): Temporarily disable test for
31751         changing number of hard registers.
31753 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
31755         PR middle-end/58125
31756         * ipa-inline-analysis.c (inline_free_summary):
31757         Do not free summary of aliases.
31759 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
31761         PR middle-end/59706
31762         * gimplify.c (gimplify_expr): Use create_tmp_var
31763         instead of create_tmp_var_raw.  If cond doesn't have
31764         integral type, don't add the IFN_ANNOTATE builtin at all.
31766 2014-01-17  Martin Jambor  <mjambor@suse.cz>
31768         PR ipa/59736
31769         * ipa-cp.c (prev_edge_clone): New variable.
31770         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
31771         Also resize prev_edge_clone vector.
31772         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
31773         (ipcp_edge_removal_hook): New function.
31774         (ipcp_driver): Register ipcp_edge_removal_hook.
31776 2014-01-17  Andrew Pinski  <apinski@cavium.com>
31777             Steve Ellcey  <sellcey@mips.com>
31779         PR target/59462
31780         * config/mips/mips.c (mips_print_operand): Check operand mode instead
31781         of operator mode.
31783 2014-01-17  Jeff Law  <law@redhat.com>
31785         PR middle-end/57904
31786         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
31787         so that pass_ccp runs first.
31789 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31791         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
31792         (ix86_adjust_cost): Use !TARGET_XXX.
31793         (do_reorder_for_imul): Likewise.
31794         (swap_top_of_ready_list): Likewise.
31795         (ix86_sched_reorder): Likewise.
31797 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31799         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31800         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
31801         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
31802         (intel_memset): New.  Duplicate slm_memset.
31803         (intel_cost): New.  Duplicate slm_cost.
31804         (m_INTEL): New macro.
31805         (processor_target_table): Add "intel".
31806         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
31807         with PROCESSOR_INTEL for "intel".
31808         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
31809         PROCESSOR_SILVERMONT.
31810         (ix86_issue_rate): Likewise.
31811         (ix86_adjust_cost): Likewise.
31812         (ia32_multipass_dfa_lookahead): Likewise.
31813         (swap_top_of_ready_list): Likewise.
31814         (ix86_sched_reorder): Likewise.
31815         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
31816         instead of TARGET_OPT_AGU.
31817         * config/i386/i386.h (TARGET_INTEL): New.
31818         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
31819         (processor_type): Add PROCESSOR_INTEL.
31820         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
31821         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
31823 2014-01-17  Marek Polacek  <polacek@redhat.com>
31825         PR c/58346
31826         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
31827         size is zero.
31829 2014-01-17  Richard Biener  <rguenther@suse.de>
31831         PR tree-optimization/46590
31832         * opts.c (default_options_table): Add entries for
31833         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
31834         all enabled at -O1 but not for -Og.
31835         * common.opt (fbranch-count-reg): Remove Init(1).
31836         (fmove-loop-invariants): Likewise.
31837         (ftree-pta): Likewise.
31839 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
31841         * config/i386/i386.c (ix86_data_alignment): For compatibility with
31842         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
31843         decls to at least the GCC 4.8 used alignments.
31845         PR fortran/59440
31846         * tree-nested.c (convert_nonlocal_reference_stmt,
31847         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
31848         of GIMPLE_BIND stmts, adjust associated decls.
31850 2014-01-17  Richard Biener  <rguenther@suse.de>
31852         PR tree-optimization/46590
31853         * vec.h (vec<>::bseach): New member function implementing
31854         binary search according to C89 bsearch.
31855         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
31856         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
31857         bitmap pointer again.  Make accesses_in_loop a flat array.
31858         (mem_ref_obstack): New global.
31859         (outermost_indep_loop): Adjust for mem_ref->stored changes.
31860         (mark_ref_stored): Likewise.
31861         (ref_indep_loop_p_2): Likewise.
31862         (set_ref_stored_in_loop): New helper function.
31863         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
31864         (memref_free): Adjust.
31865         (record_mem_ref_loc): Simplify.
31866         (gather_mem_refs_stmt): Adjust.
31867         (sort_locs_in_loop_postorder_cmp): New function.
31868         (analyze_memory_references): Sort accesses_in_loop after
31869         loop postorder number.
31870         (find_ref_loc_in_loop_cmp): New function.
31871         (for_all_locs_in_loop): Find relevant cluster of locs in
31872         accesses_in_loop and iterate without recursion.
31873         (execute_sm): Avoid uninit warning.
31874         (struct ref_always_accessed): Simplify.
31875         (ref_always_accessed::operator ()): Likewise.
31876         (ref_always_accessed_p): Likewise.
31877         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
31878         loop postorder numbers here.
31879         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
31880         numbers.
31882 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
31884         PR c++/57945
31885         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
31886         on decls for which assemble_alias has been called.
31888 2014-01-17  Nick Clifton  <nickc@redhat.com>
31890         * config/msp430/msp430.opt: (mcpu): New option.
31891         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
31892         (msp430_option_override): Parse target_cpu.  If the MCU name
31893         matches a generic string, clear target_mcu.
31894         (msp430_attr): Allow numeric interrupt values up to 63.
31895         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
31896         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
31897         option.
31898         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
31899         Add mcpu matches.
31900         * config/msp430/msp430.md (popm): Use %J rather than %I.
31901         (addsi3): Use msp430_nonimmediate_operand for operand 2.
31902         (addhi_cy_i): Use immediate_operand for operand 2.
31903         * doc/invoke.texi: Document -mcpu option.
31905 2014-01-17  Richard Biener  <rguenther@suse.de>
31907         PR rtl-optimization/38518
31908         * df.h (df_analyze_loop): Declare.
31909         * df-core.c: Include cfgloop.h.
31910         (df_analyze_1): Split out main part of df_analyze.
31911         (df_analyze): Adjust.
31912         (loop_inverted_post_order_compute): New function.
31913         (loop_post_order_compute): Likewise.
31914         (df_analyze_loop): New function avoiding whole-function
31915         postorder computes.
31916         * loop-invariant.c (find_defs): Use df_analyze_loop.
31917         (find_invariants): Adjust.
31918         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
31920 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31922         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
31923         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
31925 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31927         * ipa-ref.c (ipa_remove_stmt_references): Fix references
31928         traversal when removing references.
31930 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
31932         PR ipa/59775
31933         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
31935 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
31937         PR middle-end/56791
31938         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
31939         pushing a reload for an autoinc when we had previously reloaded an
31940         inner part of the address.
31942 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
31944         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
31945         field.
31946         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
31947         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
31948         when not giving up or versioning for alias only because of
31949         loop->safelen.
31950         (vect_analyze_data_ref_dependences): Set to true.
31951         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
31952         is a GIMPLE_PHI.
31953         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
31954         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
31955         to the condition.
31957         PR middle-end/58344
31958         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
31960         PR target/59839
31961         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
31962         operand 0 predicate for gathers, use a new pseudo as subtarget.
31964 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
31966         PR middle-end/59609
31967         * lra-constraints.c (process_alt_operands): Add printing debug info.
31968         Check absence of input/output reloads for matched operands too.
31970 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
31972         PR rtl-optimization/59835
31973         * ira.c (ira_init_register_move_cost): Increase cost for
31974         impossible modes.
31976 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
31978         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
31980 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
31982         PR target/59780
31983         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
31984         non-register objects.  Use gen_(high/low)part more consistently.
31985         Fix assertions.
31987 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
31989         PR target/59844
31990         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
31991         endian support, remove tests for WORDS_BIG_ENDIAN.
31992         (p8_mfvsrd_3_<mode>): Likewise.
31993         (reload_gpr_from_vsx<mode>): Likewise.
31994         (reload_gpr_from_vsxsf): Likewise.
31995         (p8_mfvsrd_4_disf): Likewise.
31997 2014-01-16  Richard Biener  <rguenther@suse.de>
31999         PR rtl-optimization/46590
32000         * lcm.c (compute_antinout_edge): Use postorder iteration.
32001         (compute_laterin): Use inverted postorder iteration.
32003 2014-01-16  Nick Clifton  <nickc@redhat.com>
32005         PR middle-end/28865
32006         * varasm.c (output_constant): Return the number of bytes actually
32007         emitted.
32008         (output_constructor_array_range): Update the field size with the
32009         number of bytes emitted by output_constant.
32010         (output_constructor_regular_field): Likewise.  Also do not
32011         complain if the total number of bytes emitted is now greater
32012         than the expected fieldpos.
32013         * output.h (output_constant): Update prototype and descriptive comment.
32015 2014-01-16  Marek Polacek  <polacek@redhat.com>
32017         PR middle-end/59827
32018         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
32019         it is error_mark_node.
32021 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
32023         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
32024         VALID_AVX256_REG_OR_OI_MODE.
32026 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
32028         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
32029         current procedure should be profiled.
32031 2014-01-15  Andrew Pinski  <apinski@cavium.com>
32033         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
32034         of moving from/to the STACK_REG register class.
32036 2014-01-15  Richard Henderson  <rth@redhat.com>
32038         PR debug/54694
32039         * reginfo.c (global_regs_decl): Globalize.
32040         * rtl.h (global_regs_decl): Declare.
32041         * ira.c (do_reload): Diagnose frame_pointer_needed and it
32042         reserved via global_regs.
32044 2014-01-15  Teresa Johnson  <tejohnson@google.com>
32046         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
32048 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
32050         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
32051         and vmulosh rather than call gen_vec_widen_smult_*.
32052         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
32053         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
32054         (vec_widen_smult_even_v16qi): Likewise.
32055         (vec_widen_umult_even_v8hi): Likewise.
32056         (vec_widen_smult_even_v8hi): Likewise.
32057         (vec_widen_umult_odd_v16qi): Likewise.
32058         (vec_widen_smult_odd_v16qi): Likewise.
32059         (vec_widen_umult_odd_v8hi): Likewise.
32060         (vec_widen_smult_odd_v8hi): Likewise.
32061         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
32062         vmuloub rather than call gen_vec_widen_umult_*.
32063         (vec_widen_umult_lo_v16qi): Likewise.
32064         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
32065         vmulosb rather than call gen_vec_widen_smult_*.
32066         (vec_widen_smult_lo_v16qi): Likewise.
32067         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
32068         rather than call gen_vec_widen_umult_*.
32069         (vec_widen_umult_lo_v8hi): Likewise.
32070         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
32071         rather than call gen_vec_widen_smult_*.
32072         (vec_widen_smult_lo_v8hi): Likewise.
32074 2014-01-15  Jeff Law  <law@redhat.com>
32076         PR tree-optimization/59747
32077         * ree.c (find_and_remove_re): Properly handle case where a second
32078         eliminated extension requires widening a copy created for elimination
32079         of a prior extension.
32080         (combine_set_extension): Ensure that the number of hard regs needed
32081         for a destination register does not change when we widen it.
32083 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32085         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
32086         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
32087         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
32088         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
32089         (avr-*-rtems*): Likewise.
32090         (bfin*-rtems*): Likewise.
32091         (moxie-*-rtems*): Likewise.
32092         (h8300-*-rtems*): Likewise.
32093         (i[34567]86-*-rtems*): Likewise.
32094         (lm32-*-rtems*): Likewise.
32095         (m32r-*-rtems*): Likewise.
32096         (m68k-*-rtems*): Likewise.
32097         (microblaze*-*-rtems*): Likewise.
32098         (mips*-*-rtems*): Likewise.
32099         (powerpc-*-rtems*): Likewise.
32100         (sh-*-rtems*): Likewise.
32101         (sparc-*-rtems*): Likewise.
32102         (sparc64-*-rtems*): Likewise.
32103         (v850-*-rtems*): Likewise.
32104         (m32c-*-rtems*): Likewise.
32106 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
32108         PR rtl-optimization/59511
32109         * ira.c (ira_init_register_move_cost): Use memory costs for some
32110         cases of register move cost calculations.
32111         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
32112         instead of BB frequency.
32113         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
32114         * lra-assigns.c (find_hard_regno_for): Ditto.
32116 2014-01-15  Richard Biener  <rguenther@suse.de>
32118         PR tree-optimization/59822
32119         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
32120         (vectorizable_load): Use it to hoist defs of uses of invariant
32121         loads out of the loop.
32123 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
32124             Kugan Vivekanandarajah  <kuganv@linaro.org>
32126         PR target/59695
32127         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
32128         truncation.
32130 2014-01-15  Richard Biener  <rguenther@suse.de>
32132         PR rtl-optimization/59802
32133         * lcm.c (compute_available): Use inverted postorder to seed
32134         the initial worklist.
32136 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32138         PR target/59803
32139         * config/s390/s390.c (s390_preferred_reload_class): Don't return
32140         ADDR_REGS for invalid symrefs in non-PIC code.
32142 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
32144         PR other/58712
32145         * builtins.c (determine_block_size): Initialize *probable_max_size
32146         even if len_rtx is CONST_INT.
32148 2014-01-14  Andrew Pinski  <apinski@cavium.com>
32150         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
32151         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
32152         (cortexa53_tunings): Likewise.
32153         (aarch64_sched_issue_rate): New function.
32154         (TARGET_SCHED_ISSUE_RATE): Define.
32156 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32158         * ira-costs.c (find_costs_and_classes): Add missed
32159         ira_init_register_move_cost_if_necessary.
32161 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32163         PR target/59787
32164         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
32166 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
32168         PR target/59794
32169         * config/i386/i386.c (type_natural_mode): Add a bool parameter
32170         to indicate if type is used for function return value.  Warn ABI
32171         change if the vector mode isn't available for function return value.
32172         (ix86_function_arg_advance): Pass false to type_natural_mode.
32173         (ix86_function_arg): Likewise.
32174         (ix86_gimplify_va_arg): Likewise.
32175         (function_arg_32): Don't warn ABI change.
32176         (ix86_function_value): Pass true to type_natural_mode.
32177         (ix86_return_in_memory): Likewise.
32178         (ix86_struct_value_rtx): Removed.
32179         (TARGET_STRUCT_VALUE_RTX): Likewise.
32181 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32183         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
32184         converting a conditional jump into a conditional return.
32186 2014-01-14  Richard Biener  <rguenther@suse.de>
32188         PR tree-optimization/58921
32189         PR tree-optimization/59006
32190         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
32191         hoisting invariant stmts.
32192         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
32193         invariant loads on the preheader edge if possible.
32195 2014-01-14  Joey Ye  <joey.ye@arm.com>
32197         * doc/plugin.texi (Building GCC plugins): Update to C++.
32199 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
32201         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
32202         (_mm_rcp28_round_ss): Ditto.
32203         (_mm_rsqrt28_round_sd): Ditto.
32204         (_mm_rsqrt28_round_ss): Ditto.
32205         (_mm_rcp28_sd): Ditto.
32206         (_mm_rcp28_ss): Ditto.
32207         (_mm_rsqrt28_sd): Ditto.
32208         (_mm_rsqrt28_ss): Ditto.
32209         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32210         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32211         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32212         (IX86_BUILTIN_RCP28SD): Ditto.
32213         (IX86_BUILTIN_RCP28SS): Ditto.
32214         (IX86_BUILTIN_RSQRT28SD): Ditto.
32215         (IX86_BUILTIN_RSQRT28SS): Ditto.
32216         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32217         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32218         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32219         (ix86_expand_special_args_builtin): Expand new FTYPE.
32220         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32221         (srcp14<mode>): Make insn unary.
32222         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32223         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32224         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32225         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32226         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32227         Fix rounding: make it SAE only.
32228         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32229         Ditto.
32230         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32231         Ditto.
32232         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
32233         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
32234         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
32235         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
32236         (round_saeonly_mask_scalar_operand4): Ditto.
32237         (round_saeonly_mask_scalar_op3): Ditto.
32238         (round_saeonly_mask_scalar_op4): Ditto.
32240 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32242         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32243         Implement -maltivec=be for vec_insert and vec_extract.
32245 2014-01-10  DJ Delorie  <dj@redhat.com>
32247         * config/msp430/msp430.md (call_internal): Don't allow memory
32248         references with SP as the base register.
32249         (call_value_internal): Likewise.
32250         * config/msp430/constraints.md (Yc): New.  For memory references
32251         that don't use SP as a base register.
32253         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
32254         "an integer without a # prefix"
32255         * config/msp430/msp430.md (epilogue_helper): Use it.
32257 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
32259         PR target/59617
32260         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
32261         AVX512F gather builtins.
32262         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
32263         on gather decls with INTEGER_TYPE masktype.
32264         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
32265         directly into the builtin rather than hoisting it before loop.
32267         PR tree-optimization/59387
32268         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
32269         (scev_const_prop): If folded_casts and type has undefined overflow,
32270         use force_gimple_operand instead of force_gimple_operand_gsi and
32271         for each added stmt if it is assign with
32272         arith_code_with_undefined_signed_overflow, call
32273         rewrite_to_defined_overflow.
32274         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
32275         gimple-fold.h instead.
32276         (arith_code_with_undefined_signed_overflow,
32277         rewrite_to_defined_overflow): Moved to ...
32278         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
32279         rewrite_to_defined_overflow): ... here.  No longer static.
32280         Include gimplify-me.h.
32281         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
32282         rewrite_to_defined_overflow): New prototypes.
32284 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32286         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
32288 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
32290         * builtins.c (get_object_alignment_2): Minor tweak.
32291         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
32293 2014-01-13  Christian Bruel  <christian.bruel@st.com>
32295         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
32296         optimized non constant lengths.
32298 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
32300         PR libgomp/59194
32301         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
32302         load as __atomic_load_N if possible.
32304 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
32306         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
32307         target parameter.
32308         (rs6000_expand_builtin): Adjust call.
32310 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
32312         PR target/58115
32313         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
32314         * config/rs6000/rs6000.c: Include target-globals.h.
32315         (rs6000_set_current_function): Instead of doing target_reinit
32316         unconditionally, use save_target_globals_default_opts and
32317         restore_target_globals.
32319         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
32320         FPSCR.
32321         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
32322         (rs6000_expand_builtin): Handle mffs and mtfsf.
32323         (rs6000_init_builtins): Define mffs and mtfsf.
32324         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
32325         (rs6000_mffs): New pattern.
32326         (rs6000_mtfsf): New pattern.
32328 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
32330         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
32331         Start narrowing with START.  Apply candidate-use pair
32332         and check overall cost in narrowing.
32333         (iv_ca_prune): Pass new argument.
32335 2014-01-10  Jeff Law  <law@redhat.com>
32337         PR middle-end/59743
32338         * ree.c (combine_reaching_defs): Ensure the defining statement
32339         occurs before the extension when optimizing extensions with
32340         different source and destination hard registers.
32342 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
32344         PR ipa/58585
32345         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
32346         vtables into the type inheritance graph.
32348 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32350         PR rtl-optimization/59754
32351         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
32352         modes in the REGNO != REGNO case.
32354 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32356         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
32358 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32360         PR tree-optimization/59745
32361         * tree-predcom.c (tree_predictive_commoning_loop): Call
32362         free_affine_expand_cache if giving up because components is NULL.
32364         * target-globals.c (save_target_globals): Allocate < 4KB structs using
32365         GC in payload of target_globals struct instead of allocating them on
32366         the heap and the larger structs separately using GC.
32367         * target-globals.h (struct target_globals): Make regs, hard_regs,
32368         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
32369         of GTY((skip)) and change type to void *.
32370         (reset_target_globals): Cast loads from those fields to corresponding
32371         types.
32373 2014-01-10  Steve Ellcey  <sellcey@mips.com>
32375         PR plugins/59335
32376         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
32377         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
32378         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
32380 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
32382         PR target/59744
32383         * aarch64-modes.def (CC_Zmode): New flags mode.
32384         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
32385         represents an equality.
32386         (aarch64_get_condition_code): Handle CC_Zmode.
32387         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
32389 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32391         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
32392         extraction in good case.
32394 2014-01-10  Richard Biener  <rguenther@suse.de>
32396         PR tree-optimization/59374
32397         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
32398         checking after SLP discovery.  Mark stmts not participating
32399         in any SLP instance properly.
32401 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32403         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
32404         when handling a SET rtx.
32406 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32408         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
32409         (cortex-a57): Likewise.
32410         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
32412 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32414         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
32415         non-iwmmxt builtins.
32417 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
32419         PR ipa/58252
32420         PR ipa/59226
32421         * ipa-devirt.c record_target_from_binfo): Take as argument
32422         stack of binfos and lookup matching one for virtual inheritance.
32423         (possible_polymorphic_call_targets_1): Update.
32425 2014-01-10  Huacai Chen  <chenhc@lemote.com>
32427         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
32428         kernel strings for Loongson-2E/2F/3A.
32430 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32432         PR middle-end/59670
32433         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
32434         is_gimple_call before calling gimple_call_internal_p.
32436 2014-01-09  Steve Ellcey  <sellcey@mips.com>
32438         * Makefile.in (TREE_FLOW_H): Remove.
32439         (TREE_SSA_H): Add file names from tree-flow.h.
32440         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
32441         * tree.h: Remove tree-flow.h reference.
32442         * hash-table.h: Remove tree-flow.h reference.
32443         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
32444         reference with tree-ssa-loop.h.
32446 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32448         * doc/invoke.texi: Add -maltivec={be,le} options, and document
32449         default element-order behavior for -maltivec.
32450         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
32451         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
32452         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
32453         when targeting big endian, at least for now.
32454         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
32456 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32458         PR middle-end/47735
32459         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
32460         var satisfies use_register_for_decl, just take into account type
32461         alignment, rather than decl alignment.
32463         PR tree-optimization/59622
32464         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
32465         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
32466         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
32467         Don't devirtualize for inplace at all.  For targets.length () == 1,
32468         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
32470 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
32472         * config/i386/i386.md (cpu): Remove the unused btver1.
32474 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
32476         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
32478 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32480         PR target/58115
32481         * tree-core.h (struct target_globals): New forward declaration.
32482         (struct tree_target_option): Add globals field.
32483         * tree.h (TREE_TARGET_GLOBALS): Define.
32484         (prepare_target_option_nodes_for_pch): New prototype.
32485         * target-globals.h (struct target_globals): Define even if
32486         !SWITCHABLE_TARGET.
32487         * tree.c (prepare_target_option_node_for_pch,
32488         prepare_target_option_nodes_for_pch): New functions.
32489         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
32490         * config/i386/i386.c: Include target-globals.h.
32491         (ix86_set_current_function): Instead of doing target_reinit
32492         unconditionally, use save_target_globals_default_opts and
32493         restore_target_globals.
32495 2014-01-09  Richard Biener  <rguenther@suse.de>
32497         PR tree-optimization/59715
32498         * tree-cfg.h (split_critical_edges): Declare.
32499         * tree-cfg.c (split_critical_edges): Export.
32500         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
32502 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32504         * cfgexpand.c (expand_stack_vars): Optionally disable
32505         asan stack protection.
32506         (expand_used_vars): Likewise.
32507         (partition_stack_vars): Likewise.
32508         * asan.c (asan_emit_stack_protection): Optionally disable
32509         after return stack usage.
32510         (instrument_derefs): Optionally disable memory access instrumentation.
32511         (instrument_builtin_call): Likewise.
32512         (instrument_strlen_call): Likewise.
32513         (asan_protect_global): Optionally disable global variables protection.
32514         * doc/invoke.texi: Added doc for new options.
32515         * params.def: Added new options.
32516         * params.h: Likewise.
32518 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32520         PR rtl-optimization/59724
32521         * ifcvt.c (cond_exec_process_if_block): Don't call
32522         flow_find_head_matching_sequence with 0 longest_match.
32523         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
32524         non-active insns if !stop_after.
32525         (try_head_merge_bb): Revert 2014-01-07 changes.
32527 2014-01-08  Jeff Law  <law@redhat.com>
32529         * ree.c (get_sub_rtx): New function, extracted from...
32530         (merge_def_and_ext): Here.
32531         (combine_reaching_defs): Use get_sub_rtx.
32533 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
32535         * cgraph.h (varpool_variable_node): Do not choke on null node.
32537 2014-01-08  Catherine Moore  <clm@codesourcery.com>
32539         * config/mips/mips.md (simple_return): Attempt to use JRC
32540         for microMIPS.
32541         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
32543 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
32545         PR rtl-optimization/59137
32546         * reorg.c (steal_delay_list_from_target): Call update_block for
32547         elided insns.
32548         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
32550 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32552         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
32553         two duplicate entries.
32555 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
32557         Revert:
32558         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
32560         * config/mips/mips.c (mips_truncated_op_cost): New function.
32561         (mips_rtx_costs): Adjust test for BADDU.
32562         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
32564         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
32566         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
32567         (*baddu_si): ...this new pattern.
32569 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
32571         PR ipa/59722
32572         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
32574 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32576         PR middle-end/57748
32577         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
32578         inner_reference_p.
32579         (expand_expr, expand_normal): Adjust.
32580         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
32581         inner_reference_p. Use inner_reference_p to expand inner references.
32582         (store_expr): Adjust.
32583         * cfgexpand.c (expand_call_stmt): Adjust.
32585 2014-01-08  Rong Xu  <xur@google.com>
32587         * gcov-io.c (gcov_var): Move from gcov-io.h.
32588         (gcov_position): Ditto.
32589         (gcov_is_error): Ditto.
32590         (gcov_rewrite): Ditto.
32591         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
32592         only part to libgcc/libgcov.h.
32594 2014-01-08  Marek Polacek  <polacek@redhat.com>
32596         PR middle-end/59669
32597         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
32599 2014-01-08  Marek Polacek  <polacek@redhat.com>
32601         PR sanitizer/59667
32602         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
32604 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
32606         PR rtl-optimization/59649
32607         * stor-layout.c (get_mode_bounds): For BImode return
32608         0 and STORE_FLAG_VALUE.
32610 2014-01-08  Richard Biener  <rguenther@suse.de>
32612         PR middle-end/59630
32613         * gimple.h (is_gimple_builtin_call): Remove.
32614         (gimple_builtin_call_types_compatible_p): New.
32615         (gimple_call_builtin_p): New overload.
32616         * gimple.c (is_gimple_builtin_call): Remove.
32617         (validate_call): Rename to ...
32618         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
32619         check return types.
32620         (validate_type): New static function.
32621         (gimple_call_builtin_p): New overload and adjust.
32622         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
32623         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
32624         (gimple_fold_stmt_to_constant_1): Likewise.
32625         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
32627 2014-01-08  Richard Biener  <rguenther@suse.de>
32629         PR middle-end/59471
32630         * gimplify.c (gimplify_expr): Gimplify register-register type
32631         VIEW_CONVERT_EXPRs to separate stmts.
32633 2014-01-07  Jeff Law  <law@redhat.com>
32635         PR middle-end/53623
32636         * ree.c (combine_set_extension): Handle case where source
32637         and destination registers in an extension insn are different.
32638         (combine_reaching_defs): Allow source and destination registers
32639         in extension to be different under limited circumstances.
32640         (add_removable_extension): Remove restriction that the
32641         source and destination registers in the extension are the same.
32642         (find_and_remove_re): Emit a copy from the extension's
32643         destination to its source after the defining insn if
32644         the source and destination registers are different.
32646         PR middle-end/59285
32647         * ifcvt.c (merge_if_block): If we are merging a block with more than
32648         one successor with a block with no successors, remove any BARRIER
32649         after the second block.
32651 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
32653         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
32655 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
32657         PR target/59652
32658         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
32659         for 14-bit register offsets when INT14_OK_STRICT is false.
32661 2014-01-07  Roland Stigge  <stigge@antcom.de>
32662             Michael Meissner  <meissner@linux.vnet.ibm.com>
32664         PR 57386/target
32665         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
32666         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
32668 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
32670         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
32671         -mcpu.
32673 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
32675         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
32676         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
32677         rtx is const0_rtx or not.
32679 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
32681         PR target/58115
32682         * target-globals.c (save_target_globals): Remove this_fn_optab
32683         handling.
32684         * toplev.c: Include optabs.h.
32685         (target_reinit): Temporarily restore the global options if another
32686         set of options are in force.
32688 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
32690         PR rtl-optimization/58668
32691         * cfgcleanup.c (flow_find_cross_jump): Don't count
32692         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
32693         to determine what is counted.
32694         (flow_find_head_matching_sequence): Use active_insn_p to determine
32695         what is counted.
32696         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
32697         counting change.
32698         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
32699         determine what is counted.
32701         PR tree-optimization/59643
32702         * tree-predcom.c (split_data_refs_to_components): If one dr is
32703         read and one write, determine_offset fails and the write isn't
32704         in the bad component, just put the read into the bad component.
32706 2014-01-07  Mike Stump  <mikestump@comcast.net>
32707             Jakub Jelinek  <jakub@redhat.com>
32709         PR pch/59436
32710         * tree-core.h (struct tree_optimization_option): Change optabs
32711         type from unsigned char * to void *.
32712         * optabs.c (init_tree_optimization_optabs): Adjust
32713         TREE_OPTIMIZATION_OPTABS initialization.
32715 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
32717         PR target/59644
32718         * config/i386/i386.h (struct machine_function): Add
32719         no_drap_save_restore field.
32720         * config/i386/i386.c (ix86_save_reg): Use
32721         !cfun->machine->no_drap_save_restore instead of
32722         crtl->stack_realign_needed.
32723         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
32724         this function clears frame_pointer_needed.  Set
32725         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
32726         and DRAP reg is needed.
32728 2014-01-06  Marek Polacek  <polacek@redhat.com>
32730         PR c/57773
32731         * doc/implement-c.texi: Mention that other integer types are
32732         permitted as bit-field types in strictly conforming mode.
32734 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
32736         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
32737         is newly allocated.
32739 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
32741         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
32743 2014-01-06  Martin Jambor  <mjambor@suse.cz>
32745         PR ipa/59008
32746         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
32747         to int.
32748         * ipa-prop.c (ipa_print_node_params): Fix indentation.
32750 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
32752         PR debug/59350
32753         PR debug/59510
32754         * var-tracking.c (add_stores): Preserve the value of the source even if
32755         we don't record the store.
32757 2014-01-06  Terry Guo  <terry.guo@arm.com>
32759         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
32761 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
32763         PR bootstrap/59541
32764         * config/darwin.c (darwin_function_section): Adjust return values to
32765         correspond to optimisation changes made in r206070.
32767 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
32769         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
32770         from prefetch_block tune setting.
32771         (nocona_cost): Correct size of prefetch block to 64.
32773 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32775         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
32776         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
32777         used to save the static chain register in the computation of the offset
32778         from which the FP registers need to be restored.
32780 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
32782         PR tree-optimization/59519
32783         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
32784         ICE if get_current_def (current_new_name) is already non-NULL, as long
32785         as it is a phi result of some other phi in *new_exit_bb that has
32786         the same argument.
32788         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
32789         or vmovdqu* for misaligned_operand.
32790         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
32791         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
32792         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
32793         aligned_mem for AVX512F masked aligned load and store builtins and for
32794         non-temporal moves.
32796 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
32798         PR tree-optimization/59651
32799         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32800         Address range for negative step should be added by TYPE_SIZE_UNIT.
32802 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
32804         * config/m68k/m68k.c (handle_move_double): Handle pushes with
32805         overlapping registers also for registers other than the stack pointer.
32807 2014-01-03  Marek Polacek  <polacek@redhat.com>
32809         PR other/59661
32810         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
32811         __builtin_FILE.
32813 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
32815         PR target/59625
32816         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
32817         asm goto as jump.
32819         * config/i386/i386.md (MODE_SIZE): New mode attribute.
32820         (push splitter): Use <P:MODE_SIZE> instead of
32821         GET_MODE_SIZE (<P:MODE>mode).
32822         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
32823         (mov -1, reg peephole2): Likewise.
32824         * config/i386/sse.md (*mov<mode>_internal,
32825         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
32826         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
32827         *<code><mode>3, *andnot<mode>3<mask_name>,
32828         <mask_codefor><code><mode>3<mask_name>): Likewise.
32829         * config/i386/subst.md (mask_mode512bit_condition,
32830         sd_mask_mode512bit_condition): Likewise.
32832 2014-01-02  Xinliang David Li  <davidxl@google.com>
32834         PR tree-optimization/59303
32835         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
32836         (dump_predicates): Better output format.
32837         (pred_equal_p): New function.
32838         (is_neq_relop_p): Ditto.
32839         (is_neq_zero_form_p): Ditto.
32840         (pred_expr_equal_p): Ditto.
32841         (pred_neg_p): Ditto.
32842         (simplify_pred): Ditto.
32843         (simplify_preds_2): Ditto.
32844         (simplify_preds_3): Ditto.
32845         (simplify_preds_4): Ditto.
32846         (simplify_preds): Ditto.
32847         (push_pred): Ditto.
32848         (push_to_worklist): Ditto.
32849         (get_pred_info_from_cmp): Ditto.
32850         (is_degenerated_phi): Ditto.
32851         (normalize_one_pred_1): Ditto.
32852         (normalize_one_pred): Ditto.
32853         (normalize_one_pred_chain): Ditto.
32854         (normalize_preds): Ditto.
32855         (normalize_cond_1): Remove function.
32856         (normalize_cond): Ditto.
32857         (is_gcond_subset_of): Ditto.
32858         (is_subset_of_any): Ditto.
32859         (is_or_set_subset_of): Ditto.
32860         (is_and_set_subset_of): Ditto.
32861         (is_norm_cond_subset_of): Ditto.
32862         (pred_chain_length_cmp): Ditto.
32863         (convert_control_dep_chain_into_preds): Type change.
32864         (find_predicates): Ditto.
32865         (find_def_preds): Ditto.
32866         (destroy_predicates_vecs): Ditto.
32867         (find_matching_predicates_in_rest_chains): Ditto.
32868         (use_pred_not_overlap_with_undef_path_pred): Ditto.
32869         (is_pred_expr_subset): Ditto.
32870         (is_pred_chain_subset_of): Ditto.
32871         (is_included_in): Ditto.
32872         (is_superset_of): Ditto.
32874 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
32876         Update copyright years.
32878 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
32880         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
32881         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
32882         config/arc/arc.md, config/arc/arc.opt,
32883         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
32884         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
32885         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
32886         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
32887         config/linux-protos.h, config/linux.c, config/winnt-c.c,
32888         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
32889         vtable-verify.c, vtable-verify.h: Use the standard form for the
32890         copyright notice.
32892 2014-01-02  Tobias Burnus  <burnus@net-b.de>
32894         * gcc.c (process_command): Update copyright notice dates.
32895         * gcov-dump.c: Ditto.
32896         * gcov.c: Ditto.
32897         * doc/cpp.texi: Bump @copying's copyright year.
32898         * doc/cppinternals.texi: Ditto.
32899         * doc/gcc.texi: Ditto.
32900         * doc/gccint.texi: Ditto.
32901         * doc/gcov.texi: Ditto.
32902         * doc/install.texi: Ditto.
32903         * doc/invoke.texi: Ditto.
32905 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32907         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
32909 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
32911         * config/i386/sse.md (*mov<mode>_internal): Guard
32912         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
32914         PR rtl-optimization/59647
32915         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
32916         new_rtx into UNSIGNED_FLOAT rtxes.
32918 Copyright (C) 2014 Free Software Foundation, Inc.
32920 Copying and distribution of this file, with or without modification,
32921 are permitted in any medium without royalty provided the copyright
32922 notice and this notice are preserved.