* cgraphclones.c (build_function_type_skip_args): Do not make new
[official-gcc.git] / gcc / ChangeLog
blob860004054d4104156031eff7e6fc0738c1630b9f
1 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3         * cgraphclones.c (build_function_type_skip_args): Do not make new
4         type variant of old. 
6 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
8         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
9         when speculation is added.
10         (ipa_edge_args): Add polymorphic_call_contexts.
11         (ipa_get_ith_polymorhic_call_context): New accesor.
12         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
13         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
14         (ipa_compute_jump_functions_for_edge): Compute contexts.
15         (update_jump_functions_after_inlining): Update contexts.
16         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
17         update dumping; add speculative edge creation.
18         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
19         context updating.
20         (update_indirect_edges_after_inlining): Pass down context.
21         (ipa_edge_duplication_hook): Duplicate contexts.
22         (ipa_write_node_info): Stream out contexts.
23         (ipa_read_node_info): Stream in contexts.
24         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
25         types.
26         (try_speculative_devirtualization): New function.
27         * ipa-utils.h (try_speculative_devirtualization): Declare.
29 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
31         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
32         dumping during WPA.
34 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
36         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
37         type variants.
39 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
41         * ipa-polymorphic-call.c
42         (ipa_polymorphic_call_context::restrict_to_inner_class):
43         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
44         use speculation_consistent_p to do so; Add CONSDER_BASES
45         and CONSIDER_PLACEMENT_NEW parameters.
46         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
47         short circuit obvious cases.
48         (ipa_polymorphic_call_context::dump): Improve formatting.
49         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
50         combine_speculation_with to record speculations; Do not ICE when
51         object is located in pointer type decl; do not ICE for methods
52         of UNION_TYPE; do not record nonpolymorphic types.
53         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
54         (ipa_polymorphic_call_context::combine_speculation_with): New method.
55         (ipa_polymorphic_call_context::combine_with): New method.
56         (ipa_polymorphic_call_context::make_speculative): Move here; use
57         combine speculation.
58         * cgraph.h (ipa_polymorphic_call_context): Update
59         restrict_to_inner_class prototype; add offset_by, make_speculative, 
60         combine_with, useless_p, combine_speculation_with and
61         speculation_consistent_p methods.
62         (ipa_polymorphic_call_context::offset_by): New method.
63         (ipa_polymorphic_call_context::useless_p): New method.
65 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
67         PR rtl-optimization/62151
68         * combine.c (can_combine_p): Allow the destination register of INSN
69         to be clobbered in I3.
70         (subst): Do not substitute into clobbers of registers.
72 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
74         PR debug/63342
75         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
76         offset, TARGET_MEM_REF and SSA_NAME.
78         * config/i386/i386.c (expand_vec_perm_palignr): Handle
79         256-bit vectors for TARGET_AVX2.
81         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
82         dfirst permutation.
84         PR target/63428
85         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
86         argument to avx2_permv2ti.
88 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
90         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
92 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
94         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
95         (fmod<mode>3): Ditto.
96         (fpremxf4_i387): Ditto.
97         (reminderxf3): Ditto.
98         (reminder<mode>3): Ditto.
99         (fprem1xf4_i387): Ditto.
101 2014-09-30  Teresa Johnson  <tejohnson@google.com>
103         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
104         duplicate_blocks bitmap.
105         (remove_ctrl_stmt_and_useless_edges): Ditto.
106         (create_block_for_threading): Ditto.
107         (compute_path_counts): New function.
108         (update_profile): Ditto.
109         (recompute_probabilities): Ditto.
110         (update_joiner_offpath_counts): Ditto.
111         (freqs_to_counts_path): Ditto.
112         (clear_counts_path): Ditto.
113         (ssa_fix_duplicate_block_edges): Update profile info.
114         (ssa_create_duplicates): Pass new parameter.
115         (ssa_redirect_edges): Remove old profile update.
116         (thread_block_1): New duplicate_blocks bitmap,
117         remove old profile update.
118         (thread_single_edge): Pass new parameter.
120 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
122         PR middle-end/62120
123         * varasm.c (decode_reg_name_and_count): Check availability for
124         registers from ADDITIONAL_REGISTER_NAMES.
126 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
128         PR plugins/63410
129         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
130         (PLUGIN_HEADERS): Add pass-instances.def.
132 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
134         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
135         iterator.
136         * config/aarch64/aarch64-simd.md
137         (aarch64_sqdmull_laneq<mode>): Expand iterator.
138         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
139         (vqdmulls_lane_s32): Fix return type.
140         (vqdmulls_laneq_s32): New.
142 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
144         PR inline-asm/63282
145         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
146         or invert_jump_1 if jump isn't any_condjump_p.
148 2014-09-30  Terry Guo  <terry.guo@arm.com>
150         * config/arm/arm-cores.def (cortex-m7): New core name.
151         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
152         (fpv5-d16): Ditto.
153         * config/arm/arm-tables.opt: Regenerated.
154         * config/arm/arm-tune.md: Regenerated.
155         * config/arm/arm.h (TARGET_VFP5): New macro.
156         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
157         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
158         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
159         * doc/invoke.texi: Document new cpu and fpu names.
161 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
163         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
164         before sinking insn.
166 2014-09-30  David Sherwood  <david.sherwood@arm.com>
168         * ira-int.h (ira_allocno): Add "wmode" field.
169         * ira-build.c (create_insn_allocnos): Add new "parent" function
170         parameter.
171         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
172         that cannot be accessed in wmode.
174 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
176         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
177         integer overflow.
179 2014-09-29  Andi Kleen  <ak@linux.intel.com>
181         * opts.c (print_filtered_help): Print --param min/max/default
182         with -Q.
184 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
186         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
188 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
190         * tree-vrp.c (get_single_symbol): New function.
191         (build_symbolic_expr): Likewise.
192         (symbolic_range_based_on_p): New predicate.
193         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
194         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
195         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
196         operand is symbolic and based on the other operand.
198 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
200         * config/microblaze/microblaze.md (call_internal1): Use VOID
201         instead of SI to fix "((void (*)(void)) 0)()" issue
203 2014-09-29  Nick Clifton  <nickc@redhat.com>
205         * config/msp430/msp430.c (msp430_expand_prologue): Return a
206         CLOBBER rtx for naked functions.
207         (msp430_expand_epilogue): Likewise.
208         (msp430_use_f5_series_hwmult): Cache result.
209         (use_32bit_hwmult): Cache result.
210         (msp430_no_hwmult): New function.
211         (msp430_output_labelref): Use it.
213 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
215         PR middle-end/63247
216         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
217         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
218         use the alignment of avar rather than ovar.
220 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
222         * config/pa/pa.c (pa_output_function_epilogue): Only update
223         last_address when a nonnote insn is found.
225 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
227         PR ipa/60665
228         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
230 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
232         PR ipa/62121
233         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
234         fix pasto in checking array size.
236 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
238         PR middle-end/35545
239         * passes.def (pass_tracer): Move before last dominator pass.
241 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
243         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
244         users.
245         (run_attempt): Handle errors of "pex_run" invocation.
247 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
249         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
250         (CC1_SPEC): Define.
251         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
252         (TARGET_ASAN_SHADOW_OFFSET): Define.
254 2014-09-26  Martin Liska  <mliska@suse.cz>
256         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
257         introduced.
258         * cgraph.h: Likewise.
259         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
260         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
261         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
262         * tree-ssa-alias.h: Likewise.
264 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
265             Max Ostapenko  <m.ostapenko@partner.samsung.com>
267         * common.opt: New option.
268         * doc/invoke.texi: Describe new option.
269         * gcc.c (execute): Don't free first string early, but at the end
270         of the function.  Call retry_ice if compiler exited with
271         ICE_EXIT_CODE.
272         (main): Factor out common code.
273         (print_configuration): New function.
274         (files_equal_p): Likewise.
275         (check_repro): Likewise.
276         (run_attempt): Likewise.
277         (do_report_bug): Likewise.
278         (append_text): Likewise.
279         (try_generate_repro): Likewise
281 2014-09-25  Andi Kleen  <ak@linux.intel.com>
283         * config/i386/i386.c (x86_print_call_or_nop): New function.
284         (x86_function_profiler): Support -mnop-mcount and
285         -mrecord-mcount.
286         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
287         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
289 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
291         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
292         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
293         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
294         Remove.
296 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
298         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
299         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
300         types_odr_comparable): Declare.
301         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
302         * ipa-polymorphic-call.c: New file.
303         (contains_polymorphic_type_p, possible_placement_new,
304         ipa_polymorphic_call_context::restrict_to_inner_class,
305         contains_type_p, decl_maybe_in_construction_p,
306         ipa_polymorphic_call_context::stream_out,
307         ipa_polymorphic_call_context::debug,
308         ipa_polymorphic_call_context::stream_in,
309         ipa_polymorphic_call_context::set_by_decl,
310         ipa_polymorphic_call_context::set_by_invariant,
311         walk_ssa_copies,
312         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
313         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
314         extr_type_from_vtbl_ptr_store, record_known_type
315         check_stmt_for_type_change,
316         ipa_polymorphic_call_context::get_dynamic_type): Move here from
317         ipa-devirt.c
318         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
319         and streamer-hooks.h
320         (contains_polymorphic_type_p, possible_placement_new,
321         ipa_polymorphic_call_context::restrict_to_inner_class,
322         contains_type_p, decl_maybe_in_construction_p,
323         ipa_polymorphic_call_context::stream_out,
324         ipa_polymorphic_call_context::debug,
325         ipa_polymorphic_call_context::stream_in,
326         ipa_polymorphic_call_context::set_by_decl,
327         ipa_polymorphic_call_context::set_by_invariant,
328         walk_ssa_copies,
329         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
330         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
331         extr_type_from_vtbl_ptr_store, record_known_type
332         check_stmt_for_type_change,
333         ipa_polymorphic_call_context::get_dynamic_type): Move to
334         ipa-polymorphic-call.c
335         (type_all_derivations_known_p, types_odr_comparable,
336         types_must_be_same_for_odr): Export.
337         (type_known_to_have_no_deriavations_p): New function.
338         * Makefile.in: Add ipa-polymorphic-call.c
340 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
342         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
343         for better storage.
344         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
345         (possible_polymorphic_call_targets): Instead of computing both
346         speculative and non-speculative answers, do just one at a time.
347         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
348         (dump_targets): Break out from ...
349         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
350         and non-speculative lists.
351         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
352         * ipa-utils.h (possible_polymorphic_call_targets): Update.
354 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
356         PR rtl-optimization/63348
357         * emit-rtl.c (try_split): Do not emit extra barrier.
359 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
361         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
362         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
363         new predicates.
364         (aarch64_<sur>shll2_n<mode>): Likewise.
365         (aarch64_<sur>shr_n<mode>): Likewise.
366         (aarch64_<sur>sra_n<mode>: Likewise.
367         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
368         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
369         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
370         * config/aarch64/iterators.md (ve_mode): New.
371         (offsetlr): Remap to infix text for use in new predicates.
372         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
373         (aarch64_simd_shift_imm_hi): Likewise.
374         (aarch64_simd_shift_imm_si): Likewise.
375         (aarch64_simd_shift_imm_di): Likewise.
376         (aarch64_simd_shift_imm_offset_qi): Likewise.
377         (aarch64_simd_shift_imm_offset_hi): Likewise.
378         (aarch64_simd_shift_imm_offset_si): Likewise.
379         (aarch64_simd_shift_imm_offset_di): Likewise.
380         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
381         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
382         (aarch64_simd_shift_imm_bitsize_si): Likewise.
383         (aarch64_simd_shift_imm_bitsize_di): Likewise.
385 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
387         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
388         new created BB as the intersection of live-in from "old_dest" and
389         live-out from "bb".
391 2014-09-25  Felix Yang  <felix.yang@huawei.com>
393         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
394         * genautomata.c (merge_states): Ditto.
396 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
398         PR target/62218
399         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
400         in instruction sequence.
402 2014-09-25  Nick Clifton  <nickc@redhat.com>
404         PR target/62218
405         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
406         in instruction sequence.
408 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
410         PR target/63335
411         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
412         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
414 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
415             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
416             Anna Tikhonova  <anna.tikhonova@intel.com>
417             Ilya Tocar  <ilya.tocar@intel.com>
418             Andrey Turetskiy  <andrey.turetskiy@intel.com>
419             Ilya Verbin  <ilya.verbin@intel.com>
420             Kirill Yukhin  <kirill.yukhin@intel.com>
421             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
423         * config/i386/sse.md
424         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
425         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
426         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
427         (define_expand "<avx512>_perm<mode>_mask"): ... this.
428         Use VI8F_256_512 mode iterator.
429         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
430         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
432 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
433             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
434             Anna Tikhonova  <anna.tikhonova@intel.com>
435             Ilya Tocar  <ilya.tocar@intel.com>
436             Andrey Turetskiy  <andrey.turetskiy@intel.com>
437             Ilya Verbin  <ilya.verbin@intel.com>
438             Kirill Yukhin  <kirill.yukhin@intel.com>
439             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
441         * config/i386/sse.md
442         (define_insn "avx_movshdup256<mask_name>"): Add masking.
443         (define_insn "sse3_movshdup<mask_name>"): Ditto.
444         (define_insn "avx_movsldup256<mask_name>"): Ditto.
445         (define_insn "sse3_movsldup<mask_name>"): Ditto.
446         (define_insn "vec_dupv2df<mask_name>"): Ditto.
447         (define_insn "*vec_concatv2df"): Add EVEX version.
449 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
450             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
451             Anna Tikhonova  <anna.tikhonova@intel.com>
452             Ilya Tocar  <ilya.tocar@intel.com>
453             Andrey Turetskiy  <andrey.turetskiy@intel.com>
454             Ilya Verbin  <ilya.verbin@intel.com>
455             Kirill Yukhin  <kirill.yukhin@intel.com>
456             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
458         * config/i386/sse.md
459         (define_insn "vec_set<mode>_0"): Add EVEX version.
461 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
462             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
463             Anna Tikhonova  <anna.tikhonova@intel.com>
464             Ilya Tocar  <ilya.tocar@intel.com>
465             Andrey Turetskiy  <andrey.turetskiy@intel.com>
466             Ilya Verbin  <ilya.verbin@intel.com>
467             Kirill Yukhin  <kirill.yukhin@intel.com>
468             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
470         * config/i386/sse.md
471         (define_insn
472         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
473         New.
474         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
475         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
476         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
477         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
478         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
479         (define_expand "sse2_cvtpd2ps_mask): New.
480         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
481         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
483 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
484             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
485             Anna Tikhonova  <anna.tikhonova@intel.com>
486             Ilya Tocar  <ilya.tocar@intel.com>
487             Andrey Turetskiy  <andrey.turetskiy@intel.com>
488             Ilya Verbin  <ilya.verbin@intel.com>
489             Kirill Yukhin  <kirill.yukhin@intel.com>
490             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
492         * config/i386/i386.c
493         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
494         (ufix_notruncv8dfv8si2_mask_round): ... this.
495         * config/i386/sse.md
496         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
497         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
498         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
499         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
500         (define_expand "sse2_cvtpd2dq"): Delete.
501         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
502         make 2nd operand const0 vector.
503         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
504         Delete.
505         (define_mode_attr pd2udqsuff): New.
506         (define_insn
507         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
508         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
509         (define_insn "*avx_cvttpd2dq256_2"): Delete.
510         (define_expand "sse2_cvttpd2dq"): Ditto.
511         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
512         make 2nd operand const0 vector.
514 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
516         PR tree-optimization/63341
517         * tree-vectorizer.h (vect_create_data_ref_ptr,
518         vect_create_addr_base_for_vector_ref): Add another tree argument
519         defaulting to NULL_TREE.
520         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
521         argument, pass it down to vect_create_addr_base_for_vector_ref.
522         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
523         add that to base_offset too if non-NULL.
524         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
525         for dr_explicit_realign_optimized set it to vector byte size
526         - 1 instead of setting offset, pass byte_offset down to
527         vect_create_data_ref_ptr.
529 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
531         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
532         forgotten debug output; canonicalize querries more wtih LTO.
534 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
536         * cgraph.h (class ipa_polymorphic_call_context): Move here from
537         ipa-utils.h; add stream_int and stream_out methods.
538         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
539         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
540         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
541         add CONTEXT.
542         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
543         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
544         ipa_polymorphic_call_context::clear_speculation,
545         ipa_polymorphic_call_context::clear_outer_type): Move here from
546         ipa-utils.h
547         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
548         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
549         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
550         ipa_polymorphic_call_context::clear_speculation,
551         ipa_polymorphic_call_context::clear_outer_type): Likewise.
552         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
553         streamer-hooks.h
554         (ipa_polymorphic_call_context::stream_out): New method.
555         (ipa_polymorphic_call_context::stream_in): New method.
556         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
557         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
558         OUTER_TYPE.
559         (ipa_analyze_call_uses): Simplify.
560         (update_indirect_edges_after_inlining): Do not care about outer_type.
561         (ipa_write_indirect_edge_info): Update.
562         (ipa_write_indirect_edge_info): Likewise.
563         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
564         (dump_edge_flags): Break out from ...
565         (cgraph_node::dump): ... here; dump indirect edges.
567 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
569         * ipa-utils.h (polymorphic_call_context): Add
570         metdhos dump, debug and clear_outer_type.
571         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
572         (ipa_polymorphic_call_context::clear_outer_type): New method.
573         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
574         * ipa-devirt.c (types_odr_comparable): New function.
575         (types_must_be_same_for_odr): New function.
576         (odr_subtypes_equivalent_p): Simplify.
577         (possible_placement_new): Break out from ...
578         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
579         be more cuatious about returning false in cases the context may be
580         valid in derived type or via placement new.
581         (contains_type_p): Clear maybe_derived_type
582         (ipa_polymorphic_call_context::dump): New method.
583         (ipa_polymorphic_call_context::debug): New method.
584         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
585         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
586         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
587         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
588         to suceed on all valid cases; remove confused sanity check.
589         (dump_possible_polymorphic_call_targets): Simplify.
591 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
593         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
594         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
595         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
596         varpool.c: Rename all instances of DECL_ABSTRACT to
597         DECL_ABSTRACT_P.
599 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
601         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
602         special handling for stores whose SET_SRC is an UNSPEC (such as
603         UNSPEC_STVE).
605 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
607         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
608         !REG_P (src) to release more instruction sink opportunities.
610 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
612         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
613         move costs for 128-bit types.
615 2014-09-24  Martin Jambor  <mjambor@suse.cz>
617         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
618         when duplicating a PASS_THROUGH jump function when creating a
619         speculative edge.
621 2014-09-24  Marek Polacek  <polacek@redhat.com>
623         PR c/61405
624         PR c/53874
625         * asan.c (maybe_instrument_call): Add default case.
626         * ipa-pure-const.c (special_builtin_state): Likewise.
627         * predict.c (expr_expected_value_1): Likewise.
628         * lto-streamer-out.c (write_symbol): Initialize variable.
630 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
632         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
633         the lane.
634         (vmuld_laneq_f64): Likewise.
635         (vmuls_lane_f32): Likewise.
636         (vmuls_laneq_f32): Likewise.
638 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
640         PR bootstrap/63235
641         * varpool.c (varpool_node::add): Pass decl attributes
642         to lookup_attribute.
644 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
646         PR sanitizer/63316
647         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
649 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
651         PR tree-optimization/63266
652         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
653         marker for unknown byte value.
654         (MARKER_MASK): New macro.
655         (MARKER_BYTE_UNKNOWN): New macro.
656         (HEAD_MARKER): New macro.
657         (do_shift_rotate): Mark bytes with unknown values due to sign
658         extension when doing an arithmetic right shift. Replace hardcoded
659         mask for marker by new MARKER_MASK macro.
660         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
661         numbers accordingly.
663 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
664             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
665             Anna Tikhonova  <anna.tikhonova@intel.com>
666             Ilya Tocar  <ilya.tocar@intel.com>
667             Andrey Turetskiy  <andrey.turetskiy@intel.com>
668             Ilya Verbin  <ilya.verbin@intel.com>
669             Kirill Yukhin  <kirill.yukhin@intel.com>
670             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
672         * config/i386/sse.md
673         (define_insn
674         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
675         Add masking.
676         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
677         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
679 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
680             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
681             Anna Tikhonova  <anna.tikhonova@intel.com>
682             Ilya Tocar  <ilya.tocar@intel.com>
683             Andrey Turetskiy  <andrey.turetskiy@intel.com>
684             Ilya Verbin  <ilya.verbin@intel.com>
685             Kirill Yukhin  <kirill.yukhin@intel.com>
686             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
688         * config/i386/sse.md
689         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
690         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
691         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
692         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
693         (define_expand "avx512vl_pshuflw_mask"): New.
694         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
695         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
696         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
697         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
698         (define_expand "avx512vl_pshufhw_mask"): New.
699         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
701 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
702             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
703             Anna Tikhonova  <anna.tikhonova@intel.com>
704             Ilya Tocar  <ilya.tocar@intel.com>
705             Andrey Turetskiy  <andrey.turetskiy@intel.com>
706             Ilya Verbin  <ilya.verbin@intel.com>
707             Kirill Yukhin  <kirill.yukhin@intel.com>
708             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
710         * config/i386/i386.c
711         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
712         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
713         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
714         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
715         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
716         * config/i386/sse.md
717         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
718         (define_insn
719         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
720         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
721         (define_insn
722         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
723         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
724         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
725         (define_expand "avx512vl_pshufd_mask"): New.
726         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
728 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
729             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
730             Anna Tikhonova  <anna.tikhonova@intel.com>
731             Ilya Tocar  <ilya.tocar@intel.com>
732             Andrey Turetskiy  <andrey.turetskiy@intel.com>
733             Ilya Verbin  <ilya.verbin@intel.com>
734             Kirill Yukhin  <kirill.yukhin@intel.com>
735             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
737         * config/i386/i386.c
738         (CODE_FOR_avx2_extracti128): Rename to ...
739         (CODE_FOR_avx_vextractf128v4di): this.
740         (CODE_FOR_avx2_inserti128): Rename to ...
741         (CODE_FOR_avx_vinsertf128v4di): this.
742         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
743         CODE_FOR_avx_vextractf128v4di.
744         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
745         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
746         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
747         CODE_FOR_avx512vl_vinsertv8si.
748         * config/i386/sse.md
749         (define_expand
750         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
751         AVX512_VEC mode iterator.
752         (define_insn
753         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
754         Ditto.
755         (define_expand
756         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
757         AVX512_VEC_2 mode iterator.
758         (define_insn "vec_set_lo_<mode><mask_name>"): New.
759         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
760         (define_expand "avx512vl_vinsert<mode>"): Ditto.
761         (define_insn "avx2_vec_set_lo_v4di"): Delete.
762         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
763         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
764         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
765         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
766         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
767         (define_expand "avx2_extracti128"): Delete.
768         (define_expand "avx2_inserti128"): Ditto.
770 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
771             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
772             Anna Tikhonova  <anna.tikhonova@intel.com>
773             Ilya Tocar  <ilya.tocar@intel.com>
774             Andrey Turetskiy  <andrey.turetskiy@intel.com>
775             Ilya Verbin  <ilya.verbin@intel.com>
776             Kirill Yukhin  <kirill.yukhin@intel.com>
777             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
779         * config/i386/sse.md
780         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
781         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
782         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
783         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
784         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
785         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
786         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
787         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
788         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
789         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
790         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
791         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
792         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
794 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
796         PR rtl-optimization/63210
797         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
798         HARD_REGNO is not available for CONFLICT_A.
800 2014-09-23  Andi Kleen  <ak@linux.intel.com>
802         * cgraph.h (symtab_node): Add no_reorder attribute.
803         (symbol_table::output_asm_statements): Remove.
804         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
805         (cgraph_node::create_version_clone): Dito.
806         (symbol_table::output_asm_statements): Remove.
807         * trans-mem.c (ipa_tm_create_version_alias): Dito.
808         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
809         (output_in_order): Add no_reorder flag. Only handle no_reorder
810         nodes when set.
811         (symbol_table::compile): Add separate pass for no_reorder nodes.
812         (process_common_attributes): Set no_reorder flag in symtab node.
813         Add node argument.
814         (process_function_and_variable_attributes): Pass symtab nodes to
815         process_common_attributes.
816         * doc/extend.texi (no_reorder): Document no_reorder attribute.
817         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
818         (lto_output_varpool_node): Dito.
819         (input_overwrite_node): Dito.
820         (input_varpool_node): Dito.
821         * varpool.c (varpool_node::add): Set no_reorder attribute.
822         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
823         (symbol_table::output_variables): Dito.
824         * symtab.c (symtab_node::dump_base): Print no_reorder.
826 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
828         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
829         be INVALID_REGNUM.
831 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
833         * configure: Regenerate.
835 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
837         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
838         when result_mode == shift_mode.
840 2014-09-23  Kostya Serebryany  <kcc@google.com>
842         Update to match the changed asan API.
843         * asan.c (asan_global_struct): Update the __asan_global definition
844         to match the new API.
845         (asan_add_global): Ditto.
846         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
847         to __asan_init_v4.
849 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
851         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
852         refine the constraints used on 32/64-bit floating point moves.
853         (f32_av): Likewise.
854         (f64_vsx): Likewise.
855         (f64_dm): Likewise.
856         (f64_av): Likewise.
857         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
858         (BOOL_REGS_OP1): Likewise.
859         (BOOL_REGS_OP2): Likewise.
860         (BOOL_REGS_UNARY): Likewise.
861         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
862         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
863         for moves involving VSX registers.  Do not use constraints that
864         target VSX registers for decimal types.
865         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
866         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
868 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
870         * tree.h (int_bit_position): Turn into inline function;
871         implement using wide int.
872         * tree.c (int_bit_position): Remove.
874 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
876         PR bootstrap/63280
877         * target-globals.c (target_globals::~target_globals): Fix location
878         of ira_int destruction.
880 2014-09-23  Renlin Li  <renlin.li@arm.com>
882         * config/aarch64/aarch64.md (return): New.
883         (simple_return): Likewise.
884         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
885         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
887 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
889         * common/config/aarch64/aarch64-common.c:
890         (default_options aarch_option_optimization_table):
891         Default to -fsched-pressure.
893 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
895         * cfgcleanup.c (try_optimize_cfg): Do not remove label
896         with LABEL_PRESERVE_P flag set.
898 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
899             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
900             Anna Tikhonova  <anna.tikhonova@intel.com>
901             Ilya Tocar  <ilya.tocar@intel.com>
902             Andrey Turetskiy  <andrey.turetskiy@intel.com>
903             Ilya Verbin  <ilya.verbin@intel.com>
904             Kirill Yukhin  <kirill.yukhin@intel.com>
905             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
907         * config/i386/sse.md
908         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
909         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
910         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
911         (define_insn "sse2_shufpd_v2df_mask"): New.
913 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
914             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
915             Anna Tikhonova  <anna.tikhonova@intel.com>
916             Ilya Tocar  <ilya.tocar@intel.com>
917             Andrey Turetskiy  <andrey.turetskiy@intel.com>
918             Ilya Verbin  <ilya.verbin@intel.com>
919             Kirill Yukhin  <kirill.yukhin@intel.com>
920             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
922         * config/i386/sse.md
923         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
924         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
925         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
926         (define_insn "sse_shufps_v4sf_mask"): New.
928 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
929             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
930             Anna Tikhonova  <anna.tikhonova@intel.com>
931             Ilya Tocar  <ilya.tocar@intel.com>
932             Andrey Turetskiy  <andrey.turetskiy@intel.com>
933             Ilya Verbin  <ilya.verbin@intel.com>
934             Kirill Yukhin  <kirill.yukhin@intel.com>
935             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
937         * config/i386/sse.md
938         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
939         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
940         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
941         (define_insn "unpcklps128_mask"): New.
943 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
944             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
945             Anna Tikhonova  <anna.tikhonova@intel.com>
946             Ilya Tocar  <ilya.tocar@intel.com>
947             Andrey Turetskiy  <andrey.turetskiy@intel.com>
948             Ilya Verbin  <ilya.verbin@intel.com>
949             Kirill Yukhin  <kirill.yukhin@intel.com>
950             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
952         * config/i386/sse.md
953         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
954         (define_insn "avx512vl_unpckhpd128_mask"): New.
955         (define_expand "avx_movddup256<mask_name>"): Add masking.
956         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
957         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
958         (define_insn "avx512vl_unpcklpd128_mask"): New.
960 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
962         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
963         * doc/tm.texi: Regenerate.
964         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
965         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
966         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
967         Remove.
968         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
969         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
970         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
971         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
972         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
973         Remove.
974         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
975         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
976         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
977         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
978         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
979         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
980         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
981         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
982         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
983         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
984         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
985         Remove.
987 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
989         * tree-ssa-ccp.c (prop_value_d): Rename to ...
990         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
991         * ipa-prop.c (struct type_change_info): Rename to ...
992         (prop_type_change_info): ... this; update uses.
993         * ggc-page.c (globals): Rename to ...
994         (static struct ggc_globals): ... this; update uses.
995         * tree-ssa-loop-im.c (mem_ref): Rename to ...
996         (im_mem_ref): ... this; update uses.
997         * ggc-common.c (loc_descriptor): Rename to ...
998         (ggc_loc_descriptor): ... this; update uses.
999         * lra-eliminations.c (elim_table): Rename to ...
1000         (lra_elim_table): ... this; update uses.
1001         * bitmap.c (output_info): Rename to ...
1002         (bitmap_output_info): ... this; update uses.
1003         * gcse.c (expr): Rename to ...
1004         (gcse_expr) ... this; update uses.
1005         (occr): Rename to ...
1006         (gcse_occr): .. this; update uses.
1007         * tree-ssa-copy.c (prop_value_d): Rename to ...
1008         (prop_value_t): ... this.
1009         * predict.c (block_info_def): Rename to ...
1010         (block_info): ... this; update uses.
1011         (edge_info_def): Rename to ...
1012         (edge_info): ... this; update uses.
1013         * profile.c (bb_info): Rename to ...
1014         (bb_profile_info): ... this; update uses.
1015         * alloc-pool.c (output_info): Rename to ...
1016         (pool_output_info): ... this; update uses.
1017         * ipa-cp.c (topo_info): Rename to ..
1018         (ipa_topo_info): ... this; update uses.
1019         * tree-nrv.c (nrv_data): Rename to ...
1020         (nrv_data_t): ... this; update uses.
1021         * ipa-split.c (bb_info): Rename to ...
1022         (split_bb_info): ... this one.
1023         * profile.h (edge_info): Rename to ...
1024         (edge_profile_info): ... this one; update uses.
1025         * dse.c (bb_info): Rename to ...
1026         (dse_bb_info): ... this one; update uses.
1027         * cprop.c (occr): Rename to ...
1028         (cprop_occr): ... this one; update uses.
1029         (expr): Rename to ...
1030         (cprop_expr): ... this one; update uses.
1032 2014-09-22  Jason Merrill  <jason@redhat.com>
1034         * Makefile.in (check-parallel-%): Add @.
1036 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1038         * config/aarch64/geniterators.sh: New.
1039         * config/aarch64/iterators.md (VDQF_DF): New.
1040         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
1041         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
1043 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
1045         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
1046         -lnosys when -msim absent.
1048 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
1050         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
1052 2014-09-22  Richard Biener  <rguenther@suse.de>
1054         * gimplify.c (gimplify_init_constructor): Do not leave
1055         non-GIMPLE vector constructors around.
1056         * tree-cfg.c (verify_gimple_assign_single): Verify that
1057         CONSTRUCTORs have gimple elements.
1059 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
1061         PR debug/63328
1062         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
1063         insert a debug source bind stmt setting DEBUG_EXPR_DECL
1064         instead of a normal gimple assignment stmt.
1066 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1068         * config/bfin/bfin.md: Fix use of constraints in define_split.
1070 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1072         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
1073         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
1075 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1077         * hard-reg-set.h: Include hash-table.h.
1078         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
1079         field.
1080         * target-globals.c (target_globals::~target_globals): Call
1081         hard_regs->finalize.
1082         * rtl.h (subreg_shape): New structure.
1083         (shape_of_subreg): New function.
1084         (simplifiable_subregs): Declare.
1085         * reginfo.c (simplifiable_subreg): New structure.
1086         (simplifiable_subregs_hasher): Likewise.
1087         (simplifiable_subregs): New function.
1088         (invalid_mode_changes): Delete.
1089         (alid_mode_changes, valid_mode_changes_obstack): New variables.
1090         (record_subregs_of_mode): Remove subregs_of_mode parameter.
1091         Record valid mode changes in valid_mode_changes.
1092         (find_subregs_of_mode): Remove subregs_of_mode parameter.
1093         Update calls to record_subregs_of_mode.
1094         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
1095         handling.  Initialize new variables.  Update call to
1096         find_subregs_of_mode.
1097         (invalid_mode_change_p): Check new variables instead of
1098         invalid_mode_changes.
1099         (finish_subregs_of_mode): Finalize new variables instead of
1100         invalid_mode_changes.
1101         (target_hard_regs::finalize): New function.
1102         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
1103         even when CLASS_CANNOT_CHANGE_MODE is undefined.
1105 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1107         * combine.c (subst): Use simplify_subreg_regno rather than
1108         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
1110 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1112         * rtl.h (subreg_info): Expand commentary
1113         * rtlanal.c (subreg_get_info): Likewise.
1115 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1117         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
1118         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
1119         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
1121 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1123         * config/arm/arm.c: #include "tm-constrs.h"
1124         (thumb1_size_rtx_costs): Adjust rtx costs.
1126 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
1128         * configure.ac (target_header_dir): Move block defining
1129         this to before the block setting inhibit_libc.
1130         (inhibit_libc): When considering $with_headers, just
1131         check it it's explicitly "no".  If not, also check if
1132         $target_header_dir/stdio.h is present.  If not, set
1133         inhibit_libc=true.
1134         * configure: Regenerate.
1136 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
1138         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
1139         
1140 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1142         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
1143         insn for divides by integer powers of two.
1144         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
1145         (mod<mode>3): Fix formatting.
1146         (three anonymous define_insn and two define_split): Delete.
1148 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1150         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
1151         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
1152         (floatdisf2_internal2): Ditto.
1153         (ashrdi3_no_power): Ditto.  Fix formatting.
1155 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1157         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
1158         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
1159         Tidy.
1161 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1163         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
1164         constant, use addsi3 directly.
1165         (three anonymous define_insn, two define_split): Delete.
1166         (sub<mode>3): Move.  Do not allow constant second operand.
1167         Generate different insn for constant first operand.
1168         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
1169         (subf<mode>3_imm): New.
1170         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
1171         (*plus_ltu<mode>): Only handle registers.
1172         (*plus_ltu<mode>_1): New.  Handle integer third operand.
1173         (*plus_gtu<mode>): Only handle registers.
1174         (*plus_gtu<mode>_1): New.  Handle integer third operand.
1176 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1178         * config/rs6000/rs6000.md (iorxor): New code_iterator.
1179         (iorxor): New code_attr.
1180         (IORXOR): New code_attr.
1181         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
1182         (ior<mode>3, xor<mode>3): Delete.
1183         (<iorxor><mode>3): New.
1184         (splitter for "big" integer ior, xor): New.
1185         (*bool<mode>3): Move.  Also handle AND.
1186         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
1187         (splitter for "big" integer ior, xor): Delete.
1189 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1191         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
1192         (two anonymous define_insn and two define_split): Delete.
1193         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
1195 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1197         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
1198         (two anonymous define_insn and two define_split): Delete.
1199         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
1201 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1203         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
1205 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1207         * config/rs6000/predicates.md (ca_operand): Allow subregs.
1208         (input_operand): Do not allow ca_operand.
1209         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
1210         carry bit, allow SImode and Pmode.
1211         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
1213 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
1215         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
1216         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
1217         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
1218         (*call_rex64_ms_sysv): Remove.
1219         (*call_value_rex64_ms_sysv): Ditto.
1220         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
1222 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
1224         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
1225         operand 3 to "CnL".
1227 2014-09-20  Andreas Schwab  <schwab@suse.de>
1229         * config/ia64/ia64.md: Remove constraints from define_split
1230         patterns.
1232 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1234         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1235         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1236         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1237         (get_dynamic_type): Remove.
1238         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1239         (clear_speculation): Bring to ipa-deivrt.h
1240         (get_class_context): Rename to ...
1241         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1242         (contains_type_p): Update.
1243         (get_dynamic_type): Rename to ...
1244         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1245         (possible_polymorphic_call_targets): UPdate.
1246         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1247         * ipa-prop.c (ipa_analyze_call_uses): Update.
1249 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1251         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1252         privatize dynamic TLS variables.
1254 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1256         * diagnostic.c (warning_n): New function.
1257         * diagnostic-core.h (warning_n): Declare.
1258         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1259         output dynamic counts when available.
1261 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1263         PR tree-optimization/63255
1264         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
1265         issue in setting body_removed flag.
1267 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1269         PR c++/61825
1270         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
1271         that visibility change is possible
1272         (handle_weakref_attribute): Likewise.
1273         * cgraph.h (symtab_node): Add method get_create and
1274         field refuse_visibility_changes.
1275         (symtab_node::get_create): New method.
1276         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
1277         * varasm.c (mark_weak): Verify that visibility change is
1278         possible.
1280 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1282         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
1283         for base_reg_operand to be common between LO_SUM and PLUS.
1284         (fusion_gpr_mem_combo): New predicate to match a fused address
1285         that combines the addis and memory offset address.
1287         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
1288         calling signature.
1289         (emit_fusion_gpr_load): Likewise.
1291         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
1292         signature to pass each argument separately, rather than
1293         using an operands array.  Rewrite the insns found by peephole2 to
1294         be a single insn, rather than hoping the insns will still be
1295         together when the peephole pass is done.  Drop being called via a
1296         normal peephole.
1297         (emit_fusion_gpr_load): Change calling signature to be called from
1298         the fusion_gpr_load_<mode> insns with a combined memory address
1299         instead of the peephole pass passing the addis and offset
1300         separately.
1302         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
1303         fusion.
1304         (power8 fusion peephole): Drop support for doing power8 via a
1305         normal peephole that was created by the peephole2 pass.
1306         (power8 fusion peephole2): Create a new insn with the fused
1307         address, so that the fused operation is kept together after
1308         register allocation is done.
1309         (fusion_gpr_load_<mode>): Likewise.
1311 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1313         PR lto/63286
1314         * tree.c (need_assembler_name_p): Do not mangle variadic types.
1316 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
1318         * recog.c (scratch_operand): Do not simply allow all hard registers:
1319         only allow those that are allocatable.
1321 2014-09-19  Felix Yang  <felix.yang@huawei.com>
1323         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
1324         comments and fix spacing to conform to coding style.
1326 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1328         * genrecog.c (validate_pattern): Allow empty constraints in
1329         a match_scratch.
1331 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
1333         * dwarf2out.c (decl_ultimate_origin): Update comment.
1334         * tree.c (block_ultimate_origin): Same.
1336 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1338         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1339         Update GCC version name to GCC 5.
1340         (rs6000_function_arg_boundary): Likewise.
1341         (rs6000_function_arg): Likewise.
1343 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1345         * config/sh/sh.md: Fix use of constraints in define_split.
1347 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
1349         PR ipa/61998
1350         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
1352 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1354         * doc/md.texi (Modifiers): Consistently use "read/write"
1355         nomenclature rather than "input/output".
1356         * genrecog.c (constraints_supported_in_insn_p): New.
1357         (validate_pattern): If needed, also check constraints on
1358         MATCH_SCRATCH operands.
1359         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
1360         operands with no '=' or '+' modifier.
1362 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1364         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
1365         scratch register as written.
1367 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1369         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
1370         assignment.
1372 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1374         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
1375         expanders.
1377 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1379         PR target/62662
1380         * config/s390/s390.c (s390_emit_epilogue): When doing the return
1381         address load optimization force s390_optimize_prologue to leave it
1382         that way.  Only do the optimization if we already decided to push
1383         r14 into a stack slot.
1385 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
1387         * asan.c (build_check_stmt): Alignment arg was added.
1388         (asan_expand_check_ifn): Optimization for alignment >= 8.
1390 2014-09-19  Olivier Hainque  <hainque@adacore.com>
1392         * config/i386/vxworksae.h: Remove obsolete definitions.
1393         (STACK_CHECK_PROTECT): Define.
1394         * config/i386/vx-common.h: Remove.  Merge contents within
1395         config/i386/vxworks.h.
1396         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
1397         i386/vx-common.h.
1399 2014-09-19  Olivier Hainque  <hainque@adacore.com>
1401         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
1402         * config/rs6000/t-vxworksmils: New file.
1403         * config/rs6000/vxworksmils.h: New file.
1405 2014-09-19  Olivier Hainque  <hainque@adacore.com>
1407         * varasm.c (default_section_type_flags): Flag .persistent.bss
1408         sections as SECTION_BSS.
1410 2014-09-19  Nick Clifton  <nickc@redhat.com>
1412         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
1413         pop'ed registers so that DCE does not eliminate them.
1415 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
1417         PR lto/63298
1418         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
1420 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
1422         * system.h (LIBGCC2_TF_CEXT): Poison.
1423         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
1424         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
1425         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
1426         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
1427         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
1428         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
1429         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
1430         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
1431         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
1433 2014-09-19  Kito Cheng  <kito@0xlab.org>
1435         * except.h: Fix header guard.
1436         * addresses.h: Add missing header guard.
1437         * cfghooks.h: Likewise.
1438         * collect-utils.h: Likewise.
1439         * collect2-aix.h: Likewise.
1440         * conditions.h: Likewise.
1441         * cselib.h: Likewise.
1442         * dwarf2asm.h: Likewise.
1443         * graphds.h: Likewise.
1444         * graphite-scop-detection.h: Likewise.
1445         * gsyms.h: Likewise.
1446         * hw-doloop.h: Likewise.
1447         * incpath.h: Likewise.
1448         * ipa-inline.h: Likewise.
1449         * ipa-ref.h: Likewise.
1450         * ira-int.h: Likewise.
1451         * ira.h: Likewise.
1452         * lra-int.h: Likewise.
1453         * lra.h: Likewise.
1454         * lto-section-names.h: Likewise.
1455         * read-md.h: Likewise.
1456         * reload.h: Likewise.
1457         * rtl-error.h: Likewise.
1458         * sdbout.h: Likewise.
1459         * targhooks.h: Likewise.
1460         * tree-affine.h: Likewise.
1461         * xcoff.h: Likewise.
1462         * xcoffout.h: Likewise.
1464 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1466         PR debug/63285
1467         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
1468         if advance != 0.
1470 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1472         PR target/61360
1473         * lra.c (lra): Call recog_init.
1475 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
1477         PR c++/62017
1478         * asan.c (transform_statements): Don't instrument clobber statements.
1480 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1482         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
1483         to neon_load1_1reg<q>.
1485 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
1487         PR debug/63284
1488         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
1489         if there are only debug stmts after the noreturn call, instead
1490         remove the debug stmts.
1492 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
1494         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
1495         (odr_types_equivalent_p): Use pair hash.
1496         (odr_subtypes_equivalent_p): Likewise, do structural compare
1497         on ODR types that may be mismatched.
1498         (warn_odr): Support warning when only one field is given.
1499         (odr_types_equivalent_p): Strenghten comparsions made;
1500         support VOIDtype.
1501         (add_type_duplicate): Update VISITED hash set.
1503 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1505         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
1506         Enable selection of 'posix' or no thread model.
1508 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
1510         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1511         when architecture is older than ARMv7.
1513 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
1515         PR target/61853
1516         * config/pa/pa.c (pa_function_value): Directly handle aggregates
1517         that fit exactly in a word or double word.
1519 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
1521         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
1522         zmm/k regs support.
1524 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1525             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1526             Anna Tikhonova  <anna.tikhonova@intel.com>
1527             Ilya Tocar  <ilya.tocar@intel.com>
1528             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1529             Ilya Verbin  <ilya.verbin@intel.com>
1530             Kirill Yukhin  <kirill.yukhin@intel.com>
1531             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1533         * config/i386/i386.c
1534         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
1535         * config/i386/sse.md
1536         (define_mode_iterator VI48F_256): New.
1537         (define_mode_attr extract_type): Ditto.
1538         (define_mode_attr extract_suf): Ditto.
1539         (define_mode_iterator AVX512_VEC): Ditto.
1540         (define_expand
1541         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
1542         AVX512_VEC.
1543         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
1544         (define_insn
1545         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
1546         Ditto.
1547         (define_mode_attr extract_type_2): Ditto.
1548         (define_mode_attr extract_suf_2): Ditto.
1549         (define_mode_iterator AVX512_VEC_2): Ditto.
1550         (define_expand
1551         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
1552         AVX512_VEC_2 mode iterator.
1553         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1554         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
1555         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1556         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1557         (define_split for V16FI mode): Ditto.
1558         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1559         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1560         (define_split for VI8F_256 mode): Ditto.
1561         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1562         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1563         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1564         (define_split for VI4F_256 mode): Ditto.
1565         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
1566         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1567         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1568         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
1569         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
1570         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
1571         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
1572         Update `type' attribute, remove explicit `memory' attribute calculation.
1574 2014-09-16  Kito Cheng  <kito@0xlab.org>
1576         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
1577         ira_spilled_reg_stack_slots_num if using lra.
1578         (do_reload): Remove release ira_spilled_reg_stack_slots part.
1579         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
1580         make sure not using lra.
1581         (ira_reuse_stack_slot): Likewise.
1582         (ira_mark_new_stack_slot): Likewise.
1584 2014-09-15  Andi Kleen  <ak@linux.intel.com>
1586         * function.c (allocate_struct_function): Force
1587         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
1588         profiling is disabled.
1590 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
1591     
1592         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
1593         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
1594         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
1595         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
1596         macro with statically checked member functions.
1597         * rtl.h (rtx_insn::deleted): New method.
1598         (rtx_insn::set_deleted): Likewise.
1599         (rtx_insn::set_undeleted): Likewise.
1600         (INSN_DELETED_P): Remove.
1602 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
1604         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
1605         result of emit_jump_insn_before to a new variable.
1606         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
1607         (mark_jump_label_1): Likewise.
1608         (mark_jump_label_asm): Likewise.
1609         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
1610         * rtl.h (mark_jump_label): Adjust.
1612 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
1614         * Makefile.in (dg_target_exps): Remove.
1615         (check_gcc_parallelize): Change to just an upper bound number.
1616         (check-%-subtargets): Always print the non-parallelized goals.
1617         (check_p_vars, check_p_comma, check_p_subwork): Remove.
1618         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
1619         check_p_numbers3, check_p_numbers4, check_p_numbers5,
1620         check_p_numbers6): New variables.
1621         (check_p_numbers): Set to sequence from 1 to 9999.
1622         (check_p_subdirs): Set to sequence from 1 to minimum of
1623         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
1624         or 128.
1625         (check-%, check-parallel-%): Rewritten so that for parallelized
1626         testing each job runs all the *.exp files, with
1627         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
1629 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1631         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
1632         rtx to rtx_insn *.
1633         (arc_sets_cc_p): Likewise.
1634         * config/arc/arc.c (arc_print_operand): Use methods of
1635         "final_sequence" for clarity, and to enable strengthening of
1636         locals "jump" and "delay" from rtx to rtx_insn *.
1637         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
1638         rtx_insn *; use method of rtx_sequence for typesafety.
1639         (arc_get_insn_variants): Use insn method of rtx_sequence for
1640         typesafety.
1641         (arc_pad_return): Likewise.
1642         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
1643         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
1644         dyn_cast to rtx_sequence *, using insn method for typesafety.
1645         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
1646         rtx_sequence * and use insn method when invoking get_attr_length.
1647         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
1648         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
1649         rtx_sequence *, introducing a local "seq", using its insn method
1650         from typesafety and clarity.
1651         (add_sched_insns_for_speculation): Strengthen local "next" from
1652         rtx to rtx_insn *.
1653         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
1654         (predicate_insn): Likewise.
1655         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
1656         second param.
1657         * config/cris/cris.c (cris_notice_update_cc): Likewise.
1658         * config/epiphany/epiphany-protos.h
1659         (extern void epiphany_insert_mode_switch_use): Likewise for param
1660         "insn".
1661         (get_attr_sched_use_fpu): Likewise for param.
1662         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
1663         Likewise for param "insn".
1664         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
1665         param "insn" of "target_insert_mode_switch_use" callback.
1666         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
1667         (frv_issues_to_branch_unit_p): Likewise.
1668         (frv_pack_insn_p): Likewise.
1669         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
1670         const rtx * (i.e. mutable rtx_def * const *) to
1671         rtx_insn * const *.
1672         * config/i386/i386-protos.h (standard_sse_constant_opcode):
1673         Strengthen first param from rtx to rtx_insn *.
1674         (output_fix_trunc): Likewise.
1675         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
1676         (output_fix_trunc): Likewise.
1677         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
1678         local "insn".
1679         (min_insn_size): Likewise for param "insn".
1680         (get_mem_group): Likewise.
1681         (is_cmp): Likewise.
1682         (get_insn_path): Likewise.
1683         (get_insn_group): Likewise.
1684         (count_num_restricted): Likewise.
1685         (fits_dispatch_window): Likewise.
1686         (add_insn_window): Likewise.
1687         (add_to_dispatch_window): Likewise.
1688         (debug_insn_dispatch_info_file): Likewise.
1689         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
1690         first param.
1691         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
1692         "cmp" and local "prev".
1693         (m32c_output_compare): Likewise for param "insn".
1694         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
1695         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
1696         (define_predicate "large_insn_p"): Likewise.
1697         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
1698         param from rtx to rtx_insn *.
1699         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
1700         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
1701         (m68k_sched_attr_size): Likewise.
1702         (sched_get_opxy_mem_type): Likewise for param "insn".
1703         (m68k_sched_attr_op_mem): Likewise.
1704         (sched_mem_operand_p): Likewise.
1705         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
1706         * config/mep/mep.c (mep_multi_slot): Likewise.
1707         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
1708         first param.
1709         (mips_sync_loop_insns): Likewise.
1710         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
1711         method of "final_sequence" for typesafety.
1712         (mips_process_sync_loop): Strengthen param "insn" from rtx to
1713         rtx_insn *.
1714         (mips_output_sync_loop): Likewise.
1715         (mips_sync_loop_insns): Likewise.
1716         (mips_74k_agen_init): Likewise.
1717         (mips_sched_init): Use NULL rather than NULL_RTX when working with
1718         insns.
1719         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
1720         Strengthen param "insn" from rtx to rtx_insn *.
1721         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
1722         local "insn".
1723         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
1724         param.
1725         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
1726         "insn".  Use method of rtx_sequence for typesafety.
1727         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
1728         rtx_insn *.
1729         (branch_needs_nop_p): Likewise.
1730         (use_skip_p): Likewise.
1731         (pa_insn_refs_are_delayed): Likewise.
1732         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
1733         for locals "insn", "ninsn".
1734         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
1735         "insn".
1736         (is_cracked_insn): Likewise.
1737         (is_branch_slot_insn): Likewise.
1738         (is_nonpipeline_insn): Likewise.
1739         (insn_terminates_group_p): Likewise.
1740         (insn_must_be_first_in_group): Likewise.
1741         (insn_must_be_last_in_group): Likewise.
1742         (force_new_group): Likewise for param "next_insn".
1743         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
1744         "insn".
1745         (s390_sched_score): Likewise.
1746         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
1747         (rtx sfunc_uses_reg): Likewise for sole param.
1748         * config/sh/sh.c (sh_print_operand): Use insn method of
1749         final_sequence for typesafety.
1750         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
1751         Use insn method of final_sequence for typesafety.
1752         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
1753         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
1754         for param.
1755         (eligible_for_return_delay): Likewise.
1756         (eligible_for_sibcall_delay): Likewise.
1757         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
1758         (eligible_for_return_delay): Likewise.
1759         (eligible_for_sibcall_delay): Likewise.
1760         * config/stormy16/stormy16-protos.h
1761         (xstormy16_output_cbranch_hi): Likewise for final param.
1762         (xstormy16_output_cbranch_si): Likewise.
1763         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
1764         (xstormy16_output_cbranch_si): Likewise.
1765         * config/v850/v850-protos.h (notice_update_cc): Likewise.
1766         * config/v850/v850.c (notice_update_cc): Likewise.
1768         * final.c (get_attr_length_1): Strengthen param "insn" and param
1769         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
1770         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
1771         (get_attr_min_length): Likewise.
1772         (shorten_branches): Likewise for signature of locals "length_fun"
1773         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
1774         from a checked cast and use its methods for clarity and to enable
1775         strengthening local "inner_insn" from rtx to rtx_insn *.
1776         * genattr.c (gen_attr): When writing out the prototypes of the
1777         various generated "get_attr_" functions, strengthen the params of
1778         the non-const functions from rtx to rtx_insn *.
1779         Similarly, strengthen the params of insn_default_length,
1780         insn_min_length, insn_variable_length_p, insn_current_length.
1781         (main): Similarly, strengthen the param of num_delay_slots,
1782         internal_dfa_insn_code, insn_default_latency, bypass_p,
1783         insn_latency, min_issue_delay, print_reservation,
1784         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
1785         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
1786         to hook_int_rtx_insn_unreachable.
1787         * genattrtab.c (write_attr_get): When writing out the generated
1788         "get_attr_" functions, strengthen the param "insn" from rtx to
1789         rtx_insn *, eliminating a checked cast.
1790         (make_automaton_attrs): When writing out prototypes of
1791         "internal_dfa_insn_code_", "insn_default_latency_" functions
1792         and the "internal_dfa_insn_code" and "insn_default_latency"
1793         callbacks, strengthen their params from rtx to rtx_insn *
1794         * genautomata.c (output_internal_insn_code_evaluation): When
1795         writing out code, add a checked cast from rtx to rtx_insn * when
1796         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
1797         (output_dfa_insn_code_func): Strengthen param of generated
1798         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
1799         (output_trans_func): Likewise for generated function
1800         "state_transition".
1801         (output_internal_insn_latency_func): When writing out generated
1802         function "internal_insn_latency", rename params from "insn" and
1803         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
1804         locals "insn" and "insn2" as rtx_insn * with checked casts once
1805         we've proven that we're not dealing with const0_rtx.
1806         (output_insn_latency_func):  Strengthen param of generated
1807         function "insn_latency" from rtx to rtx_insn *.
1808         (output_print_reservation_func): Likewise for generated function
1809         "print_reservation".
1810         (output_insn_has_dfa_reservation_p): Likewise for generated
1811         function "insn_has_dfa_reservation_p".
1812         * hooks.c (hook_int_rtx_unreachable): Rename to...
1813         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
1814         from rtx to rtx_insn *.
1815         * hooks.h (hook_int_rtx_unreachable): Likewise.
1816         (extern int hook_int_rtx_insn_unreachable): Likewise.
1817         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
1818         (get_attr_min_length): Likewise.
1819         * recog.c (get_enabled_alternatives): Likewise.
1820         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
1821         * reorg.c (find_end_label): Introduce local rtx "pat" and
1822         strengthen local "insn" from rtx to rtx_insn *.
1823         (redundant_insn): Use insn method of "seq" rather than element for
1824         typesafety; strengthen local "control" from rtx to rtx_insn *.
1825         * resource.c (mark_referenced_resources): Add checked cast to
1826         rtx_insn * within INSN/JUMP_INSN case.
1827         (mark_set_resources): Likewise.
1828         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
1829         rtx to rtx_insn *.
1831 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1833         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
1834         param "label" from rtx to rtx_insn *.
1835         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
1836         and local "op".
1837         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
1838         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
1839         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1840         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1841         * final.c (default_label_align_after_barrier_max_skip): Strengthen
1842         param from rtx to rtx_insn *.
1843         (default_loop_align_max_skip): Likewise.
1844         (default_label_align_max_skip): Likewise.
1845         (default_jump_align_max_skip): Likewise.
1846         * target.def (label_align_after_barrier_max_skip): Likewise.
1847         (loop_align_max_skip): Likewise.
1848         (label_align_max_skip): Likewise.
1849         (jump_align_max_skip): Likewise.
1850         * targhooks.h (default_label_align_after_barrier_max_skip):
1851         Likewise.
1852         (default_loop_align_max_skip): Likewise.
1853         (default_label_align_max_skip): Likewise.
1854         (default_jump_align_max_skip): Likewise.
1856 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1858         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
1859         from const_rtx to const rtx_insn *.  Update union members from rtx
1860         to rtx_insn *.
1861         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
1862         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
1863         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
1864         strengthen both params from const_rtx to const rtx_insn *.
1865         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
1866         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
1867         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
1868         rtx_insn *.
1869         * target.def (can_follow_jump): Strengthen both params from
1870         const_rtx to const rtx_insn *, and update default implementation
1871         from hook_bool_const_rtx_const_rtx_true to
1872         hook_bool_const_rtx_insn_const_rtx_insn_true.
1874 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1876         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
1877         "insn" from rtx to rtx_insn *.
1878         * sched-int.h (deps_start_bb): Likewise for 2nd param.
1880 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1881             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1882             Anna Tikhonova  <anna.tikhonova@intel.com>
1883             Ilya Tocar  <ilya.tocar@intel.com>
1884             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1885             Ilya Verbin  <ilya.verbin@intel.com>
1886             Kirill Yukhin  <kirill.yukhin@intel.com>
1887             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1889         * config/i386/sse.md
1890         (define_insn "vcvtph2ps<mask_name>"): Add masking.
1891         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
1892         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
1893         (define_expand "vcvtps2ph_mask"): New.
1894         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
1895         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
1896         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
1898 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1899             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1900             Anna Tikhonova  <anna.tikhonova@intel.com>
1901             Ilya Tocar  <ilya.tocar@intel.com>
1902             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1903             Ilya Verbin  <ilya.verbin@intel.com>
1904             Kirill Yukhin  <kirill.yukhin@intel.com>
1905             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1907         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
1908         New.
1909         (define_mode_iterator VI24_AVX512BW_1): Ditto.
1910         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
1911         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
1912         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
1913         also for TARGET_AVX512VL.
1914         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
1916 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
1918         * doc/install.texi (Options specification): add 
1919         --disable-libsanitizer item.
1921 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
1922             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1924         PR target/61407
1925         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
1926         and above.
1927         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
1928         kernel version check to avoid incrementing it after every major OS X
1929         release.
1930         (darwin_default_min_version): Avoid static memory buffer.
1932 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
1934         * tree.c (need_assembler_name_p): Store C++ type mangling only
1935         for aggregates.
1937 2014-09-13  Marek Polacek  <polacek@redhat.com>
1939         * tree.c (protected_set_expr_location): Don't check whether T is
1940         non-null here.
1942 2014-09-12  DJ Delorie  <dj@redhat.com>
1944         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
1945         (extend_and_shift1_hipsi2): Likewise.
1946         (extend_and_shift2_hipsi2): Likewise.
1948 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
1950         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
1951         with NULL when dealing with an insn.
1952         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
1953         from rtx to rtx_insn *.
1954         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
1955         const_rtx to const rtx_insn *.
1956         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
1958 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
1960         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
1961         assert.
1963 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
1965         * target.def (libgcc_floating_mode_supported_p): New hook.
1966         * targhooks.c (default_libgcc_floating_mode_supported_p): New
1967         function.
1968         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
1969         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
1970         (LIBGCC2_HAS_TF_MODE): Remove.
1971         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
1972         * doc/tm.texi: Regenerate.
1973         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
1974         machine mode.
1975         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
1976         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
1977         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
1978         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
1979         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1980         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
1981         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
1982         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
1983         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
1984         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
1985         function.
1986         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
1987         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1988         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1989         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1990         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1991         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1992         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1993         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
1994         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
1995         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
1996         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1997         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
1998         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
1999         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
2000         Remove.
2001         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
2002         New macro.
2003         (ia64_libgcc_floating_mode_supported_p): New function.
2004         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
2005         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
2006         (IA64_NO_LIBGCC_TFMODE): Define.
2007         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
2008         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
2009         macro.
2010         (pdp11_scalar_mode_supported_p): New function.
2011         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
2012         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
2014 2014-09-12  Richard Biener  <rguenther@suse.de>
2016         PR middle-end/63237
2017         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
2019 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
2021         * tree.c (integer_each_onep): New function.
2022         * tree.h (integer_each_onep): Declare it.
2023         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
2024         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
2025         (X & 1) == 0 for vector and complex.
2027 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2029         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
2030         for A57.
2031         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
2032         cost to spilling from integer to FP registers.
2034 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2036         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
2037         move handling.
2038         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
2039         are now handled correctly.
2041 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2043         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
2044         handling of CALLER_SAVE_REGS and POINTER_REGS.
2046 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2048         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
2049         the number of hard registers.
2051 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2052             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2053             Anna Tikhonova  <anna.tikhonova@intel.com>
2054             Ilya Tocar  <ilya.tocar@intel.com>
2055             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2056             Ilya Verbin  <ilya.verbin@intel.com>
2057             Kirill Yukhin  <kirill.yukhin@intel.com>
2058             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2060         * config/i386/sse.md
2061         (define_mode_iterator VI48_AVX512VL): New.
2062         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
2063         "avx512f_vternlog<mode>_maskz" and update mode iterator.
2064         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
2065         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
2066         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
2067         "avx512f_vternlog<mode>_mask" and update mode iterator.
2068         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
2069         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
2070         iterator.
2071         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
2072         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
2073         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
2074         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
2075         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
2076         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
2078 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2079             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2080             Anna Tikhonova  <anna.tikhonova@intel.com>
2081             Ilya Tocar  <ilya.tocar@intel.com>
2082             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2083             Ilya Verbin  <ilya.verbin@intel.com>
2084             Kirill Yukhin  <kirill.yukhin@intel.com>
2085             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2087         * config/i386/sse.md (VI128_256): Delete.
2088         (define_mode_iterator VI124_256): New.
2089         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
2090         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
2091         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
2092         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
2093         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
2094         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
2095         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2096         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
2097         iterator.
2098         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
2099         in presence of AVX-512.
2101 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2102             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2103             Anna Tikhonova  <anna.tikhonova@intel.com>
2104             Ilya Tocar  <ilya.tocar@intel.com>
2105             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2106             Ilya Verbin  <ilya.verbin@intel.com>
2107             Kirill Yukhin  <kirill.yukhin@intel.com>
2108             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2110         * config/i386/sse.md
2111         (define_expand "<avx512>_gathersi<mode>"): Rename from
2112         "avx512f_gathersi<mode>".
2113         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
2114         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
2115         (define_expand "<avx512>_gatherdi<mode>"): Rename from
2116         "avx512f_gatherdi<mode>".
2117         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
2118         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
2119         wide versions.
2120         (define_expand "<avx512>_scattersi<mode>"): Rename from
2121         "avx512f_scattersi<mode>".
2122         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
2123         (define_expand "<avx512>_scatterdi<mode>"): Rename from
2124         "avx512f_scatterdi<mode>".
2125         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
2127 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
2129         * ira.h (ira_finish_once): Delete.
2130         * ira-int.h (target_ira_int::~target_ira_int): Declare.
2131         (target_ira_int::free_ira_costs): Likewise.
2132         (target_ira_int::free_register_move_costs): Likewise.
2133         (ira_finish_costs_once): Delete.
2134         * ira.c (free_register_move_costs): Replace with...
2135         (target_ira_int::free_register_move_costs): ...this new function.
2136         (target_ira_int::~target_ira_int): Define.
2137         (ira_init): Call free_register_move_costs as a member function rather
2138         than a global function.
2139         (ira_finish_once): Delete.
2140         * ira-costs.c (free_ira_costs): Replace with...
2141         (target_ira_int::free_ira_costs): ...this new function.
2142         (ira_init_costs): Call free_ira_costs as a member function rather
2143         than a global function.
2144         (ira_finish_costs_once): Delete.
2145         * target-globals.c (target_globals::~target_globals): Call the
2146         target_ira_int destructor.
2147         * toplev.c: Include lra.h.
2148         (finalize): Call lra_finish_once rather than ira_finish_once.
2150 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
2152         * common.opt (flto-odr-type-merging): New flag.
2153         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
2154         (types_same_for_odr): Likewise.
2155         (odr_subtypes_equivalent_p): Likewise.
2156         (add_type_duplicate): Do not walk type variants.
2157         (register_odr_type): New function.
2158         * ipa-utils.h (register_odr_type): Declare.
2159         (odr_type_p): New function.
2160         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
2161         TYPE_DECLs
2162         * doc/invoke.texi (-flto-odr-type-merging): Document.
2163         * tree.c (need_assembler_name_p): Compute ODR names when asked
2164         for it.
2165         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
2167 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2169         PR target/63228
2170         * config/i386/i386.c (ix86_option_override_internal): Also turn
2171         off OPTION_MASK_ABI_X32 for -m16.
2173 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2175         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
2176         GPR instead of P.
2178 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
2180         PR target/58757
2181         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2182         Directly forward to __*_DENORM_MIN__.
2184 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
2186         * rtl.h (LABEL_REF_LABEL): New macro.
2188         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
2189         of XEXP (, 0), where we know that we have a LABEL_REF.
2190         * cfgbuild.c (make_edges): Likewise.
2191         (purge_dead_tablejump_edges): Likewise.
2192         * cfgexpand.c (convert_debug_memory_address): Likewise.
2193         * cfgrtl.c (patch_jump_insn): Likewise.
2194         * combine.c (distribute_notes): Likewise.
2195         * cse.c (hash_rtx_cb): Likewise.
2196         (exp_equiv_p): Likewise.
2197         (fold_rtx): Likewise.
2198         (check_for_label_ref): Likewise.
2199         * cselib.c (rtx_equal_for_cselib_1): Likewise.
2200         (cselib_hash_rtx): Likewise.
2201         * emit-rtl.c (mark_label_nuses): Likewise.
2202         * explow.c (convert_memory_address_addr_space): Likewise.
2203         * final.c (output_asm_label): Likewise.
2204         (output_addr_const): Likewise.
2205         * gcse.c (add_label_notes): Likewise.
2206         * genconfig.c (walk_insn_part): Likewise.
2207         * genrecog.c (validate_pattern): Likewise.
2208         * ifcvt.c (cond_exec_get_condition): Likewise.
2209         (noce_emit_store_flag): Likewise.
2210         (noce_get_alt_condition): Likewise.
2211         (noce_get_condition): Likewise.
2212         * jump.c (maybe_propagate_label_ref): Likewise.
2213         (mark_jump_label_1): Likewise.
2214         (redirect_exp_1): Likewise.
2215         (rtx_renumbered_equal_p): Likewise.
2216         * lra-constraints.c (operands_match_p): Likewise.
2217         * reload.c (operands_match_p): Likewise.
2218         (find_reloads): Likewise.
2219         * reload1.c (set_label_offsets): Likewise.
2220         * reorg.c (get_branch_condition): Likewise.
2221         * rtl.c (rtx_equal_p_cb): Likewise.
2222         (rtx_equal_p): Likewise.
2223         * rtlanal.c (reg_mentioned_p): Likewise.
2224         (rtx_referenced_p): Likewise.
2225         (get_condition): Likewise.
2226         * sched-vis.c (print_value): Likewise.
2227         * varasm.c (const_hash_1): Likewise.
2228         (compare_constant): Likewise.
2229         (const_rtx_hash_1): Likewise.
2230         (output_constant_pool_1): Likewise.
2232 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2234         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
2235         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
2236         instead of minus.
2237         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
2238         cr6_test_for_lt_reverse): Ditto.
2240 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
2242         PR c++/61489
2243         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2245 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
2247         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2248         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2249         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2250         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2251         Delete.
2253         (aarch64_fold_builtin): Remove all reinterpret cases.
2255         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2257         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2259         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2260         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2261         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
2262         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
2263         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
2264         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
2265         aarch64_reinterpretv2df<mode>): Delete.
2267         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
2269         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
2270         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
2271         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
2272         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
2273         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
2274         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
2275         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
2276         vreinterpret_u32_f64): Use cast.
2278         * config/aarch64/iterators.md (VD_RE): Delete.
2280 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
2282         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
2283         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
2284         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
2285         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
2286         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
2287         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
2288         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
2289         Replace inline assembler with __aarch64_vset_lane_any.
2291 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
2293         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
2294         types.
2295         (vmull_high_lane_s32): Likewise.
2296         (vmull_high_lane_u16): Likewise.
2297         (vmull_high_lane_u32): Likewise.
2299 2014-09-11  Jason Merrill  <jason@redhat.com>
2301         PR c++/58678
2302         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
2304 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
2306         PR target/63223
2307         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
2308         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
2309         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
2311 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2312             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2313             Anna Tikhonova  <anna.tikhonova@intel.com>
2314             Ilya Tocar  <ilya.tocar@intel.com>
2315             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2316             Ilya Verbin  <ilya.verbin@intel.com>
2317             Kirill Yukhin  <kirill.yukhin@intel.com>
2318             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2320         * config/i386/sse.md
2321         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
2322         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
2323         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
2324         New.
2325         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
2326         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
2327         iterator.
2328         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2329         New.
2330         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
2331         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
2332         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
2333         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
2334         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
2335         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
2336         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
2337         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
2338         iterator.
2339         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2340         New.
2341         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
2342         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
2343         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
2345 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2347         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
2348         to access removed nodes.
2350 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2352         PR tree-optimization/63186
2353         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
2354         (mark_nonssa_use): Likewise.
2355         (verify_non_ssa_vars): Verify all header blocks for label
2356         definitions.
2358 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2359             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2360             Anna Tikhonova  <anna.tikhonova@intel.com>
2361             Ilya Tocar  <ilya.tocar@intel.com>
2362             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2363             Ilya Verbin  <ilya.verbin@intel.com>
2364             Kirill Yukhin  <kirill.yukhin@intel.com>
2365             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2367         * config/i386/sse.md
2368         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
2369         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
2370         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
2371         "<avx2_avx512f>_permvar<mode><mask_name>".
2372         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
2373         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
2374         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
2375         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
2376         Ditto.
2377         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
2378         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2379         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
2380         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2382 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2384         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
2385         V2DF, V4SF, DF, and DI modes.
2386         (vsx_fmav2df2): Likewise.
2387         (vsx_float_fix_<mode>2): Likewise.
2388         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
2390 2014-09-10  Xinliang David Li  <davidxl@google.com>
2392         PR target/63209
2393         * config/arm/arm.md (movcond_addsi): Handle case where source
2394         and target operands are the same.
2396 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
2398         * final.c (this_is_asm_operands): Strengthen this variable from
2399         rtx to const rtx_insn *.
2400         * output.h (this_is_asm_operands): Likewise.
2401         * rtl-error.c (location_for_asm): Strengthen param "insn" from
2402         const_rtx to const rtx_insn *.
2403         (diagnostic_for_asm): Likewise.
2404         * rtl-error.h (error_for_asm): Likewise.
2405         (warning_for_asm): Likewise.
2407 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
2409         * genextract.c (print_header): When writing out insn_extract to
2410         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
2411         * recog.h (insn_extract): Strengthen the param from rtx to
2412         rtx_insn *.
2414 2014-09-10  Mike Stump  <mikestump@comcast.net>
2416         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
2417         8.6.1.
2419 2014-09-10  Martin Jambor  <mjambor@suse.cz>
2421         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
2422         (analyze): Do not set analyze flag if expand_thunk returns false;.
2423         (create_wrapper): Likewise.
2424         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
2426 2014-09-10  Martin Jambor  <mjambor@suse.cz>
2428         PR ipa/61654
2429         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
2430         new decl properly.  Analyze the new thunk if it is expanded.
2432 2014-09-10  Andreas Schwab  <schwab@suse.de>
2434         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
2435         [USED_FOR_TARGET]: Define.
2437 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
2439         * config/mips/mips.c (mips_secondary_reload_class): Handle
2440         regno < 0 case.
2442 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
2444         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
2445         assignment.
2447 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
2449         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
2450         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
2451         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
2452         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
2453         flag_delete_null_pointer_checks for them.
2454         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2455         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
2456         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
2457         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
2458         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
2459         stmt's iterator.
2460         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
2461         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
2462         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
2463         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
2464         * doc/invoke.texi (-fsanitize=nonnull-attribute,
2465         -fsanitize=returns-nonnull-attribute): Document.
2467         * ubsan.h (struct ubsan_mismatch_data): Removed.
2468         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2469         * ubsan.c (ubsan_source_location): For unknown locations,
2470         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
2471         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2472         Allow more than one location and arbitrary extra arguments passed
2473         in ... instead of through MISMATCH pointer.
2474         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
2475         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
2476         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2477         callers.
2479 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2480             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2481             Anna Tikhonova  <anna.tikhonova@intel.com>
2482             Ilya Tocar  <ilya.tocar@intel.com>
2483             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2484             Ilya Verbin  <ilya.verbin@intel.com>
2485             Kirill Yukhin  <kirill.yukhin@intel.com>
2486             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2488         * config/i386/sse.md
2489         (define_mode_iterator VI48F): New.
2490         (define_insn "<avx512>_compress<mode>_mask"): Rename from
2491         "avx512f_compress<mode>_mask" and update mode iterator.
2492         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
2493         "avx512f_compressstore<mode>_mask" and update mode iterator.
2494         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
2495         "avx512f_expand<mode>_maskz" and update mode iterator.
2496         (define_insn "<avx512>_expand<mode>_mask"): Rename from
2497         "avx512f_expand<mode>_mask" and update mode iterator.
2499 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2500             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2501             Anna Tikhonova  <anna.tikhonova@intel.com>
2502             Ilya Tocar  <ilya.tocar@intel.com>
2503             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2504             Ilya Verbin  <ilya.verbin@intel.com>
2505             Kirill Yukhin  <kirill.yukhin@intel.com>
2506             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2508         * config/i386/i386.c
2509         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
2510         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
2511         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
2512         avx512dq_rangepv4sf_mask.
2513         * config/i386/sse.md
2514         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
2515         UNSPEC_RANGE.
2516         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
2517         (define_insn "reduces<mode>"): Ditto.
2518         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2519         Ditto.
2520         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
2521         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
2522         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
2524 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2525             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2526             Anna Tikhonova  <anna.tikhonova@intel.com>
2527             Ilya Tocar  <ilya.tocar@intel.com>
2528             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2529             Ilya Verbin  <ilya.verbin@intel.com>
2530             Kirill Yukhin  <kirill.yukhin@intel.com>
2531             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2533         * config/i386/i386.c
2534         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
2535         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
2536         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
2537         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
2538         avx512vl_getmantv2df_mask.
2539         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
2540         avx512f_vgetmantv4sf_round.
2541         * config/i386/sse.md
2542         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
2543         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
2544         mode iterator.
2545         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
2546         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
2547         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
2548         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
2549         iterator..
2550         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
2551         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
2552         update mode iterator.
2553         (define_expand
2554         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
2555         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
2556         mode iterator.
2557         (define_insn
2558         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
2559         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
2560         update mode iterator.
2561         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
2562         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
2563         iterator..
2564         (define_insn
2565         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
2566         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
2567         mode iterator..
2568         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
2569         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
2570         update mode iterator.
2571         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
2572         "avx512f_getmant<mode><round_saeonly_name>".
2574 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2576         PR ipa/63166
2577         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
2579 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2580             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2581             Anna Tikhonova  <anna.tikhonova@intel.com>
2582             Ilya Tocar  <ilya.tocar@intel.com>
2583             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2584             Ilya Verbin  <ilya.verbin@intel.com>
2585             Kirill Yukhin  <kirill.yukhin@intel.com>
2586             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2588         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
2589         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
2590         (define_mode_iterator FMAMODE_AVX512): New.
2591         (define_mode_iterator FMAMODE): Remove conditions.
2592         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
2593         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
2594         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
2595         mode iterator.
2596         (define_mode_iterator FMAMODE_NOVF512): Remove.
2597         (define_insn "*fma_fmadd_<mode>"): Rename from
2598         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
2599         FMAMODE mode iterator.
2600         (define_mode_iterator VF_SF_AVX512VL): New.
2601         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
2602         Use VF_SF_AVX512VL mode iterator.
2603         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
2604         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2605         iterator.
2606         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
2607         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2608         iterator.
2609         (define_insn "*fma_fmsub_<mode>"): Rename from
2610         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
2611         FMAMODE mode iterator.
2612         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
2613         Use VF_SF_AVX512VL mode iterator.
2614         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
2615         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2616         iterator.
2617         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
2618         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2619         iterator.
2620         (define_insn "*fma_fnmadd_<mode>"): Rename from
2621         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
2622         use FMAMODE mode iterator.
2623         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
2624         Use VF_SF_AVX512VL mode iterator.
2625         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
2626         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2627         iterator.
2628         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
2629         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2630         iterator.
2631         (define_insn "*fma_fnmsub_<mode>"): Rename from
2632         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
2633         FMAMODE mode iterator.
2634         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
2635         Use VF_SF_AVX512VL mode iterator.
2636         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
2637         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2638         iterator.
2639         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
2640         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2641         iterator.
2642         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
2643         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
2644         use VF_AVX512VL mode iterator.
2645         (define_insn "*fma_fmaddsub_<mode>"): Rename from
2646         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
2647         remove subst usage.
2648         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
2649         Use VF_SF_AVX512VL mode iterator.
2650         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
2651         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2652         iterator.
2653         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
2654         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2655         iterator.
2656         (define_insn "*fma_fmsubadd_<mode>"): Rename from
2657         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
2658         remove usage of subst.
2659         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
2660         Use VF_SF_AVX512VL mode iterator.
2661         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
2662         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2663         iterator.
2664         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
2665         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2666         iterator.
2668 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
2670         Revert r213751:
2671         * calls.c (precompute_arguments): Check
2672          promoted_for_signed_and_unsigned_p and set the promoted mode.
2673         (promoted_for_signed_and_unsigned_p): New function.
2674         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2675         and set the promoted mode.
2676         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2677         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2678         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2680 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2682         * opth-gen.awk: Generate mapping from cpp message reasons to the
2683         options that enable them.
2684         * doc/options.texi (CppReason): Document.
2686 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2688         * doc/invoke.texi (Wnormalized=): Update.
2690 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
2692         PR target/63195
2693         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
2694         operands.  Split off the constant operand alternative to ...
2695         (*bool<mode>3_imm): New.
2697 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
2699         * rtl.h (single_set_2): Strengthen first param from const_rtx to
2700         const rtx_insn *, and move prototype to above...
2701         (single_set): ...this.  Convert this from a macro to an inline
2702         function, enforcing the requirement that the param is a const
2703         rtx_insn *.
2704         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
2706         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
2707         Strengthen both params from rtx to rtx_insn *.
2708         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2709         Likewise; introduce locals "producer_set", "consumer_set", using
2710         them in place of "producer" and "consumer" when dealing with SET
2711         rather than insn.
2712         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
2713         when invoking single_set in region guarded by INSN_P.
2714         (avr_out_bitop): Likewise.
2715         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
2716         region guarded by GET_CODE check, using methods to strengthen
2717         local "this_insn" from rtx to rtx_insn *, and for clarity.
2718         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
2719         Strengthen local "insn" from rtx to rtx_insn *.
2720         (define_insn_and_split "xload<mode>_A"): Likewise.
2721         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
2722         "insn".
2723         (find_load): Likewise for return type.
2724         (workaround_speculation): Likewise for both locals named
2725         "load_insn".
2726         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
2727         local "cc0_user".
2728         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
2729         for local "prev".
2730         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
2731         param 2.
2732         * config/h8300/h8300.c (notice_update_cc): Likewise.
2733         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
2734         "insn" and "dep_insn".
2735         (exact_store_load_dependency): Likewise for both params.
2736         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
2737         since this now clashes with inline function.  Instead, delay
2738         calling single_set until the point where its needed, and then
2739         assign the result to "compare_set" and rework the conditional that
2740         follows.
2741         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
2742         local "last" from rtx to rtx_insn *.
2743         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
2744         second param.
2745         (mips_store_data_bypass_p): Likewise for both params.
2746         * config/mips/mips.c (mips_load_store_insns): Likewise for second
2747         param.
2748         (mips_store_data_bypass_p): Likewise for both params.
2749         (mips_orphaned_high_part_p): Likewise for param "insn".
2750         * config/mn10300/mn10300.c (extract_bundle): Likewise.
2751         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
2752         Introduce local rtx "insn2_pat".
2753         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
2754         "ninsn".
2755         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
2756         Introduce local rtx "set", using it in place of "insn" for the
2757         result of single_set.  This appears to fix a bug, since the call
2758         to find_regno_note on a SET does nothing.
2759         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
2760         params from rtx to rtx_insn *.
2761         (set_to_load_agen): Likewise.
2762         * config/s390/s390.c (s390_label_align): Likewise for local
2763         "prev_insn".  Introduce new rtx locals "set" and "src", using
2764         them in place of "prev_insn" for the results of single_set
2765         and SET_SRC respectively.
2766         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
2767         Introduce new rtx local "set" using in place of "jump" for the
2768         result of single_set.  Use SET_SRC (set) rather than plain
2769         XEXP (set, 1).
2770         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
2771         rtx to rtx_insn *.
2772         (noncall_uses_reg): Likewise.
2773         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
2774         guarded by GET_CODE check, using its methods for clarity, and to
2775         enable strengthening local "this_insn" from rtx to rtx_insn *.
2776         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
2777         "insn" from rtx to rtx_insn *.
2778         (define_expand "umulhisi3"): Likewise.
2779         (define_expand "smulsi3_highpart"): Likewise.
2780         (define_expand "umulsi3_highpart"): Likewise.
2781         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2782         local "after".  Replace GET_CODE check with a dyn_cast,
2783         introducing new local rtx_sequence * "seq", using insn method for
2784         typesafety.
2786         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
2787         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
2788         place of "insn" once we're dealing with patterns rather than the
2789         input insn.
2790         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
2791         (scan_trace): Likewise for local "elt", updating lookups within
2792         sequence to use insn method rather than element method.
2793         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
2794         to rtx_insn *.
2795         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
2796         * ifcvt.c (noce_try_abs): Likewise for local "insn".
2797         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
2798         invoking single_set.
2799         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
2800         "insn" from rtx to rtx_insn *.
2801         (skip_usage_debug_insns): Likewise for return type, adding a
2802         checked cast.
2803         (check_secondary_memory_needed_p): Likewise for local "insn".
2804         (inherit_reload_reg): Likewise.
2805         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
2806         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
2807         checked casts.
2808         (store_data_bypass_p): Likewise for both params.
2809         (if_test_bypass_p): Likewise.
2810         * recog.h (store_data_bypass_p): Likewise for both params.
2811         (if_test_bypass_p): Likewise.
2812         * reload.c (find_equiv_reg): Likewise for local "where".
2813         * reorg.c (delete_jump): Likewise for param "insn".
2814         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
2815         to const rtx_insn *.
2816         * store-motion.c (replace_store_insn): Likewise for param "del".
2817         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
2818         and use its methods for clarity, and to strengthen local "del"
2819         from rtx to rtx_insn *.
2820         (build_store_vectors): Use insn method of "st" when calling
2821         replace_store_insn for typesafety and clarity.
2823 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2825         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
2826         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
2827         on how to make it legal in future.
2829 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
2831         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
2832         to rtx_insn *.
2833         (restinsn): Likewise.
2834         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2835         Likewise for param.
2836         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
2837         Likewise.
2838         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
2839         first param.
2840         (arc_hazard): Likewise for both params.
2841         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
2842         checked casts to rtx_sequence * and uses of the insn method for
2843         type-safety.
2844         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
2845         (arc_adjust_insn_length): Likewise for param "insn".
2846         (struct insn_length_parameters_s): Likewise for first param of
2847         "get_variants" callback field.
2848         (arc_get_insn_variants): Likewise for first param and local
2849         "inner".  Replace a check of GET_CODE with a dyn_cast to
2850         rtx_sequence *, using methods for type-safety and clarity.
2851         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
2852         rtx_sequence * and uses of the insn method for type-safety when
2853         invoking arc_adjust_insn_length.
2854         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
2855         for param.
2856         (arm_address_offset_is_imm): Likewise.
2857         (struct tune_params): Likewise for params 1 and 3 of the
2858         "sched_adjust_cost" callback field.
2859         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
2860         params 1 and 3 ("insn" and "dep").
2861         (xscale_sched_adjust_cost): Likewise.
2862         (fa726te_sched_adjust_cost): Likewise.
2863         (cortexa7_older_only): Likewise for param "insn".
2864         (cortexa7_younger): Likewise.
2865         (arm_attr_length_move_neon): Likewise.
2866         (arm_address_offset_is_imm): Likewise.
2867         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
2868         * config/avr/avr.c (avr_notice_update_cc): Likewise.
2869         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
2870         (workaround_speculation): Likewise for local "last_condjump".
2871         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
2872         (shadow_or_blockage_p): Likewise.
2873         (get_unit_reqs): Likewise.
2874         (get_unit_operand_masks): Likewise.
2875         (c6x_registers_update): Likewise.
2876         (returning_call_p): Likewise.
2877         (can_use_callp): Likewise.
2878         (convert_to_callp): Likewise.
2879         (find_last_same_clock): Likwise for local "t".
2880         (reorg_split_calls): Likewise for local "shadow".
2881         (hwloop_pattern_reg): Likewise for param "insn".
2882         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
2883         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
2884         (frv_extract_membar): Likewise.
2885         (frv_optimize_membar_local): Strengthen param "last_membar" from
2886         rtx * to rtx_insn **.
2887         (frv_optimize_membar_global): Strengthen param "membar" from rtx
2888         to rtx_insn *.
2889         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
2890         to rtx_insn **.
2891         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
2892         both params from rtx to rtx_insn *.
2893         (ia64_ld_address_bypass_p): Likewise.
2894         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
2895         "insn".
2896         (ia64_safe_type): Likewise.
2897         (group_barrier_needed): Likewise.
2898         (safe_group_barrier_needed): Likewise.
2899         (ia64_single_set): Likewise.
2900         (is_load_p): Likewise.
2901         (record_memory_reference): Likewise.
2902         (get_mode_no_for_insn): Likewise.
2903         (important_for_bundling_p): Likewise.
2904         (unknown_for_bundling_p): Likewise.
2905         (ia64_st_address_bypass_p): Likewise for both params.
2906         (ia64_ld_address_bypass_p): Likewise.
2907         (expand_vselect): Introduce new local rtx_insn * "insn", using it
2908         in place of rtx "x" after the emit_insn call.
2909         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
2910         Strengthen param from rtx to rtx_insn *.
2911         (ix86_agi_dependent): Likewise for both params.
2912         (ix86_attr_length_immediate_default): Likewise for param 1.
2913         (ix86_attr_length_address_default): Likewise for param.
2914         (ix86_attr_length_vex_default): Likewise for param 1.
2915         * config/i386/i386.c (ix86_attr_length_immediate_default):
2916         Likewise for param "insn".
2917         (ix86_attr_length_address_default): Likewise.
2918         (ix86_attr_length_vex_default): Likewise.
2919         (ix86_agi_dependent): Likewise for both params.
2920         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
2921         (vselect_insn): Likewise for this variable.
2922         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
2923         for param 1.
2924         (m68k_sched_attr_opy_type): Likewise.
2925         * config/m68k/m68k.c (sched_get_operand): Likewise.
2926         (sched_attr_op_type): Likewise.
2927         (m68k_sched_attr_opx_type): Likewise.
2928         (m68k_sched_attr_opy_type): Likewise.
2929         (sched_get_reg_operand): Likewise.
2930         (sched_get_mem_operand): Likewise.
2931         (m68k_sched_address_bypass_p): Likewise for both params.
2932         (sched_get_indexed_address_scale): Likewise.
2933         (m68k_sched_indexed_address_bypass_p): Likewise.
2934         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
2935         (m68k_sched_indexed_address_bypass_p): Likewise.
2936         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
2937         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
2938         removing another.
2939         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
2940         params from rtx to rtx_insn *.
2941         (mips_fmadd_bypass): Likewise.
2942         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
2943         (mips_linked_madd_p): Likewise.
2944         (mips_macc_chains_last_hilo): Likewise for this variable.
2945         (mips_macc_chains_record): Likewise for param.
2946         (vr4130_last_insn): Likewise for this variable.
2947         (vr4130_swap_insns_p): Likewise for both params.
2948         (mips_ls2_variable_issue): Likewise for param.
2949         (mips_need_noat_wrapper_p): Likewise for param "insn".
2950         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
2951         in place of "x" after the emit_insn.
2952         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
2953         params from rtx to rtx_insn *.
2954         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
2955         (pa_combine_instructions): Introduce local "par" for result of
2956         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
2957         to make_insn_raw.
2958         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
2959         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
2960         (rl78_alloc_physical_registers_op1): Likewise.
2961         (rl78_alloc_physical_registers_op2): Likewise.
2962         (rl78_alloc_physical_registers_ro1): Likewise.
2963         (rl78_alloc_physical_registers_cmp): Likewise.
2964         (rl78_alloc_physical_registers_umul): Likewise.
2965         (rl78_alloc_address_registers_macax): Likewise.
2966         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
2967         * config/s390/predicates.md (execute_operation): Likewise for
2968         local "insn".
2969         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
2970         params.
2971         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
2972         (addr_generation_dependency_p): Likewise for param "insn".
2973         (s390_agen_dep_p): Likewise for both params.
2974         (s390_fpload_toreg): Likewise for param "insn".
2975         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
2976         * config/sh/sh.c (sh_loop_align): Likewise for param and local
2977         "next".
2978         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
2979         * config/sh/sh_treg_combine.cc
2980         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
2981         and local "i".
2982         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
2983         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
2984         "and_insn", "load", "shift".
2985         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
2986         "insn".
2987         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
2988         for XEXP (note, 0) of the REG_CC_SETTER note.
2989         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
2990         rtx_insn *, eliminating a checked cast made redundant by this.
2991         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
2992         to rtx_insn *.
2993         * genattr.c (main): When writing out the prototype to
2994         const_num_delay_slots, strengthen the param from rtx to
2995         rtx_insn *.
2996         * genattrtab.c (write_const_num_delay_slots): Likewise when
2997         writing out the implementation of const_num_delay_slots.
2998         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
2999         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
3000         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
3001         favor of new rtx locals "src" and "set" and new local rtx_insn *
3002         "insn" and "seq".
3003         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
3004         to rtx_insn *.
3005         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
3006         locals "cond", "if_then_else", "set" and new rtx_insn * locals
3007         "insn" and "seq".
3008         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
3009         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
3010         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
3011         the top-level scope, replacing with new more tightly-scoped rtx
3012         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
3013         "new_insn", "copy_of_insn_b", and make local rtx "set" more
3014         tightly-scoped.
3015         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
3016         rtx_insn *.
3017         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
3018         "move_insn".
3019         (ira_setup_alts): Likewise for param "insn".
3020         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
3021         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
3022         and an rtx_insn *.
3023         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
3024         new more-tightly scoped rtx locals "add3_insn", "insn",
3025         "add2_insn" and rtx_insn * "move_insn".
3026         * postreload-gcse.c (eliminate_partially_redundant_load): Add
3027         checked cast on result of gen_move_insn when invoking
3028         extract_insn.
3029         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
3030         rtx_insn *.
3031         (verify_changes): Add a checked cast on "object" when invoking
3032         insn_invalid_p.
3033         (extract_insn_cached): Strengthen param "insn" from rtx to
3034         rtx_insn *.
3035         (extract_constrain_insn_cached): Likewise.
3036         (extract_insn): Likewise.
3037         * recog.h (insn_invalid_p): Likewise for param 1.
3038         (recog_memoized): Likewise for param.
3039         (extract_insn): Likewise.
3040         (extract_constrain_insn_cached): Likewise.
3041         (extract_insn_cached): Likewise.
3042         * reload.c (can_reload_into): Likewise for local "test_insn".
3043         * reload.h (cleanup_subreg_operands): Likewise for param.
3044         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
3045         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
3046         result of emit_insn.  Remove a checked cast made redundant by this
3047         change.
3048         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
3049         rtx to rtx_insn *.
3050         * sel-sched.c (get_reg_class): Likewise.
3052 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3053         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3055          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
3056          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
3057         Define.
3058         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
3060 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3062         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
3063         const rtx_insn *, and from rtx to rtx_insn * for the other
3064         overloaded variant.
3065         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
3066         INSN_LOCATION, since we know INSN_P holds.
3067         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
3068         (insn_file): Likewise.
3069         (insn_scope): Likewise.
3070         (insn_location): Likewise.
3072         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
3073         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
3074         for the result of gen_load_const_gp.
3075         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
3076         param from rtx to rtx_insn *.
3077         * config/rs6000/rs6000.c (output_call): Likewise.
3078         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
3079         introducing a checked cast to rtx_sequence * and use of the insn
3080         method.
3081         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
3082         from rtx to rtx_insn *.
3083         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
3084         (insn_line): Likewise.
3085         (insn_file): Likewise.
3086         (insn_location): Likewise.
3087         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
3088         from rtx to rtx_insn *.
3089         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
3090         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
3091         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
3092         via a checked cast.
3093         * reorg.c (relax_delay_slots): Strengthen locals named "after"
3094         from rtx to rtx_insn *; use methods of "pat" for type-safety.
3096 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3098         * combine.c (try_combine): Eliminate checked cast on result of
3099         gen_rtx_INSN.
3100         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
3101         autogenerated one by strengthening the return type and params 2 and 3
3102         from rtx to rtx_insn *, and by naming the params.
3103         * gengenrtl.c (special_rtx): Add INSN to those that are
3104         special-cased.
3105         * rtl.h (gen_rtx_INSN): New prototype.
3107 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3109         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
3110         than NULL_RTX.
3111         (no_equiv): Likewise.
3112         (update_equiv_regs): Likewise.
3113         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
3114         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
3115         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
3116         clarity.
3117         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
3118         from rtx to rtx_insn_list *.
3119         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
3120         rtx_insn_list * and use methods for clarity and typesafety.
3121         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
3122         "list".
3123         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
3124         redundant check on INSN_P (insns): this cannot hold, as "insns" is
3125         an INSN_LIST, not an insn.
3126         (reverse_equiv_p): Strengthen local "insns" from rtx to
3127         rtx_insn_list * and use methods for clarity and typesafety.
3128         (contains_reloaded_insn_p): Likewise for local "list".
3130 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
3132         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
3133         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
3134         (arm_builtin_vectorized_function): Likewise.
3135         * config/arm/arm_neon_builtins.def: New macro for copysignf.
3136         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
3138 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3140         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
3141         * builtins.h (default_target_builtins): Likewise.
3142         * gcse.h (default_target_gcse): Likewise.
3143         * target-globals.h (target_globals): Add a destructor.  Convert
3144         void-pointer fields back to their real type and change from
3145         GTY((atomic)) to GTY((skip)).
3146         (restore_target_globals): Remove casts accordingly.
3147         * target-globals.c (save_target_globals): Use XCNEW rather than
3148         ggc_internal_cleared_alloc to allocate non-GC structures.
3149         Use ggc_cleared_alloc to allocate the target_globals structure
3150         itself.
3151         (target_globals::~target_globals): Define.
3153 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3155         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
3156         mnemonic instead of fldmfdd.
3157         * config/arm/arm.c (vfp_output_fstmd): Rename to...
3158         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
3159         Output vpush when address register is SP.
3160         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
3161         (vfp_output_vstmd): ... This.
3162         * config/arm/vfp.md (push_multi_vfp): Update call to
3163         vfp_output_vstmd.
3165 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3167         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
3169 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3171         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
3172         (*sqrtdf2_vfp): Likewise.
3173         (*cmpsf_vfp): Likewise.
3174         (*cmpsf_trap_vfp): Likewise.
3175         (*cmpdf_vfp): Likewise.
3176         (*cmpdf_trap_vfp): Likewise.
3178 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3180         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
3181         (*truncdfsf2_vfp): Likewise.
3182         (*truncsisf2_vfp): Likewise.
3183         (*truncsidf2_vfp): Likewise.
3184         (fixuns_truncsfsi2): Likewise.
3185         (fixuns_truncdfsi2): Likewise.
3186         (*floatsisf2_vfp): Likewise.
3187         (*floatsidf2_vfp): Likewise.
3188         (floatunssisf2): Likewise.
3189         (floatunssidf2): Likewise.
3191 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3193         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
3194         (*muldf3_vfp): Likewise.
3195         (*mulsf3negsf_vfp): Likewise.
3196         (*muldf3negdf_vfp): Likewise.
3197         (*mulsf3addsf_vfp): Likewise.
3198         (*muldf3adddf_vfp): Likewise.
3199         (*mulsf3subsf_vfp): Likewise.
3200         (*muldf3subdf_vfp): Likewise.
3201         (*mulsf3negsfaddsf_vfp): Likewise.
3202         (*fmuldf3negdfadddf_vfp): Likewise.
3203         (*mulsf3negsfsubsf_vfp): Likewise.
3204         (*muldf3negdfsubdf_vfp): Likewise.
3206 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3208         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
3209         (*absdf2_vfp): Likewise.
3210         (*negsf2_vfp): Likewise.
3211         (*negdf2_vfp): Likewise.
3212         (*addsf3_vfp): Likewise.
3213         (*adddf3_vfp): Likewise.
3214         (*subsf3_vfp): Likewise.
3215         (*subdf3_vfp): Likewise.
3216         (*divsf3_vfp): Likewise.
3217         (*divdf3_vfp): Likewise.
3219 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3221         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
3222         multiple.
3223         (arm_print_operand): Don't convert real values to decimal
3224         representation in default case.
3225         (fp_immediate_constant): Delete.
3226         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
3227         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
3228         syntax.
3229         (*thumb2_movsi_vfp): Likewise.
3230         (*movdi_vfp): Likewise.
3231         (*movdi_vfp_cortexa8): Likewise.
3232         (*movhf_vfp_neon): Likewise.
3233         (*movhf_vfp): Likewise.
3234         (*movsf_vfp): Likewise.
3235         (*thumb2_movsf_vfp): Likewise.
3236         (*movdf_vfp): Likewise.
3237         (*thumb2_movdf_vfp): Likewise.
3238         (*movsfcc_vfp): Likewise.
3239         (*thumb2_movsfcc_vfp): Likewise.
3240         (*movdfcc_vfp): Likewise.
3241         (*thumb2_movdfcc_vfp): Likewise.
3243 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
3245         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3246         (-mtune): Likewise.
3247         (-mcpu): Likewise.
3249 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3251         PR target/61749
3252         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3253         Use qualifier_immediate for last operand.  Rename to...
3254         (aarch64_types_ternop_lane_qualifiers): ... This.
3255         (TYPES_QUADOP): Rename to...
3256         (TYPES_TERNOP_LANE): ... This.
3257         (aarch64_simd_expand_args): Return const0_rtx when encountering user
3258         error.  Change return of 0 to return of NULL_RTX.
3259         (aarch64_crc32_expand_builtin): Likewise.
3260         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3261         ICE when expanding unknown builtin.
3262         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
3263         TERNOP_LANE qualifiers.
3264         (sqdmlsl_lane): Likewise.
3265         (sqdmlal_laneq): Likewise.
3266         (sqdmlsl_laneq): Likewise.
3267         (sqdmlal2_lane): Likewise.
3268         (sqdmlsl2_lane): Likewise.
3269         (sqdmlal2_laneq): Likewise.
3270         (sqdmlsl2_laneq): Likewise.
3272 2014-09-09  Nick Clifton  <nickc@redhat.com>
3274         * doc/invoke.texi (Optimization Options): Add missing @gol to the
3275         end of a line.
3276         (S/390 and zSeries Options): Remove superfluous word from the
3277         description of the -mhotpatch option.
3279 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3281         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
3282         * ira.c: #include "shrink-wrap.h"
3283         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
3284         * ifcvt.c: #include "shrink-wrap.h"
3285         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
3287 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
3289         * common/config/picochip/picochip-common.c: Remove.
3290         * config.gcc: Remove support for picochip.
3291         * config/picochip/constraints.md: Remove.
3292         * config/picochip/dfa_space.md: Remove.
3293         * config/picochip/dfa_speed.md: Remove.
3294         * config/picochip/picochip-protos.h: Remove.
3295         * config/picochip/picochip.c: Remove.
3296         * config/picochip/picochip.h: Remove.
3297         * config/picochip/picochip.md: Remove.
3298         * config/picochip/picochip.opt: Remove.
3299         * config/picochip/predicates.md: Remove.
3300         * config/picochip/t-picochip: Remove.
3301         * doc/md.texi: Don't document picochi.
3303 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
3305         * basic-block.h (control_flow_insn_p): Strengthen param from
3306         const_rtx to const rtx_insn *.
3307         * cfgbuild.c (control_flow_insn_p): Likewise.
3309 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
3311         * gcse.c (modify_mem_list): Strengthen this variable from
3312         vec<rtx> * to vec<rtx_insn *> *.
3313         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
3314         vec<rtx_insn *>.
3315         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
3316         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
3317         (record_last_mem_set_info): Strengthen param "insn" from rtx to
3318         rtx_insn *.
3319         (record_last_set_info): Likewise for local "last_set_insn".
3321 2014-09-08  DJ Delorie  <dj@redhat.com>
3323         * doc/invoke.texi (MSP430 Options): Add -minrt.
3325 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3327         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
3328         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
3329         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
3330         handling SH_SPLAT.
3331         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
3332         of extracted lane.
3333         (adjust_splat): New function.
3334         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
3335         (dump_swap_insn_table): Add case for SH_SPLAT.
3337 2014-09-08  Richard Biener  <rguenther@suse.de>
3339         PR ipa/63196
3340         * tree-inline.c (copy_loops): The source loop header should
3341         always be non-NULL.
3342         (tree_function_versioning): If loops need fixup after removing
3343         unreachable blocks fix them.
3344         * omp-low.c (simd_clone_adjust): Do not add incr block to
3345         loop under construction.
3347 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3349         * config/aarch64/aarch64-builtins.c
3350         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
3352 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
3354         * config/i386/cygming.h (TF_SIZE): Remove.
3355         * config/i386/darwin.h (TF_SIZE): Remove.
3356         * config/i386/dragonfly.h (TF_SIZE): Remove.
3357         * config/i386/freebsd.h (TF_SIZE): Remove.
3358         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
3359         * config/i386/openbsdelf.h (TF_SIZE): Remove.
3360         * config/i386/sol2.h (TF_SIZE): Remove.
3361         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
3362         * config/ia64/linux.h (TF_SIZE): Remove.
3363         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
3364         * doc/tm.texi: Regenerate.
3365         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
3367 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
3369         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3370         Remove.
3371         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
3372         Remove.
3373         * doc/tm.texi: Regenerate.
3374         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3375         Poison.
3376         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
3377         * config/cris/cris.h (__make_dp): Remove.
3379 2014-09-08  Richard Biener  <rguenther@suse.de>
3381         PR bootstrap/63204
3382         * cfgloop.c (mark_loop_for_removal): Track former header
3383         unconditionally.
3384         * cfgloop.h (struct loop): Add former_header member unconditionally.
3385         * loop-init.c (fix_loop_structure): Enable bogus loop removal
3386         diagnostic unconditionally.
3388 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
3390         PR target/63190
3391         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
3392         constraint for operand0 and remove write only modifier from operand3.
3394 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
3396         PR rtl-optimization/62208
3397         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
3398         rather than const0_rtx in eq/ne-xor simplifications.
3400 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
3402         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
3403         (arc_output_mi_thunk): Likewise.
3405         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
3406         arguments to silence bogus warning.
3408 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
3410         PR middle-end/63171
3411         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
3413 2014-09-06  Tom de Vries  <tom@codesourcery.com>
3415         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
3416         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
3417         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3419 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
3421         PR target/63188
3422         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
3423         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
3425 2014-09-05  Easwaran Raman  <eraman@google.com>
3427         PR rtl-optimization/62146
3428         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
3429         hoisted instruction unconditional.
3431 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
3433         PR target/63187
3434         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
3435         Do not allow any_mask_operand for operands[2].
3436         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
3438 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3440         * config/arc/arc.c (arc_print_operand): Use insn method of
3441         final_sequence for type-safety.
3442         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
3443         "insn" from rtx to rtx_insn *.
3444         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
3445         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3446         Likewise for locals "branch", "label".
3447         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
3448         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
3449         (same_cmp_following_p): Likewise for locals "i2", "i3".
3450         * config/sh/sh_optimize_sett_clrt.cc
3451         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
3452         param "cbranch_insn".
3453         * function.c (convert_jumps_to_returns): Likewis for local "jump".
3454         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
3455         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
3456         const rtx_insn *.
3457         (condjump_p): Likewise.
3458         (condjump_in_parallel_p): Likewise.
3459         (pc_set): Likewise.
3460         (any_uncondjump_p): Likewise.
3461         (any_condjump_p): Likewise.
3462         (condjump_label): Likewise.
3463         (returnjump_p): Strengthen param "insn" from rtx to
3464         const rtx_insn *.
3465         (onlyjump_p): Strengthen param "insn" from const_rtx to
3466         const rtx_insn *.
3467         (jump_to_label_p): Likewise.
3468         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
3469         (invert_jump): Likewise.
3470         * reorg.c (simplejump_or_return_p): Add checked cast when calling
3471         simplejump_p.
3472         (get_jump_flags): Strengthen param "insn" from rtx to
3473         const rtx_insn *.
3474         (get_branch_condition): Likewise.
3475         (condition_dominates_p): Likewise.
3476         (make_return_insns): Move declaration of local "pat" earlier, to
3477         after we've handled NONJUMP_INSN_P and non-sequences, using its
3478         methods to simplify the code and for type-safety.
3479         * rtl.h (find_constant_src): Strengthen param from const_rtx to
3480         const rtx_insn *.
3481         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
3482         (condjump_p): Strengthen param from const_rtx to
3483         const rtx_insn *.
3484         (any_condjump_p): Likewise.
3485         (any_uncondjump_p): Likewise.
3486         (pc_set): Likewise.
3487         (condjump_label): Likewise.
3488         (simplejump_p): Likewise.
3489         (returnjump_p): Likewise.
3490         (onlyjump_p): Likewise.
3491         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
3492         (invert_jump): Likewise.
3493         (condjump_in_parallel_p): Strengthen param from const_rtx to
3494         const rtx_insn *.
3495         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
3496         to const rtx_insn *.
3497         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
3498         to const rtx_insn *.
3499         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
3501 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3503         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
3504         above the conditional, and convert the check on GET_CODE to a
3505         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
3506         the conditional.  Simplify the conditional by using methods of
3507         "trial_seq".
3509 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3511         * haifa-sched.c (check_clobbered_conditions): Strengthen local
3512         "link" from rtx to rtx_insn_list *, and use its methods for
3513         clarity and type-safety.
3514         (toggle_cancelled_flags): Likewise.
3515         (restore_last_backtrack_point): Likewise.
3516         (queue_to_ready): Use insn method of "link" in one place.
3517         (schedule_block): Strengthen local "link" from rtx to
3518         rtx_insn_list *, and use its methods for clarity and type-safety.
3520 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3522         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
3523         param "insn" from const_rtx to const rtx_insn *.
3524         (sched_get_reverse_condition_uncached): Likewise.
3525         (sched_get_condition_with_rev): Likewise.
3526         (sched_has_condition_p): Likewise.
3527         (sched_insns_conditions_mutex_p): Likewise for both params.
3528         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
3529         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
3530         (setup_insn_reg_uses): Move local "list" to be more tightly
3531         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
3532         its methods for clarity and type-safety.
3533         (sched_analyze_1): Strengthen local "pending" from rtx to
3534         rtx_insn_list *, and local "pending_mem" from rtx to
3535         rtx_expr_list *.  Use methods of each for clarity and type-safety.
3536         (sched_analyze_2): Likewise.
3537         (sched_analyze_insn): Likewise.
3539         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
3540         param from const_rtx to const rtx_insn *.
3541         (sched_insns_conditions_mutex_p): Likewise for both params.
3542         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
3543         param.
3545         * system.h (CONST_CAST_RTX_INSN): New macro.
3547 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3549         * recog.c (peep2_attempt): Strengthen return type from rtx to
3550         rtx_insn *.
3551         (peep2_update_life): Likewise for params "last", "prev", removing
3552         a checked cast made redundant by this.
3553         (peephole2_optimize): Likewise for local "last".
3555 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3557         * basic-block.h (set_block_for_insn): Eliminate this macro in
3558         favor of...
3559         * rtl.h (set_block_for_insn): New inline function, imposing the
3560         requirement that the "insn" param is an rtx_insn *.
3562 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3564         * caller-save.c (setup_save_areas): Strengthen local "insn" from
3565         rtx to rtx_insn *.
3566         * final.c (get_call_reg_set_usage): Likewise for first param,
3567         eliminating a checked cast.
3568         * regs.h (get_call_reg_set_usage): Likewise for first param.
3569         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
3570         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
3571         cast, replacing references to "x" with "call_insn" where
3572         appropriate.
3573         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
3574         rtx_insn *, adding a checked cast.
3576 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3578         * output.h (final_scan_insn): Strengthen first param from rtx to
3579         rtx_insn *.
3581         * final.c (final_scan_insn): Likewise, renaming it back from
3582         "uncast_insn" to "insn", eliminating the checked cast.
3584         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
3585         "vec" with an rtx_sequence * "seq", taking a copy of
3586         "final_sequence", and using methods of "seq" for clarity, and for
3587         type-safety in the calls to final_scan_insn.
3588         * config/mips/mips.c (mips_output_conditional_branch): Use methods
3589         of "final_sequence" for clarity, and for type-safety in the call to
3590         final_scan_insn.
3591         * config/sh/sh.c (print_slot): Strengthen param from rtx to
3592         rtx_sequence * and rename from "insn" to "seq".
3594 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3596         * jump.c (delete_related_insns): Introduce a new local "table" by
3597         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
3598         get_labels method of "table" to simplify access to the labels in
3599         the jump table.
3601 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3603         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
3604         f_minmaxs, f_minmaxd types.
3606 2014-09-05  Richard Biener  <rguenther@suse.de>
3608         * cfgloop.c (mark_loop_for_removal): Record former header
3609         when ENABLE_CHECKING.
3610         * cfgloop.h (strut loop): Add former_header member when
3611         ENABLE_CHECKING.
3612         * loop-init.c (fix_loop_structure): Sanity check loops
3613         marked for removal if they re-appeared.
3615 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3617         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
3618         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
3620         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
3621         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
3622         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
3623         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
3624         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
3625         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
3626         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
3627         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
3628         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
3629         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
3630         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
3631         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
3632         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
3633         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
3634         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
3635         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
3636         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
3637         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
3638         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
3639         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
3640         with int{32,16,8}_t.
3642 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3644         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
3645         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
3646         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
3647         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
3648         Remove temporary __asm__ and reimplement.
3650 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3652         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
3653         handling cmge, cmgt, cmeq, cmtst.
3655         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
3656         cmlt, cmgeu, cmgtu, cmtst): Remove.
3658         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
3659         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
3660         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
3661         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
3663 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3665         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
3666         TYPES_TST): Define.
3667         (aarch64_fold_builtin): Update pattern for cmtst.
3669         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
3670         Declare.
3672         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
3674         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
3675         Switch operands, separate out more cases, refactor.
3677         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
3679         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
3680         argument; rename old version to...
3681         (aarch64_const_vec_all_same_in_range_p): ...this.
3682         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
3684         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
3686 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3688         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3689         Remove qualifier_const_pointer, update comment.
3691 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3693         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
3695 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3697         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
3698         varargs with pointer parameter.
3699         (aarch64_simd_expand_builtin): pass pointer into previous.
3701 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3703         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
3704         alus_ext.
3706 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3708         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
3709         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
3710         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
3711         Replace temporary asm with call to builtin.
3712         (vrbit_p8, vrbitq_p8): New functions.
3714 2014-09-05  Richard Biener  <rguenther@suse.de>
3716         * cfgloop.c (mark_loop_for_removal): New function.
3717         * cfgloop.h (mark_loop_for_removal): Declare.
3718         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
3719         (merge_blocks): Likewise.
3720         (duplicate_block): Likewise.
3721         * except.c (sjlj_emit_dispatch_table): Likewise.
3722         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3723         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
3724         (thread_through_loop_header): Likewise.
3726 2014-09-05  Richard Biener  <rguenther@suse.de>
3728         PR middle-end/63148
3729         * fold-const.c (try_move_mult_to_index): Remove.
3730         (fold_binary_loc): Do not call it.
3731         * tree-data-ref.c (dr_analyze_indices): Strip conversions
3732         from the base object again.
3734 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
3736         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
3737         DImode.
3739 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
3741         PR target/55701
3742         * config/arm/arm.md (setmem): New pattern.
3743         * config/arm/arm-protos.h (struct tune_params): New fields.
3744         (arm_gen_setmem): New prototype.
3745         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
3746         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3747         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3748         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
3749         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
3750         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
3751         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
3752         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3753         (arm_const_inline_cost): New function.
3754         (arm_block_set_max_insns): New function.
3755         (arm_block_set_non_vect_profit_p): New function.
3756         (arm_block_set_vect_profit_p): New function.
3757         (arm_block_set_unaligned_vect): New function.
3758         (arm_block_set_aligned_vect): New function.
3759         (arm_block_set_unaligned_non_vect): New function.
3760         (arm_block_set_aligned_non_vect): New function.
3761         (arm_block_set_vect, arm_gen_setmem): New functions.
3763 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
3765         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
3767 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
3769         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
3771 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3773         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
3774         an rtx.
3775         * valtrack.h: Adjust.
3777 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3779         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
3780         an rtx.
3781         (emit_jump_insn_before_noloc): Likewise.
3782         (emit_call_insn_before_noloc): Likewise.
3783         (emit_label_before): Likewise.
3784         (emit_label_after): Likewise.
3785         (emit_insn_before_setloc): Likewise.
3786         (emit_jump_insn_before_setloc): Likewise.
3787         (emit_call_insn_before_setloc): Likewise.
3788         (emit_call_insn_before): Likewise.
3789         * rtl.h: Adjust.
3791 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3793         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
3794         rtx_insn *, eliminating a checked cast.
3796 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3798         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
3799         const_rtx to const rtx_insn *.
3800         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
3801         cast.
3803 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3805         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
3806         fixup_args_size_notes.
3807         * expr.c (fixup_args_size_notes): Strengthen first two params from
3808         rtx to rtx_insn *, eliminating a checked cast.
3809         * rtl.h (fixup_args_size_notes): Strengthen first two params from
3810         rtx to rtx_insn *.
3812 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3814         * haifa-sched.c (get_ready_element): Strengthen return type from
3815         rtx to rtx_insn *.
3816         * sched-int.h (get_ready_element): Likewise.
3818 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
3820         PR target/63165
3821         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
3822         indexed_or_indirect_operand instead of memory_operand.
3823         (floatsi<mode>2_lfiwzx_mem): Ditto.
3825 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3827         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
3828         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
3829         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
3831 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3833         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
3834         rtx.
3835         (get_last_nonnote_insn): Likewise.
3836         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
3837         * resource.c (find_basic_block): Likewise.
3838         * rtl.h: Adjust.
3839         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
3840         const_rtx.
3842 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
3844         * genattr.c (main): Within the prototype of insn_latency written
3845         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
3846         * genautomata.c (output_internal_maximal_insn_latency_func):
3847         Within the implementation of insn_latency written out to
3848         insn-automata.c, strengthen both params from rtx to rtx_insn *,
3849         eliminating a pair of checked casts.
3851 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
3853         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
3854         rtx_insn *.
3856         * rtl.h (eh_returnjump_p): Likewise.
3858 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
3860         * Makefile.in (TAGS): Handle constructs in timevar.def.
3862 2014-09-04  Guozhi Wei  <carrot@google.com>
3864         PR target/62040
3865         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
3866         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
3867         it into two patterns.
3868         (move_lo_quad_internal_be_<mode>): Likewise.
3870 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3872         * doc/options.texi: Document that Var and Init are required if CPP
3873         is given.
3874         * optc-gen.awk: Require Var and Init if CPP is given.
3875         * common.opt (Wpedantic): Use Init.
3877 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3879         * config/rs6000/rs6000.c (special_handling_values): Add
3880         SH_EXTRACT.
3881         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
3882         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
3883         as swappable with special handling SH_EXTRACT.  Remove
3884         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
3885         optimization.
3886         (adjust_extract): New function.
3887         (handle_special_swappables): Add default to case statement; add
3888         case for SH_EXTRACT that calls adjust_extract.
3889         (dump_swap_insn_table): Handle SH_EXTRACT.
3891 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3893         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
3894         selection of 0th memory doubleword, regardless of endianness.
3896 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3898         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
3900 2014-09-04  Alan Modra  <amodra@gmail.com>
3902         PR debug/60655
3903         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
3904         can't be output.
3906 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
3908         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
3909         * targhooks.c (default_dwarf_frame_reg_mode): New function.
3910         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
3911         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
3912         * doc/tm.texi: Regenerate.
3913         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
3914         selection logic to default_dwarf_frame_reg_mode.
3916 2014-09-03  Marek Polacek  <polacek@redhat.com>
3918         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
3919         by -Wall.
3921 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
3923         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
3924         the automodified register.
3926 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
3928         * output.h (get_some_local_dynamic_name): Declare.
3929         * final.c (some_local_dynamic_name): New variable.
3930         (get_some_local_dynamic_name): New function.
3931         (final_end_function): Clear some_local_dynamic_name.
3932         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
3933         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3934         (print_operand): Report an error if '%&' is used inappropriately.
3935         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
3936         (get_some_local_dynamic_name_1): Delete.
3937         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
3938         (rs6000_get_some_local_dynamic_name): Delete.
3939         (rs6000_get_some_local_dynamic_name_1): Delete.
3940         (print_operand): Report an error if '%&' is used inappropriately.
3941         * config/s390/s390.c (machine_function): Remove some_ld_name.
3942         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3943         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
3944         * config/sparc/sparc.c: Include rtl-iter.h.
3945         (machine_function): Remove some_ld_name.
3946         (sparc_print_operand): Report an error if '%&' is used inappropriately.
3947         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3949 2014-09-03  Richard Henderson  <rth@redhat.com>
3951         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
3952         (aarch64_popwb_pair_reg): Remove.
3953         (aarch64_set_frame_expr): Remove.
3954         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
3955         the restore ops performed by the insns generated.
3956         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
3957         insn.  Perform the calls_eh_return addition later; do not attempt to
3958         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
3959         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
3960         special markup at all.  Load cfun->machine->frame.hard_fp_offset
3961         into a local variable.
3962         (aarch64_frame_pointer_required): Don't check calls_alloca.
3964 2014-09-03  Richard Biener  <rguenther@suse.de>
3966         * opts.c (default_options_optimization): Adjust
3967         max-combine-insns to 2 for -Og.
3969 2014-09-03  Martin Jambor  <mjambor@suse.cz>
3971         PR ipa/62015
3972         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
3973         pass-trough jump functions correctly.
3975 2014-09-03  Martin Jambor  <mjambor@suse.cz>
3977         PR ipa/61986
3978         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
3979         created replacements in ascending order of offsets.
3980         (known_aggs_to_agg_replacement_list): Likewise.
3982 2014-09-03  Martin Liska  <mliska@suse.cz>
3984         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
3985         is set to set uninitialized value for vnresult.
3987 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3989         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
3990         for TARGET_MUST_PASS_IN_STACK.
3992 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3994         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
3995         for TARGET_ARG_PARTIAL_BYTES.
3997 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3999         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
4000         instructions for varargs implementation.
4001         (nds32_expand_epilogue): Emit stack adjustment instructions for
4002         varargs implementation.
4004 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4006         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
4007         optimization detection.
4009 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4011         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
4012         arguments.
4013         (nds32_function_arg_advance): Deal with nameless arguments.
4014         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
4015         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
4016         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
4018 2014-09-03  Richard Biener  <rguenther@suse.de>
4020         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
4021         (struct bb_bitmap_sets): Remove deferred member.
4022         (BB_DEFERRED): Remove.
4023         (defer_or_phi_translate_block): Remove.
4024         (compute_antic_aux): Remove deferring of blocks, assert
4025         proper iteration order.
4026         (compute_antic): Do not set BB_DEFERRED.
4027         (eliminate): Allocate el_avail of proper size initially.
4029 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4031         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
4032         according to the value of crtl->args.pretend_args_size.
4034 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4036         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
4037         varargs information.
4039 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4041         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
4042         implementation for TARGET_SETUP_INCOMING_VARARGS.
4043         (nds32_strict_argument_naming): Refine comment.
4044         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
4045         Define for future implementation.
4047 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
4049         * config/i386/adxintrin.h (_subborrow_u32): New.
4050         (_addcarry_u32): Ditto.
4051         (_subborrow_u64): Ditto.
4052         (_addcarry_u64): Ditto.
4053         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
4054         IX86_BUILTIN_SBB64.
4055         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
4056         __builtin_ia32_sbb_u64
4058 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4060         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
4061         GPR-specific stuff.
4062         (nds32_function_arg_advance): Likewise.
4063         (nds32_init_cumulative_args): Likewise.
4064         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
4065         (NDS32_FIRST_GPR_REGNUM): Define.
4066         (NDS32_LAST_GPR_REGNUM): Define.
4067         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
4068         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4069         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4070         (machine_function): Use GRP-specific stuff.
4072 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4074         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
4075         (nds32_expand_epilogue): Likewise.
4076         (nds32_expand_prologue_v3push): Likewise.
4077         (nds32_expand_epilogue_v3pop): Likewise.
4079 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4081         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
4082         v3push/v3pop for variadic function.
4083         * config/nds32/nds32.md (prologue, epilogue): Likewise.
4085 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4087         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
4088         Check rtx for varargs implementation.
4089         (nds32_output_stack_pop): Likewise.
4090         * config/nds32/nds32-protos.h: Have a rtx argument for
4091         nds32_output_stack_push and nds32_output_stack_pop.
4092         * config/nds32/nds32.md: Likewise.
4094 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4096         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
4097         to check if FUNC is an interrupt service routine.
4098         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
4100 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4102         * config/nds32/nds32.h (machine_function): Add some fields for variadic
4103         arguments implementation.
4105 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4107         * config/nds32/nds32-predicates.c
4108         (nds32_valid_stack_push_pop): Rename to ...
4109         (nds32_valid_stack_push_pop_p): ... this.
4110         * config/nds32/nds32-protos.h: Likewise.
4111         * config/nds32/predicates.md: Likewise.
4113 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4115         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
4116         (nds32_emit_stack_v3push): ... this.
4117         (nds32_gen_stack_v3pop): Rename to ...
4118         (nds32_emit_stack_v3pop): ... this and consider CFA restore
4119         information.
4121 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4123         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
4124         (nds32_emit_stack_push_multiple): ... this.
4125         (nds32_gen_stack_pop_multiple): Rename to ...
4126         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
4127         information.
4129 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4131         PR target/61078
4132         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
4133         and add a second splitter to handle the remaining cases.
4135 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4137         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
4139 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4141         * cfgexpand.c (label_rtx_for_bb): Change type to
4142         hash_map<basic_block, rtx_code_label *> *.
4143         (expand_gimple_basic_block): Adjust.
4144         (pass_expand::execute): Likewise.
4146 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4148         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
4149         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
4150         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
4151         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
4152         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
4153         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
4154         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
4155         of rtx.
4157 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4159         * alloc-pool.c: Include coretypes.h.
4160         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
4161         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
4162         hash_set instead of htab.
4163         * ggc-page.c (in_gc): New variable.
4164         (ggc_free): Do nothing if a collection is taking place.
4165         (ggc_collect): Set in_gc appropriately.
4166         * ggc.h (gt_ggc_mx(const char *)): New function.
4167         (gt_pch_nx(const char *)): Likewise.
4168         (gt_ggc_mx(int)): Likewise.
4169         (gt_pch_nx(int)): Likewise.
4170         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
4171         (hash_map::hash_entry::pch_nx): Likewise.
4172         (hash_map::hash_entry::pch_nx_helper): Likewise.
4173 (hash_map::hash_map): Adjust.
4174 (hash_map::create_ggc): New function.
4175 (gt_ggc_mx): Likewise.
4176 (gt_pch_nx): Likewise.
4177         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
4178 (default_hashset_traits::pch_nx): Likewise.
4179 (hash_set::hash_entry::ggc_mx): Likewise.
4180 (hash_set::hash_entry::pch_nx): Likewise.
4181 (hash_set::hash_entry::pch_nx_helper): Likewise.
4182 (hash_set::hash_set): Adjust.
4183 (hash_set::create_ggc): New function.
4184 (hash_set::elements): Likewise.
4185 (gt_ggc_mx): Likewise.
4186 (gt_pch_nx): Likewise.
4187         * hash-table.h (hash_table::hash_table): Adjust.
4188 (hash_table::m_ggc): New member.
4189         (hash_table::~hash_table): Adjust.
4190         (hash_table::expand): Likewise.
4191         (hash_table::empty): Likewise.
4192 (gt_ggc_mx): New function.
4193         (hashtab_entry_note_pointers): Likewise.
4194 (gt_pch_nx): Likewise.
4196 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4198         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
4199         built-in definition.
4200         (XVCVUXDDP_SCALE): Likewise.
4201         (XVCVDPSXDS_SCALE): Likewise.
4202         (XVCVDPUXDS_SCALE): Likewise.
4203         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
4204         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
4205         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
4206         VSX_BUILTIN_XVCVDPUXDS_SCALE.
4207         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
4208         prototype.
4209         * config/rs6000/rs6000.c (real.h): New include.
4210         (rs6000_scale_v2df): New function.
4211         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
4212         (UNSPEC_VSX_XVCVUXDDP): Likewise.
4213         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
4214         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
4215         (vsx_xvcvsxddp_scale): New define_expand.
4216         (vsx_xvcvsxddp): New define_insn.
4217         (vsx_xvcvuxddp_scale): New define_expand.
4218         (vsx_xvcvuxddp): New define_insn.
4219         (vsx_xvcvdpsxds_scale): New define_expand.
4220         (vsx_xvcvdpsxds): New define_insn.
4221         (vsx_xvcvdpuxds_scale): New define_expand.
4222         (vsx_xvcvdpuxds): New define_insn.
4223         * doc/extend.texi (vec_ctf): Add new prototypes.
4224         (vec_cts): Likewise.
4225         (vec_ctu): Likewise.
4226         (vec_splat): Likewise.
4227         (vec_div): Likewise.
4228         (vec_mul): Likewise.
4230 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4232         PR target/62275
4233         * config/arm/neon.md
4234         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
4235         <v_cmp_result>): New pattern.
4236         * config/arm/iterators.md (NEON_VCVT): New int iterator.
4237         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
4238         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
4239         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4240         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4241         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4243 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4245         PR target/62275
4246         * config/arm/iterators.md (FIXUORS): New code iterator.
4247         (VCVT): New int iterator.
4248         (su_optab): New code attribute.
4249         (su): Likewise.
4250         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4252 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4254         * config/aarch64/predicates.md (aarch64_comparison_operation):
4255         New special predicate.
4256         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4257         aarch64_comparison_operation instead of matching an operator.
4258         Update operand numbers.
4259         (csinc3<mode>_insn): Likewise.
4260         (*csinv3<mode>_insn): Likewise.
4261         (*csneg3<mode>_insn): Likewise.
4262         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
4263         * config/aarch64/aarch64.c (aarch64_get_condition_code):
4264         Return -1 instead of aborting on invalid condition codes.
4265         (aarch64_print_operand): Update aarch64_get_condition_code callsites
4266         to assert that the returned condition code is valid.
4267         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
4269 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
4271         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
4272         tree.def, and gimple.def
4274 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
4275             Balaji V. Iyer  <balaji.v.iyer@intel.com>
4276             Igor Zamyatin  <igor.zamyatin@intel.com>
4278         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
4279         (__cilkrts_cilk_for_64): Likewise.
4280         * cilk-common.c (declare_cilk_for_builtin): New function.
4281         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
4282         __cilkrts_cilk_for_64 bultins.
4283         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
4284         CILK_TI_F_LOOP_64.
4285         (cilk_for_32_fndecl): New define.
4286         (cilk_for_64_fndecl): Likewise.
4287         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
4288         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
4289         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
4290         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
4291         GF_OMP_FOR_COMBINED_INTO.
4292         * gimplify.c (gimplify_scan_omp_clauses): Added
4293         OMP_CLAUSE__CILK_FOR_COUNT_ case.
4294         (gimplify_adjust_omp_clauses): Ditto.
4295         (gimplify_omp_for): Added CILK_FOR case.
4296         (gimplify_expr): Ditto.
4297         * omp-low.c: Include cilk.h.
4298         (extract_omp_for_data): Set appropriate kind for
4299         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
4300         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
4301         (create_omp_child_function_name): Added second argument to handle
4302         cilk_for case.
4303         (cilk_for_check_loop_diff_type): New function.
4304         (expand_cilk_for_call): Likewise.
4305         (expand_cilk_for): Likewise.
4306         (create_omp_child_function): Set cilk_for_count; handle the cases when
4307         it is true; call create_omp_child_function_name with second argument.
4308         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
4309         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
4310         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
4311         * tree-nested.c (convert_nonlocal_omp_clauses): Added
4312         OMP_CLAUSE__CILK_FOR_COUNT_ case.
4313         (convert_local_omp_clauses): Ditto.
4314         * tree-pretty-print.c (dump_omp_clause): Added
4315         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
4316         (dump_generic_node): Added CILK_FOR case.
4317         * tree.c (omp_clause_num_ops): New element
4318         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
4319         (omp_clause_code_name): New element _Cilk_for_count_.
4320         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
4321         * tree.def: Add tree code for CILK_FOR.
4323 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4325         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
4326         (ppc403-compare): Add "exts with dot" case.
4327         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
4328         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
4329         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
4330         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
4331         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
4332         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
4333         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
4334         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4335         cell-cmp-microcoded): Similarly.
4336         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
4337         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
4338         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
4339         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
4340         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
4341         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
4342         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
4343         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
4344         (power6-compare): Add "exts with dot" case.
4345         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
4346         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
4347         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
4349         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
4350         if avoiding Cell microcode.
4351         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
4352         (is_cracked_insn): Ditto.
4353         (insn_must_be_first_in_group): Ditto.
4354         * config/rs6000/rs6000.md (dot): Adjust comment.
4355         (cell_micro): Handle exts+dot.
4356         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
4357         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
4358         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
4359         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
4360         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
4361         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
4362         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
4364 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4366         * config/rs6000/rs6000.md (QHSI): Delete.
4367         (EXTQI, EXTHI, EXTSI): New mode iterators.
4368         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
4369         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
4370         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
4371         9 anonymous instructions, and 8 splitters): Delete.
4372         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
4373         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
4374         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
4375         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
4376         *zero_extendsi<mode>2_dot2): New.
4378 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4380         * config/rs6000/rs6000.md (any_extend): New code iterator.
4381         (u, su): New code attributes.
4382         (dmode, DMODE): New mode attributes.
4383         (<su>mul<mode>3_highpart): New.
4384         (*<su>mul<mode>3_highpart): New.
4385         (<su>mulsi3_highpart_le): New.
4386         (<su>muldi3_highpart_le): New.
4387         (<su>mulsi3_highpart_64): New.
4388         (<u>mul<mode><dmode>3): New.
4389         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
4390         splitters): Delete.
4391         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
4392         splitters): Delete.
4394 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4396         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
4397         *mulsi3_internal2, and two splitters): Delete.
4398         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
4399         Delete.
4400         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
4402 2014-09-02  Richard Biener  <rguenther@suse.de>
4404         PR tree-optimization/62695
4405         * tree-ssa-structalias.c (find_func_clobbers): Add missing
4406         vector truncate.
4408 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
4410         PR target/62312
4411         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
4413 2014-09-01  Andi Kleen  <ak@linux.intel.com>
4415         * file-find.c (add_prefix_begin): Add.
4416         (do_add_prefix): Rename from add_prefix with first argument.
4417         (add_prefix): Add new wrapper.
4418         * file-find.h (add_prefix_begin): Add.
4419         * gcc-ar.c (main): Support -B option.
4421 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4423         * genemit.c: Include dumpfile.h.
4424         (gen_split): Print name of splitter function to dump file.
4426 2014-09-01  Richard Biener  <rguenther@suse.de>
4428         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
4429         Use stack auto_vecs for constraint expressions.
4430         (find_func_aliases_for_call): Likewise.
4431         (find_func_aliases): Likewise.
4432         (find_func_clobbers): Likewise.
4434 2014-09-01  Richard Biener  <rguenther@suse.de>
4436         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
4437         operands vector in most cases.  Remove redundant code.
4439 2014-09-01  Olivier Hainque  <hainque@adacore.com>
4441         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
4442         $WIND_BASE instead of designating a harcoded arbitrary home dir.
4443         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
4445 2014-09-01  Richard Biener  <rguenther@suse.de>
4447         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
4448         copy_reference_ops_from_call, vn_nary_op_compute_hash,
4449         vn_reference_compute_hash, vn_reference_insert): Remove.
4450         (vn_reference_lookup_call): New function.
4451         * tree-ssa-sccvn.c (vn_reference_compute_hash,
4452         copy_reference_ops_from_ref, copy_reference_ops_from_call,
4453         vn_reference_insert, vn_nary_op_compute_hash): Make static.
4454         (create_reference_ops_from_call): Remove.
4455         (vn_reference_lookup_3): Properly update shared_lookup_references.
4456         (vn_reference_lookup_pieces): Assert that we updated
4457         shared_lookup_references properly.
4458         (vn_reference_lookup): Likewise.
4459         (vn_reference_lookup_call): New function.
4460         (visit_reference_op_call): Use it.  Avoid re-building the
4461         reference ops.
4462         (visit_reference_op_load): Remove redundant lookup.
4463         (visit_reference_op_store): Perform special tail-merging work
4464         only when possibly doing tail-merging.
4465         (visit_use): Likewise.
4466         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
4468 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
4470         PR target/62025
4471         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
4472         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
4473         (find_inc): Revert 2014-08-13 change.
4475 2014-09-01  Marek Polacek  <polacek@redhat.com>
4477         PR middle-end/61903
4478         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
4479         Change the type of V to unsigned HOST_WIDE_INT.
4481 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4483         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
4484         the size of byte markers.
4485         (do_shift_rotate): Fix confusion between host, target and marker byte
4486         size.
4487         (verify_symbolic_number_p): Likewise.
4488         (find_bswap_or_nop_1): Likewise.
4489         (find_bswap_or_nop): Likewise.
4491 2014-09-01  Olivier Hainque  <hainque@adacore.com>
4493         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4494         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
4496 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
4498         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
4499         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
4500         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
4502 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
4504         PR sanitizer/61897
4505         PR sanitizer/62140
4506         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
4507         (build_check_stmt): Likewise.
4508         (instrument_strlen_call): Likewise.
4509         (asan_expand_check_ifn): Likewise and fix types.
4510         (maybe_cast_to_ptrmode): New function.
4512 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4514         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
4516 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
4518         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
4520 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
4522         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
4523         prefix to function labels when generating fast indirect calls.
4525 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
4527         PR bootstrap/62304
4529         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
4530         param back from rtx_insn * to rtx.  Rename param from "label" to
4531         "label_or_return", reintroducing "label" as an rtx_insn * after
4532         we've ensured it's not a RETURN.
4533         (first_active_target_insn): Likewise for return type and param;
4534         add a checked cast to rtx_insn * once we've ensured "insn" is not
4535         a RETURN.
4536         (steal_delay_list_from_target): Convert param "pnew_thread" back
4537         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
4538         with JUMP_LABEL.
4539         (own_thread_p): Convert param "thread" back from an rtx_insn * to
4540         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
4541         cast once we've established we're not dealing with a RETURN,
4542         renaming subsequent uses of "thread" to "thread_insn".
4543         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
4544         to JUMP_LABEL.
4545         (follow_jumps): Convert return type and param "label" from
4546         rtx_insn * back to rtx.  Move initialization of "value" to after
4547         the handling for ANY_RETURN_P, adding a checked cast there to
4548         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
4549         rename to "this_label_or_return", reintroducing "this_label" as
4550         an rtx_insn * once we've handled the case where it could be an
4551         ANY_RETURN_P.
4552         (fill_slots_from_thread): Rename param "thread" to
4553         "thread_or_return", converting from an rtx_insn * back to an rtx.
4554         Reintroduce name "thread" as an rtx_insn * local with a checked
4555         cast once we've handled the case of it being an ANY_RETURN_P.
4556         Convert local "new_thread" from an rtx_insn * back to an rtx.
4557         Add a checked cast when assigning to "trial" from "new_thread".
4558         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
4559         checked cast to rtx_insn * from "new_thread" when invoking
4560         get_label_before.
4561         (fill_eager_delay_slots): Convert locals "target_label",
4562         "insn_at_target" from rtx_insn * back to rtx.
4563         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
4564         (relax_delay_slots): Convert locals "trial", "target_label" from
4565         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
4566         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
4567         invoking update_block.
4568         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
4569         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
4571         * resource.h (mark_target_live_regs): Undo erroneous conversion
4572         of second param of r214693, converting it back from rtx_insn * to
4573         rtx, since it could be a RETURN.
4575         * resource.c (find_dead_or_set_registers): Similarly, convert
4576         param "jump_target" back from an rtx_insn ** to an rtx *, as we
4577         could be writing back a RETURN.  Rename local rtx_insn * "next" to
4578         "next_insn", and introduce "lab_or_return" as a local rtx,
4579         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
4580         (mark_target_live_regs): Undo erroneous conversion
4581         of second param of r214693, converting it back from rtx_insn * to
4582         rtx, since it could be a RETURN.  Rename it from "target" to
4583         "target_maybe_return", reintroducing the name "target" as a local
4584         rtx_insn * with a checked cast, after we've handled the case of
4585         ANY_RETURN_P.
4587 2014-08-29  DJ Delorie  <dj@redhat.com>
4589         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
4590         pointer size up to a power of two.
4591         * defaults.h (DWARF2_ADDR_SIZE): Round up.
4592         (POINTER_SIZE_UNITS): New, rounded up value.
4593         * dwarf2asm.c (size_of_encoded_value): Use it.
4594         (dw2_output_indirect_constant_1): Likewise.
4595         * expmed.c (init_expmed_one_conv): We now know the sizes of
4596         partial int modes.
4597         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
4598         * optabs.c (expand_float): Use precision, not size.
4599         (expand_fix): Likewise.
4600         * simplify-rtx (simplify_unary_operation_1): Likewise.
4601         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4602         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
4603         (default_assemble_integer) Likewise.
4604         (dump_tm_clone_pairs): Likewise.
4605         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
4606         * var-tracking.c (adjust_mems): Allow partial-int modes also.
4607         (prepare_call_arguments): Likewise.
4608         * stor-layout.c (finalize_type_size): Preserve precision.
4609         (layout_type): Use precision, not size.
4611         * expr.c (convert_move): If the target has an explicit converter,
4612         use it.
4614 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
4616         * gdbinit.in: Skip various inline functions in rtl.h when
4617         stepping.
4619 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
4621         PR bootstrap/62301
4622         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
4624 2014-08-29  Richard Biener  <rguenther@suse.de>
4626         PR tree-optimization/62291
4627         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
4628         exactly the vector size needed and use quick_push.
4629         (phi_translate_1): Adjust comment.
4630         (valid_in_sets): Remove block argument and remove pointless
4631         checking of NAMEs.
4632         (dependent_clean): Adjust for removal of block argument.
4633         (clean): Likewise.
4634         (compute_antic_aux): Likewise.
4635         (compute_partial_antic_aux): Likewise.
4637 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4638             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4639             Anna Tikhonova  <anna.tikhonova@intel.com>
4640             Ilya Tocar  <ilya.tocar@intel.com>
4641             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4642             Ilya Verbin  <ilya.verbin@intel.com>
4643             Kirill Yukhin  <kirill.yukhin@intel.com>
4644             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4646         * config/i386/sse.md
4647         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
4648         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
4649         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
4650         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
4652 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4653             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4654             Anna Tikhonova  <anna.tikhonova@intel.com>
4655             Ilya Tocar  <ilya.tocar@intel.com>
4656             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4657             Ilya Verbin  <ilya.verbin@intel.com>
4658             Kirill Yukhin  <kirill.yukhin@intel.com>
4659             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4661         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
4662         * config/i386/sse.md
4663         (define_mode_iterator VI4_128_8_256): New.
4664         (define_mode_iterator VI2_128_4_256): Ditto.
4665         (define_mode_iterator PMOV_DST_MODE): Rename into
4666         (define_mode_iterator PMOV_DST_MODE_1): this.
4667         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
4668         Use PMOV_DST_MODE_1 mode iterator.
4669         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4670         Ditto.
4671         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4672         Ditto.
4673         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
4674         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
4675         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
4676         (define_mode_iterator PMOV_DST_MODE_2): New.
4677         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
4678         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
4679         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
4680         Ditto.
4681         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
4682         (define_mode_attr pmov_dst_3): Ditto.
4683         (define_mode_attr pmov_dst_zeroed_3): Ditto.
4684         (define_mode_attr pmov_suff_3): Ditto.
4685         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
4686         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
4687         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
4688         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
4689         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
4690         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
4691         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
4692         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
4693         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
4694         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
4695         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
4696         (define_mode_attr pmov_dst_4): Ditto.
4697         (define_mode_attr pmov_dst_zeroed_4): Ditto.
4698         (define_mode_attr pmov_suff_4): Ditto.
4699         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
4700         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
4701         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
4702         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
4703         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
4704         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
4705         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
4706         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
4707         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
4708         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
4709         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
4711 2014-08-29  Richard Biener  <rguenther@suse.de>
4713         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
4714         NON_LVALUE_EXPR in gimple.
4716 2014-08-29  Richard Biener  <rguenther@suse.de>
4718         PR middle-end/62292
4719         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
4720         from previous refactoring.
4721         (gimple_fold_builtin_strncpy): Likewise.
4723 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
4725         PR bootstrap/62300
4726         * function.c (assign_parm_setup_reg): Remove erroneous checked
4727         cast to rtx_insn * on result of gen_extend_insn in favor of
4728         introducing a new local rtx "pat".
4730 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4732         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
4733         to silence warning.
4734         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
4736 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4738         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
4739         (next_insn): Likewise.
4740         * emit-rtl.c (next_insn): Likewise.
4741         (previous_insn): Likewise.
4742         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
4743         "insn" and "next" from rtx to rtx_insn *.
4744         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
4745         "insn", "insn1", "vliw_start",  "prologue_end_note",
4746         "last_insn_in_packet".
4748 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4750         * shrink-wrap.h (active_insn_between): Strengthen both params from
4751         rtx to rtx_insn *.
4752         * function.c (active_insn_between): Likewise.
4754 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4756         * genattr.c (main): When writing out insn-attr.h, strengthen param
4757         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
4758         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
4759         writing out the definition of dfa_clear_single_insn_cache to the
4760         generated insn-automata.c
4762 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4764         * resource.h (clear_hashed_info_for_insn): Strengthen param from
4765         rtx to rtx_insn *.
4766         (incr_ticks_for_insn): Likewise.
4767         (init_resource_info): Likewise.
4769         * resource.c (init_resource_info): Likewise.
4770         (clear_hashed_info_for_insn): Likewise.
4771         (incr_ticks_for_insn): Likewise.
4773         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
4774         rtx to rtx_insn *.
4775         (steal_delay_list_from_target): Use methods of "seq".
4776         (try_merge_delay_insns): Use methods of "merged_insns".
4777         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
4778         (reorg_redirect_jump): Likewise for param "jump".
4780 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4782         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
4783         rtx to rtx_insn *.
4784         * config/s390/s390.c (s390_split_branches): Eliminate top-level
4785         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
4786         "set_insn".
4787         (s390_mainpool_finish): In three places, split out a local rtx
4788         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
4789         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
4790          and split another local rtx "insn" out into rtx "pat" and
4791         rtx_insn * "insn".
4792         * config/sh/sh.c (output_branchy_insn): Rather than working
4793         directly on operands[9], introduce local rtx_code_label *
4794         variables named "lab" in two places, working on them, and then
4795         assigning them to operands[9], so that the intervening operations
4796         are known by the type system to be on insns.
4798 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4800         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
4801         const rtx_insn *.
4803         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
4804         in invocation of INSN_HAS_LOCATION.
4806 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4808         * config/rs6000/altivec.h (vec_xl): New #define.
4809         (vec_xst): Likewise.
4810         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
4811         (XXSPLTD_V2DI): Likewise.
4812         (DIV_V2DI): Likewise.
4813         (UDIV_V2DI): Likewise.
4814         (MUL_V2DI): Likewise.
4815         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4816         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
4817         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
4818         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
4819         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
4820         (UNSPEC_VSX_DIVSD): Likewise.
4821         (UNSPEC_VSX_DIVUD): Likewise.
4822         (UNSPEC_VSX_MULSD): Likewise.
4823         (vsx_mul_v2di): New insn-and-split.
4824         (vsx_div_v2di): Likewise.
4825         (vsx_udiv_v2di): Likewise.
4826         (vsx_xxspltd_<mode>): New insn.
4828 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4830         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
4831         NEXT_INSN.
4832         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
4833         (NEXT_INSN): Likewise.
4834         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
4835         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
4836         const rtx_insn *.
4837         (no_labels_between_p): Likewise for both params.
4839         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
4840         cast when using NEXT_INSN on operands[2].
4841         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
4842         "insn" from rtx to rtx_insn *, adding a checked cast.
4843         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
4844         rtx_insn *.
4845         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
4846         for third param.
4847         (arc_text_label): Likewise for param "insn".
4848         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
4849         "insn".
4850         (arc_ccfsm_record_condition): Likewise for param "jump".
4851         (arc_text_label): Likewise for local "label".
4852         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
4853         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
4854         a method for typesafety.  Add a checked cast.
4855         * config/arc/constraints.md (Clb): Add a checked cast when getting
4856         the CODE_LABEL from a LABEL_REF.
4857         * config/arm/arm.c (require_pic_register): Strengthen locals
4858         "seq", "insn" from rtx to rtx_insn *.
4859         (create_fix_barrier): Likewise for locals "selected", "next".
4860         (thumb1_reorg): Likewise for locals "prev", "insn".
4861         (arm_expand_prologue): Likewise for local "last".
4862         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
4863         operands[0].
4864         (thumb2_output_casesi): Likewise for operands[2].
4865         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
4866         strengthen local "insn" from rtx to rtx_insn *.
4867         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
4868         type and param "insn".
4869         (find_prev_insn_start): Likewise.
4870         (hwloop_optimize): Likewise for locals "insn", "last_insn",
4871         "prev".
4872         (gen_one_bundle): Likewise for loal "t".
4873         (find_load): Likewise for param "insn".
4874         (workaround_speculation): Likewise for locals "insn", "next",
4875         "target", "next_tgt".
4876         * config/c6x/c6x.c (assign_reservations): Likewise for both params
4877         and for locals "insn", "within", "last".
4878         (count_unit_reqs): Likewise for params "head", "tail" and local
4879         "insn".
4880         (try_rename_operands): Likewise for params "head", "tail".
4881         (reshuffle_units): Likewise for locals "head", "tail", "insn".
4882         (struct c6x_sched_context): Likewise for fields
4883         "last_scheduled_insn", "last_scheduled_iter0".
4884         (init_sched_state): Replace NULL_RTX with NULL.
4885         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
4886         to rtx_insn *.
4887         (undo_split_delayed_nonbranch): Likewise for param and for local
4888         "prev".
4889         (conditionalize_after_sched): Likewise for local "insn".
4890         (bb_earliest_end_cycle): Likewise.
4891         (filter_insns_above): Likewise for locals "insn", "next".
4892         (hwloop_optimize): Remove redundant checked cast.
4893         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
4894         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
4895         NULL_RTX with NULL.
4896         (cris_simple_epilogue): Likewise.
4897         (cris_expand_prologue): Likewise.
4898         (cris_expand_epilogue): Likewise.
4899         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
4900         local "insn" from rtx to rtx_insn *.
4901         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
4902         (struct frv_packet_group): Likewise for the elements within array
4903         fields "insns", "sorted", and for field "nop".
4904         (frv_packet): Likewise for the elements within array field
4905         "insns".
4906         (frv_add_insn_to_packet): Likewise for param "insn".
4907         (frv_insert_nop_in_packet): Likewise for param "insn" and local
4908         "last".
4909         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
4910         (frv_sort_insn_group_1): Likewise for local "insn".
4911         (frv_optimize_membar_local): Likewise.
4912         (frv_align_label): Likewise for locals "x", "last", "barrier",
4913         "label".
4914         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
4915         local.
4916         (ia64_sched_init): Likewise for local "insn".
4917         (scheduled_good_insn): Likewise for param "last".
4918         (struct _ia64_sched_context): Likewise for field
4919         "last_scheduled_insn".
4920         (ia64_init_sched_context): Replace NULL_RTX with NULL.
4921         (struct bundle_state): Likewise for field "insn".
4922         (issue_nops_and_insn): Likewise for param "insn".
4923         (get_next_important_insn): Likewise for return type and both
4924         params.
4925         (ia64_add_bundle_selector_before): Likewise for param "insn".
4926         (bundling): Likewise for params "prev_head_insn", "tail" and
4927         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
4928         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
4929         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
4930         Strengthen final param from rtx to rtx_insn *.
4931         (iq2000_move_1word): Likewise for second param.
4932         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
4933         param "cur_insn" and local "next_insn".
4934         (iq2000_move_1word): Likewise for param "insn".
4935         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
4936         casts when using NEXT_INSN on operands[1].
4937         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
4938         "insn" from rtx to rtx_insn *.
4939         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
4940         "x", introducing local rtx_insn * "insn" for when working with the
4941         CODE_LABEL of the LABEL_REF.
4942         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
4943         rtx_insn *.
4944         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
4945         param.
4946         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
4947         type.
4948         (conditionalize_block): Likewise for return type and param.
4949         (mcore_is_dead): Likewise for param "first" and local "insn".
4950         (emit_new_cond_insn): Likewise for return type.
4951         (conditionalize_block): Likewise for return type, param, and
4952         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
4953         "newinsn".
4954         (conditionalize_optimization): Likewise for local "insn".
4955         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
4956         using NEXT_INSN.
4957         * config/microblaze/microblaze.md: Add checked casts when using
4958         NEXT_INSN.
4959         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
4960         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
4961         and rtx_insn * "insn".
4962         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
4963         checked cast when using NEXT_INSN on operands[2].
4964         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
4965         local "insn" from rtx to rtx_insn *.
4966         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
4967         Likewise.
4968         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
4969         Add a checked cast when using NEXT_INSN on operands[1].
4970         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
4971         rtx to rtx_insn *.
4972         (pa_output_cbranch): Likewise for final param.
4973         (pa_output_lbranch): Likewise for second param.
4974         (pa_output_bb): Likewise for third param.
4975         (pa_output_bvb): Likewise.
4976         (pa_output_dbra): Likewise for second param.
4977         (pa_output_movb): Likewise.
4978         (pa_output_parallel_movb): Likewise.
4979         (pa_output_parallel_addb): Likewise.
4980         (pa_output_millicode_call): Likewise for first param.
4981         (pa_output_mul_insn): Likewise for second param.
4982         (pa_output_div_insn): Likewise for third param.
4983         (pa_output_mod_insn): Likewise for second param.
4984         (pa_jump_in_call_delay): Likewise for param.
4985         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
4986         (pa_output_div_insn): Likewise.
4987         (pa_output_mod_insn): Likewise.
4988         (pa_output_cbranch): Likewise.
4989         (pa_output_lbranch): Likewise.
4990         (pa_output_bb): Likewise.
4991         (pa_output_bvb): Likewise.
4992         (pa_output_dbra): Likewise.
4993         (pa_output_movb): Likewise.
4994         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
4995         to simplify and for typesafety.
4996         (pa_output_call): Use method of rtx_sequence *.
4997         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
4998         (pa_jump_in_call_delay): Likewise.
4999         (pa_output_parallel_movb): Likewise.
5000         (pa_output_parallel_addb): Likewise.
5001         (pa_following_call): Likewise.
5002         (pa_combine_instructions): Likewise for locals "anchor",
5003         "floater".
5004         (pa_can_combine_p): Likewise for params "anchor", "floater" and
5005         locals "start", "end".
5006         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
5007         param "insn" and local "local_insn".
5008         (picochip_final_prescan_insn): Likewise for local "local_insn".
5009         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
5010         local "insn".
5011         (uses_TOC): Likewise.
5012         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
5013         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
5014         splitting out to more tightly-scoped locals, 3 as rtx and one as
5015         rtx_insn *.
5016         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
5017         to rtx_insn *.
5018         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
5019         where needed.
5020         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
5021         to rtx_insn *.
5022         (fixup_addr_diff_vecs): Likewise.
5023         (reg_unused_after): Likewise for param 2.
5024         (sh_can_redirect_branch): Likewise for both params.
5025         (check_use_sfunc_addr): Likewise for param 1.
5026         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
5027         (find_barrier): Likewise for local "last_got".
5028         (gen_block_redirect): Likewise for return type, param "jump" and
5029         locals "prev", "scan", "next", "insn".
5030         (struct far_branch): Likewise for fields "near_label",
5031         "insert_place", "far_label".
5032         (gen_far_branch): Likewise for local "jump".
5033         (fixup_addr_diff_vecs): Likewise for param "first" and locals
5034         "insn", "prev".
5035         (barrier_align): Likewise for param and for locals "prev", "x".
5036         Introduce local rtx_sequence * "prev_seq" and use insn method for
5037         typesafety and clarity.
5038         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
5039         (get_dest_uid): Likewise for local "dest".
5040         (split_branches): Likewise for locals "next", "beyond", "label",
5041         "block", "far_label".  Add checked casts when assigning to
5042         bp->far_label and "far_label".
5043         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
5044         (sequence_insn_p): Likewise.
5045         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
5046         more loop-scoped rtx "insn" when walking LABEL_REFS.
5047         (sh_can_redirect_branch): Strengthen both params from rtx to
5048         rtx_insn *.
5049         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
5050         new local rtx_sequence * "seq" via a dyn_cast, and use a method
5051         for clarity and typesafety.
5052         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
5053         "insn" from rtx to rtx_insn *.
5054         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
5055         when using NEXT_INSN on the CODE_LABEL in operands[2].
5056         (define_insn "casesi_worker_2"): Likewise.
5057         (define_insn "casesi_shift_media"): Likewise.
5058         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
5059         operands[3].
5060         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
5061         Strengthen field "insn" from rtx to rtx_insn *.
5062         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
5063         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
5064         param "start_insn" and local "start_insn".
5065         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
5066         field "insn".
5067         (find_set_of_reg_bb): Likewise for param "insn".
5068         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
5069         (trace_reg_uses): Likewise for param "start_insn".
5070         (sh_treg_combine::cbranch_trace): Likewise for field
5071         "cbranch_insn".
5072         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
5073         param "insn".
5074         (sh_treg_combine::record_set_of_reg): Likewise for param
5075         "start_insn" and local "i".
5076         (sh_treg_combine::can_remove_cstore): Likewise for local
5077         "prev_insn".
5078         (sh_treg_combine::try_optimize_cbranch): Likewise for param
5079         "insn".
5080         (sh_treg_combine::execute): Likewise for local "i".
5081         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
5082         param.
5083         (sparc_check_64): Likewise for second param.
5084         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5085         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
5086         dyn_cast, using its insn method for typesafety and clarity.
5087         (empty_delay_slot): Strengthen param "insn" from rtx to
5088         rtx_insn *.
5089         (set_extends): Likewise.
5090         (sparc_check_64): Likewise.
5091         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
5092         for locals "seq", "last_insn".
5093         (combine_bnp): Likewise for param "insn".
5094         (xstormy16_reorg): Likewise for local "insn".
5095         * config/v850/v850.c (substitute_ep_register): Likewise for params
5096         "first_insn", "last_insn" and local "insn".
5097         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
5098         elements of "regs" array, and local "insn".
5099         * except.c (emit_note_eh_region_end): Likewise for param "insn".
5100         * final.c (final_sequence): Strengthen this global from rtx to
5101         rtx_sequence *.
5102         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
5103         rtx_insn *.
5104         (final_scan_insn): Update assignment to "final_sequence" to be
5105         from "seq", the cast version of "body", for type-safety.
5106         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
5107         "insns" from rtx to rtx_insn *.
5108         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
5109         * genattr.c (main): When writing out generated insn-attr.h,
5110         strengthen params 1 and 3 of eligible_for_delay,
5111         eligible_for_annul_true, eligible_for_annul_false from rtx to
5112         rtx_insn *.
5113         * genattrtab.c (write_eligible_delay): Likewise when writing out
5114         generated insn-attrtab.c; also local "insn" the generated
5115         functions.
5116         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
5117         to rtx_insn *.
5118         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
5119         "start_label" from rtx to rtx_insn *.
5120         * ira.c (decrease_live_ranges_number): Likewise for local "p".
5121         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
5122         "insns" and local "insn".
5123         (validate_equiv_mem): Likewise for param "start" and local "insn".
5124         (memref_used_between_p): Likewise for params "start", "end" and
5125         local "insn".
5126         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
5127         final param.
5128         * loop-doloop.c (doloop_optimize): Within region guarded by
5129         INSN_P (doloop_pat), introduce a new local rtx_insn *
5130         "doloop_insn" via a checked cast, and use it for typesafety,
5131         eventually writing the value back into doloop_pat.
5132         * output.h (final_sequence): Strengthen this global from rtx to
5133         rtx_sequence *.
5134         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
5135         reintroducing "insn" as an rtx_insn * via a checked cast.
5136         Strengthen param "attempt" and local "new_insn"from rtx to
5137         rtx_insn *.
5138         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
5139         to rtx_insn *.
5140         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
5141         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
5142         "p" in favor of more tightly-scoped replacements, sometimes rtx
5143         and sometimes rtx_insn *, as appropriate.
5144         (delete_output_reload): Eliminate top-level rtx "i1", splitting
5145         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
5146         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
5147         local "trial" from rtx to rtx_insn *.
5148         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
5149         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
5150         rtx_sequence * and use methods for clarity and typesafety.
5151         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
5152         rtx to rtx_insn *.  Strenghten local "li" from rtx to
5153         rtx_insn_list * and use its methods for clarity and typesafety.
5154         (steal_delay_list_from_target): Strengthen param "insn" from rtx
5155         to rtx_insn *.
5156         (steal_delay_list_from_fallthrough): Likewise.
5157         (try_merge_delay_insns): Likewise for param "thread" and locals
5158         "trial", "next_trial", "delay_insn".
5159         (redundant_insn): Likewise for param "target" and local "trial".
5160         (own_thread_p): Likewise for param "thread" and locals
5161         "active_insn", "insn".
5162         (get_label_before): Likewise for param "insn".
5163         (fill_simple_delay_slots): Likewise for local "new_label"; use
5164         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
5165         (label_before_next_insn): Strengthen return type and local "insn"
5166         from rtx to rtx_insn *.
5167         (relax_delay_slots): Likewise for locals "other", "tmp".
5168         (make_return_insns): Likewise for param "first" and locals "insn",
5169         "jump_insn", "prev".  Move declaration of "pat" to its assignment
5170         and strengthen from rtx to rtx_sequence *.  Use its methods for
5171         clarity and typesafety.
5172         * rtlanal.c (no_labels_between_p): Strengthen params from
5173         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
5174         rtx_insn *.
5175         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
5176         from const_rtx to const rtx_insn *.
5177         (reg_set_between_p): Rename param "from_insn" to
5178         "uncast_from_insn", and reintroduce "from_insn" as a
5179         const rtx_insn * via a checked cast.
5180         (modified_between_p): Likewise for param "start" as "uncast_start".
5181         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
5182         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
5183         "tmp", head" from rtx to rtx_insn *.
5184         (recompute_rev_top_order): Likewise for local "insn".
5185         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
5186         * store-motion.c (build_store_vectors): Likewise for local "insn".
5187         Strengthen local "st" from rtx to rtx_insn_list * and use methods
5188         for clarity and typesafety.
5189         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
5190         rtx to rtx_insn *.
5191         (computation_cost): Likewise for local "seq".
5192         (get_address_cost): Likewise.
5194 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5196         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
5197         const rtx_insn *.
5198         (label_is_jump_target_p): Likewise for second param.
5200         * rtlanal.c (tablejump_p): Likewise for param "insn".
5201         (label_is_jump_target_p): Likewise for param "jump_insn".
5203 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5205         * rtl.h (find_first_parameter_load): Strengthen return type and
5206         both params from rtx to rtx_insn *.
5207         * rtlanal.c (find_first_parameter_load): Strengthen return type,
5208         both params and locals "before", "first_set" from rtx to
5209         rtx_insn *.  Remove now-redundant cast.
5210         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
5212 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5214         * rtl.h (find_last_value): Delete.
5215         * rtlanal.c (find_last_value): Delete.
5217 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5219         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
5220         from rtx to rtx_insn *.
5221         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
5222         rtx "note" with new local rtx_insn * "new_head" when calculating
5223         head insn of new basic block.
5224         * combine.c (combine_split_insns): Strengthen return type and local
5225         "ret" from rtx to rtx_insn *.
5226         (likely_spilled_retval_p): Likewise for locals "use" and "p".
5227         (try_combine): Eliminate local "m_split", splitting into new
5228         locals "m_split_insn" and "m_split_pat".
5229         (find_split_point): Strengthen local "seq" from rtx into
5230         rtx_insn *.
5231         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
5232         locals "label", "branch".
5233         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
5234         for local "insn".
5235         (define_expand "umulsi3_highpart"): Likewise for local "insn".
5236         * dse.c (note_add_store_info): Likewise for fields "first",
5237         "current".
5238         (note_add_store): Likewise for local "insn".
5239         (emit_inc_dec_insn_before): Likewise for locals "insn",
5240         "new_insn", "cur".
5241         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5242         (replace_read): Likewise for locals "insns", "this_insn".
5243         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5244         (notice_eh_throw): Likewise for param "insn".
5245         (before_next_cfi_note): Likewise for return type, param, and local
5246         "prev".
5247         (connect_traces): Likewise for local "note".
5248         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5249         (verify_rtl_sharing): Likewise.
5250         (unshare_all_rtl_in_chain): Likewise for param "insn".
5251         (get_first_nonnote_insn): Likewise for local "insn".
5252         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
5253         "seq" and use its methods to clarify things.
5254         (next_insn): Strengthen return type from rtx to rtx_insn *.
5255         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5256         local rtx_insn * using a checked cast, dropping a checked cast
5257         made redundant by this change.  Use a cast to and method of
5258         rtx_sequence to clarify the code.
5259         (previous_insn): Rename param "insn" to "uncast_insn" and
5260         reintroduce "insn" as a local rtx_insn * using a checked cast,
5261         dropping a checked cast made redundant by this change.  Use a cast
5262         to and method of rtx_sequence to clarify the code.
5263         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
5264         reintroduce "insn" as a local rtx_insn * using a checked cast,
5265         dropping a checked cast made redundant by this change.
5266         (next_nonnote_insn_bb): Likewise.
5267         (prev_nonnote_insn): Likewise.
5268         (prev_nonnote_insn_bb): Likewise.
5269         (next_nondebug_insn): Likewise.
5270         (prev_nondebug_insn): Likewise.
5271         (next_nonnote_nondebug_insn): Likewise.
5272         (prev_nonnote_nondebug_insn): Likewise.
5273         (next_real_insn): Likewise.
5274         (prev_real_insn): Likewise.
5275         (next_active_insn): Likewise.
5276         (prev_active_insn): Likewise.
5277         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
5278         clarity.
5279         (prev_cc0_setter): Likewise.
5280         (try_split): Rename param "trial" to "uncast_trial" and
5281         reintroduce "insn" as a local rtx_insn * using a checked cast,
5282         dropping checked casts made redundant by this change.
5283         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
5284         rtx to rtx_insn *.
5285         (remove_insn): Rename param "insn" to "uncast_insn" and
5286         reintroduce "insn" as a local rtx_insn * using a checked cast.
5287         (emit_pattern_after_setloc): Likewise for param "after", as
5288         "uncast_after".
5289         (emit_pattern_after): Likewise.  Strengthen local "prev" from
5290         rtx to rtx_insn *.
5291         (emit_pattern_before_setloc): Rename param "before" to
5292         "uncast_before" and reintroduce "before" as a local rtx_insn *
5293         using a checked cast.  Strengthen locals "first", "last" from
5294         rtx to rtx_insn *.
5295         (emit_pattern_before): Likewise rename/cast param "before" to
5296         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
5297         * except.c (copy_reg_eh_region_note_forward): Strengthen param
5298         "first" and local "insn" from rtx to rtx_insn *.
5299         (copy_reg_eh_region_note_backward): Likewise for param "last"
5300         and local "insn".
5301         * expr.c (fixup_args_size_notes): Rename param "last" to
5302         "uncast_last" and reintroduce "last" as a local rtx_insn *
5303         using a checked cast.  Strengthen local "insn" from rtx to
5304         rtx_insn *.
5305         * function.c (set_insn_locations): Strengthen param "insn" from
5306         rtx to rtx_insn *.
5307         (record_insns): Likewise for param "insns" and local "tmp".
5308         (active_insn_between): Rename param "tail" to
5309         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
5310         using a checked cast.
5311         (thread_prologue_and_epilogue_insns): Split out top-level local
5312         rtx "seq" into three different rtx_insn * locals.  Strengthen
5313         local "prologue_seq" from rtx to rtx_insn *.
5314         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
5315         from rtx to rtx_insn *.
5316         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5317         (priority): Likewise for locals "prev_first", "twin".
5318         (setup_insn_max_reg_pressure): Likewise for param "after".
5319         (sched_setup_bb_reg_pressure_info): Likewise.
5320         (no_real_insns_p): Strengthen params from const_rtx to
5321         const rtx_insn *.
5322         (schedule_block): Strengthen local "next_tail" from rtx to
5323         rtx_insn *.
5324         * ifcvt.c (find_active_insn_before): Strengthen return type and
5325         param "insn" from rtx to rtx_insn *.
5326         (find_active_insn_after): Likewise.
5327         (cond_exec_process_insns): Likewise for param "start" and local "insn".
5328         (cond_exec_process_if_block): Likewise for locals "then_start",
5329         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
5330         (noce_process_if_block): Likewise for local "jump".
5331         (merge_if_block): Likewise for two locals named "end".
5332         (cond_exec_find_if_block): Likewise for local "last_insn".
5333         * jump.c (delete_related_insns): Rename param "insn" to
5334         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
5335         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
5336         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
5337         NULL.
5338         (split_reg): Likewise.
5339         * lra.c (lra_process_new_insns): Likewise.
5340         * modulo-sched.c (permute_partial_schedule): Strengthen param
5341         "last" from rtx to rtx_insn *.
5342         * optabs.c (add_equal_note): Likewise for param "insns" and local
5343         "last_insn".
5344         (expand_binop_directly): Add checked casts to rtx_insn * within
5345         NEXT_INSN (pat) uses.
5346         (expand_unop_direct): Likewise.
5347         (maybe_emit_unop_insn): Likewise.
5348         * recog.c (peep2_attempt): Strengthen locals "last",
5349         "before_try", "x" from rtx to rtx_insn *.
5350         * reorg.c (optimize_skip): Strengthen return type and local
5351         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
5352         and locals "trial", "next_trial" from rtx to rtx_insn *.
5353         * resource.c (next_insn_no_annul): Strengthen return type and
5354         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
5355         rtx_sequence to clarify the code.
5356         (mark_referenced_resources): Add a checked cast to rtx_insn *
5357         within PREV_INSN (x).
5358         (find_dead_or_set_registers): Strengthen return type, param
5359         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
5360         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
5361         to rtx_insn **.
5362         (mark_target_live_regs): Strengthen params "insns" and "target",
5363         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
5364         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
5365         the code.
5366         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
5367         from rtx to rtx_insn *.
5368         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
5369         from rtx to rtx_insn *.
5370         (copy_reg_eh_region_note_backward): Likewise.
5371         (unshare_all_rtl_in_chain): Likewise for sole param.
5372         (dump_rtl_slim): Strengthen second and third params from const_rtx
5373         to const rtx_insn *.
5374         * sched-deps.c (sched_free_deps): Strengthen params "head" and
5375         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
5376         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
5377         "next_tail" from rtx to rtx_insn *.
5378         (begin_move_insn): Likewise for local "next".
5379         * sched-int.h (sched_free_deps): Likewise for first and second
5380         params.
5381         (no_real_insns_p): Strengthen both params from const_rtx to
5382         const rtx_insn *.
5383         (sched_setup_bb_reg_pressure_info): Strengthen second params from
5384         rtx to rtx_insn *.
5385         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
5386         "next_tail".
5387         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
5388         and locals "insn", "tail" from const_rtx to const rtx_insn *.
5389         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
5390         rtx_insn *.
5391         (debug_rtl_slim): Strengthen params "first" and "last" from
5392         const_rtx to const rtx_insn *.
5393         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
5394         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
5395         (convert_to_simple_return): Likewise for param "returnjump".
5396         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
5397         "prologue_seq".
5398         (convert_to_simple_return): Likewise for param "returnjump".
5399         * valtrack.c (propagate_for_debug): Likewise for params
5400         "insn", "last".
5401         * valtrack.h (propagate_for_debug): Likewise for second param.
5403 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5405         * output.h (insn_current_reference_address): Strengthen param
5406         from rtx to rtx_insn *.
5407         * final.c (insn_current_reference_address): Likewise.
5409 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5411         * basic-block.h (inside_basic_block_p): Strengthen param from
5412         const_rtx to const rtx_insn *.
5413         * cfgbuild.c (inside_basic_block_p): Likewise.
5415 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5417         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
5418         rtx_insn *.
5419         (get_trace_info): Likewise for param "insn".
5420         (save_point_p): Likewise.
5421         (maybe_record_trace_start): Likewise for both params.
5422         (maybe_record_trace_start_abnormal): Likewise.
5423         (create_trace_edges): Likewise for sole param and for three of the
5424         locals named "lab".
5425         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
5426         to rtx_insn *, and update a call to pat->element to pat->insn.
5428 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5430         * function.h (struct expr_status): Convert field "x_forced_labels"
5431         from rtx_expr_list * to rtx_insn_list *.
5433         * cfgbuild.c (make_edges): Convert local "x" from an
5434         rtx_expr_list * to an rtx_insn_list *, replacing use of
5435         "element" method with "insn" method.
5436         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5437         * except.c (sjlj_emit_dispatch_table): Replace use of
5438         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
5439         forced_labels.
5440         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
5441         rtx_expr_list * to an rtx_insn_list *, replacing use of
5442         "element" method with "insn" method.
5443         * reload1.c (set_initial_label_offsets): Likewise for local "x".
5444         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
5445         rtx_insn *, adding a checked cast.  Replace use of
5446         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
5447         forced_labels.
5448         (expand_label): Likewise for local "label_r".
5450 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5452         * function.h (struct rtl_data): Convert field
5453         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5454         rtx_insn_list *.
5455         * rtl.h (remove_node_from_insn_list): New prototype.
5457         * builtins.c (expand_builtin): When prepending to
5458         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5459         gen_rtx_EXPR_LIST.
5460         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
5461         to rtx_insn_list *, and use its "insn" method rather than
5462         "element" method.
5463         * cfgrtl.c (delete_insn): Use new function
5464         remove_node_from_insn_list rather than
5465         remove_node_from_expr_list.
5466         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
5467         to rtx_insn_list *, and use its "insn" method rather than
5468         "element" method.
5469         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5470         * reload1.c (set_initial_label_offsets): Likewise for local "x".
5471         * rtlanal.c (remove_node_from_insn_list): New function, adapted
5472         from remove_node_from_expr_list.
5473         * stmt.c (expand_label): When prepending to
5474         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5475         gen_rtx_EXPR_LIST.
5477 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5479         * function.h (struct rtl_data): Strengthen fields "x_return_label"
5480         and "x_naked_return_label" from rtx to rtx_code_label *.
5482 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5484         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
5485         (SET_NEXT_INSN): Likewise.
5486         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
5488         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
5489         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
5490         to split out the SEQUENCE from local "bundle", strengthening the
5491         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
5492         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
5493         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
5494         and the type of the elements of the "slot" array from rtx to
5495         rtx_insn *.
5496         (reorg_split_calls): Likewise for locals "insn" and "next", and
5497         the type of the elements of the "slot" array.
5499         * config/frv/frv.c (frv_nops): Likewise for the elements of this
5500         array.
5501         (frv_function_prologue): Likewise for locals "insn", "next",
5502         "last_call".
5503         (frv_register_nop): Introduce a local "nop_insn" to be the
5504         rtx_insn * containing rtx "nop".
5506         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
5507         used as an insn and sometimes as a pattern, so rename it to
5508         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
5509         using it where dealing with the core insn.
5511         * config/picochip/picochip.c (reorder_var_tracking_notes):
5512         Strengthen locals "insn", "next", "last_insn", "queue",
5513         "next_queue", "prev" from rtx to rtx_insn *.
5515         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
5516         the second param is an rtx_insn ** rather than an rtx **.
5517         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
5518         from rtx to rtx_sequence *, and introduce local named "sequence",
5519         using methods of rtx_sequence to clarify the code.
5520         (remove_insn): Introduce local rtx_sequence * named "sequence" and
5521         use its methods.
5522         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
5523         Rename param "after" to "uncast_after", reintroducing "after" as a
5524         local rtx_insn * with a checked cast.
5525         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
5526         reintroducing "after" as a local rtx_insn * with a checked cast.
5527         Strengthen local "last" from rtx to rtx_insn * and remove the
5528         now-redundant checked casts.
5529         (copy_delay_slot_insn): Strengthen return type and param from rtx
5530         to rtx_insn *.
5532         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
5533         "last" from rtx to rtx_insn *.
5535 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5537         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
5538         param from rtx to rtx_insn *.
5540         * emit-rtl.c (copy_delay_slot_insn): Likewise.
5542         * reorg.c (skip_consecutive_labels): Strengthen return type, param
5543         and local "insn" from rtx to rtx_insn *.
5544         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
5545         (unfilled_slots_next): Likewise.
5546         (function_return_label): Strengthen from rtx to rtx_code_label *.
5547         (function_simple_return_label): Likewise.
5548         (first_active_target_insn): Strengthen return type and param from
5549         rtx to rtx_insn *.
5550         (find_end_label): Strengthen return type from rtx to
5551         rtx_code_label *; strengthen locals as appropriate.
5552         (emit_delay_sequence): Strengthen return type, param "insn" and
5553         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
5554         and local "li" from rtx to rtx_insn_list *, using methods of
5555         rtx_insn_list for clarity and typesafety.
5556         (add_to_delay_list): Strengthen return type and param "insn" from
5557         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
5558         rtx_insn_list * and use methods of rtx_insn_list.
5559         (delete_from_delay_slot): Strengthen return type, param "insn",
5560         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
5561         Strengthen local "seq" from rtx to rtx_sequence *, and local
5562         "delay_list" from rtx to rtx_insn_list *, using methods of
5563         rtx_sequence for clarity and type-safety.
5564         (delete_scheduled_jump): Add checked cast when invoking
5565         delete_from_delay_slot.  Strengthen local "trial" from rtx to
5566         rtx_insn *.
5567         (optimize_skip): Strengthen return type and local "delay_list"
5568         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
5569         rtx_insn *.
5570         (steal_delay_list_from_target): Strengthen return type, param
5571         "delay_list" and local "new_delay_list" from rtx to
5572         rtx_insn_list *.  Strengthen param "seq" from rtx to
5573         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
5574         rtx_insn **.
5575         Split out local "temp" into multiple more-tightly scoped locals:
5576         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
5577         of rtx_insn_list and rtx_sequence for clarity and typesafety.
5578         Strengthen locals named "trial" from rtx to rtx_insn *.
5579         (steal_delay_list_from_fallthrough): Strengthen return type and
5580         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
5581         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
5582         Strengthen local "trial" from rtx to rtx_insn *.
5583         (try_merge_delay_insns): Strength local "merged_insns" from rtx
5584         to rtx_insn_list * and use its methods.  Strengthen local "pat"
5585         from rtx to rtx_sequence * and use its methods.  Strengthen locals
5586         "dtrial" and "new_rtx" from rtx to rtx_insn *.
5587         (get_label_before): Strengthen return type and local "label" from
5588         rtx to rtx_insn *.
5589         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
5590         "next_trial", "next", prev".  Strengthen local "delay_list" from
5591         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
5592         rtx_insn **.
5593         (follow_jumps): Strengthen return type, param "label" and locals
5594         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
5595         (fill_slots_from_thread): Strengthen return type, param
5596         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
5597         "insn", "thread", "opposite_thread" and locals "new_thread",
5598         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
5599         "sequence" from a checked cast to rtx_sequence so that we can call
5600         steal_delay_list_from_target and steal_delay_list_from_fallthrough
5601         with an rtx_sequence *.
5602         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
5603         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
5604         Strengthen local "delay_list" from rtx to rtx_insn_list *.
5605         (relax_delay_slots): Strengthen param "first" and locals "insn",
5606         "next", "trial", "delay_insn", "target_label" from rtx to
5607         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
5608         Introduce a local "trial_seq" for PATTERN (trial) of type
5609         rtx_sequence *, in both cases using methods of rtx_sequence.
5610         (dbr_schedule): Strengthen param "first" and locals "insn",
5611         "next", "epilogue_insn" from rtx to rtx_insn *.
5613 2014-08-28  Richard Biener  <rguenther@suse.de>
5615         PR tree-optimization/62283
5616         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5617         Do not peel loops for alignment where the vector loop likely
5618         doesn't run at least VF times.
5620 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
5622         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
5623         important_candidates.  Consider all important candidates if
5624         IVS doesn't give any result.  Remove check on ivs->upto.
5625         (try_add_cand_for): Call iv_ca_add_use only once.
5627 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5628             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5629             Anna Tikhonova  <anna.tikhonova@intel.com>
5630             Ilya Tocar  <ilya.tocar@intel.com>
5631             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5632             Ilya Verbin  <ilya.verbin@intel.com>
5633             Kirill Yukhin  <kirill.yukhin@intel.com>
5634             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5636         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
5637         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
5638         masking.
5639         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
5640         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5641         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5642         (define_insn "*mul<mode>3"): Add EVEX version.
5644 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5645             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5646             Anna Tikhonova  <anna.tikhonova@intel.com>
5647             Ilya Tocar  <ilya.tocar@intel.com>
5648             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5649             Ilya Verbin  <ilya.verbin@intel.com>
5650             Kirill Yukhin  <kirill.yukhin@intel.com>
5651             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5653         * config/i386/sse.md
5654         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
5655         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
5656         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
5657         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
5658         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
5659         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
5660         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
5661         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
5662         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
5663         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
5664         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
5665         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
5666         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
5667         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
5668         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
5669         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
5671 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5672             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5673             Anna Tikhonova  <anna.tikhonova@intel.com>
5674             Ilya Tocar  <ilya.tocar@intel.com>
5675             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5676             Ilya Verbin  <ilya.verbin@intel.com>
5677             Kirill Yukhin  <kirill.yukhin@intel.com>
5678             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5680         * config/i386/sse.md
5681         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
5682         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
5683         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
5685 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5686             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5687             Anna Tikhonova  <anna.tikhonova@intel.com>
5688             Ilya Tocar  <ilya.tocar@intel.com>
5689             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5690             Ilya Verbin  <ilya.verbin@intel.com>
5691             Kirill Yukhin  <kirill.yukhin@intel.com>
5692             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5694         * config/i386/sse.md
5695         (define_mode_iterator VI128_256): New.
5696         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
5698 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5699             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5700             Anna Tikhonova  <anna.tikhonova@intel.com>
5701             Ilya Tocar  <ilya.tocar@intel.com>
5702             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5703             Ilya Verbin  <ilya.verbin@intel.com>
5704             Kirill Yukhin  <kirill.yukhin@intel.com>
5705             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5707         * config/i386/sse.md
5708         (define_mode_iterator VI8_256_512): New.
5709         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
5710         Ditto.
5711         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5712         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
5713         Ditto.
5714         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
5716 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5718         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
5719         pointer to the cumulative reloc value and return the value for
5720         this reloc instead.
5721         (compute_reloc_for_rtx): Take a const_rtx.  Call
5722         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
5723         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
5724         for_each_rtx for the CONST case.
5726 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5728         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
5729         (mark_constants_in_pattern): ...this new function to iterate over
5730         all the subrtxes.
5731         (mark_constants): Update accordingly.
5733 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5735         * varasm.c: Include rtl-iter.h.
5736         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
5737         Remove the pointer to the cumulative hashval_t and just return
5738         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
5739         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5740         Accumulate the hashval_ts here instead of const_rtx_hash_1.
5742 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5744         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
5745         Give real type of data parameter.  Remove return value.
5746         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
5747         to iterate over subrtxes.
5749 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5751         * var-tracking.c (use_narrower_mode_test): Turn from being a
5752         for_each_rtx callback to being a function that examines each
5753         subrtx itself.
5754         (adjust_mems): Update accordingly.
5756 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5758         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
5759         callback to being a function that examines each subrtx itself.
5760         Remove handling of null rtxes.
5761         (add_uses): Update accordingly.
5763 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5765         * var-tracking.c: Include rtl-iter.h.
5766         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
5767         to being a function that examines each subrtx itself.
5768         (use_type): Update accordingly.
5770 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5772         * store-motion.c: Include rtl-iter.h.
5773         (extract_mentioned_regs_1): Delete.
5774         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
5775         for_each_rtx to iterate over subrtxes.
5777 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5779         * sel-sched.c: Include rtl-iter.h
5780         (count_occurrences_1): Delete.
5781         (count_occurrences_equiv): Turn rtxes into const_rtxes.
5782         Use FOR_EACH_SUBRTX rather than for_each_rtx.
5784 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5786         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
5787         * rtlanal.c (tls_referenced_p_1): Delete.
5788         (tls_referenced_p): Take a const_rtx rather than an rtx.
5789         Use FOR_EACH_SUBRTX rather than for_each_rtx.
5791 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5793         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
5794         (for_each_inc_dec): Take an rtx rather than an rtx *.
5795         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
5796         (cselib_record_sets): Likewise.
5797         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
5798         (check_for_inc_dec): Likewise.
5799         * rtlanal.c (for_each_inc_dec_ops): Delete.
5800         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
5801         rather than a pointer to the memory address.  Replace
5802         for_each_inc_dec_ops argument with separate function and data
5803         arguments.  Abort on non-autoinc addresses.
5804         (for_each_inc_dec_find_mem): Delete.
5805         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
5806         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
5808 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5810         * rtl.h (find_all_hard_regs): Declare.
5811         * rtlanal.c (find_all_hard_regs): New function.
5812         (record_hard_reg_uses_1): Delete.
5813         (record_hard_reg_uses): Use find_all_hard_regs.
5815 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5817         * rtl.h (replace_label_data): Delete.
5818         (replace_label): Take the old label, new label and update-nuses flag
5819         as direct arguments.  Return void.
5820         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
5821         * rtlanal.c (replace_label): Update interface as above.  Handle
5822         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
5823         iterator.  Use FOR_EACH_SUBRTX_PTR.
5825 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5827         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
5828         with const_rtx parameters.
5829         * varasm.c (get_pool_constant): Likewise.
5830         * rtlanal.c (rtx_referenced_p_1): Delete.
5831         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5832         Assert that the rtx we're looking for is nonnull.  Allow searches
5833         for constant pool SYMBOL_REFs.
5835 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5837         * reload1.c: Include rtl-iter.h.
5838         (note_reg_elim_costly): Turn from being a for_each_rtx callback
5839         to being a function that examines each subrtx itself.
5840         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
5842 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5844         * regcprop.c (cprop_find_used_regs_1): Delete.
5845         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5847 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5849         * regcprop.c: Include rtl-iter.h.
5850         (kill_value): Take a const_rtx.
5851         (kill_autoinc_value): Turn from being a for_each_rtx callback
5852         to being a function that examines each subrtx itself.
5853         (copyprop_hardreg_forward_1): Update accordingly.
5855 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5857         * reg-stack.c: Include rtl-iter.h.
5858         (subst_stack_regs_in_debug_insn): Delete.
5859         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
5860         instead of for_each_rtx.
5862 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5864         * lower-subreg.c (find_decomposable_subregs): Turn from being
5865         a for_each_rtx callback to being a function that examines each
5866         subrtx itself.  Remove handling of null rtxes.
5867         (decompose_multiword_subregs): Update accordingly.
5869 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5871         * lower-subreg.c (adjust_decomposed_uses): Delete.
5872         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
5873         Remove handling of null rtxes.
5875 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5877         * lower-subreg.c: Include rtl-iter.h.
5878         (resolve_subreg_use): Turn from being a for_each_rtx callback
5879         to being a function that examines each subrtx itself.  Remove
5880         handling of null rtxes.
5881         (resolve_reg_notes, resolve_simple_move): Update accordingly.
5882         (decompose_multiword_subregs): Likewise.
5884 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5886         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
5887         to being a function that examines each subrtx itself.
5888         (simplify_using_condition, simplify_using_initial_values): Update
5889         accordingly.
5891 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5893         * loop-iv.c: Include rtl-iter.h.
5894         (find_single_def_src): New function.
5895         (replace_single_def_regs): Turn from being a for_each_rtx callback
5896         to being a function that examines each subrtx itself.
5897         (replace_in_expr, simplify_using_initial_values): Update accordingly.
5899 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5901         * jump.c (eh_returnjump_p_1): Delete.
5902         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5903         Remove handling of null rtxes.
5905 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5907         * jump.c: Include rtl-iter.h.
5908         (returnjump_p_1): Delete.
5909         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5910         Remove handling of null rtxes.
5912 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5914         * ira.c: Include rtl-iter.h.
5915         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
5916         to being a function that examines each subrtx itself.  Remove
5917         handling of null rtxes.
5918         (update_equiv_regs): Update call accordingly.
5920 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5922         * fwprop.c: Include rtl-iter.h.
5923         (varying_mem_p): Turn from being a for_each_rtx callback to being
5924         a function that examines each subrtx itself.
5925         (propagate_rtx): Update accordingly.
5927 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5929         * function.c: Include rtl-iter.h
5930         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
5931         callback to being a function that examines each subrtx itself.
5932         Return the changed flag.
5933         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
5934         (instantiate_virtual_regs): Update calls accordingly.
5936 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5938         * final.c: Include rtl-iter.h.
5939         (mark_symbol_ref_as_used): Delete.
5940         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
5941         for_each_rtx.
5943 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5945         * emit-rtl.c: Include rtl-iter.h.
5946         (find_auto_inc): Turn from being a for_each_rtx callback to being
5947         a function that examines each subrtx itself.  Assume the first operand
5948         to an RTX_AUTOINC is the automodified register.
5949         (try_split): Update call accordingly.
5951 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5953         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
5954         Return a bool, inverting the result so that 0/false means "not ok".
5955         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
5956         subrtxes of a CONST.
5957         (mem_loc_descriptor, add_const_value_attribute)
5958         (resolve_addr_in_expr): Update calls accordingly.
5960 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5962         * dwarf2out.c: Include rtl-iter.h.
5963         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
5964         Remove unused data parameter.  Return a bool, inverting the result
5965         so that 0/false means "not ok".
5966         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
5967         instead of for_each_rtx.
5969 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5971         * dse.c: Include rtl-iter.h.
5972         (check_mem_read_rtx): Change void * parameter to real type.
5973         Remove return value.
5974         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
5975         for_each_rtx.  Don't handle null rtxes.
5977 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5979         * df-problems.c: Include rtl-iter.h.
5980         (find_memory): Turn from being a for_each_rtx callback to being
5981         a function that examines each subrtx itself.  Continue to look for
5982         volatile references even after a nonvolatile one has been found.
5983         (can_move_insns_across): Update calls accordingly.
5985 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5987         * ddg.c (walk_mems_2, walk_mems_1): Delete.
5988         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
5989         to iterate over subrtxes.  Return a bool rather than an int.
5991 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5993         * ddg.c: Include rtl-iter.h.
5994         (mark_mem_use_1): Rename to...
5995         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
5996         instead of for_each_rtx.
5997         (mem_read_insn_p): Update accordingly.
5999 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6001         * cse.c (change_cc_mode_args): Delete.
6002         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
6003         a function that examines each subrtx itself.  Take the fields of
6004         change_cc_mode_args as argument and return void.
6005         (cse_change_cc_mode_insn): Update calls accordingly.
6007 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6009         * cse.c (is_dead_reg): Change argument to const_rtx.
6010         (dead_debug_insn_data): Delete.
6011         (is_dead_debug_insn): Expand commentary.  Turn from being a
6012         for_each_rtx callback to being a function that examines
6013         each subrtx itself.  Take the fields of dead_debug_insn_data
6014         as argument.
6015         (delete_trivially_dead_insns): Update call accordingly.
6017 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6019         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
6020         being a for_each_rtx callback to being a function that examines
6021         each subrtx itself.
6022         (cse_extended_basic_block): Update call accordingly.
6024 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6026         * cse.c (check_dependence_data): Delete.
6027         (check_dependence): Change from being a for_each_rtx callback to being
6028         a function that examines all subrtxes itself.  Don't handle null rtxes.
6029         (invalidate): Update call accordingly.
6031 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6033         * cse.c: Include rtl-iter.h.
6034         (approx_reg_cost_1): Delete.
6035         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6036         Don't handle null rtxes.
6038 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6040         * cfgcleanup.c: Include rtl-iter.h.
6041         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
6042         to being a function that examines each subrtx itself.
6043         (thread_jump): Update accordingly.
6045 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6047         * combine-stack-adj.c: Include rtl-iter.h.
6048         (record_stack_refs_data): Delete.
6049         (record_stack_refs): Turn from being a for_each_rtx callback
6050         to being a function that examines each subrtx itself.
6051         Take a pointer to the reflist.  Invert sense of return value
6052         so that true means success and false means failure.  Don't
6053         handle null rtxes.
6054         (combine_stack_adjustments_for_block): Update accordingly.
6056 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6058         * combine.c (record_truncated_value): Turn from being a for_each_rtx
6059         callback to a function that takes an rtx and returns a bool
6060         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
6061         for_each_rtx.
6063 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6065         * combine.c: Include rtl-iter.h.
6066         (unmentioned_reg_p_1): Delete.
6067         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6068         Don't handle null rtxes.
6070 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6072         * calls.c: Include rtl-iter.h.
6073         (internal_arg_pointer_based_exp_1): Delete.
6074         (internal_arg_pointer_based_exp): Take a const_rtx.
6075         Use FOR_EACH_SUBRTX to iterate over subrtxes.
6077 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6079         * caller-save.c: Include rtl-iter.h.
6080         (add_used_regs_1): Delete.
6081         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
6082         to iterate over subrtxes.  Assert that any remaining pseudos
6083         have been spilled.
6085 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6087         * bt-load.c: Include rtl-iter.h.
6088         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
6089         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
6090         to iterate over subrtxes.
6091         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
6092         find_btr_use rather than btr_referenced_p.
6094 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6096         * alias.c: Include rtl-iter.h.
6097         (refs_newer_value_cb): Delete.
6098         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6100 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6102         * rtl-iter.h: New file.
6103         * rtlanal.c: Include it.
6104         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
6105         (generic_subrtx_iterator <T>::add_single_to_queue)
6106         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
6107         (generic_subrtx_iterator <T>::free_array): New functions.
6108         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
6109         (generic_subrtx_iterator <const_rtx_accessor>)
6110         (generic_subrtx_iterator <rtx_var_accessor>
6111         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
6112         (setup_reg_subrtx_bounds): New function.
6113         (init_rtlanal): Call it.
6115 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6117         PR target/62261
6118         * config/sh/sh.md (ashlsi3): Handle negative shift count for
6119         TARGET_SHMEDIA.
6120         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
6122 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
6124         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
6126 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6128         * rtl.h (JUMP_LABEL_AS_INSN): New.
6130 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6132         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
6133         rtx_expr_list **.
6134         (alloc_EXPR_LIST): Strengthen return type from rtx to
6135         rtx_expr_list *.
6136         (remove_free_EXPR_LIST_node): Likewise for param.
6137         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
6138         from rtx to rtx_expr_list *.
6139         * sched-int.h (struct deps_desc): Strengthen fields
6140         "pending_read_mems" and "pending_write_mems" from rtx to
6141         rtx_expr_list *.
6143         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
6144         rtx to rtx_expr_list *.
6145         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
6146         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
6147         rtx_expr_list **.
6148         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
6149         from rtx to rtx_expr_list *.
6150         * loop-iv.c (simplify_using_initial_values): Strengthen local
6151         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
6152         "pnote_next" from rtx * to rtx_expr_list **.
6153         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
6154         param "exprp" from rtx * to rtx_expr_list **.
6155         (add_insn_mem_dependence): Strengthen local "mem_list" from
6156         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
6157         to rtx_expr_list *.
6158         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
6159         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
6160         param "old_mems_p" from rtx * to rtx_expr_list **.
6161         * var-tracking.c (struct adjust_mem_data): Strengthen field
6162         "side_effects" from rtx to rtx_expr_list *.
6163         (adjust_insn): Replace NULL_RTX with NULL when assigning to
6164         rtx_expr_list *.
6165         (prepare_call_arguments): Likewise.
6167 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6169         * function.h (struct rtl_data): Strengthen field
6170         "x_stack_slot_list" from rtx to rtx_expr_list *.
6172         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
6173         when assigning to stack_slot_list.
6175 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6177         * function.h (struct rtl_data): Strengthen field
6178         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
6179         * rtl.h (remove_node_from_expr_list): Strengthen second param from
6180         rtx * to rtx_expr_list **.
6182         * cfgbuild.c (make_edges): In loop over
6183         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
6184         rtx_expr_list *, and use methods of the latter class to clarify
6185         the code.
6186         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
6187         rtx_expr_list *, and use methods of the latter class to clarify
6188         the code.
6189         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6190         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6191         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
6192         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
6193         to rtx_expr_list *.  Use methods of the latter class to clarify
6194         the code.
6196 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6198         * function.h (struct expr_status): Strengthen field
6199         "x_forced_labels" from rtx to rtx_expr_list *.
6201         * cfgbuild.c (make_edges): Split local "x" into two locals,
6202         strengthening one from rtx to rtx_expr_list *, and using methods
6203         of said class.
6204         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
6205         loop over forced_labels, introduce strengthen it from rtx to
6206         rtx_expr_list *, using methods to clarify the code.
6207         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
6208         to rtx_expr_list *, using methods of said class to clarify the
6209         code.
6210         * reload1.c (set_initial_label_offsets): Split local "x" into two
6211         per-loop variables, strengthening the first from rtx to
6212         rtx_expr_list * and using methods.
6214 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6216         * coretypes.h (class rtx_expr_list): Add forward declaration.
6217         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
6218         * gengenrtl.c (special_rtx): Add EXPR_LIST.
6219         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
6220         invariant: GET_CODE (X) == EXPR_LIST.
6221         (is_a_helper <rtx_expr_list *>::test): New.
6222         (rtx_expr_list::next): New.
6223         (rtx_expr_list::element): New.
6224         (gen_rtx_EXPR_LIST): New.
6226 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6228         * varasm.c (mark_constants): Convert a GET_CODE check into a
6229         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6230         Use methods of rtx_sequence to clarify the code.
6232 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6234         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
6235         local "seq" via a checked cast, and use methods of rtx_sequence
6236         to simplify the code.
6238 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6240         * resource.c (mark_referenced_resources): Strengthen local
6241         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6242         using methods of rtx_sequence to clarify the code.
6243         (find_dead_or_set_registers): Within the switch statement, convert
6244         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
6245         the JUMP_P handling, introduce another local "seq", adding a
6246         checked cast to rtx_sequence *.  In both cases, use methods of
6247         rtx_sequence to clarify the code.
6248         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6249         via a checked cast, and use methods of rtx_sequence to simplify
6250         the code.
6252 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6254         * reorg.c (redundant_insn): In two places in the function, replace
6255         a check of GET_CODE with a dyn_cast, introducing local "seq", and
6256         usings methods of rtx_sequence to clarify the code.
6258 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6260         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6261         local "seq" with a checked cast, and use methods of rtx_sequence
6262         to clarify the code.
6264 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6266         * function.c (contains): Introduce local "seq" for PATTERN (insn),
6267         with a checked cast, in the region for where we know it's a
6268         SEQUENCE.  Use methods of rtx_sequence.
6270 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6272         * final.c (get_attr_length_1): Replace GET_CODE check with a
6273         dyn_cast, introducing local "seq" and the use of methods of
6274         rtx_sequence.
6275         (shorten_branches): Likewise, introducing local "body_seq".
6276         Strengthen local "inner_insn" from rtx to rtx_insn *.
6277         (reemit_insn_block_notes): Replace GET_CODE check with a
6278         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
6279         Use methods of rtx_sequence.
6280         (final_scan_insn): Likewise, introducing local "seq" for when
6281         "body" is known to be a SEQUENCE, using its methods.
6283 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6285         * except.c (can_throw_external): Strengthen local "seq" from rtx
6286         to rtx_sequence *.  Use methods of rtx_sequence.
6287         (insn_nothrow_p): Likewise.
6289 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6291         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
6292         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6293         Use methods of rtx_sequence.
6294         (scan_trace): Likewise for local "pat".
6296 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6298         * coretypes.h (class rtx_sequence): Add forward declaration.
6299         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
6300         invariant: GET_CODE (X) == SEQUENCE.
6301         (is_a_helper <rtx_sequence *>::test): New.
6302         (is_a_helper <const rtx_sequence *>::test): New.
6303         (rtx_sequence::len): New.
6304         (rtx_sequence::element): New.
6305         (rtx_sequence::insn): New.
6307 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6309         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
6310         rtx_insn_list **.
6311         (alloc_INSN_LIST): Strengthen return type from rtx to
6312         rtx_insn_list *.
6313         (copy_INSN_LIST): Likewise for return type and param.
6314         (concat_INSN_LIST): Likewise for both params and return type.
6315         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
6316         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
6317         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
6318         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
6320         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
6321         "implicit_sets", "control_uses", "clobbers" from rtx to
6322         rtx_insn_list *.
6323         (struct deps_desc): Likewise for fields "pending_read_insns",
6324         "pending_write_insns", "pending_jump_insns",
6325         "last_pending_memory_flush", "last_function_call",
6326         "last_function_call_may_noreturn", "sched_before_next_call",
6327         "sched_before_next_jump".
6328         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
6329         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
6331         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
6332         from rtx to rtx_insn_list *.
6333         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
6334         rtx_insn_list *.
6336         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
6337         to rtx_insn_list **.
6338         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
6339         rtx_insn_list *.
6340         (queue_insn): Likewise for local "link".
6341         (struct haifa_saved_data): Strengthen field "insn_queue" from
6342         rtx * to rtx_insn_list **.
6343         (save_backtrack_point): Update allocation of save->insn_queue to
6344         reflect the strengthening of elements from rtx to rtx_insn_list *.
6345         (queue_to_ready): Strengthen local "link" from rtx to
6346         rtx_insn_list *; use methods "next" and "insn" when traversing the
6347         list.
6348         (early_queue_to_ready): Likewise for locals "link", "next_link",
6349         "prev_link".
6350         (schedule_block): Update allocation of insn_queue to reflect the
6351         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
6352         local "link" from rtx to rtx_insn_list *, and use methods when
6353         working it.
6354         (add_to_speculative_block): Strengthen locals "twins" and
6355         "next_node" from rtx to rtx_insn_list *, and use methods when
6356         working with them.  Strengthen local "twin" from rtx to
6357         rtx_insn *, eliminating a checked cast.
6358         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
6359         from rtx to rtx_insn_list *, and use methods when working with
6360         them.
6362         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
6363         from rtx to rtx_insn_list *, adding a checked cast.
6364         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
6365         rtx_insn_list **.
6366         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
6367         "newlink" from rtx to rtx_insn_list *.  Strengthen local
6368         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
6369         from rtx to rtx_insn *.
6370         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
6371         from rtx to rtx_insn_list *.  Use methods of the latter class.
6372         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
6373         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
6374         (remove_free_INSN_LIST_node): Strengthen return type and local
6375         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
6376         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
6377         rtx_insn_list *, using "insn" method.
6379         * sched-deps.c (add_dependence_list):  Strengthen param "list"
6380         from rtx to rtx_insn_list *, and use methods when working with it.
6381         (add_dependence_list_and_free):  Strengthen param "listp" from
6382         rtx * to rtx_insn_list **.
6383         (remove_from_dependence_list): Strenghten param "listp" from rtx *
6384         to rtx_insn_list **, and use methods when working with *listp.
6385         (remove_from_both_dependence_lists): Strengthen param "listp" from
6386         rtx * to rtx_insn_list **
6387         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
6388         to rtx_insn_list **.  Eliminate local "link", in favor of two new
6389         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
6390         respectively.
6391         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
6392         by introducing local "cond_deps".
6393         (remove_from_deps): Strengthen param "insn" from rtx to
6394         rtx_insn *.
6396         * sched-rgn.c (concat_insn_mem_list): Strengthen param
6397         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
6398         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
6399         Use methods of rtx_insn_list.
6401         * store-motion.c (struct st_expr): Strengthen fields
6402         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
6403         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
6404         rtx_insn_list *.
6405         (find_moveable_store): Split out "tmp" into multiple more-tightly
6406         scoped locals.  Use methods of rtx_insn_list *.
6407         (compute_store_table): Strengthen local "tmp" from rtx to
6408         rtx_insn *.  Use methods of rtx_insn_list *.
6410 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6412         * coretypes.h (class rtx_insn_list): Add forward declaration.
6413         * rtl.h (class rtx_insn_list): New subclass of rtx_def
6414         (is_a_helper <rtx_insn_list *>::test): New.
6415         (rtx_insn_list::next): New.
6416         (rtx_insn_list::insn): New.
6417         (gen_rtx_INSN_LIST): Add prototype.
6418         * emit-rtl.c (gen_rtx_INSN_LIST): New.
6419         * gengenrtl.c (special_rtx): Add INSN_LIST.
6421 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6423         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
6424         "prev" from rtx to rtx_insn *.
6426 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6428         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
6429         functions.  Require merely an rtx for now, not an rtx_insn *.
6430         (BLOCK_FOR_INSN): Likewise.
6431         (INSN_LOCATION): Likewise.
6432         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
6434 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6436         * rtl.h (PATTERN): Convert this macro into a pair of inline
6437         functions, for now, requiring const_rtx and rtx.
6439 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6441         * target.def (unwind_emit): Strengthen param "insn" from rtx to
6442         rtx_insn *.
6443         (final_postscan_insn): Likewise.
6444         (adjust_cost): Likewise.
6445         (adjust_priority): Likewise.
6446         (variable_issue): Likewise.
6447         (macro_fusion_pair_p): Likewise.
6448         (dfa_post_cycle_insn): Likewise.
6449         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
6450         (first_cycle_multipass_issue): Likewise.
6451         (dfa_new_cycle): Likewise.
6452         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
6453         (speculate_insn): Likewise for param "insn".
6454         (gen_spec_check): Likewise for params "insn" and "label".
6455         (get_insn_spec_ds): Likewise for param "insn".
6456         (get_insn_checked_ds): Likewise.
6457         (dispatch_do): Likewise.
6458         (dispatch): Likewise.
6459         (cannot_copy_insn_p): Likewise.
6460         (invalid_within_doloop): Likewise.
6461         (legitimate_combined_insn): Likewise.
6462         (needed): Likewise.
6463         (after): Likewise.
6465         * doc/tm.texi: Automatically updated to reflect changes to
6466         target.def.
6468         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
6469         working with insn.
6470         (schedule_block): Likewise.
6471         (sched_init): Likewise.
6472         (sched_speculate_insn): Strengthen param "insn" from rtx to
6473         rtx_insn *.
6474         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
6475         working with insn.
6476         * hooks.c (hook_bool_rtx_true): Rename to...
6477         hook_bool_rtx_insn_true): ...this, and strengthen first param from
6478         rtx to rtx_insn *.
6479         (hook_constcharptr_const_rtx_null): Rename to...
6480         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6481         first param from const_rtx to const rtx_insn *.
6482         (hook_bool_rtx_int_false): Rename to...
6483         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6484         param from rtx to rtx_insn *.
6485         (hook_void_rtx_int): Rename to...
6486         (hook_void_rtx_insn_int): ...this, and strengthen first param from
6487         rtx to rtx_insn *.
6489         * hooks.h (hook_bool_rtx_true): Rename to...
6490         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
6491         rtx to rtx_insn *.
6492         (hook_bool_rtx_int_false): Rename to...
6493         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6494         param from rtx to rtx_insn *.
6495         (hook_void_rtx_int): Rename to...
6496         (hook_void_rtx_insn_int): ...this, and strengthen first param from
6497         rtx to rtx_insn *.
6498         (hook_constcharptr_const_rtx_null): Rename to...
6499         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6500         first param from const_rtx to const rtx_insn *.
6502         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
6503         and local "prev" from rtx to rtx_insn *.
6505         * sched-int.h (sched_speculate_insn): Strengthen first param from
6506         rtx to rtx_insn *.
6508         * sel-sched.c (create_speculation_check): Likewise for local "label".
6509         * targhooks.c (default_invalid_within_doloop): Strengthen param
6510         "insn" from const_rtx to const rtx_insn *.
6511         * targhooks.h (default_invalid_within_doloop): Strengthen param
6512         from const_rtx to const rtx_insn *.
6514         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
6515         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
6517         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
6518         "insn".
6519         (arc_invalid_within_doloop): Likewise, with const.
6521         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
6522         (arm_cannot_copy_insn_p): Likewise for param "insn".
6523         (arm_unwind_emit): Likewise.
6525         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
6526         "dep_insn".
6528         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
6529         (c6x_variable_issue): Likewise.  Removed now-redundant checked
6530         cast.
6531         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
6533         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
6534         Likewise for param "insn".
6535         (epiphany_mode_after): Likewise.
6536         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
6537         params "insn", "dep_insn".
6538         (epiphany_mode_needed): Likewise for param "insn".
6539         (epiphany_mode_after): Likewise.
6541         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
6542         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6543         (ix86_avx_u128_mode_needed): Likewise.
6544         (ix86_i387_mode_needed): Likewise.
6545         (ix86_mode_needed): Likewise.
6546         (ix86_avx_u128_mode_after): Likewise.
6547         (ix86_mode_after): Likewise.
6548         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
6549         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
6550         (ix86_adjust_priority): Likewise for param "insn".
6551         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
6552         (do_dispatch): Likewise.
6553         (has_dispatch): Likewise.
6554         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6556         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
6557         reflect renaming of default hook implementation from
6558         hook_constcharptr_const_rtx_null to
6559         hook_constcharptr_const_rtx_insn_null.
6560         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
6561         rtx to rtx_insn *.
6562         (ia64_variable_issue): Likewise for param "insn".
6563         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
6564         (ia64_dfa_new_cycle): Likewise.
6565         (ia64_get_insn_spec_ds): Likewise.
6566         (ia64_get_insn_checked_ds): Likewise.
6567         (ia64_speculate_insn): Likewise.
6568         (ia64_gen_spec_check): Likewise for params "insn", "label".
6569         (ia64_asm_unwind_emit): Likewise for param "insn".
6571         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
6573         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
6574         "insn", "def_insn".
6575         (m68k_sched_variable_issue): Likewise for param "insn".
6577         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
6578         "def_insn".
6580         * config/microblaze/microblaze.c (microblaze_adjust_cost):
6581         Likewise for params "insn", "dep".
6583         * config/mips/mips.c (mips_adjust_cost): Likewise.
6584         (mips_variable_issue): Likewise for param "insn".
6585         (mips_final_postscan_insn): Likewise.
6587         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
6588         for params "insn", "dep".
6590         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
6591         "dep_insn".
6592         (pa_adjust_priority): Likewise for param "insn".
6594         * config/picochip/picochip.c (picochip_sched_adjust_cost):
6595         Likewise for params "insn", "dep_insn".
6597         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
6598         param "insn".
6599         (rs6000_variable_issue): Likewise.
6600         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
6601         (rs6000_debug_adjust_cost): Likewise.
6602         (rs6000_adjust_priority): Likewise for param "insn".
6603         (rs6000_use_sched_lookahead_guard): Likewise.
6604         (get_next_active_insn): Likewise for return type and both params.
6605         (redefine_groups): Likewise for params "prev_head_insn", "tail"
6606         and locals "insn", "next_insn".
6607         (pad_groups): Likewise.
6609         * config/s390/s390.c (s390_adjust_priority): Likewise for param
6610         "insn".
6611         (s390_cannot_copy_insn_p): Likewise.
6612         (s390_sched_variable_issue): Likewise for third param, eliminating
6613         checked cast.
6614         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
6615         default hook implementation from hook_constcharptr_const_rtx_null
6616         to hook_constcharptr_const_rtx_insn_null.
6618         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
6619         from rtx to rtx_insn *.
6620         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
6621         (sh_variable_issue): Likewise for param "insn".
6622         (sh_dfa_new_cycle): Likewise.
6623         (sh_mode_needed): Likewise.
6624         (sh_mode_after): Likewise.
6626         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
6627         params "insn", "dep_insn".
6628         (hypersparc_adjust_cost): Likewise.
6629         (sparc_adjust_cost): Likewise.
6631         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
6632         param, eliminated checked cast.
6633         (spu_sched_adjust_cost): Likewise for first and third params.
6635         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
6636         params "insn" and "dep_insn" from rtx to rtx_insn *.
6638         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
6640 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6642         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
6643         (set_is_load_p): ...this, updating to work on a SET pattern rather
6644         than an insn.
6645         (is_store_insn): Rename to...
6646         (set_is_store_p): ...this, updating to work on a SET pattern
6647         rather than an insn.
6648         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
6649         top of function to where it is needed.  Rewrite the bogus
6650         condition that checks for "insn" and "dep" being PARALLEL to
6651         instead use single_set, introducing locals "insn_set" and
6652         "dep_set".  Given that we only ever returned "cost" for a non-pair
6653         of SETs, bail out early if we don't have a pair of SET.
6654         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
6655         use the new locals "insn_set" and "dep_set", and update calls to
6656         is_load_insn and is_store_insn to be calls to set_is_load_p and
6657         set_is_store_p.
6659 2014-08-27  Guozhi Wei  <carrot@google.com>
6661         PR target/62262
6662         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
6663         amount before using it.
6665 2014-08-27  Richard Biener  <rguenther@suse.de>
6667         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
6668         get_maxval_strlen inside a more useful API.
6669         (gimple_fold_builtin_with_strlen): Remove and fold into ...
6670         (gimple_fold_builtin): ... caller.
6671         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
6672         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
6673         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
6674         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
6675         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
6676         gimple_fold_builtin_sprintf): Adjust to compute maxval
6677         themselves.
6679 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
6681         PR other/62248
6682         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
6684 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6685             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6686             Anna Tikhonova  <anna.tikhonova@intel.com>
6687             Ilya Tocar  <ilya.tocar@intel.com>
6688             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6689             Ilya Verbin  <ilya.verbin@intel.com>
6690             Kirill Yukhin  <kirill.yukhin@intel.com>
6691             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6693         * config/i386/sse.md
6694         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
6695         Use `concat_tg_mode' attribute to determine asm register size.
6697 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6698             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6699             Anna Tikhonova  <anna.tikhonova@intel.com>
6700             Ilya Tocar  <ilya.tocar@intel.com>
6701             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6702             Ilya Verbin  <ilya.verbin@intel.com>
6703             Kirill Yukhin  <kirill.yukhin@intel.com>
6704             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6706         * config/i386/sse.md
6707         (define_mode_iterator VI48_AVX512VL): New.
6708         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
6709         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
6710         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
6711         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6712         with VI1): Change mode iterator.
6713         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6714         with VI_ULOADSTORE_BW_AVX512VL): New.
6715         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6716         with VI_ULOADSTORE_F_AVX512VL): Ditto.
6717         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6718         with VI1): Change mode iterator.
6719         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6720         with VI_ULOADSTORE_BW_AVX512VL): New.
6721         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6722         with VI_ULOADSTORE_F_AVX512VL): Ditto.
6723         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6724         with VI1): Change mode iterator.
6725         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6726         with VI_ULOADSTORE_BW_AVX512VL): New.
6727         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6728         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
6729         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
6730         (define_insn "<avx512>_storedqu<mode>_mask" with
6731         VI48_AVX512VL): New.
6732         (define_insn "<avx512>_storedqu<mode>_mask" with
6733         VI12_AVX512VL): Ditto.
6735 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6736             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6737             Anna Tikhonova  <anna.tikhonova@intel.com>
6738             Ilya Tocar  <ilya.tocar@intel.com>
6739             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6740             Ilya Verbin  <ilya.verbin@intel.com>
6741             Kirill Yukhin  <kirill.yukhin@intel.com>
6742             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6744         * config/i386/sse.md
6745         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
6746         (define_mode_iterator VI48_AVX512BW): New.
6747         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
6748         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6749         with VI48_AVX2_48_AVX512F): New.
6750         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6751         with VI2_AVX512VL): Ditto.
6753 2014-08-27  Richard Biener  <rguenther@suse.de>
6755         PR middle-end/62239
6756         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
6757         (fold_builtin_3): Do not fold strcat_chk here.
6758         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
6759         from builtins.c.
6760         (gimple_fold_builtin): Fold strcat_chk here.
6762 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
6764         * dwarf2out.h (dwarf2out_decl): Remove prototype.
6765         * dwarf2out.c (dwarf2out_decl): Make static.
6767 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
6769         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
6771 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6773         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
6774         from rtx to rtx_insn *.
6775         (cselib_lookup_from_insn): Likewise for final param.
6776         (cselib_subst_to_values_from_insn): Likewise.
6777         (cselib_add_permanent_equiv): Likewise.
6779         * cselib.c (cselib_current_insn): Likewise for this variable.
6780         (cselib_subst_to_values_from_insn): Likewise for param "insn".
6781         (cselib_lookup_from_insn): Likewise.
6782         (cselib_add_permanent_equiv): Likewise for param "insn" and local
6783         "save_cselib_current_insn".
6784         (cselib_process_insn): Replace use of NULL_RTX with NULL.
6786         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
6787         from rtx to rtx_insn *.
6789 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6791         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
6792         rtx_insn *.
6794 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6796         * df.h (df_dump_insn_problem_function): Strengthen first param of
6797         this callback from const_rtx to const rtx_insn *.
6798         (struct df_insn_info): Strengthen field "insn" from rtx to
6799         rtx_insn *.
6800         (DF_REF_INSN): Eliminate this function, reinstating the older
6801         macro definition.
6802         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
6803         (df_reg_defined): Likewise.
6804         (df_find_use): Likewise.
6805         (df_reg_used): Likewise.
6806         (df_dump_insn_top): Strengthen param 1 from const_rtx to
6807         const rtx_insn *.
6808         (df_dump_insn_bottom): Likewise.
6809         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
6810         (df_insn_debug_regno): Likewise.
6811         (debug_df_insn): Likewise.
6812         (df_rd_simulate_one_insn): Likewise for param 2.
6813         (df_word_lr_simulate_defs): Likewise for param 1.
6814         (df_word_lr_simulate_uses): Likewise.
6815         (df_md_simulate_one_insn): Likewise for param 2.
6816         (df_simulate_find_noclobber_defs): Likewise for param 1.
6817         (df_simulate_find_defs): Likewise.
6818         (df_simulate_defs): Likewise.
6819         (df_simulate_uses): Likewise.
6820         (df_simulate_one_insn_backwards): Likewise for param 2.
6821         (df_simulate_one_insn_forwards): Likewise.
6822         (df_uses_create): Likewise for param 2.
6823         (df_insn_create_insn_record): Likewise for param 1.
6824         (df_insn_delete): Likewise.
6825         (df_insn_rescan): Likewise.
6826         (df_insn_rescan_debug_internal): Likewise.
6827         (df_insn_change_bb): Likewise.
6828         (df_notes_rescan): Likewise.
6829         * rtl.h (remove_death): Likewise for param 2.
6830         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
6831         const rtx_insn *.
6832         * sched-int.h (reemit_notes): Strengthen param from rtx to
6833         rtx_insn *.
6834         * valtrack.h (propagate_for_debug): Likewise for param 1.
6836         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
6837         local "tmp_rtx" from const_rtx to const rtx_insn *.
6838         * combine.c (remove_death): Strengthen param "insn" from rtx to
6839         rtx_insn *.
6840         (move_deaths): Likewise for local "where_dead".
6841         * cse.c (delete_trivially_dead_insns): Introduce local
6842         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
6843         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
6844         rtx_insn *.
6845         (df_reg_defined): Likewise.
6846         (df_find_use): Likewise.
6847         (df_reg_used): Likewise.
6848         (df_dump_insn_problem_data): Strengthen param "insn" from
6849         const_rtx to const rtx_insn *.
6850         (df_dump_insn_top): Likewise.
6851         (df_dump_insn_bottom): Likewise.
6852         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
6853         (df_insn_debug_regno): Likewise.
6854         (debug_df_insn): Likewise.
6855         (DF_REF_INSN): Delete.
6856         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
6857         from rtx to rtx_insn *.
6858         (df_chain_insn_top_dump): Strengthen param "insn" from
6859         const_rtx to const rtx_insn *.
6860         (df_chain_insn_bottom_dump): Likewise.
6861         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
6862         rtx_insn *.
6863         (df_word_lr_simulate_uses): Likewise.
6864         (df_print_note): Likewise.
6865         (df_remove_dead_and_unused_notes): Likewise.
6866         (df_set_unused_notes_for_mw): Likewise.
6867         (df_set_dead_notes_for_mw): Likewise.
6868         (df_create_unused_note): Likewise.
6869         (df_simulate_find_defs): Likewise.
6870         (df_simulate_find_uses): Likewise.
6871         (df_simulate_find_noclobber_defs): Likewise.
6872         (df_simulate_defs): Likewise.
6873         (df_simulate_uses): Likewise.
6874         (df_simulate_one_insn_backwards): Likewise.
6875         (df_simulate_one_insn_forwards): Likewise.
6876         (df_md_simulate_one_insn): Likewise.
6877         * df-scan.c (df_uses_create): Likewise.
6878         (df_insn_create_insn_record): Likewise.
6879         (df_insn_delete): Likewise.
6880         (df_insn_rescan): Likewise.
6881         (df_insn_rescan_debug_internal): Likewise.
6882         (df_insn_change_bb): Likewise.
6883         (df_notes_rescan): Likewise.
6884         (df_refs_add_to_chains): Likewise.
6885         (df_insn_refs_verify): Likewise.
6886         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
6887         when invoking df_insn_delete.
6888         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
6889         (set_unique_reg_note): Add checked cast.
6890         * final.c (cleanup_subreg_operands): Likewise.
6891         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
6892         "insn" from rtx to rtx_insn *.
6893         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
6894         "last" from rtx to rtx_insn *.
6895         * ira-emit.c (change_regs_in_insn): New function.
6896         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
6897         Invoke change_regs_in_insn rather than change_regs.
6898         * ira.c (update_equiv_regs): Strengthen locals "insn",
6899         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
6900         for_each_rtx_in_insn rather than for_each_rtx.
6901         * recog.c (confirm_change_group): Add checked casts.
6902         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
6903         Add checked cast.
6904         (peep2_fill_buffer): Add checked cast.
6905         * rtlanal.c (remove_note): Likewise.
6906         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
6907         locals "next" "end" from rtx to rtx_insn *.
6909 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6911         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
6912         to rtx_insn *.
6913         (struct reg_use_data): Likewise for field "insn".
6914         (insn_cost): Likewise for param.
6915         (real_insn_for_shadow): Likewise for return type and param.
6916         (increase_insn_priority): Likewise for param 1.
6917         (debug_dependencies): Likewise for both params.
6919         * haifa-sched.c (insn_delay): Likewise for param "insn".
6920         (real_insn_for_shadow): Likewise for return type and param "insn".
6921         (update_insn_after_change): Likewise for param "insn".
6922         (recompute_todo_spec): Likewise for param "next" and locals "pro",
6923         "other".
6924         (insn_cost): Likewise for param "insn".
6925         (increase_insn_priority): Likewise.
6926         (calculate_reg_deaths): Likewise.
6927         (setup_insn_reg_pressure_info): Likewise.
6928         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
6929         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
6930         (model_recompute): Likewise.
6931         (must_restore_pattern_p): Likewise for param "next".
6932         (model_excess_cost): Likewise for param "insn".
6933         (queue_remove): Likewise.
6934         (adjust_priority): Likewise for param "prev".
6935         (update_register_pressure): Likewise for param "insn".
6936         (setup_insn_max_reg_pressure): Likewise for local "insn".
6937         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
6938         (model_add_to_schedule): Likewise.
6939         (model_reset_queue_indices): Likewise for local "insn".
6940         (unschedule_insns_until): Strengthen local "recompute_vec" from
6941         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
6942         "con" from rtx to rtx_insn *.
6943         (restore_last_backtrack_point): Likewise for both locals "x". Add
6944         checked casts.
6945         (estimate_insn_tick): Likewise for param "insn".
6946         (commit_schedule): Likewise for params "prev_head", "tail" and
6947         local "x".
6948         (verify_shadows): Likewise for locals "i1", "i2".
6949         (dump_insn_stream): Likewise for params "head", "tail" and locals
6950         "next_tail", "insn".
6951         (schedule_block): Likewise for locals "insn", "x".  Add a checked
6952         cast.
6953         (fix_inter_tick): Likewise for params "head", "tail".
6954         (create_check_block_twin): Likewise for local "jump".
6955         (haifa_change_pattern): Likewise for param "insn".
6956         (haifa_speculate_insn): Likewise.
6957         (dump_new_block_header): Likewise for params "head", "tail".
6958         (fix_jump_move): Likewise for param "jump".
6959         (move_block_after_check): Likewise.
6960         (sched_init_insn_luid): Likewise for param "insn".
6961         (sched_init_luids): Likewise for local "insn".
6962         (insn_luid): Likewise for param "insn".
6963         (init_h_i_d): Likewise.
6964         (haifa_init_h_i_d): Likewise for local "insn".
6965         (haifa_init_insn): Likewise for param "insn".
6966         * sched-deps.c (add_dependence): Likewise for local "real_pro",
6967         "other".
6968         (create_insn_reg_use): Likewise for param "insn".
6969         (setup_insn_reg_uses): Likewise.  Add a checked cast.
6970         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
6971         "tail" from rtx to rtx_insn *.
6972         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
6973         "insn", "next_tail".
6975 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6977         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
6978         from rtx to rtx_insn *.
6979         (model_add_to_schedule): Likewise for locals "start", "end",
6980         "iter".
6982 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6984         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
6985         rtx_insn *.
6986         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
6987         "to" and locals "insn", "next", "copy".  Remove now-redundant
6988         checked cast.
6990 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6992         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
6993         rtx_insn * and param 4 from rtx * to rtx_insn **.
6994         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
6995         param 2 from rtx * to rtx_insn **.
6997         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
6998         rtx_insn * and final param from rtx * to rtx_insn **.
7000         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
7001         from rtx to rtx_insn *.
7002         (try_head_merge_bb): Likewise for both locals named "move_upto".
7003         * df-problems.c (can_move_insns_across): Likewise for params
7004         "from", "to", "across_from", "across_to" and locals "insn",
7005         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
7006         rtx_insn **.
7007         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
7008         from rtx to rtx_insn *.
7009         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
7010         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
7011         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
7012         rtx_insn *.
7013         (noce_try_abs): Likewise.
7014         (noce_get_condition): Likewise for param "jump".  Strengthen param
7015         "earliest" from rtx * to rtx_insn **.
7016         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
7017         rtx_insn *.
7018         (find_cond_trap): Likewise.
7019         (dead_or_predicable): Likewise for local "earliest".
7020         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
7021         checked cast.
7022         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
7023         and local "prev".  Strengthen param "earliest" from rtx * to
7024         rtx_insn **.
7025         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
7026         Strengthen param "earliest" from rtx * to rtx_insn **.
7028 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7030         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
7031         "to" and local "insn" from rtx to rtx_insn *.
7033 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7035         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
7036         from rtx to rtx_insn *.
7037         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
7038         (code_motion_path_driver): Likewise for local "last_insn".
7039         (simplify_changed_insns): Likewise for local "insn".
7041 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7043         * rtl.h (push_to_sequence): Strengthen param from rtx to
7044         rtx_insn *.
7045         (push_to_sequence2): Likewise for both params.
7046         (delete_insns_since): Likewise for param.
7047         (reorder_insns_nobb): Likewise for all three params.
7048         (set_new_first_and_last_insn): Likewise for both params.
7050         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
7051         rtx_insn *.  Remove now-redundant cast.
7052         (set_last_insn): Likewise.
7054         * builtins.c (expand_builtin_return): Strengthen local
7055         "call_fusage" from rtx to rtx_insn *.
7056         * cfgrtl.c (create_basic_block_structure): Likewise for local
7057         "after".
7058         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
7059         "first", "last" and local "insn".
7060         (delete_insns_since): Likewise for param "from".
7061         (reorder_insns_nobb): Likewise for params "from", "to", "after"
7062         and local "x".
7063         (push_to_sequence): Likewise for param "first" and local "last".
7064         (push_to_sequence2): Likewise for params "first" and "last".
7065         * lra.c (emit_add3_insn): Likewise for local "last".
7066         (lra_emit_add): Likewise.
7067         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
7068         "last_insn".
7069         (process_address_1): Likewise for locals "insn", last".
7070         * modulo-sched.c (ps_first_note): Likewise for return type.
7071         * optabs.c (expand_binop_directly): Likewise for param "last".
7073 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7075         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
7076         to rtx_insn*.
7077         * emit-rtl.c (get_last_insn_anywhere): Likewise.
7079 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7081         * function.h (struct sequence_stack): Strengthen fields "first"
7082         and "last" from rtx to rtx_insn *.
7083         (struct emit_status): Likewise for fields "x_first_insn" and
7084         "x_last_insn".
7086         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
7087         (set_first_insn): Add checked cast.
7088         (get_last_insn): Remove now-redundant checked cast.
7089         (set_last_insn): Add checked cast.
7091         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
7092         "saved_first" and "saved_last" from rtx to rtx_insn *.
7094 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7096         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
7097         (unlink_insn_chain): Strengthen both params from rtx to
7098         rtx_insn *.
7100         * cfgrtl.c (cfg_layout_function_header): Likewise for this
7101         variable.
7102         (unlink_insn_chain): Likewise for params "first" and "last".
7103         Remove now-redundant checked cast.
7104         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
7105         (fixup_reorder_chain): Strengthen local "insn" from rtx to
7106         rtx_insn *.
7107         * emit-rtl.c (link_insn_into_chain): Likewise for all three
7108         params.
7109         (add_insn): Likewise for param "insn" and local "prev".
7110         (add_insn_after_nobb): Likewise for both params and local "next".
7111         (add_insn_before_nobb): Likewise for both params and local "prev".
7112         (add_insn_after): Rename param "after" to "uncast_after",
7113         introducing local "after" with another checked cast.
7114         (add_insn_before): Rename params "insn" and "before", giving them
7115         "uncast_" prefixes, adding the old names back using checked casts.
7116         (emit_note_after): Likewise for param "after".
7117         (emit_note_before): Likewise for param "before".
7118         (emit_label): Add a checked cast.
7120 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7122         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
7123         "insn" from rtx to rtx_insn *.
7125         * cselib.c (cselib_record_sets_hook): Likewise.
7127         * var-tracking.c (add_with_sets): Likewise, renaming back from
7128         "uncast_insn" to "insn" and eliminating the checked cast from rtx
7129         to rtx_insn *.
7131 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7133         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
7134         and "header_" from rtx to rtx_insn *.
7135         (struct basic_block_d): Likewise for field "head_" within "x"
7136         field of union basic_block_il_dependent.
7137         (BB_HEAD): Drop function...
7138         (SET_BB_HEAD): ...and this function in favor of...
7139         (BB_HEAD): ...reinstate macro.
7140         (BB_END): Drop function...
7141         (SET_BB_END): ...and this function in favor of...
7142         (BB_END): ...reinstate macro.
7143         (BB_HEADER): Drop function...
7144         (SET_BB_HEADER): ...and this function in favor of...
7145         (BB_HEADER): ...reinstate macro.
7147         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
7148         (fix_crossing_unconditional_branches): Likewise.
7149         * caller-save.c (save_call_clobbered_regs): Likewise.
7150         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
7151         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
7152         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7153         (merge_blocks_move_successor_nojumps): Likewise.
7154         (outgoing_edges_match): Update use of for_each_rtx to
7155         for_each_rtx_in_insn.
7156         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
7157         (expand_gimple_cond): Likewise.
7158         (expand_gimple_tailcall): Likewise.
7159         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
7160         SET_BB_END.
7161         (construct_exit_block): Drop use of SET_BB_END.
7162         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
7163         rtx_insn *.
7164         (delete_insn): Rename param "insn" to "uncast_insn", introducing
7165         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
7166         SET_BB_HEAD and SET_BB_END.
7167         (create_basic_block_structure): Drop use of SET_BB_HEAD and
7168         SET_BB_END.
7169         (rtl_delete_block): Drop use of SET_BB_HEAD.
7170         (rtl_split_block): Drop use of SET_BB_END.
7171         (emit_nop_for_unique_locus_between): Likewise.
7172         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
7173         (block_label): Drop use of SET_BB_HEAD.
7174         (fixup_abnormal_edges): Drop use of SET_BB_END.
7175         (record_effective_endpoints): Drop use of SET_BB_HEADER.
7176         (relink_block_chain): Likewise.
7177         (fixup_reorder_chain): Drop use of SET_BB_END.
7178         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
7179         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
7180         rtx_insn **.  Drop use of SET_BB_HEADER.
7181         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
7182         SET_BB_HEAD.
7183         (BB_HEAD): Delete this function.
7184         (SET_BB_HEAD): Likewise.
7185         (BB_END): Likewise.
7186         (SET_BB_END): Likewise.
7187         (BB_HEADER): Likewise.
7188         (SET_BB_HEADER): Likewise.
7189         * emit-rtl.c (add_insn_after):  Rename param "insn" to
7190         "uncast_insn", adding a new local "insn" and a checked cast to
7191         rtx_insn *.  Drop use of SET_BB_END.
7192         (remove_insn): Strengthen locals "next" and "prev" from rtx to
7193         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
7194         (reorder_insns): Drop use of SET_BB_END.
7195         (emit_insn_after_1): Strengthen param "first" and locals "last",
7196         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
7197         (emit_pattern_after_noloc): Add checked cast.
7198         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
7199         (restore_other_notes): Likewise.
7200         (move_insn): Likewise.
7201         (sched_extend_bb): Likewise.
7202         (fix_jump_move): Likewise.
7203         * ifcvt.c (noce_process_if_block): Likewise.
7204         (dead_or_predicable): Likewise.
7205         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
7206         * reg-stack.c (change_stack): Drop use of SET_BB_END.
7207         * sel-sched-ir.c (sel_move_insn): Likewise.
7208         * sel-sched.c (move_nop_to_previous_block): Likewise.
7210         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
7211         SET_BB_END.
7212         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7214 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7216         * basic-block.h (create_basic_block_structure): Strengthen params
7217         1 "head" and 2 "end" from rtx to rtx_insn *.
7218         * cfgrtl.c (create_basic_block_structure): Likewise.
7219         (rtl_create_basic_block): Update casts from void * to rtx to
7220         rtx_insn *, so that we can pass them as rtx_insn * to
7221         create_basic_block_structure.
7222         * sel-sched-ir.c (sel_create_basic_block): Likewise.
7224 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7226         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
7227         rtx_insn **.
7228         (check_for_inc_dec): Strengthen param "insn" from rtx to
7229         rtx_insn *.
7231         * cselib.h (cselib_process_insn): Likewise.
7233         * cselib.c (cselib_record_sets): Likewise.
7234         (cselib_process_insn): Likewise.
7236         * dse.c (struct insn_info): Likewise for field "insn".
7237         (check_for_inc_dec_1): Likewise for local "insn".
7238         (check_for_inc_dec): Likewise for param "insn".
7239         (scan_insn): Likewise.
7240         (dse_step1): Likewise for local "insn".
7242         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7243         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
7245 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7247         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7248         from rtx to rtx_insn *.
7249         (DEP_PRO): Delete this function and...
7250         (SET_DEP_PRO): ...this function in favor of...
7251         (DEP_PRO): ...reinstate this macro.
7252         (DEP_CON): Delete this function and...
7253         (SET_DEP_CON): ...this function in favor of...
7254         (DEP_CON): ...reinstate this old macro.
7255         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7256         (init_dep): Likewise.
7257         (set_priorities): Likewise for both params.
7258         (sd_copy_back_deps): Likewise for params 1 and 2.
7260         * haifa-sched.c (priority): Likewise for param "insn" and local
7261         "next".
7262         (set_priorities): Likewise for params "head" and "tail" and local
7263         "insn".
7264         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
7265         local "consumer".
7266         (add_to_speculative_block): Add a checked cast.
7267         (create_check_block_twin): Drop use of SET_DEP_CON.
7268         (add_jump_dependencies): Strengthen params "insn" and "jump" from
7269         rtx to rtx_insn *.
7271         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
7272         Drop use of SET_DEP_PRO
7273         (init_dep): Strengthen params "pro" and "con" from rtx to
7274         rtx_insn *.
7275         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
7276         use of SET_DEP_CON.
7277         (DEP_PRO): Delete.
7278         (DEP_CON): Delete.
7279         (SET_DEP_PRO): Delete.
7280         (SET_DEP_CON): Delete.
7282 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7284         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
7285         from rtx to rtx_insn *.
7286         (VINSN_INSN_RTX): Eliminate rvalue function and...
7287         (SET_VINSN_INSN): ...lvalue function in favor of...
7288         (VINSN_INSN_RTX): reinstate this old macro.
7290         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
7291         in favor of VINSN_INSN_RTX.
7292         (VINSN_INSN_RTX): Delete this function.
7293         (SET_VINSN_INSN_RTX): Likewise.
7295 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7297         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
7298         (BND_TO): Delete this function and...
7299         (SET_BND_TO): ...this functions in favor of...
7300         (BND_TO): ...reinstating this macro.
7301         (struct _fence): Strengthen field "executing_insns" from
7302         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
7303         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
7304         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
7305         and param "insn" from rtx to insn_t.
7306         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
7307         rtx_insn *.
7309         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
7310         vec<rtx_insn *> .
7311         (rtx_vec_t): Likewise.
7312         (struct sched_deps_info_def): Strengthen param of "start_insn"
7313         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
7314         "note_mem_dep" callback and first param of "note_dep" callback.
7316         * haifa-sched.c (add_to_speculative_block): Strengthen param
7317         "insn" from rtx to rtx_insn *.
7318         (clear_priorities): Likewise.
7319         (calc_priorities): Likewise for local "insn".
7321         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
7322         Remove redundant checked cast.
7323         (haifa_note_mem_dep): Likewise for param "pending_insn".
7324         (haifa_note_dep): Likewise for param "elem".
7325         (note_mem_dep): Likewise for param "e".
7326         (sched_analyze_1): Add checked casts.
7327         (sched_analyze_2): Likewise.
7329         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
7330         from rtx to rtx_insn *.
7331         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
7332         from vec<rtx> * to vec<rtx_insn *> *.
7334         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
7335         scaffolding.
7336         (flist_add): Strengthen param "executing_insns" from
7337         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7338         (advance_deps_context): Remove now-redundant checked cast.
7339         (init_fences): Replace uses of NULL_RTX with NULL.
7340         (merge_fences): Strengthen params "last_scheduled_insn" and
7341         "sched_next" from rtx to rtx_insn * and "executing_insns" from
7342         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7343         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
7344         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
7345         an instruction, rather than doing double-duty as a pattern.
7346         (return_nop_to_pool): Update for change of insn_t.
7347         (deps_init_id): Remove now-redundant checked cast.
7348         (struct sched_scan_info_def): Strengthen param of "init_insn"
7349         callback from rtx to insn_t.
7350         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
7351         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
7352         NULL.
7353         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
7354         "end" from rtx to rtx_insn *.
7355         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
7356         (rtx insn_rtx, bool force_unique_p)
7357         (BND_TO): Delete function.
7358         (SET_BND_TO): Delete function.
7360         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
7361         rtx to rtx_insn *.
7362         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
7363         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
7364         rtx to rtx_insn *.
7365         (undo_transformations): Likewise for param "insn".
7366         (update_liveness_on_insn): Likewise.
7367         (compute_live_below_insn): Likewise for param "insn" and local
7368         "succ".
7369         (update_data_sets): Likewise for param "insn".
7370         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
7371         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
7372         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
7373         rtx_insn *.
7374         (move_cond_jump): Likewise for param "insn".
7375         (move_cond_jump): Drop use of SET_BND_TO.
7376         (compute_av_set_on_boundaries): Likewise.
7377         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
7378         (update_and_record_unavailable_insns): Strengthen local "bb_end"
7379         from rtx to rtx_insn *.
7380         (maybe_emit_renaming_copy): Likewise for param "insn".
7381         (maybe_emit_speculative_check): Likewise.
7382         (handle_emitting_transformations): Likewise.
7383         (remove_insn_from_stream): Likewise.
7384         (code_motion_process_successors): Strengthen local "succ" from rtx
7385         to insn_t.
7387 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7389         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
7390         ilist_t, not _xlist_t;
7391         (ILIST_INSN): Define in terms of new union field "insn".
7392         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
7393         _XLIST_NEXT.
7394         (struct _list_node): Add new field "insn" to the union, of type
7395         insn_t.
7396         (ilist_add): Replace macro with an inline function, requiring an
7397         insn_t.
7398         (ilist_remove): Define this macro directly in terms of
7399         _list_remove, rather than indirectly via _xlist_remove.
7400         (ilist_clear): Likewise, in terms of _list_clear rather than
7401         _xlist_clear.
7402         (ilist_is_in_p): Replace macro with an inline function, requiring
7403         an insn_t.
7404         (_list_iter_cond_insn): New function.
7405         (ilist_iter_remove): Define this macro directly in terms of
7406         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
7407         (ilist_iterator): Define directly in terms of _list_iterator
7408         rather than indirectly through _xlist_iterator.
7409         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
7410         than in terms of _FOR_EACH_X.
7411         (FOR_EACH_INSN_1): Likewise.
7413 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
7415         PR target/60606
7416         PR target/61330
7417         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
7418         DECL_HARD_REGISTER and return for invalid register specifications.
7419         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
7420         DECL_HARD_REGISTER, call expand_one_error_var.
7421         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
7422         CC_REGNUM with non-MODE_CC modes.
7423         (arm_regno_class): Return NO_REGS for PC_REGNUM.
7425 2014-08-26  Marek Polacek  <polacek@redhat.com>
7427         PR c/61271
7428         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
7430 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
7432         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
7433         qi cost; add di cost.
7434         (cortexa57_addrcost_table): Likewise.
7436 2014-08-26  Marek Polacek  <polacek@redhat.com>
7438         PR c/61271
7439         * expr.c (is_aligning_offset): Remove logical not.
7441 2014-08-26  Marek Polacek  <polacek@redhat.com>
7443         PR c/61271
7444         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
7445         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
7447 2014-08-26  Richard Biener  <rguenther@suse.de>
7449         PR tree-optimization/62175
7450         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7451         expand possibly trapping operations.
7453 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7455         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
7456         "insn" from rtx to rtx_insn *.
7457         (permute_load): Likewise for param "insn".
7458         (permute_store): Likewise.
7459         (handle_special_swappables): Likewise for local "insn".
7460         (replace_swap_with_copy): Likewise for locals "insn" and
7461         "new_insn".
7462         (rs6000_analyze_swaps): Likewise for local "insn".
7464 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7466         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
7467         to rtx_insn *.
7469 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7471         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
7472         "note_list" from rtx to rtx_insn *.
7473         (BB_NOTE_LIST): Replace this function and...
7474         (SET_BB_NOTE_LIST): ...this function with...
7475         (BB_NOTE_LIST): ...the former macro implementation.
7477         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
7478         local "from_start" from rtx to rtx_insn *.  Strengthen param
7479         "to_endp" from rtx * to rtx_insn **.
7481         * haifa-sched.c (concat_note_lists): Likewise.
7482         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
7483         BB_NOTE_LIST.
7484         (sel_restore_notes): Likewise.
7485         (move_bb_info): Likewise.
7486         (BB_NOTE_LIST): Delete this function.
7487         (SET_BB_NOTE_LIST): Delete this function.
7488         * sel-sched.c (create_block_for_bookkeeping): Eliminate
7489         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
7491 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7493         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
7494         from rtx * to rtx_insn **.
7495         (reorder2): Likewise.
7496         (dependencies_evaluation_hook): Strengthen params "head", "tail"
7497         from rtx to rtx_insn *.
7499         * doc/tm.texi: Update mechanically for above change to target.def.
7501         * sched-int.h (note_list): Strengthen this variable from rtx to
7502         rtx_insn *.
7503         (remove_notes): Likewise for both params.
7504         (restore_other_notes): Likewise for return type and first param.
7505         (struct ready_list): Strengthen field "vec" from rtx * to
7506         rtx_insn **.
7507         (struct dep_replacement): Strenghten field "insn" from rtx to
7508         rtx_insn *.
7509         (struct deps_desc): Likewise for fields "last_debug_insn",
7510         "last_args_size".
7511         (struct haifa_sched_info): Likewise for callback field
7512         "can_schedule_ready_p"'s param, for first param of "new_ready"
7513         callback field, for both params of "rank" callback field, for
7514         first field of "print_insn" callback field (with a const), for
7515         both params of "contributes_to_priority" callback, for param
7516         of "insn_finishes_block_p" callback, for fields "prev_head",
7517         "next_tail", "head", "tail", for first param of "add_remove_insn"
7518         callback, for first param of "begin_schedule_ready" callback, for
7519         both params of "begin_move_insn" callback, and for second param
7520         of "advance_target_bb" callback.
7521         (add_dependence): Likewise for params 1 and 2.
7522         (sched_analyze): Likewise for params 2 and 3.
7523         (deps_analyze_insn): Likewise for param 2.
7524         (ready_element): Likewise for return type.
7525         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7526         (try_ready): Strenghten param from rtx to rtx_insn *.
7527         (sched_emit_insn): Likewise for return type.
7528         (record_delay_slot_pair): Likewise for params 1 and 2.
7529         (add_delay_dependencies): Likewise for param.
7530         (contributes_to_priority): Likewise for both params.
7531         (find_modifiable_mems): Likewise.
7533         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
7534         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
7535         "first_older_only_insn" from rtx to rtx_insn *.
7536         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
7537         rtx_insn **.
7539         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
7540         "last_scheduled_iter0" from rtx to rtx_insn *.
7541         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
7542         (c6x_sched_reorder_1): Strengthen param "ready" and locals
7543         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
7544         "insn" from rtx to rtx_insn *.
7545         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
7546         rtx_insn **.
7547         (c6x_sched_reorder2): Strengthen param "ready" and locals
7548         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7549         "insn" from rtx to rtx_insn *.
7550         (c6x_variable_issue):  Add a checked cast when assigning from insn
7551         to ss.last_scheduled_iter0.
7552         (split_delayed_branch): Strengthen param "insn" and local "i1"
7553         from rtx to rtx_insn *.
7554         (split_delayed_nonbranch): Likewise.
7555         (undo_split_delayed_nonbranch): Likewise for local "insn".
7556         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
7557         "entry_after", "end_packet", "head_insn", "tail_insn",
7558         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
7559         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
7560         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
7561         but add a checked cast on loop->start_label.  Consolidate calls to
7562         avoid assigning result of gen_spkernel to "insn", now an
7563         rtx_insn *.
7565         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
7566         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
7567         rtx to rtx_insn *.
7568         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
7569         rtx_insn **.  Strengthen locals "top", "next" from rtx to
7570         rtx_insn *.
7571         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
7572         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
7573         (add_parameter_dependencies): Strengthen params "call", "head" and
7574         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
7575         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
7576         (add_dependee_for_func_arg): Likewise for param "arg" and local
7577         "insn".
7578         (ix86_dependencies_evaluation_hook): Likewise for params "head",
7579         "tail" and locals "insn", "first_arg".
7581         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
7582         for params "head", "tail" and locals "insn", "next", "next_tail".
7583         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
7584         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
7585         "insn", "lowest", "highest" from rtx to rtx_insn *.
7586         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
7587         rtx_insn **.
7588         (ia64_sched_reorder2): Likewise.
7590         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
7591         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
7592         from rtx * to rtx_insn **.
7593         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
7594         rtx_insn **.
7595         (mep_print_sched_insn): Strengthen param "insn" from rtx to
7596         rtx_insn *.
7597         (mep_sched_reorder): Strengthen param "ready" from rtx * to
7598         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
7599         to rtx_insn *.
7601         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
7602         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
7603         to rtx_insn *.
7604         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
7605         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
7606         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
7607         rtx_insn **.
7608         (vr4130_reorder): Likewise.
7609         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
7610         rtx to rtx_insn *.
7611         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
7612         rtx_insn **.
7613         (mips_sched_reorder): Likewise.
7614         (mips_sched_reorder2): Likewise.
7616         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
7618         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
7619         Strengthen local "tmp" from rtx to rtx_insn *.
7620         (rs6000_sched_reorder2): Likewise.
7622         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
7623         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
7624         (s390_sched_reorder): Strengthen param "ready" from rtx * to
7625         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
7627         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
7628         "tmp2" from rtx to rtx_insn *.
7629         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
7630         Strengthen local "insn" from rtx to rtx_insn *.
7631         (ready_reorder): Strengthen param "ready" from rtx * to
7632         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
7633         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
7634         (sh_reorder2): Likewise.
7636         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
7637         local "insn" from rtx to rtx_insn *.
7639         * haifa-sched.c (note_list): Strengthen this variable from rtx to
7640         rtx_insn *.
7641         (scheduled_insns): Strengthen this variable from vec<rtx> to
7642         vec<rtx_insn *>.
7643         (set_modulo_params): Likewise for locals "i1", "i2".
7644         (record_delay_slot_pair): Likewise for params "i1", "i2".
7645         (add_delay_dependencies): Likewise for param "insn".
7646         (cond_clobbered_p): Likewise.
7647         (recompute_todo_spec): Likewise for local "prev".
7648         (last_scheduled_insn): Likewise for this variable.
7649         (nonscheduled_insns_begin): Likewise.
7650         (model_set_excess_costs): Strengthen param "insns" from rtx * to
7651         rtx_insn **.
7652         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
7653         rtx_insn *.
7654         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
7655         Strengthen local "insn" from rtx to rtx_insn *.
7656         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
7657         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7658         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
7659         (ready_remove_first): Likewise for return type and local "t".
7660         (ready_element): Likewise for return type.
7661         (ready_remove): Likewise for return type and local "t".
7662         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
7663         (check_clobbered_conditions): Strengthen local "x" from rtx to
7664         rtx_insn *, adding a checked cast.
7665         (schedule_insn): Likewise for param "insn".
7666         (remove_notes): Likewise for params "head", "tail" and locals
7667         "next_tail", "insn", "next".
7668         (struct haifa_saved_data): Likewise for fields
7669         "last_scheduled_insn", "nonscheduled_insns_begin".
7670         (save_backtrack_point): Update for change to field "vec" of
7671         struct ready_list.
7672         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
7673         rtx_insn **.
7674         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
7675         from rtx to rtx_insn *
7676         (resolve_dependencies): Strengthen param "insn" from rtx to
7677         rtx_insn *
7678         (restore_other_notes): Likewise for return type, for param "head"
7679         and local "note_head".
7680         (undo_all_replacements): Likewise for local "insn".
7681         (first_nonscheduled_insn): Likewise for return type and local "insn".
7682         (queue_to_ready): Likewise for local "insn", adding checked casts.
7683         (early_queue_to_ready): Likewise for local "insn".
7684         (debug_ready_list_1): Strengthen local "p" from rtx * to
7685         rtx_insn **.
7686         (move_insn): Strengthen param "insn" and local "note" from rtx to
7687         rtx_insn *
7688         (insn_finishes_cycle_p): Likewise for param "insn".
7689         (max_issue): Likewise for local "insn".
7690         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
7691         to rtx_insn **.
7692         (commit_schedule): Strengthen param "prev_head" and local "insn"
7693         from rtx to rtx_insn *
7694         (prune_ready_list): Likewise for local "insn".
7695         (schedule_block): Likewise for locals "prev_head", "head", "tail",
7696         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
7697         (set_priorities): Likewise for local "prev_head".
7698         (try_ready): Likewise for param "next".
7699         (fix_tick_ready): Likewise.
7700         (change_queue_index): Likewise.
7701         (sched_extend_ready_list): Update for change to field "vec" of
7702         struct ready_list.
7703         (generate_recovery_code): Strengthen param "insn" from rtx to
7704         rtx_insn *.
7705         (begin_speculative_block): Likewise.
7706         (create_check_block_twin): Likewise for param "insn" and locals
7707         "label", "check", "twin".  Introduce local "check_pat" to avoid
7708         "check" being used as a plain rtx before being used as an insn.
7709         (fix_recovery_deps): Add a checked cast to rtx_insn * when
7710         extracting elements from ready_list.
7711         (sched_remove_insn): Strengthen param "insn" from rtx to
7712         rtx_insn *.
7713         (sched_emit_insn): Likewise for return type.
7714         (ready_remove_first_dispatch): Likewise for return type and local
7715         "insn".
7717         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
7719         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
7720         const rtx_insn *.
7722         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
7723         from rtx to rtx_insn *.
7724         (add_dependence_list): Likewise for param "insn".  Add a checked
7725         cast.
7726         (add_dependence_list_and_free): Strengthen param "insn" from rtx
7727         to rtx_insn *.  Strengthen param "list_p" from rtx * to
7728         rtx_insn **.
7729         (chain_to_prev_insn): Strengthen param "insn" and locals
7730         "prec_nonnote", "i" from rtx to rtx_insn *.
7731         (flush_pending_lists): Likewise for param "insn".
7732         (cur_insn): Likewise for this variable.
7733         (haifa_start_insn): Add a checked cast.
7734         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
7735         (sched_analyze_reg): Likewise for param "insn".
7736         (sched_analyze_1): Likewise.
7737         (sched_analyze_2): Likewise.  Add checked casts.
7738         (sched_analyze_insn): Likewise.  Also for local "prev".
7739         (deps_analyze_insn): Likewise for param "insn".
7740         (sched_analyze): Likewise for params "head", "tail" and local "insn".
7741         (add_dependence_1): Likewise for params "insn", "elem".
7742         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
7743         (parse_add_or_inc): Likewise for param "insn".
7744         (find_inc): Likewise for local "inc_cand".
7745         (find_modifiable_mems): Likewise for params "head", "tail" and
7746         locals "insn", "next_tail".
7748         * sched-ebb.c (init_ready_list): Likewise for local "insn".
7749         (begin_schedule_ready): Likewise for param "insn".
7750         (begin_move_insn): Likewise for params "insn" and "last".
7751         (ebb_print_insn): Strengthen param "insn" from const_rtx to
7752         const rtx_insn *.
7753         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
7754         (ebb_contributes_to_priority): Likewise for params "next", "insn".
7755         (ebb_add_remove_insn): Likewise for param "insn".
7756         (advance_target_bb): Likewise.
7758         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
7759         "insn".
7760         (check_live): Likewise for param "insn".
7761         (init_ready_list): Likewise for local "insn".
7762         (can_schedule_ready_p): Likewise for param "insn".
7763         (begin_schedule_ready): Likewise.
7764         (new_ready): Likewise for param "next".
7765         (rgn_print_insn): Likewise for param "insn".
7766         (rgn_rank): Likewise for params "insn1", "insn2".
7767         (contributes_to_priority): Likewise for params "next", "insn".
7768         (rgn_insn_finishes_block_p): Likewise for param "insn".
7769         (add_branch_dependences): Likewise for params "head", "tail" and
7770         locals "insn", "last".
7771         (rgn_add_remove_insn): Likewise for param "insn".
7772         (advance_target_bb): Likewise.
7774         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
7775         const_rtx to const rtx_insn *.
7777         * sel-sched-dump.h (sel_print_insn): Likewise.
7779         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
7780         (deps_init_id): Likewise.
7782         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
7783         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
7784         rtx_insn **.
7786 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7788         * output.h (final_start_function): Strengthen param 1 from rtx to
7789         rtx_insn *.
7791         * final.c (final_start_function): Likewise, renaming back from
7792         "uncast_first" to "first", and dropping the checked cast from rtx
7793         to rtx_insn *.
7795 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7797         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
7798         * final.c (final): Likewise.  Rename param back from
7799         "uncast_first" to "first" and eliminate the checked cast from rtx
7800         to rtx_insn *.
7802 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7804         * output.h (shorten_branches): Strengthen param from rtx to
7805         rtx_insn *.
7807         * final.c (shorten_branches): Likewise, renaming param back from
7808         "uncast_first" to "first", and dropping the checked cast from rtx
7809         to rtx_insn *.
7811         * genattr.c (gen_attr): Likewise when writing out the prototype of
7812         shorten_branches.
7814 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7816         * sched-int.h (struct haifa_sched_info): Strengthen fields
7817         "prev_head" and "next_tail" from rtx to rtx_insn *.
7819 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7821         * rtl.h (rtx_jump_table_data::get_labels): New method.
7822         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
7823         with use of the new rtx_jump_table_data::get_labels method.
7824         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
7825         to rtx_jump_table_data *.  Simplify by using get_labels method.
7826         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
7827         a dyn_cast, introducing local "table", using it to replace
7828         label-lookup logic with a get_labels method call.
7829         (patch_jump_insn): Simplify using get_labels method.
7830         * dwarf2cfi.c (create_trace_edges): Likewise.
7831         * rtlanal.c (label_is_jump_target_p): Likewise.
7833 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7835         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
7836         to rtx_insn *.
7838         * emit-rtl.c (unshare_all_rtl_1): Likewise.
7839         (unshare_all_rtl_again): Likewise, also for local "p".
7841 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7843         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
7844         to rtx_insn *.
7845         * cfgrtl.c (delete_insn_and_edges): Likewise.
7847 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7849         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
7850         from rtx to rtx_insn *.
7852         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
7854 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7856         * function.c (thread_prologue_and_epilogue_insns): Likewise for
7857         locals "returnjump", "epilogue_end", "insn", "next".
7859         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
7860         "returnjump" from rtx * to rtx_insn **.
7861         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
7863 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7865         * basic-block.h (struct edge_def). Strengthen "r" within
7866         union edge_def_insns from rtx to rtx_insn *.
7868         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
7869         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
7870         rtx_insn *.
7871         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
7872         from rtx to rtx_insn *.
7873         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
7874         rtx_insn *.
7875         * postreload-gcse.c (reg_killed_on_edge): Likewise.
7876         (reg_used_on_edge): Likewise.
7877         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
7878         (gt_pch_nx): New overload for rtx_insn *&.
7879         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
7880         from rtx to rtx_insn *.
7882 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7884         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
7885         from rtx to rtx_insn *.
7886         (BB_FOOTER): Replace function with access macro.
7887         (SET_BB_FOOTER): Delete.
7889         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
7890         with BB_FOOTER.
7891         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7892         (emit_barrier_after_bb): Likewise.
7893         (record_effective_endpoints): Likewise.
7894         (relink_block_chain): Likewise.
7895         (fixup_fallthru_exit_predecessor): Likewise.
7896         (cfg_layout_duplicate_bb): Likewise.
7897         (cfg_layout_split_block): Likewise.
7898         (cfg_layout_delete_block): Likewise.
7899         (cfg_layout_merge_blocks): Likewise.
7900         (BB_FOOTER): Delete function.
7901         (SET_BB_FOOTER): Delete function.
7902         * combine.c (update_cfg_for_uncondjump): Replace uses of
7903         SET_BB_FOOTER with BB_FOOTER.
7905 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7907         * except.h (struct eh_landing_pad_d): Strengthen field
7908         "landing_pad" from rtx to rtx_code_label *.
7910         * except.c (sjlj_emit_dispatch_table): Likewise for param
7911         "dispatch_label"
7912         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
7914 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7916         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
7917         first param from rtx to rtx_insn *.
7918         * config/xtensa/xtensa.c (struct machine_function): Likewise for
7919         field "set_frame_ptr_insn".
7920         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
7921         "csend" from rtx to rtx_code_label *.
7922         (xtensa_expand_atomic): Likewise for local "csloop".
7923         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
7924         rtx_insn *.
7925         (xtensa_call_tls_desc): Likewise for return type and locals
7926         "call_insn", "insns".
7927         (xtensa_legitimize_tls_address): Likewise for local "insns".
7928         (xtensa_expand_prologue): Likewise for locals "insn", "first".
7930 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7932         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
7933         first param from rtx to rtx_insn *.
7934         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
7935         "insn".
7937 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7939         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
7940         Strengthen param 1 from rtx to rtx_insn *.
7941         (tilepro_output_cbranch): Likewise.
7942         (tilepro_adjust_insn_length): Likewise.
7943         (tilepro_final_prescan_insn): Likewise for sole param.
7945         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
7946         Likewise for local "last".
7947         (cbranch_predicted_p): Likewise for param "insn".
7948         (tilepro_output_simple_cbranch_with_opcode): Likewise.
7949         (tilepro_output_cbranch_with_opcode): Likewise.
7950         (tilepro_output_cbranch): Likewise.
7951         (frame_emit_load): Likewise for return type and locals "seq",
7952         "insn".
7953         (emit_sp_adjust): Likewise for return type and local "insn".
7954         (tilepro_expand_epilogue): Likewise for locals "last_insn",
7955         "insn".
7956         (tilepro_adjust_insn_length): Likewise for param "insn".
7957         (next_insn_to_bundle): Likewise for return type and params
7958         "r", "end".
7959         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
7960         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
7961         local "new_insns".
7962         (match_addli_pcrel): Likewise for param "insn".
7963         (replace_addli_pcrel): Likewise.
7964         (match_auli_pcrel): Likewise.
7965         (replace_auli_pcrel): Likewise.
7966         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
7967         "next_insn".
7968         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7969         "queue", "next_queue", "prev".
7970         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
7971         (tilepro_final_prescan_insn): Likewise for param "insn".
7973 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7975         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
7976         Strengthen param 1 from rtx to rtx_insn *.
7977         (tilegx_output_cbranch): Likewise.
7978         (tilegx_adjust_insn_length): Likewise.
7979         (tilegx_final_prescan_insn): Likewise for sole param.
7981         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
7982         or local "last".
7983         (cbranch_predicted_p): Likewise for param "insn".
7984         (tilegx_output_simple_cbranch_with_opcode): Likewise.
7985         (tilegx_output_cbranch_with_opcode): Likewise.
7986         (tilegx_output_cbranch): Likewise.
7987         (frame_emit_load): Likewise for return type.
7988         (set_frame_related_p): Likewise for locals "seq", "insn".
7989         (emit_sp_adjust): Likewise for return type, and for local "insn".
7990         Introduce local "pat" for use in place of "insn" where the latter
7991         isn't an instruction.
7992         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
7993         from rtx to rtx_insn *.
7994         (tilegx_adjust_insn_length): Likewise for param "insn".
7995         (next_insn_to_bundle): Likewise for return type and params "r" and
7996         "end".
7997         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
7998         "end".
7999         (replace_insns): Likewise for params "old_insn", "new_insns".
8000         (replace_mov_pcrel_step1): Likewise for param "insn" and local
8001         "new_insns".
8002         (replace_mov_pcrel_step2): Likewise.
8003         (replace_mov_pcrel_step3): Likewise.
8004         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
8005         "next_insn".
8006         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8007         "queue", "next_queue", "prev".
8008         (tilegx_output_mi_thunk): Likewise for local "insn".
8009         (tilegx_final_prescan_insn): Likewise for param "insn".
8011 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8013         * config/spu/spu.c (frame_emit_store): Strengthen return type from
8014         rtx to rtx_insn *.
8015         (frame_emit_load): Likewise.
8016         (frame_emit_add_imm): Likewise, also for local "insn".
8017         (spu_expand_prologue): Likewise for local "insn".
8018         (struct spu_bb_info): Likewise for field "prop_jump".
8019         (emit_nop_for_insn): Likewise for param "insn" and local
8020         "new_insn".
8021         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
8022         "hbr_insn".
8023         (spu_emit_branch_hint): Likewise for params "before", "branch" and
8024         locals "hint", "insn".
8025         (get_branch_target): Likewise for param "branch".
8026         (insn_clobbers_hbr): Likewise for param "insn".
8027         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
8028         locals "insn", "before_4", "before_16".
8029         (insert_hbrp): Likewise for local "insn".
8030         (spu_machine_dependent_reorg): Likewise for locals "branch",
8031         "insn", "next", "bbend".
8032         (uses_ls_unit): Likewise for param "insn".
8033         (get_pipe): Likewise.
8034         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
8035         introducing a checked cast.
8036         (spu_sched_adjust_cost): Likewise for params "insn" and
8037         "dep_insn".
8038         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
8039         (spu_sms_res_mii): Likewise.
8041 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8043         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
8044         from rtx to rtx_insn *.
8045         (output_cbranch): Likewise for param 6.
8046         (output_return): Likewise for param 1.
8047         (output_sibcall): Likewise.
8048         (output_v8plus_shift): Likewise.
8049         (output_v8plus_mult): Likewise.
8050         (output_v9branch): Likewise for param 7.
8051         (output_cbcond):  Likewise for param 3.
8053         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
8054         for local "insn".
8055         (sparc_legitimize_pic_address): Likewise.
8056         (sparc_emit_call_insn): Likewise.
8057         (emit_save_or_restore_regs): Likewise.
8058         (emit_window_save): Likewise for return type and local "insn".
8059         (sparc_expand_prologue): Likewise for local "insn".
8060         (sparc_flat_expand_prologue): Likewise.
8061         (output_return): Likewise for param "insn".
8062         (output_sibcall): Likewise for param "insn" and local "delay".
8063         (output_ubranch): Likewise for param "insn".
8064         (output_cbranch): Likewise.
8065         (output_cbcond): Likewise.
8066         (output_v9branch): Likewise.
8067         (output_v8plus_shift): Likewise.
8068         (sparc_output_mi_thunk): Likewise for local "insn".
8069         (get_some_local_dynamic_name): Likewise.
8070         (output_v8plus_mult): Likewise for param "insn".
8072 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8074         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
8075         from rtx to rtx_insn *.
8076         (output_branchy_insn): Likewise for param 3.
8077         (output_far_jump): Likewise for param 1.
8078         (final_prescan_insn): Likewise.
8079         (sh_insn_length_adjustment): Likewise for sole param.
8081         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
8082         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
8083         rtx_code_label *.
8084         (sh_emit_compare_and_set): Likewise for local "lab".
8085         (output_far_jump): Strengthen param "insn" and local "prev" from
8086         rtx to rtx_insn *.
8087         (output_branchy_insn): Likewise for param "insn" and local
8088         "next_insn".
8089         (output_ieee_ccmpeq): Likewise for param "insn".
8090         (struct label_ref_list_d): Strengthen field "label" from rtx to
8091         rtx_code_label *.
8092         (pool_node): Likewise.
8093         (pool_window_label): Likewise for this global.
8094         (add_constant): Likewise for return type and locals "lab", "new_rtx".
8095         (dump_table): Strengthen params "start", "barrier" and local
8096         "scan" from rtx to rtx_insn *.
8097         (broken_move): Likewise for param "insn".
8098         (untangle_mova): Likewise for params "first_mova" and "new_mova".
8099         Strengthen param "first_mova" from rtx * to rtx_insn **.
8100         (mova_p): Likewise for param "insn".
8101         (fixup_mova): Likewise for param "mova".
8102         (find_barrier): Likewise for return type, params "mova" and
8103         "from", and locals "barrier_before_mova", "found_barrier",
8104         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
8105         "label" from rtx to rtx_code_label *.
8106         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
8107         rtx to rtx_insn *.
8108         (sh_reorg): Likewise for locals "link", "scan", "barrier".
8109         (split_branches): Likewise for param "first" and local "insn".
8110         (final_prescan_insn): Likewise for param "insn".
8111         (sequence_insn_p): Likewise for locals "prev", "next".
8112         (sh_insn_length_adjustment): Likewise for param "insn".
8113         (sh_can_redirect_branch): Likewise for local "insn".
8114         (find_r0_life_regions): Likewise for locals "end", "insn".
8115         (sh_output_mi_thunk): Likewise for local "insns".
8117 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8119         * config/score/score.c (score_output_mi_thunk): Strengthen local
8120         "insn" from rtx to rtx_insn *.
8121         (score_prologue): Likewise.
8123 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8125         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
8126         1 from rtx to rtx_insn *.
8127         (s390_emit_jump): Likewise for return type.
8128         (s390_emit_call): Likewise.
8129         (s390_load_got): Likewise.
8131         * config/s390/s390.c (last_scheduled_insn): Likewise for this
8132         variable.
8133         (s390_match_ccmode): Likewise for param "insn".
8134         (s390_emit_jump): Likewise for return type.
8135         (s390_split_branches): Likewise for local "label".
8136         (struct constant): Strengthen field "label" from rtx to
8137         rtx_code_label *.
8138         (struct constant_pool): Likewise for field "label".  Strengthen
8139         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
8140         rtx_insn *.
8141         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
8142         insns.
8143         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
8144         (s390_end_pool): Likewise.
8145         (s390_dump_pool): Likewise for local "insn".
8146         (s390_mainpool_start): Likewise.
8147         (s390_chunkify_start): Likewise.
8148         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
8149         with insns.  Strengthen locals "label", "jump", "barrier", "next",
8150         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
8151         (s390_chunkify_finish): Strengthen local "insn" from rtx to
8152         rtx_insn *.
8153         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
8154         "jump", "label", "next_insn".
8155         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
8156         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
8157         "tbegin_insn".
8158         (s390_load_got): Likewise for return type and local "insns".
8159         (s390_save_gprs_to_fprs): Likewise for local "insn".
8160         (s390_restore_gprs_from_fprs): Likewise.
8161         (pass_s390_early_mach::execute): Likewise.
8162         (s390_emit_prologue): Likewise for local "insns".
8163         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
8164         rtx_code_label *.
8165         (s390_emit_call): Strengthen return type and local "insn" from
8166         rtx to rtx_insn *.
8167         (s390_emit_tpf_eh_return): Likewise for local "insn".
8168         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
8169         "next_insn", introducing locals "s_pat", "rpat" to allow this.
8170         (s390_fix_long_loop_prediction): Likewise for param "insn" and
8171         local "cur_insn".
8172         (s390_non_addr_reg_read_p): Likewise for param "insn".
8173         (find_cond_jump): Likewise for return type and param "insn".
8174         (s390_swap_cmp): Likewise for param "insn".
8175         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
8176         "prev_insn", "next_insn".
8177         (s390_reorg): Likewise for locals "insn", "target".
8178         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
8179         (s390_sched_variable_issue): For now, rename param "insn" to
8180         "uncast_insn", introducing a checked cast.
8181         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
8182         insn.
8183         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
8184         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
8186 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8188         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
8189         param from rtx to rtx_insn *.
8190         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
8192 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8194         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
8195         4 from rtx to rtx_insn *.
8196         (rs6000_final_prescan_insn): Likewise for first param.
8197         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
8198         local "insn".
8199         (rs6000_get_some_local_dynamic_name): Likewise.
8200         (output_cbranch): Likewise for param "insn".
8201         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
8202         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
8203         (rs6000_emit_allocate_stack): Likewise for local "insn".
8204         (load_cr_save): Likewise.
8205         (restore_saved_cr): Likewise.
8206         (restore_saved_lr): Likewise.
8207         (emit_cfa_restores): Likewise.
8208         (rs6000_output_function_epilogue): Likewise for locals "insn" and
8209         "deleted_debug_label".
8210         (rs6000_output_mi_thunk): Likewise for local "insn".
8211         (rs6000_final_prescan_insn): Likewise for param "insn".
8213 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8215         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
8216         Strengthen param "insn" from rtx to rtx_insn *.
8217         * config/picochip/picochip.c (picochip_current_prescan_insn):
8218         Likewise for this variable.
8219         (picochip_final_prescan_insn): Likewise for param "insn".
8221 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8223         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
8224         from rtx to rtx_insn *.
8225         (pa_output_indirect_call): Likewise.
8226         (pa_adjust_insn_length): Likewise.
8227         (pa_attr_length_millicode_call): Likewise.
8228         (pa_attr_length_call): Likewise.
8229         (pa_attr_length_indirect_call): Likewise.
8231         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
8232         "insn".
8233         (pa_attr_length_millicode_call): Likewise.
8234         (pa_attr_length_call): Likewise.
8235         (pa_output_call): Likewise.
8236         (pa_attr_length_indirect_call): Likewise.
8237         (pa_output_indirect_call): Likewise.
8239 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8241         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8242         Strengthen first param from rtx to rtx_insn *.
8243         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8244         param "insn".
8246 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8248         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8249         type from rtx to rtx_insn *.
8250         (mips_expand_call): Likewise.
8251         (mips_adjust_insn_length): Likewise for first param.
8252         (mips_output_conditional_branch): Likewise.
8253         (mips_output_order_conditional_branch): Likewise.
8254         (mips_final_prescan_insn): Likewise.
8256         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8257         rtx_insn * for the SEQUENCE case.
8258         (SEQ_END): Likewise.
8259         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8260         (mips_emit_call_insn): Likewise, also for local "insn".
8261         (mips16_gp_pseudo_reg): Likewise for local "scan".
8262         (mips16_build_call_stub): Likewise for return type and for local
8263         "insn".  Introduce a new local "pattern" so that "insn" can indeed
8264         be an insn.
8265         (mips_expand_call): Strengthen return type and local "insn" from
8266         rtx to rtx_insn *.
8267         (mips_block_move_loop): Strengthen local "label" from rtx to
8268         rtx_code_label *.
8269         (mips_expand_synci_loop): Likewise for locals "label",
8270         "end_label".
8271         (mips_set_frame_expr): Strengthen local "insn" from rtx to
8272         rtx_insn *.
8273         (mips16e_collect_argument_saves): Likewise for locals "insn",
8274         "next".
8275         (mips_find_gp_ref): Likewise for param of callback for "pred"
8276         param, and for local "insn".
8277         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
8278         (mips_insn_has_flexible_gp_ref_p): Likewise.
8279         (mips_epilogue_emit_cfa_restores): Likewise for return type and
8280         local "insn".
8281         (mips_epilogue_set_cfa): Likewise for local "insn".
8282         (mips_expand_epilogue): Likewise.
8283         (mips_adjust_insn_length): Likewise for param "insn".
8284         (mips_output_conditional_branch): Likewise.
8285         (mips_output_order_conditional_branch): Likewise.
8286         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
8287         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
8288         "falu2_turn_enabled_insn".
8289         (mips_builtin_branch_and_move): Strengthen locals "true_label",
8290         "done_label" from rtx to rtx_code_label *.
8291         (struct mips16_constant): Likewise for field "label".
8292         (mips16_add_constant): Likewise for return type.
8293         (mips16_emit_constants_1): Strengthen return type and param "insn"
8294         from rtx to rtx_insn *.
8295         (mips16_emit_constants): Likewise for param "insn".
8296         (mips16_insn_length): Likewise.
8297         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
8298         to rtx_code_label *.
8299         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
8300         from rtx to rtx_insn *.
8301         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
8302         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
8303         (r10k_simplify_address): Strengthen param "insn" and local
8304         "def_insn" from rtx to rtx_insn *.
8305         (r10k_safe_address_p): Strengthen param "insn" from rtx to
8306         rtx_insn *.
8307         (r10k_needs_protection_p_1): Update target type of cast of data
8308         from to rtx to rtx_insn *.
8309         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
8310         rtx * to rtx_insn **.
8311         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
8312         rtx_insn *.
8313         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
8314         (mips_call_expr_from_insn): Likewise for param "insn".
8315         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
8316         (mips_find_pic_call_symbol): Likewise for param "insn".
8317         (mips_annotate_pic_calls): Likewise for local "insn".
8318         (mips_sim_insn): Likewise for this variable.
8319         (struct mips_sim): Likewise for field "insn" within elements of
8320         last_set array.
8321         (mips_sim_wait_reg): Likewise for param "insn".
8322         (mips_sim_wait_regs): Likewise.
8323         (mips_sim_wait_units): Likewise.
8324         (mips_sim_wait_insn): Likewise.
8325         (mips_sim_issue_insn): Likewise.
8326         (mips_sim_finish_insn): Likewise.
8327         (mips_seq_time): Likewise for param "seq" and local "insn".
8328         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
8329         locals "first", "second".
8330         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
8331         "last", "last2", "next".
8332         (mips_avoid_hazard): Likewise for params "after", "insn".
8333         (mips_reorg_process_insns): Likewise for locals "insn",
8334         "last_insn", "subinsn", "next_insn".
8335         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
8336         (mips16_split_long_branches): Likewise for locals "insn" "jump",
8337         "jump_sequence".
8338         (mips_output_mi_thunk): Likewise for local "insn".
8339         (mips_final_prescan_insn): Likewise for param "insn".
8341 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8343         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
8344         Strengthen return type and local "insns" from rtx to rtx_insn *.
8345         (microblaze_legitimize_tls_address): Likewise for local "insns".
8346         (microblaze_block_move_loop): Strengthen local "label" from rtx
8347         to rtx_code_label *.
8348         (microblaze_expand_prologue): Strengthen two locals named "insn"
8349         from rtx to rtx_insn *.
8350         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
8351         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
8352         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
8353         to rtx_code_label *.
8355 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8357         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
8358         param from rtx to rtx_insn *.
8359         (mep_reuse_lo): Likewise for third param.
8360         (mep_use_post_modify_p): Likewise for first param.
8361         (mep_core_address_length): Likewise.
8362         (mep_cop_address_length): Likewise.
8363         (mep_final_prescan_insn): Likewise.
8364         (mep_store_data_bypass_p): Likewise for both params.
8365         (mep_mul_hilo_bypass_p): Likewise.
8366         (mep_ipipe_ldc_p): Likewise for param.
8368         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
8369         (mep_rewrite_mult): Likewise.
8370         (mep_rewrite_mulsi3): Likewise.
8371         (mep_rewrite_maddsi3): Likewise.
8372         (mep_reuse_lo_p_1): Likewise.
8373         (mep_reuse_lo_p): Likewise.
8374         (mep_frame_expr): Likewise.
8375         (mep_make_parallel): Likewise for both params.
8376         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
8377         local "insn".
8378         (mep_use_post_modify_p): Likewise for param "insn".
8379         (mep_core_address_length): Likewise.
8380         (mep_cop_address_length): Likewise.
8381         (mep_reg_set_in_function): Likewise for local "insn".
8382         (mep_asm_without_operands_p): Likewise.
8383         (F): Likewise for return type and param "x".
8384         (add_constant): Likewise for local "insn".
8385         (maybe_dead_move): Likewise for return type and local "insn".
8386         (mep_expand_prologue): Likewise for local "insn".
8387         (mep_final_prescan_insn): Likewise for param "insn".
8388         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
8389         "next", "follow", "x".
8390         (mep_insert_repeat_label_last): Likewise for return type, param
8391         "last_insn", and locals "next", "prev".  Strengthen param "label"
8392         from rtx to rtx_code_label *.
8393         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
8394         rtx_insn *.
8395         (struct mep_doloop_end): Likewise for fields "insn" and
8396         "fallthrough".
8397         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
8398         Strengthen local "repeat_label" from rtx to rtx_code_label *.
8399         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
8400         rtx_insn *.
8401         (mep_invert_branch): Likewise for params "insn" and "after".
8402         (mep_reorg_erepeat): Likewise for param "insns" and locals
8403         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
8404         "l" from rtx to rtx_code_label *.
8405         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
8406         from rtx to rtx_insn *.
8407         (mep_reorg_addcombine): Likewise for param "insns" and locals
8408         "i", "n".
8409         (add_sp_insn_p): Likewise for param "insn".
8410         (mep_reorg_noframe): Likewise for param "insns" and locals
8411         "start_frame_insn", "end_frame_insn", "next".
8412         (mep_reorg): Likewise for local "insns".
8413         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
8414         cast.
8415         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
8416         (mep_mul_hilo_bypass_p): Likewise.
8417         (mep_ipipe_ldc_p): Likewise for param "insn".
8418         (mep_make_bundle): Likewise for return type, param "cop" and local
8419         "insn", splitting out the latter into a new local "seq" for when it
8420         is a SEQUENCE rather than an insn.
8421         (core_insn_p): Likewise for param "insn".
8422         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
8423         "last", "first", "note", "prev", "core_insn".
8425 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8427         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
8428         rtx to rtx_insn *.
8429         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
8430         (m68k_final_prescan_insn): Likewise for first param.
8432         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
8433         (m68k_set_frame_related): Likewise for param "insn".
8434         (output_btst): Likewise for param "insn".
8435         (m68k_final_prescan_insn): Likewise.
8436         (m68k_move_to_reg): Likewise for local "insn".
8437         (m68k_call_tls_get_addr): Likewise for local "insns".
8438         (m68k_call_m68k_read_tp): Likewise.
8439         (strict_low_part_peephole_ok): Likewise for param "first_insn".
8440         (m68k_output_mi_thunk): Likewise for local "insn".
8442 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8444         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
8445         first param from rtx to rtx_insn *.
8446         (iq2000_adjust_insn_length): Likewise.
8447         (iq2000_output_conditional_branch): Likewise.
8448         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
8449         "insn" and local "nop_insn".
8450         (iq2000_annotate_frame_insn): Likewise for param "insn".
8451         (iq2000_expand_prologue): Likewise for both locals "insn".
8452         (iq2000_adjust_insn_length): Likewise for param "insn".
8453         (iq2000_output_conditional_branch): Likewise.
8455 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8457         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
8458         "insns" from rtx to rtx_insn *.
8459         (ia64_emit_cond_move): Likewise for locals "insn", "first".
8460         (struct spill_fill_data): Likewise for field "init_after" and for
8461         elements of array field "prev_insn".
8462         (spill_restore_mem): Likewise for locals "insn", "first".
8463         (do_spill): Likewise for local "insn".
8464         (do_restore): Likewise.
8465         (ia64_expand_prologue): Likewise.
8466         (ia64_expand_epilogue): Likewise.
8467         (emit_insn_group_barriers): Likewise for locals "insn",
8468         "last_label".
8469         (emit_all_insn_group_barriers): Likewise for locals "insn",
8470         "last".
8471         (dfa_stop_insn): Likewise for this global.
8472         (dfa_pre_cycle_insn): Likewise.
8473         (ia64_nop): Likewise.
8474         (final_emit_insn_group_barriers): Likewise for locals "insn",
8475         "last".
8476         (emit_predicate_relation_info): Likewise for locals "head", "n",
8477         "insn", "b", "a".
8478         (ia64_reorg): Likewise for local "insn".
8479         (ia64_output_mi_thunk): Likewise.
8480         (expand_vec_perm_interleave_2): Likewise for local "seq".
8482 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8484         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
8485         param 1 "insn" from rtx to rtx_insn *.
8486         (ix86_use_lea_for_mov): Likewise.
8487         (ix86_avoid_lea_for_addr): Likewise.
8488         (ix86_split_lea_for_addr): Likewise.
8489         (ix86_lea_for_add_ok): Likewise.
8490         (ix86_output_call_insn): Likewise.
8492         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
8493         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
8494         (ix86_output_function_epilogue): Likewise for locals "insn",
8495         "deleted_debug_label".
8496         (legitimize_tls_address): Likewise for local "insn".
8497         (get_some_local_dynamic_name): Likewise.
8498         (increase_distance): Likewise for params "prev", "next".
8499         (distance_non_agu_define_in_bb): Likewise for params "insn",
8500         "start" and locals "prev", "next".
8501         (distance_non_agu_define): Likewise for param "insn".
8502         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
8503         locals "next", "prev".
8504         (distance_agu_use): Likewise for param "insn".
8505         (ix86_lea_outperforms): Likewise.
8506         (ix86_ok_to_clobber_flags): Likewise.
8507         (ix86_avoid_lea_for_add): Likewise.
8508         (ix86_use_lea_for_mov): Likewise.
8509         (ix86_avoid_lea_for_addr): Likewise.
8510         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
8511         (ix86_split_lea_for_addr): Likewise for param "insn".
8512         (ix86_lea_for_add_ok): Likewise for param "insn".
8513         (ix86_expand_carry_flag_compare): Likewise for local
8514         "compare_seq".
8515         (ix86_expand_int_movcc): Likewise.
8516         (ix86_output_call_insn): Likewise for param "insn".
8517         (ix86_output_call_insn): Likewise for local "i".
8518         (x86_output_mi_thunk): Introduce local "insn", using it in place
8519         of "tmp" when dealing with insns.
8520         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
8521         "start".
8522         (ix86_pad_returns): Likewise for locals "ret", "prev".
8523         (ix86_count_insn_bb): Likewise for local "insn".
8524         (ix86_pad_short_function): Likewise for locals "ret", "insn".
8525         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
8526         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
8527         (expand_vec_perm_interleave2): Likewise for local "seq".
8528         (expand_vec_perm_vperm2f128_vblend): Likewise.
8529         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
8530         call to for_each_rtx with for_each_rtx_in_insn.
8532 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8534         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
8535         "label" from rtx to rtx_code_label *.
8536         (ix86_expand_prologue): Likewise.
8537         (ix86_expand_split_stack_prologue): Likewise for locals "label",
8538         "varargs_label".
8539         (ix86_split_idivmod): Likewise for locals "end_label" and
8540         "qimode_label".
8541         (ix86_expand_branch): Likewise for local "label2".
8542         (ix86_expand_aligntest): Likewise for return type and local "label".
8543         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
8544         "top_label".
8545         (expand_movmem_epilogue): Likewise for the various locals named
8546         "label".
8547         (expand_setmem_epilogue): Likewise.
8548         (expand_small_movmem_or_setmem): Likewise for local "label".
8549         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8550         Strengthen param "done_label" from rtx * to rtx_code_label **.
8551         Strengthen locals "loop_label" and "label" from rtx to
8552         rtx_code_label *.
8553         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8554         Likewise for locals "loop_label", "label".
8555         (ix86_expand_set_or_movmem): Likewise for locals "label",
8556         "jump_around_label", "hot_label".
8557         (ix86_expand_strlensi_unroll_1): Likewise for locals
8558         "align_2_label", align_3_label", "align_4_label", "end_0_label",
8559         "end_2_label".
8560         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
8561         (void ix86_emit_i387_log1p): Likewise for locals "label1",
8562         "label2", "jump_label".
8563         (ix86_expand_sse_compare_and_jump): Likewise for return type and
8564         local "label".
8565         (ix86_expand_lfloorceil): Likewise for local "label".
8566         (ix86_expand_rint): Likewise.
8567         (ix86_expand_floorceildf_32): Likewise.
8568         (ix86_expand_floorceil): Likewise.
8569         (ix86_expand_rounddf_32): Likewise.
8570         (ix86_expand_trunc): Likewise.
8571         (ix86_expand_truncdf_32): Likewise.
8572         (ix86_expand_round): Likewise.
8574 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8576         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
8577         first param from rtx to rtx_insn *.
8578         (h8300_insn_length_from_table): Likewise.
8579         * config/h8300/h8300.c (F): Likewise for return type and param
8580         "x".
8581         (Fpa): Add a checked cast to rtx_insn *.
8582         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
8583         rtx_insn *.
8584         (final_prescan_insn): Likewise for param "insn".
8585         (h8300_binary_length): Likewise.
8586         (h8300_insn_length_from_table): Likewise.
8588 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8590         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
8591         Strengthen first param "insn" from rtx to rtx_insn *.
8593         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
8594         Likewise.
8595         (frame_insn): Likewise for return type.  Introduce local "insn"
8596         for use in place of local "x" for use as an rtx_insn *.
8597         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
8598         (epiphany_expand_prologue): Likewise for local "insn".
8599         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
8600         * config/epiphany/resolve-sw-modes.c
8601         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
8602         "seq".
8604 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8606         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
8607         param from rtx to rtx_insn *.
8608         (c6x_final_prescan_insn): Likewise for first param.
8610         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
8611         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
8612         (c6x_expand_compare): Strengthen local "insns" from rtx to
8613         rtx_insn *.
8614         (c6x_get_unit_specifier): Likewise for param "insn".
8615         (c6x_print_unit_specifier_field): Likewise.
8616         (c6x_final_prescan_insn): Likewise.
8617         (emit_add_sp_const): Likewise for local "insn".
8618         (c6x_expand_prologue): Likewise.
8620 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8622         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
8623         param 1 from rtx to rtx_insn *.
8624         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
8625         the various locals named "insn".
8626         (expand_epilogue_reg_restore): Likewise.
8627         (frame_related_constant_load): Likewise.
8628         (add_to_reg): Likewise.
8629         (emit_link_insn): Likewise.
8630         (do_link): Likewise.
8631         (expand_interrupt_handler_prologue): Likewise.
8632         (branch_dest): Likewise for param "branch".
8633         (asm_conditional_branch): Likewise for param "insn".
8634         (gen_one_bundle): Likewise for elements of param "slot" and local
8635         "t".
8636         (bfin_gen_bundles): Likewise for locals "insn", "next" and
8637         elements of local "slot".
8638         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8639         "queue", "next_queue", "prev".
8640         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
8641         (add_sched_insns_for_speculation): Likewise for local "insn".
8643 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8645         * config/avr/avr-protos.h (output_movqi): Strengthen first param
8646         from rtx to rtx_insn *.
8647         (output_movhi): Likewise.
8648         (output_movsisf): Likewise.
8649         (avr_out_tstsi): Likewise.
8650         (avr_out_tsthi): Likewise.
8651         (avr_out_tstpsi): Likewise.
8652         (avr_out_compare): Likewise.
8653         (avr_out_compare64): Likewise.
8654         (avr_out_movpsi): Likewise.
8655         (ashlqi3_out): Likewise.
8656         (ashlhi3_out): Likewise.
8657         (ashlsi3_out): Likewise.
8658         (ashrqi3_out): Likewise.
8659         (ashrhi3_out): Likewise.
8660         (ashrsi3_out): Likewise.
8661         (lshrqi3_out): Likewise.
8662         (lshrhi3_out): Likewise.
8663         (lshrsi3_out): Likewise.
8664         (avr_out_ashlpsi3): Likewise.
8665         (avr_out_ashrpsi3): Likewise.
8666         (avr_out_lshrpsi3): Likewise.
8667         (avr_out_fract): Likewise.
8668         (avr_out_sbxx_branch): Likewise.
8669         (avr_out_round): Likewise.
8670         (avr_out_xload): Likewise.
8671         (avr_out_movmem): Likewise.
8672         (adjust_insn_length): Likewise.
8673         (avr_out_lpm): Likewise.
8674         (reg_unused_after): Likewise.
8675         (_reg_unused_after): Likewise.
8676         (avr_jump_mode): Likewise for second param.
8677         (jump_over_one_insn): Likewise for first param.
8678         (avr_final_prescan_insn): Likewise.
8679         (out_shift_with_cnt): Likewise for second param.
8681         * config/avr/avr.c (get_sequence_length): Likewise for param
8682         "insns" and local "insn".
8683         (emit_push_byte): Likewise for local "insn".
8684         (emit_push_sfr): Likewise.
8685         (avr_prologue_setup_frame): Likewise for locals "insn",
8686         "fp_plus_insns", "sp_plus_insns".
8687         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
8688         "sp_plus_insns".
8689         (avr_jump_mode): Likewise for param "insn".
8690         (avr_final_prescan_insn): Likewise.
8691         (avr_find_unused_d_reg): Likewise.
8692         (avr_out_lpm_no_lpmx): Likewise.
8693         (avr_out_lpm): Likewise.
8694         (avr_out_xload): Likewise.
8695         (output_movqi): Likewise.
8696         (output_movhi): Likewise.
8697         (out_movqi_r_mr): Likewise.
8698         (out_movhi_r_mr): Likewise.
8699         (out_movsi_r_mr): Likewise.
8700         (out_movsi_mr_r): Likewise.
8701         (output_movsisf): Likewise.
8702         (avr_out_load_psi): Likewise.
8703         (avr_out_store_psi): Likewise.
8704         (avr_out_movpsi): Likewise.
8705         (out_movqi_mr_r): Likewise.
8706         (avr_out_movhi_mr_r_xmega): Likewise.
8707         (out_movhi_mr_r): Likewise.
8708         (compare_condition): Likewise for param "insn" and local "next".
8709         (compare_sign_p): Likewise for param "insn".
8710         (compare_diff_p): Likewise.
8711         (compare_eq_p): Likewise.
8712         (avr_out_compare): Likewise.
8713         (avr_out_compare64): Likewise.
8714         (avr_out_tsthi): Likewise.
8715         (avr_out_tstpsi): Likewise.
8716         (avr_out_tstsi): Likewise.
8717         (out_shift_with_cnt): Likewise.
8718         (ashlqi3_out): Likewise.
8719         (ashlhi3_out): Likewise.
8720         (avr_out_ashlpsi3): Likewise.
8721         (ashlsi3_out): Likewise.
8722         (ashrqi3_out): Likewise.
8723         (ashrhi3_out): Likewise.
8724         (avr_out_ashrpsi3): Likewise.
8725         (ashrsi3_out): Likewise.
8726         (lshrqi3_out): Likewise.
8727         (lshrhi3_out): Likewise.
8728         (avr_out_lshrpsi3): Likewise.
8729         (lshrsi3_out): Likewise.
8730         (avr_out_fract): Likewise.
8731         (avr_out_round): Likewise.
8732         (avr_adjust_insn_length): Likewise.
8733         (reg_unused_after): Likewise.
8734         (_reg_unused_after): Likewise.
8735         (avr_compare_pattern): Likewise.
8736         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
8737         and locals "branch1", "branch2", "insn2", "jump".
8738         (avr_reorg): Likewise for local "insn".
8739         (avr_2word_insn_p): Likewise for param "insn".
8740         (jump_over_one_insn_p): Likewise.
8741         (avr_out_sbxx_branch): Likewise.
8742         (avr_out_movmem): Likewise.
8744 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8746         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
8747         param from rtx to rtx_insn *.
8748         (thumb1_final_prescan_insn): Likewise.
8749         (thumb2_final_prescan_insn): Likewise.
8751         * config/arm/arm.c (emit_set_insn): Strengthen return type from
8752         rtx to rtx_insn *.
8753         (struct minipool_node): Likewise for field "insn".
8754         (dump_minipool): Likewise for param "scan".
8755         (create_fix_barrier): Likewise for local "from".  Strengthen local
8756         "label" from rtx to rtx_code_label *.
8757         (push_minipool_barrier): Strengthen param "insn" from rtx to
8758         rtx_insn *.
8759         (push_minipool_fix): Likewise.
8760         (note_invalid_constants): Likewise.
8761         (thumb2_reorg): Likewise for local "insn".
8762         (arm_reorg): Likewise.
8763         (thumb2_final_prescan_insn): Likewise for param
8764         "insn" and local "first_insn".
8765         (arm_final_prescan_insn): Likewise for param "insn" and locals
8766         "start_insn", "this_insn".
8767         (arm_debugger_arg_offset): Likewise for param "insn".
8768         (thumb1_emit_multi_reg_push): Likewise for return type and local
8769         "insn".
8770         (thumb1_final_prescan_insn): Likewise for param "insn".
8771         (thumb_far_jump_used_p): Likewise for local "insn".
8772         (thumb1_expand_prologue): Likewise.
8773         (arm_expand_epilogue_apcs_frame): Likewise.
8774         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
8775         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
8776         from rtx to rtx_code_label *.
8777         (arm_split_atomic_op): Likewise for local "label".
8778         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
8780 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8782         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
8783         first param from rtx to rtx_insn *.
8784         (arc_verify_short): Likewise.
8785         (arc_short_long): Likewise.
8786         (arc_need_delay): Likewise.
8788         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
8789         "target_insn".
8790         (arc_ccfsm_advance): Likewise for param "insn" and locals
8791         "start_insn", "this_insn".
8792         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
8793         (arc_ccfsm_post_advance): Likewise for param "insn".
8794         (arc_next_active_insn): Likewise for return type and param "insn".
8795         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
8796         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
8797         (output_short_suffix): Likewise for local "insn".
8798         (arc_final_prescan_insn): Likewise for param "insn".  Remove
8799         now-redundant checked cast.
8800         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
8801         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
8802         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
8803         for use where lc_set became an insn.
8804         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
8805         rtx to rtx_insn *.
8806         (arc_get_insn_variants): Likewise for local "prev".
8807         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
8808         "next".
8809         (arc_predicate_delay_insns): Likewise for local "insn".
8810         (arc_pad_return): Likewise for local "prev".  For now, add a
8811         checked cast when extracting the insn from "final_sequence".
8812         (arc_short_long): Likewise for param "insn".
8813         (arc_need_delay): Likewise for param "insn" and local "next".
8814         (arc_label_align): Likewise for locals "prev", "next".
8816 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8818         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
8819         "insn" from rtx to rtx_insn *.
8820         (alpha_gp_save_rtx): Likewise for local "seq".
8821         (alpha_instantiate_decls): Likewise for local "top".
8822         (get_some_local_dynamic_name): Likewise for local "insn".
8823         (alpha_does_function_need_gp): Likewise.
8824         (set_frame_related_p): Likewise for return type and for locals
8825         "seq" and "insn".
8826         (emit_frame_store_1): Likewise for local "insn".
8827         (alpha_expand_prologue): Likewise for locals "insn", "seq".
8828         (alpha_end_function): Likewise for local "insn".
8829         (alpha_output_mi_thunk_osf): Likewise.
8830         (alphaev4_insn_pipe): Likewise for param "insn".
8831         (alphaev5_insn_pipe): Likewise.
8832         (alphaev4_next_group): Likewise for return type and param 1
8833         "insn".
8834         (alphaev5_next_group): Likewise.
8835         (alpha_align_insns_1): Likewise for return type and param 1 of
8836         callback param "next_group", and for locals "i", "next", "prev",
8837         "where", "where2", "insn".
8839 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8841         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
8842         rather than modifying the stmt.
8844 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8846         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
8847         cgraph_state conversion.
8849 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8851         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8852         Strengthen local "insns" from rtx to rtx_insn *.
8853         (aarch64_set_frame_expr): Likewise for local "insn".
8854         (aarch64_save_or_restore_fprs): Likewise.
8855         (aarch64_save_or_restore_callee_save_registers): Likewise.
8856         (aarch64_expand_prologue): Likewise.
8857         (aarch64_expand_epilogue): Likewise.
8858         (aarch64_output_mi_thunk): Likewise.
8859         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
8860         "label2" from rtx to rtx_code_label *.
8861         (aarch64_split_atomic_op): Likewise for local "label".
8863 2014-08-25  Martin Liska  <mliska@suse.cz>
8865         * cgraph.h (symtab_node):
8866         (bool needed_p (void)): created from decide_is_symbol_needed
8867         (bool referred_to_p (void)): created from referred_to_p
8868         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
8869         * cgraph.h (cgraph_node):
8870         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
8871         (void expand (void)): created from expand_function
8872         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
8873         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
8874         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
8875         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
8876         * cgraph.h (varpool_node):
8877         (static void add (tree decl): created from varpool_add_new_variable
8878         * cgraph.h (cgraph_edge):
8879         void remove (void);
8880         (void remove_caller (void)): created from cgraph_edge_remove_caller
8881         (void remove_callee (void)): created from cgraph_edge_remove_callee
8882         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
8883           created from cgraph_set_call_stmt
8884         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
8885         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
8886         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
8887           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
8888         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
8889           created from cgraph_speculative_call_info
8890         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
8891           int freq_scale, bool update_original)): created from cgraph_clone_edge
8892         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
8893         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
8894         (bool recursive_p (void)): created from cgraph_edge_recursive_p
8895         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
8896         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
8897         (static void rebuild_references (void)): created from cgraph_rebuild_references
8898         * cgraph.h (symbol_table):
8899         (create_reference): renamed from add_reference
8900         (maybe_create_reference): renamed from maybe_add_reference
8901         (void register_symbol (symtab_node *node)): new function
8902         (void clear_asm_symbols (void)): new function
8903         (void unregister (symtab_node *node)): new function
8904         (void release_symbol (cgraph_node *node, int uid)): new function
8905         (cgraph_node * allocate_cgraph_symbol (void)): new function
8906         (void initialize (void)): created from cgraph_init
8907         (symtab_node *first_symbol (void)):new function
8908         (asm_node *first_asm_symbol (void)):new function
8909         (symtab_node *first_defined_symbol (void)):new function
8910         (varpool_node *first_variable (void)):new function
8911         (varpool_node *next_variable (varpool_node *node)):new function
8912         (varpool_node *first_static_initializer (void)):new function
8913         (varpool_node *next_static_initializer (varpool_node *node)):new function
8914         (varpool_node *first_defined_variable (void)):new function
8915         (varpool_node *next_defined_variable (varpool_node *node)):new function
8916         (cgraph_node *first_defined_function (void)):new function
8917         (cgraph_node *next_defined_function (cgraph_node *node)):new function
8918         (cgraph_node *first_function (void)):new function
8919         (cgraph_node *next_function (cgraph_node *node)):new function
8920         (cgraph_node *first_function_with_gimple_body (void)):new function
8921         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
8922         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
8923           created from symtab_remove_unreachable_nodes
8924         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
8925         (void process_new_functions (void)): created from cgraph_process_new_functions
8926         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
8927         (bool output_variables (void)): created from varpool_node::output_variables
8928         (void output_asm_statements (void)): created from output_asm_statements
8929         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
8930         (void compile (void)): created from compile
8931         (void output_weakrefs (void)): created from output_weakrefs
8932         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
8933         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
8934           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
8935         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
8936         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
8937           created from cgraph_next_function_with_gimple_body
8938         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
8939           created from cgraph_remove_edge_removal_hook
8940         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
8941           created from cgraph_add_node_removal_hook
8942         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
8943           created from cgraph_remove_node_removal_hook
8944         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
8945           created from varpool_add_node_removal_hook
8946         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
8947           created from varpool_remove_node_removal_hook
8948         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
8949           created from cgraph_add_function_insertion_hook
8950         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
8951           created from cgraph_remove_function_insertion_hook
8952         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
8953           created from varpool_add_variable_insertion_hook
8954         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
8955           created from varpool_remove_variable_insertion_hook
8956         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
8957           created from cgraph_add_edge_duplication_hook
8958         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
8959           created from cgraph_remove_edge_duplication_hook
8960         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
8961           created from cgraph_add_node_duplication_hook
8962         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
8963           created from cgraph_remove_node_duplication_hook
8964         (void call_edge_removal_hooks (cgraph_edge *e)):
8965           created from cgraph_call_edge_removal_hooks
8966         (void call_cgraph_insertion_hooks (cgraph_node *node)):
8967           created from call_function_insertion_hooks 
8968         (void call_cgraph_removal_hooks (cgraph_node *node)):
8969           created from cgraph_call_node_removal_hooks 
8970         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
8971           created from cgraph_node::call_duplication_hooks 
8972         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
8973           created from cgraph_call_edge_duplication_hooks
8974         (void call_varpool_removal_hooks (varpool_node *node)):
8975           created from varpool_call_node_removal_hooks
8976         (void call_varpool_insertion_hooks (varpool_node *node)):
8977           created from varpool_call_variable_insertion_hooks
8978         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
8979           created from insert_to_assembler_name_hash
8980         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
8981           created from unlink_from_assembler_name_hash
8982         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
8983           created from symtab_prevail_in_asm_name_hash
8984         (void symtab_initialize_asm_name_hash (void)):
8985           created from symtab_initialize_asm_name_hash
8986         (void change_decl_assembler_name (tree decl, tree name)):
8987           created from change_decl_assembler_name
8988         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
8989         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
8990           created from decl_assembler_name_hash
8991         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
8992           created from decl_assembler_name_equal
8993         (static hashval_t hash_node_by_assembler_name (const void *p)):
8994           created from hash_node_by_assembler_name
8995         (static int eq_assembler_name (const void *p1, const void *p2)):
8996           created from eq_assembler_name
8998 2014-08-25  Marek Polacek  <polacek@redhat.com>
9000         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
9002 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
9004         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
9005         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
9006         SWI1248_AVX512BW mode iterator.
9008 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
9010         PR target/62111
9011         * config/sh/predicates.md (general_extend_operand): Disable
9012         TRUNCATE before reload completes.
9014 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
9016         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
9018 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
9020         PR target/61996
9021         * config/sh/sh.opt (musermode): Allow negative form.
9022         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
9023         targets that don't support it.
9024         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
9025         Document -mno-usermode option.
9027 2014-08-24  Kito Cheng  <kito@0xlab.org>
9029         * system.h (CALLER_SAVE_PROFITABLE): Poison.
9030         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
9031         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
9032         * doc/tm.texi: Regenerate.
9034 2014-08-24  Kito Cheng  <kito@0xlab.org>
9036         * ira.c: Fix typo in comment.
9038 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
9040         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
9041         Deprecate c++1y. Change language to reflect greater confidence in C++14.
9043 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
9045         PR target/62038
9046         * config/pa/pa.c (pa_output_function_epilogue): Don't set
9047         last_address when the current function is a thunk.
9048         (pa_asm_output_mi_thunk): When we don't have named sections or they
9049         are not being used, check that thunk can reach the stub table with a
9050         short branch.
9052 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9054         * web.c (union_match_dups): Strengthen param "insn" from rtx to
9055         rtx_insn *.
9056         (pass_web::execute): Likewise for local "insn".
9058 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9060         * var-tracking.c (struct micro_operation_def): Strengthen field
9061         "insn" from rtx to rtx_insn *.
9062         (struct emit_note_data_def): Likewise.
9063         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
9064         (vt_stack_adjustments): Likewise for local "insn".
9065         (adjust_insn): Likewise for param "insn".
9066         (val_store): Likewise.
9067         (val_resolve): Likewise.
9068         (struct count_use_info): Likewise for field "insn".
9069         (log_op_type): Likewise for param "insn".
9070         (reverse_op): Likewise.
9071         (prepare_call_arguments): Likewise.
9072         (add_with_sets):  The initial param takes an insn, but we can't
9073         yet strengthen it from rtx to rtx_insn * since it's used as a
9074         cselib_record_sets_hook callback.  For now rename initial param
9075         from "insn" to "uncast_insn", and introduce a local "insn" of
9076         the stronger rtx_insn * type, with a checked cast.
9077         (compute_bb_dataflow): Strengthen local "insn" from rtx to
9078         rtx_insn *.
9079         (emit_note_insn_var_location): Likewise.
9080         (emit_notes_for_changes): Likewise.
9081         (emit_notes_for_differences): Likewise.
9082         (next_non_note_insn_var_location): Likewise for return type and
9083         for param "insn".
9084         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
9085         (vt_initialize): Likewise for local "insn".
9086         (delete_debug_insns): Likewise for locals "insn" and "next".
9088 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9090         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
9091         rtx_insn *.
9092         (mark_constant_pool): Likewise for local "insn".
9094 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9096         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
9097         rtx to rtx_insn *.
9098         (dead_debug_promote_uses): Likewise.
9099         (dead_debug_insert_temp): Likewise.
9101 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9103         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
9104         from const_rtx to const rtx_insn *.
9105         (store_killed_after): Likewise.  Strengthen locals "last", "act"
9106         from rtx to rtx_insn *.
9107         (store_killed_before): Strengthen param "insn" from const_rtx to
9108         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
9109         (find_moveable_store): Strengthen param "insn" from rtx to
9110         rtx_insn *.
9111         (compute_store_table): Likewise for local "insn".
9112         (insert_insn_start_basic_block): Likewise for param "insn" and
9113         locals "prev", "before", "insn".
9114         (insert_store): For now, add a checked cast to rtx_insn * on the
9115         result of gen_move_insn.
9116         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
9117         to rtx_insn *.
9118         (replace_store_insn): Likewise.  For now, add a checked cast to
9119         rtx_insn * on the result of gen_move_insn.
9121 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9123         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
9124         rtx_insn *.
9125         (expand_sjlj_dispatch_table): Likewise.
9127 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9129         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
9130         "insn" from rtx to rtx_insn *.
9132 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9134         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
9135         "insn" from rtx to rtx_insn *.
9136         (dup_block_and_redirect): Likewise for param 3 "before".
9138         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
9139         from rtx to rtx_insn *.
9140         (move_insn_for_shrink_wrap): Likewise.
9141         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
9142         (dup_block_and_redirect): Likewise for param "before" and local
9143         "insn".
9144         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
9145         "end".
9146         (convert_to_simple_return): Likewise for local "start".
9148         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
9149         Strengthen local "insn" from rtx to rtx_insn *, for use when
9150         invoking requires_stack_frame_p.
9152 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9154         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
9155         rtx_insn *.
9156         (speculate_expr): Likewise for locals "orig_insn_rtx",
9157         "spec_insn_rtx".
9158         (eq_transformed_insns): Likewise for locals "i1", "i2".
9159         (check_for_new_jump): Likewise for return type and local "end".
9160         (find_new_jump): Likewise for return type and local "jump".
9161         (sel_split_edge): Likewise for local "jump".
9162         (sel_create_recovery_block): Likewise.
9163         (sel_redirect_edge_and_branch_force): Likewise.
9164         (sel_redirect_edge_and_branch): Likewise.
9166 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9168         * sel-sched.c (substitute_reg_in_expr): Strengthen local
9169         "new_insn" from rtx to rtx_insn *.
9170         (create_insn_rtx_with_rhs): Likewise for return type and for local
9171         "insn_rtx".
9172         (create_insn_rtx_with_lhs): Likewise.
9173         (create_speculation_check): Likewise for local "insn_rtx".
9174         (implicit_clobber_conflict_p): Likewise for local "insn".
9175         (get_expr_cost): Likewise.
9176         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
9177         (move_cond_jump): Likewise for locals "next", "prev", "link",
9178         "head", "from", "to".
9180 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9182         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
9183         "next" from rtx to rtx_insn *.
9184         (find_conditional_protection): Likewise for local "next".
9185         (is_conditionally_protected): Likewise for local "insn1".
9186         (is_pfree): Likewise for locals "insn1", "insn2".
9188 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9190         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
9191         from rtx to rtx_insn *.
9193         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
9194         locals "insn1", "insn2" from rtx to rtx_insn *.
9195         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
9196         locals "insn", "prev", "last_jump", "next_tail".
9197         (schedule_ebb): Likewise for params "head", "tail".
9198         (schedule_ebbs): Likewise for locals "tail", "head".
9200         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
9201         to rtx_insn on "last_insn" in one of the invocations of
9202         schedule_ebb.
9204 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9206         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
9207         "elem", "insn" from rtx to rtx_insn *.
9208         (change_spec_dep_to_hard): Likewise.
9209         (get_back_and_forw_lists): Likewise for local "con".
9210         (sd_add_dep): Likewise for locals "elem", "insn".
9211         (sd_resolve_dep): Likewise for locals "pro", "con".
9212         (sd_unresolve_dep): Likewise.
9213         (sd_delete_dep): Likewise.
9214         (chain_to_prev_insn): Likewise for local "pro".
9215         (find_inc): Likewise for locals "pro", "con".
9217 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9219         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
9220         to rtx_insn *.
9221         (reg_set_between_p): Strengthen local "insn" from const_rtx to
9222         const rtx_insn *.
9223         (modified_between_p): Strengthen local "insn" from rtx to
9224         rtx_insn *.
9225         (remove_reg_equal_equiv_notes_for_regno): Likewise.
9226         (keep_with_call_p): Strengthen local "i2" from const_rtx to
9227         const rtx_insn *.
9229 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9231         * resource.c (next_insn_no_annul): Strengthen local "next" from
9232         rtx to rtx_insn *.
9233         (mark_referenced_resources): Likewise for local "insn".
9235 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9237         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
9238         to rtx_insn *.
9239         (find_reloads): Likewise for param 1.
9240         (subst_reloads): Likewise for sole param.
9241         (find_equiv_reg): Likwise for param 2.
9242         (regno_clobbered_p): Likwise for param 2.
9243         (reload): Likewise for param 1.
9245         * caller-save.c (save_call_clobbered_regs): Strengthen local
9246         "insn" from rtx to rtx_insn *.
9247         (insert_one_insn): Likewise for local "insn".
9249         * reload.c (this_insn): Likewise for this global.
9250         (find_reloads): Likewise for param "insn".
9251         (find_reloads_toplev): Likewise.
9252         (find_reloads_address): Likewise.
9253         (subst_reg_equivs): Likewise.
9254         (update_auto_inc_notes): Likewise.
9255         (find_reloads_address_1): Likewise.
9256         (find_reloads_subreg_address): Likewise.
9257         (subst_reloads): Likewise.
9258         (find_equiv_reg): Likewise, also for local "p".
9259         (regno_clobbered_p): Likewise for param "insn".
9261         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
9262         array.
9263         (spill_reg_store): Likewise for the elements of this array.
9264         (remove_init_insns): Likewise for local "equiv_insn".
9265         (will_delete_init_insn_p): Likewise for param "insn".
9266         (reload): Likewise for param ""first" and local "insn".
9267         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
9268         rtx_insn *.
9269         (calculate_elim_costs_all_insns): Likewise.
9270         (delete_caller_save_insns): Likewise.
9271         (spill_failure): Likewise for param "insn".
9272         (delete_dead_insn): Likewise.
9273         (set_label_offsets): Likewise.
9274         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
9275         "prev_insn".
9276         (elimination_costs_in_insn): Likewise for param "insn".
9277         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
9278         when referring to an insn.
9279         (set_initial_label_offsets): Likewise.
9280         (set_offsets_for_label): Strengthen param "insn" from rtx to
9281         rtx_insn *.
9282         (init_eliminable_invariants): Likewise for param "first" and local
9283         "insn".
9284         (fixup_eh_region_note): Likewise for param "insn".
9285         (reload_as_needed): Likewise for locals "prev", "insn",
9286         "old_next", "old_prev", "next".
9287         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
9288         "last".
9289         (reload_inheritance_insn): Strengthen elements of this array from
9290         rtx to rtx_insn *.
9291         (failed_reload): Likewise for param "insn".
9292         (choose_reload_regs): Likewise for local "insn".  Replace use of
9293         NULL_RTX with NULL when referring to an insn.
9294         (input_reload_insns): Strengthen elements of this array from rtx
9295         to rtx_insn *.
9296         (other_input_address_reload_insns): Likewise for this global.
9297         (other_input_reload_insns): Likewise for this global.
9298         (input_address_reload_insns): Likwise for the elements of this
9299         array.
9300         (inpaddr_address_reload_insns): Likwise for the elements of this
9301         array.
9302         (output_reload_insns): Likewise for the elements of this array.
9303         (output_address_reload_insns): Likewise for the elements of this
9304         array.
9305         (outaddr_address_reload_insns): Likewise for the elements of this
9306         array.
9307         (operand_reload_insns): Likewise for this global.
9308         (other_operand_reload_insns): Likewise for this global.
9309         (other_output_reload_insns): Likewise for the elements of this
9310         array.
9311         (new_spill_reg_store): Likewise for the elements of this
9312         array.
9313         (emit_input_reload_insns): Likewise for locals "insn", "temp".
9314         Strengthen local "where" from rtx * to rtx_insn **.
9315         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
9316         from rtx to rtx_insn *.
9317         (do_input_reload): Likewise for local "insn".
9318         (do_output_reload): Likewise for local "insn".
9319         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
9320         (emit_insn_if_valid_for_reload): Likewise for return type and local
9321         "last".  Add checked cast to rtx_insn when returning "insn" since
9322         this has been through emit_insn.
9323         (gen_reload): Strengthen return type and locals "last", "insn", "set"
9324         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
9325         returning "insn" since it's been through
9326         emit_insn_if_valid_for_reload at this point.
9327         (delete_output_reload): Strengthen param "insn" and locals
9328         "output_reload_insn", "i2" from rtx to rtx_insn *.
9329         (delete_address_reloads): Likewise for params "dead_insn",
9330         "current_insn" and locals "prev", "next".
9331         (delete_address_reloads_1): Likewise for params "dead_insn",
9332         "current_insn" and locals "prev", "i2".
9333         (inc_for_reload): Likewise for locals "last", "add_insn".
9334         (add_auto_inc_notes): Strengthen param "insn" from rtx to
9335         rtx_insn *.
9337         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
9338         param of this duplicate of the prototype from reload.h
9340 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9342         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
9343         rtx to rtx_insn *.
9344         (regstat_bb_compute_calls_crossed): Likewise.
9346 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9348         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
9349         to rtx_insn *.
9350         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
9351         with an insn.
9352         (regrename_analyze): Strengthen local "insn" from rtx to
9353         rtx_insn *.
9354         (scan_rtx_reg): Likewise for param "insn".
9355         (scan_rtx_address): Likewise.
9356         (scan_rtx): Likewise.
9357         (restore_operands): Likewise.
9358         (record_out_operands): Likewise.
9359         (build_def_use): Likewise for local "insn".  Replace use of
9360         NULL_RTX with NULL when dealing with an insn.
9362 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9364         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
9365         * reginfo.c (reg_scan): Likewise, also for local "insn".
9366         (reg_scan_mark_refs): Likewise for param "insn".
9367         (init_subregs_of_mode): Likewise for local "insn".
9369 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9371         * regcprop.c (struct queued_debug_insn_change): Strengthen field
9372         "insn" from rtx to rtx_insn *.
9373         (replace_oldest_value_reg): Likewise for param "insn".
9374         (replace_oldest_value_addr): Likewise.
9375         (replace_oldest_value_mem): Likewise.
9376         (apply_debug_insn_changes): Likewise for local "last_insn".
9377         (copyprop_hardreg_forward_1): Likewise for local "insn".
9379 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9381         * reg-stack.c (next_flags_user): Strengthen return type and param
9382         "insn" from rtx to rtx_insn *.
9383         (straighten_stack): Likewise for param "insn".
9384         (check_asm_stack_operands): Likewise.
9385         (remove_regno_note): Likewise.
9386         (emit_pop_insn): Likewise for return type, param "insn", local
9387         "pop_insn".
9388         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
9389         "limit" from rtx to rtx_insn *.
9390         (swap_to_top): Likewise for param "insn".
9391         (move_for_stack_reg): Likewise.
9392         (move_nan_for_stack_reg): Likewise.
9393         (swap_rtx_condition): Likewise.
9394         (compare_for_stack_reg): Likewise.
9395         (subst_all_stack_regs_in_debug_insn): Likewise.
9396         (subst_stack_regs_pat): Likewise, and local "insn2".
9397         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
9398         rtx_insn *.
9399         (subst_stack_regs): Likewise.
9400         (change_stack): Likewise.
9401         (convert_regs_1): Likewise for locals "insn", "next".
9403 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9405         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
9406         rtx_insn *.
9407         (combine_set_extension): Likewise for param "curr_insn".
9408         (transform_ifelse): Likewise for param "def_insn".
9409         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
9410         from vec<rtx> * to vec<rtx_insn *> *.
9411         (is_cond_copy_insn): Likewise for param "insn".
9412         (struct ext_state): Strengthen the four vec fields from vec<rtx>
9413         to vec<rtx_insn *>.
9414         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
9415         local "def_insn" from rtx to rtx_insn *.
9416         (get_sub_rtx): Likewise for param "def_insn".
9417         (merge_def_and_ext): Likewise.
9418         (combine_reaching_defs): Likewise.
9419         (add_removable_extension): Likewise for param "insn".
9420         (find_removable_extensions): Likewise for local "insn".
9421         (find_and_remove_re): Likewise for locals "curr_insn" and
9422         "def_insn".  Strengthen locals "reinsn_del_list" and
9423         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
9425 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9427         * recog.c (split_insn): Strengthen param "insn" and locals
9428         "first", "last" from rtx to rtx_insn *.
9429         (split_all_insns): Likewise for locals "insn", "next".
9430         (split_all_insns_noflow): Likewise.
9432 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9434         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
9435         const rtx_insn *.
9436         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9437         (debug_rtx_find): Likewise for param 1 "x".
9439         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
9440         const_rtx to const rtx_insn *.  Likewise for local "insn".
9441         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9442         (debug_rtx_find): Likewise for param 1 "x".
9443         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
9444         from const_rtx to const rtx_insn * within the appropriate cases of
9445         the switch statement.
9447         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
9448         Strengthen local "insns" from rtx to rtx_insn * since this is
9449         passed to a call to debug_rtx_list.
9451 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9453         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
9454         to rtx_insn *.
9456         * function.c (stack_protect_epilogue): Add checked cast to
9457         rtx_insn for now when invoking predict_insn_def.
9459         * predict.c (predict_insn): Strengthen param "insn" from rtx to
9460         rtx_insn *.
9461         (predict_insn_def): Likewise.
9462         (rtl_predict_edge): Likewise for local "last_insn".
9463         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
9464         const rtx_insn *.
9465         (combine_predictions_for_insn): Strengthen param "insn" from rtx
9466         to rtx_insn *.
9467         (bb_estimate_probability_locally): Likewise for local "last_insn".
9468         (expensive_function_p): Likewise for local "insn".
9470         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
9471         local "jmp", since this is used when invoking predict_insn_def.
9473 2014-08-22  Marek Polacek  <polacek@redhat.com>
9475         PR c++/62199
9476         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
9478 2014-08-22  Marek Polacek  <polacek@redhat.com>
9480         PR c/61271
9481         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
9482         a comparison in parens.
9483         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
9484         in parens.
9486 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9488         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
9489         rtx_insn *.
9491         * cprop.c (fis_get_condition): Likewise.
9493         * postreload.c (reload_cse_regs): Likewise for param "first".
9494         (reload_cse_simplify): Likewise for param "insn".
9495         (reload_cse_regs_1): Likewise for local "insn".
9496         (reload_cse_simplify_set): Likewise for param "insn".
9497         (reload_cse_simplify_operands): Likewise.
9498         (struct reg_use): Likewise for field "insn".
9499         (reload_combine_purge_insn_uses): Likewise for param "insn".
9500         (fixup_debug_insns): Likewise for params "from", "to" and local
9501         "insn".
9502         (try_replace_in_use): Likewise for local "use_insn".
9503         (reload_combine_recognize_const_pattern): Likewise for param
9504         "insn" and locals "add_moved_after_insn", "use_insn".
9505         (reload_combine_recognize_pattern): Likewise for param "insn" and
9506         local "prev".
9507         (reload_combine): Likewise for locals "insn", "prev".
9508         (reload_combine_note_use): Likewise for param "insn".
9509         (move2add_use_add2_insn): Likewise.
9510         (move2add_use_add3_insn): Likewise.
9511         (reload_cse_move2add): Likewise, also for local "next".
9512         (move2add_note_store): Likewise for local "insn".
9514 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9516         * postreload-gcse.c (struct occr): Strengthen field "insn" from
9517         rtx to rtx_insn *.
9518         (struct unoccr): Likewise.
9519         (struct modifies_mem): Likewise.
9520         (alloc_mem): Likewise for local "insn".
9521         (insert_expr_in_table): Likewise for param "insn".
9522         (dump_expr_hash_table_entry): Likewise for local "insn".
9523         (oprs_unchanged_p): Likewise for param "insn".
9524         (load_killed_in_block_p): Likewise for local "setter".
9525         (record_last_reg_set_info): Likewise for param "insn".
9526         (record_last_reg_set_info_regno): Likewise.
9527         (record_last_mem_set_info): Likewise.
9528         (record_last_set_info): Likewise for local "last_set_insn".
9529         (record_opr_changes): Likewise for param "insn".
9530         (hash_scan_set): Likewise.
9531         (compute_hash_table): Likewise for local "insn".
9532         (get_avail_load_store_reg): Likewise for param "insn".
9533         (eliminate_partially_redundant_load): Likewise, also for locals
9534         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
9535         RTX for insns.
9536         (eliminate_partially_redundant_loads): Likewise for local "insn".
9538 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9540         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
9541         rtx to rtx_insn *.
9542         (expand_binop): Likewise for locals "entry_last", "last", "insns"
9543         (expand_twoval_unop): Likewise for locals entry_last", "last".
9544         (expand_twoval_binop): Likewise.
9545         (expand_twoval_binop_libfunc): Likewise for local "insns".
9546         (widen_leading): Likewise for local "last".
9547         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
9548         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
9549         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
9550         (expand_parity): Likewise for locals "last" and "seq".
9551         (expand_ffs): Likewise for local "seq".  Strengthen local
9552         "nonzero_label" from rtx to rtx_code_label *.
9553         (expand_absneg_bit): Strengthen local "insns" from rtx to
9554         rtx_insn *.
9555         (expand_unop_direct): Likewise for local "last".
9556         (expand_unop): Likewise for locals "last", "insns".
9557         (expand_abs_nojump): Likewise for local "last".
9558         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
9559         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
9560         rtx_insn *.
9561         (expand_copysign_absneg): Strengthen local "label" from rtx to
9562         rtx_code_label *.
9563         (expand_copysign_bit): Strengthen local "insns" from rtx to
9564         rtx_insn *.
9565         (struct no_conflict_data): Likewise for fields "first", "insn".
9566         (emit_libcall_block_1): Likewise for param "insns" and locals
9567         "next", "last", "insn".
9568         (emit_libcall_block): For now, add a checked cast to rtx_insn *
9569         on "insns" when invoking emit_libcall_block_1.  Ultimately we
9570         want to strengthen insns itself.
9571         (prepare_cmp_insn): Strengthen local "last" from rtx to
9572         rtx_insn *.
9573         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
9574         (prepare_float_lib_cmp): Likewise for local "insns".
9575         (emit_conditional_move): Likewise for local "last".
9576         (emit_conditional_add): Likewise.
9577         (have_sub2_insn): Likewise for local "seq".
9578         (expand_float): Likewise for local "insns".  Strengthen locals
9579         "label", "neglabel" from rtx to rtx_code_label *.
9580         (expand_fix): Likewise for locals "last", "insn", "insns" (to
9581         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
9582         (expand_fixed_convert): Likewise for local "insns" (to
9583         rtx_insn *).
9584         (expand_sfix_optab): Likewise for local "last".
9585         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
9586         to rtx_code_label *.
9587         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
9588         from rtx to rtx_insn *.
9589         (expand_atomic_fetch_op): Likewise for local "insn".
9590         (maybe_legitimize_operand_same_code): Likewise for local "last".
9591         (maybe_legitimize_operands): Likewise.
9593 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9595         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
9596         "insn" from rtx to rtx_insn *.
9597         (ps_rtl_insn): Likewise for return type.
9598         (doloop_register_get): Likewise for params "head", "tail" and
9599         locals "insn", "first_insn_not_to_check".
9600         (schedule_reg_move): Likewise for local "this_insn".
9601         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
9602         of gen_move_insn for now.
9603         (reset_sched_times): Strengthen local "insn" from rtx to
9604         rtx_insn *.
9605         (permute_partial_schedule): Likewise.
9606         (duplicate_insns_of_cycles): Likewise for local "u_insn".
9607         (dump_insn_location): Likewise for param "insn".
9608         (loop_canon_p): Likewise for local "insn".
9609         (sms_schedule): Likewise.
9610         (print_partial_schedule): Likewise.
9611         (ps_has_conflicts): Likewise.
9613 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9615         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
9616         "tailp" from rtx * to rtx_insn **.
9618         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
9619         from rtx to rtx_insn *.
9620         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
9621         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
9622         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
9623         rtx to rtx_insn *.
9624         * modulo-sched.c (const_iteration_count): Strengthen return type
9625         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
9626         use of NULL_RTX with NULL when working with insns.
9627         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
9628         to rtx_insn *.
9629         (sms_schedule): Likewise.
9630         * sched-rgn.c (init_ready_list): Likewise, also for locals
9631         "src_head" and "src_next_tail".
9632         (compute_block_dependences): Likewise.
9633         (free_block_dependencies): Likewise.
9634         (debug_rgn_dependencies): Likewise.
9635         (free_rgn_deps): Likewise.
9636         (compute_priorities): Likewise.
9637         (schedule_region): Likewise.
9638         * sel-sched.c (find_ebb_boundaries): Likewise.
9640         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
9641         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
9643 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9645         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
9646         from rtx to rtx_insn *.
9647         (new_seginfo): Likewise for param "insn".
9648         (create_pre_exit): Likewise for locals "last_insn",
9649         "before_return_copy", "return_copy".
9650         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
9651         "mode_set".
9653 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9655         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
9656         from rtx to rtx_insn *.
9657         (lra_push_insn): Likewise for 1st param.
9658         (lra_push_insn_and_update_insn_regno_info): Likewise.
9659         (lra_pop_insn): Likewise for return type.
9660         (lra_invalidate_insn_data): Likewise for 1st param.
9661         (lra_set_insn_deleted): Likewise.
9662         (lra_delete_dead_insn): Likewise.
9663         (lra_process_new_insns): Likewise for first 3 params.
9664         (lra_set_insn_recog_data): Likewise for 1st param.
9665         (lra_update_insn_recog_data): Likewise.
9666         (lra_set_used_insn_alternative): Likewise.
9667         (lra_invalidate_insn_regno_info): Likewise.
9668         (lra_update_insn_regno_info): Likewise.
9669         (lra_former_scratch_operand_p): Likewise.
9670         (lra_eliminate_regs_1): Likewise.
9671         (lra_get_insn_recog_data): Likewise.
9673         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
9674         rtx to rtx_insn *.
9676         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
9677         "mv1" and "mv2".
9678         (substitute_within_insn): New.
9679         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
9680         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
9681         Replace call to "substitute" with call to substitute_within_insn.
9683         * lra-constraints.c (curr_insn): Strengthen from rtx to
9684         rtx_insn *.
9685         (get_equiv_with_elimination): Likewise for param "insn".
9686         (match_reload): Strengthen params "before" and "after" from rtx *
9687         to rtx_insn **.
9688         (emit_spill_move): Likewise for return type.  Add a checked cast
9689         to rtx_insn * on result of gen_move_insn for now.
9690         (check_and_process_move): Likewise for local "before".  Replace
9691         NULL_RTX with NULL when referring to insns.
9692         (process_addr_reg): Strengthen params "before" and "after" from
9693         rtx * to rtx_insn **.
9694         (insert_move_for_subreg): Likewise.
9695         (simplify_operand_subreg): Strengthen locals "before" and "after"
9696         from rtx to rtx_insn *.
9697         (process_address_1): Strengthen params "before" and "after" from
9698         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
9699         rtx to rtx_insn *.
9700         (process_address): Strengthen params "before" and "after" from
9701         rtx * to rtx_insn **.
9702         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
9703         (curr_insn_transform): Strengthen locals "before" and "after"
9704         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
9705         to insns.
9706         (loc_equivalence_callback): Update cast of "data", changing
9707         resulting type from rtx to rtx_insn *.
9708         (substitute_pseudo_within_insn): New.
9709         (inherit_reload_reg): Strengthen param "insn" from rtx to
9710         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
9711         NULL when referring to insns.  Add a checked cast to rtx_insn *
9712         when using usage_insn to invoke lra_update_insn_regno_info.
9713         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
9714         likewise for locals "restore", "save".  Add checked casts to
9715         rtx_insn * when using usage_insn to invoke
9716         lra_update_insn_regno_info and lra_process_new_insns.  Replace
9717         NULL_RTX with NULL when referring to insns.
9718         (split_if_necessary): Strengthen param "insn" from rtx to
9719         rtx_insn *.
9720         (update_ebb_live_info): Likewise for params "head", "tail" and local
9721         "prev_insn".
9722         (get_last_insertion_point): Likewise for return type and local "insn".
9723         (get_live_on_other_edges): Likewise for local "last".
9724         (inherit_in_ebb): Likewise for params "head", "tail" and locals
9725         "prev_insn", "next_insn", "restore".
9726         (remove_inheritance_pseudos): Likewise for local "prev_insn".
9727         (undo_optional_reloads): Likewise for local "insn".
9729         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
9730         "insn".
9731         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
9732         insns.
9733         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
9734         rtx_insn *.
9735         (spill_pseudos): Likewise for local "insn".
9736         (init_elimination): Likewise.
9737         (process_insn_for_elimination): Likewise for param "insn".
9739         * lra-lives.c (curr_insn): Likewise.;
9741         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
9742         (remove_pseudos): Likewise for param "insn".
9743         (spill_pseudos): Likewise for local "insn".
9744         (lra_final_code_change): Likewise for locals "insn", "curr".
9746         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
9747         (lra_set_insn_deleted): Likewise.
9748         (lra_delete_dead_insn): Likewise, and for local "prev".
9749         (new_insn_reg): Likewise for param "insn".
9750         (lra_set_insn_recog_data): Likewise.
9751         (lra_update_insn_recog_data): Likewise.
9752         (lra_set_used_insn_alternative): Likewise.
9753         (get_insn_freq): Likewise.
9754         (invalidate_insn_data_regno_info): Likewise.
9755         (lra_invalidate_insn_regno_info): Likewise.
9756         (lra_update_insn_regno_info): Likewise.
9757         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
9758         vec<rtx_insn *>.
9759         (lra_push_insn_1): Strengthen param "insn" from rtx to
9760         rtx_insn *.
9761         (lra_push_insn): Likewise.
9762         (lra_push_insn_and_update_insn_regno_info): Likewise.
9763         (lra_pop_insn): Likewise for return type and local "insn".
9764         (push_insns): Likewise for params "from", "to", and local "insn".
9765         (setup_sp_offset): Likewise for params "from", "last" and locals
9766         "before", "insn".
9767         (lra_process_new_insns): Likewise for params "insn", "before",
9768         "after" and local "last".
9769         (struct sloc): Likewise for field "insn".
9770         (lra_former_scratch_operand_p): Likewise for param "insn".
9771         (remove_scratches): Likewise for locals "insn", "last".
9772         (check_rtl): Likewise for local "insn".
9773         (add_auto_inc_notes): Likewise for param "insn".
9774         (update_inc_notes): Likewise for local "insn".
9775         (lra): Replace NULL_RTX with NULL when referring to insn.
9777 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9779         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
9780         to rtx_insn *.
9781         (resolve_reg_notes): Likewise.
9782         (resolve_simple_move): Likewise for return type, param "insn", and
9783         locals "insns", "minsn".
9784         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
9785         (resolve_use): Likewise.
9786         (resolve_debug): Likewise.
9787         (find_decomposable_shift_zext): Likewise.
9788         (resolve_shift_zext): Likewise for return type, param "insn", and
9789         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
9790         (decompose_multiword_subregs): Likewise for local "insn",
9791         "orig_insn", "decomposed_shift", "end".
9793 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9795         * basic-block.h (basic_block split_edge_and_insert): Strengthen
9796         param "insns" from rtx to rtx_insn *.
9798         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
9799         rtx to rtx_insn *.
9800         (struct iv_to_split): Likewise.
9801         (loop_exit_at_end_p): Likewise for local "insn".
9802         (split_edge_and_insert): Likewise for param "insns".
9803         (compare_and_jump_seq): Likewise for return type, param "cinsn",
9804         and locals "seq", "jump".
9805         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
9806         "branch_code"; update invocations of compare_and_jump_seq to
9807         eliminate NULL_RTX in favor of NULL.
9808         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
9809         rtx to rtx_insn *.
9810         (reset_debug_uses_in_loop): Likewise.
9811         (analyze_insn_to_expand_var): Likewise for param "insn".
9812         (analyze_iv_to_split_insn): Likewise.
9813         (analyze_insns_in_loop): Likewise for local "insn".
9814         (insert_base_initialization): Likewise for param
9815         "insn" and local "seq".
9816         (split_iv): Likewise for param "insn" and local "seq".
9817         (expand_var_during_unrolling): Likewise for param "insn".
9818         (insert_var_expansion_initialization): Likewise for local "seq".
9819         (combine_var_copies_in_loop_exit): Likewise.
9820         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
9821         "insn".
9822         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
9823         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
9824         "next".
9826 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9828         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
9829         rtx_insn *.
9830         (iv_analyze_result): Likewise.
9831         (iv_analyze_expr): Likewise.
9832         (biv_p): Likewise.
9834         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
9835         local "def_insn" from rtx to rtx_insn *.
9836         (get_biv_step_1): Likewise for local "insn".
9837         (iv_analyze_expr): Likewise for param "insn".
9838         (iv_analyze_def): Likewise for local "insn".
9839         (iv_analyze_op): Likewise for param "insn".
9840         (iv_analyze): Likewise.
9841         (iv_analyze_result): Likewise.
9842         (biv_p): Likewise.
9843         (suitable_set_for_replacement): Likewise.
9844         (simplify_using_initial_values): Likewise for local "insn".
9845         (iv_number_of_iterations): Likewise for param "insn".
9846         (check_simple_exit): Add checked cast to rtx_insn when invoking
9847         iv_number_of_iterations for now (until get_condition is
9848         strengthened).
9850         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
9851         "insn" from rtx to rtx_insn *.
9852         (analyze_insns_in_loop): Likewise for local "insn".
9854 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9856         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
9857         to rtx_insn *.
9858         (struct invariant): Likewise.
9859         (hash_invariant_expr_1): Likewise for param "insn".
9860         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
9861         (find_exits): Likewise for local "insn".
9862         (create_new_invariant): Likewise for param "insn".
9863         (check_dependencies): Likewise.
9864         (find_invariant_insn): Likewise.
9865         (record_uses): Likewise.
9866         (find_invariants_insn): Likewise.
9867         (find_invariants_bb): Likewise for local "insn".
9868         (get_pressure_class_and_nregs): Likewise for param "insn".
9869         (calculate_loop_reg_pressure): Likewise for local "insn".
9871 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9873         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
9874         to rtx_insn *.
9875         (add_test): Likewise for locals "seq", "jump".
9876         (doloop_modify): Likewise for locals "sequence", "jump_insn".
9878 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9880         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
9881         rtx_insn *.
9882         (rebuild_jump_labels_chain): Likewise for param "chain".
9884         * cfgexpand.c (pass_expand::execute): Add checked cast to
9885         rtx_insn * when calling rebuild_jump_labels_chain in region where
9886         we know e->insns.r is non-NULL.
9888         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
9889         rtx_insn *.
9890         (rebuild_jump_labels): Likewise.
9891         (rebuild_jump_labels_chain): Likewise for param "chain".
9892         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
9893         (init_label_info): Likewise for param "f".
9894         (maybe_propagate_label_ref): Likewise for params "jump_insn",
9895         "prev_nonjump_insn".
9896         (mark_all_labels): Likewise for param "f" and locals "insn",
9897         "prev_nonjump_insn".
9899 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9901         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
9902         from rtx to rtx_insn *insn.
9903         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
9904         (ira_add_allocno_copy): Likewise.
9905         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
9906         rtx to rtx_insn *.
9907         (ira_create_copy): Likewise.
9908         (ira_add_allocno_copy): Likewise.
9909         (create_bb_allocnos): Likewise for local "insn".
9910         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
9911         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
9912         process_regs_for_copy for rtx_insn * param.
9913         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
9914         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
9915         process_regs_for_copy for rtx_insn * param.
9916         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
9917         * ira-costs.c (record_reg_classes): Likewise for param "insn".
9918         (record_operand_costs): Likewise.
9919         (scan_one_insn): Likewise for return type, and for param "insn".
9920         (process_bb_for_costs): Likewise for local "insn".
9921         (process_bb_node_for_hard_reg_moves): Likewise.
9922         * ira-emit.c (struct move): Likewise for field "insn".
9923         (create_move): Eliminate use of NULL_RTX when dealing with an
9924         rtx_insn *.
9925         (emit_move_list): Strengthen return type and locals "result",
9926         "insn" from rtx to rtx_insn *insn.
9927         (emit_moves): Likewise for locals "insns", "tmp".
9928         (ira_emit): Likewise for local "insn".
9929         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
9930         "insn".
9931         (find_call_crossed_cheap_reg): Likewise.
9932         (process_bb_node_lives): Likewise for local "insn".
9933         * ira.c (decrease_live_ranges_number): Likewise.
9934         (compute_regs_asm_clobbered): Likewise.
9935         (build_insn_chain): Likewise.
9936         (find_moveable_pseudos): Likewise, also locals "def_insn",
9937         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
9938         to rtx_insn **.  Add a checked cast when assigning from
9939         "closest_use" into closest_uses array in a region where we know
9940         it's a non-NULL insn.
9941         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
9942         to rtx_insn *.
9943         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
9944         "last_interesting_insn", "uin".
9945         (move_unallocated_pseudos): Likewise for locals "def_insn",
9946         "move_insn", "newinsn".
9948 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9950         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
9951         Strengthen locals "done_label", "do_error" from rtx to
9952         rtx_code_label *.
9953         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
9954         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
9955         rtx_code_label *.
9956         (ubsan_expand_si_overflow_neg_check): Likewise for locals
9957         "done_label", "do_error" to rtx_code_label * and local  "last" to
9958         rtx_insn *.
9959         (ubsan_expand_si_overflow_mul_check): Likewise for locals
9960         "done_label", "do_error", "large_op0", "small_op0_large_op1",
9961         "one_small_one_large", "both_ops_large", "after_hipart_neg",
9962         "after_lopart_neg", "do_overflow", "hipart_different"  to
9963         rtx_code_label * and local  "last" to rtx_insn *.
9965 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9967         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
9968         "insn" and "move_insn" from rtx to rtx_insn *.
9970 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9972         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
9973         rtx_insn *.
9974         (cheap_bb_rtx_cost_p): Likewise.
9975         (first_active_insn): Likewise for return type and local "insn".
9976         (last_active_insn):  Likewise for return type and locals "insn",
9977         "head".
9978         (struct noce_if_info): Likewise for fields "jump", "insn_a",
9979         "insn_b".
9980         (end_ifcvt_sequence): Likewise for return type and locals "insn",
9981         "seq".
9982         (noce_try_move): Likewise for local "seq".
9983         (noce_try_store_flag): Likewise.
9984         (noce_try_store_flag_constants): Likewise.
9985         (noce_try_addcc): Likewise.
9986         (noce_try_store_flag_mask): Likewise.
9987         (noce_try_cmove): Likewise.
9988         (noce_try_minmax): Likewise.
9989         (noce_try_abs): Likewise.
9990         (noce_try_sign_mask): Likewise.
9991         (noce_try_bitop): Likewise.
9992         (noce_can_store_speculate_p): Likewise for local "insn".
9993         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
9994         seq".
9995         (check_cond_move_block): Likewise for local "insn".
9996         (cond_move_convert_if_block): Likewise.
9997         (cond_move_process_if_block): Likewise for locals "seq",
9998         "loc_insn".
9999         (noce_find_if_block): Likewise for local "jump".
10000         (merge_if_block): Likewise for local "last".
10001         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
10002         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
10003         (block_has_only_trap): Likewise for return type and local "trap".
10004         (find_if_case_1): Likewise for local "jump".
10005         (dead_or_predicable): Likewise for locals "head", "end", "jump",
10006         "insn".
10008 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10010         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
10011         "last_insn", "loop_end" from rtx to rtx_insn *.
10013         * hw-doloop.c (scan_loop): Likewise for local "insn".
10014         (discover_loop): Likewise for param "tail_insn".
10015         (discover_loops): Likewise for local "tail".
10017         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
10018         cast to rtx_insn * when assigning from an rtx local to a
10019         hwloop_info's "last_insn" field.
10021 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10023         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
10024         (add_delay_dependencies): Strengthen local "pro" from rtx to
10025         rtx_insn *.
10026         (recompute_todo_spec): Likewise.
10027         (dep_cost_1): Likewise for locals "insn", "used".
10028         (schedule_insn): Likewise for local "dbg".
10029         (schedule_insn): Likewise for locals "pro", "next".
10030         (unschedule_insns_until): Likewise for local "con".
10031         (restore_pattern): Likewise for local "next".
10032         (estimate_insn_tick): Likewise for local "pro".
10033         (resolve_dependencies): Likewise for local "next".
10034         (fix_inter_tick): Likewise.
10035         (fix_tick_ready): Likewise for local "pro".
10036         (add_to_speculative_block): Likewise for locals "check", "twin",
10037         "pro".
10038         (sched_extend_bb): Likewise for locals "end", "insn".
10039         (init_before_recovery): Likewise for local "x".
10040         (sched_create_recovery_block): Likewise for local "barrier".
10041         (create_check_block_twin): Likewise for local "pro".
10042         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
10043         "consumer".
10044         (unlink_bb_notes): Update for change to type of bb_header.
10045         Strengthen locals "prev", "label", "note", "next" from rtx to
10046         rtx_insn *.
10047         (clear_priorities): Likewise for local "pro".
10049 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10051         * gcse.c (struct occr): Strengthen field "insn" from rtx to
10052         rtx_insn *.
10053         (test_insn): Likewise for this global.
10054         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
10055         const rtx_insn *.
10056         (oprs_anticipatable_p): Likewise.
10057         (oprs_available_p): Likewise.
10058         (insert_expr_in_table): Strengthen param "insn" from  rtx to
10059         rtx_insn *.
10060         (hash_scan_set): Likewise.
10061         (hash_scan_clobber): Likewise.
10062         (hash_scan_call): Likewise.
10063         (hash_scan_insn): Likewise.
10064         (compute_hash_table_work): Likewise for local "insn".
10065         (process_insert_insn): Likewise for return type and local "pat".
10066         (insert_insn_end_basic_block): Likewise for locals "new_insn",
10067         "pat", "pat_end", "maybe_cc0_setter".
10068         (pre_edge_insert): Likewise for local "insn".
10069         (pre_insert_copy_insn): Likewise for param "insn".
10070         (pre_insert_copies): Likewise for local "insn".
10071         (struct set_data): Likewise for field "insn".
10072         (single_set_gcse): Likewise for param "insn".
10073         (gcse_emit_move_after): Likewise.
10074         (pre_delete): Likewise for local "insn".
10075         (update_bb_reg_pressure): Likewise for param "from" and local
10076         "insn".
10077         (should_hoist_expr_to_dom): Likewise for param "from".
10078         (hoist_code): Likewise for local "insn".
10079         (get_pressure_class_and_nregs): Likewise for param "insn".
10080         (calculate_bb_reg_pressure): Likewise for local "insn".
10081         (compute_ld_motion_mems): Likewise.
10083 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10085         * genpeep.c (main): Rename param back from "uncast_ins1" to
10086         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
10087         checked cast.
10089         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
10091 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
10093         PR target/62195
10094         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
10095         documentation to state it is only for VSX operations.
10097         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
10098         constraint only active if VSX.
10100         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
10101         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
10102         (lfiwzx): Likewise.
10104 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10106         * fwprop.c (single_def_use_dom_walker::before_dom_children):
10107         Strengthen local "insn" from rtx to rtx_insn *.
10108         (use_killed_between): Likewise for param "target_insn".
10109         (all_uses_available_at): Likewise for param "target_insn" and
10110         local "next".
10111         (update_df_init): Likewise for params "def_insn", "insn".
10112         (update_df): Likewise for param "insn".
10113         (try_fwprop_subst): Likewise for param "def_insn" and local
10114         "insn".
10115         (free_load_extend): Likewise for param "insn".
10116         (forward_propagate_subreg): Likewise for param "def_insn" and
10117         local "use_insn".
10118         (forward_propagate_asm): Likewise for param "def_insn" and local
10119         "use_insn".
10120         (forward_propagate_and_simplify): Likewise for param "def_insn"
10121         and local "use_insn".
10122         (forward_propagate_into): Likewise for locals "def_insn" and
10123         "use_insn".
10125 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10127         * function.c (emit_initial_value_sets): Strengthen local "seq"
10128         from rtx to rtx_insn *.
10129         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
10130         local "seq".
10131         (instantiate_virtual_regs): Likewise for local "insn".
10132         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
10133         (reorder_blocks_1): Likewise for param "insns" and local "insn".
10134         (expand_function_end): Likewise for locals "insn" and "seq".
10135         (epilogue_done): Likewise for local "insn".
10136         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
10137         "last", "trial".
10138         (reposition_prologue_and_epilogue_notes): Likewise for locals
10139         "insn", "last", "note", "first".
10140         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
10141         (pass_match_asm_constraints::execute): Likewise for local "insn".
10143 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10145         * output.h (final_scan_insn): Strengthen return type from rtx to
10146         rtx_insn *.
10147         (final_forward_branch_p): Likewise for param.
10148         (current_output_insn): Likewise for this global.
10150         * final.c (rtx debug_insn): Likewise for this variable.
10151         (current_output_insn): Likewise.
10152         (get_attr_length_1): Rename param "insn" to "uncast_insn",
10153         adding "insn" back in as an rtx_insn * with a checked cast, so
10154         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
10155         first param.
10156         (compute_alignments): Strengthen local "label" from rtx to
10157         rtx_insn *.
10158         (shorten_branches): Rename param from "first" to "uncast_first",
10159         introducing a new local rtx_insn * "first" using a checked cast to
10160         effectively strengthen "first" from rtx to rtx_insn * without
10161         affecting the type signature.  Strengthen locals "insn", "seq",
10162         "next", "label" from rtx to rtx_insn *.
10163         (change_scope): Strengthen param "orig_insn" and local "insn" from
10164         rtx to rtx_insn *.
10165         (final_start_function): Rename param from "first" to "uncast_first",
10166         introducing a new local rtx_insn * "first" using a checked cast to
10167         effectively strengthen "first" from rtx to rtx_insn * without
10168         affecting the type signature.  Strengthen local "insn" from rtx to
10169         rtx_insn *.
10170         (dump_basic_block_info): Strengthen param "insn" from rtx to
10171         rtx_insn *.
10172         (final): Rename param from "first" to "uncast_first",
10173         introducing a new local rtx_insn * "first" using a checked cast to
10174         effectively strengthen "first" from rtx to rtx_insn * without
10175         affecting the type signature.  Strengthen locals "insn", "next"
10176         from rtx to rtx_insn *.
10177         (output_alternate_entry_point): Strengthen param "insn" from rtx to
10178         rtx_insn *.
10179         (call_from_call_insn): Strengthen param "insn" from rtx to
10180         rtx_call_insn *.
10181         (final_scan_insn): Rename param from "insn" to "uncast_insn",
10182         introducing a new local rtx_insn * "insn" using a checked cast to
10183         effectively strengthen "insn" from rtx to rtx_insn * without
10184         affecting the type signature.  Strengthen return type and locals
10185         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
10186         now-redundant checked cast to rtx_insn * from both invocations of
10187         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
10188         introducing a local "call_insn" for use when invoking
10189         call_from_call_insn.
10190         (notice_source_line): Strengthen param "insn" from rtx to
10191         rtx_insn *.
10192         (leaf_function_p): Likewise for local "insn".
10193         (final_forward_branch_p): Likewise.
10194         (leaf_renumber_regs): Likewise for param "first".
10195         (rest_of_clean_state): Likewise for locals "insn" and "next".
10196         (self_recursive_call_p): Likewise for param "insn".
10197         (collect_fn_hard_reg_usage): Likewise for local "insn".
10198         (get_call_fndecl): Likewise for param "insn".
10199         (get_call_cgraph_rtl_info): Likewise.
10200         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
10201         introducing a new local rtx_insn * "insn" using a checked cast to
10202         effectively strengthen "insn" from rtx to rtx_insn * without
10203         affecting the type signature.
10205         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
10206         cast when assigning from param "insn" to current_output_insn.
10207         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
10208         so that we can assign it back to current_output_insn.
10210 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10212         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
10213         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
10214         atmxt540s and atmxt540sreva devices.
10215         * config/avr/avr-tables.opt: Regenerate.
10216         * config/avr/t-multilib: Regenerate.
10217         * doc/avr-mmcu.texi: Regenerate.
10219 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10221         * expr.c (convert_move): Strengthen local "insns" from rtx to
10222         rtx_insn *.
10223         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
10224         "top_label" from rtx to rtx_code_label *.
10225         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
10226         rtx_insn *.
10227         (emit_single_push_insn): Likewise for locals "prev", "last".
10228         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
10229         to rtx_code_label *.
10230         (store_constructor): Likewise for locals "loop_start", "loop_end".
10231         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
10232         rtx_insn *.
10233         (expand_expr_real_2): Likewise.
10234         (expand_expr_real_1): Strengthen local "label" from rtx to
10235         rtx_code_label *.
10237 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10239         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10240         from rtx to rtx_insn *.
10241         (store_bit_field_1): Likewise.
10242         (extract_bit_field_1): Likewise.
10243         (expand_mult_const): Likewise for local "insns".
10244         (expmed_mult_highpart): Strengthen local "label" from rtx to
10245         rtx_code_label *.
10246         (expand_smod_pow2): Likewise.
10247         (expand_sdiv_pow2): Likewise.
10248         (expand_divmod): Strengthen locals "last", "insn" from rtx to
10249         rtx_insn *.  Strengthen locals "label", "label1", "label2",
10250         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10251         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10252         (emit_store_flag): Likewise.
10253         (emit_store_flag_force): Strengthen local "label" from rtx to
10254         rtx_code_label *.
10255         (do_cmp_and_jump): Likewise for param "label".
10257 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10259         * explow.c (force_reg): Strengthen local "insn" from rtx to
10260         rtx_insn *.
10261         (adjust_stack_1): Likewise.
10262         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
10263         "final_label", "available_label", "space_available" from rtx to
10264         rtx_code_label *.
10265         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10266         (anti_adjust_stack_and_probe): Likewise.
10268 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10270         * except.h (sjlj_emit_function_exit_after): Strengthen param
10271         "after" from rtx to rtx_insn *.  This is only called with
10272         result of get_last_insn (in function.c) so type-change should be
10273         self-contained.
10275         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
10276         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10277         to rtx_insn *.  These fields are only used from except.c so this
10278         type-change should be self-contained to this patch.
10280         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
10281         local "last" from rtx to rtx_insn *.
10282         (dw2_build_landing_pads): Likewise for local "seq".
10283         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
10284         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
10285         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
10286         rtx to rtx_insn *.
10287         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
10288         to rtx_insn *.
10289         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
10290         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
10291         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
10292         referring to an insn.  Strengthen local "dispatch_label" from
10293         rtx to rtx_code_label *.
10294         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
10295         rtx_insn *.
10296         (expand_eh_return): Strengthen local "around_label" from
10297         rtx to rtx_code_label *.
10298         (convert_to_eh_region_ranges): Strengthen locals "iter",
10299         "last_action_insn", "first_no_action_insn",
10300         "first_no_action_insn_before_switch",
10301         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
10303 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10305         * dwarf2out.c (last_var_location_insn): Strengthen this variable
10306         from rtx to rtx_insn *.
10307         (cached_next_real_insn): Likewise.
10308         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
10309         working with insns.
10310         (dwarf2out_var_location): Strengthen locals "next_real",
10311         "next_note", "expected_next_loc_note", "last_start", "insn" from
10312         rtx to rtx_insn *.
10314 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10316         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
10317         from rtx to rtx_insn *.
10318         (create_pseudo_cfg): Likewise for local "insn".
10320 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10322         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
10323         from rtx to rtx_insn *.
10324         (df_bb_regno_last_def_find): Likewise.
10326         * df-problems.c (df_rd_bb_local_compute): Likewise.
10327         (df_lr_bb_local_compute): Likewise.
10328         (df_live_bb_local_compute): Likewise.
10329         (df_chain_remove_problem): Likewise.
10330         (df_chain_create_bb): Likewise.
10331         (df_word_lr_bb_local_compute): Likewise.
10332         (df_remove_dead_eq_notes): Likewise for param "insn".
10333         (df_note_bb_compute): Likewise for local "insn".
10334         (simulate_backwards_to_point): Likewise.
10335         (df_md_bb_local_compute): Likewise.
10337         * df-scan.c (df_scan_free_bb_info): Likewise.
10338         (df_scan_start_dump): Likewise.
10339         (df_scan_start_block): Likewise.
10340         (df_install_ref_incremental): Likewise for local "insn".
10341         (df_insn_rescan_all): Likewise.
10342         (df_reorganize_refs_by_reg_by_insn): Likewise.
10343         (df_reorganize_refs_by_insn_bb): Likewise.
10344         (df_recompute_luids): Likewise.
10345         (df_bb_refs_record): Likewise.
10346         (df_update_entry_exit_and_calls): Likewise.
10347         (df_bb_verify): Likewise.
10349 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10351         * ddg.h (struct ddg_node): Strengthen fields "insn" and
10352         "first_note" from rtx to rtx_insn *.
10353         (get_node_of_insn): Likewise for param 2 "insn".
10354         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10356         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
10357         rtx_insn *.
10358         (mem_write_insn_p): Likewise.
10359         (mem_access_insn_p): Likewise.
10360         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10361         (def_has_ccmode_p): Likewise for param "insn".
10362         (add_cross_iteration_register_deps): Likewise for locals
10363         "def_insn" and "use_insn".
10364         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
10365         (build_intra_loop_deps): Likewise for local "src_insn".
10366         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
10367         to rtx_insn *.
10368         (get_node_of_insn): Likewise for param "insn".
10370 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10372         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
10373         (deletable_insn_p): Strengthen param "insn" from rtx to
10374         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
10375         find_call_stack_args, since this is guarded by CALL_P (insn).
10376         (marked_insn_p): Strengthen param "insn" from rtx to
10377         rtx_insn *.
10378         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
10379         invoking find_call_stack_args, since this is guarded by
10380         CALL_P (insn).
10381         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
10382         rtx_insn *; we know this is an insn since this was called by
10383         mark_nonreg_stores.
10384         (mark_nonreg_stores_2): Likewise.
10385         (mark_nonreg_stores): Strengthen param "insn" from rtx to
10386         rtx_insn *.
10387         (find_call_stack_args): Strengthen param "call_insn" from rtx to
10388         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
10389         to rtx_insn *.
10390         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
10391         from rtx to rtx_insn *.
10392         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
10393         "next", "ref_insn".
10394         (delete_unmarked_insns): Likewise for locals "insn", "next".
10395         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
10396         (mark_reg_dependencies): Likewise for param "insn".
10397         (rest_of_handle_ud_dce): Likewise for local "insn".
10398         (word_dce_process_block): Likewise.
10399         (dce_process_block): Likewise.
10401 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10403         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
10404         from rtx to rtx_insn *.
10405         (struct change_cc_mode_args): Likewise for field "insn".
10406         (this_insn): Strengthen from rtx to rtx_insn *.
10407         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
10408         with insn.
10409         (validate_canon_reg): Strengthen param "insn" from rtx to
10410         rtx_insn *.
10411         (canon_reg): Likewise.
10412         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
10413         dealing with insn.
10414         (record_jump_equiv): Strengthen param "insn" from rtx to
10415         rtx_insn *.
10416         (try_back_substitute_reg): Likewise, also for locals "prev",
10417         "bb_head".
10418         (find_sets_in_insn): Likewise for param "insn".
10419         (canonicalize_insn): Likewise.
10420         (cse_insn): Likewise.  Add a checked cast.
10421         (invalidate_from_clobbers): Likewise for param "insn".
10422         (invalidate_from_sets_and_clobbers): Likewise.
10423         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
10424         dealing with insn.
10425         (cse_prescan_path): Strengthen local "insn" from rtx to
10426         rtx_insn *.
10427         (cse_extended_basic_block): Likewise for locals "insn" and
10428         "prev_insn".
10429         (cse_main): Likewise for param "f".
10430         (check_for_label_ref): Likewise for local "insn".
10431         (set_live_p): Likewise for second param ("insn").
10432         (insn_live_p): Likewise for first param ("insn") and for local
10433         "next".
10434         (cse_change_cc_mode_insn): Likewise for first param "insn".
10435         (cse_change_cc_mode_insns): Likewise for first and second params
10436         "start" and "end".
10437         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
10438         and "end".
10439         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
10440         "cc_src_insn".
10442 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10443             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10444             Anna Tikhonova  <anna.tikhonova@intel.com>
10445             Ilya Tocar  <ilya.tocar@intel.com>
10446             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10447             Ilya Verbin  <ilya.verbin@intel.com>
10448             Kirill Yukhin  <kirill.yukhin@intel.com>
10449             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10451         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
10452         New.
10453         * config/i386/sse.md
10454         (define_mode_iterator VI248_AVX2): Delete.
10455         (define_mode_iterator VI2_AVX2_AVX512BW): New.
10456         (define_mode_iterator VI48_AVX2): Ditto.
10457         (define_insn <shift_insn><mode>3): Delete.
10458         (define_insn "<shift_insn><mode>3<mask_name>" with
10459         VI2_AVX2_AVX512BW): New.
10460         (define_insn "<shift_insn><mode>3<mask_name>" with
10461         VI48_AVX2): Ditto.
10463 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10464             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10465             Anna Tikhonova  <anna.tikhonova@intel.com>
10466             Ilya Tocar  <ilya.tocar@intel.com>
10467             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10468             Ilya Verbin  <ilya.verbin@intel.com>
10469             Kirill Yukhin  <kirill.yukhin@intel.com>
10470             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10472         * config/i386/sse.md
10473         (define_mode_iterator VI4F_BRCST32x2): New.
10474         (define_mode_attr 64x2_mode): Ditto.
10475         (define_mode_attr 32x2mode): Ditto.
10476         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
10477         with VI4F_BRCST32x2): Ditto.
10478         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
10479         with V16FI mode iterator): Ditto.
10480         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10481         with V16FI): Ditto.
10482         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10483         with VI8F_BRCST64x2): Ditto.
10485 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10486             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10487             Anna Tikhonova  <anna.tikhonova@intel.com>
10488             Ilya Tocar  <ilya.tocar@intel.com>
10489             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10490             Ilya Verbin  <ilya.verbin@intel.com>
10491             Kirill Yukhin  <kirill.yukhin@intel.com>
10492             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10494         * config/i386/sse.md
10495         (define_mode_iterator VI8_AVX512VL): New.
10496         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
10498 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10500         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
10501         (define_mode_iterator V48_AVX512VL): New.
10502         (define_mode_iterator V12_AVX512VL): Ditto.
10503         (define_insn <avx512>_load<mode>_mask): Split into two similar
10504         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
10505         Refactor output template.
10506         (define_insn "<avx512>_store<mode>_mask"): Ditto.
10508 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10510         * cprop.c (struct occr): Strengthen field "insn" from rtx to
10511         rtx_insn *.
10512         (reg_available_p): Likewise for param "insn".
10513         (insert_set_in_table): Likewise.
10514         (hash_scan_set): Likewise.
10515         (hash_scan_insn): Likewise.
10516         (make_set_regs_unavailable): Likewise.
10517         (compute_hash_table_work): Likewise for local "insn".
10518         (reg_not_set_p): Strengthen param "insn" from const_rtx to
10519         const rtx_insn *.
10520         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
10521         (try_replace_reg): Likewise.
10522         (find_avail_set): Likewise.
10523         (cprop_jump): Likewise for params "setcc", "jump".
10524         (constprop_register): Likewise for param "insn".
10525         (cprop_insn): Likewise.
10526         (do_local_cprop): Likewise.
10527         (local_cprop_pass): Likewise for local "insn".
10528         (bypass_block): Likewise for params "setcc" and "jump".
10529         (bypass_conditional_jumps): Likewise for locals "setcc" and
10530         "insn".
10531         (one_cprop_pass): Likewise for local "insn".
10533 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10535         * compare-elim.c (struct comparison_use): Strengthen field "insn"
10536         from rtx to rtx_insn *.
10537         (struct comparison): Likewise, also for field "prev_clobber".
10538         (conforming_compare): Likewise for param "insn".
10539         (arithmetic_flags_clobber_p): Likewise.
10540         (find_flags_uses_in_insn): Likewise.
10541         (find_comparison_dom_walker::before_dom_children): Likewise for
10542         locals "insn", "next", "last_clobber".
10543         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
10545 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10547         * combine-stack-adj.c (struct csa_reflist): Strengthen field
10548         "insn" from rtx to rtx_insn *.
10549         (single_set_for_csa): Likewise for param "insn".
10550         (record_one_stack_ref): Likewise.
10551         (try_apply_stack_adjustment): Likewise.
10552         (struct record_stack_refs_data): Likewise for field "insn".
10553         (maybe_move_args_size_note): Likewise for params "last" and "insn".
10554         (prev_active_insn_bb): Likewise for return type and param "insn".
10555         (next_active_insn_bb): Likewise.
10556         (force_move_args_size_note): Likewise for params "prev" and "last"
10557         and locals "test", "next_candidate", "prev_candidate".
10558         (combine_stack_adjustments_for_block): Strengthen locals
10559         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
10560         rtx_insn *.
10562 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10564         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
10565         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
10566         (subst_insn): Likewise for this variable.
10567         (added_links_insn): Likewise.
10568         (struct insn_link): Likewise for field "insn".
10569         (alloc_insn_link): Likewise for param "insn".
10570         (struct undobuf): Likewise for field "other_insn".
10571         (find_single_use): Likewise for param "insn" and local "next".
10572         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
10573         (delete_noop_moves): Likewise for locals "insn", "next".
10574         (create_log_links): Likewise for locals "insn", "use_insn".
10575         Strengthen local "next_use" from rtx * to rtx_insn **.
10576         (insn_a_feeds_b): Likewise for params "a", "b".
10577         (combine_instructions): Likewise for param "f" and locals "insn",
10578         "next", "prev", "first", "last_combined_insn", "link", "link1",
10579         "temp".  Replace use of NULL_RTX with NULL when referring to
10580         insns.
10581         (setup_incoming_promotions): Likewise for param "first"
10582         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
10583         (can_combine_p): Likewise for params "insn", "i3", "pred",
10584         "pred2", "succ", "succ2" and for local "p".
10585         (combinable_i3pat): Likewise for param "i3".
10586         (cant_combine_insn_p): Likewise for param "insn".
10587         (likely_spilled_retval_p): Likewise.
10588         (adjust_for_new_dest): Likewise.
10589         (update_cfg_for_uncondjump): Likewise, also for local "insn".
10590         (try_combine): Likewise for return type and for params "i3", "i2",
10591         "i1", "i0", "last_combined_insn", and for locals "insn",
10592         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
10593         "i0_insn".  Eliminate local "tem" in favor of new locals
10594         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
10595         checked cast for now to rtx_insn * on the return type of
10596         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
10597         insns.
10598         (find_split_point): Strengthen param "insn" from rtx to
10599         rtx_insn *.
10600         (simplify_set): Likewise for local "other_insn".
10601         (recog_for_combine): Likewise for param "insn".
10602         (record_value_for_reg): Likewise.
10603         (record_dead_and_set_regs_1): Likewise for local
10604         "record_dead_insn".
10605         (record_dead_and_set_regs): Likewise for param "insn".
10606         (record_promoted_value): Likewise.
10607         (check_promoted_subreg): Likewise.
10608         (get_last_value_validate): Likewise.
10609         (reg_dead_at_p): Likewise.
10610         (move_deaths): Likewise for param "to_insn".
10611         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
10612         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
10613         in favor of new locals "tem_note" and "tem_insn", the latter being
10614         an rtx_insn *.
10615         (distribute_links): Strengthen locals "place", "insn" from rtx to
10616         rtx_insn *.
10618 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10620         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
10621         than a const_rtx.
10622         (can_delete_label_p): Require a const rtx_code_label * rather than
10623         a const_rtx.
10624         (delete_insn): Add checked cast to rtx_code_label * when we know
10625         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
10626         rtx to rtx_insn *.
10627         (delete_insn_chain): Strengthen locals "prev" and "current" from
10628         rtx to rtx_insn *.  Add a checked cast when assigning from
10629         "finish" (strengthening the params will come later).  Add a
10630         checked cast to rtx_note * in region where we know
10631         NOTE_P (current).
10632         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
10633         rtx_insn *.
10634         (compute_bb_for_insn): Likewise.
10635         (free_bb_for_insn): Likewise for local "insn".
10636         (compute_bb_for_insn): Likewise.
10637         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
10638         local "insn" from rtx to rtx_insn *
10639         (flow_active_insn_p): Require a const rtx_insn * rather than a
10640         const_rtx.
10641         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
10642         rtx_insn *.
10643         (can_fallthru): Likewise for locals "insn" and "insn2".
10644         (bb_note): Likewise for local "note".
10645         (first_insn_after_basic_block_note): Likewise for local "note" and
10646         for return type.
10647         (rtl_split_block): Likewise for locals "insn" and "next".
10648         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
10649         "end".
10650         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
10651         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
10652         "prev", "tmp".
10653         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
10654         them), "kill_from", "barrier", "new_insn".
10655         (patch_jump_insn): Likewise for params "insn", "old_label".
10656         (redirect_branch_edge): Likewise for locals "old_label", "insn".
10657         (force_nonfallthru_and_redirect): Likewise for locals "insn",
10658         "old_label", "new_label".
10659         (rtl_tidy_fallthru_edge): Likewise for local "q".
10660         (rtl_split_edge): Likewise for locals "before", "last".
10661         (commit_one_edge_insertion): Likewise for locals "before",
10662         "after", "insns", "tmp", "last", adding a checked cast where
10663         currently necessary.
10664         (commit_edge_insertions): Likewise.
10665         (rtl_dump_bb): Likewise for locals "insn", "last".
10666         (print_rtl_with_bb): Likewise for local "x".
10667         (rtl_verify_bb_insns): Likewise for local "x".
10668         (rtl_verify_bb_pointers): Likewise for local "insn".
10669         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
10670         "head", "end".
10671         (rtl_verify_fallthru): Likewise for local "insn".
10672         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
10673         (purge_dead_edges): Likewise for local "insn".
10674         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
10675         (skip_insns_after_block): Likewise for return type and for locals
10676         "insn", "last_insn", "next_head", "prev".
10677         (record_effective_endpoints): Likewise for locals "next_insn",
10678         "insn", "end".
10679         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
10680         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
10681         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
10682         (duplicate_insn_chain): For now, add checked cast from rtx to
10683         rtx_insn * when returning insn.
10684         (cfg_layout_duplicate_bb): Likewise for local "insn".
10685         (cfg_layout_delete_block): Likewise for locals "insn", "next",
10686         "prev", "remaints".
10687         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
10688         (rtl_block_empty_p): Likewise.
10689         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
10690         "split_point", "last".
10691         (rtl_block_ends_with_call_p): Likewise for local "insn".
10692         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
10693         const rtx_insn *.
10694         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
10695         "split_at_insn" from rtx to rtx_insn *.
10696         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
10697         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
10698         to const rtx_insn *.
10699         (rtl_account_profile_record): Likewise.
10701 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10703         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
10704         rtx to rtx_insn *.
10705         (average_num_loop_insns): Likewise.
10706         (init_set_costs): Likewise for local "seq".
10707         (seq_cost): Likewise for param "seq", from const_rtx to const
10708         rtx_insn *.
10710 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10712         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
10713         rtx to rtx_insn *.
10715 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10717         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
10718         "f1" and "f2" from rtx * to rtx_insn **.
10719         (flow_find_head_matching_sequence): Likewise.
10721         * cfgcleanup.c (try_simplify_condjump): Strengthen local
10722         "cbranch_insn" from rtx to rtx_insn *.
10723         (thread_jump): Likewise for local "insn".
10724         (try_forward_edges): Likewise for local "last".
10725         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
10726         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
10727         "real_b_end".
10728         (can_replace_by): Likewise for params "i1", "i2".
10729         (old_insns_match_p): Likewise.
10730         (merge_notes): Likewise.
10731         (walk_to_nondebug_insn): Likewise for param "i1".
10732         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
10733         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
10734         "afterlast1", "afterlast2" from rtx to rtx_insn *.
10735         (flow_find_head_matching_sequence): Strengthen params "f1" and
10736         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
10737         "last1", "last2", "beforelast1", "beforelast2" from rtx to
10738         rtx_insn *.
10739         (outgoing_edges_match): Likewise for locals "last1", "last2".
10740         (try_crossjump_to_edge): Likewise for local "insn".
10741         Replace call to for_each_rtx with for_each_rtx_in_insn.
10743         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
10744         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
10745         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
10746         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
10747         (try_optimize_cfg): Strengthen local "last" from rtx to
10748         rtx_insn *.
10749         (delete_dead_jumptables): Likewise for locals "insn", "next",
10750         "label".
10752         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
10753         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
10754         "rtx else_first_tail", to reflect the basic-block.h changes above.
10756 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10758         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
10759         rtx_insn *.
10760         (purge_dead_tablejump_edges): Likewise.
10761         (find_bb_boundaries): Likewise for locals "insn", "end",
10762         "flow_transfer_insn".
10764 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10766         * caller-save.c (save_call_clobbered_regs): Strengthen locals
10767         "ins" and "prev" from rtx to rtx_insn *.
10769 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10771         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
10772         rtx_insn *.
10773         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
10774         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
10775         "scan_start".
10776         (load_register_parameters): Likewise for local "before_arg".
10777         (check_sibcall_argument_overlap): Likewise for param "insn".
10778         (expand_call): Likewise for locals "normal_call_insns",
10779         "tail_call_insns", "insns", "before_call", "after_args",
10780         "before_arg", "last", "prev".  Strengthen one of the "last" from
10781         rtx to rtx_call_insn *.
10782         (fixup_tail_calls): Strengthen local "insn" from rtx to
10783         rtx_insn *.
10784         (emit_library_call_value_1): Likewise for locals "before_call" and
10785         "last".
10787 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10789         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
10790         and "last" from rtx to rtx_insn *.
10791         (expand_builtin_nonlocal_goto): Likewise for local "insn".
10792         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
10793         rtx_call_insn *.
10794         (expand_errno_check): Strengthen local "lab" from rtx to
10795         rtx_code_label *.
10796         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
10797         rtx_insn *.
10798         (expand_builtin_mathfn_2): Likewise.
10799         (expand_builtin_mathfn_ternary): Likewise.
10800         (expand_builtin_mathfn_3): Likewise.
10801         (expand_builtin_interclass_mathfn): Likewise for local "last".
10802         (expand_builtin_int_roundingfn): Likewise for local "insns".
10803         (expand_builtin_int_roundingfn_2): Likewise.
10804         (expand_builtin_strlen): Likewise for local "before_strlen".
10805         (expand_builtin_strncmp): Likewise for local "seq".
10806         (expand_builtin_signbit): Likewise for local "last".
10807         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
10808         from rtx to rtx_code_label *.
10809         (expand_stack_restore):  Strengthen local "prev" from rtx to
10810         rtx_insn *.
10812 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10814         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
10815         to rtx_insn *.
10816         (struct btr_def_s): Likewise.
10817         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
10818         const rtx_insn *.
10819         (add_btr_def): Likewise.
10820         (new_btr_user): Likewise.
10821         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
10822         rtx to rtx_insn *.
10823         (link_btr_uses): Likewise.
10824         (move_btr_def): Likewise for locals "insp", "old_insn",
10825         "new_insn".  Add checked cast to rtx_insn * for now on result of
10826         gen_move_insn.
10827         (can_move_up): Strengthen param "insn" from const_rtx to
10828         const rtx_insn *.
10830 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10832         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
10833         rtx_insn *.
10834         (get_uncond_jump_length): Likewise for locals "label", "jump".
10835         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
10836         "jump", "insn".
10837         (add_labels_and_missing_jumps): Likewise for local "new_jump".
10838         (fix_up_fall_thru_edges): Likewise for local "old_jump".
10839         (find_jump_block): Likewise for local "insn".
10840         (fix_crossing_conditional_branches): Likewise for locals
10841         "old_jump", "new_jump".
10842         (fix_crossing_unconditional_branches): Likewise for locals
10843         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
10844         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
10846 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10848         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
10849         rtx to rtx_insn *.
10850         (struct mem_insn): Likewise for field "insn".
10851         (reg_next_use): Strengthen from rtx * to rtx_insn **.
10852         (reg_next_inc_use): Likewise.
10853         (reg_next_def): Likewise.
10854         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
10855         from rtx to rtx_insn *.
10856         (move_insn_before): Likewise for param "next_insn" and local "insns".
10857         (attempt_change): Likewise for local "mov_insn".
10858         (try_merge): Likewise for param "last_insn".
10859         (get_next_ref): Likewise for return type and local "insn".
10860         Strengthen param "next_array" from rtx * to rtx_insn **.
10861         (parse_add_or_inc): Strengthen param "insn" from rtx to
10862         rtx_insn *.
10863         (find_inc): Likewise for locals "insn" and "other_insn" (three of
10864         the latter).
10865         (merge_in_block): Likewise for locals "insn", "curr",
10866         "other_insn".
10867         (pass_inc_dec::execute): Update allocations of the arrays to
10868         reflect the stronger types.
10870 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10872         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
10873         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
10874         from rtx to rtx_code_label *.
10876 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10878         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
10879         to rtx_insn *.
10881 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10883         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
10884         generated a warning and prevented bootstrapping the compiler.
10886 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10888         * rtl.h (delete_related_insns): Strengthen return type from rtx to
10889         rtx_insn *.
10891         * jump.c (delete_related_insns): Likewise, also for locals "next"
10892         and "prev".
10894 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10896         * genautomata.c (output_internal_insn_latency_func): When writing
10897         the function "internal_insn_latency" to insn-automata.c,
10898         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
10899         allowing the optional guard function of (define_bypass) clauses to
10900         expect a pair of rtx_insn *, rather than a pair of rtx.
10901         (output_insn_latency_func): When writing the function
10902         "insn_latency", add an "uncast_" prefix to params "insn" and
10903         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
10904         using checked casts from the params, thus enabling the above
10905         change to the generated "internal_insn_latency" function.
10907 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
10909         PR tree-optimization/62091
10910         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
10911         handle correctly arrays.
10912         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
10913         inheritance binfos.
10914         (record_known_type): Walk into inner type.
10915         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
10916         condition on no type changes.
10918 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10920         * genattrtab.c (write_attr_get): Within the generated get_attr_
10921         functions, rename param "insn" to "uncast_insn" and reintroduce
10922         "insn" as an local rtx_insn * using a checked cast, so that "insn"
10923         is an rtx_insn * within insn-attrtab.c
10925 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10927         * output.h (peephole): Strengthen return type from rtx to
10928         rtx_insn *.
10929         * rtl.h (delete_for_peephole): Likewise for both params.
10930         * genpeep.c (main): In generated "peephole" function, strengthen
10931         return type and local "insn" from rtx to rtx_insn *.  For now,
10932         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
10933         rtx_insn *, with a checked cast.
10934         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
10935         locals "insn", "next", "prev" from rtx to rtx_insn *.
10937 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
10939         PR tree-optimization/62112
10940         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
10941         * gimple-iterator.h (gsi_replace): Return bool.
10942         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
10943         moved from ref_may_alias_global_p.
10944         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
10945         New overloads.
10946         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
10947         (stmt_kills_ref_p_1): Rename...
10948         (stmt_kills_ref_p): ... to this.
10949         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
10950         stmt_kills_ref_p): Declare.
10951         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
10952         Move the self-assignment case...
10953         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
10955 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10957         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
10959         * emit-rtl.c (try_split): Likewise, also for locals "before" and
10960         "after".  For now, don't strengthen param "trial", which requires
10961         adding checked casts when returning it.
10963 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10965         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
10966         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
10967         "var_location" hook from rtx to rtx_insn *.
10968         (debug_nothing_rtx): Delete in favor of...
10969         (debug_nothing_rtx_code_label): New prototype.
10970         (debug_nothing_rtx_rtx): Delete unused prototype.
10971         (debug_nothing_rtx_insn): New prototype.
10973         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
10974         invoking debug_hooks->var_location (in two places, one in a NOTE
10975         case of a switch statement, the other guarded by a CALL_P
10976         conditional.  Add checked cast to rtx_code_label * when invoking
10977         debug_hooks->label (within CODE_LABEL case of switch statement).
10979         * dbxout.c (dbx_debug_hooks): Update "label" hook from
10980         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
10981         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
10982         (xcoff_debug_hooks): Likewise.
10983         * debug.c (do_nothing_debug_hooks): Likewise.
10984         (debug_nothing_rtx): Delete in favor of...
10985         (debug_nothing_rtx_insn): New function.
10986         (debug_nothing_rtx_rtx): Delete unused function.
10987         (debug_nothing_rtx_code_label): New function.
10988         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
10989         debug_nothing_rtx to debug_nothing_rtx_code_label.
10990         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
10991         to rtx_insn *.
10992         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
10993         debug_nothing_rtx to debug_nothing_rtx_insn.
10994         (sdbout_label): Strengthen param "insn" from rtx to
10995         rtx_code_label *.
10996         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
10997         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
10998         "var_location" hook from debug_nothing_rtx to
10999         debug_nothing_rtx_insn.
11001 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11003         * recog.h (insn_output_fn): Update this function typedef to match
11004         the changes below to the generated output functions, strengthening
11005         the 2nd param from rtx to rtx_insn *.
11007         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
11008         insn when invoking an output function, to match the new signature
11009         of insn_output_fn with a stronger second param.
11011         * genconditions.c (write_header): In the generated code for
11012         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
11013         to match the other changes in this patch.
11015         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
11016         the generated "gen_" functions from rtx to rtx_insn * within their
11017         implementations.
11019         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
11020         the subfunctions within the generated "recog_", "split", "peephole2"
11021         function trees from rtx to rtx_insn *.  For now, the top-level
11022         generated functions ("recog", "split", "peephole2") continue to
11023         take a plain rtx for "insn", to avoid introducing dependencies on
11024         other patches.  Rename this 2nd param from "insn" to
11025         "uncast_insn", and reintroduce "insn" as a local variable of type
11026         rtx_insn *, initialized at the top of the generated function with
11027         a checked cast on "uncast_insn".
11028         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
11029         the generated "gen_" functions from rtx to rtx_insn * within their
11030         prototypes.
11032         * genoutput.c (process_template): Strengthen the 2nd param within
11033         the generated "output_" functions "insn" from rtx to rtx_insn *.
11035 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11037         * tree-profile.c (tree_profiling): Skip external functions
11038         when doing coverage instrumentation.
11039         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
11041 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11043         * config/rs6000/altivec.h (vec_cpsgn): New #define.
11044         (vec_mergee): Likewise.
11045         (vec_mergeo): Likewise.
11046         (vec_cntlz): Likewise.
11047         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
11048         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
11049         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
11050         VMRGEW, and VMRGOW.
11051         * doc/extend.texi: Document various forms of vec_cpsgn,
11052         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
11053         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
11054         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
11055         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
11056         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
11058 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11060         * config/rs6000/rs6000.c (context.h): New include.
11061         (tree-pass.h): Likewise.
11062         (make_pass_analyze_swaps): New decl.
11063         (rs6000_option_override): Register pass_analyze_swaps.
11064         (swap_web_entry): New subsclass of web_entry_base (df.h).
11065         (special_handling_values): New enum.
11066         (union_defs): New function.
11067         (union_uses): Likewise.
11068         (insn_is_load_p): Likewise.
11069         (insn_is_store_p): Likewise.
11070         (insn_is_swap_p): Likewise.
11071         (rtx_is_swappable_p): Likewise.
11072         (insn_is_swappable_p): Likewise.
11073         (chain_purpose): New enum.
11074         (chain_contains_only_swaps): New function.
11075         (mark_swaps_for_removal): Likewise.
11076         (swap_const_vector_halves): Likewise.
11077         (adjust_subreg_index): Likewise.
11078         (permute_load): Likewise.
11079         (permute_store): Likewise.
11080         (handle_special_swappables): Likewise.
11081         (replace_swap_with_copy): Likewise.
11082         (dump_swap_insn_table): Likewise.
11083         (rs6000_analyze_swaps): Likewise.
11084         (pass_data_analyze_swaps): New pass_data.
11085         (pass_analyze_swaps): New rtl_opt_pass.
11086         (make_pass_analyze_swaps): New function.
11087         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
11089 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11091         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
11092         type from rtx to rtx_insn *.
11093         (create_copy_of_insn_rtx): Likewise.
11094         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
11095         (create_copy_of_insn_rtx): Likewise, also for local "res".
11097 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11099         * rtl.h (find_first_parameter_load): Strengthen return type from
11100         rtx to rtx_insn *.
11101         * rtlanal.c (find_first_parameter_load): Strengthen return type
11102         from rtx to rtx_insn *.  Add checked cast for now, to postpone
11103         strengthening the params.
11105 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11107         PR fortran/44054
11108         * diagnostic.c: Set default caret.
11109         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
11110         line is needed.
11111         * diagnostic.h (struct diagnostic_context):
11113 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11115         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
11116         (sel_bb_head): Strengthen return type insn_t (currently just an
11117         rtx) to rtx_insn *.
11118         (sel_bb_end): Likewise.
11120         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
11121         (sel_bb_head): Strengthen return type and local "head" from
11122         insn_t (currently just an rtx) to rtx_insn *.
11123         (sel_bb_end): Likewise for return type.
11124         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
11125         working with insn.
11127 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11129         * basic-block.h (get_last_bb_insn): Strengthen return type from
11130         rtx to rtx_insn *.
11131         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
11132         end".
11134 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11136         PR fortran/44054
11137         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
11138          to here ...
11139         (diagnostic_report_diagnostic): ... from here.
11140         * toplev.c (general_init): Move code to c-family.
11142 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11144         * df.h (web_entry_base): Replace existing struct web_entry with a
11145         new class web_entry_base with only the predecessor member.
11146         (unionfind_root): Remove declaration and move to class member.
11147         (unionfind_union): Remove declaration and move to friend
11148         function.
11149         (union_defs): Remove declaration.
11150         * web.c (web_entry_base::unionfind_root): Modify to be member
11151         function and adjust accessors.
11152         (unionfind_union): Modify to be friend function and adjust
11153         accessors.
11154         (web_entry): New subclass of web_entry_base containing the reg
11155         member.
11156         (union_match_dups): Modify for struct -> class changes.
11157         (union_defs): Likewise.
11158         (entry_register): Likewise.
11159         (pass_web::execute): Likewise.
11161 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
11163         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
11164         builtin define __VEC_ELEMENT_REG_ORDER__.
11166 2014-08-20  Martin Jambor  <mjambor@suse.cz>
11167             Wei Mi  <wmi@google.com>
11169         PR ipa/60449
11170         PR middle-end/61776
11171         * tree-ssa-operands.c (update_stmt_operands): Remove
11172         MODIFIED_NORETURN_CALLS.
11173         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
11174         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
11175         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
11176         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
11177         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
11178         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
11179         (gimple_call_set_ctrl_altering): New func.
11180         (gimple_call_ctrl_altering_p): Ditto.
11181         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
11182         (make_blocks): Use gimple_call_initialize_ctrl_altering.
11183         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
11184         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
11185         remove MODIFIED_NORETURN_CALLS.
11187 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11189         * coverage.c (coverage_compute_profile_id): Return non-0;
11190         also handle symbols with unique name.
11191         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
11193 2014-08-20  Steve Ellcey  <sellcey@mips.com>
11195         PR middle-end/49191
11196         * doc/sourcebuild.texi (non_strict_align): New.
11198 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11200         * cgraphunit.c (ipa_passes, compile): Reshedule
11201         symtab_remove_unreachable_nodes passes; update comments.
11202         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
11203         TODO_remove_functions before the pass; the functions ought to be
11204         already removed.
11205         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
11206         TODO_remove_functions.
11207         * passes.c (pass_data_early_local_passes): Do not schedule function
11208         removal.
11209         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
11211 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11213         PR c/59304
11214         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
11215         before setting the option.
11216         * diagnostic.c (diagnostic_classify_diagnostic): Record
11217         command-line status.
11219 2014-08-20  Richard Biener  <rguenther@suse.de>
11221         PR lto/62190
11222         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
11223         to build uint{16,32,64}_type_node.
11225 2014-08-20  Terry Guo  <terry.guo@arm.com>
11227         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
11228         with immediate_operand.
11230 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
11232         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
11233         "insn" from an as_a to a safe_as_a, for the case when "insn" is
11234         NULL.
11236 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11238         PR preprocessor/51303
11239         * incpath.c (remove_duplicates): Use cpp_warning.
11241 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11243         PR c/60975
11244         PR c/53063
11245         * doc/options.texi (CPP): Document it.
11246         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11247         * optc-gen.awk: Handle CPP.
11248         * opth-gen.awk: Likewise.
11250 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11252         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11253         rtx_insn *.
11254         (duplicate_insn_chain): Likewise.
11255         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11256         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
11257         checked cast for now (until we can strengthen the params in the
11258         same way).
11259         (duplicate_insn_chain): Likewise.
11261 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11263         * rtl.h (next_cc0_user): Strengthen return type from rtx to
11264         rtx_insn *.
11265         (prev_cc0_setter): Likewise.
11267         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
11268         rtx_insn *, adding checked casts for now as necessary.
11269         (prev_cc0_setter): Likewise.
11271 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11273         * expr.h (emit_move_insn): Strengthen return type from rtx to
11274         rtx_insn *.
11275         (emit_move_insn_1): Likewise.
11276         (emit_move_complex_push): Likewise.
11277         (emit_move_complex_parts): Likewise.
11279         * expr.c (emit_move_via_integer): Strengthen return type from rtx
11280         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
11281         with insns.
11282         (emit_move_complex_push): Strengthen return type from rtx to
11283         rtx_insn *.
11284         (emit_move_complex): Likewise, also for local "ret".
11285         (emit_move_ccmode): Likewise.
11286         (emit_move_multi_word): Likewise for return type and locals
11287         "last_insn", "seq".
11288         (emit_move_insn_1): Likewise for return type and locals "result",
11289         "ret".
11290         (emit_move_insn): Likewise for return type and local "last_insn".
11291         (compress_float_constant): Likewise.
11293 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11295         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
11296         from rtx to rtx_insn *.
11298         * rtl.h (emit_insn_before): Likewise.
11299         (emit_insn_before_noloc): Likewise.
11300         (emit_insn_before_setloc): Likewise.
11301         (emit_jump_insn_before): Likewise.
11302         (emit_jump_insn_before_noloc): Likewise.
11303         (emit_jump_insn_before_setloc): Likewise.
11304         (emit_call_insn_before): Likewise.
11305         (emit_call_insn_before_noloc): Likewise.
11306         (emit_call_insn_before_setloc): Likewise.
11307         (emit_debug_insn_before): Likewise.
11308         (emit_debug_insn_before_noloc): Likewise.
11309         (emit_debug_insn_before_setloc): Likewise.
11310         (emit_label_before): Likewise.
11311         (emit_insn_after): Likewise.
11312         (emit_insn_after_noloc): Likewise.
11313         (emit_insn_after_setloc): Likewise.
11314         (emit_jump_insn_after): Likewise.
11315         (emit_jump_insn_after_noloc): Likewise.
11316         (emit_jump_insn_after_setloc): Likewise.
11317         (emit_call_insn_after): Likewise.
11318         (emit_call_insn_after_noloc): Likewise.
11319         (emit_call_insn_after_setloc): Likewise.
11320         (emit_debug_insn_after): Likewise.
11321         (emit_debug_insn_after_noloc): Likewise.
11322         (emit_debug_insn_after_setloc): Likewise.
11323         (emit_label_after): Likewise.
11324         (emit_insn): Likewise.
11325         (emit_debug_insn): Likewise.
11326         (emit_jump_insn): Likewise.
11327         (emit_call_insn): Likewise.
11328         (emit_label): Likewise.
11329         (gen_clobber): Likewise.
11330         (emit_clobber): Likewise.
11331         (gen_use): Likewise.
11332         (emit_use): Likewise.
11333         (emit): Likewise.
11335         (emit_barrier_before): Strengthen return type from rtx to
11336         rtx_barrier *.
11337         (emit_barrier_after): Likewise.
11338         (emit_barrier): Likewise.
11340         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
11341         from rtx to rtx_insn *.  Add checked casts for now when converting
11342         "last" from rtx to rtx_insn *.
11343         (emit_insn_before_noloc): Likewise for return type.
11344         (emit_jump_insn_before_noloc): Likewise.
11345         (emit_call_insn_before_noloc): Likewise.
11346         (emit_debug_insn_before_noloc): Likewise.
11347         (emit_barrier_before): Strengthen return type and local "insn"
11348         from rtx to rtx_barrier *.
11349         (emit_label_before): Strengthen return type from rtx to
11350         rtx_insn *.  Add checked cast for now when returning param
11351         (emit_pattern_after_noloc): Strengthen return type from rtx to
11352         rtx_insn *.  Add checked casts for now when converting "last" from
11353         rtx to rtx_insn *.
11354         (emit_insn_after_noloc): Strengthen return type from rtx to
11355         rtx_insn *.
11356         (emit_jump_insn_after_noloc): Likewise.
11357         (emit_call_insn_after_noloc): Likewise.
11358         (emit_debug_insn_after_noloc): Likewise.
11359         (emit_barrier_after): Strengthen return type from rtx to
11360         rtx_barrier *.
11361         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
11362         Add checked cast for now when converting "label" from rtx to
11363         rtx_insn *.
11364         (emit_pattern_after_setloc): Strengthen return type from rtx to
11365         rtx_insn *.  Add checked casts for now when converting "last" from
11366         rtx to rtx_insn *.
11367         (emit_pattern_after): Strengthen return type from rtx to
11368         rtx_insn *.
11369         (emit_insn_after_setloc): Likewise.
11370         (emit_insn_after): Likewise.
11371         (emit_jump_insn_after_setloc): Likewise.
11372         (emit_jump_insn_after): Likewise.
11373         (emit_call_insn_after_setloc): Likewise.
11374         (emit_call_insn_after): Likewise.
11375         (emit_debug_insn_after_setloc): Likewise.
11376         (emit_debug_insn_after): Likewise.
11377         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
11378         when converting "last" from rtx to rtx_insn *.
11379         (emit_pattern_before): Strengthen return type from rtx to
11380         rtx_insn *.
11381         (emit_insn_before_setloc): Likewise.
11382         (emit_insn_before): Likewise.
11383         (emit_jump_insn_before_setloc): Likewise.
11384         (emit_jump_insn_before): Likewise.
11385         (emit_call_insn_before_setloc): Likewise.
11386         (emit_call_insn_before): Likewise.
11387         (emit_debug_insn_before_setloc): Likewise.
11388         (emit_debug_insn_before): Likewise.
11389         (emit_insn): Strengthen return type and locals "last", "insn",
11390         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
11391         within cases where we know we have an insn.
11392         (emit_debug_insn): Likewise.
11393         (emit_jump_insn): Likewise.
11394         (emit_call_insn): Strengthen return type and local "insn" from rtx
11395         to rtx_insn *.
11396         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
11397         a checked cast to rtx_insn * for now on "label".
11398         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
11399         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
11400         (emit_use): Likewise.
11401         (gen_use): Likewise, also for local "seq".
11402         (emit): Likewise for return type and local "insn".
11403         (rtx_insn): Likewise for return type and local "new_rtx".
11405         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
11406         from rtx to rtx_barrier *.
11408         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
11409         changed return type from rtx to rtx_insn *, we must update
11410         "emit_fn" type, and this in turn means updating...
11411         (frame_insn): ...this.  Strengthen return type from rtx to
11412         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
11414 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11416         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
11417         rtx to rtx_jump_table_data *.  Also for local.
11418         * rtl.h (emit_jump_table_data): Likewise.
11420 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11422         * basic-block.h (create_basic_block_structure): Strengthen third
11423         param "bb_note" from rtx to rtx_note *.
11424         * rtl.h (emit_note_before): Strengthen return type from rtx to
11425         rtx_note *.
11426         (emit_note_after): Likewise.
11427         (emit_note): Likewise.
11428         (emit_note_copy): Likewise.  Also, strengthen param similarly.
11429         * function.h (struct rtl_data): Strengthen field
11430         "x_stack_check_probe_note" from rtx to rtx_note *.
11432         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
11433         from rtx to rtx_note *.
11434         * cfgrtl.c (create_basic_block_structure): Strengthen third param
11435         "bb_note" from rtx to rtx_note *.
11436         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
11437         when calling emit_note_copy.
11438         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
11439         rtx_note *.
11440         (emit_note_after): Likewise.
11441         (emit_note_before): Likewise.
11442         (emit_note_copy): Likewise.  Also, strengthen param similarly.
11443         (emit_note): Likewise.
11444         * except.c (emit_note_eh_region_end): Likewise for return type.
11445         Strengthen local "next" from rtx to rtx_insn *.
11446         (convert_to_eh_region_ranges): Strengthen local "note"
11447         from rtx to rtx_note *.
11448         * final.c (change_scope): Likewise.
11449         (reemit_insn_block_notes): Likewise, for both locals named "note".
11450         Also, strengthen local "insn" from rtx to rtx_insn *.
11451         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
11452         rtx to rtx_note *.
11453         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
11454         strengthen local "seq" from rtx to rtx_insn *.
11455         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
11456         to rtx_note *.
11457         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
11458         vec<rtx_note *>.
11459         (get_bb_note_from_pool): Strengthen return type from rtx to
11460         rtx_note *.
11461         (sel_create_basic_block): Strengthen local "new_bb_note" from
11462         insn_t to rtx_note *.
11463         * var-tracking.c (emit_note_insn_var_location): Strengthen local
11464         "note" from rtx to rtx_note *.
11465         (emit_notes_in_bb): Likewise.
11467 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11469         * function.h (struct rtl_data): Strengthen field
11470         "x_parm_birth_insn" from rtx to rtx_insn *.
11471         * function.c (struct assign_parm_data_all): Strengthen fields
11472         "first_conversion_insn" and "last_conversion_insn" from rtx to
11473         rtx_insn *.
11475 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11477         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
11478         to rtx_insn *; also for local "var_end_seq".
11479         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
11480         (maybe_cleanup_end_of_block): Likewise for param "last" and local
11481         "insn".
11482         (expand_gimple_cond): Likewise for locals "last2" and "last".
11483         (mark_transaction_restart_calls): Likewise for local "insn".
11484         (expand_gimple_stmt): Likewise for return type and locals "last"
11485         and "insn".
11486         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
11487         (avoid_complex_debug_insns): Likewise for param "insn".
11488         (expand_debug_locations): Likewise for locals "insn", "last",
11489         "prev_insn" and "insn2".
11490         (expand_gimple_basic_block): Likewise for local "last".
11491         (construct_exit_block): Likewise for locals "head", "end",
11492         "orig_end".
11493         (pass_expand::execute): Likewise for locals "var_seq",
11494         "var_ret_seq", "next".
11496 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11498         * asan.h (asan_emit_stack_protection): Strengthen return type from
11499         rtx to rtx_insn *.
11500         * asan.c (asan_emit_stack_protection): Likewise.  Add local
11501         "insns" to hold the return value.
11503 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11505         * basic-block.h (bb_note): Strengthen return type from rtx to
11506         rtx_note *.
11507         * sched-int.h (bb_note): Likewise.
11508         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
11510 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11512         * rtl.h (make_insn_raw): Strengthen return type from rtx to
11513         rtx_insn *.
11515         * emit-rtl.c (make_insn_raw): Strengthen return type and local
11516         "insn" from rtx to rtx_insn *.
11517         (make_debug_insn_raw): Strengthen return type from rtx to
11518         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
11519         (make_jump_insn_raw):  Strengthen return type from rtx to
11520         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
11521         (make_call_insn_raw):  Strengthen return type from rtx to
11522         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
11523         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
11524         callback from rtx to rtx_insn *; likewise for local "insn" and
11525         "next", adding a checked cast to rtx_insn in the relevant cases of
11526         the switch statement.
11527         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
11528         callback from rtx to rtx_insn *.
11529         (emit_pattern_after_setloc): Likewise.
11530         (emit_pattern_after): Likewise.
11531         (emit_pattern_before_setloc): Likewise.
11532         (emit_pattern_before): Likewise.
11534 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11536         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
11537         rtx_call_insn *.
11538         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
11539         accepting an rtx_insn *.
11540         (last_call_insn): Strengthen return type from rtx to
11541         rtx_call_insn *.
11543 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11545         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
11546         "insns" from rtx to rtx_insn *.
11547         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
11548         locals "insn" and "prev".
11550 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11552         * rtl.h (tablejump_p): Strengthen third param from rtx * to
11553         rtx_jump_table_data **.
11555         * cfgbuild.c (make_edges): Introduce local "table", using it in
11556         place of "tmp" for jump table data.
11557         (find_bb_boundaries): Strengthen local "table" from rtx to
11558         rtx_jump_table_data *.
11559         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11560         (outgoing_edges_match): Likewise for locals "table1" and "table2".
11561         (try_crossjump_to_edge): Likewise.
11562         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
11563         "table".
11564         (patch_jump_insn): Introduce local "table", using it in place of
11565         "tmp" for jump table data.
11566         (force_nonfallthru_and_redirect): Introduce local "table", so that
11567         call to tablejump_p can receive an rtx_jump_table_data **.  Update
11568         logic around the call to overwrite "note" appropriately if
11569         tablejump_p returns non-zero.
11570         (get_last_bb_insn): Introduce local "table", using it in place of
11571         "tmp" for jump table data.
11572         * dwarf2cfi.c (create_trace_edges): Likewise.
11574         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
11575         from rtx to rtx_jump_table_data *.
11576         (create_fix_barrier): Strengthen local "tmp" from rtx to
11577         rtx_jump_table_data *.
11578         (arm_reorg): Likewise for local "table".
11580         * config/s390/s390.c (s390_chunkify_start): Likewise.
11582         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
11584         * jump.c (delete_related_insns): Strengthen local "lab_next" from
11585         rtx to rtx_jump_table_data *.
11587         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
11588         rtx_jump_table_data **.  Add a checked cast when writing through
11589         the pointer: we know there that local "table" is non-NULL and that
11590         JUMP_TABLE_DATA_P (table) holds.
11591         (label_is_jump_target_p): Introduce local "table", using it in
11592         place of "tmp" for jump table data.
11594 2014-08-19  Marek Polacek  <polacek@redhat.com>
11596         PR c++/62153
11597         * doc/invoke.texi: Document -Wbool-compare.
11599 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11601         * rtl.h (entry_of_function): Strengthen return type from rtx to
11602         rtx_insn *.
11603         * cfgrtl.c (entry_of_function): Likewise.
11605 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11607         * emit-rtl.h (get_insns): Strengthen return type from rtx to
11608         rtx_insn *, adding a checked cast for now.
11609         (get_last_insn): Likewise.
11611 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11613         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
11614         rtx_code_label *.
11616         * emit-rtl.c (gen_label_rtx): Likewise.
11618 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11620         * rtl.h (previous_insn): Strengthen return type from rtx to
11621         rtx_insn *.
11622         (next_insn): Likewise.
11623         (prev_nonnote_insn): Likewise.
11624         (prev_nonnote_insn_bb): Likewise.
11625         (next_nonnote_insn): Likewise.
11626         (next_nonnote_insn_bb): Likewise.
11627         (prev_nondebug_insn): Likewise.
11628         (next_nondebug_insn): Likewise.
11629         (prev_nonnote_nondebug_insn): Likewise.
11630         (next_nonnote_nondebug_insn): Likewise.
11631         (prev_real_insn): Likewise.
11632         (next_real_insn): Likewise.
11633         (prev_active_insn): Likewise.
11634         (next_active_insn): Likewise.
11636         * emit-rtl.c (next_insn): Strengthen return type from rtx to
11637         rtx_insn *, adding a checked cast.
11638         (previous_insn): Likewise.
11639         (next_nonnote_insn): Likewise.
11640         (next_nonnote_insn_bb): Likewise.
11641         (prev_nonnote_insn): Likewise.
11642         (prev_nonnote_insn_bb): Likewise.
11643         (next_nondebug_insn): Likewise.
11644         (prev_nondebug_insn): Likewise.
11645         (next_nonnote_nondebug_insn): Likewise.
11646         (prev_nonnote_nondebug_insn): Likewise.
11647         (next_real_insn): Likewise.
11648         (prev_real_insn): Likewise.
11649         (next_active_insn): Likewise.
11650         (prev_active_insn): Likewise.
11652         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
11653         param "stepfunc" so that it returns an rtx_insn * rather than an
11654         rtx, to track the change to prev_nonnote_insn_bb, which is the
11655         only function this is called with.
11656         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
11658 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
11660         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
11661         assert.
11663 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11665         * coretypes.h (class rtx_debug_insn): Add forward declaration.
11666         (class rtx_nonjump_insn): Likewise.
11667         (class rtx_jump_insn): Likewise.
11668         (class rtx_call_insn): Likewise.
11669         (class rtx_jump_table_data): Likewise.
11670         (class rtx_barrier): Likewise.
11671         (class rtx_code_label): Likewise.
11672         (class rtx_note): Likewise.
11674         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
11675         adding the invariant DEBUG_INSN_P (X).
11676         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
11677         the invariant NONJUMP_INSN_P (X).
11678         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
11679         the invariant JUMP_P (X).
11680         (class rtx_call_insn): New, a subclass of rtx_insn, adding
11681         the invariant CALL_P (X).
11682         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
11683         invariant JUMP_TABLE_DATA_P (X).
11684         (class rtx_barrier): New, a subclass of rtx_insn, adding the
11685         invariant BARRIER_P (X).
11686         (class rtx_code_label): New, a subclass of rtx_insn, adding
11687         the invariant LABEL_P (X).
11688         (class rtx_note): New, a subclass of rtx_insn, adding
11689         the invariant NOTE_P(X).
11690         (is_a_helper <rtx_debug_insn *>::test): New.
11691         (is_a_helper <rtx_nonjump_insn *>::test): New.
11692         (is_a_helper <rtx_jump_insn *>::test): New.
11693         (is_a_helper <rtx_call_insn *>::test): New.
11694         (is_a_helper <rtx_jump_table_data *>::test): New functions,
11695         overloaded for both rtx and rtx_insn *.
11696         (is_a_helper <rtx_barrier *>::test): New.
11697         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
11698         for both rtx and rtx_insn *.
11699         (is_a_helper <rtx_note *>::test): New.
11701 2014-08-19  Marek Polacek  <polacek@redhat.com>
11703         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
11704         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11705         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
11706         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11708 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11710         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
11711         rtx_insn *.  To help with transition, for now, convert from an
11712         access macro into a pair of functions: BND_TO, returning an
11713         rtx_insn *, and...
11714         (SET_BND_TO): New function, for use where BND_TO is used as an
11715         lvalue.
11717         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
11718         SET_BND_TO.
11719         (BND_TO): New function, adding a checked cast.
11720         (SET_BND_TO): New function.
11722         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
11723         SET_BND_TO.
11724         (compute_av_set_on_boundaries): Likewise.
11726 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11728         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
11729         destination if it is used in source.
11730         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
11731         (*popcount<mode>2_falsedep_1): Likewise.
11733 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11735         PR other/62168
11736         * configure.ac: Set install_gold_as_default to no first.
11737         * configure: Regenerated.
11739 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11741         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
11742         "note_list" field will eventually be an rtx_insn *.  To help with
11743         transition, for now, convert from an access macro into a pair of
11744         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
11745         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
11746         used as an lvalue.
11748         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
11749         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
11751         * sel-sched-ir.c (init_bb): Likewise.
11752         (sel_restore_notes): Likewise.
11753         (move_bb_info): Likewise.
11754         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
11755         (SET_BB_NOTE_LIST): New function.
11757 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11759         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
11760         field will eventually be an rtx_insn *.  To help with transition,
11761         for now, convert from an access macro into a pair of functions:
11762         VINSN_INSN_RTX, returning an rtx_insn *, and...
11763         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
11764         is used as an lvalue.
11766         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
11767         SET_VINSN_INSN_RTX where it's used as an lvalue.
11768         (VINSN_INSN_RTX): New function.
11769         (SET_VINSN_INSN_RTX): New function.
11771 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11773         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
11774         eventually be rtx_insn *, but to help with transition, for now,
11775         convert from an access macro into a pair of functions: DEP_PRO
11776         returning an rtx_insn * and...
11777         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
11778         lvalue, returning an rtx&.
11779         (DEP_CON): Analogous changes to DEP_PRO above.
11780         (SET_DEP_CON): Likewise.
11782         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
11783         an lvalue to SET_DEP_CON.
11784         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
11785         (sd_copy_back_deps): Likewise for DEP_CON.
11786         (DEP_PRO): New function, adding a checked cast for now.
11787         (DEP_CON): Likewise.
11788         (SET_DEP_PRO): New function.
11789         (SET_DEP_CON): Likewise.
11791 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
11793         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
11794         (extra_options): Add i386/cygwin.opt.
11795         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
11796         (CPP_SPEC): Accept -pthread.
11797         (LINK_SPEC): Ditto.
11798         (GOMP_SELF_SPECS): Update comment.
11799         * config/i386/cygwin.opt: New file for -pthread flag.
11801 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11803         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
11804         * df.h (DF_REF_INSN): Convert from a macro to a function, so
11805         that we can return an rtx_insn *.
11807 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
11809         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
11810         when building executables, not DLLs.  Add --large-address-aware
11811         under the same conditions.
11812         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
11813         when building executables, not DLLs.  Add --large-address-aware
11814         under the same conditions when using -m32.
11816         * config/i386/cygwin-stdint.h: Throughout, make type
11817         definitions dependent on target architecture, not host.
11819 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11821         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
11822         the return type from rtx to rtx_insn *,  which will enable various
11823         conversions in followup patches.  For now this is is done by a
11824         checked cast.
11825         (NEXT_INSN): Likewise.
11826         (SET_PREV_INSN): Convert to an inline function.  This is intended
11827         for use as an lvalue, and so returns an rtx& to allow in-place
11828         modification.
11829         (SET_NEXT_INSN): Likewise.
11831 2014-07-08  Mark Wielaard  <mjw@redhat.com>
11833         PR debug/59051
11834         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
11836 2014-08-19  Marek Polacek  <polacek@redhat.com>
11838         PR c/61271
11839         * cgraphunit.c (handle_alias_pairs): Fix condition.
11841 2014-08-19  Richard Biener  <rguenther@suse.de>
11843         * gimple-fold.c (fold_gimple_assign): Properly build a
11844         null-pointer constant when devirtualizing addresses.
11846 2014-07-07  Mark Wielaard  <mjw@redhat.com>
11848         * dwarf2out.c (decl_quals): New function.
11849         (modified_type_die): Take one cv_quals argument instead of two,
11850         one for const and one for volatile.
11851         (add_type_attribute): Likewise.
11852         (generic_parameter_die): Call add_type_attribute with one modifier
11853         argument.
11854         (base_type_for_mode): Likewise.
11855         (add_bounds_info): Likewise.
11856         (add_subscript_info): Likewise.
11857         (gen_array_type_die): Likewise.
11858         (gen_descr_array_type_die): Likewise.
11859         (gen_entry_point_die): Likewise.
11860         (gen_enumeration_type_die): Likewise.
11861         (gen_formal_parameter_die): Likewise.
11862         (gen_subprogram_die): Likewise.
11863         (gen_variable_die): Likewise.
11864         (gen_const_die): Likewise.
11865         (gen_field_die): Likewise.
11866         (gen_pointer_type_die): Likewise.
11867         (gen_reference_type_die): Likewise.
11868         (gen_ptr_to_mbr_type_die): Likewise.
11869         (gen_inheritance_die): Likewise.
11870         (gen_subroutine_type_die): Likewise.
11871         (gen_typedef_die): Likewise.
11872         (force_type_die): Likewise.
11874 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11876         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
11877         if unset.
11878         * configure: Regenerate.
11880 2014-08-19  Richard Biener  <rguenther@suse.de>
11882         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
11883         DECL_EXTERNALs in BLOCKs as non-references.
11884         * tree-streamer-out.c (streamer_write_chain): Likewise.
11886 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11887             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11888             Anna Tikhonova  <anna.tikhonova@intel.com>
11889             Ilya Tocar  <ilya.tocar@intel.com>
11890             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11891             Ilya Verbin  <ilya.verbin@intel.com>
11892             Kirill Yukhin  <kirill.yukhin@intel.com>
11893             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11895         * config/i386/sse.md
11896         (define_mode_iterator VI48_AVX512F): Delete.
11897         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
11898         (define_mode_iterator VI2_AVX512VL): Ditto.
11899         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
11900         Delete.
11901         (define_insn
11902         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
11903         New.
11904         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
11905         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
11906         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11907         with VI48_AVX512F_AVX512VL): New.
11908         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11909         with VI2_AVX512VL): Ditto.
11911 2014-08-19  Marek Polacek  <polacek@redhat.com>
11913         * doc/invoke.texi: Document -Wc99-c11-compat.
11915 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11917         * rtl.h (PREV_INSN): Split macro in two: the existing one,
11918         for rvalues, and...
11919         (SET_PREV_INSN): New macro, for use as an lvalue.
11920         (NEXT_INSN, SET_NEXT_INSN): Likewise.
11922         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
11923         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
11924         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11925         (fixup_abnormal_edges): Likewise.
11926         (unlink_insn_chain): Likewise.
11927         (fixup_reorder_chain): Likewise.
11928         (cfg_layout_delete_block): Likewise.
11929         (cfg_layout_merge_blocks): Likewise.
11930         * combine.c (update_cfg_for_uncondjump): Likewise.
11931         * emit-rtl.c (link_insn_into_chain): Likewise.
11932         (remove_insn): Likewise.
11933         (delete_insns_since): Likewise.
11934         (reorder_insns_nobb): Likewise.
11935         (emit_insn_after_1): Likewise.
11936         * final.c (rest_of_clean_state): Likewise.
11937         (final_scan_insn): Likewise.
11938         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
11939         * haifa-sched.c (concat_note_lists): Likewise.
11940         (remove_notes): Likewise.
11941         (restore_other_notes): Likewise.
11942         (move_insn): Likewise.
11943         (unlink_bb_notes): Likewise.
11944         (restore_bb_notes): Likewise.
11945         * jump.c (delete_for_peephole): Likewise.
11946         * optabs.c (emit_libcall_block_1): Likewise.
11947         * reorg.c (emit_delay_sequence): Likewise.
11948         (fill_simple_delay_slots): Likewise.
11949         * sel-sched-ir.c (sel_move_insn): Likewise.
11950         (sel_remove_insn): Likewise.
11951         (get_bb_note_from_pool): Likewise.
11952         * sel-sched.c (move_nop_to_previous_block): Likewise.
11954         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
11955         * config/c6x/c6x.c (gen_one_bundle): Likewise.
11956         (c6x_gen_bundles): Likewise.
11957         (hwloop_optimize): Likewise.
11958         * config/frv/frv.c (frv_function_prologue): Likewise.
11959         (frv_register_nop): Likewise.
11960         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
11961         (ia64_reorg): Likewise.
11962         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
11963         (mep_make_bundle): Likewise.
11964         (mep_bundle_insns): Likewise.
11965         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
11966         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
11967         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
11969 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11971         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
11972         return type from rtx to rtx_insn *.
11973         (BB_END): Likewise.
11974         (BB_HEADER): Likewise.
11975         (BB_FOOTER): Likewise.
11976         (SET_BB_HEAD): Convert to a function.
11977         (SET_BB_END): Likewise.
11978         (SET_BB_HEADER): Likewise.
11979         (SET_BB_FOOTER): Likewise.
11981         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
11982         Strengthen the return type from rtx to rtx_insn *.  For now, this
11983         is done by adding a checked cast, but this will eventually
11984         become a field lookup.
11985         (BB_END): Likewise.
11986         (BB_HEADER): Likewise.
11987         (BB_FOOTER): Likewise.
11988         (SET_BB_HEAD): New function, from macro of same name.  This is
11989         intended for use as an lvalue, and so returns an rtx& to allow
11990         in-place modification.
11991         (SET_BB_END): Likewise.
11992         (SET_BB_HEADER): Likewise.
11993         (SET_BB_FOOTER): Likewise.
11995 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
11997         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
11998         for rvalues, and...
11999         (SET_BB_HEAD): New macro, for use as a lvalue.
12000         (BB_END, SET_BB_END): Likewise.
12001         (BB_HEADER, SET_BB_HEADER): Likewise.
12002         (BB_FOOTER, SET_BB_FOOTER): Likewise.
12004         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
12005         of BB_* macros into SET_BB_* macros.
12006         (fix_crossing_unconditional_branches): Likewise.
12007         * caller-save.c (save_call_clobbered_regs): Likewise.
12008         (insert_one_insn): Likewise.
12009         * cfgbuild.c (find_bb_boundaries): Likewise.
12010         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12011         (outgoing_edges_match): Likewise.
12012         (try_optimize_cfg): Likewise.
12013         * cfgexpand.c (expand_gimple_cond): Likewise.
12014         (expand_gimple_tailcall): Likewise.
12015         (expand_gimple_basic_block): Likewise.
12016         (construct_exit_block): Likewise.
12017         * cfgrtl.c (delete_insn): Likewise.
12018         (create_basic_block_structure): Likewise.
12019         (rtl_delete_block): Likewise.
12020         (rtl_split_block): Likewise.
12021         (emit_nop_for_unique_locus_between): Likewise.
12022         (rtl_merge_blocks): Likewise.
12023         (block_label): Likewise.
12024         (try_redirect_by_replacing_jump): Likewise.
12025         (emit_barrier_after_bb): Likewise.
12026         (fixup_abnormal_edges): Likewise.
12027         (record_effective_endpoints): Likewise.
12028         (relink_block_chain): Likewise.
12029         (fixup_reorder_chain): Likewise.
12030         (fixup_fallthru_exit_predecessor): Likewise.
12031         (cfg_layout_duplicate_bb): Likewise.
12032         (cfg_layout_split_block): Likewise.
12033         (cfg_layout_delete_block): Likewise.
12034         (cfg_layout_merge_blocks): Likewise.
12035         * combine.c (update_cfg_for_uncondjump): Likewise.
12036         * emit-rtl.c (add_insn_after): Likewise.
12037         (remove_insn): Likewise.
12038         (reorder_insns): Likewise.
12039         (emit_insn_after_1): Likewise.
12040         * haifa-sched.c (get_ebb_head_tail): Likewise.
12041         (restore_other_notes): Likewise.
12042         (move_insn): Likewise.
12043         (sched_extend_bb): Likewise.
12044         (fix_jump_move): Likewise.
12045         * ifcvt.c (noce_process_if_block): Likewise.
12046         (dead_or_predicable): Likewise.
12047         * ira.c (update_equiv_regs): Likewise.
12048         * reg-stack.c (change_stack): Likewise.
12049         * sel-sched-ir.c (sel_move_insn): Likewise.
12050         * sel-sched.c (move_nop_to_previous_block): Likewise.
12052         * config/c6x/c6x.c (hwloop_optimize): Likewise.
12053         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
12055 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12057         * rtl.h (for_each_rtx_in_insn): New function.
12058         * rtlanal.c (for_each_rtx_in_insn): Likewise.
12060 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12062         * coretypes.h (class rtx_insn): Add forward declaration.
12064         * rtl.h: Include is-a.h.
12065         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
12066         workaround to ensure gengtype knows inheritance is occurring,
12067         whilst continuing to use the pre-existing special-casing for
12068         rtx_def.
12069         (class rtx_insn): New subclass of rtx_def, adding the
12070         invariant that we're dealing with something we can sanely use
12071         INSN_UID, NEXT_INSN, PREV_INSN on.
12072         (is_a_helper <rtx_insn *>::test): New.
12073         (is_a_helper <const rtx_insn *>::test): New.
12075 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12077         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
12079 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12081         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
12082         comdats as extern.
12084 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12086         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
12087         to BUILT_IN_UNREACHABLE.
12089 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
12091         PR target/62011
12092         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
12093         New tune flag.
12094         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
12095         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
12096         (ffs<mode>2): Do not expand with tzcnt for
12097         TARGET_AVOID_FALSE_DEP_FOR_BMI.
12098         (ffssi2_no_cmove): Ditto.
12099         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
12100         (ctz<mode>2): New expander.
12101         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
12102         (*ctz<mode>2_falsedep): New insn.
12103         (*ctz<mode>2): Rename from ctz<mode>2.
12104         (clz<mode>2_lzcnt): New expander.
12105         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
12106         (*clz<mode>2_lzcnt_falsedep): New insn.
12107         (*clz<mode>2): Rename from ctz<mode>2.
12108         (popcount<mode>2): New expander.
12109         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
12110         (*popcount<mode>2_falsedep): New insn.
12111         (*popcount<mode>2): Rename from ctz<mode>2.
12112         (*popcount<mode>2_cmp): Remove.
12113         (*popcountsi2_cmp_zext): Ditto.
12115 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
12117         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
12118         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
12119         * config/microblaze/microblaze.h
12120         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
12122 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12124         PR other/62168
12125         * configure.ac: Set install_gold_as_default to no for
12126          --enable-gold=no.
12127          * configure: Regenerated.
12129 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
12131         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
12132         * config.in: Add undef of HAVE_isl.
12133         * configure: Regenerate.
12134         * configure.ac: Add definition of HAVE_isl.
12135         * graphite-blocking.c: Add checking of HAVE_isl.
12136         * graphite-dependences.c: Likewise.
12137         * graphite-interchange.c: Likewise.
12138         * graphite-isl-ast-to-gimple.c: Likewise.
12139         * graphite-optimize-isl.c: Likewise.
12140         * graphite-poly.c: Likewise.
12141         * graphite-scop-detection.c: Likewise.
12142         * graphite-sese-to-poly.c: Likewise.
12143         * graphite.c: Likewise.
12144         * toplev.c: Replace the checking of HAVE_cloog with the checking
12145         of HAVE_isl.
12147 2014-08-18  Richard Biener  <rguenther@suse.de>
12149         PR tree-optimization/62090
12150         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
12151         (fold_builtin_3): Do not fold snprintf.
12152         (fold_builtin_4): Likewise.
12153         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
12154         moved from builtins.c.
12155         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
12156         (gimple_fold_builtin): Do not fold sprintf here.
12158 2014-08-18  Richard Biener  <rguenther@suse.de>
12160         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
12161         code to ...
12162         (maybe_canonicalize_mem_ref_addr): ... this function.
12163         (fold_stmt_1): Apply it here before all simplification.
12165 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
12167         PR ipa/61800
12168         * cgraph.h (cgraph_node::create_indirect_edge): Add
12169         compute_indirect_info param.
12170         * cgraph.c (cgraph_node::create_indirect_edge): Compute
12171         indirect_info only when it is required.
12172         * cgraphclones.c (cgraph_clone_edge): Do not recompute
12173         indirect_info fore cloned indirect edge.
12175 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12176             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12177             Anna Tikhonova  <anna.tikhonova@intel.com>
12178             Ilya Tocar  <ilya.tocar@intel.com>
12179             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12180             Ilya Verbin  <ilya.verbin@intel.com>
12181             Kirill Yukhin  <kirill.yukhin@intel.com>
12182             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12184         * config/i386/sse.md
12185         (define_mode_iterator VI8_AVX2_AVX512BW): New.
12186         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
12188 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12189             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12190             Anna Tikhonova  <anna.tikhonova@intel.com>
12191             Ilya Tocar  <ilya.tocar@intel.com>
12192             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12193             Ilya Verbin  <ilya.verbin@intel.com>
12194             Kirill Yukhin  <kirill.yukhin@intel.com>
12195             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12197         * config/i386/sse.md
12198         (define_mode_iterator VF1_AVX512VL): New.
12199         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
12200         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
12201         New.
12203 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12204             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12205             Anna Tikhonova  <anna.tikhonova@intel.com>
12206             Ilya Tocar  <ilya.tocar@intel.com>
12207             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12208             Ilya Verbin  <ilya.verbin@intel.com>
12209             Kirill Yukhin  <kirill.yukhin@intel.com>
12210             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12212         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
12213         * config/i386/i386.md
12214         (define_code_iterator any_float): New.
12215         (define_code_attr floatsuffix): New.
12216         * config/i386/sse.md
12217         (define_mode_iterator VF1_128_256VL): New.
12218         (define_mode_iterator VF2_512_256VL): New.
12219         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
12220         TARGET check.
12221         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
12222         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
12223         New.
12224         (define_mode_attr qq2pssuff): New.
12225         (define_mode_attr sselongvecmode): New.
12226         (define_mode_attr sselongvecmodelower): New.
12227         (define_mode_attr sseintvecmode3): New.
12228         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
12229         New.
12230         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
12231         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
12232         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
12233         (define_insn "ufloatv2siv2df2<mask_name>"): New.
12235 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12236             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12237             Anna Tikhonova  <anna.tikhonova@intel.com>
12238             Ilya Tocar  <ilya.tocar@intel.com>
12239             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12240             Ilya Verbin  <ilya.verbin@intel.com>
12241             Kirill Yukhin  <kirill.yukhin@intel.com>
12242             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12244         * config/i386/sse.md
12245         (define_mode_iterator VF2_AVX512VL): New.
12246         (define_mode_attr sseintvecmode2): New.
12247         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12248         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12249         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12250         (define_insn
12251         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12252         Ditto.
12253         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12254         Ditto.
12255         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12256         Ditto.
12258 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12259             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12260             Anna Tikhonova  <anna.tikhonova@intel.com>
12261             Ilya Tocar  <ilya.tocar@intel.com>
12262             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12263             Ilya Verbin  <ilya.verbin@intel.com>
12264             Kirill Yukhin  <kirill.yukhin@intel.com>
12265             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12267         * config/i386/i386.md
12268         (define_insn "*movoi_internal_avx"): Add evex version.
12269         (define_insn "*movti_internal"): Ditto.
12271 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12272             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12273             Anna Tikhonova  <anna.tikhonova@intel.com>
12274             Ilya Tocar  <ilya.tocar@intel.com>
12275             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12276             Ilya Verbin  <ilya.verbin@intel.com>
12277             Kirill Yukhin  <kirill.yukhin@intel.com>
12278             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12280         * config/i386/i386.md
12281         (define_attr "isa"): Add avx512dq, noavx512dq.
12282         (define_attr "enabled"): Ditto.
12283         * config/i386/sse.md
12284         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
12286 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12287             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12288             Anna Tikhonova  <anna.tikhonova@intel.com>
12289             Ilya Tocar  <ilya.tocar@intel.com>
12290             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12291             Ilya Verbin  <ilya.verbin@intel.com>
12292             Kirill Yukhin  <kirill.yukhin@intel.com>
12293             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12295         * config/i386/i386.c
12296         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
12297         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
12298         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
12299         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
12300         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
12301         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
12302         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
12303         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
12304         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
12305         * config/i386/sse.md
12306         (define_mode_iterator VMOVE): Allow V4TI mode.
12307         (define_mode_iterator V_AVX512VL): New.
12308         (define_mode_iterator V): New handling for AVX512VL.
12309         (define_insn "avx512f_load<mode>_mask"): Delete.
12310         (define_insn "<avx512>_load<mode>_mask"): New.
12311         (define_insn "avx512f_store<mode>_mask"): Delete.
12312         (define_insn "<avx512>_store<mode>_mask"): New.
12315 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
12317         PR sanitizer/62089
12318         * asan.c (instrument_derefs): Fix bitfield check.
12320 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12322         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
12323         * config/rs6000/htm.md (ttest): Remove clobber.
12324         * config/rs6000/predicates.md (any_mask_operand): New predicate.
12325         (and_operand): Reformat.
12326         (and_2rld_operand): New predicate.
12327         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
12328         parameter.
12329         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
12330         parameter.  Handle AND directly.
12331         (rs6000_split_logical_di): Remove last parameter.
12332         (rs6000_split_logical): Remove last parameter.  Remove obsolete
12333         comment.
12334         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
12335         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
12336         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
12337         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
12338         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
12339         and 5 anonymous splitters):  Delete.
12340         (and<mode>3): New expander.
12341         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
12342         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
12343         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
12344         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
12345         (floatdisf2_internal1): Remove clobbers.
12346         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
12347         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
12348         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
12349         (and<mode>3 for BOOL_128): Remove clobber.
12350         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
12351         rs6000_split_logical.
12352         (*bool<mode>3_internal for BOOL_128): Adjust call of
12353         rs6000_split_logical.
12354         (*boolc<mode>3_internal1 for BOOL_128,
12355         *boolc<mode>3_internal2 for BOOL_128,
12356         *boolcc<mode>3_internal1 for BOOL_128,
12357         *boolcc<mode>3_internal2 for BOOL_128,
12358         *eqv<mode>3_internal1 for BOOL_128,
12359         *eqv<mode>3_internal2 for BOOL_128,
12360         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
12361         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
12362         clobber.
12363         (*vec_reload_and_reg_<mptrsize>): Delete.
12365 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12367         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
12368         and split, *boolccsi3_internal3 and split): Delete.
12369         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
12370         *boolccdi3_internal3 and split): Delete.
12371         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
12372         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
12374 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12376         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
12377         and split, *boolcsi3_internal3 and split): Delete.
12378         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
12379         *boolcdi3_internal3 and split): Delete.
12380         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
12382 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12384         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
12385         <'u'>: Also support printing the low-order 16 bits.
12386         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
12387         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
12388         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
12389         *booldi3_internal3 and split): Delete.
12390         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
12391         *bool<mode>3_dot2): New.
12392         (two anonymous define_splits for non_logical_cint_operand): Merge.
12394 2014-08-17  Marek Polacek  <polacek@redhat.com>
12395             Manuel López-Ibáñez  <manu@gcc.gnu.org>
12397         PR c/62059
12398         * diagnostic.c (adjust_line): Add gcc_checking_assert.
12399         (diagnostic_show_locus): Don't print caret diagnostic
12400         if a column is larger than the line_width.
12402 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
12404         * common.opt: Make the ISL AST generator to be the main code generator
12405         of Graphite.
12407 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
12409         * wide-int.h (generic_wide_int): Declare as class instead of struct.
12411 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
12413         PR target/61641
12414         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
12415         Declare.
12416         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
12417         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
12418         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
12419         Define.
12420         * config/pa/pa.md (begin_brtab): Delete insn.
12421         (end_brtab): Likewise.
12423 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12425         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
12427 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
12429         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12430         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12431         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12432         (get_dynamic_type): Remove.
12433         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12434         (clear_speculation): Bring to ipa-deivrt.h
12435         (get_class_context): Rename to ...
12436         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12437         (contains_type_p): Update.
12438         (get_dynamic_type): Rename to ...
12439         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12440         (possible_polymorphic_call_targets): UPdate.
12441         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12442         * ipa-prop.c (ipa_analyze_call_uses): Update.
12444 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
12446         * doc/invoke.texi (SH options): Document missing processor variant
12447         options.  Remove references to Hitachi.  Undocument deprecated mspace
12448         option.
12450 2014-08-15  Jason Merrill  <jason@redhat.com>
12452         * tree.c (type_hash_canon): Uncomment assert.
12454 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12456         * input.h (in_system_header_at): Add comment.
12458 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12460         PR fortran/44054
12461         * diagnostic.c (build_message_string): Make it extern.
12462         * diagnostic.h (build_message_string): Make it extern.
12464 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
12466         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
12467         load/store from/to non-floating class pseudo.
12469 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12471         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
12473 2014-08-15  Richard Biener  <rguenther@suse.de>
12475         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
12476         (get_constraint_for_ssa_var): Remove dead code.
12477         (get_constraint_for_1): Adjust.
12478         (find_what_var_points_to): Likewise.
12479         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
12481 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
12483         PR target/61878
12484         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
12485         (_mm512_mask_cmpge_epu32_mask): Ditto.
12486         (_mm512_cmpge_epu32_mask): Ditto.
12487         (_mm512_mask_cmpge_epi64_mask): Ditto.
12488         (_mm512_cmpge_epi64_mask): Ditto.
12489         (_mm512_mask_cmpge_epu64_mask): Ditto.
12490         (_mm512_cmpge_epu64_mask): Ditto.
12491         (_mm512_mask_cmple_epi32_mask): Ditto.
12492         (_mm512_cmple_epi32_mask): Ditto.
12493         (_mm512_mask_cmple_epu32_mask): Ditto.
12494         (_mm512_cmple_epu32_mask): Ditto.
12495         (_mm512_mask_cmple_epi64_mask): Ditto.
12496         (_mm512_cmple_epi64_mask): Ditto.
12497         (_mm512_mask_cmple_epu64_mask): Ditto.
12498         (_mm512_cmple_epu64_mask): Ditto.
12499         (_mm512_mask_cmplt_epi32_mask): Ditto.
12500         (_mm512_cmplt_epi32_mask): Ditto.
12501         (_mm512_mask_cmplt_epu32_mask): Ditto.
12502         (_mm512_cmplt_epu32_mask): Ditto.
12503         (_mm512_mask_cmplt_epi64_mask): Ditto.
12504         (_mm512_cmplt_epi64_mask): Ditto.
12505         (_mm512_mask_cmplt_epu64_mask): Ditto.
12506         (_mm512_cmplt_epu64_mask): Ditto.
12507         (_mm512_mask_cmpneq_epi32_mask): Ditto.
12508         (_mm512_mask_cmpneq_epu32_mask): Ditto.
12509         (_mm512_cmpneq_epu32_mask): Ditto.
12510         (_mm512_mask_cmpneq_epi64_mask): Ditto.
12511         (_mm512_cmpneq_epi64_mask): Ditto.
12512         (_mm512_mask_cmpneq_epu64_mask): Ditto.
12513         (_mm512_cmpneq_epu64_mask): Ditto.
12514         (_mm512_castpd_ps): Ditto.
12515         (_mm512_castpd_si512): Ditto.
12516         (_mm512_castps_pd): Ditto.
12517         (_mm512_castps_si512): Ditto.
12518         (_mm512_castsi512_ps): Ditto.
12519         (_mm512_castsi512_pd): Ditto.
12520         (_mm512_castpd512_pd128): Ditto.
12521         (_mm512_castps512_ps128): Ditto.
12522         (_mm512_castsi512_si128): Ditto.
12523         (_mm512_castpd512_pd256): Ditto.
12524         (_mm512_castps512_ps256): Ditto.
12525         (_mm512_castsi512_si256): Ditto.
12526         (_mm512_castpd128_pd512): Ditto.
12527         (_mm512_castps128_ps512): Ditto.
12528         (_mm512_castsi128_si512): Ditto.
12529         (_mm512_castpd256_pd512): Ditto.
12530         (_mm512_castps256_ps512): Ditto.
12531         (_mm512_castsi256_si512): Ditto.
12532         (_mm512_cmpeq_epu32_mask): Ditto.
12533         (_mm512_mask_cmpeq_epu32_mask): Ditto.
12534         (_mm512_mask_cmpeq_epu64_mask): Ditto.
12535         (_mm512_cmpeq_epu64_mask): Ditto.
12536         (_mm512_cmpgt_epu32_mask): Ditto.
12537         (_mm512_mask_cmpgt_epu32_mask): Ditto.
12538         (_mm512_mask_cmpgt_epu64_mask): Ditto.
12539         (_mm512_cmpgt_epu64_mask): Ditto.
12540         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
12541         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
12542         * config/i386/i386.c (enum ix86_builtins): Add
12543         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
12544         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
12545         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
12546         (bdesc_args): Add __builtin_ia32_si512_256si,
12547         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
12548         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
12549         __builtin_ia32_pd512_pd.
12550         (ix86_expand_args_builtin): Handle new FTYPEs.
12551         * config/i386/sse.md (castmode): Add 512-bit modes.
12552         (AVX512MODE2P): New.
12553         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
12554         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
12556 2014-08-15  Richard Biener  <rguenther@suse.de>
12558         * fold-const.c (tree_swap_operands_p): Put all constants
12559         last, also strip sign-changing NOPs when considering further
12560         canonicalization.  Canonicalize also when optimizing for size.
12562 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12564         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
12565         one_match > zero_match case to just before simple_sequence.
12567 2014-08-15  Richard Biener  <rguenther@suse.de>
12569         * data-streamer.h (streamer_string_index, string_for_index):
12570         Remove.
12571         * data-streamer-out.c (streamer_string_index): Make static.
12572         * data-streamer-in.c (string_for_index): Likewise.
12573         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
12574         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
12576 2014-08-15  Richard Biener  <rguenther@suse.de>
12578         PR tree-optimization/62031
12579         * tree-data-ref.c (dr_analyze_indices): Do not set
12580         DR_UNCONSTRAINED_BASE.
12581         (dr_may_alias_p): All indirect accesses have to go the
12582         formerly DR_UNCONSTRAINED_BASE path.
12583         * tree-data-ref.h (struct indices): Remove
12584         unconstrained_base member.
12585         (DR_UNCONSTRAINED_BASE): Remove.
12587 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
12589         PR middle-end/62092
12590         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
12591         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
12592         in OMP_CLAUSE_MAP in some outer target region.
12594 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
12596         * tree-ssa-loop-ivopts.c (ivopts_data): New field
12597         name_expansion_cache.
12598         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
12599         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
12600         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
12601         (difference_cannot_overflow_p): New parameter.  Use affine
12602         expansion for equality check.
12603         (iv_elimination_compare_lt): Pass new argument.
12605 2014-08-14  DJ Delorie  <dj@redhat.com>
12607         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
12608         variables to the accumulator.
12610         * config/rl78/predicates.md (rl78_near_mem_operand): New.
12611         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
12612         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
12613         with far-far moves.
12615         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
12616         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
12617         (umulqihi3_virt): Likewise.
12618         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
12619         (umulqihi3_real): Likewise.
12621         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
12623 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
12625         PR tree-optimization/62091
12626         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
12627         function_entry_reached.
12628         (walk_aliased_vdefs): Clear it here.
12629         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
12631 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
12633         * ipa-utils.h (compare_virtual_tables): Declare.
12634         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
12636 2014-08-14  Marek Polacek  <polacek@redhat.com>
12638         DR 458
12639         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
12640         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
12642 2014-08-14  Tom de Vries  <tom@codesourcery.com>
12644         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
12646 2014-08-14  Tom de Vries  <tom@codesourcery.com>
12648         PR rtl-optimization/62004
12649         PR rtl-optimization/62030
12650         * ifcvt.c (rtx_interchangeable_p): New function.
12651         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
12652         * emit-rtl.h (mem_attrs_eq_p): Declare.
12654 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
12656         * graphite-scop-detection.c:
12657         Add inclusion of cp-tree.h.
12658         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
12659         in case they are pointers to object types
12661 2014-08-14  Richard Biener  <rguenther@suse.de>
12663         * BASE-VER: Change to 5.0.0
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 (define_mode_attr avx512): New.
12675         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
12676         V4DI modes.
12677         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
12678         (define_mode_attr ssse3_avx2): Ditto.
12679         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
12680         (define_mode_attr avx2_avx512bw): New.
12681         (define_mode_attr ssedoublemodelower): New.
12682         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
12683         V32HI, V64QI modes.
12684         (define_mode_attr ssebytemode): Allow V8DI modes.
12685         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
12686         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
12687         (define_mode_attr ssePSmode2): New.
12688         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
12689         V16HI, V32HI modes.
12690         (define_mode_attr dbpsadbwmode): New.
12691         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
12692         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
12693         (vi8_sse4_1_avx2_avx512): New.
12694         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
12695         mode attribute.
12696         (define_mode_attr blendbits): Move before its immediate use.
12698 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12699             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12700             Anna Tikhonova  <anna.tikhonova@intel.com>
12701             Ilya Tocar  <ilya.tocar@intel.com>
12702             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12703             Ilya Verbin  <ilya.verbin@intel.com>
12704             Kirill Yukhin  <kirill.yukhin@intel.com>
12705             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12707         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
12708         * config/i386/subst.md
12709         (define_mode_iterator SUBST_V): Update.
12710         (define_mode_iterator SUBST_A): Ditto.
12711         (define_subst_attr "mask_operand7"): New.
12712         (define_subst_attr "mask_operand10"): New.
12713         (define_subst_attr "mask_operand_arg34") : New.
12714         (define_subst_attr "mask_expand_op3"): New.
12715         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
12716         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
12717         (define_subst_attr "mask_avx512vl_condition"): New.
12718         (define_subst_attr "round_mask_operand4"): Ditto.
12719         (define_subst_attr "round_mask_scalar_op3"): Delete.
12720         (define_subst_attr "round_mask_op4"): New.
12721         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
12722         V16SImode.
12723         (define_subst_attr "round_modev8sf_condition"): New.
12724         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
12725         <MODE>mode.
12726         (define_subst_attr "round_saeonly_mask_operand4"): New.
12727         (define_subst_attr "round_saeonly_mask_op4"): New.
12728         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
12729         V8DImode, V16SImode.
12730         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
12731         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
12732         (define_subst_attr "mask_expand4_args"): New.
12733         (define_subst "mask_expand4"): New.
12735 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12736             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12737             Anna Tikhonova  <anna.tikhonova@intel.com>
12738             Ilya Tocar  <ilya.tocar@intel.com>
12739             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12740             Ilya Verbin  <ilya.verbin@intel.com>
12741             Kirill Yukhin  <kirill.yukhin@intel.com>
12742             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12744         * config/i386/i386.md
12745         (define_attr "isa"): Add avx512bw,noavx512bw.
12746         (define_attr "enabled"): Ditto.
12747         (define_split): Add 32/64-bit mask logic.
12748         (define_insn "*k<logic>qi"): New.
12749         (define_insn "*k<logic>hi"): New.
12750         (define_insn "*anddi_1"): Add mask version.
12751         (define_insn "*andsi_1"): Ditto.
12752         (define_insn "*<code><mode>_1"): Ditto.
12753         (define_insn "*<code>hi_1"): Ditto.
12754         (define_insn "kxnor<mode>"): New.
12755         (define_insn "kunpcksi"): New.
12756         (define_insn "kunpckdi"): New.
12757         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
12758         (define_insn "*one_cmplhi2_1"): Ditto.
12760 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12761             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12762             Anna Tikhonova  <anna.tikhonova@intel.com>
12763             Ilya Tocar  <ilya.tocar@intel.com>
12764             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12765             Ilya Verbin  <ilya.verbin@intel.com>
12766             Kirill Yukhin  <kirill.yukhin@intel.com>
12767             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12769         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
12770         V32HImode.
12772 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12773             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12774             Anna Tikhonova  <anna.tikhonova@intel.com>
12775             Ilya Tocar  <ilya.tocar@intel.com>
12776             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12777             Ilya Verbin  <ilya.verbin@intel.com>
12778             Kirill Yukhin  <kirill.yukhin@intel.com>
12779             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12781         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
12782         registers.
12783         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
12784         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
12785         xmm/ymm16+ when availble.
12786         * config/i386/i386.h
12787         (HARD_REGNO_NREGS): Add mask regs.
12788         (VALID_AVX512F_REG_MODE): Ditto.
12789         (VALID_AVX512F_REG_MODE) : Define.
12790         (VALID_MASK_AVX512BW_MODE): Ditto.
12791         (reg_class) (MASK_REG_P(X)): Define.
12792         * config/i386/i386.md: Do not split long moves with mask register,
12793         use kmovb if avx512bw is availible.
12794         (movdi_internal): Handle mask registers.
12796 2014-08-14  Richard Biener  <rguenther@suse.de>
12798         PR tree-optimization/62081
12799         * tree-ssa-loop.c (pass_fix_loops): New pass.
12800         (pass_tree_loop::gate):  Do not fixup loops here.
12801         * tree-pass.h (make_pass_fix_loops): Declare.
12802         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
12804 2014-08-14  Richard Biener  <rguenther@suse.de>
12806         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
12807         (type_hash_canon): ... this and avoid 2nd lookup for the add.
12809 2014-08-14  Richard Biener  <rguenther@suse.de>
12811         PR tree-optimization/62090
12812         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
12813         (fold_builtin_2): Do not fold sprintf.
12814         (fold_builtin_3): Likewise.
12815         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
12816         moved from builtins.c.
12817         (gimple_fold_builtin): Fold sprintf.
12819 2014-08-14  Richard Biener  <rguenther@suse.de>
12821         PR rtl-optimization/62079
12822         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
12823         run cleanup_cfg.
12825 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
12827         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
12828         current_function_decl.
12830 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
12832         * cgraph.c (cgraph_node::function_symbol): Fix wrong
12833         cgraph_function_node to cgraph_node::function_symbol
12834         refactoring.
12836 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12838         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
12839         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
12841 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
12843         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
12844         warning.
12846 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
12848         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
12849         generator.
12851 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
12853         PR target/62025
12854         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
12855         any registers that are used in mem_insn.
12857 2014-08-12  Steve Ellcey  <sellcey@mips.com>
12859         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
12861 2014-08-12  Steve Ellcey  <sellcey@mips.com>
12863         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
12864         (MULTILIB_DIRNAMES): Ditto.
12865         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
12866         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
12867         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
12868         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
12869         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
12870         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
12872 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12874         PR target/61413
12875         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
12876         of __ARM_SIZEOF_WCHAR_T.
12878 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12880         PR target/62098
12881         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
12882         Remove unnecessary attributes.
12884 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
12886         * internal-fn.c (init_internal_fns): Fix off-by-one.
12888 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12889             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12890             Anna Tikhonova  <anna.tikhonova@intel.com>
12891             Ilya Tocar  <ilya.tocar@intel.com>
12892             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12893             Ilya Verbin  <ilya.verbin@intel.com>
12894             Kirill Yukhin  <kirill.yukhin@intel.com>
12895             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12897         * config/i386/i386.c (standard_sse_constant_opcode): Use
12898         vpxord/vpternlog if avx512 is availible.
12900 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12902         PR middle-end/62103
12903         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
12904         bitfields, that is when size doesn't match the size of type or the
12905         size of the constructor.
12907 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12909         * config/rs6000/constraints.md (wh constraint): New constraint,
12910         for FP registers if direct move is available.
12911         (wi constraint): New constraint, for VSX/FP registers that can
12912         handle 64-bit integers.
12913         (wj constraint): New constraint for VSX/FP registers that can
12914         handle 64-bit integers for direct moves.
12915         (wk constraint): New constraint for VSX/FP registers that can
12916         handle 64-bit doubles for direct moves.
12917         (wy constraint): Make documentation match implementation.
12919         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
12920         scalar_in_vmx_p field to simplify tests of whether SFmode or
12921         DFmode can go in the Altivec registers.
12922         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
12923         (rs6000_setup_reg_addr_masks): Likewise.
12924         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
12925         field, and wh/wi/wj/wk constraints.
12926         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
12927         the wh/wi/wj/wk constraints.
12928         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
12929         upper registers, prefer VSX registers unless the operation is a
12930         memory operation with REG+OFFSET addressing.
12932         * config/rs6000/vsx.md (VSr mode attribute): Add support for
12933         DImode.  Change SFmode to use ww constraint instead of d to allow
12934         SF registers in the upper registers.
12935         (VSr2): Likewise.
12936         (VSr3): Likewise.
12937         (VSr5): Fix thinko in comment.
12938         (VSa): New mode attribute that is an alternative to wa, that
12939         returns the VSX register class that a mode can go in, but may not
12940         be the preferred register class.
12941         (VS_64dm): New mode attribute for appropriate register classes for
12942         referencing 64-bit elements of vectors for direct moves and normal
12943         moves.
12944         (VS_64reg): Likewise.
12945         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
12946         register allocator to only registers the data type can handle.
12947         (vsx_le_perm_load_<mode>): Likewise.
12948         (vsx_le_perm_store_<mode>): Likewise.
12949         (vsx_xxpermdi2_le_<mode>): Likewise.
12950         (vsx_xxpermdi4_le_<mode>): Likewise.
12951         (vsx_lxvd2x2_le_<mode>): Likewise.
12952         (vsx_lxvd2x4_le_<mode>): Likewise.
12953         (vsx_stxvd2x2_le_<mode>): Likewise.
12954         (vsx_add<mode>3): Likewise.
12955         (vsx_sub<mode>3): Likewise.
12956         (vsx_mul<mode>3): Likewise.
12957         (vsx_div<mode>3): Likewise.
12958         (vsx_tdiv<mode>3_internal): Likewise.
12959         (vsx_fre<mode>2): Likewise.
12960         (vsx_neg<mode>2): Likewise.
12961         (vsx_abs<mode>2): Likewise.
12962         (vsx_nabs<mode>2): Likewise.
12963         (vsx_smax<mode>3): Likewise.
12964         (vsx_smin<mode>3): Likewise.
12965         (vsx_sqrt<mode>2): Likewise.
12966         (vsx_rsqrte<mode>2): Likewise.
12967         (vsx_tsqrt<mode>2_internal): Likewise.
12968         (vsx_fms<mode>4): Likewise.
12969         (vsx_nfma<mode>4): Likewise.
12970         (vsx_eq<mode>): Likewise.
12971         (vsx_gt<mode>): Likewise.
12972         (vsx_ge<mode>): Likewise.
12973         (vsx_eq<mode>_p): Likewise.
12974         (vsx_gt<mode>_p): Likewise.
12975         (vsx_ge<mode>_p): Likewise.
12976         (vsx_xxsel<mode>): Likewise.
12977         (vsx_xxsel<mode>_uns): Likewise.
12978         (vsx_copysign<mode>3): Likewise.
12979         (vsx_float<VSi><mode>2): Likewise.
12980         (vsx_floatuns<VSi><mode>2): Likewise.
12981         (vsx_fix_trunc<mode><VSi>2): Likewise.
12982         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
12983         (vsx_x<VSv>r<VSs>i): Likewise.
12984         (vsx_x<VSv>r<VSs>ic): Likewise.
12985         (vsx_btrunc<mode>2): Likewise.
12986         (vsx_b2trunc<mode>2): Likewise.
12987         (vsx_floor<mode>2): Likewise.
12988         (vsx_ceil<mode>2): Likewise.
12989         (vsx_<VS_spdp_insn>): Likewise.
12990         (vsx_xscvspdp): Likewise.
12991         (vsx_xvcvspuxds): Likewise.
12992         (vsx_float_fix_<mode>2): Likewise.
12993         (vsx_set_<mode>): Likewise.
12994         (vsx_extract_<mode>_internal1): Likewise.
12995         (vsx_extract_<mode>_internal2): Likewise.
12996         (vsx_extract_<mode>_load): Likewise.
12997         (vsx_extract_<mode>_store): Likewise.
12998         (vsx_splat_<mode>): Likewise.
12999         (vsx_xxspltw_<mode>): Likewise.
13000         (vsx_xxspltw_<mode>_direct): Likewise.
13001         (vsx_xxmrghw_<mode>): Likewise.
13002         (vsx_xxmrglw_<mode>): Likewise.
13003         (vsx_xxsldwi_<mode>): Likewise.
13004         (vsx_xscvdpspn): Tighten constraints to only use register classes
13005         the types use.
13006         (vsx_xscvspdpn): Likewise.
13007         (vsx_xscvdpspn_scalar): Likewise.
13009         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
13010         wj, and wk constraints.
13011         (GPR_REG_CLASS_P): New helper macro for register classes targeting
13012         general purpose registers.
13014         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
13015         direct moves.
13016         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
13017         DImode instead of wm.  Use wk constraint for direct move of DFmode
13018         instead of wm.
13019         (extendsidi2_lfiwax): Likewise.
13020         (lfiwax): Likewise.
13021         (lfiwzx): Likewise.
13022         (movdi_internal64): Likewise.
13024         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
13025         wk constraints. Make the wy constraint documentation match them
13026         implementation.
13028 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
13030         Replacement of isl_int by isl_val
13031         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
13032         (compute_bounds_for_param): use isl_val instead of isl_int
13033         (compute_bounds_for_loop): likewise
13034         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
13035         (build_linearized_memory_access): use isl_val instead of isl_int
13036         (pdr_stride_in_loop): likewise
13037         * graphite-optimize-isl.c:
13038         (getPrevectorMap): use isl_val instead of isl_int
13039         * graphite-poly.c:
13040         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
13041         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
13042         (extern the_isl_ctx): declare
13043         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
13044         (extract_affine_gmp): likewise
13045         (wrap): likewise
13046         (build_loop_iteration_domains): likewise
13047         (add_param_constraints): likewise
13049 2014-08-11  Richard Biener  <rguenther@suse.de>
13051         PR tree-optimization/62075
13052         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
13053         handle uses in patterns.
13055 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13056             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13057             Anna Tikhonova  <anna.tikhonova@intel.com>
13058             Ilya Tocar  <ilya.tocar@intel.com>
13059             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13060             Ilya Verbin  <ilya.verbin@intel.com>
13061             Kirill Yukhin  <kirill.yukhin@intel.com>
13062             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13064         * common/config/i386/i386-common.c
13065         (OPTION_MASK_ISA_AVX512VL_SET): Define.
13066         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
13067         (ix86_handle_option): Handle OPT_mavx512vl.
13068         * config/i386/cpuid.h (bit_AVX512VL): Define.
13069         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
13070         set -mavx512vl accordingly.
13071         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13072         OPTION_MASK_ISA_AVX512VL.
13073         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
13074         (ix86_option_override_internal): Define PTA_AVX512VL, handle
13075         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
13076         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
13077         * config/i386/i386.h (TARGET_AVX512VL): Define.
13078         (TARGET_AVX512VL_P(x)): Ditto.
13079         * config/i386/i386.opt: Add mavx512vl.
13081 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
13083         PR tree-optimization/62073
13084         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
13085         a basic block.
13087 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13088             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13089             Anna Tikhonova  <anna.tikhonova@intel.com>
13090             Ilya Tocar  <ilya.tocar@intel.com>
13091             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13092             Ilya Verbin  <ilya.verbin@intel.com>
13093             Kirill Yukhin  <kirill.yukhin@intel.com>
13094             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13096         * common/config/i386/i386-common.c
13097         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
13098         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
13099         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
13100         (ix86_handle_option): Handle OPT_mavx512bw.
13101         * config/i386/cpuid.h (bit_AVX512BW): Define.
13102         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
13103         set -mavx512bw accordingly.
13104         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13105         OPTION_MASK_ISA_AVX512BW.
13106         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
13107         (ix86_option_override_internal): Define PTA_AVX512BW, handle
13108         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
13109         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
13110         * config/i386/i386.h (TARGET_AVX512BW): Define.
13111         (TARGET_AVX512BW_P(x)): Ditto.
13112         * config/i386/i386.opt: Add mavx512bw.
13114 2014-08-11  Richard Biener  <rguenther@suse.de>
13116         PR tree-optimization/62070
13117         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
13118         Remove SSA checking.
13120 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13122         * asan.c (asan_check_flags): New enum.
13123         (build_check_stmt_with_calls): Removed function.
13124         (build_check_stmt): Split inlining logic to
13125         asan_expand_check_ifn.
13126         (instrument_derefs): Rename parameter.
13127         (instrument_mem_region_access): Rename parameter.
13128         (instrument_strlen_call): Likewise.
13129         (asan_expand_check_ifn): New function.
13130         (asan_instrument): Remove old code.
13131         (pass_sanopt::execute): Change handling of
13132         asan-instrumentation-with-call-threshold.
13133         (asan_clear_shadow): Fix formatting.
13134         (asan_function_start): Likewise.
13135         (asan_emit_stack_protection): Likewise.
13136         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
13137         Update description.
13138         * internal-fn.c (expand_ASAN_CHECK): New function.
13139         * internal-fn.def (ASAN_CHECK): New internal function.
13140         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
13141         Update description.
13142         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
13143         * tree.c: Small comment fix.
13145 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13147         * gimple.c (gimple_call_fnspec): Support internal functions.
13148         (gimple_call_return_flags): Use const.
13149         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
13150         * internal-fn.def: Add fnspec information.
13151         * internal-fn.h (internal_fn_fnspec): New function.
13152         (init_internal_fns): Declare new function.
13153         * internal-fn.c (internal_fn_fnspec_array): New global variable.
13154         (init_internal_fns): New function.
13155         * tree-core.h: Update macro call.
13156         * tree.c (build_common_builtin_nodes): Initialize internal fns.
13158 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
13160         * lto-streamer.h (struct output_block::symbol): Change from
13161         struct symtab_node to plain symtab_node.
13162         (referenced_from_this_partition_p): Change first parameter
13163         from struct symtab_node to plain symtab_node.
13165 2014-08-10  Marek Polacek  <polacek@redhat.com>
13167         PR c/51849
13168         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
13170 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
13172         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
13173         DECL correctly; do not give up on types in static storage.
13175 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
13177         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
13179 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
13181         * graphite-isl-ast-to-gimple.c:
13182         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
13184         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
13186 2014-08-08  Guozhi Wei  <carrot@google.com>
13188         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
13190 2014-08-08  Cary Coutant  <ccoutant@google.com>
13192         * dwarf2out.c (get_skeleton_type_unit): Remove.
13193         (output_skeleton_debug_sections): Remove skeleton type units.
13194         (output_comdat_type_unit): Likewise.
13195         (dwarf2out_finish): Likewise.
13197 2014-08-07  Yi Yang  <ahyangyi@google.com>
13199         * predict.c (expr_expected_value_1): Remove the redundant assignment.
13201 2014-08-08  Richard Biener  <rguenther@suse.de>
13203         * lto-streamer.h (struct lto_input_block): Make it a class
13204         with a constructor.
13205         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
13206         (struct lto_function_header, struct lto_simple_header,
13207         struct lto_simple_header_with_strings,
13208         struct lto_decl_header, struct lto_function_header): Make
13209         a simple inheritance hieararchy.  Remove unused fields.
13210         (struct lto_asm_header): Remove.
13211         * lto-streamer-out.c (produce_asm): Adjust.
13212         (lto_output_toplevel_asms): Likewise.
13213         (produce_asm_for_decls): Likewise.
13214         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13215         * data-streamer-in.c (string_for_index): Likewise.
13216         * ipa-inline-analysis.c (inline_read_section): Likewise.
13217         * ipa-prop.c (ipa_prop_read_section): Likewise.
13218         (read_replacements_section): Likewise.
13219         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13220         * lto-section-in.c (lto_create_simple_input_block): Likewise.
13221         (lto_destroy_simple_input_block): Likewise.
13222         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
13223         (lto_input_toplevel_asms): Likewise.
13225 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13226             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13227             Anna Tikhonova  <anna.tikhonova@intel.com>
13228             Ilya Tocar  <ilya.tocar@intel.com>
13229             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13230             Ilya Verbin  <ilya.verbin@intel.com>
13231             Kirill Yukhin  <kirill.yukhin@intel.com>
13232             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13234         * common/config/i386/i386-common.c
13235         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
13236         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
13237         (ix86_handle_option): Handle OPT_mavx512dq.
13238         * config/i386/cpuid.h (bit_AVX512DQ): Define.
13239         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13240         set -mavx512dq accordingly.
13241         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13242         OPTION_MASK_ISA_AVX512DQ.
13243         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13244         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13245         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13246         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13247         * config/i386/i386.h (TARGET_AVX512DQ): Define.
13248         (TARGET_AVX512DQ_P(x)): Ditto.
13249         * config/i386/i386.opt: Add mavx512dq.
13251 2014-08-08  Richard Biener  <rguenther@suse.de>
13253         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13254         target_percent, target_percent_s): Export.
13255         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13256         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13257         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13258         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13259         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13260         Move to gimple-fold.c.
13261         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
13262         strcat and strcpy.
13263         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
13264         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
13265         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
13266         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
13267         (rewrite_call_expr_array): Remove.
13268         (fold_builtin_sprintf_chk): Likewise.
13269         (fold_builtin_snprintf_chk): Likewise.
13270         (fold_builtin_varargs): Remove handling of sprintf_chk,
13271         vsprintf_chk, snprintf_chk and vsnprintf_chk.
13272         (gimple_fold_builtin_sprintf_chk): Remove.
13273         (gimple_fold_builtin_snprintf_chk): Likewise.
13274         (gimple_fold_builtin_varargs): Likewise.
13275         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
13276         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
13277         * gimple.c (gimple_seq_add_seq_without_update): New function.
13278         * gimple.h (gimple_seq_add_seq_without_update): Declare.
13279         * gimple-fold.c: Include output.h.
13280         (gsi_replace_with_seq_vops): New function, split out from ...
13281         (gimplify_and_update_call_from_tree): ... here.
13282         (replace_call_with_value): New function.
13283         (replace_call_with_call_and_fold): Likewise.
13284         (var_decl_component_p): Moved from builtins.c.
13285         (gimple_fold_builtin_memory_op): Moved from builtins.c
13286         fold_builtin_memory_op and rewritten to GIMPLE.
13287         (gimple_fold_builtin_memset): Likewise.
13288         (gimple_fold_builtin_strcpy): Likewise.
13289         (gimple_fold_builtin_strncpy): Likewise.
13290         (gimple_fold_builtin_strcat): Likewise.
13291         (gimple_fold_builtin_fputs): Likewise.
13292         (gimple_fold_builtin_memory_chk): Likewise.
13293         (gimple_fold_builtin_stxcpy_chk): Likewise.
13294         (gimple_fold_builtin_stxncpy_chk): Likewise.
13295         (gimple_fold_builtin_snprintf_chk): Likewise.
13296         (gimple_fold_builtin_sprintf_chk): Likewise.
13297         (gimple_fold_builtin_strlen): New function.
13298         (gimple_fold_builtin_with_strlen): New function split out from
13299         gimple_fold_builtin.
13300         (gimple_fold_builtin): Change signature and handle
13301         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
13302         here.  Call gimple_fold_builtin_with_strlen.
13303         (gimple_fold_call): Adjust.
13305 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
13307         * calls.c (precompute_arguments): Check
13308          promoted_for_signed_and_unsigned_p and set the promoted mode.
13309         (promoted_for_signed_and_unsigned_p): New function.
13310         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
13311         and set the promoted mode.
13312         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
13313         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
13314         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
13317 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
13319         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
13320         instead of SUBREG_PROMOTED_UNSIGNED_SET.
13321         (expand_call): Likewise.
13322         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
13323         to get promoted mode.
13324         * combine.c (record_promoted_value): Skip > 0 comparison with
13325         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
13326         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
13327         of SUBREG_PROMOTED_UNSIGNED_P.
13328         (convert_modes): Likewise.
13329         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
13330         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
13331         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
13332         SUBREG_PROMOTED_UNSIGNED_SET.
13333         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
13334         instead of SUBREG_PROMOTED_UNSIGNED_SET.
13335         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
13336         SUBREG_PROMOTED_SET.
13337         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
13338         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
13339         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
13340         of SUBREG_PROMOTED_UNSIGNED_P.
13341         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
13342         (SUBREG_PROMOTED_SET): New define.
13343         (SUBREG_PROMOTED_GET): Likewise.
13344         (SUBREG_PROMOTED_SIGN): Likewise.
13345         (SUBREG_PROMOTED_SIGNED_P): Likewise.
13346         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
13347         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
13348         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
13349         instead of SUBREG_PROMOTED_UNSIGNED_GET.
13350         (nonzero_bits1): Skip > 0 comparison with the results as
13351         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
13352         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
13353         of !SUBREG_PROMOTED_UNSIGNED_P.
13354         * simplify-rtx.c (simplify_unary_operation_1): Use new
13355         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
13356         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
13357         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
13358         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
13360 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
13362         * ipa-devirt.c: Include gimple-pretty-print.h
13363         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
13364         further tests.
13365         (decl_maybe_in_construction_p): Fix conditional on cdtor check
13366         (get_polymorphic_call_info): Fix return value
13367         (type_change_info): New sturcture based on ipa-prop
13368         variant.
13369         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
13370         based on ipa-prop variant.
13371         (extr_type_from_vtbl_ptr_store): New function
13372         based on ipa-prop variant.
13373         (record_known_type): New function.
13374         (check_stmt_for_type_change): New function.
13375         (get_dynamic_type): New function.
13376         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
13377         * tree-ssa-pre.c: ipa-utils.h
13378         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
13379         machinery; sanity check with ipa-prop devirtualization.
13380         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
13381         polymorphic flag.
13383 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
13385         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
13386         * alias.c, cfgexpand.c, cgraphbuild.c,
13387         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
13388         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
13389         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
13390         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
13391         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
13392         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13393         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
13394         dse.c, except.c, gengtype.c, gimple-expr.c,
13395         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
13396         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
13397         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
13398         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
13399         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
13400         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
13401         pointer-set.h.
13402         * pointer-set.c: Remove file.
13403         * pointer-set.h: Remove file.
13405 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13407         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
13408         * config/arm/types.md (f_sels, f_seld): Delete.
13410 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13412         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
13413         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
13414         (aarch64_movdi_<mode>high): Likewise.
13415         (aarch64_mov<mode>high_di): Likewise.
13416         (aarch64_movdi_<mode>low): Likewise.
13417         (aarch64_mov<mode>low_di): Likewise.
13418         (aarch64_movtilow_tilow): Likewise.
13419         Add comment explaining usage of fp,simd attributes and of
13420         TARGET_FLOAT and TARGET_SIMD.
13422 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
13423             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13425         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
13426         Use MOVN when one of the half-words is 0xffff.
13428 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
13430         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
13432 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13434         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
13435         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
13436         (rfs_str): String corresponding to RFS_* constants.
13437         (rank_for_schedule_stats_t): New typedef.
13438         (rank_for_schedule_stats): New static variable.
13439         (rfs_result): New static function.
13440         (rank_for_schedule): Track statistics for deciding heuristics.
13441         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
13442         static functions.
13443         (ready_sort): Use them for debug printouts.
13444         (schedule_block): Init statistics state.  Print statistics on
13445         rank_for_schedule decisions.
13447 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13449         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
13451 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
13453         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
13454         constraint.
13456 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
13458         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
13459         function to not conflict.
13460         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
13461         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
13462         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
13463         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
13464         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
13465         of pointer_map.
13467 2014-08-07  Marek Polacek  <polacek@redhat.com>
13469         * fold-const.c (fold_binary_loc): Add folding of
13470         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
13472 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
13474         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
13475         instead of type size.
13476         (ASM_FINISH_DECLARE_OBJECT): Likewise.
13478 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
13480         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
13481         (*thumb1_movqi_insn): Likewise.
13482         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
13484 2014-08-07  Tom de Vries  <tom@codesourcery.com>
13486         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13487         (glibc_2_11_or_earlier): Remove effective-target keywords.
13489 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
13491         * config/arm/arm.c (bdesc_2arg): Fix typo.
13492         (arm_atomic_assign_expand_fenv): Remove The default implementation.
13494 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13496         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
13498 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
13500         PR debug/61923
13501         * haifa-sched.c (advance_one_cycle): Fix dump.
13502         (schedule_block): Don't advance cycle if we are already at the
13503         beginning of the cycle.
13505 2014-08-06  Martin Jambor  <mjambor@suse.cz>
13507         PR ipa/61393
13508         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
13510 2014-08-06  Richard Biener  <rguenther@suse.de>
13512         PR lto/62034
13513         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
13514         SCCs here.
13515         (lto_input_tree): Pop SCCs here.
13517 2014-08-06  Richard Biener  <rguenther@suse.de>
13519         PR tree-optimization/61320
13520         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
13521         handle misaligned loads.
13523 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
13525         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
13526         (aarch64_expand_vec_perm_const): Check for dup before zip.
13528 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13530         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
13531         CONST_INT_P instead of GET_CODE and compare.
13532         (aarch64_select_cc_mode): Likewise.
13533         (aarch64_print_operand): Likewise.
13534         (aarch64_rtx_costs): Likewise.
13535         (aarch64_simd_valid_immediate): Likewise.
13536         (aarch64_simd_check_vect_par_cnst_half): Likewise.
13537         (aarch64_simd_emit_pair_result_insn): Likewise.
13539 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
13541         * gdbhooks.py (find_gcc_source_dir): New helper function.
13542         (class PassNames): New class, locating and parsing passes.def.
13543         (class BreakOnPass): New command "break-on-pass".
13545 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
13547         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
13548         getting olde.
13550 2014-08-05  Richard Biener  <rguenther@suse.de>
13552         PR rtl-optimization/61672
13553         * emit-rtl.h (mem_attrs_eq_p): Declare.
13554         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
13555         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
13556         * cfgcleanup.c (merge_memattrs): Likewise.
13557         Include emit-rtl.h.
13559 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13561         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
13562         rather than singleton vectors.
13563         (vqdmlsls_lane_s32): Likewise.
13565 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13567         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
13568         Use VSDQ_HSI mode iterator.
13569         (aarch64_sqrdmulh_laneq<mode>): Likewise.
13570         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
13571         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
13572         Use BUILTIN_VDQHS macro.
13573         (sqrdmulh_laneq): Likewise.
13574         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
13575         (vqdmlals_laneq_s32): Likewise.
13576         (vqdmlslh_laneq_s16): Likewise.
13577         (vqdmlsls_laneq_s32): Likewise.
13578         (vqdmulhh_laneq_s16): Likewise.
13579         (vqdmulhs_laneq_s32): Likewise.
13580         (vqrdmulhh_laneq_s16): Likewise.
13581         (vqrdmulhs_laneq_s32): Likewise.
13583 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13585         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
13586         (vmuld_laneq_f64): Likewise.
13587         (vmuls_laneq_f32): Likewise.
13588         (vmul_n_f64): Likewise.
13589         (vmuld_lane_f64): Reimplement in C.
13590         (vmuls_lane_f32): Likewise.
13592 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13594         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
13595         to reservation.
13596         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
13598 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13600         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
13601         (rbitsi2): Likewise.
13602         (*arm_rev): Set predicable and predicable_short_it attributes.
13604 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13606         * convert.c (convert_to_integer): Guard transformation to lrint by
13607         -fno-math-errno.
13609 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
13611         * config/aarch64/aarch64-builtins.c
13612         (aarch64_simd_builtin_type_mode): Delete.
13613         (v8qi_UP): Remap to V8QImode.
13614         (v4hi_UP): Remap to V4HImode.
13615         (v2si_UP): Remap to V2SImode.
13616         (v2sf_UP): Remap to V2SFmode.
13617         (v1df_UP): Remap to V1DFmode.
13618         (di_UP): Remap to DImode.
13619         (df_UP): Remap to DFmode.
13620         (v16qi_UP):V16QImode.
13621         (v8hi_UP): Remap to V8HImode.
13622         (v4si_UP): Remap to V4SImode.
13623         (v4sf_UP): Remap to V4SFmode.
13624         (v2di_UP): Remap to V2DImode.
13625         (v2df_UP): Remap to V2DFmode.
13626         (ti_UP): Remap to TImode.
13627         (ei_UP): Remap to EImode.
13628         (oi_UP): Remap to OImode.
13629         (ci_UP): Map to CImode.
13630         (xi_UP): Remap to XImode.
13631         (si_UP): Remap to SImode.
13632         (sf_UP): Remap to SFmode.
13633         (hi_UP): Remap to HImode.
13634         (qi_UP): Remap to QImode.
13635         (aarch64_simd_builtin_datum): Make mode a machine_mode.
13636         (VAR1): Build builtin name.
13637         (aarch64_init_simd_builtins): Remove dead code.
13639 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
13641         * graphite-isl-ast-to-gimple.c:
13642         (set_options): New function.
13643         (scop_to_isl_ast): Add calling of set_options.
13645 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
13647         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
13648         (analyze_iv_to_split_insn): Don't initialize them.
13649         (get_ivts_expr): Removed.
13650         (allocate_basic_variable, insert_base_initialization): Use
13651         SET_SRC instead of *get_ivts_expr.
13652         (split_iv): Use &SET_SRC instead of get_ivts_expr.
13654 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
13656         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
13657         (translate_isl_ast_for_loop): Add checking of the
13658         flag_loop_parallelize_all.
13659         (ast_build_before_for): New function.
13660         (scop_to_isl_ast): Add checking of the
13661         flag_loop_parallelize_all.
13662         * graphite-dependences.c: Move the defenition of the
13663         scop_get_dependences from graphite-optimize-isl.c to this file.
13664         (apply_schedule_on_deps): Add checking of the ux's emptiness.
13665         (carries_deps): Add checking of the x's value.
13666         * graphite-optimize-isl.c: Move the defenition of the
13667         scop_get_dependences to graphite-dependences.c.
13668         * graphite-poly.h: Add declarations of scop_get_dependences
13669         and carries_deps.
13671 2014-08-04  Rohit  <rohitarulraj@freescale.com>
13673         PR target/60102
13674         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
13675         names.
13676         (alt_reg_names): Likewise.
13677         (rs6000_dwarf_register_span): For SPE high registers, replace
13678         dwarf register numbers with GCC hard register numbers.
13679         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
13680         (rs6000_dbx_register_number): For SPE high registers, return dwarf
13681         register number for the corresponding GCC hard register number.
13682         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
13683         newly added GCC hard register numbers for SPE high registers.
13684         (DWARF_FRAME_REGISTERS):  Likewise.
13685         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
13686         (DWARF_FRAME_REGNUM): Likewise.
13687         (FIXED_REGISTERS): Likewise.
13688         (CALL_USED_REGISTERS): Likewise.
13689         (CALL_REALLY_USED_REGISTERS): Likewise.
13690         (REG_ALLOC_ORDER): Likewise.
13691         (enum reg_class): Likewise.
13692         (REG_CLASS_NAMES): Likewise.
13693         (REG_CLASS_CONTENTS): Likewise.
13694         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
13696 2014-08-04  Richard Biener  <rguenther@suse.de>
13698         * gimple-fold.h (gimple_fold_builtin): Remove.
13699         * gimple-fold.c (gimple_fold_builtin): Make static.
13700         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
13701         fold_stmt, not gimple_fold_builtin.
13703 2014-08-04  Martin Liska <mliska@suse.cz>
13705         * cgraph.h (csi_end_p): Removed.
13706         (csi_next): Likewise.
13707         (csi_node): Likewise.
13708         (csi_start): Likewise.
13709         (cgraph_node_in_set_p): Likewise.
13710         (cgraph_node_set_size): Likewise.
13711         (vsi_end_p): Likewise.
13712         (vsi_next): Likewise.
13713         (vsi_node): Likewise.
13714         (vsi_start): Likewise.
13715         (varpool_node_set_size): Likewise.
13716         (cgraph_node_set_nonempty_p): Likewise.
13717         (varpool_node_set_nonempty_p): Likewise.
13718         * cgraphunit.c (cgraph_process_new_functions): vec replaces
13719         cgraph_node_set.
13720         * ipa-inline-transform.c: Likewise.
13721         * ipa-utils.c (cgraph_node_set_new): Removed.
13722         (cgraph_node_set_add): Likewise.
13723         (cgraph_node_set_remove): Likewise.
13724         (cgraph_node_set_find): Likewise.
13725         (dump_cgraph_node_set): Likewise.
13726         (debug_cgraph_node_set): Likewise.
13727         (free_cgraph_node_set): Likewise.
13728         (varpool_node_set_new): Likewise.
13729         (varpool_node_set_add): Likewise.
13730         (varpool_node_set_remove): Likewise.
13731         (varpool_node_set_find): Likewise.
13732         (dump_varpool_node_set): Likewise.
13733         (free_varpool_node_set): Likewise.
13734         (debug_varpool_node_set): Likewise.
13735         * tree-emutls.c (struct tls_var_data):
13736         (emutls_index): Removed.
13737         (emutls_decl): Likewise.
13738         (gen_emutls_addr): Function implementation uses newly added
13739         hash_map<varpool_node *, tls_var_data>.
13740         (clear_access_vars): Likewise.
13741         (create_emultls_var): Likewise.
13742         (ipa_lower_emutls): Likewise.
13743         (reset_access): New function.
13745 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
13747         * config/i386/i386.c (ix86_option_override_internal): Add
13748         PTA_RDRND and PTA_MOVBE for bdver4.
13750 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13751             James Greenhalgh  <james.greenhalgh@arm.com>
13753         * doc/md.texi (clrsb): Document.
13754         (clz): Change reference to x into operand 1.
13755         (ctz): Likewise.
13756         (popcount): Likewise.
13758 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13760         PR target/61713
13761         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
13762         move to subtarget in serial version if result is ignored.
13764 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13765             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13767         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
13768         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
13769         (sched_analyze_insn): Update use of try_group_insn to
13770         sched_macro_fuse_insns.
13771         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
13772         arguments that are not conditional jumps.
13774 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
13776         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
13777         family information. Handle BTVER2 cpu with cpuid family value.
13779 2014-08-04  Tom de Vries  <tom@codesourcery.com>
13781         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13782         (glibc_2_11_or_earlier): Document effective-target keywords.
13784 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
13786         * ipa-devirt.c (odr_type_warn_count): Add type.
13787         (possible_polymorphic_call_targets): Set it.
13788         (ipa_devirt): Use it.
13790 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
13792         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
13793         Document.
13794         * ipa-devirt.c: Include hash-map.h
13795         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
13796         (clear_speculation): Break out of ...
13797         (get_class_context): ... here; speed up handling obviously useless
13798         speculations.
13799         (odr_type_warn_count, decl_warn_count): New structures.
13800         (final_warning_record): New structure.
13801         (final_warning_records): New static variable.
13802         (possible_polymorphic_call_targets): Cleanup handling of
13803         speculative info; do not build speculation when user do not care;
13804         record info about warnings when asked for.
13805         (add_decl_warning): New function.
13806         (type_warning_cmp): New function.
13807         (decl_warning_cmp): New function.
13808         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
13809         (gate): Enable pass when warnings are requested.
13810         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
13811         options.
13813 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
13815         * hash-map.h (default_hashmap_traits::mark_key_deleted):
13816         Fix cast.
13817         (hash_map::remove): New method.
13818         (hash_map::traverse): New method.
13819         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
13820         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
13821         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
13822         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
13823         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
13824         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
13825         pointer_map.
13827 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
13829         * hash-set.h: new File.
13830         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
13831         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
13832         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
13833         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
13834         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
13835         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
13836         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
13837         varpool.c: Use hash_set instead of pointer_set.
13839 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
13841         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
13843 2014-08-01  Jiong Wang <jiong.wang@arm.com>
13845         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
13846         for frame access when strict_p is false.
13848 2014-08-01  Renlin Li <renlin.li@arm.com>
13849 2014-08-01  Jiong Wang <jiong.wang@arm.com>
13851         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
13852         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
13853         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
13854         Declaration.
13855         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
13856         predicate.
13857         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
13858         aarch64_mem_pair_offset.
13860 2014-08-01  Jiong Wang <jiong.wang@arm.com>
13862         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
13863         offset.
13864         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
13865         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
13867 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
13869         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
13871 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
13873         PR regression/61510
13874         * cgraphunit.c (analyze_functions): Use get_create rather than get
13875         for decls which are clones of abstract functions.
13877 2014-08-01  Martin Liska  <mliska@suse.cz>
13879         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
13880         * ipa-prop.h (count_formal_params): Global function created from static.
13881         * ipa-prop.c (count_formal_params): Likewise.
13882         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
13883         profiles for semantically equivalent functions.
13884         * passes.c (do_per_function): If we load body of a function
13885         during WPA, this condition should behave same.
13886         * varpool.c (ctor_for_folding): More tolerant assert for variable
13887         aliases created during WPA.
13889 2014-08-01  Martin Liska  <mliska@suse.cz>
13891         * doc/invoke.texi (Options That Control Optimization): Documentation
13892         for -foptimize-strlen introduced. Optimization levels default options
13893         fixed.
13895 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
13897         * opts.c (common_handle_option): Handle -fsanitize=alignment.
13898         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
13899         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
13900         type to bool.
13901         * stor-layout.h (min_align_of_type): New prototype.
13902         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
13903         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
13904         check.
13905         * ubsan.c: Include builtins.h.
13906         (ubsan_expand_bounds_ifn): Change return type to bool,
13907         always return true.
13908         (ubsan_expand_null_ifn): Change return type to bool, change
13909         argument to gimple_stmt_iterator *.  Handle both null and alignment
13910         sanitization, take type from ckind argument's type rather than
13911         first argument.
13912         (instrument_member_call): Removed.
13913         (instrument_mem_ref): Remove t argument, add mem and base arguments.
13914         Handle both null and alignment sanitization, don't say whole
13915         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
13916         call instead of 2 argument.
13917         (instrument_null): Adjust instrument_mem_ref caller.  Don't
13918         instrument calls here.
13919         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
13920         like SANITIZE_NULL.
13921         * stor-layout.c (min_align_of_type): New function.
13922         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
13923         Or it into SANITIZE_UNDEFINED.
13924         * doc/invoke.texi (-fsanitize=alignment): Document.
13926 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13928         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
13930 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13932         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
13933         inchash.
13934         (vn_reference_compute_hash): Dito.
13935         (vn_nary_op_compute_hash): Dito.
13936         (vn_phi_compute_hash): Dito.
13937         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
13939 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13941         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
13942         Rename to inchash:add_expr_commutative. Convert to inchash.
13943         (iterative_hash_hashable_expr): Rename to
13944         inchash:add_hashable_expr. Convert to inchash.
13945         (avail_expr_hash): Dito.
13947 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13949         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
13950         Convert to inchash.
13952 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13954         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
13956 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13958         * Makefile.in (OBJS): Add rtlhash.o
13959         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
13960         (loc_checksum): Dito.
13961         (loc_checksum_ordered): Dito.
13962         (hash_loc_operands): Dito.
13963         (hash_locs): Dito.
13964         (hash_loc_list): Dito.
13965         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
13966         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
13967         * rtlhash.c: New file.
13968         * rtlhash.h: New file.
13970 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13972         * inchash.h (inchash): Change inchash class to namespace.
13973         (class hash): ... Rename from inchash.
13974         (add_object): Move from macro to class template.
13975         * lto-streamer-out.c (hash_tree): Change inchash
13976         to inchash::hash.
13977         * tree.c (build_type_attribute_qual_variant): Dito.
13978         (type_hash_list): Dito.
13979         (attribute_hash_list): Dito.
13980         (iterative_hstate_expr): Rename to inchash::add_expr
13981         (build_range_type_1): Change inchash to inchash::hash
13982         and use hash::add_expr.
13983         (build_array_type_1): Dito.
13984         (build_function_type): Dito
13985         (build_method_type_directly): Dito.
13986         (build_offset_type): Dito.
13987         (build_complex_type): Dito.
13988         (make_vector_type): Dito.
13989         * tree.h (iterative_hash_expr): Dito.
13991 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
13993         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
13995 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
13997         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
13998         correct alphabetical position.
13999         (vpaddd_f64): Rewrite using builtins.
14000         (vpaddd_s64): Move to correct alphabetical position.
14001         (vpaddd_u64): New.
14003 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
14005         PR target/61844
14006         * config/sh/sh.c (sh_legitimate_address_p,
14007         sh_legitimize_reload_address): Handle reg+reg address modes when
14008         ALLOW_INDEXED_ADDRESS is false.
14009         * config/sh/predicates.md (general_movsrc_operand,
14010         general_movdst_operand): Likewise.
14012 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14014         * config/aarch64/aarch64-builtins.c
14015         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
14016         BYTES_BIG_ENDIAN.
14018 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14020         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
14021         the generated mask based on BYTES_BIG_ENDIAN.
14022         (aarch64_simd_check_vect_par_cnst_half): New.
14023         * config/aarch64/aarch64-protos.h
14024         (aarch64_simd_check_vect_par_cnst_half): New.
14025         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
14026         the check out to aarch64_simd_check_vect_par_cnst_half.
14027         (vect_par_cnst_lo_half): Likewise.
14028         * config/aarch64/aarch64-simd.md
14029         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
14030         (move_hi_quad_<mode>): Always generate a low mask.
14032 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14034         * doc/invoke.texi (AVR Options): Add documentation about
14035         __AVR_DEVICE_NAME__ built-in macro.
14037 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
14039         PR target/61948
14040         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
14041         constraints are satisfied.
14042         (<shift>di3_neon): Likewise.
14044 2014-07-31  Richard Biener  <rguenther@suse.de>
14046         PR tree-optimization/61964
14047         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
14048         by structural equality.
14050 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
14052         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
14053         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
14054         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
14055         New enums.
14056         * gcc.c (sanitize_spec_function): Support new option.
14057         (SANITIZER_SPEC): Remove now redundant check.
14058         * opts.c (common_handle_option): Support new option.
14059         (finish_options): Check for incompatibilities.
14060         * toplev.c (process_options): Split userspace-specific checks.
14062 2014-07-31  Richard Biener  <rguenther@suse.de>
14064         * lto-streamer.h (struct output_block): Remove global.
14065         (struct data_in): Remove labels, num_named_labels and
14066         num_unnamed_labels.
14067         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
14068         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
14070 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
14072         PR c++/60517
14073         * common.opt (-Wreturn-local-addr): Moved from c.opt.
14074         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
14075         (isolate_path): New argument to avoid inserting a trap.
14076         (find_implicit_erroneous_behaviour): Handle returning the address
14077         of a local variable.
14078         (find_explicit_erroneous_behaviour): Likewise.
14080 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
14082         PR lto/61868
14083         * toplev.c (init_random_seed): Move piece of code never called to
14084         set_random_seed.
14085         (set_random_seed): see above.
14087 2014-07-31  Tom de Vries  <tom@codesourcery.com>
14089         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
14091 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
14093         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
14094         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
14096 2014-07-31  Richard Biener  <rguenther@suse.de>
14098         * data-streamer.h (streamer_write_data_stream): Declare here,
14099         renamed from ...
14100         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
14101         * lto-cgraph.c (lto_output_node): Adjust.
14102         (lto_output_varpool_node): Likewise.
14103         * data-streamer-out.c (streamer_string_index): Likewise.
14104         (streamer_write_data_stream, lto_append_block): Move from ...
14105         * lto-section-out.c (lto_output_data_stream,
14106         lto_append_block): ... here.
14108 2014-07-30  Mike Stump  <mikestump@comcast.net>
14110         * configure.ac: Also check for popen.
14111         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
14112         * configure: Regenerate.
14113         * config.in:  Regenerate.
14115 2014-07-30  Martin Jambor  <mjambor@suse.cz>
14117         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
14118         parameter to gimple.
14120 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14122         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
14123         address as second parameter to __tpf_eh_return routine.
14125 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
14127         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
14128         Thumb2.
14130 2014-07-30  Tom Tromey  <tromey@redhat.com>
14132         PR c/59855
14133         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
14134         * doc/extend.texi (Type Attributes): Document designated_init
14135         attribute.
14137 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
14139         * graphite-isl-ast-to-gimple.c:
14140         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
14141         (gcc_expression_from_isl_expression): Pass type to
14142         gcc_expression_from_isl_ast_expr_id.
14144 2014-07-30  Richard Biener  <rguenther@suse.de>
14146         * lto-streamer.h (lto_write_data): New function.
14147         * langhooks.c (lhd_append_data): Do not free block.
14148         * lto-section-out.c (lto_write_data): New function writing
14149         raw data to the current section.
14150         (lto_write_stream): Adjust for langhook semantic change.
14151         (lto_destroy_simple_output_block): Write header directly.
14152         * lto-opts.c (lto_write_options): Write options directly.
14153         * lto-streamer-out.c (produce_asm): Write heaeder directly.
14154         (lto_output_toplevel_asms): Likewise.
14155         (copy_function_or_variable): Copy data directly.
14156         (write_global_references): Output index table directly.
14157         (lto_output_decl_state_refs): Likewise.
14158         (write_symbol): Write data directly.
14159         (produce_symtab): Adjust.
14160         (produce_asm_for_decls): Output header and refs directly.
14162 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14164         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
14165         to speculative_targets
14166         (get_class_context): Fix handling of contextes without outer type;
14167         avoid matching non-polymorphic types in LTO.
14168         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
14169         parameter to speculative_targetsp; handle speculation.
14170         (dump_possible_polymorphic_call_targets): Update dumping.
14172 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14174         * common.opt (Wodr): Enable by default.
14176 2014-07-29  Olivier Hainque  <hainque@adacore.com>
14178         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
14180 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14182         PR bootstrap/61914
14183         * gengtype.c (strtoken): New function.
14184         (create_user_defined_type): Replace strtok with strtoken.
14186 2014-07-29  Nathan Sidwell  <nathan@acm.org>
14188         * gcov-io.c (gcov_var): Make hidden.
14189         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
14190         (gcov_do_dump): Declare.
14191         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
14193 2014-07-29  Martin Jambor  <mjambor@suse.cz>
14195         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
14196         parameter to gimple.
14197         (sra_modify_assign): Likewise.
14199 2014-07-29  Richard Biener  <rguenther@suse.de>
14201         PR middle-end/52478
14202         * expr.c (expand_expr_real_2): Revert last change.
14204 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14206         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
14207         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
14208         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
14209         call.
14210         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
14211         (contains_type_p): Forward declare.
14212         (polymorphic_call_target_hasher::hash): Hash speculative info.
14213         (polymorphic_call_target_hasher::equal): Compare speculative info.
14214         (get_class_context): Handle speuclation.
14215         (contains_type_p): Update.
14216         (get_polymorphic_call_info_for_decl): Update.
14217         (walk_ssa_copies): Break out from ...
14218         (get_polymorphic_call_info): ... here; set speculative context
14219         before giving up.
14220         * ipa-prop.c (ipa_write_indirect_edge_info,
14221         ipa_read_indirect_edge_info): Stream speculative context.
14222         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
14223         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
14224         SPECULATIVE_MAYBE_DERIVED_TYPE).
14225         (possible_polymorphic_call_targets overriders): Update.
14226         (dump_possible_polymorphic_call_targets overriders): Update.
14227         (dump_possible_polymorphic_call_target_p overriders): Update.
14229 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14231         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
14232         ipa-devirt path; fix thinko there.
14234 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
14236         * config/i386/i386.c (ix86_return_in_memory): Replace one
14237         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
14239 2014-07-28  Marek Polacek  <polacek@redhat.com>
14241         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
14243 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
14245         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14246         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14247         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14248         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14249         (USE_LD_AS_NEEDED): Likewise.
14250         (ASM_APP_ON): Likewise.
14251         (ASM_APP_OFF): Likewise.
14252         (TARGET_POSIX_IO): Likewise.
14253         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14254         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14255         (USE_LD_AS_NEEDED): Likewise.
14256         (ASM_APP_ON): Likewise.
14257         (ASM_APP_OFF): Likewise.
14258         (TARGET_POSIX_IO): Likewise.
14260 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14262         PR middle-end/61734
14263         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
14264         operators other than the equality operators.
14266 2014-07-28  Richard Biener  <rguenther@suse.de>
14268         PR middle-end/52478
14269         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
14270         sure to register SImode ones, not only >= word_mode ones.
14271         * expr.c (expand_expr_real_2): When expanding -ftrapv
14272         binops do not use OPTAB_LIB_WIDEN.
14274 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
14276         PR middle-end/61919
14277         * tree-outof-ssa.c (insert_partition_copy_on_edge)
14278         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
14279         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
14280         inserting them in the insn stream.
14282 2014-07-28  Marek Polacek  <polacek@redhat.com>
14284         PR middle-end/61913
14285         * common.opt (Wodr): Add Var.
14287 2014-07-28  Richard Biener  <rguenther@suse.de>
14289         PR tree-optimization/61921
14290         * tree-ssa-structalias.c (create_variable_info_for_1): Check
14291         if there is a varpool node before dereferencing it.
14293 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
14295         * graphite-sese-to-poly.c:
14296         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
14297         id of the pbb), which contains pointer to the pbb1.
14299         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
14301 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
14303         * graphite-isl-ast-to-gimple.c:
14304         (graphite_create_new_guard): New function.
14305         (translate_isl_ast_node_if): New function.
14306         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
14308         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
14310 2014-07-27  Anthony Green  <green@moxielogic.com>
14312         * config.gcc: Add moxie-*-moxiebox* configuration.
14313         * config/moxie/moxiebox.h: New file.
14315 2014-07-26  Andrew Pinski  <apinski@cavium.com>
14317         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
14318         from the read only register.
14320 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
14322         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
14323         as the allocation class if it isn't likely to be spilled.
14325 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
14327         * rtl.h (tls_referenced_p): Declare.
14328         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
14329         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
14330         (mips_cannot_force_const_mem): Use tls_referenced_p.
14331         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
14332         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
14333         instead of pa_tls_referenced_p.
14334         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
14335         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
14336         (pa_legitimate_constant_p): Likewise.
14337         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
14338         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
14339         (rs6000_cannot_force_const_mem, rs6000_emit_move)
14340         (rs6000_address_for_altivec): Use tls_referenced_p instead of
14341         rs6000_tls_referenced_p.
14342         (rs6000_tls_symbol_ref_1): Delete.
14344 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
14346         PR target/44551
14347         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
14348         Optimize inverse of a VEC_CONCAT.
14350 2014-07-25  Xinliang David Li  <davidxl@google.com>
14352         * params.def: New parameter.
14353         * coverage.c (get_coverage_counts): Check new flag.
14354         (coverage_compute_profile_id): Check new flag.
14355         (coverage_begin_function): Check new flag.
14356         (coverage_end_function): Check new flag.
14357         * value-prof.c (coverage_node_map_initialized_p): New function.
14358         (init_node_map): Populate map with all functions.
14359         * doc/invoke.texi: Document new parameter.
14361 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
14362             Richard Biener <rguenther@suse.de>
14364         * lto-streamer-out.c (struct sccs): Turn to ...
14365         (class DFS): ... this one; refactor the DFS walk so it can
14366         be re-done on per-SCC basis.
14367         (DFS::DFS): New constructor.
14368         (DFS::~DFS): New destructor.
14369         (hash_tree): Add new MAP argument holding in-SCC hash values;
14370         remove POINTER_TYPE hashing hack.
14371         (scc_entry_compare): Rename to ...
14372         (DFS::scc_entry_compare): ... this one.
14373         (hash_scc): Rename to ...
14374         (DFS::hash_scc): ... this one; pass output_block instead
14375         of streamer_cache; work harder to get unique and stable SCC
14376         hashes.
14377         (DFS_write_tree): Rename to ...
14378         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
14379         (lto_output_tree): Update.
14381 2014-07-25  Andi Kleen  <ak@linux.intel.com>
14383         * lto-streamer-out.c (hash_tree): Convert to inchash.
14385 2014-07-25  Andi Kleen  <ak@linux.intel.com>
14387         * tree.c (build_type_attribute_qual_variant): Use inchash.
14388         (type_hash_list): Dito.
14389         (attribute_hash_list): Dito
14390         (iterative_hstate_expr): Dito.
14391         (iterative_hash_expr): Dito.
14392         (build_range_type_1): Dito.
14393         (build_array_type_1): Dito.
14394         (build_function_type): Dito.
14395         (build_method_type_directly): Dito.
14396         (build_offset_type): Dito.
14397         (build_complex_type): Dito.
14398         (make_vector_type): Dito.
14399         * tree.h (iterative_hash_expr): Add compat wrapper.
14400         (iterative_hstate_expr): Add.
14402 2014-07-25  Andi Kleen  <ak@linux.intel.com>
14404         * Makefile.in (OBJS): Add inchash.o.
14405         (PLUGIN_HEADERS): Add inchash.h.
14406         * ipa-devirt.c: Include inchash.h.
14407         * lto-streamer-out.c: Dito.
14408         * tree-ssa-dom.c: Dito.
14409         * tree-ssa-pre.c: Dito.
14410         * tree-ssa-sccvn.c: Dito.
14411         * tree-ssa-tail-merge.c: Dito.
14412         * asan.c: Dito.
14413         * tree.c (iterative_hash_hashval_t): Move to ...
14414         (iterative_hash_host_wide_int): Move to ...
14415         * inchash.c: Here. New file.
14416         * tree.h (iterative_hash_hashval_t): Move to ...
14417         (iterative_hash_host_wide_int): Move to ...
14418         * inchash.h: Here. New file.
14420 2014-07-25  Richard Biener  <rguenther@suse.de>
14422         PR middle-end/61762
14423         PR middle-end/61894
14424         * fold-const.c (native_encode_int): Add and handle offset
14425         parameter to do partial encodings of expr.
14426         (native_encode_fixed): Likewise.
14427         (native_encode_real): Likewise.
14428         (native_encode_complex): Likewise.
14429         (native_encode_vector): Likewise.
14430         (native_encode_string): Likewise.
14431         (native_encode_expr): Likewise.
14432         * fold-const.c (native_encode_expr): Add offset parameter
14433         defaulting to -1.
14434         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
14435         (fold_ctor_reference): Handle all reads from tcc_constant
14436         ctors.
14438 2014-07-25  Richard Biener  <rguenther@suse.de>
14440         * tree-inline.c (estimate_move_cost): Mark speed_p argument
14441         as possibly unused.
14443 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14445         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
14447 2014-07-24  Kyle McMartin  <kyle@redhat.com>
14449         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
14451 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14453         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
14454         Add prototype.
14455         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
14456         function.
14457         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
14458         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14459         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
14461 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14463         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
14464         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
14465         aggregate types.  Instead, *all* aggregate types, except for single-
14466         element or homogeneous float/vector aggregates, are quadword-aligned
14467         if required by their type alignment.  Issue -Wpsabi note when a type
14468         is now treated differently than before.
14470 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14472         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
14473         does not fit fully into floating-point registers, and there is still
14474         space in the register parameter area, use GPRs to pass those parts
14475         of the argument.  Issue -Wpsabi note if any parameter is now treated
14476         differently than before.
14477         (rs6000_arg_partial_bytes): Update.
14479 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
14481         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
14483 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14485         * rtl.h (target_rtl): Remove lang_dependent_initialized.
14486         * toplev.c (initialize_rtl): Don't use it.  Move previously
14487         "language-dependent" calls to...
14488         (backend_init): ...here.
14489         (lang_dependent_init_target): Don't set lang_dependent_initialized.
14490         Assert that RTL initialization hasn't happend yet.
14492 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14494         PR rtl-optimization/61629
14495         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
14496         they have already been initialized.
14498 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14500         PR middle-end/61268
14501         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
14502         DECL_INCOMING_RTL and entry_parm.
14503         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
14504         * calls.c (load_register_parameters): Likewise argument values.
14505         (emit_library_call_value_1, store_one_arg): Likewise argument
14506         save areas.
14507         * config/i386/i386.c (assign_386_stack_local): Likewise the local
14508         stack slot.
14509         * explow.c (validize_mem): Modify the argument in-place.
14511 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14513         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
14514         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
14516 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14518         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
14519         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
14521 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14523         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
14524         (aarch64_save_callee_saves): New parameter "skip_wb".
14525         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
14527 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14529         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
14530         "wb_candidate2".
14531         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
14533 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
14535         * graphite-isl-ast-to-gimple.c:
14536         (graphite_create_new_loop): Add calling of isl_id_free to properly
14537         decrement reference counts.
14539         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
14541 2014-07-24  Martin Liska  <mliska@suse.cz>
14542         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
14543         function used.
14544         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
14545         (rs6000_code_end): Likewise.
14547 2014-07-24  Martin Liska  <mliska@suse.cz>
14549         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
14550         symtab_node funtion used.
14551         (rs6000_xcoff_declare_object_name): Likewise.
14553 2014-07-24  Martin Liska  <mliska@suse.cz>
14555         * cgraphunit.c (compile): Correct function used.
14557 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
14559         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
14560         as non-indexable.
14562 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
14564         PR lto/61802
14565         * varasm.c (bss_initializer_p): Handle offlined ctors.
14566         (align_variable, get_variable_align): Likewise.
14567         (make_decl_one_only): Likewise.
14568         (default_binds_local_p_1): Likewise.
14569         (decl_binds_to_current_def_p): Likewise.
14570         (get_variable_section): Get constructor if it is offlined.
14571         (assemble_variable_contents): Sanity check that the caller
14572         streamed in the ctor in LTO.
14574 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
14576         * graphite-isl-ast-to-gimple.c:
14577         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
14578         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
14579         isl_ast_op_pdiv_r to the different case.
14581         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
14583 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14585         PR middle-end/61876
14586         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
14587         when flag_errno_math is on.
14589 2014-07-24  Martin Liska  <mliska@suse.cz>
14591         * cgraph.h (varpool_node):
14592         (availability get_availability (void)):
14593         created from cgraph_variable_initializer_availability
14594         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
14595         created from: cgraph_variable_initializer_availability
14596         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
14597         (void finalize_named_section_flags (void)):
14598         created from varpool_finalize_named_section_flags
14599         (bool assemble_decl (void)): created from varpool_assemble_decl
14600         (void analyze (void)): created from varpool_analyze_node
14601         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
14602         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
14603         (void remove_initializer (void)): created from varpool_remove_initializer
14604         (tree get_constructor (void)): created from varpool_get_constructor
14605         (bool externally_visible_p (void)): created from varpool_externally_visible_p
14606         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
14607         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
14608         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
14609         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
14610         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
14611         (static bool output_variables (void)): created from varpool_output_variables
14612         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
14613         created from varpool_extra_name_alias
14614         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
14615         (static void dump_varpool (FILE *f)): created from dump_varpool
14616         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
14617         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
14618         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
14619         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
14620         (void assemble_aliases (void)): created from assemble_aliases
14622 2014-07-24  Martin Liska  <mliska@suse.cz>
14624         * cgraph.h (symtab_node):
14625         (void register_symbol (void)): created from symtab_register_node
14626         (void remove (void)): created from symtab_remove_node
14627         (void dump (FILE *f)): created from dump_symtab_node
14628         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
14629         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
14630         (struct ipa_ref *add_reference (symtab_node *referred_node,
14631         enum ipa_ref_use use_type)): created from add_reference 
14632         (struct ipa_ref *add_reference (symtab_node *referred_node,
14633         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
14634         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
14635         gimple stmt)): created from maybe_add_reference
14636         (bool semantically_equivalent_p (symtab_node *target)): created from
14637         symtab_semantically_equivalent_p
14638         (void remove_from_same_comdat_group (void)): created from
14639         remove_from_same_comdat_group
14640         (void add_to_same_comdat_group (symtab_node *old_node)): created from
14641         symtab_add_to_same_comdat_group
14642         (void dissolve_same_comdat_group_list (void)): created from
14643         symtab_dissolve_same_comdat_group_list
14644         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
14645         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
14646         created from symtab_alias_ultimate_target
14647         (inline symtab_node *next_defined_symbol (void)): created from
14648         symtab_next_defined_symbol
14649         (bool resolve_alias (symtab_node *target)): created from
14650         symtab_resolve_alias
14651         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
14652         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
14653         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
14654         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
14655         (void set_section (const char *section)): created from set_section_1 
14656         (enum availability get_availability (void)): created from symtab_node_availability
14657         (void make_decl_local (void)): created from symtab_make_decl_local
14658         (bool real_symbol_p (void)): created from symtab_read_node
14659         (can_be_discarded_p (void)): created from symtab_can_be_discarded
14660         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
14661         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
14662         symtab_in_same_comdat_p;
14663         (bool address_taken_from_non_vtable_p (void)): created from
14664         address_taken_from_non_vtable_p
14665         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
14666         (static void dump_table (FILE *)): created from dump_symtab
14667         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
14668         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
14669         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
14670         symtab_used_from_object_file_p 
14671         (void dump_base (FILE *)): created from dump_symtab_base
14672         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
14673         (void unregister (void)): created from symtab_unregister_node
14674         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
14675         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
14676         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
14677         symtab_nonoverwritable_alias_1
14678         * cgraph.h (cgraph_node):
14679         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
14680         created from cgraph_remove_node_and_inline_clones
14681         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
14682         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
14683         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
14684         (cgraph_node *function_symbol (enum availability *avail = NULL)):
14685         created from cgraph_function_node
14686         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
14687         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
14688         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
14689         created from cgraph_create_clone 
14690         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
14691         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
14692         created from cgraph_create_virtual_clone
14693         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
14694         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
14695         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
14696         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
14697         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
14698         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
14699         created from cgraph_function_version_info
14700         (struct cgraph_function_version_info *insert_new_function_version (void)):
14701         created from insert_new_cgraph_node_version
14702         (struct cgraph_function_version_info *function_version (void)): created from
14703         get_cgraph_node_version
14704         (void analyze (void)): created from analyze_function
14705         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
14706         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
14707         tree real_alias) cgraph_add_thunk
14708         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
14709         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
14710         created from cgraph_function_or_thunk_node
14711         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
14712         created from expand_thunk
14713         (void reset (void)): created from cgraph_reset_node
14714         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
14715         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
14716         (void remove (void)): created from cgraph_remove_node
14717         (void dump (FILE *f)): created from dump_cgraph_node
14718         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
14719         (bool get_body (void)): created from cgraph_get_body
14720         (void release_body (void)): created from cgraph_release_function_body
14721         (void unnest (void)): created from cgraph_unnest_node
14722         (void make_local (void)): created from cgraph_make_node_local
14723         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
14724         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
14725         gcov_type count, int freq)): created from cgraph_create_edge
14726         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
14727         gcov_type count, int freq)): created from cgraph_create_indirect_edge
14728         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
14729         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
14730         created from cgraph_create_edge_including_clones
14731         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
14732         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
14733         (void remove_callers (void)): created from cgraph_node_remove_callers
14734         (void remove_callees (void)): created from cgraph_node_remove_callees
14735         (enum availability get_availability (void)): created from cgraph_function_body_availability
14736         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
14737         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
14738         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
14739         (void call_duplication_hooks (cgraph_node *node2)): created from
14740         cgraph_call_node_duplication_hooks
14741         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
14742         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
14743         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
14744         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
14745         (void call_function_insertion_hooks (void)):
14746         created from cgraph_call_function_insertion_hooks
14747         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
14748         (bool local_p (void)): created from cgraph_local_node
14749         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
14750         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
14751         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
14752         (inline bool only_called_directly_or_aliased_p (void)):
14753         created from cgraph_only_called_directly_or_aliased_p
14754         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
14755         created from cgraph_will_be_removed_from_program_if_no_direct_calls
14756         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
14757         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
14758         (bool can_remove_if_no_direct_calls_p (void)):
14759         created from cgraph_can_remove_if_no_direct_calls_p
14760         (inline bool has_gimple_body_p (void)):
14761         created from cgraph_function_with_gimple_body_p
14762         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
14763         (static void dump_cgraph (FILE *f)): created from dump_cgraph
14764         (static inline void debug_cgraph (void)): created from debug_cgraph
14765         (static void record_function_versions (tree decl1, tree decl2)):
14766         created from record_function_versions
14767         (static void delete_function_version (tree decl)):
14768         created from delete_function_version
14769         (static void add_new_function (tree fndecl, bool lowered)):
14770         created from cgraph_add_new_function
14771         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
14772         (static cgraph_node * create (tree decl)): created from cgraph_create_node
14773         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
14774         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
14775         (static cgraph_node *get_for_asmname (tree asmname)):
14776         created from cgraph_node_for_asm
14777         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
14778         created from cgraph_same_body_alias 
14779         (static bool used_from_object_file_p_worker (cgraph_node *node,
14780         void *): new function
14781         (static bool non_local_p (cgraph_node *node, void *)):
14782         created from cgraph_non_local_node_p_1
14783         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
14784         created from verify_cgraph
14785         (static bool make_local (cgraph_node *node, void *)):
14786         created from cgraph_make_node_local
14787         (static cgraph_node *create_alias (tree alias, tree target)):
14788         created from cgraph_create_function_alias
14789         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
14790         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
14791         created from cgraph_create_edge_1
14792         * cgraph.h (varpool_node):
14793         (void remove (void)): created from varpool_remove_node
14794         (void dump (FILE *f)): created from dump_varpool_node
14796 2014-07-24  Richard Biener  <rguenther@suse.de>
14798         PR ipa/61823
14799         * tree-ssa-structalias.c (create_variable_info_for_1):
14800         Use varpool_get_constructor.
14801         (create_variable_info_for): Likewise.
14803 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14805         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
14806         subtract outgoing area size when restoring stack_pointer_rtx.
14808 2014-07-24  Nick Clifton  <nickc@redhat.com>
14810         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
14811         that operations are taking place in parallel.
14812         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
14814 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
14816         * omp-low.c (extract_omp_for_data): Add missing break statement.
14818 2014-07-24  Richard Biener  <rguenther@suse.de>
14820         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
14821         * tree-inline.c (estimate_move_cost): Add speed_p parameter
14822         and adjust MOVE_RATIO query accordingly.
14823         (estimate_num_insns): Adjust callers.
14824         * ipa-prop.c (ipa_populate_param_decls): Likewise.
14825         * ipa-cp.c (gather_context_independent_values,
14826         estimate_local_effects): Likewise.
14827         * ipa-split.c (consider_split): Likewise.
14829 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
14831         * config/i386/driver-i386.c: Remove names of unused arguments and
14832         unnecessary unused attributes.
14833         * config/i386/host-mingw32.c: Likewise.
14834         * config/i386/i386.c: Likewise.
14835         * config/i386/winnt-stubs.c: Likewise.
14836         * config/i386/winnt.c: Likewise.
14838 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14840         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
14841         (aarch64_gen_loadwb_pair): New helper function.
14842         (aarch64_expand_epilogue): Simplify code using new helper functions.
14843         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
14845 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14847         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
14848         (aarch64_gen_storewb_pair): New helper function.
14849         (aarch64_expand_prologue): Simplify code using new helper functions.
14850         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
14852 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14854         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
14855         Rename to aarch64_save_callee_saves, remove restore code.
14856         (aarch64_restore_callee_saves): New function.
14858 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14860         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
14861         (aarch64_save_callee_saves): New function to handle reg save
14862         for both core and vectore regs.
14864 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14866         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
14867         (aarch64_gen_store_pair): New helper function.
14868         (aarch64_save_or_restore_callee_save_registers)
14869         (aarch64_save_or_restore_fprs): Use new helper functions.
14871 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14873         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
14874         (aarch64_save_or_restore_callee_save_registers)
14875         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
14877 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14879         * config/aarch64/aarch64.c
14880         (aarch64_save_or_restore_callee_save_registers)
14881         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
14883 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14885         * config/aarch64/aarch64.c
14886         (aarch64_save_or_restore_callee_save_registers)
14887         (aarch64_save_or_restore_fprs): Remove 'increment'.
14889 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14891         * config/aarch64/aarch64.c
14892         (aarch64_save_or_restore_callee_save_registers)
14893         (aarch64_save_or_restore_fprs): Use register offset in
14894         cfun->machine->frame.reg_offset.
14896 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14898         * config/aarch64/aarch64.c
14899         (aarch64_save_or_restore_callee_save_registers)
14900         (aarch64_save_or_restore_fprs): Remove base_rtx.
14902 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14904         * config/aarch64/aarch64.c
14905         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
14906         to 'start_offset'.  Remove local variable 'start_offset'.
14908 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14910         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
14911         type to HOST_WIDE_INT.
14913 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14915         * config/aarch64/aarch64.c (aarch64_expand_prologue)
14916         (aarch64_save_or_restore_fprs)
14917         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
14919 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14921         * config/arm/t-rtems-eabi: Add
14922         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
14923         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
14924         mbig-endian/mthumb/march=armv7-r, and
14925         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
14926         multilibs.
14928 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14929             Chris Johns <chrisj@rtems.org>
14930             Joel Sherrill <joel.sherrill@oarcorp.com>
14932         * config.gcc: Add nios2-*-rtems*.
14933         * config/nios2/rtems.h: New file.
14934         * gcc/config/nios2/t-rtems: New file.
14936 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
14938         PR target/61396
14939         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
14940         constant numbers, not general constants.
14941         (rs6000_expand_vector_init): Ditto.
14943 2014-07-23  Nathan Sidwell  <nathan@acm.org>
14945         * gcov-tool.c (gcov_list): Declare here.
14946         (set_gcov_list): Remove.
14947         (gcov_output_files): Set gcov_list directly.
14949 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
14951         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
14953 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14955         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
14956         callee-saved registers are available for padding purpose
14957         and r3 is not mandatory, then prefer use those callee-saved
14958         instead of r3.
14960 2014-07-23  Richard Biener  <rguenther@suse.de>
14962         * params.def (PARAM_MAX_COMBINE_INSNS): New.
14963         * combine.c: Include statistics.h and params.h.
14964         (combine_instructions): Guard three and four insn combines
14965         with max-combine-insns value.  Record statistics for combines
14966         performed.
14967         * doc/invoke.texi (max-combine-insns): Document new param.
14969 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
14971         * graphite-isl-ast-to-gimple.c:
14972         (translate_isl_ast_node_block): New function.
14973         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
14975         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
14976         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
14978 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
14980         * graphite-isl-ast-to-gimple.c:
14981         (get_max_schedule_dimensions): New function.
14982         (extend_schedule): Likewise.
14983         (generate_isl_schedule): Add calling of extend_schedule and
14984         get_max_schedule_dimensions.
14986 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14988         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
14989         (case UNSPEC): Handle UNSPEC_RBIT.
14991 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14993         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
14994         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
14996 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14998         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
15000 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
15002         * graphite-isl-ast-to-gimple.c:
15003         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
15004         (ivs_params_clear):
15005         (build_iv_mapping): New function.
15006         (translate_isl_ast_node_user): Likewise.
15007         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
15009         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
15010         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
15011         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
15013 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
15015         PR target/55701
15016         * config/arm/arm.md (setmem): New pattern.
15017         * config/arm/arm-protos.h (struct tune_params): New fields.
15018         (arm_gen_setmem): New prototype.
15019         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
15020         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
15021         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
15022         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
15023         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
15024         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
15025         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
15026         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
15027         (arm_const_inline_cost): New function.
15028         (arm_block_set_max_insns): New function.
15029         (arm_block_set_non_vect_profit_p): New function.
15030         (arm_block_set_vect_profit_p): New function.
15031         (arm_block_set_unaligned_vect): New function.
15032         (arm_block_set_aligned_vect): New function.
15033         (arm_block_set_unaligned_non_vect): New function.
15034         (arm_block_set_aligned_non_vect): New function.
15035         (arm_block_set_vect, arm_gen_setmem): New functions.
15037 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
15039         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
15041 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
15043         PR target/61855
15044         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
15045         out of #ifdef __OPTIMIZE__.
15047 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15049         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
15050         different trapping status if -fnon-call-exceptions is enabled.
15052 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15054         * expr.c (store_field): Handle VOIDmode for calls that return values
15055         in multiple locations.
15057 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15059         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
15060         (altivec_vsldoi_<mode>): Likewise.
15062 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15064         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
15065         to the number of characters in the line.
15067 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15069         * graphite-isl-ast-to-gimple.c: Add using of
15070         build_nonstandard_integer_type instead of int128_integer_type_node.
15072 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
15074         * toplev.c (output_stack_usage): Adjust the location of the warning.
15076 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
15078         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
15079         (*membar_storeload): Disable for LEON3.
15081 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15083         PR rtl-optimization/61461
15084         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
15086 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
15088         PR target/61794
15089         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
15090         Fix instruction constraint.
15091         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
15093 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
15095         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
15097 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
15099         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
15100         GNU coding standards.
15101         (nds32_register_move_cost): Likewise.
15102         (nds32_memory_move_cost): Likewise.
15103         (nds32_address_cost): Likewise.
15105 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15107         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
15109 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
15111         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
15112         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
15113         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15114         (HAVE_sync_compare_and_swapqi): Define.
15115         (HAVE_sync_compare_and_swaphi): Likewise.
15116         (HAVE_sync_compare_and_swapsi): Likewise.
15118 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
15120         * config/mips/p5600.md: Add missing cpu tests.
15122 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15124         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
15125         (vmla_f64): Likewise.
15126         (vfms_f64): Likewise.
15127         (vmls_f64): Likewise.
15129 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15131         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
15132         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
15134 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15136         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
15137         (vmlal_high_lane_s32): Likewise.
15138         (vmlal_high_lane_u16): Likewise.
15139         (vmlal_high_lane_u32): Likewise.
15140         (vmlsl_high_lane_s16): Likewise.
15141         (vmlsl_high_lane_s32): Likewise.
15142         (vmlsl_high_lane_u16): Likewise.
15143         (vmlsl_high_lane_u32): Likewise.
15145 2014-07-17  Terry Guo  <terry.guo@arm.com>
15147         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
15148         (alus_reg): Renamed to alus_sreg.
15149         * config/arm/arm-fixed.md: Change type of non-dsp instructions
15150         from alu_reg to alu_sreg.  Change type of dsp instructions from
15151         alu_reg to alu_dsp_reg.
15152         * config/arm/thumb1.md: Likewise.
15153         * config/arm/thumb2.md: Likewise.
15154         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
15155         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
15156         with alu_sreg and alus_sreg.
15157         * config/arm/arm1026ejs.md (alu_op): Likewise.
15158         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
15159         * config/arm/arm926ejs.md (9_alu_op): Likewise.
15160         * config/arm/fa526.md (526_alu_op): Likewise.
15161         * config/arm/fa606te.md (606te_alu_op): Likewise.
15162         * config/arm/fa626te.md (626te_alu_op): Likewise.
15163         * config/arm/fa726te.md (726te_alu_op): Likewise.
15164         * config/arm/fmp626.md (mp626_alu_op): Likewise.
15165         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
15166         alu_sreg, alu_dsp_reg and alus_sreg.
15167         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
15168         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15169         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15170         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
15171         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
15172         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15173         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15174         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15175         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
15176         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
15177         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
15178         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
15179         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
15180         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
15181         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
15182         alus_reg to alus_sreg.
15184 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
15186         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
15187         infinity format.
15189 2014-07-17  Richard Biener  <rguenther@suse.de>
15191         PR rtl-optimization/61801
15192         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
15193         don't set reg_pending_barrier if it appears in a debug-insn.
15195 2014-07-16  DJ Delorie  <dj@redhat.com>
15197         * config/rx/rx.c (rx_option_override): Fix alignment values.
15198         (rx_align_for_label): Likewise.
15200 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
15202         PR target/61737.
15203         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
15204         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15205         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
15206         functions.
15207         (cris_print_index, cris_print_operand, cris_constant_index_p)
15208         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
15209         (cris_address_cost): Ditto last CONSTANT_P.
15210         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
15211         callers changed.  Yield cris_offsettable_symbol for non-PIC
15212         constant symbolic expressions including labels.  Yield cris_unspec
15213         for all unspecs.
15214         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
15215         target to pic_offset_table_rtx for calls that will likely go
15216         through PLT, const0_rtx when they can't.  All callers changed.
15217         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
15218         symbolic expressions to be PICified.  Remove second, redundant,
15219         assert on can_create_pseudo_p returning non-zero.  Use
15220         replace_equiv_address_nv, not replace_equiv_address, for final
15221         operand update.
15222         * config/cris/cris.md ("movsi"): Move variable t to pattern
15223         toplevel. Adjust assert for new cris_symbol_type member.  Use
15224         CONSTANT_P instead of CONSTANT_ADDRESS_P.
15225         ("*movsi_internal") <case 9>: Make check for valid unspec operands
15226         for lapc stricter.
15227         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
15228         ("call", "call_value"): Use second incoming operand as a marker
15229         for pic-offset-table-register being used.
15230         ("*expanded_call_non_v32", "*expanded_call_v32")
15231         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
15232         second incoming operand to CALL, match cris_call_type_marker.
15233         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
15234         ("*expanded_call_side"): Ditto.  Fix typo in comment.
15235         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
15236         CONSTANT_P.
15237         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
15238         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
15239         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
15240         users changed.  Add members cris_offsettable_symbol and cris_unspec.
15241         (cris_symbol_type): Rename from cris_pic_symbol_type.
15242         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15243         just CONSTANT_P.
15244         * config/cris/cris-protos.h (cris_symbol_type_of,
15245         cris_expand_pic_call_address): Adjust prototypes.
15246         (cris_legitimate_constant_p): New prototype.
15248         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15249         an existing tmake_file.  Don't add t-slibgcc and t-linux.
15251 2014-07-17  Jason Merrill  <jason@redhat.com>
15253         PR c++/61623
15254         * symtab.c (symtab_remove_from_same_comdat_group): Also
15255         set_comdat_group to NULL_TREE.
15256         (verify_symtab): Fix diagnostic.
15258 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
15260         PR target/61662
15261         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
15263 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
15265         Support location tracking for built-in macro tokens
15266         * input.h (is_location_from_builtin_token): New function declaration.
15267         * input.c (is_location_from_builtin_token): New function definition.
15268         * toplev.c (general_init): Tell libcpp what the pre-defined
15269         spelling location for built-in tokens is.
15271 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
15273         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
15274         on the FUNCTION_DECL.
15276 2014-07-16  Richard Biener  <rguenther@suse.de>
15278         PR other/61782
15279         * doc/extend.texi (always_inline): Clarify.
15281 2014-07-15  Eric Christopher  <echristo@gmail.com>
15283         * doc/invoke.texi (Link Options): Document -z option.
15285 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
15287         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
15288         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15290 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
15292         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
15294 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15296         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
15297         varpool_assemble_decl.
15298         * varpool.c (varpool_assemble_decl): Assert that node->definition is
15299         true.
15301 2014-07-15  Michael Matz  <matz@suse.de>
15303         PR rtl-optimization/61772
15304         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
15306 2014-07-15  Richard Biener  <rguenther@suse.de>
15308         * opts.c (default_options_table): Disable bit-ccp at -Og.
15310 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
15312         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
15314 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
15316         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
15317         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
15318         call langhook for unknown declaration.
15319         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
15320         * tree.h (DECL_ARGUMENTS): Update.
15321         * print-tree.c (print_node): Update.
15322         * tree-core.h (tree_decl_non_common): Remove arguments.
15323         (tree_function_decl): Add arguments.
15325 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
15327         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
15329 2014-07-14  Richard Biener  <rguenther@suse.de>
15331         PR tree-optimization/61779
15332         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
15333         simplifying a condition.
15335 2014-07-14  Richard Biener  <rguenther@suse.de>
15337         * builtins.c (c_strlen): Make only_value == 2 really only
15338         affect warning generation.
15340 2014-07-14  Richard Biener  <rguenther@suse.de>
15342         PR tree-optimization/61757
15343         PR tree-optimization/61783
15344         PR tree-optimization/61787
15345         * tree-ssa-dom.c (record_equality): Revert canonicalization
15346         change and add comment.
15347         (propagate_rhs_into_lhs): Revert previous fix, removing
15348         loop depth restriction again.
15350 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15352         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
15353         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15354         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15355         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
15356         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15357         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15358         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15360 2014-07-14  Richard Biener  <rguenther@suse.de>
15362         * cgraph.h (decl_in_symtab_p): Make inline.
15364 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
15366         PR middle-end/61294
15367         * doc/invoke.texi (-Wmemset-transposed-args): Document.
15369         PR target/61656
15370         * config/i386/i386.c (classify_argument): Don't merge classes above
15371         number of words.
15373 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
15375         * cgraph.h (symtab_node): Add nonzero_address.
15376         (decl_in_symtab_p): Break out from ...
15377         (symtab_get_node): ... here.
15378         * fold-const.c: Include cgraph.h
15379         (tree_single_nonzero_warnv_p): Use symtab to determine
15380         if symbol is non-zero.
15381         * symtab.c (symtab_node::nonzero_address): New method.
15383 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
15385         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
15386         forgotten in previous commit.
15388 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
15390         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
15391         on builtin types.
15392         * ipa-devirt.c: Include stor-layout.h and intl.h
15393         (odr_subtypes_equivalent_p): New function.
15394         (warn_odr): New function.
15395         (warn_type_mismatch): New function.
15396         (odr_types_equivalent_p): New function.
15397         (add_type_duplicate): Use it.
15398         * common.opt (Wodr): New flag.
15399         * doc/invoke.texi (Wodr): Document new warning.
15401 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
15403         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
15404         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
15405         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
15406         (varpool_get_constructor): Push CTORS_IN timevar.
15407         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
15409 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
15411         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
15412         Remove VOID_FTYPE_PUSHORT.
15413         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
15414         Change code to USHORT_FTYPE_VOID.
15415         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
15416         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
15417         (ix86_atomic_assign_expand_fenv): Update for
15418         __builtin_ia32_fnstsw changes.
15419         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
15420         (fnstsw): Change operand 0 to nonimmediate operand.
15422 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15424         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
15425         (varpool_get_constructor): New function.
15426         (varpool_ctor_useable_for_folding_p): Break out from ...
15427         (ctor_for_folding): ... here; use varpool_get_constructor.
15428         (varpool_assemble_decl): Likewise.
15429         * lto-streamer.h (struct output_block): Turn cgraph_node
15430         to symbol filed.
15431         (lto_input_variable_constructor): Declare.
15432         * ipa-visibility.c (function_and_variable_visibility): Use
15433         varpool_get_constructor.
15434         * cgraph.h (varpool_get_constructor): Declare.
15435         (varpool_ctor_useable_for_folding_p): New function.
15436         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
15437         parameter; return error_mark_node for non-trivial constructors.
15438         (lto_write_tree_1, DFS_write_tree): Update use of
15439         get_symbol_initial_value.
15440         (output_function): Update initialization of symbol.
15441         (output_constructor): New function.
15442         (copy_function): Rename to ..
15443         (copy_function_or_variable): ... this one; handle vars too.
15444         (lto_output): Output variable sections.
15445         * lto-streamer-in.c (input_constructor): New function.
15446         (lto_read_body): Rename from ...
15447         (lto_read_body_or_constructor): ... this one; handle vars too.
15448         (lto_input_variable_constructor): New function.
15449         * ipa-prop.c (ipa_prop_write_jump_functions,
15450         ipa_prop_write_all_agg_replacement): Update.
15451         * lto-cgraph.c (compute_ltrans_boundary): Use it.
15452         (output_cgraph_opt_summary): Set symbol to NULL.
15454 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15456         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
15457         non-polymorphic types.
15458         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
15459         * ipa-devirt.c (types_same_for_odr): Do not explode when one
15460         of types is not polymorphic.
15462 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
15464         * lra-constraints.c (remove_inheritance_pseudos): Process
15465         destination pseudo too.
15467 2014-07-11  Rong Xu  <xur@google.com>
15469         * gcov-tool.c (gcov_output_files): Fix build error introduced in
15470         commit r212448.
15472 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15474         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
15475         * config/avr/avr-devices.c (AVR_MCU): Same.
15476         (avr_mcu_types): add text start value to end of device list.
15477         * config/avr/avr-mcus.def: Add text section start for all devices.
15478         (ata5782): Add new avr5 device.
15479         (ata5831): Same.
15480         * config/avr/avr-tables.opt: Regenerate.
15481         * config/avr/avr.h: Add declaration for text section start handler.
15482         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
15483         SPEC functions.
15484         (LINK_SPEC): Include text section start handler to linker spec.
15485         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
15486         pass -Ttext option to linker if the text section start for the device
15487         is not zero.
15488         * config/avr/t-multilib: Regenerate.
15489         * doc/avr-mmcu.texi: Regenerate.
15491 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
15493         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
15494         * config/rs6000/aix52.h (LINK_SPEC): Same.
15495         * config/rs6000/aix53.h (LINK_SPEC): Same.
15496         * config/rs6000/aix61.h (LINK_SPEC): Same.
15497         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
15499 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
15501         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
15502         (graphite_verify): New function.
15503         (ivs_params_clear): New function.
15504         (gcc_expression_from_isl_ast_expr_id): New function.
15505         (gcc_expression_from_isl_expr_int): New function.
15506         (binary_op_to_tree): New function.
15507         (ternary_op_to_tree): New function.
15508         (unary_op_to_tree): New function.
15509         (nary_op_to_tree): New function.
15510         (gcc_expression_from_isl_expr_op): New function.
15511         (gcc_expression_from_isl_expression): New function.
15512         (graphite_create_new_loop): New function.
15513         (translate_isl_ast_for_loop): New function.
15514         (get_upper_bound): New function.
15515         (graphite_create_new_loop_guard): New function.
15516         (translate_isl_ast_node_for): New function.
15517         (translate_isl_ast): New function.
15518         (add_parameters_to_ivs_params): New function.
15519         (scop_to_isl_ast): New parameter ip.
15520         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
15522 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15524         * config/xtensa/predicates.md (call expander): Update for
15525         DECL_SECTION_NAME being string.
15527 2014-07-11  Richard Biener  <rguenther@suse.de>
15529         PR middle-end/61473
15530         * builtins.c (fold_builtin_memory_op): Inline memory moves that
15531         can be implemented with a single load followed by a single store.
15532         (c_strlen): Only warn when only_value is not 2.
15534 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
15536         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
15538 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
15540         PR target/61561
15541         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
15542         (*movhi_bytes): Likewise.
15543         (*arm_movqi_insn): Likewise.
15545 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
15547         PR target/56858
15548         * config/alpha/alpha.c: Include tree-pass.h, context.h
15549         and pass_manager.h.
15550         (pass_data_handle_trap_shadows): New pass.
15551         (pass_handle_trap_shadows::gate): New pass gate function.
15552         (make_pass_handle_trap_shadows): New function.
15553         (rest_of_handle_trap_shadows): Ditto.
15555         (alpha_align_insns_1): Rename from alpha_align_insns.
15556         (pass_data_align_insns): New pass.
15557         (pass_align_insns::gate): New pass gate function.
15558         (make_pass_aling_insns): New function.
15559         (rest_of_align_insns): Ditto.
15560         (alpha_align_insns): Ditto.
15562         (alpha_option_override): Declare handle_trap_shadows info
15563         and align_insns_info.  Register handle_trap_shadows and align_insns
15564         passes here.
15565         (alpha_reorg): Do not call alpha_trap_shadows and
15566         alpha_align_insn from here.
15568         (alpha_pad_function_end): Do not skip BARRIERs.
15570 2014-07-10  Rong Xu  <xur@google.com>
15572         Add gcov-tool: an offline gcda profile processing tool support.
15573         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
15574         (gcov_is_error): Ditto.
15575         (gcov_read_string): Ditto.
15576         (gcov_read_sync): Ditto.
15577         * gcov-io.h: Move counter defines to gcov-counter.def.
15578         * gcov-dump.c (tag_counters): Use gcov-counter.def.
15579         * coverage.c: Ditto.
15580         * gcov-tool.c: Offline gcda profile processing tool.
15581         (unlink_gcda_file): Remove one gcda file.
15582         (unlink_profile_dir): Remove gcda files from the profile path.
15583         (gcov_output_files): Output gcda files to an output dir.
15584         (profile_merge): Merge two profiles in directory.
15585         (print_merge_usage_message): Print merge usage.
15586         (merge_usage): Print merge usage and exit.
15587         (do_merge): Driver for profile merge sub-command.
15588         (profile_rewrite): Rewrite profile.
15589         (print_rewrite_usage_message): Print rewrite usage.
15590         (rewrite_usage): Print rewrite usage and exit.
15591         (do_rewrite): Driver for profile rewrite sub-command.
15592         (print_usage): Print gcov-info usage and exit.
15593         (print_version): Print gcov-info version.
15594         (process_args): Process arguments.
15595         (main): Main routine for gcov-tool.
15596         * Makefile.in: Build and install gcov-tool.
15597         * gcov-counter.def: New file split from gcov-io.h.
15598         * doc/gcc.texi: Include gcov-tool.texi.
15599         * doc/gcov-tool.texi: Document for gcov-tool.
15601 2014-07-10  Richard Biener  <rguenther@suse.de>
15603         PR tree-optimization/61757
15604         * tree-ssa-dom.c (loop_depth_of_name): Restore.
15605         (propagate_rhs_into_lhs): Revert part of last change.
15607 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
15609         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
15610         FUNCTION_DECLs.
15612 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
15614         PR middle-end/53590
15615         * function.c (allocate_struct_function): Revert r188667 change.
15617         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
15619 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
15621         * doc/install.texi: Remove links to defunct package providers for
15622         Solaris.
15624 2014-07-09  Tom de Vries  <tom@codesourcery.com>
15626         * final.c (get_call_fndecl): Declare.
15627         (self_recursive_call_p): New function.
15628         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
15630 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15632         * ipa-devirt.c (record_node): Walk through aliases.
15634 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15636         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
15638 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15640         Revert:
15641         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15643 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15645         * ipa-visibility.c (function_and_variable_visibility): Remove
15646         temporary hack disabling local aliases on AIX.
15648 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15650         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
15651         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
15653 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15655         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
15656         * rs6000/rs6000.c: Inline output of .set instruction.
15657         (declare_alias_data): New struct.
15658         (rs6000_declare_alias): New function.
15659         (rs6000_xcoff_declare_function_name): Use it.
15660         (rs6000_xcoff_declare_object_name): New function.
15661         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
15662         (ASM_OUTPUT_DEF): Turn to empty definition.
15664 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
15666         PR bootstrap/61679
15667         * hash-table.h: use hash_table::value_type instead of
15668         Descriptor::value_type in the return types of several methods.
15670 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
15672         * tree-pass.h (pass_data): Remove has_execute member.
15673         * passes.c (execute_one_pass): Don't check pass->has_execute.
15674         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15675         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15676         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15677         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15678         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15679         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15680         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15681         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15682         gimple-low.c, gimple-ssa-isolate-paths.c,
15683         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15684         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
15685         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
15686         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
15687         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
15688         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15689         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
15690         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
15691         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
15692         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
15693         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
15694         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15695         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15696         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15697         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15698         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15699         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15700         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15701         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15702         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15703         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15704         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15705         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
15706         web.c: Remove initializer for pass_data::has_execute.
15708 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
15710         * graphite-htab.h: Use hash_map instead of hash_table.
15711         * graphite-clast-to-gimple.c: Adjust.
15712         * passes.c: Use hash_map instead of hash_table.
15713         * sese.c: Likewise.
15714         * sese.h: Remove now unused code.
15716 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
15718         PR target/61599
15719         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
15720         than zero.
15722 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
15724         PR rtl-optimization/61673
15725         * combine.c (simplify_comparison): Test just mode's sign bit
15726         in tmode rather than the sign bit and any bits above it.
15728 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
15730         * graphite-isl-ast-to-gimple.c (generate_isl_context):
15731         Add __isl_give to the declaration.
15732         (generate_isl_schedule): Likewise.
15733         (scop_to_isl_ast): Likewise.
15735 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15737         * config/arm/arm.c (cortexa5_extra_costs): New table.
15738         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
15740 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
15742         PR tree-optimization/61725
15743         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
15744         range, use range_includes_zerop_p instead of integer_zerop on
15745         vr0->min, only use log2 of max if min is not negative.
15747 2014-07-08  Richard Biener  <rguenther@suse.de>
15749         * tree-ssa-dom.h (loop_depth_of_name): Remove.
15750         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
15751         restriction on loop depth difference.
15752         (record_equality): Likewise.
15753         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
15754         (loop_depth_of_name): Remove.
15755         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
15756         restriction on loop depth difference.
15757         (init_copy_prop): Likewise.
15759 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15761         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
15762         parameter.
15763         (walk_aliased_vdefs): Likewise.
15764         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
15765         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
15766         (detect_type_change_from_memory_writes): Check if entry was reached.
15768 2014-07-08  Richard Biener  <rguenther@suse.de>
15770         PR tree-optimization/61681
15771         * tree-ssa-structalias.c (find_what_var_points_to): Expand
15772         NONLOCAL inside ESCAPED.
15774 2014-07-08  Richard Biener  <rguenther@suse.de>
15776         PR tree-optimization/61680
15777         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15778         Handle properly all read-write dependences with group accesses.
15780 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
15782         PR tree-optimization/61576
15783         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
15784         block containing reduction statement is predecessor of phi basi block.
15786 2014-07-08  Marek Polacek  <polacek@redhat.com>
15788         PR c/60226
15789         * fold-const.c (round_up_loc): Change the parameter type.
15790         Remove assert.
15791         * fold-const.h (round_up_loc): Adjust declaration.
15792         * stor-layout.c (finalize_record_size): Check for too large types.
15794 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
15796         * symtab.c: Include calls.h.
15797         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
15799 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
15801         * config/rs6000/rs6000.c (output_vec_const_move): Handle
15802         little-endian code generation.
15803         * config/rs6000/spe.md (spe_evmergehi): Rename to...
15804         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
15805         (spe_evmergehilo): Rename to...
15806         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
15807         (spe_evmergelo): Rename to...
15808         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
15809         (spe_evmergelohi): Rename to...
15810         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
15811         (spe_evmergehi, spe_evmergehilo): New expanders.
15812         (spe_evmergelo, spe_evmergelohi): Likewise.
15813         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
15814         (*frob_tf_ti): Likewise.
15815         (*frob_<mode>_di_2): Likewise.
15816         (*frob_tf_di_8_2): Likewise.
15817         (*frob_di_<mode>): Likewise.
15818         (*frob_ti_tf): Likewise.
15819         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
15820         (*frob_ti_<mode>_8_2): Likewise.
15821         (*frob_ti_tf_2): Likewise.
15822         (mov_si<mode>_e500_subreg0): Rename to...
15823         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
15824         endianness only.
15825         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
15826         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
15827         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
15828         the big endianness only.
15829         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
15830         (*mov_si<mode>_e500_subreg0_2): Rename to...
15831         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
15832         big big endianness only.
15833         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
15834         (*mov_si<mode>_e500_subreg4): Rename to...
15835         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
15836         endianness only.
15837         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
15838         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
15839         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
15840         the big endianness only.
15841         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
15842         pattern.
15843         (*mov_si<mode>_e500_subreg4_2): Rename to...
15844         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
15845         endianness only.
15846         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
15847         (*mov_sitf_e500_subreg8): Rename to...
15848         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
15849         endianness only.
15850         (*mov_sitf_e500_subreg8_le): New instruction pattern.
15851         (*mov_sitf_e500_subreg8_2): Rename to...
15852         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
15853         endianness only.
15854         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
15855         (*mov_sitf_e500_subreg12): Rename to...
15856         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
15857         endianness only.
15858         (*mov_sitf_e500_subreg12_le): New instruction pattern.
15859         (*mov_sitf_e500_subreg12_2): Rename to...
15860         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
15861         endianness only.
15862         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
15864 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15866         * asan.c (instrument_strlen_call): Do not instrument first byte
15867         in strlen if already instrumented.
15869 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15871         * config/arm/arm.opt (mwords-little-endian): Delete.
15872         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
15873         of TARGET_LITTLE_WORDS.
15874         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
15875         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
15876         warning.
15877         * doc/invoke.texi: Remove references to -mwords-little-endian.
15879 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
15881         * expmed.c (struct init_expmed_rtl): Change all fields but
15882         pow2 and cint from struct rtx_def to rtx.
15883         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
15884         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
15885         at the end again.
15887 2014-07-06  Marek Polacek  <polacek@redhat.com>
15889         PR c/6940
15890         * doc/invoke.texi: Document -Wsizeof-array-argument.
15892 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
15894         * wide-int.h (wide_int_storage): Change declaration from struct
15895         to class.
15897 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
15899         * cgraph.c (cgraph_create_indirect_edge): Update call of
15900         get_polymorphic_call_info.
15901         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
15902         (possible_polymorphic_call_targets): Add parameter call.
15903         (decl_maybe_in_construction_p): New predicate.
15904         (get_polymorphic_call_info): Add parameter call;
15905         use decl_maybe_in_construction_p.
15906         * gimple-fold.c (fold_gimple_assign): Update use of
15907         possible_polymorphic_call_targets.
15908         (gimple_fold_call): Likewise.
15909         * ipa-prop.c: Inlcude calls.h
15910         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
15911         (param_type_may_change_p): New predicate.
15912         (detect_type_change_from_memory_writes): Break out from ...
15913         (detect_type_change): ... this one; use param_type_may_change_p.
15914         (detect_type_change_ssa): Use param_type_may_change_p.
15915         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
15917 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
15919         PR target/49423
15920         * config/arm/arm-protos.h (arm_legitimate_address_p,
15921         arm_is_constant_pool_ref): Add prototypes.
15922         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
15923         (arm_is_constant_pool_ref) New function.
15924         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
15925         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
15926         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
15927         operand. Remove pool_range and neg_pool_range attributes.
15928         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
15929         pool_range and neg_pool_range attributes.
15930         * config/arm/constraints.md (Uh): New constraint.
15931         (Uq): Don't allow constant pool references.
15933 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
15935         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
15936         (move_lo_quad_internal_be_<mode>): Likewise.
15937         (move_lo_quad_<mode>): Convert to define_expand.
15938         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
15939         (aarch64_simd_move_hi_quad_be_<mode>): New.
15940         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
15941         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
15942         (aarch64_combinez_be<mode>): New.
15943         (aarch64_combine<mode>): Convert to define_expand.
15944         (aarch64_combine_internal<mode>): New.
15945         (aarch64_simd_combine<mode>): Remove bogus RTL description.
15947 2014-07-04  Tom de Vries  <tom@codesourcery.com>
15949         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
15950         combination of earlyclobber and read/write modifiers.
15952 2014-07-04  Tom de Vries  <tom@codesourcery.com>
15954         * config/aarch64/aarch64-simd.md
15955         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
15957 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
15959         PR target/61714
15960         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
15962 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
15964         PR middle-end/61654
15965         * cgraphunit.c (expand_thunk): Call free_dominance_info.
15967         PR tree-optimization/61684
15968         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
15969         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
15971 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15972             Kito Cheng  <kito@0xlab.org>
15973             Monk Chiang  <sh.chiang04@gmail.com>
15975         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
15976         (nds32_symbol_load_store_p): Move to ...
15977         (nds32_fp_as_gp_check_available): Move to ...
15978         * config/nds32/nds32-fp-as-gp.c: ... here.
15979         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
15980         extern declaration.
15982 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15983             Kito Cheng  <kito@0xlab.org>
15984             Monk Chiang  <sh.chiang04@gmail.com>
15986         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
15987         (nds32_expand_store_multiple): Move to ...
15988         (nds32_expand_movmemqi): Move to ...
15989         * config/nds32/nds32-memory-manipulation.c: ... here.
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 (nds32_byte_to_size): Move to ...
15996         (nds32_output_casesi_pc_relative): Move to ...
15997         (nds32_output_casesi): Move to ...
15998         (nds32_mem_format): Move to ...
15999         (nds32_output_16bit_store): Move to ...
16000         (nds32_output_16bit_load): Move to ...
16001         (nds32_output_32bit_store): Move to ...
16002         (nds32_output_32bit_load): Move to ...
16003         (nds32_output_32bit_load_s): Move to ...
16004         (nds32_output_stack_push): Move to ...
16005         (nds32_output_stack_pop): Move to ...
16006         * config/nds32/nds32-md-auxiliary.c: ... here.
16008 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16009             Ling-Hua Tseng  <uranus@tinlans.org>
16011         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
16012         the purpose of this file.
16014 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16015             Kito Cheng  <kito@0xlab.org>
16016             Monk Chiang  <sh.chiang04@gmail.com>
16018         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
16019         (nds32_address_cost): Move implementation to ...
16020         * config/nds32/nds32-cost.c: ... here.
16021         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
16022         (nds32_address_cost_impl): Declare.
16024 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16025             Kito Cheng  <kito@0xlab.org>
16026             Monk Chiang  <sh.chiang04@gmail.com>
16028         * config/nds32/nds32.c
16029         (nds32_consecutive_registers_load_store_p): Move to ...
16030         (nds32_valid_multiple_load_store): Move to ...
16031         (nds32_valid_stack_push_pop): Move to ...
16032         (nds32_can_use_bclr_p): Move to ...
16033         (nds32_can_use_bset_p): Move to ...
16034         (nds32_can_use_btgl_p): Move to ...
16035         (nds32_can_use_bitci_p): Move to ...
16036         * config/nds32/nds32-predicates.c: ... here.
16038 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16039             Kito Cheng  <kito@0xlab.org>
16040             Monk Chiang  <sh.chiang04@gmail.com>
16042         * config/nds32/nds32.c
16043         (nds32_expand_builtin_null_ftype_reg): Move to ...
16044         (nds32_expand_builtin_reg_ftype_imm): Move to ...
16045         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
16046         (nds32_init_builtins): Move implementation to ...
16047         (nds32_expand_builtin): Move implementation to ...
16048         * config/nds32/nds32-intrinsic.c: ... here.
16049         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
16050         (nds32_expand_builtin_impl): Declare.
16052 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16053             Kito Cheng  <kito@0xlab.org>
16054             Monk Chiang  <sh.chiang04@gmail.com>
16056         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
16057         (nds32_emit_section_tail_template): Move to ...
16058         (nds32_emit_isr_jmptbl_section): Move to ...
16059         (nds32_emit_isr_vector_section): Move to ...
16060         (nds32_emit_isr_reset_conten): Move to ...
16061         (nds32_check_isr_attrs_conflict): Move to ...
16062         (nds32_construct_isr_vectors_information): Move to ...
16063         (nds32_asm_file_start): Move implementation to ...
16064         (nds32_asm_file_end): Move implementation to ...
16065         * config/nds32/nds32-isr.c: ... here.
16066         * config/nds32/nds32-protos.h
16067         (nds32_check_isr_attrs_conflict): Declare.
16068         (nds32_construct_isr_vectors_information): Declare.
16069         (nds32_asm_file_start_for_isr): Declare.
16070         (nds32_asm_file_end_for_isr): Declare.
16072 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16073             Kito Cheng  <kito@0xlab.org>
16074             Monk Chiang  <sh.chiang04@gmail.com>
16076         * config.gcc (nds32*): Add new modules to extra_objs.
16077         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
16078         (nds32be-*-*): Likewise.
16079         * config/nds32/nds32-cost.c: New file.
16080         * config/nds32/nds32-fp-as-gp.c: New file.
16081         * config/nds32/nds32-intrinsic.c: New file.
16082         * config/nds32/nds32-isr.c: New file.
16083         * config/nds32/nds32-md-auxiliary.c: New file.
16084         * config/nds32/nds32-memory-manipulation.c: New file.
16085         * config/nds32/nds32-pipelines-auxiliary.c: New file.
16086         * config/nds32/nds32-predicates.c: New file.
16087         * config/nds32/t-nds32: New file.
16089 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16091         PR tree-optimization/61682
16092         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
16093         using cases and when one of the operands is equal to 1.
16095 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
16097         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
16098         ashr<mode>3): Correct mode of operands[2].
16099         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
16100         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
16101         Correct mode of operands[2].  Fix split condition.
16103 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
16105         * arm.md (arch): Add armv6_or_vfpv3.
16106         (arch_enabled): Add test for the above.
16107         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
16108         on VFP9.
16109         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
16111 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16113         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
16114         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
16115         HWI 1 and negate the unsigned value.
16116         * expmed.c (expand_sdiv_pow2): For modes wider than word always
16117         use AND instead of shift.
16118         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
16120 2014-07-03  Marek Polacek  <polacek@redhat.com>
16122         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
16123         (-fsanitize=float-divide-by-zero): Move to the table with
16124         -fsanitize=undefined suboptions.
16125         (-fsanitize=float-cast-overflow): Likewise.
16127 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
16129         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
16130         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
16131         endianness.
16133 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16135         * loop-invariant.c (struct invariant): Add a new member: eqno;
16136         (find_identical_invariants): Update eqno;
16137         (create_new_invariant): Init eqno;
16138         (get_inv_cost): Compute comp_cost with eqno;
16140 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
16142         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
16143         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
16144         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
16145         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
16146         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
16148 2014-07-02  Christian Bruel  <christian.bruel@st.com>
16150         PR target/29349
16151         PR target/53513
16152         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
16153         (make_preds_opaque): Delete.
16154         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
16155         (commit_mode_sets): New function.
16156         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
16157         Process all modes at once.
16158         * basic-block.h (pre_edge_lcm_avs): Declare.
16159         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
16160         Call clear_aux_for_edges. Fix comments.
16161         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
16162         (pre_edge_rev_lcm): Idem.
16163         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
16164         parameter.
16165         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
16166         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
16167         Idem.
16168         * config/i386/i386.c (x96_emit_mode_set): Idem.
16169         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
16170         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
16171         (fpscr_toggle) Disallow from delay slot.
16172         * target.def (emit_mode_set): Add prev_mode parameter.
16173         * doc/tm.texi: Regenerate.
16175 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16177         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
16178         variable i.
16180 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16182         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
16183         vtable_pointer_value_to_vtable): Constify.
16184         (contains_polymorphic_type_p): Declare.
16185         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
16186         vtable_pointer_value_to_vtable): Constify.
16187         (contains_polymorphic_type_p): New predicate.
16188         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
16189         polymorphic types.
16190         (ipa_set_ancestor_jf): Likewise.
16191         (detect_type_change): Return false in easy cases.
16192         (compute_complex_assign_jump_func): Require type to contain
16193         polymorphic type.
16194         (compute_known_type_jump_func): Likewise.
16196 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16198         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
16199         Remove.
16200         (type_in_anonymous_namespace_p): Constify argument.
16201         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
16202         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
16203         (main_odr_variant): New function.
16204         (hash_type_name): Make static; update assert; do not ICE on
16205         non-records.
16206         (types_same_for_odr): Bring here from tree.c; simplify and remove
16207         old structural comparing code that doesn't work for templates.
16208         (odr_hasher::equal): Update assert.
16209         (add_type_duplicate): Return true when bases should be computed;
16210         replace incomplete loader by complete; do not output duplicated
16211         warnings; do not ICE on non-records; set odr_violated flag.
16212         (get_odr_type): Be ready to replace incomplete type by complete
16213         one; work on ODR variants instead of main variants; reorder item
16214         in array so bases have still smaller indexes.
16215         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
16216         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
16218 2014-07-01  Cary Coutant  <ccoutant@google.com>
16220         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
16221         lookup.
16222         (resolve_addr_in_expr): When replacing the rtx in a location list
16223         entry, get a new address table entry.
16224         (dwarf2out_finish): Call index_location_lists even if there are no
16225         addr_index_table entries yet.
16227 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16229         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
16230         change for not being obvious.
16232 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16234         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
16235         unused argument.
16237 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16239         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16240         (vcagt_f64): Likewise.
16241         (vcale_f64): Likewise.
16242         (vcaled_f64): Likewise.
16243         (vcales_f32): Likewise.
16244         (vcalt_f64): Likewise.
16245         (vcaltd_f64): Likewise.
16246         (vcalts_f32): Likewise.
16248 2014-07-01  Marek Polacek  <polacek@redhat.com>
16250         * doc/invoke.texi: Document -Wint-conversion.
16252 2014-07-01  Marek Polacek  <polacek@redhat.com>
16254         PR c/58286
16255         * doc/invoke.texi: Document -Wincompatible-pointer-types.
16257 2014-07-01  Martin Liska  <mliska@suse.cz>
16259         IPA REF alias refactoring
16260         * cgraph.h (iterate_direct_aliases): New function.
16261         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
16262         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
16263         FOR_EACH_ALIAS added.
16264         (cgraph_for_node_and_aliases): Likewise.
16265         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
16266         * ipa-inline.c (reset_edge_caches): Likewise.
16267         (update_caller_keys): Likewise.
16268         * trans-mem.c (ipa_tm_execute): Likewise.
16269         *varpool.c (varpool_analyze_node): Likewise.
16270         (varpool_for_node_and_aliases): Likewise.
16271         * ipa-ref.h (first_alias): New function.
16272         (last_alias): Likewise.
16273         (has_aliases_p): Likewise.
16274         * ipa-ref.c (ipa_ref::remove_reference): Removal function
16275         is sensitive to IPA_REF_ALIASes.
16276         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
16277         are put at the beginning of the list.
16278         (symtab_node::iterate_direct_aliases): New function.
16280 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16282         Revert:
16283         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16284         type is complete.
16285         (write_ts_type_common_tree_pointers): Do not stream fields not set
16286         for incomplete types; do not stream duplicated fields for variants;
16287         sanity check that variant and type match.
16288         (write_ts_type_non_common_tree_pointers): Likewise.
16289         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16290         TYPE_SIZE whether type is complete.
16291         (lto_input_ts_type_common_tree_pointers): Do same changes as in
16292         write_ts_type_common_tree_pointers
16293         (lto_input_ts_type_non_common_tree_pointers): Likewise.
16295 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
16297         * var-tracking.c (add_stores): Return instead of asserting if old
16298         and new values for conditional store are the same.
16300 2014-06-30  Richard Henderson  <rth@redhat.com>
16302         PR rtl-opt/61608
16303         PR target/39284
16304         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
16305         the cfg if there were any changes.
16306         * passes.def: Revert move of peephole2 after reorder_blocks;
16307         move duplicate_computed_gotos before peephole2.
16309 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
16311         * except.c (emit_note_eh_region_end): New helper function.
16312         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
16313         emit EH_REGION_END note.
16314         * jump.c (cleanup_barriers): Do not split a call and its
16315         corresponding CALL_ARG_LOCATION note.
16317 2014-06-30  Jeff Law  <law@redhat.com>
16319         PR tree-optimization/61607
16320         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
16321         deeper into the SSA_NAME_VALUE chain.
16323 2014-06-30  Marek Polacek  <polacek@redhat.com>
16325         * convert.c (convert_to_integer): Don't instrument conversions if the
16326         function has no_sanitize_undefined attribute.
16327         * ubsan.c: Don't run the ubsan pass if the function has
16328         no_sanitize_undefined attribute.
16330 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
16332         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
16333         -fsanitize=undefined suboptions.
16335 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
16337         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
16338         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
16339         against bigendian and adjust indices.
16341 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
16343         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
16345 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16347         PR target/61633
16348         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
16349         Add alternative; make early clobber.  Adjust both split patterns
16350         to use operand 0 as the working register.
16352 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
16354         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
16355         as ira_object_id_map might be NULL, or 1.
16357 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16359         * loop-invariant.c (get_inv_cost): Handle register class.
16360         (gain_for_invariant): Check the register pressure of the inv
16361         and its overlapped register class, other than all.
16363 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
16365         * doc/invoke.texi (Optimize Options): Fix descriptions of
16366         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
16368 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
16370         * doc/extend.texi (Function Attributes): Update 'naked' attribute
16371         documentation.
16373 2014-06-29  Tobias Grosser <tobias@grosser.es>
16375         PR bootstrap/61650
16376         * graphite-isl-ast-to-gimple.c: Add missing guards.
16378 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
16380         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
16381         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
16382         * flag-types.h: Add new enum fgraphite_generator.
16383         * graphite-isl-ast-to-gimple.c: New.
16384         * graphite-isl-ast-to-gimple.h: New.
16385         * graphite.c (graphite_transform_loops): Add choice of Graphite
16386         code generator, which depends on flag_graphite_code_gen.
16388 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
16390         * graphite-dependences.c (subtract_commutative_associative_deps):
16391         Add NULL checking of the following variables: must_raw_no_source,
16392         may_raw_no_source, must_war_no_source, may_war_no_source,
16393         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
16394         must_war, may_war, must_waw, may_waw.
16396 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
16398         * graphite-clast-to-gimple.c: gloog is renamed to
16399         graphite_regenerate_ast_cloog.  gloog_error is renamed to
16400         graphite_regenerate_error.
16401         * graphite-clast-to-gimple.h: The definition of the struct
16402         bb_pbb_def is moved to graphite-htab.h.
16403         Add inclusion of the hash-table.h.
16404         * graphite-htab.h: The declaration of the function gloog is moved
16405         to graphite-clast-to-gimple.h and renamed to
16406         graphite_regenerate_ast_cloog.
16407         * graphite.c (graphite_transform_loops): gloog is renamed
16408         to graphite_regenerate_ast_cloog.
16410 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16412         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16413         type is complete.
16414         (write_ts_type_common_tree_pointers): Do not stream fields not set
16415         for incomplete types; do not stream duplicated fields for variants;
16416         sanity check that variant and type match.
16417         (write_ts_type_non_common_tree_pointers): Likewise.
16418         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16419         TYPE_SIZE whether type is complete.
16420         (lto_input_ts_type_common_tree_pointers): Do same changes as in
16421         write_ts_type_common_tree_pointers
16422         (lto_input_ts_type_non_common_tree_pointers): Likewise.
16424 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16426         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
16428 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16430         * tree-inline.c (remap_type_1): Do not duplicate fields
16431         that are shared in between type and its main variant.
16433 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16435         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
16436         of the type.
16437         (ipa_set_ancestor_jf) Likewise.
16438         (check_stmt_for_type_change): Check that we work on main variant.
16439         (detect_type_change): Look into main variant.
16440         (compute_known_type_jump_func): Check that main variant has BINFO.
16442 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16444         * ipa-devirt.c (set_type_binfo): New function.
16445         (add_type_duplicate): Use it.
16446         (get_odr_type): Sanity check that binfos points to main variants.
16447         (get_class_context): Be sure the context's outer_type is main variant.
16448         (contains_type_p): Walk main variant.
16449         (get_polymorphic_call_info_for_decl): Set outer_type to be
16450         main variant.
16451         (get_polymorphic_call_info): Likewise.
16452         (possible_polymorphic_call_targets): Sanity check that we operate
16453         on main variant.
16455 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16457         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16459 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16461         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
16462         accidental change due to wide-int branch merge.
16464 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16466         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
16467         compressed debug support.
16468         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
16469         * configure: Regenerate.
16470         * config.in: Regenerate.
16471         * common.opt (compressed_debug_sections): New enum.
16472         (gz, gz=): New options.
16473         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
16474         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
16475         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
16476         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
16477         LINK_COMPRESS_DEBUG_SPEC.
16478         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
16479         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
16480         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
16481         (Debugging Options): Document -gz[=type].
16483 2014-06-27  Martin Jambor  <mjambor@suse.cz>
16485         PR ipa/61160
16486         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
16487         args_to_skip, use those from node instead.  Copy args_to_skip and
16488         combined_args_to_skip from node to the new thunk.
16489         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
16490         (cgraph_create_virtual_clone): Moved computation of
16491         combined_args_to_skip...
16492         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
16494 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
16496         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
16497         redundant diagnostic machinary.
16499 2014-06-27  Richard Biener  <rguenther@suse.de>
16501         * tree-ssa-math-opts.c (bswap_replace): Fix
16502         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
16504 2014-06-27  Martin Liska  <mliska@suse.cz>
16506         * gimple.h (gimple_location_safe): New function introduced.
16507         * cgraphunit.c (walk_polymorphic_call_targets): Usage
16508         of gimple_location_safe replaces gimple_location.
16509         (gimple_fold_call): Likewise.
16510         * ipa-devirt.c (ipa_devirt): Likewise.
16511         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16512         * ipa.c (walk_polymorphic_call_targets): Likewise.
16513         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16515 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
16517         PR tree-optimization/57233
16518         PR tree-optimization/61299
16519         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
16520         functions.
16521         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
16522         would be lowered to scalar shifts, check if corresponding
16523         shifts and vector BIT_IOR_EXPR are supported and don't lower
16524         or lower just to narrower vector type in that case.
16525         * expmed.c (expand_shift_1): Fix up handling of vector
16526         shifts and rotates.
16528 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
16530         PR target/61586
16531         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
16533 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
16535         * doc/invoke.texi (-fsemantic-interposition): Document.
16536         * common.opt (fsemantic-interposition): New flag.
16537         * varasm.c (decl_replaceable_p): Use it.
16539 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16541         PR target/61542
16542         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
16543         extraction other than index 3.
16545 2014-06-26  Teresa Johnson  <tejohnson@google.com>
16547         * doc/invoke.texi: Fix typo.
16548         * dumpfile.c: Add support for documented -fdump-* options
16549         optimized/missed/note/optall.
16551 2014-06-26  Martin Jambor  <mjambor@suse.cz>
16553         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
16554         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
16555         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
16556         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
16557         * opts.c (default_options_optimization): Set
16558         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
16559         * doc/invoke.texi (allow-load-data-races)
16560         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
16561         (allow-store-data-races): Document the new default.
16563 2014-06-26  Martin Jambor  <mjambor@suse.cz>
16565         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
16566         renamed to ipa_impossible_devirt_target.  Fix typo.
16567         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
16568         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
16569         ipa_impossible_devirt_target.
16571 2014-06-26  Richard Biener  <rguenther@suse.de>
16573         PR tree-optimization/61607
16574         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
16575         explaining why we restrict copies on loop depth.
16576         * tree-ssa-dom.c (cprop_operand): Remove restriction on
16577         on loop depth.
16578         (record_equivalences_from_phis): Instead add it here.
16580 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
16582         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
16583         (LTO_WRAPPER_OBJS): New variable.
16584         (lto-wrapper$(exeext)): Use it.
16585         * collect2.c: Include "collect-utils.h".
16586         (verbose, debug): Remove variables.
16587         (at_file_supplied): No longer static.
16588         (tool_name): New variable.
16589         (do_wait, fork_execute, maybe_unlink): Don't declare.
16590         (tool_cleanup): No longer static.
16591         (notice): Remove function.
16592         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
16593         fork_execute calls.
16594         (collect_wait, do_wait, collect_execute): Remove functions.
16595         (maybe_unlink): No longer static.
16596         * collect2.h (verbose, debug): Don't declare.
16597         (at_file_supplied): Declare.
16598         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
16599         changed.
16600         (collect_execute): Replace with implementation from collect2, plus a
16601         new arg use_atfile.  All callers changed.
16602         (collect_wait): Replace with implementation from collect2.
16603         (maybe_unlink_file): Remove function.
16604         (fork_execute): Replace with implementation from collect2, plus a
16605         new arg use_atfile.  All callers changed.
16606         (do_wait): Add call to utils_cleanup to the error path.
16607         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
16608         (tool_cleanup): Adjust declarations.
16609         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
16610         * tlink.c: Include "collect-utils.h".
16611         (tlink_execute): New arg use_atfile.  All callers changed.
16612         (tlink_init, tlink_execute): Remove declarations.
16614         * collect-utils.c (save_temps): New variable.
16615         (do_wait): Use it instead of debug.  Use fatal_error.
16616         * collect-utils.h (save_temps): Declare.
16617         * collect2.c (verbose): Rename from vflag.  All uses changed.
16618         (tool_cleanup): New function, copied from collect_atexit.
16619         (collect_atexit, handler): Just call it.
16620         * collect2.h (verbose): Declaration renamed from vflag.
16621         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
16622         debug.
16624         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
16625         (lto-wrapper$(exeext)): Link with collect-utils.o.
16626         * collect-utils.c: New file.
16627         * collect-utils.h: New file.
16628         * lto-wrapper.c: Include "collect-utils.h".
16629         (args_name): Delete variable.
16630         (tool_name): New variable.
16631         (tool_cleanup): New function.
16632         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
16633         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
16634         (fork_execute): Remove functions.
16636 2014-06-26  Nick Clifton  <nickc@redhat.com>
16638         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
16640         * doc/extend.texi (Function Attributes): Fix typo in description
16641         of RX vector attribute.
16643 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
16645         * config.gcc (supported_defaults): Error when passing either
16646         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
16648 2014-06-26  Richard Biener  <rguenther@suse.de>
16650         * tree-ssa-dom.c (cprop_operand): Remove restriction on
16651         propagating volatile pointers.
16653 2014-06-26  Richard Biener  <rguenther@suse.de>
16655         PR tree-optimization/61607
16656         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
16657         loop if we redirected its latch edge.
16658         (thread_block_1): Do not cancel loops prematurely.
16660 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
16662         * toplev.c (backend_init_target): Move init_emit_regs and
16663         init_regs to...
16664         (backend_init) ... here; skip ira_init_once and backend_init_target.
16665         (target_reinit) ... and here; clear
16666         this_target_rtl->lang_dependent_initialized.
16667         (lang_dependent_init_target): Clear
16668         this_target_rtl->lang_dependent_initialized;
16669         break out rtl initialization to ...
16670         (initialize_rtl): ... here; call also backend_init_target
16671         and ira_init_once.
16672         * toplev.h (initialize_rtl): New function.
16673         * function.c: Include toplev.h
16674         (init_function_start): Call initialize_rtl.
16675         * rtl.h (target_rtl): Add target_specific_initialized,
16676         lang_dependent_initialized.
16678 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
16679             Jakub Jelinek  <jakub@redhat.com>
16681         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
16683 2014-06-25  Tom de Vries  <tom@codesourcery.com>
16685         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
16687 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16689         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
16690         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
16691         Issue a strict overflow warning if appropriate.
16693 2014-06-25  Martin Liska  <mliska@suse.cz>
16695         IPA REF refactoring
16696         * Makefile.in: Removed header file (ipa-ref-inline.h).
16697         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
16698         called.
16699         (cgraph_speculative_call_info): Likewise.
16700         (cgraph_for_node_thunks_and_aliases): Likewise.
16701         (cgraph_for_node_and_aliases): Likewise.
16702         (verify_cgraph_node): Likewise.
16703         * cgraph.h: Batch of IPA REF functions become member functions of
16704         symtab_node: add_reference, maybe_add_reference, clone_references,
16705         clone_referring, clone_reference, find_reference,
16706         remove_stmt_references, remove_all_references,
16707         remove_all_referring, dump_references, dump_referring,
16708         has_alias_p, iterate_reference, iterate_referring.
16709         * cgraphbuild.c (record_reference): New IPA REF function used.
16710         (record_type_list): Likewise.
16711         (record_eh_tables): Likewise.
16712         (mark_address): Likewise.
16713         (mark_load): Likewise.
16714         (mark_store): Likewise.
16715         (pass_build_cgraph_edges): Likewise.
16716         (rebuild_cgraph_edge): Likewise.
16717         (cgraph_rebuild_references): Likewise.
16718         (pass_remove_cgraph_callee_edges): Likewise.
16719         * cgraphclones.c (cgraph_clone_node): Likewise.
16720         (cgraph_create_virtual_clone): Likewise.
16721         (cgraph_materialize_clone): Likewise.
16722         (cgraph_materialize_all_clones): Likewise.
16723         * cgraphunit.c (cgraph_reset_node): Likewise.
16724         (cgraph_reset_node): Likewise.
16725         (analyze_function): Likewise.
16726         (assemble_thunks_and_aliases): Likewise.
16727         (expand_function): Likewise.
16728         * ipa-comdats.c (propagate_comdat_group): Likewise.
16729         (enqueue_references): Likewise.
16730         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
16731         (create_specialized_node): Likewise.
16732         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
16733         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
16734         * ipa-inline.c (reset_edge_caches): Likewise.
16735         (update_caller_keys): Likewise.
16736         (execute): Likewise.
16737         * ipa-prop.c (remove_described_reference): Likewise.
16738         (propagate_controlled_uses): Likewise.
16739         (ipa_edge_duplication_hook): Likewise.
16740         (ipa_modify_call_arguments): Likewise.
16741         * ipa-pure-const.c (propagate_pure_const): Likewise.
16742         * ipa-ref-inline.h: Header file removed, functions moved
16743         to symtab_node class.
16744         * ipa-ref.c (remove_reference): New class member function.
16745         (cannot_lead_to_return): New class member function.
16746         (referring_ref_list): Likewise.
16747         (referred_ref_list): Likewise.
16748         Rest of functions moved to symtab_node class.
16749         * ipa-ref.h: New member functions remove_reference,
16750         cannot_lead_to_return, referring_ref_list, referred_ref_list added
16751         to ipa_ref class.
16752         ipa_ref_list class has new member functions: first_reference,
16753         first_referring, clear, nreferences.
16754         * ipa-reference.c (analyze_function): New IPA REF function used.
16755         (write_node_summary_p): Likewise.
16756         (ipa_reference_write_optimization_summary): Likewise.
16757         * ipa-split.c (split_function): Likewise.
16758         * ipa-utils.c (ipa_reverse_postorder): Likewise.
16759         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
16760         (function_and_variable_visibility): Likewise.
16761         * ipa.c (has_addr_references_p): Likewise.
16762         (process_references): Argument type changed.
16763         (symtab_remove_unreachable_nodes): New IPA REF function used.
16764         (process_references): Likewise.
16765         (set_writeonly_bit): Likewise.
16766         * lto-cgraph.c: Implementation of new symtab_node member functions
16767         that uses new IPA REF functions.
16768         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
16769         function used.
16770         * lto-streamer-out.c (output_symbol_p): Likewise.
16771         * lto-streamer.h (referenced_from_this_partition_p): Argument type
16772         changed.
16773         * symtab.c: Implementation of new IPA REF API.
16774         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
16775         (ipa_tm_create_version): Likewise.
16776         (ipa_tm_execute): Likewise.
16777         * tree-emutls.c (gen_emutls_addr): Likewise.
16778         * tree-inline.c (copy_bb): Likewise.
16779         (delete_unreachable_blocks_update_callgraph): Likewise.
16780         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
16781         (varpool_for_node_and_aliases): Likewise.
16783 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
16785         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
16787 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
16789         PR bootstrap/61598
16790         * fold-const.c (fold_checksum_tree): Use a hash_table of const
16791         tree_node * instead of tree_node *.
16792         (fold): Adjust.
16793         (print_fold_checksum): Likewise.
16794         (fold_check_failed): Likewise.
16795         (debug_fold_checksum): Likewise.
16796         (fold_build1_stat_loc): Likewise.
16797         (fold_build2_stat_loc): Likewise.
16798         (fold_build3_stat_loc): Likewise.
16799         (fold_build_call_array_loc): Likewise.
16801 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
16803         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
16804         implementation with call to...
16805         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
16806         function.
16807         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
16808         Declare.
16810 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
16812         PR tree-optimization/57742
16813         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
16814         after replacing the statement.
16816 2014-06-25  Nick Clifton  <nickc@redhat.com>
16818         * config/v850/v850.c (GHS_default_section_names): Change to const
16819         char * type.
16820         (GHS_current_section_names): Likewise.
16821         (v850_insert_attributes): Do not build strings, just assign the
16822         names directly.  Change the type of 'chosen_section' to const
16823         char*.
16824         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
16825         directly to the array entry.
16826         * config/v850/v850.h (GHS_default_section_names): Change to const
16827         char * type.
16828         (GHS_current_section_names): Likewise.
16830 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16832         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
16833         (LANG_HOOKS_DECLS): Add it.
16834         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
16835         has correct type.
16836         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
16837         * langhooks.h (struct lang_hooks_for_decls): Add
16838         omp_clause_linear_ctor hook.
16839         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
16840         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
16841         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
16842         combined simd loop use omp_clause_linear_ctor hook.
16844 2014-06-24  Cong Hou  <congh@google.com>
16846         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
16847         pattern recognition.
16848         (type_conversion_p): PROMOTION is true if it's a type promotion
16849         conversion, and false otherwise.  Return true if the given expression
16850         is a type conversion one.
16851         * tree-vectorizer.h: Adjust the number of patterns.
16852         * tree.def: Add SAD_EXPR.
16853         * optabs.def: Add sad_optab.
16854         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
16855         * expr.c (expand_expr_real_2): Likewise.
16856         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16857         * gimple.c (get_gimple_rhs_num_ops): Likewise.
16858         * optabs.c (optab_for_tree_code): Likewise.
16859         * tree-cfg.c (estimate_operator_cost): Likewise.
16860         * tree-ssa-operands.c (get_expr_operands): Likewise.
16861         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
16862         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
16863         * doc/generic.texi: Add document for SAD_EXPR.
16864         * doc/md.texi: Add document for ssad and usad.
16866 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16868         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
16869         qualification in cast.
16871 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
16873         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
16874         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
16875         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
16876         (tree_function_decl): ... here.
16877         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
16878         streaming of vindex to ...
16879         (write_ts_function_decl_tree_pointers): ... here.
16880         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
16881         Do not stream DECL_VINDEX.
16882         (lto_input_ts_function_decl_tree_pointers): Stream it here.
16884 2014-06-24  Catherine Moore  <clm@codesourcery.com>
16885             Sandra Loosemore  <sandra@codesourcery.com>
16887         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
16888         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
16889         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
16891 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
16893         * doc/invoke.texi (Warning Options): Remove duplicated
16894         -Wmaybe-uninitialized.
16896 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
16898         PR tree-optimization/57742
16899         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
16900         (handle_builtin_malloc, handle_builtin_memset): New functions.
16901         (strlen_optimize_stmt): Call them.
16902         * passes.def: Move strlen after loop+dom but before vrp.
16904 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16906         PR target/61570
16907         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
16908         model family 6 CPU with has_longmode never use a CPU without
16909         64-bit support.
16911 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16913         PR target/61570
16914         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
16915         the last change.
16917 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16919         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
16920         * dominance.c (iterate_fix_dominators): Use hash_map instead of
16921         pointer_map.
16922         * hash-map.h: New file.
16923         * ipa-comdats.c: Use hash_map instead of pointer_map.
16924         * ipa.c: Likewise.
16925         * lto-section-out.c: Adjust.
16926         * lto-streamer.h: Replace pointer_map with hash_map.
16927         * symtab.c (verify_symtab): Likewise.
16928         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
16929         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
16930         * tree-streamer.h: Likewise.
16931         * tree-streamer.c: Adjust.
16932         * pointer-set.h: Remove pointer_map.
16934 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16936         * hash-table.h: Add a template arg to choose between storing values
16937         and storing pointers to values, and then provide partial
16938         specializations for both.
16939         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
16940         should store, not the type values should point to.
16941         * tree-into-ssa.c (var_info_hasher): Likewise.
16942         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16943         * tree-complex.c: Adjust.
16944         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
16945         table instead of int_tree_map *.
16946         * tree-parloops.c: Adjust.
16947         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
16948         type is being stored.
16949         * tree-vectorizer.c: Adjust.
16951 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16953         * hash-table.h: Remove a layer of indirection from hash_table so that
16954         it contains the hash table's data instead of a pointer to the data.
16955         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
16956         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
16957         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
16958         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
16959         fold-const.c, gcse.c, ggc-common.c,
16960         gimple-ssa-strength-reduction.c, gimplify.c,
16961         graphite-clast-to-gimple.c, graphite-dependences.c,
16962         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
16963         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16964         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
16965         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
16966         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
16967         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
16968         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
16969         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
16970         tree-ssa-live.c, tree-ssa-loop-im.c,
16971         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16972         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
16973         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16974         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
16975         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
16976         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
16977         vtable-verify.c, vtable-verify.h: Adjust.
16979 2014-06-24  Richard Biener  <rguenther@suse.de>
16981         PR tree-optimization/61572
16982         * tree-ssa-sink.c (statement_sink_location): Do not sink
16983         loads from hard registers.
16985 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16987         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
16988         not mentioned in clauses use private clause if the iterator is
16989         declared in #pragma omp for simd, and when adding lastprivate
16990         instead, add it to the outer #pragma omp for too.  Diagnose
16991         if the variable is private in outer context.  For simd collapse > 1
16992         loops, replace all iterators with temporaries.
16993         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
16994         same even in collapse > 1 loops.
16996         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
16997         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
16998         non-NULL.
16999         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
17000         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
17001         non-NULL.
17002         (gimplify_adjust_omp_clauses): Likewise.
17003         * omp-low.c (lower_rec_simd_input_clauses,
17004         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
17005         safelen the same as safelen(1).
17006         * tree-nested.c (convert_nonlocal_omp_clauses,
17007         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
17008         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
17009         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
17010         Fixup handling of GIMPLE_OMP_TARGET.
17011         (convert_tramp_reference_stmt, convert_gimple_call): Handle
17012         GIMPLE_OMP_TARGET.
17014 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
17016         PR tree-optimization/61554
17017         * tree-ssa-propagate.c: Include "bitmap.h".
17018         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
17019         properly update constructor/destructor.
17020         (substitute_and_fold_dom_walker::before_dom_children):
17021         Remove call to gimple_purge_dead_eh_edges, add bb->index to
17022         need_eh_cleaup instead.
17023         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
17024         need_eh_cleanup.
17026 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
17028         * varpool.c (dump_varpool_node): Dump used_by_single_function.
17029         * tree-pass.h (make_pass_ipa_single_use): New pass.
17030         * cgraph.h (used_by_single_function): New flag.
17031         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
17032         Stream it.
17033         * passes.def (pass_ipa_single_use): Scedule.
17034         * ipa.c (BOTTOM): New macro.
17035         (meet): New function
17036         (propagate_single_user): New function.
17037         (ipa_single_use): New function.
17038         (pass_data_ipa_single_use): New pass.
17039         (pass_ipa_single_use): New pass.
17040         (pass_ipa_single_use::gate): New gate.
17041         (make_pass_ipa_single_use): New function.
17043 2014-06-23  Kai Tietz  <ktietz@redhat.com>
17045         PR target/39284
17046         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
17047         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
17049 2014-06-23  Richard Biener  <rguenther@suse.de>
17051         * tree-ssa-loop.c (gate_loop): New function.
17052         (pass_tree_loop::gate): Call it.
17053         (pass_data_tree_no_loop, pass_tree_no_loop,
17054         make_pass_tree_no_loop): New.
17055         * tree-vectorizer.c: Include tree-scalar-evolution.c
17056         (pass_slp_vectorize::execute): Initialize loops and SCEV if
17057         required.
17058         (pass_slp_vectorize::clone): New method.
17059         * timevar.def (TV_TREE_NOLOOP): New.
17060         * tree-pass.h (make_pass_tree_no_loop): Declare.
17061         * passes.def (pass_tree_no_loop): New pass group with
17062         SLP vectorizer.
17064 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17066         PR target/61570
17067         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
17068         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
17070 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17072         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
17073         "yes" where needed.
17075 2014-06-23  Alan Modra  <amodra@gmail.com>
17077         PR bootstrap/61583
17078         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
17079         to zero on debug statements.
17081 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17083         PR target/60825
17084         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
17085         Ignore third operand if present by marking qualifier_internal.
17087         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
17089         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
17090         vector extension.
17091         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
17092         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
17093         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
17094         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
17095         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
17096         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
17097         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
17098         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
17099         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
17100         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
17101         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
17102         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
17103         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
17104         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
17105         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
17106         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
17107         logic in GCC vector extensions
17109         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
17110         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
17111         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
17112         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
17113         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
17114         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
17115         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
17116         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
17117         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
17118         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
17120         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
17122         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
17123         extensions.
17125         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
17126         (vget_low_s64): Use __GET_LOW macro.
17127         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
17128         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
17129         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
17130         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
17131         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
17133         (vcombine_s64): Use GCC vector extensions; remove cast.
17134         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
17135         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
17136         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
17137         Fix type signature; remove cast.
17139 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17141         PR target/60825
17142         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
17143         V1DFmode.
17144         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
17145         add V1DFmode
17146         (BUILTIN_VD1): New.
17147         (BUILTIN_VD_RE): Remove.
17148         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
17149         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
17150         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
17151         variant but not df.
17152         (vreinterpretv1df*, vreinterpret*v1df): New.
17153         (vreinterpretdf*, vreinterpret*df): Remove.
17154         * config/aarch64/aarch64-simd.md (aarch64_create,
17155         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
17156         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
17157         (VD1): New.
17158         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
17159         (vcreate_f64): Remove cast, use v1df builtin.
17160         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
17161         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
17162         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
17163         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
17164         vmov_n_f64, vst1_f64): Use gcc vector extensions.
17165         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
17166         add range check using __builtin_aarch64_im_lane_boundsi.
17167         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
17168         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
17169         type signature, use gcc vector extensions.
17170         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
17171         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
17172         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
17173         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
17174         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
17175         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
17176         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
17177         vreinterpret_u64_f64): Use v1df builtin not df.
17179 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17181         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
17182         vector registers.
17184 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
17186         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
17187         priority directly.
17189 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17191         * loop-invariant.c (pre_check_invariant_p): New function.
17192         (find_invariant_insn): Call pre_check_invariant_p.
17194 2014-06-22  Richard Henderson  <rth@redhat.com>
17196         PR target/61565
17197         * compare-elim.c (struct comparison): Add eh_note.
17198         (find_comparison_dom_walker::before_dom_children): Don't eliminate
17199         a redundant comparison in a different EH region.  Purge EH edges if
17200         necessary.
17202 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17204         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
17205         (var_shift): Use it.
17206         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
17207         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17208         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17209         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17210         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17211         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
17212         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
17213         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
17214         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
17215         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
17216         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
17217         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
17218         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
17219         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
17220         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
17221         *rotldi3_internal15be): Use the new attribute.  Merge register and
17222         integer alternatives.
17224 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17226         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
17227         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
17228         split, *ashrdi3_internal3 and split): Delete, merge into...
17229         (ashr<mode>3): New expander.
17230         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
17231         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
17233 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17235         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
17236         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
17237         *rotldi3_internal3 and split): Delete, merge into...
17238         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
17239         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
17240         Use "rotlw" extended mnemonic.
17242 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17244         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17245         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17246         and split, *ashldi3_internal3 and split): Delete, merge into...
17247         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17248         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
17250 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17252         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17253         (lshrsi3, two anonymous define_insns and define_splits,
17254         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17255         *lshrdi3_internal3 and split): Delete, merge into...
17256         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17257         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
17259 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17261         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
17262         Remove "O" alternative.
17264 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
17266         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
17267         (mips_move_from_gpr_cost): Likewise.
17268         (mips_register_move_cost): Update accordingly.
17269         (mips_secondary_reload_class): Remove name of in_p.
17271 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
17273         PR target/61503
17274         * config/i386/i386.md (x86_64_shrd, x86_shrd,
17275         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
17277 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17279         * config/nios2/nios2.c: Include "builtins.h".
17281 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17283         * cgraph.h (tls_model_names): New variable.
17284         * print-tree.c (print_node): Simplify.
17285         * varpool.c (tls_model_names): New variable.
17286         (dump_varpool_node): Output tls model.
17288 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17290         * ipa-visibility.c (function_and_variable_visibility): Disable
17291         temporarily local aliases for some targets.
17293 2014-06-20  Marek Polacek  <polacek@redhat.com>
17295         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
17296         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
17297         into SANITIZE_UNDEFINED.
17298         * doc/invoke.texi: Describe -fsanitize=bounds.
17299         * gimplify.c (gimplify_call_expr): Add gimplification of internal
17300         functions created in the FEs.
17301         * internal-fn.c: Move "internal-fn.h" after "tree.h".
17302         (expand_UBSAN_BOUNDS): New function.
17303         * internal-fn.def (UBSAN_BOUNDS): New internal function.
17304         * internal-fn.h: Don't define internal functions here.
17305         * opts.c (common_handle_option): Add -fsanitize=bounds.
17306         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
17307         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
17308         * tree-core.h: Define internal functions here.
17309         (struct tree_base): Add ifn field.
17310         * tree-pretty-print.c: Include "internal-fn.h".
17311         (dump_generic_node): Handle functions without CALL_EXPR_FN.
17312         * tree.c (get_callee_fndecl): Likewise.
17313         (build_call_expr_internal_loc): New function.
17314         * tree.def (CALL_EXPR): Update description.
17315         * tree.h (CALL_EXPR_IFN): Define.
17316         (build_call_expr_internal_loc): Declare.
17317         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
17318         types.
17319         (ubsan_type_descriptor): Change bool parameter to enum
17320         ubsan_print_style.  Adjust the code.  Add handling of
17321         UBSAN_PRINT_ARRAY.
17322         (ubsan_expand_bounds_ifn): New function.
17323         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
17324         (ubsan_build_overflow_builtin): Likewise.
17325         (instrument_bool_enum_load): Likewise.
17326         (ubsan_instrument_float_cast): Likewise.
17327         * ubsan.h (enum ubsan_print_style): New enum.
17328         (ubsan_expand_bounds_ifn): Declare.
17329         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
17331 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
17333         * config/rs6000/rs6000.md: Append `DONE' to preparation
17334         statements of `bswap' pattern splitters.
17336 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17338         * target.def (call_fusage_contains_non_callee_clobbers): Update
17339         definition.
17340         * doc/tm.texi: Regenerate.
17342 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
17343             Max Ostapenko  <m.ostapenko@partner.samsung.com>
17345         PR sanitizer/61547
17346         * asan.c (instrument_strlen_call): Fixed instrumentation of
17347         trailing byte.
17349 2014-06-20  Martin Jambor  <mjambor@suse.cz>
17351         PR ipa/61540
17352         * ipa-prop.c (impossible_devirt_target): New function.
17353         (try_make_edge_direct_virtual_call): Use it, also instead of
17354         asserting.
17356 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
17357             Max Ostapenko  <m.ostapenko@partner.samsung.com>
17359         PR sanitizer/61530
17360         * asan.c (build_check_stmt): Add condition.
17362 2014-06-20  Martin Jambor  <mjambor@suse.cz>
17364         PR ipa/61211
17365         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
17366         expanded clones.
17368 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17370         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
17371         Update comments.
17372         (VCONQ): Make comment more helpful.
17373         (VCON): Delete.
17374         * config/aarch64/aarch64-simd.md
17375         (aarch64_sqdmulh_lane<mode>):
17376         Use VCOND for operands 2.  Update lane checking and flipping logic.
17377         (aarch64_sqrdmulh_lane<mode>): Likewise.
17378         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
17379         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
17380         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
17381         attribute of operand 3 to VCOND.
17382         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
17383         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
17384         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
17385         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
17386         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
17387         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
17388         define_insn.
17389         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
17390         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
17391         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
17392         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
17393         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
17394         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
17395         operand to VCOND.  Update lane flipping and bounds checking logic.
17396         (aarch64_sqdmlal2_lane<mode>): Likewise.
17397         (aarch64_sqdmlsl_lane<mode>): Likewise.
17398         (aarch64_sqdmull_lane<mode>): Likewise.
17399         (aarch64_sqdmull2_lane<mode>): Likewise.
17400         (aarch64_sqdmlal_laneq<mode>):
17401         Replace VCON usage with VCONQ.
17402         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
17403         (aarch64_sqdmlal2_laneq<mode>): Emit
17404         aarch64_sqdmlal2_laneq<mode>_internal insn.
17405         Replace VCON with VCONQ.
17406         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
17407         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17408         (aarch64_sqdmull_laneq<mode>): Emit
17409         aarch64_sqdmull_laneq<mode>_internal insn.
17410         Replace VCON with VCONQ.
17411         (aarch64_sqdmull2_laneq<mode>): Emit
17412         aarch64_sqdmull2_laneq<mode>_internal insn.
17413         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
17414         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
17415         of 3rd argument to int16x4_t.
17416         (vqdmlalh_lane_s16): Likewise.
17417         (vqdmlslh_lane_s16): Likewise.
17418         (vqdmull_high_lane_s16): Likewise.
17419         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
17420         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
17421         (vqdmlsl_lane_s16): Likewise.
17422         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
17423         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
17424         (vqdmlals_lane_s32): Likewise.
17425         (vqdmlsls_lane_s32): Likewise.
17426         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
17427         (vqdmulls_lane_s32): Likewise.
17428         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
17429         (vqdmlsl_lane_s32): Likewise.
17430         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
17431         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
17432         (vqrdmulhh_lane_s16): Likewise.
17433         (vqdmlsl_high_lane_s16): Likewise.
17434         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
17435         (vqdmlsl_high_lane_s32): Likewise.
17436         (vqrdmulhs_lane_s32): Likewise.
17438 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17440         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
17441         get_call_reg_set_usage.
17443 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17445         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
17446         it contains all call_used_regs.
17448 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17450         * final.c (collect_fn_hard_reg_usage): Add and use variable
17451         function_used_regs.
17453 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17455         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
17456         (set_init_priority, get_init_priority, set_fini_priority,
17457         get_fini_priority): New methods.
17458         * tree.c (init_priority_for_decl): Remove.
17459         (init_ttree): Do not initialize init priority.
17460         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
17461         (decl_priority_info): Remove.
17462         (decl_init_priority_insert): Rewrite.
17463         (decl_fini_priority_insert): Rewrite.
17464         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
17465         tree_priority_map_marked_p): Remove.
17466         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
17467         * lto-streamer-out.c (hash_tree): Do not hash priorities.
17468         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
17469         not output priorities.
17470         (pack_ts_function_decl_value_fields): Likewise.
17471         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17472         not input priorities.
17473         (unpack_ts_function_decl_value_fields): Likewise.
17474         * symtab.c (symbol_priority_map): Declare.
17475         (init_priority_hash): Declare.
17476         (symtab_unregister_node): Unregister from priority hash, too.
17477         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
17478         New methods.
17479         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
17480         (symbol_priority_info): New function.
17481         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
17482         New methods.
17483         * tree-core.h (tree_priority_map): Remove.
17485 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
17487         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
17488         0xff to uint64_t before shifting it up.
17490 2014-06-20  Julian Brown  <julian@codesourcery.com>
17491             Chung-Lin Tang  <cltang@codesourcery.com>
17493         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
17494         TARGET_THUMB1_ONLY. Add comments.
17496 2014-06-19  Tom de Vries  <tom@codesourcery.com>
17498         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
17499         return type to void.
17500         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
17502 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17504         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
17505         as "move", from depends_on.
17507 2014-06-19  Terry Guo  <terry.guo@arm.com>
17509         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
17510         stage.
17512 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
17514         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
17515         Remove cr5.
17516         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
17518 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17520         PR target/61550
17521         * config/sh/sh.c (prepare_move_operands): Don't process TLS
17522         addresses here if reload in progress or completed.
17524 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17526         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
17527         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
17528         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
17529         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
17530         (mips_register_priority): New function that implements the target
17531         hook TARGET_REGISTER_PRIORITY.
17532         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
17533         (mips_lra_p): Likewise for TARGET_LRA_P.
17534         (TARGET_REGISTER_PRIORITY): Define macro.
17535         (TARGET_SPILL_CLASS): Likewise.
17536         (TARGET_LRA_P): Likewise.
17537         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
17538         classes.
17539         (REG_CLASS_NAMES): Likewise.
17540         (REG_CLASS_CONTENTS): Likewise.
17541         (BASE_REG_CLASS): Use M16_SP_REGS.
17542         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
17543         New set attribute to enable alternatives depending on the register
17544         allocator used.
17545         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
17546         (*lea64): Disable pattern for MIPS16.
17547         * config/mips/mips.opt (mlra): New option.
17549 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17551         * lra-constraints.c (base_to_reg): New function.
17552         (process_address): Use new function.
17554 2014-06-18  Tom de Vries  <tom@codesourcery.com>
17556         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
17557         * config/aarch64/aarch64.c
17558         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
17559         (aarch64_emit_call_insn): New function.
17560         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
17561         of emit_call_insn.
17562         * config/aarch64/aarch64.md (define_expand "call_internal")
17563         (define_expand "call_value_internal", define_expand "sibcall_internal")
17564         (define_expand "sibcall_value_internal"): New.
17565         (define_expand "call", define_expand "call_value")
17566         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
17567         expand variant and aarch64_emit_call_insn.
17569 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
17570             Tom de Vries  <tom@codesourcery.com>
17572         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
17573         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17574         Redefine to true.
17575         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
17576         clobbers to CALL_INSN_FUNCTION_USAGE.
17577         (define_expand "sibcall_internal")
17578         (define_expand "sibcall_value_internal"): New.
17579         (define_expand "call", define_expand "call_value"): Add argument to
17580         arm_emit_call_insn.
17581         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
17582         (define_expand "sibcall_value"): Use sibcall_value_internal and
17583         arm_emit_call_insn.
17585 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17587         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
17589 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17591         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
17592         __udivmoddi4.
17594 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17596         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
17597         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
17598         annotations. Fix DWARF information.
17600 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17602         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
17603         __udivmoddi4, and fixups for negative operands.
17605 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17607         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
17609 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17611         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
17612         to __udivmoddi4.
17614 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17616         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
17617         manipulation.
17619 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17621         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
17622         describing register usage on function entry and exit.
17624 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17626         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
17627         (__aeabi_ldivmod): Fix whitespace.
17629 2014-06-18  Andreas Schwab  <schwab@suse.de>
17631         * doc/md.texi (Standard Names): Use @itemx for grouped items.
17632         Remove blank line after @item.
17634 2014-06-18  Richard Henderson  <rth@redhat.com>
17636         PR target/61545
17637         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
17639 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17641         * config/arm/arm.c (neon_vector_mem_operand): Allow register
17642         POST_MODIFY for neon loads and stores.
17643         (arm_print_operand): Output post-index register for neon loads and
17644         stores.
17646 2014-06-18  Richard Biener  <rguenther@suse.de>
17648         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
17650 2014-06-18  Richard Biener  <rguenther@suse.de>
17652         * tree-pass.h (make_pass_dce_loop): Remove.
17653         * passes.def: Replace pass_dce_loop with pass_dce.
17654         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
17655         changed free niter estimates and reset the scev cache.
17656         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
17657         make_pass_dce_loop): Remove.
17658         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
17659         (fini_copy_prop): Return whether something changed.  Always
17660         let substitute_and_fold perform DCE and free niter estimates
17661         and reset the scev cache if so.
17662         (execute_copy_prop): If sth changed schedule cleanup-cfg.
17663         (pass_data_copy_prop): Do not unconditionally schedule
17664         cleanup-cfg or update-ssa.
17666 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
17668         PR tree-optimization/61518
17669         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17670         reduction var is used in reduction stmt or phi-function only.
17672 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17674         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
17676 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17678         PR tree-optimization/61517
17679         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
17680         whose rhs's first tree is the source expression instead of the
17681         expression itself.
17682         (find_bswap_or_nop): Likewise.
17683         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
17684         gimple stmt whose rhs's first tree is the source. In the memory source
17685         case, move the stmt to be replaced close to one of the original load to
17686         avoid the problem of a store between the load and the stmt's original
17687         location.
17688         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
17689         signature.
17691 2014-06-18  Andreas Schwab  <schwab@suse.de>
17693         PR rtl-optimization/54555
17694         * postreload.c (move2add_use_add2_insn): Substitute
17695         STRICT_LOW_PART only if it is cheaper.
17697 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
17699         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
17700         Do not use unspec as call operand.  Use memory_operand instead of
17701         memory_nox32_operand and add "m" operand constraint.  Disable
17702         pattern for TARGET_X32.
17703         (*sibcall_pop_memory): Ditto.
17704         (*sibcall_value_memory): Ditto.
17705         (*sibcall_value_pop_memory): Ditto.
17706         (sibcall peepholes): Merge SImode and DImode patterns using
17707         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
17708         Disable pattern for TARGET_X32.  Check if eliminated register is
17709         really dead after call insn.  Generate call RTX without unspec operand.
17710         (sibcall_value peepholes): Ditto.
17711         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
17712         instead of memory_nox32_operand.  Check if eliminated register is
17713         really dead after call insn. Generate call RTX without unspec operand.
17714         (sibcall_value_pop peepholes): Ditto.
17715         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
17717 2014-06-18  Terry Guo  <terry.guo@arm.com>
17719         PR target/61544
17720         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
17721         reach the head.
17723 2014-06-18  Olivier Hainque  <hainque@adacore.com>
17725         * tree-core.h (tree_block): Add an "end_locus" field, allowing
17726         memorization of the end of block source location.
17727         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
17728         * gimplify.c (gimplify_bind_expr): Propagate the block start and
17729         end source location info we have on the block entry/exit code we
17730         generate.
17732 2014-06-18  Richard Biener  <rguenther@suse.de>
17734         * common.opt (fssa-phiopt): New option.
17735         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
17736         but not with -Og.
17737         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
17738         * doc/invoke.texi (-fssa-phiopt): Document.
17740 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17742         * genattrtab.c (n_bypassed): New variable.
17743         (process_bypasses): Initialise n_bypassed.
17744         Count number of bypassed reservations.
17745         (make_automaton_attrs): Allocate space for bypassed reservations
17746         rather than number of bypasses.
17748 2014-06-18  Richard Biener  <rguenther@suse.de>
17750         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
17751         we propagated anything.
17752         (substitute_and_fold_dom_walker::before_dom_children): Something
17753         changed if we propagated into PHI arguments.
17754         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
17755         we removed a stmt.
17757 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
17759         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
17760         vector case.
17761         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
17762         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
17763         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
17764         Introduces alternative way of loads group permutaions.
17765         (vect_transform_grouped_load): Try alternative way of permutations.
17767 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
17769         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
17770         changed in ORT_TARGET region, don't jump to do_outer.
17771         (struct gimplify_adjust_omp_clauses_data): New type.
17772         (gimplify_adjust_omp_clauses_1): Adjust for data being
17773         a struct gimplify_adjust_omp_clauses_data pointer instead
17774         of tree *.  Pass pre_p as a new argument to
17775         lang_hooks.decls.omp_finish_clause hook.
17776         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
17777         splay_tree_foreach to pass both list_p and pre_p.
17778         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
17779         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
17780         gimplify_adjust_omp_clauses callers.
17781         * langhooks.c (lhd_omp_finish_clause): New function.
17782         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
17783         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
17784         * langhooks.h (struct lang_hooks_for_decls): Add a new
17785         gimple_seq * argument to omp_finish_clause hook.
17786         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
17787         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
17788         (scan_omp_parallel, lower_omp_for): When adding
17789         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
17790         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
17791         * tree-nested.c (convert_nonlocal_omp_clauses,
17792         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
17793         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
17795 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
17797         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
17798         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
17800 2014-06-17  Xinliang David Li  <davidxl@google.com>
17802         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
17803         * passes.c (pass_init_dump_file): Do not set initialize
17804         flag to false unconditionally.
17806 2014-06-17  Richard Biener  <rguenther@suse.de>
17808         * genopinit.c (main): Use vec<>::qsort method.
17809         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17810         Likewise.
17811         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
17813 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
17815         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
17816         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
17817         (mips_move_to_gpr_cost): Remove ST_REGS case.
17818         (mips_move_from_gpr_cost): Likewise.
17819         (mips_register_move_cost): Likewise.
17820         (mips_secondary_reload_class): Likewise.
17822 2014-06-17  Richard Biener  <rguenther@suse.de>
17824         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
17825         (pass_all_optimizations): Move 3rd copy-prop pass from after
17826         fre to before ifcombine/phiopt.
17828 2014-06-17  Richard Biener  <rguenther@suse.de>
17830         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
17831         and allow all blocks to be forwarders.
17833 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
17835         PR target/61483
17836         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
17837         variable 'size'; calculate 'size' right in the front; use
17838         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
17839         pcum->aapcs_stack_words.
17841 2014-06-17  Nick Clifton  <nickc@redhat.com>
17843         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
17844         (umulhi3, mulsidi3, umulsidi3): Likewise.
17846 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
17848         PR middle-end/61508
17849         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
17850         check for section name.
17852 2014-06-17  Richard Biener  <rguenther@suse.de>
17854         * tree-ssa-propagate.c: Include domwalk.h.
17855         (substitute_and_fold): Outline main worker into a domwalker ...
17856         (substitute_and_fold_dom_walker::before_dom_children): ... here.
17857         Schedule stmts we can fully propagate for removal.  Remove
17858         poor-mans DCE.
17859         (substitute_and_fold): Apply a dominator walk to perform
17860         substitution.  Process stmts scheduled for removal here.
17862 2014-06-17  Richard Biener  <rguenther@suse.de>
17864         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
17865         of PHI node moving.
17867 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
17869         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
17870         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
17871         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17872         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
17873         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
17874         TARGET_HARD_FLOAT.
17875         (get_fpscr) : Likewise.
17877 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
17879         PR rtl-optimization/61325
17880         * lra-constraints.c (valid_address_p): Add forward declaration.
17881         (simplify_operand_subreg): Check address validity before and after
17882         alter_reg of memory subreg.
17884 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
17886         * config/i386/i386.c (decide_alg): Correctly handle
17887         maximum size of stringop algorithm.
17889 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
17891         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
17893 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
17895         PR rtl-optimization/61522
17896         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
17898 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
17900         Revert:
17901         * symtab.c (symtab_node::reset_section): New method.
17902         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
17903         for localization.
17904         * cgraph.h (reset_section): Declare.
17905         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
17906         do not consider comdat locals.
17907         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
17908         for new symbol.
17909         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
17910         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
17911         reset sections of symbols dragged out of the comdats.
17912         (function_and_variable_visibility): Reset sections of
17913         localized symbols.
17915 2014-06-16  Richard Biener  <rguenther@suse.de>
17917         PR tree-optimization/61482
17918         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
17919         [-INF(OVF), +INF(OVF)] range.
17921 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17923         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
17924         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
17925         handling 32-bit multiplication.
17927 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
17929         PR middle-end/61430
17930         * lra-lives.c (process_bb_lives): Skip creating copy during
17931         insn scan when src/dest has constrained to same regno.
17933 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
17935         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
17936         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
17938 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
17940         * asan.c (check_func): New function.
17941         (maybe_create_ssa_name): Likewise.
17942         (build_check_stmt_with_calls): Likewise.
17943         (use_calls_p): Likewise.
17944         (report_error_func): Change interface.
17945         (build_check_stmt): Allow non-integer lengths; add support
17946         for new parameter.
17947         (asan_instrument): Likewise.
17948         (instrument_mem_region_access): Moved code to build_check_stmt.
17949         (instrument_derefs): Likewise.
17950         (instrument_strlen_call): Likewise.
17951         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
17952         * doc/invoke.texi: Describe new parameter.
17953         * params.def: Define new parameter.
17954         * params.h: Likewise.
17955         * sanitizer.def: Describe new builtins.
17957 2014-06-16  Richard Biener  <rguenther@suse.de>
17959         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17960         Make all defs available at the end.
17961         (eliminate): If we remove a PHI node schedule cfg-cleanup.
17963 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
17965         PR plugins/45078
17966         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
17968 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
17970         PR bootstrap/61516
17971         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
17972         initialization.  Replace remaining use of uid.
17974 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
17976         * c-family/c-common.c (handle_tls_model_attribute): Use
17977         set_decl_tls_model.
17978         * c-family/c-common.c (handle_tls_model_attribute): Use
17979         set_decl_tls_model.
17980         * cgraph.h (struct varpool_node): Add tls_model.
17981         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
17982         * tree.h (DECL_TLS_MODEL): Update.
17983         (DECL_THREAD_LOCAL_P): Check that variable is static.
17984         (decl_tls_model): Declare.
17985         (set_decl_tls_model): Declare.
17986         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
17987         set symbol prorperties.
17988         (get_emutls_init_templ_addr): Cleanup.
17989         (new_emutls_decl): Update.
17990         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
17991         (lto_input_varpool_node): Likewise.
17992         * lto-streamer-out.c (hash_tree): Likewise.
17993         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17994         not stream DECL_TLS_MODEL.
17995         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
17996         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
17998 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18000         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
18002 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18004         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
18005         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
18006         lists.
18007         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
18008         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
18009         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
18010         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
18011         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
18012         (df_get_artificial_defs, df_get_artificial_uses)
18013         (df_single_def, df_single_use): Update accordingly.
18014         (df_refs_chain_dump): Take the first element in a linked list as
18015         parameter, rather than a pointer to an array of pointers.
18016         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
18017         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
18018         (df_chain_create_bb_process_use): Likewise.
18019         (df_md_bb_local_compute_process_def): Likewise.
18020         * fwprop.c (process_defs, process_uses): Likewise.
18021         (register_active_defs, update_uses): Likewise.
18022         (forward_propagate_asm): Update for new df_ref linking.
18023         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
18024         (df_null_ref_rec, df_null_mw_rec): Likewise.
18025         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
18026         explicitly.
18027         (df_scan_free_bb_info): Remove check for null artificial_defs.
18028         (df_install_ref_incremental): Adjust for new df_ref linking.
18029         Use a single-element insertion rather than a full sort.
18030         (df_ref_chain_delete_du_chain): Take the first element
18031         in a linked list as parameter, rather than a pointer to an array of
18032         pointers.
18033         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
18034         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
18035         (df_insn_info_delete): Remove check for null defs and call to
18036         df_scan_free_mws_vec.
18037         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
18038         null rather than df_null_*_rec.
18039         (df_insn_rescan_debug_internal): Likewise, and update null
18040         checks in the same way.  Remove check for null defs.
18041         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
18042         Move a single element rather doing a full sort.
18043         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
18044         linking.
18045         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
18046         Initialize df_ref and df_mw_hardreg lists to null rather than
18047         df_null_*_rec.
18048         (df_ref_compare): Take df_refs as parameter, transferring the
18049         old interface to...
18050         (df_ref_ptr_compare): ...this new function.
18051         (df_sort_and_compress_refs): Update accordingly.
18052         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
18053         old interface to...
18054         (df_mw_ptr_compare): ...this new function.
18055         (df_sort_and_compress_mws): Update accordingly.
18056         (df_install_refs, df_install_mws): Return a linked list rather than
18057         an array of pointers.
18058         (df_refs_add_to_chains): Assert that old lists are empty rather
18059         than freeing them.
18060         (df_insn_refs_verify): Don't handle null defs speciailly.
18061         * web.c (union_match_dups): Update for new df_ref linking.
18063 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18065         * df.h (df_ref_create, df_ref_remove): Delete.
18066         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
18067         (df_ref_remove): Likewise.
18069 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18071         * df.h (df_single_def, df_single_use): New functions.
18072         * ira.c (find_moveable_pseudos): Use them.
18074 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18076         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
18077         * df-problems.c (df_note_bb_compute): Use it.
18078         * regstat.c (regstat_bb_compute_ri): Likewise.
18080 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18082         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
18083         * cse.c (cse_extended_basic_block): Use them.
18084         * dce.c (mark_artificial_use): Likewise.
18085         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
18086         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18087         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
18088         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
18089         (df_simulate_initialize_backwards): Likewise.
18090         (df_simulate_finalize_backwards): Likewise.
18091         (df_simulate_initialize_forwards): Likewise.
18092         (df_md_simulate_artificial_defs_at_top): Likewise.
18093         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18094         * regrename.c (init_rename_info): Likewise.
18095         * regstat.c (regstat_bb_compute_ri): Likewise.
18096         (regstat_bb_compute_calls_crossed): Likewise.
18098 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18100         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
18101         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
18102         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
18103         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
18104         * combine.c (create_log_links): Likewise.
18105         * compare-elim.c (find_flags_uses_in_insn): Likewise.
18106         (try_eliminate_compare): Likewise.
18107         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
18108         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
18109         (remove_reg_equal_equiv_notes_for_defs): Likewise.
18110         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
18111         (word_dce_process_block, dce_process_block): Likewise.
18112         * ddg.c (def_has_ccmode_p): Likewise.
18113         * df-core.c (df_bb_regno_first_def_find): Likewise.
18114         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
18115         * df-problems.c (df_rd_simulate_one_insn): Likewise.
18116         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18117         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
18118         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
18119         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
18120         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
18121         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
18122         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
18123         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
18124         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18125         * fwprop.c (local_ref_killed_between_p): Likewise.
18126         (all_uses_available_at, free_load_extend): Likewise.
18127         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
18128         * hw-doloop.c (scan_loop): Likewise.
18129         * ifcvt.c (dead_or_predicable): Likewise.
18130         * init-regs.c (initialize_uninitialized_regs): Likewise.
18131         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
18132         (process_bb_node_lives): Likewise.
18133         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
18134         (find_moveable_pseudos): Likewise.
18135         * loop-invariant.c (check_dependencies, record_uses): Likewise.
18136         * recog.c (peep2_find_free_register): Likewise.
18137         * ree.c (get_defs): Likewise.
18138         * regstat.c (regstat_bb_compute_ri): Likewise.
18139         (regstat_bb_compute_calls_crossed): Likewise.
18140         * sched-deps.c (find_inc, find_mem): Likewise.
18141         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
18142         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
18143         * shrink-wrap.c (requires_stack_frame_p): Likewise.
18144         (prepare_shrink_wrap): Likewise.
18145         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
18146         * web.c (union_defs, pass_web::execute): Likewise.
18147         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
18148         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
18150 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
18152         * lra-assign.c (assign_by_spills): Add code to assign vector regs
18153         to inheritance pseudos.
18154         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
18156 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
18158         PR target/61415
18159         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
18160         (BU_MISC_2): Rename to ...
18161         (BU_LDBL128_2): ... this.
18162         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
18163         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
18164         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18165         RS6000_BTM_LDBL128.
18166         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
18167         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
18168         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
18169         (unpacktf_1): Likewise.
18170         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
18171         (__builtin_longdouble_dw1): Likewise.
18172         * doc/sourcebuild.texi (longdouble128): Document.
18174 2014-06-13  Jeff Law  <law@redhat.com>
18176         PR rtl-optimization/61094
18177         PR rtl-optimization/61446
18178         * ree.c (combine_reaching_defs): Get the mode for the copy from
18179         the extension insn rather than the defining insn.
18181 2014-06-13  Dehao Chen  <dehao@google.com>
18183         * dwarf2out.c (add_linkage_name): Emit more linkage name.
18185 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
18187         * doc/install.texi (--enable-linker-plugin-configure-flags)
18188         (--enable-linker-plugin-flags): Document new flags.
18190 2014-06-13  Martin Jambor  <mjambor@suse.cz>
18192         PR ipa/61186
18193         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
18194         cache_token if returning early.
18196 2014-06-13  Nick Clifton  <nickc@redhat.com>
18198         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
18199         requested alignment is active.
18200         (LABEL_ALIGN): Likewise.
18201         (LOOP_ALIGN): Likewise.
18203 2014-06-13  Richard Biener  <rguenther@suse.de>
18205         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18206         Rewrite to propagate the VN result into all uses where
18207         possible and to remove stmts becoming dead because of that.
18208         (eliminate): Generalize stmt removal handling, remove in
18209         reverse dominator order to support proper debug stmt
18210         generation.  Update stmts before removing stmts.
18211         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
18213 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18215         PR tree-optimization/61375
18216         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
18217         symbolic number cannot be represented in an uint64_t.
18218         (find_bswap_or_nop_1): Likewise.
18220 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18222         * symtab.c (symtab_node::reset_section): New method.
18223         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18224         for localization.
18225         * cgraph.h (reset_section): Declare.
18226         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18227         do not consider comdat locals.
18228         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18229         for new symbol.
18230         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18231         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18232         reset sections of symbols dragged out of the comdats.
18233         (function_and_variable_visibility): Reset sections of
18234         localized symbols.
18236 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18238         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
18239         to use symtab and decl_binds_to_current_def_p
18240         * tree-vectorizer.c (increase_alignment): Increase alignment
18241         of alias target, too.
18243 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
18245         PR middle-end/61486
18246         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18247         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18248         if outer combined construct is distribute.
18249         (gimplify_omp_for): For OMP_DISTRIBUTE set
18250         gimplify_omp_ctxp->distribute.
18251         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18252         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18253         mapping into decl map.
18255 2014-06-12  Jason Merrill  <jason@redhat.com>
18257         * common.opt (fabi-version): Change default to 0.
18259 2014-06-12  Jason Merrill  <jason@redhat.com>
18261         * toplev.c (process_options): Reject -fabi-version=1.
18263 2014-06-12  Jeff Law  <law@redhat.com>
18265         PR tree-optimization/61009
18266         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
18267         value when we stop processing a block due to problematic PHIs.
18269 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
18271         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
18272         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
18273         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
18274         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
18275         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
18276         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
18277         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
18278         are not in the spec.
18280 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
18282         PR target/59843
18283         * config/aarch64/aarch64-modes.def: Add V1DFmode.
18284         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
18285         Support V1DFmode.
18287 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
18289         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
18291 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
18293         PR target/61443
18294         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
18295         loading from address spaces.
18297 2014-06-12  Martin Liska  <mliska@suse.cz>
18299         PR ipa/61462
18300         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
18301         statement is reachable.
18303 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
18305         * symtab.c (section_hash): New hash.
18306         (symtab_unregister_node): Clear section before freeing.
18307         (hash_section_hash_entry): New haser.
18308         (eq_sections): New function.
18309         (symtab_node::set_section_for_node): New method.
18310         (set_section_1): Update.
18311         (symtab_node::set_section): Take string instead of tree as parameter.
18312         (symtab_resolve_alias): Update.
18313         * cgraph.h (section_hash_entry_d): New structure.
18314         (section_hash_entry): New typedef.
18315         (cgraph_node): Change comdat_group_ to x_comdat_group,
18316         change section_ to x_section and turn into section_hash_entry;
18317         update accestors; put set_section_for_node offline.
18318         * tree.c (decl_section_name): Turn into string.
18319         (set_decl_section_name): Change parameter to be string.
18320         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
18321         * sdbout.c (sdbout_one_type): Update.
18322         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
18323         * varasm.c (IN_NAMED_SECTION, get_named_section,
18324         resolve_unique_section, hot_function_section, get_named_text_section,
18325         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
18326         make_decl_rtl, default_unique_section): Update.
18327         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
18328         (c6x_elf_unique_section): Update.
18329         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
18330         * config/pa/pa.c (pa_function_section): Update.
18331         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
18332         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
18333         * config/arc/arc.c (arc_in_small_data_p): Update.
18334         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
18335         * config/mcore/mcore.c (mcore_unique_section): Update.
18336         * config/mips/mips.c (mips16_build_function_stub): Update.
18337         (mips16_build_call_stub): Update.
18338         (mips_function_rodata_section): Update.
18339         (mips_in_small_data_p): Update.
18340         * config/score/score.c (score_in_small_data_p): Update.
18341         * config/rx/rx.c (rx_in_small_data): Update.
18342         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
18343         (rs6000_xcoff_asm_named_section): Update.
18344         (rs6000_xcoff_unique_section): Update.
18345         * config/frv/frv.c (frv_string_begins_with): Update.
18346         (frv_in_small_data_p): Update.
18347         * config/v850/v850.c (v850_encode_data_area): Update.
18348         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
18349         (bfin_handle_l1_data_attribute): Update.
18350         (bfin_handle_l2_attribute): Update.
18351         * config/mep/mep.c (mep_unique_section): Update.
18352         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
18353         Update.
18354         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
18355         (h8300_handle_tiny_data_attribute): Update.
18356         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
18357         (m32r_in_small_data_p): Update.
18358         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
18359         * config/i386/i386.c (ix86_in_large_data_p): Update.
18360         * config/i386/winnt.c (i386_pe_unique_section): Update.
18361         * config/darwin.c (darwin_function_section): Update.
18362         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
18363         * tree-emutls.c (get_emutls_init_templ_addr): Update.
18364         (new_emutls_decl): Update.
18365         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
18366         input_varpool_node): Update.
18367         (ead_string_cst): Turn to ...
18368         (read_string): ... this one.
18369         * dwarf2out.c (secname_for_decl): Update.
18370         * asan.c (asan_protect_global): Update.
18372 2014-06-11  DJ Delorie  <dj@redhat.com>
18374         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
18375         cache lines.
18376         * config/rx/rx.c (rx_option_override): Likewise.
18377         (rx_align_for_label): Likewise.
18379         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
18381 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
18383         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
18384         prototype.
18386 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18388         * common.md: New file.
18389         * doc/md.texi: Update description of generic, machine-independent
18390         constraints.
18391         * config/s390/constraints.md (e): Delete.
18392         * Makefile.in (md_file): Include common.md.
18393         * config/m32c/t-m32c (md_file): Likewise.
18394         * genpreds.c (general_mem): New array.
18395         (generic_constraint_letters): Remove constraints now defined by
18396         common.md.
18397         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18398         Allow the first character to be '<' or '>' as well.
18399         * genoutput.c (general_mem): New array.
18400         (indep_constraints): Remove constraints now defined by common.md.
18401         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18402         Remove special handling of 'm'.
18403         * ira-costs.c (record_reg_classes): Remove special handling of
18404         constraints now defined by common.md.
18405         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18406         * ira-lives.c (single_reg_class): Likewise.
18407         (ira_implicitly_set_insn_hard_regs): Likewise.
18408         * lra-constraints.c (reg_class_from_constraints): Likewise.
18409         (process_alt_operands, process_address, curr_insn_transform): Likewise.
18410         * postreload.c (reload_cse_simplify_operands): Likewise.
18411         * reload.c (push_secondary_reload, scratch_reload_class)
18412         (find_reloads, alternative_allows_const_pool_ref): Likewise.
18413         * reload1.c (maybe_fix_stack_asms): Likewise.
18414         * targhooks.c (default_secondary_reload): Likewise.
18415         * stmt.c (parse_output_constraint): Likewise.
18416         * recog.c (preprocess_constraints): Likewise.
18417         (constrain_operands, peep2_find_free_register): Likewise.
18418         (asm_operand_ok): Likewise, but add a comment saying why 'o'
18419         must be handled specially.
18421 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18423         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
18424         * genpreds.c (have_const_dbl_constraints): Delete.
18425         (add_constraint): Don't set it.
18426         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
18427         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
18428         constraints using the lookup_constraint logic.
18429         * ira-lives.c (single_reg_class): Likewise.
18430         * ira.c (ira_setup_alts): Likewise.
18431         * lra-constraints.c (process_alt_operands): Likewise.
18432         * recog.c (asm_operand_ok, constrain_operands): Likewise.
18433         * reload.c (find_reloads): Likewise.
18435 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18437         * genpreds.c (const_int_start, const_int_end): New variables.
18438         (choose_enum_order): Output CONST_INT constraints before memory
18439         constraints.
18440         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
18441         Add CT_CONST_INT.
18442         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
18443         * ira.c (ira_setup_alts): Likewise.
18444         * lra-constraints.c (process_alt_operands): Likewise.
18445         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18446         * reload.c (find_reloads): Likewise.
18448 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18450         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
18451         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
18452         * recog.c (preprocess_constraints): Update accordingly.
18454 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18456         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
18457         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
18458         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
18459         * genpreds.c (print_type_tree): New function.
18460         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
18461         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
18462         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
18463         Write out enum constraint_type and get_constraint_type.
18464         * lra-constraints.c (satisfies_memory_constraint_p): Take a
18465         constraint_num rather than a constraint string.
18466         (satisfies_address_constraint_p): Likewise.
18467         (reg_class_from_constraints): Avoid old constraint macros.
18468         (process_alt_operands, process_address_1): Likewise.
18469         (curr_insn_transform): Likewise.
18470         * ira-costs.c (record_reg_classes): Likewise.
18471         (record_operand_costs): Likewise.
18472         * ira-lives.c (single_reg_class): Likewise.
18473         (ira_implicitly_set_insn_hard_regs): Likewise.
18474         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18475         * postreload.c (reload_cse_simplify_operands): Likewise.
18476         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18477         (constrain_operands, peep2_find_free_register): Likewise.
18478         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
18479         (find_reloads, alternative_allows_const_pool_ref): Likewise.
18480         * reload1.c (maybe_fix_stack_asms): Likewise.
18481         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18482         * targhooks.c (default_secondary_reload): Likewise.
18483         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
18484         to EXTRA_CONSTRAINT_STR.
18485         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
18487 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18489         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
18490         (write_constraint_satisfied_p_array): ...this new function.
18491         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
18492         an array.
18493         (write_insn_preds_c): Update accordingly.
18495 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18497         * genpreds.c (write_lookup_constraint): Rename to...
18498         (write_lookup_constraint_1): ...this.
18499         (write_lookup_constraint_array): New function.
18500         (write_tm_preds_h): Define lookup_constraint as an inline function
18501         that uses write_lookup_constraint_array where possible.
18502         (write_insn_preds_c): Update for the changes above.
18504 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18506         * doc/md.texi (regclass_for_constraint): Rename to...
18507         (reg_class_for_constraint): ...this.
18508         * genpreds.c (num_constraints, enum_order, register_start)
18509         (register_end, satisfied_start, memory_start, memory_end)
18510         (address_start, address_end): New variables.
18511         (add_constraint): Count the number of constraints.
18512         (choose_enum_order): New function.
18513         (write_enum_constraint_num): Iterate over enum_order.
18514         (write_regclass_for_constraint): Rename to...
18515         (write_reg_class_for_constraint_1): ...this and update output
18516         accordingly.
18517         (write_constraint_satisfied_p): Rename to...
18518         (write_constraint_satisfied_p_1): ...this and update output
18519         accordingly.  Do nothing if all extra constraints are register
18520         constraints.
18521         (write_insn_extra_memory_constraint): Delete.
18522         (write_insn_extra_address_constraint): Delete.
18523         (write_range_function): New function.
18524         (write_tm_preds_h): Define constraint_satisfied_p and
18525         reg_class_for_constraint as inline functions that do a range check
18526         before calling the out-of-line function.  Use write_range_function
18527         to implement insn_extra_{register,memory,address}_constraint,
18528         the first of which is new.
18529         (write_insn_preds_c): Update after above changes to write_* functions.
18530         (main): Call choose_enum_order.
18532 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18534         PR tree-optimization/61306
18535         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
18536         expression instead of its size.
18537         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
18538         false to prevent optimization when the result is unpredictable due to
18539         arithmetic right shift of signed type with highest byte is set.
18540         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
18541         (init_symbolic_number): Likewise.
18542         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
18543         when the result is unpredictable due to sign extension.
18545 2014-06-11  Terry Guo  <terry.guo@arm.com>
18547         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
18548         (*thumb1_addsi3): Ditto.
18549         (*thumb_subdi3): Ditto.
18550         (thumb1_subsi3_insn): Ditto.
18551         (*thumb_mulsi3): Ditto.
18552         (*thumb_mulsi3_v6): Ditto.
18553         (*thumb1_andsi3_insn): Ditto.
18554         (thumb1_bicsi3): Ditto.
18555         (*thumb1_iorsi3_insn): Ditto.
18556         (*thumb1_xorsi3_insn): Ditto.
18557         (*thumb1_ashlsi3): Ditto.
18558         (*thumb1_ashrsi3): Ditto.
18559         (*thumb1_lshrsi3): Ditto.
18560         (*thumb1_rotrsi3): Ditto.
18561         (*thumb1_negdi2): Ditto.
18562         (*thumb1_negsi2): Ditto.
18563         (*thumb1_abssi2): Ditto.
18564         (*thumb1_neg_abssi2): Ditto.
18565         (*thumb1_one_cmplsi2): Ditto.
18566         (*thumb1_zero_extendhisi2): Ditto.
18567         (*thumb1_zero_extendqisi2): Ditto.
18568         (*thumb1_zero_extendqisi2_v6): Ditto.
18569         (thumb1_extendhisi2): Ditto.
18570         (thumb1_extendqisi2): Ditto.
18571         (*thumb1_movdi_insn): Ditto.
18572         (*thumb1_movsi_insn): Ditto.
18573         (*thumb1_movhi_insn): Ditto.
18574         (thumb_movhi_clobber): Ditto.
18575         (*thumb1_movqi_insn): Ditto.
18576         (*thumb1_movhf): Ditto.
18577         (*thumb1_movsf_insn): Ditto.
18578         (*thumb_movdf_insn): Ditto.
18579         (movmem12b): Ditto.
18580         (movmem8b): Ditto.
18581         (cbranchqi4): Ditto.
18582         (cbranchsi4_insn): Ditto.
18583         (cbranchsi4_scratch): Ditto.
18584         (*negated_cbranchsi4): Ditto.
18585         (*tbit_cbranch): Ditto.
18586         (*tlobits_cbranch): Ditto.
18587         (*tstsi3_cbranch): Ditto.
18588         (*cbranchne_decr1): Ditto.
18589         (*addsi3_cbranch): Ditto.
18590         (*addsi3_cbranch_scratch): Ditto.
18591         (*thumb_cmpdi_zero): Ditto.
18592         (cstoresi_eq0_thumb1): Ditto.
18593         (cstoresi_ne0_thumb1): Ditto.
18594         (*cstoresi_eq0_thumb1_insn): Ditto.
18595         (*cstoresi_ne0_thumb1_insn): Ditto.
18596         (cstoresi_nltu_thumb1): Ditto.
18597         (cstoresi_ltu_thumb1): Ditto.
18598         (thumb1_addsi3_addgeu): Ditto.
18599         (*thumb_jump): Ditto.
18600         (*call_reg_thumb1_v5): Ditto.
18601         (*call_reg_thumb1): Ditto.
18602         (*call_value_reg_thumb1_v5): Ditto.
18603         (*call_value_reg_thumb1): Ditto.
18604         (*call_insn): Ditto.
18605         (*call_value_insn): Ditto.
18606         (thumb1_casesi_internal_pic): Ditto.
18607         (thumb1_casesi_dispatch): Ditto.
18608         (*thumb1_indirect_jump): Ditto.
18609         (prologue_thumb1_interwork): Ditto.
18610         (*epilogue_insns): Ditto.
18611         (consttable_1): Ditto.
18612         (consttable_2): Ditto.
18613         (tablejump): Ditto.
18614         (*thumb1_tablejump): Ditto.
18615         (thumb_eh_return): Ditto.
18616         (define_peephole2): Two of them are thumb1 only and got moved into
18617         new file thumb1.md.
18618         (define_split): Six of them are thumb1 only and got moved into new
18619         file thumb1.md.
18620         * config/arm/thumb1.md: New file comprised of above thumb1 only
18621         patterns.
18623 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18625         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
18626         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
18627         dependencies.
18628         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
18629         (aarch64_crc_builtin_datum): New struct.
18630         (aarch64_crc_builtin_data): New.
18631         (aarch64_init_crc32_builtins): New function.
18632         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
18633         (aarch64_crc32_expand_builtin): New.
18634         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
18635         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18636         __ARM_FEATURE_CRC32 when appropriate.
18637         (TARGET_CRC32): Define.
18638         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
18639         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
18640         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
18641         (aarch64_<crc_variant>): New pattern.
18642         * config/aarch64/arm_acle.h: New file.
18643         * config/aarch64/iterators.md (CRC): New int iterator.
18644         (crc_variant, crc_mode): New int attributes.
18645         * doc/aarch64-acle-intrinsics.texi: New file.
18646         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
18647         Include aarch64-acle-intrinsics.texi.
18649 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
18651         * tree-vect-data-refs.c (vect_grouped_store_supported): New
18652         check for stores group of length 3.
18653         (vect_permute_store_chain): New permutations for stores group of
18654         length 3.
18655         * tree-vect-stmts.c (vect_model_store_cost): Change cost
18656         of vec_perm_shuffle for the new permutations.
18658 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
18660         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
18661         table rewriting temporarily on targets not supporting ONE_ONLY.
18663 2014-06-11  Richard Biener  <rguenther@suse.de>
18665         PR middle-end/61437
18666         Revert
18667         2014-06-04  Richard Biener  <rguenther@suse.de>
18669         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18670         TREE_PUBLIC and DECL_EXTERNAL decls.
18672 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
18674         * varasm.c (set_implicit_section): New function.
18675         (resolve_unique_section): Use it to set implicit section
18676         for aliases, too.
18677         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
18678         (default_function_section): Likewise.
18679         (decl_binds_to_current_def_p): Constify argument.
18680         * varasm.h (decl_binds_to_current_def_p): Update prototype.
18681         * asan.c (asan_protect_global): Use
18682         symtab_get_node (decl)->implicit_section.
18683         * symtab.c (dump_symtab_base): Dump implicit sections.
18684         (verify_symtab_base): Verify sanity of sectoins and comdats.
18685         (symtab_resolve_alias): Alias share the section of its target.
18686         (set_section_1): New function.
18687         (symtab_node::set_section): Move here, recurse to aliases.
18688         (verify_symtab): Check for duplicated symtab lists.
18689         * tree-core.h (implicit_section_name_p): Remove.
18690         * tree-vect-data-refs.c: Include varasm.h.
18691         (vect_can_force_dr_alignment_p): Fix conditional on when
18692         decl bints to current definition; use
18693         symtab_get_node (decl)->implicit_section.
18694         * cgraph.c (cgraph_make_node_local_1): Fix section set.
18695         * cgraph.h (struct symtab_node): Add implicit_section.
18696         (set_section): Rename to ...
18697         (set_section_for_node): ... this one.
18698         (set_section): Declare.
18699         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
18700         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
18701         input_overwrite_node, input_varpool_node): Stream implicit_section.
18702         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
18703         removal; it will fail in LTO.
18705 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18707         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
18708         Change second alternative type to f_mcr.
18709         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
18710         and 12th alternatives' types to f_mcr and f_mrc.
18711         (*movdi_aarch64): Same for 12th and 13th alternatives.
18712         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
18713         (aarch64_movtilow_tilow): Change type to fmov.
18715 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
18717         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
18718         (aarch64_save_or_restore_callee_save_registers): Fix layout.
18720 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18722         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
18723         New expander.
18724         (aarch64_sqrdmulh_lane<mode>): Likewise.
18725         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18726         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18727         (aarch64_sqdmulh_laneq<mode>): New expander.
18728         (aarch64_sqrdmulh_laneq<mode>): Likewise.
18729         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
18730         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
18731         (aarch64_sqdmulh_lane<mode>): New expander.
18732         (aarch64_sqrdmulh_lane<mode>): Likewise.
18733         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18734         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18735         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
18736         (aarch64_sqdmlal_laneq<mode>): Likewise.
18737         (aarch64_sqdmlsl_lane<mode>): Likewise.
18738         (aarch64_sqdmlsl_laneq<mode>): Likewise.
18739         (aarch64_sqdmlal2_lane<mode>): Likewise.
18740         (aarch64_sqdmlal2_laneq<mode>): Likewise.
18741         (aarch64_sqdmlsl2_lane<mode>): Likewise.
18742         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18743         (aarch64_sqdmull_lane<mode>): Likewise.
18744         (aarch64_sqdmull_laneq<mode>): Likewise.
18745         (aarch64_sqdmull2_lane<mode>): Likewise.
18746         (aarch64_sqdmull2_laneq<mode>): Likewise.
18748 2014-06-10  Richard Biener  <rguenther@suse.de>
18750         PR tree-optimization/61438
18751         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
18752         (eliminate_dom_walker::before_dom_children): Only try to inhibit
18753         insertion of IVs if running PRE.
18754         (eliminate): Adjust.
18755         (pass_pre::execute): Likewise.
18756         (pass_fre::execute): Likewise.
18758 2014-06-10  Richard Biener  <rguenther@suse.de>
18760         PR middle-end/61456
18761         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18762         Do not use the main variant for the type comparison.
18763         (ncr_compar): Likewise.
18764         (nonoverlapping_component_refs_p): Likewise.
18766 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18768         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
18769         REG_CFA_RESTORE mode.
18771 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
18773         * config/i386/i386.c (expand_vec_perm_pblendv): New.
18774         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
18775         expand_vec_perm_pblendv.
18777 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18779         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
18780         available.
18781         Simplify description of __crc32d and __crc32cd intrinsics.
18782         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
18783         availability.
18785 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
18787         PR lto/61334
18788         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
18789         * config.in: Regenerate.
18790         * configure: Likewise.
18792 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
18794         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
18795         and public vars.
18796         (intersect_static_var_sets): Remove.
18797         (propagate): Do not prune local statics.
18799 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
18801         PR fortran/60928
18802         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
18803         Set lastprivate_firstprivate even if omp_private_outer_ref
18804         langhook returns true.
18805         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
18806         langhook, call unshare_expr on new_var and call
18807         build_outer_var_ref to get the last argument.
18809 2014-06-10  Marek Polacek  <polacek@redhat.com>
18811         PR c/60988
18812         * doc/extend.texi: Add cindex for transparent_union.
18814 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18816         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
18817         init_symbolic_number ().
18819 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
18821         PR middle-end/61141
18822         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
18823         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
18824         (verify_rtl_sharing): Likewise.
18826 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
18828         PR c++/54442
18829         * tree.c (build_qualified_type): Use a canonical type for
18830         TYPE_CANONICAL.
18832 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18834         * config/arm/arm-modes.def: Remove XFmode.
18836 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
18838         PR target/61062
18839         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
18840         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
18841         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
18842         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
18843         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
18844         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
18845         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
18846         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
18847         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
18849 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
18851         * tree-core.h (tree_decl_with_vis): Remove section_name.
18853 2014-06-09  Kito Cheng  <kito@0xlab.org>
18855         * ira.c (ira): Don't call init_caller_save if LRA enabled
18856         since LRA use its own infrastructure to handle that.
18858 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18860         * symtab.c (dump_symtab_base): Update dumping.
18861         (symtab_make_decl_local): Clear only DECL_COMDAT.
18862         * tree-vect-data-refs.c (Check that variable is static before
18863         tampering with sections.
18864         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
18865         (cgraph_create_virtual_clone): Likewise.
18866         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
18867         (decl_section_name, set_decl_section_name): New accessors.
18868         (find_decls_types_r): Do not walk section name
18869         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
18870         (decl_comdat_group, decl_comdat_group_id): Constify.
18871         (decl_section_name, set_decl_section_name): Update.
18872         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
18873         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
18874         (cgraph_make_node_local_1): Clear section and comdat group.
18875         * cgraph.h (set_comdat_group): Sanity check.
18876         (get_section, set_section): New.
18877         * ipa-comdats.c (ipa_comdats): Use get_section.
18878         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
18879         * lto-streamer-out.c: Do not follow section names.
18880         * c-family/c-common.c (handle_section_attribute): Update.
18881         * lto-cgraph.c (lto_output_node): Output section.
18882         (lto_output_varpool_node): Likewise.
18883         (read_comdat_group): Rename to ...
18884         (read_identifier): ... this one.
18885         (read_string_cst): New function.
18886         (input_node, input_varpool_node): Input section names.
18887         * tree-emutls.c (get_emutls_init_templ_addr): Update.
18888         (new_emutls_decl): Update.
18889         (secname_for_decl): Check section names only of static vars.
18890         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
18891         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
18892         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18893         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18894         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
18895         * config/mcore/mcore.c (mcore_unique_section): Likewise.
18896         * config/mips/mips.c (mips16_build_function_stub): Likewise.
18897         * config/v850/v850.c (v850_insert_attributes): Likewise.
18898         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
18899         Likewise.
18900         (h8300_handle_tiny_data_attribute): Likewise.
18901         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
18902         (bfin_handle_l2_attribute): Likewise.
18904 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18906         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
18907         remove static initializer.
18909 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18911         * varasm.c (use_blocks_for_decl_p): Check symbol table
18912         instead of alias attribute.
18913         (place_block_symbol): Recurse on aliases.
18915 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18917         * ipa-visibility.c: Include varasm.h
18918         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
18920 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18922         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
18923         outputting aliases.
18925 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
18927         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
18928         from test_insn into GGC space escape via SET_SRC.
18930 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
18932         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
18933         call statement, if any.
18934         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
18935         statements, if any.  Tidy up.
18937 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18939         PR target/61431
18940         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
18941         iterators, VSX_D that handles 64-bit types, and VSX_LE that
18942         handles swapping the two 64-bit double words on little endian
18943         systems.  Include V1TImode and optionally TImode in VSX_LE so that
18944         these types are properly swapped.  Change all of the insns and
18945         splits that do the 64-bit swaps to use VSX_LE.
18946         (vsx_le_perm_load_<mode>): Likewise.
18947         (vsx_le_perm_store_<mode>): Likewise.
18948         (splitters for little endian memory operations): Likewise.
18949         (vsx_xxpermdi2_le_<mode>): Likewise.
18950         (vsx_lxvd2x2_le_<mode>): Likewise.
18951         (vsx_stxvd2x2_le_<mode>): Likewise.
18953 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
18955         PR target/61423
18956         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
18957         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
18958         and corresponding splitters.  Zero extend general register
18959         or memory input operand to XMM temporary.  Enable for
18960         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
18961         (floatunssi<mode>2): Update expander predicate.
18963 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
18965         PR rtl-optimization/61325
18966         * lra-constraints.c (process_address_1): Check scale equal to one
18967         to prevent transformation: base + scale * index => base + new_reg.
18969 2014-06-06  Richard Biener  <rguenther@suse.de>
18971         PR tree-optimization/59299
18972         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
18973         a def operand.
18974         (nearest_common_dominator_of_uses): Likewise.
18975         (statement_sink_location): Adjust.  Support sinking loads.
18977 2014-06-06  Martin Jambor  <mjambor@suse.cz>
18979         * ipa-prop.c (get_place_in_agg_contents_list): New function.
18980         (build_agg_jump_func_from_list): Likewise.
18981         (determine_known_aggregate_parts): Renamed to
18982         determine_locally_known_aggregate_parts.  Moved some functionality
18983         to the two functions above, removed bound checks.
18985 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
18987         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
18988         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
18989         (aarch64_progress_pointer): Likewise.
18990         (aarch64_copy_one_part_and_move_pointers): Likewise.
18991         (aarch64_expand_movmen): Likewise.
18992         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
18993         * config/aarch64/aarch64.md (movmem<mode>): New.
18995 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
18997         * targhooks.c (default_add_stmt_cost): Call target specific
18998         hook instead of default one.
19000 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19002         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
19003         endianness instead of host endianness.
19004         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
19005         comments.
19007 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19009         PR debug/53927
19010         * function.c (instantiate_decls): Process the saved static chain.
19011         (expand_function_start): If not optimizing, save the static chain
19012         onto the stack.
19013         * tree-nested.c (convert_all_function_calls): Always create the static
19014         chain for nested functions if not optimizing.
19016 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19018         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
19020 2014-06-06  Richard Biener  <rguenther@suse.de>
19022         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
19023         (construct_init_block): Likewise.
19024         (construct_exit_block): Likewise.
19025         (pass_expand::execute): Likewise.
19026         * graphite.c (graphite_transforms): Replace check for current_loops
19027         with a check for > 1 loops.
19028         (pass_graphite_transforms::execute): Adjust.
19029         * ipa-split.c (split_function): Remove check for current_loops.
19030         * omp-low.c (expand_parallel_call): Likewise.
19031         (expand_omp_for_init_counts): Likewise.
19032         (extract_omp_for_update_vars): Likewise.
19033         (expand_omp_for_generic): Likewise.
19034         (expand_omp_sections): Likewise.
19035         (expand_omp_target): Likewise.
19036         * tracer.c (tail_duplicate): Likewise.
19037         (pass_tracer::execute): Likewise.
19038         * trans-mem.c (expand_transaction): Likewise.
19039         * tree-complex.c (expand_complex_div_wide): Likewise.
19040         * tree-eh.c (lower_resx): Likewise.
19041         (cleanup_empty_eh_merge_phis): Likewise.
19042         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
19043         current_loops with a check for > 1 loops.
19044         (pass_predcom::execute): Adjust.
19045         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
19046         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
19047         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
19048         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
19049         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
19050         * tree-switch-conversion.c (process_switch): Likewise.
19051         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
19052         * tree-vrp.c (vrp_visit_phi_node): Likewise.
19053         (execute_vrp): Likewise.
19054         * ubsan.c (ubsan_expand_null_ifn): Likewise.
19056 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19058         * rtl.h (insn_location): Declare.
19059         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
19060         with UNKNOWN_LOCATION.
19061         * emit-rtl.c (insn_location): New function.
19062         * final.c (notice_source_line): Check that the instruction has a
19063         location before retrieving it and use insn_location.
19064         * modulo-sched.c (loop_single_full_bb_p): Likewise.
19065         * print-rtl.c (print_rtx): Likewise.
19067 2014-06-06  Richard Biener  <rguenther@suse.de>
19069         * passes.def: Move 2nd VRP pass before phi-only-cprop.
19071 2014-06-06  Christian Bruel  <christian.bruel@st.com>
19073         PR tree-optimization/43934
19074         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
19075         cost.
19077 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
19079         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
19080         return NO_REGS for extra address and memory constraints.  Handle
19081         operands that match (or are equivalent to something that matches)
19082         extra constant constraints.  Ignore other non-register operands.
19084 2014-06-06  Alan Modra  <amodra@gmail.com>
19086         PR target/61300
19087         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
19088         * doc/tm.texi: Regenerate.
19089         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
19090         Use throughout in place of REG_PARM_STACK_SPACE.
19091         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
19092         "incoming" param.  Pass to rs6000_function_parms_need_stack.
19093         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
19094         prototype_p when incoming.  Use function decl when incoming
19095         to handle K&R style functions.
19096         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
19097         (INCOMING_REG_PARM_STACK_SPACE): Define.
19099 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19101         PR target/52472
19102         * cfgexpand.c (expand_debug_expr): Use address space of nested
19103         TREE_TYPE for ADDR_EXPR and MEM_REF.
19105 2014-06-05  Jeff Law  <law@redhat.com>
19107         PR tree-optimization/61289
19108         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
19109         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
19110         looking for those which match LHS.  All callers changed.
19111         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
19112         parameters and code which manipulated them.  All callers changed.
19113         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
19114         and DST_MAP parameters.  Simplify invalidation code by just calling
19115         invalidate_equivalences.  All callers changed.
19116         (thread_across_edge): Simplify now that we don't need to maintain
19117         the map of equivalences to invalidate.
19119 2014-06-05  Kai Tietz  <ktietz@redhat.com>
19120             Richard Henderson  <rth@redhat.com>
19122         PR target/46219
19123         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
19124         checking for !TARGET_X32.
19125         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
19126         (sibcall_intern): New define_insn, plus required peepholes.
19127         (sibcall_pop_intern): Likewise.
19128         (sibcall_value_intern): Likewise.
19129         (sibcall_value_pop_intern): Likewise.
19131 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
19133         * tree-inline.c (tree_function_versioning): Check DF info existence
19134         before accessing it.
19136 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19138         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
19139         frame_size.
19140         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
19141         aarch64_frame hard_fp_offset and frame_size.
19142         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
19143         frame_size; remove original_frame_size.
19144         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
19145         (aarch64_initial_elimination_offset): Remove frame_size and
19146         offset.  Use aarch64_frame frame_size.
19148 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19149             Jiong Wang  <jiong.wang@arm.com>
19150             Renlin  <renlin.li@arm.com>
19152         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
19153         initialization of R30 offset.  Update offset.  Iterate core
19154         regisers upto X30.  Remove X29, X30 specific code.
19156 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19157             Jiong Wang  <jiong.wang@arm.com>
19159         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
19160         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
19161         (aarch64_register_saved_on_entry): Adjust test.
19163 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19165         * config/aarch64/aarch64.h (machine_function): Move
19166         saved_varargs_size from here...
19167         (aarch64_frame): ... to here.
19169         * config/aarch64/aarch64.c (aarch64_expand_prologue)
19170         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
19171         (aarch64_initial_elimination_offset)
19172         (aarch64_setup_incoming_varargs): Adjust location of
19173         saved_varargs_size.
19175 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19177         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
19178         layout comment.
19180 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
19181             Prachi Godbole  <Prachi.Godbole@imgtec.com>
19183         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
19184         mips32r5 entry to use PROCESSOR_P5600.
19185         * config/mips/mips-tables.opt: Regenerate.
19186         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
19187         * config/mips/mips.c (mips_fmadd_bypass): New function.
19188         (mips_rtx_cost_data): Add costs for p5600.
19189         (mips_issue_rate): Add support for p5600.
19190         (mips_multipass_dfa_lookahead): Likewise.
19191         * config/mips/mips.h (TUNE_P5600): New define.
19192         (TUNE_MACC_CHAINS): Add TUNE_P5600.
19193         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
19194         * config/mips/mips.md: Include p5600.md.
19195         (processor): Add p5600.
19196         * config/mips/p5600.md: New file.
19198 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
19200         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
19201         * config/i386/predicates.md (palignr_operand): New.
19202         Indicates if permutation is suitable for palignr instruction.
19204 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
19206         PR tree-optimization/61319
19207         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19208         stmt belongs to loop.
19210 2014-06-05  Richard Biener  <rguenther@suse.de>
19212         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
19213         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
19214         (lookup_tmp_var): Adjust.
19215         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
19217 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19219         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
19221 2014-06-05  Marek Polacek  <polacek@redhat.com>
19223         PR c/49706
19224         * doc/invoke.texi: Document -Wlogical-not-parentheses.
19226 2014-06-04  Tom de Vries  <tom@codesourcery.com>
19228         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
19229         CONST_INT.
19231 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
19233         PR tree-optimization/61385
19234         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
19236 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
19238         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
19239         changed to use fatal_error.
19240         (main): Ensure lto_wrapper_cleanup is run atexit.
19242 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19244         * lra-constraints.c (valid_address_p): Move earlier in file.
19245         (address_eliminator): New structure.
19246         (satisfies_memory_constraint_p): New function.
19247         (satisfies_address_constraint_p): Likewise.
19248         (process_alt_operands, process_address, curr_insn_transform): Use them.
19250 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19252         * lra-int.h (lra_static_insn_data): Make operand_alternative a
19253         const pointer.
19254         (target_lra_int, default_target_lra_int, this_target_lra_int)
19255         (op_alt_data): Delete.
19256         * lra.h (lra_init): Delete.
19257         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19258         (init_insn_code_data_once): Remove op_alt_data handling.
19259         (finish_insn_code_data_once): Likewise.
19260         (init_op_alt_data): Delete.
19261         (get_static_insn_data): Initialize operand_alternative to null.
19262         (free_insn_recog_data): Cast operand_alternative before freeing it.
19263         (setup_operand_alternative): Take the operand_alternative as
19264         parameter and assume it isn't already cached in the static
19265         insn data.
19266         (lra_set_insn_recog_data): Update accordingly.
19267         (lra_init): Delete.
19268         * ira.c (ira_init): Don't call lra_init.
19269         * target-globals.h (this_target_lra_int): Declare.
19270         (target_globals): Remove lra_int.
19271         (restore_target_globals): Update accordingly.
19272         * target-globals.c: Don't include lra-int.h.
19273         (default_target_globals, save_target_globals): Remove lra_int.
19275 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19277         * recog.h (operand_alternative): Convert reg_class, reject,
19278         matched and matches into bitfields.
19279         (preprocess_constraints): New overload.
19280         (preprocess_insn_constraints): New function.
19281         (preprocess_constraints): Take the insn as parameter.
19282         (recog_op_alt): Change into a pointer.
19283         (target_recog): Add x_op_alt.
19284         * recog.c (asm_op_alt): New variable.
19285         (recog_op_alt): Change into a pointer.
19286         (preprocess_constraints): New overload, replacing the old function
19287         definition with one that doesn't use global state.
19288         (preprocess_insn_constraints): New function.
19289         (preprocess_constraints): Use them.  Take the insn as parameter.
19290         Use asm_op_alt for asms.
19291         (recog_init): Free existing x_op_alt entries.
19292         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
19293         pointer const.
19294         (make_early_clobber_and_input_conflicts): Likewise.
19295         (process_bb_node_lives): Pass the insn to process_constraints.
19296         * reg-stack.c (check_asm_stack_operands): Likewise.
19297         (subst_asm_stack_regs): Likewise.
19298         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19299         * regrename.c (build_def_use): Likewise.
19300         * sched-deps.c (sched_analyze_insn): Likewise.
19301         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
19302         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
19303         (note_invalid_constants): Likewise.
19304         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19305         (ix86_legitimate_combined_insn): Make operand_alternative pointer
19306         const.
19308 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19310         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
19311         * ira-lives.c (check_and_make_def_conflict): Check for disabled
19312         alternatives.
19313         (make_early_clobber_and_input_conflicts): Likewise.
19314         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19316 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19318         * recog.h (alternative_class): New function.
19319         (which_op_alt): Return a const recog_op_alt.
19320         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
19321         (subst_asm_stack_regs): Likewise.
19322         * config/arm/arm.c (note_invalid_constants): Likewise.
19323         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
19324         the operand_alternative; use alternative class instead.
19325         * sel-sched.c (get_reg_class): Likewise.
19326         * regrename.c (build_def_use): Likewise.
19327         (hide_operands, restore_operands, record_out_operands): Update type
19328         accordingly.
19330 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19332         * recog.h (recog_op_alt): Convert to a flat array.
19333         (which_op_alt): New function.
19334         * recog.c (recog_op_alt): Convert to a flat array.
19335         (preprocess_constraints): Update accordingly, grouping all
19336         operands of the same alternative together, rather than the
19337         other way around.
19338         * ira-lives.c (check_and_make_def_conflict): Likewise.
19339         (make_early_clobber_and_input_conflicts): Likewise.
19340         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19341         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
19342         (subst_asm_stack_regs): Likewise.
19343         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19344         * regrename.c (hide_operands, record_out_operands): Likewise.
19345         (build_def_use): Likewise.
19346         * sel-sched.c (get_reg_class): Likewise.
19347         * config/arm/arm.c (note_invalid_constants): Likewise.
19349 2014-06-04  Jason Merrill  <jason@redhat.com>
19351         PR c++/51253
19352         PR c++/61382
19353         * gimplify.c (gimplify_arg): Non-static.
19354         * gimplify.h: Declare it.
19356 2014-06-04  Richard Biener  <rguenther@suse.de>
19358         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19359         TREE_PUBLIC and DECL_EXTERNAL decls.
19361 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
19363         * regcprop.c (copyprop_hardreg_forward_1): Account for
19364         HARD_REGNO_CALL_PART_CLOBBERED.
19366 2014-06-04  Richard Biener  <rguenther@suse.de>
19368         * configure.ac: Check whether the underlying type of int64_t
19369         is long or long long.
19370         * configure: Regenerate.
19371         * config.in: Likewise.
19372         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
19373         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19375 2014-06-04  Richard Biener  <rguenther@suse.de>
19377         PR tree-optimization/60098
19378         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
19379         we hit a kill.
19380         (dse_optimize_stmt): Simplify, now that we found a kill
19381         earlier.
19383 2014-06-04  Richard Biener  <rguenther@suse.de>
19385         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
19386         of accesses with non-invariant address.
19388 2014-06-04  Martin Liska  <mliska@suse.cz>
19390         * cgraph.h (cgraph_make_wrapper): New function introduced.
19391         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
19392         * ipa-inline.h (inline_analyze_function): The function is global.
19393         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
19395 2014-06-04  Martin Liska  <mliska@suse.cz>
19397         * tree.h (private_lookup_attribute_starting): New function.
19398         (lookup_attribute_starting): Likewise.
19399         * tree.c (private_lookup_attribute_starting): Likewise.
19401 2014-06-04  Martin Liska  <mliska@suse.cz>
19403         * cgraph.h (expand_thunk): New argument added.
19404         (address_taken_from_non_vtable_p): New global function.
19405         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
19406         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
19407         * cgraphunit.c (analyze_function): Likewise.
19408         (assemble_thunks_and_aliases): Argument added to call.
19409         (expand_thunk): New argument forces to produce GIMPLE thunk.
19411 2014-06-04  Martin Liska  <mliska@suse.cz>
19413         * coverage.h (coverage_compute_cfg_checksum): Argument added.
19414         * coverage.c (coverage_compute_cfg_checksum): Likewise.
19415         * profile.c (branch_prob): Likewise.
19417 2014-06-04  Martin Jambor  <mjambor@suse.cz>
19419         PR ipa/61340
19420         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
19421         handler for switch on an ipa_ref_use enum.
19422         * ipa-reference.c (analyze_function): Likewise.
19424 2014-06-04  Kai Tietz  <ktietz@redhat.com>
19426         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
19427         from old call-instruction.
19429 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
19431         * config/aarch64/aarch64.c (aarch64_classify_address)
19432         (aarch64_legitimize_reload_address): Support full addressing modes
19433         for vector modes.
19434         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
19435         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
19437 2014-06-03  Andrew Pinski  <apinski@cavium.com>
19439         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
19440         for OP0.
19442 2014-06-03  Andrew Pinski  <apinski@cavium.com>
19444         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
19445         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
19447 2014-06-03  Kai Tietz  <ktietz@redhat.com>
19449         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
19450         for 64-bit ms-abi.
19452 2014-06-03  Dehao Chen  <dehao@google.com>
19454         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
19455         the same loop.
19457 2014-06-03  Marek Polacek  <polacek@redhat.com>
19459         PR c/60439
19460         * doc/invoke.texi: Document -Wswitch-bool.
19461         * function.c (stack_protect_epilogue): Cast controlling expression of
19462         the switch to int.
19463         * gengtype.c (walk_type): Generate switch expression with its
19464         controlling expression cast to int.
19466 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
19468         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
19469         and attiny841.
19470         * config/avr/avr-tables.opt: Regenerate.
19471         * config/avr/t-multilib: Regenerate.
19472         * doc/avr-mmcu.texi: Regenerate.
19474 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
19475             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19477         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
19478         (ata6617c, ata664251): Add new avr35 devices.
19479         (ata6612c): Add new avr4 device.
19480         (ata6613c, ata6614q): Add new avr5 devices.
19481         * config/avr/avr-tables.opt: Regenerate.
19482         * config/avr/t-multilib: Regenerate.
19483         * doc/avr-mmcu.texi: Regenerate.
19485 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19487         * gcc/config/aarch64/aarch64-builtins.c
19488         (aarch64_types_binop_ssu_qualifiers): New static data.
19489         (TYPES_BINOP_SSU): Define.
19490         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
19491         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
19492         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
19493         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
19494         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
19495         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
19496         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
19497         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
19498         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
19499         suffix to builtin function name, remove cast.
19500         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
19501         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
19502         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
19504 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19506         * gcc/config/aarch64/aarch64-builtins.c
19507         (aarch64_types_binop_uus_qualifiers,
19508         aarch64_types_shift_to_unsigned_qualifiers,
19509         aarch64_types_unsigned_shiftacc_qualifiers): Define.
19510         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
19511         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
19512         sqshlu_n, uqshl_n): Update qualifiers.
19513         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
19514         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
19515         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
19516         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
19517         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
19518         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
19519         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
19520         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
19521         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
19522         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
19523         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
19524         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
19525         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
19526         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
19527         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
19528         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
19529         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
19530         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
19531         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
19532         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
19533         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
19534         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
19535         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
19536         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
19537         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
19538         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
19539         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
19541 2014-06-03  Teresa Johnson  <tejohnson@google.com>
19543         * tree-sra.c (modify_function): Record caller nodes after rebuild.
19545 2014-06-02  Jason Merrill  <jason@redhat.com>
19547         PR c++/61020
19548         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
19550 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19552         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
19553         location == 0.
19555 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19557         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
19558         New pattern.
19559         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
19560         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
19561         * config/aarch64/iterators.md (REVERSE): New iterator.
19562         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
19563         (rev_op): New int_attribute.
19564         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
19565         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
19566         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
19567         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
19568         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
19569         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
19570         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
19571         Replace temporary __asm__ with __builtin_shuffle.
19573 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19575         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
19576         mips64r5.
19577         * config/mips/mips-tables.opt: Regenerate.
19578         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
19579         to use mips_isa_rev rather than ISA_MIPS32R2.
19580         * config/mips/mips.h (ISA_MIPS32R3): New define.
19581         (ISA_MIPS32R5): New define.
19582         (ISA_MIPS64R3): New define.
19583         (ISA_MIPS64R5): New define.
19584         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
19585         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
19586         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
19587         and mips64r5.
19588         (MIPS_ISA_SYNCI_SPEC): Likewise.
19589         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
19590         (LINK_SPEC): Added mips32r3 and mips32r5.
19591         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
19592         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
19593         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
19594         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
19595         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
19596         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
19597         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
19599 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19601         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
19602         options.
19603         * config/mips/mips.opt (mxpa): New option.
19604         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
19605         assembler.
19607 2014-06-03  Martin Jambor  <mjambor@suse.cz>
19609         PR ipa/61160
19610         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
19611         thunks.
19613 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19615         PR tree-optimization/61328
19616         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
19617         initialization from find_bswap_or_nop_1.
19618         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
19619         in source_expr2 before using the size value the function sets. Also
19620         make use of init_symbolic_number () in both the old place and
19621         find_bswap_or_nop_load () to avoid reading uninitialized memory when
19622         doing recursion in the GIMPLE_BINARY_RHS case.
19624 2014-06-03  Richard Biener  <rguenther@suse.de>
19626         PR tree-optimization/61383
19627         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
19628         stmts can't trap.
19630 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
19632         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
19633         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
19634         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
19635         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
19636         in this file.
19637         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
19638         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
19639         * system.h: ...here and make it unconditional.
19640         * target.def (conditional_register_usage): Mention
19641         define_register_constraint instead of old-style constraint macros.
19642         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
19643         * doc/tm.texi: Regenerate.
19644         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
19645         protected by !USE_MD_CONSTRAINTS.
19646         * config/frv/frv.md: Remove quote from old version of documentation.
19647         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
19648         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
19649         CONST_DOUBLE_OK_FOR_LETTER.
19650         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
19652 2014-06-02  Andrew Pinski  <apinski@cavium.com>
19654         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
19655         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
19656         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
19657         file whose name depends on -mabi= and -mbig-endian.
19658         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
19659         Handle LP64 better and handle ilp32 too.
19660         (MULTILIB_OPTIONS): Delete.
19661         (MULTILIB_DIRNAMES): Delete.
19663 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
19665         * expr.h: Remove prototypes of functions defined in builtins.c.
19666         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
19667         Remove prototypes of functions defined in builtins.c.
19668         * builtins.h: Update prototype list to include all exported functions.
19669         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
19670         no_c99_libc_has_function): Move to targhooks.c
19671         (build_string_literal, build_call_expr_loc_array,
19672         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
19673         to tree.c.
19674         (expand_builtin_object_size, fold_builtin_object_size): Make static.
19675         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
19676         no_c99_libc_has_function): Relocate from builtins.c.
19677         * tree.c: Include builtins.h.
19678         (build_call_expr_loc_array, build_call_expr_loc_vec,
19679         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
19680         from builtins.c.
19681         * fold-const.h (fold_fma): Move prototype to builtins.h.
19682         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
19683         * asan.c: Include builtins.h.
19684         * cfgexpand.c: Likewise.
19685         * convert.c: Likewise.
19686         * emit-rtl.c: Likewise.
19687         * except.c: Likewise.
19688         * expr.c: Likewise.
19689         * fold-const.c: Likewise.
19690         * gimple-fold.c: Likewise.
19691         * gimple-ssa-strength-reduction.c: Likewise.
19692         * gimplify.c: Likewise.
19693         * ipa-inline.c: Likewise.
19694         * ipa-prop.c: Likewise.
19695         * lto-streamer-out.c: Likewise.
19696         * stmt.c: Likewise.
19697         * tree-inline.c: Likewise.
19698         * tree-object-size.c: Likewise.
19699         * tree-sra.c: Likewise.
19700         * tree-ssa-ccp.c: Likewise.
19701         * tree-ssa-forwprop.c: Likewise.
19702         * tree-ssa-loop-ivcanon.c: Likewise.
19703         * tree-ssa-loop-ivopts.c: Likewise.
19704         * tree-ssa-math-opts.c: Likewise.
19705         * tree-ssa-reassoc.c: Likewise.
19706         * tree-ssa-threadedge.c: Likewise.
19707         * tree-streamer-in.c: Likewise.
19708         * tree-vect-data-refs.c: Likewise.
19709         * tree-vect-patterns.c: Likewise.
19710         * tree-vect-stmts.c: Likewise.
19711         * config/aarch64/aarch64.c: Likewise.
19712         * config/alpha/alpha.c: Likewise.
19713         * config/arc/arc.c: Likewise.
19714         * config/arm/arm.c: Likewise.
19715         * config/avr/avr.c: Likewise.
19716         * config/bfin/bfin.c: Likewise.
19717         * config/c6x/c6x.c: Likewise.
19718         * config/cr16/cr16.c: Likewise.
19719         * config/cris/cris.c: Likewise.
19720         * config/epiphany/epiphany.c: Likewise.
19721         * config/fr30/fr30.c: Likewise.
19722         * config/frv/frv.c: Likewise.
19723         * config/h8300/h8300.c: Likewise.
19724         * config/i386/i386.c: Likewise.
19725         * config/i386/winnt.c: Likewise.
19726         * config/ia64/ia64.c: Likewise.
19727         * config/iq2000/iq2000.c: Likewise.
19728         * config/lm32/lm32.c: Likewise.
19729         * config/m32c/m32c.c: Likewise.
19730         * config/m32r/m32r.c: Likewise.
19731         * config/m68k/m68k.c: Likewise.
19732         * config/mcore/mcore.c: Likewise.
19733         * config/mep/mep.c: Likewise.
19734         * config/microblaze/microblaze.c: Likewise.
19735         * config/mips/mips.c: Likewise.
19736         * config/mmix/mmix.c: Likewise.
19737         * config/mn10300/mn10300.c: Likewise.
19738         * config/moxie/moxie.c: Likewise.
19739         * config/msp430/msp430.c: Likewise.
19740         * config/nds32/nds32.c: Likewise.
19741         * config/pa/pa.c: Likewise.
19742         * config/pdp11/pdp11.c: Likewise.
19743         * config/picochip/picochip.c: Likewise.
19744         * config/rl78/rl78.c: Likewise.
19745         * config/rs6000/rs6000.c: Likewise.
19746         * config/rx/rx.c: Likewise.
19747         * config/s390/s390.c: Likewise.
19748         * config/score/score.c: Likewise.
19749         * config/sh/sh.c: Likewise.
19750         * config/sparc/sparc.c: Likewise.
19751         * config/spu/spu.c: Likewise.
19752         * config/stormy16/stormy16.c: Likewise.
19753         * config/tilegx/tilegx.c: Likewise.
19754         * config/tilepro/tilepro.c: Likewise.
19755         * config/v850/v850.c: Likewise.
19756         * config/vax/vax.c: Likewise.
19757         * config/xtensa/xtensa.c: Likewise.
19759 2014-06-02  Jeff Law  <law@redhat.com>
19761         PR rtl-optimization/61094
19762         * ree.c (combine_reaching_defs): Do not reextend an insn if it
19763         was marked as do_no_reextend.  If a copy is needed to eliminate
19764         an extension, then mark it as do_not_reextend.
19766 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19768         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
19770 2014-06-02  Richard Henderson  <rth@redhat.com>
19772         PR target/61336
19773         * config/alpha/alpha.c (print_operand_address): Allow symbolic
19774         addresses inside asms.  Use output_operand_lossage instead of
19775         gcc_unreachable.
19777 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
19779         PR target/61239
19780         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
19781         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
19783 2014-06-02  Tom de Vries  <tom@codesourcery.com>
19785         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
19786         case that x has VOIDmode.
19788 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
19790         * varasm.c (copy_constant): Delete function.
19791         (build_constant_desc): Don't call it.
19793 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19795         PR target/61154
19796         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
19797         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
19798         with immediate_operand.
19800 2014-06-02  Andreas Schwab  <schwab@suse.de>
19802         * config/ia64/ia64.c
19803         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
19804         pending_data_specs first.
19806 2014-06-02  Richard Biener  <rguenther@suse.de>
19808         PR tree-optimization/61378
19809         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
19810         valueized_anything.
19812 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
19814         * config/i386/constraints.md (Bw): Rename from 'w'.
19815         (Bz): Rename from 'z'.
19816         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
19818 2014-06-01  Kai Tietz  <ktietz@redhat.com>
19820         PR target/61377
19821         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
19822         * config/i386/i386.md (sibcall_insn_operand): Use Bs
19823         instead of m constraint.
19825 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
19827         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
19828         a separate alternative where the scratch operand 2 is marked as
19829         early clobber.
19831 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
19833         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
19834         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
19835         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
19836         and __builtins_arm_get_fpscr.
19837         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19838         __builtins_arm_get_fpscr.
19839         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
19840         __builtins_arm_ldfpscr.
19841         (arm_atomic_assign_expand_fenv): New function.
19842         * config/arm/vfp.md (set_fpscr): New pattern.
19843         (get_fpscr) : Likewise.
19844         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
19845         VUNSPEC_SET_FPSCR.
19846         * doc/extend.texi (AARCH64 Built-in Functions) : Document
19847         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
19849 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
19851         * asan.c (report_error_func): Add SLOW_P argument, use
19852         BUILT_IN_ASAN_*_N if set.
19853         (build_check_stmt): Likewise.
19854         (instrument_derefs): If T has insufficient alignment,
19855         force same handling as for odd sizes.
19857         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
19858         BUILT_IN_ASAN_REPORT_STORE_N): New.
19859         * asan.c (struct asan_mem_ref): Change access_size type to
19860         HOST_WIDE_INT.
19861         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
19862         update_mem_ref_hash_table): Likewise.
19863         (asan_mem_ref_hasher::hash): Hash in a HWI.
19864         (report_error_func): Change size_in_bytes argument to HWI.
19865         Use *_N builtins if size_in_bytes is larger than 16 or not power of
19866         two.
19867         (build_shadow_mem_access): New function.
19868         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
19869         Handle size_in_bytes not power of two or larger than 16.
19870         (instrument_derefs): Don't give up if size_in_bytes is not
19871         power of two or is larger than 16.
19873 2014-05-30  Kai Tietz  <ktietz@redhat.com>
19875         PR target/60104
19876         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
19877         for sibling-tail-calls.
19878         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
19879         to its use.
19880         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
19881         (sibcall_insn_operand): Add check for sibcall_memory_operand.
19883 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19885         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
19886         * config/avr/avr-tables.opt: Regenerate.
19887         * config/avr/t-multilib: Regenerate.
19888         * doc/avr-mmcu.texi: Regenerate.
19890 2014-05-30  Ian Lance Taylor  <iant@google.com>
19892         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
19893         target("sse").
19895 2014-05-30  Tom de Vries  <tom@codesourcery.com>
19897         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19898         Redefine as true.
19900 2014-05-30  Tom de Vries  <tom@codesourcery.com>
19902         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19903         * lra.c (initialize_lra_reg_info_element): Add init of
19904         actual_call_used_reg_set field.
19905         (lra): Call lra_create_live_ranges before lra_inheritance for
19906         -fuse-caller-save.
19907         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19908         -fuse-caller-save.
19909         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
19910         instead of call_used_reg_set for -fuse-caller-save.
19911         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19913 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19915         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
19916         to mov_imm.
19917         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
19919 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
19921         * ira.c (ira_get_dup_out_num): Check for output operands at
19922         the start of the loop.  Handle cases where an included alternative
19923         follows an excluded one.
19925 2014-05-29  Mike Stump  <mikestump@comcast.net>
19927         PR debug/61352
19928         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
19929         post ld passes when lto is used.
19931 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
19933         PR rtl-optimization/61325
19934         * lra-constraints.c (process_address): Rename to process_address_1.
19935         (process_address): New function.
19937 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
19939         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
19940         TYPES_BINOPV): New static data.
19941         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
19942         New builtin.
19943         * config/aarch64/aarch64-simd.md (aarch64_ext,
19944         aarch64_im_lane_boundsi): New patterns.
19945         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
19946         patterns for EXT.
19947         (aarch64_evpc_ext): New function.
19949         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
19951         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
19952         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
19953         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
19954         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
19955         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
19957 2014-05-29  Tom de Vries  <tom@codesourcery.com>
19959         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
19961 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
19962             Richard Sandiford  <rdsandiford@googlemail.com>
19964         * arm/iterators.md (shiftable_ops): New code iterator.
19965         (t2_binop0, arith_shift_insn): New code attributes.
19966         * arm/predicates.md (shift_nomul_operator): New predicate.
19967         * arm/arm.md (insn_enabled): Delete.
19968         (enabled): Remove insn_enabled test.
19969         (*arith_shiftsi): Delete.  Replace with ...
19970         (*<arith_shift_insn>_multsi): ... new pattern.
19971         (*<arith_shift_insn>_shiftsi): ... new pattern.
19972         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
19974 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
19975             Tom de Vries  <tom@codesourcery.com>
19977         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
19978         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
19979         clobber.
19980         (mips_split_call): Use POST_CALL_TMP_REG.
19981         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
19983 2014-05-29  Tom de Vries  <tom@codesourcery.com>
19985         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
19986         with #ifdef STACK_REGS.
19988 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
19990         * varasm.c (get_variable_section): Walk aliases.
19991         (place_block_symbol): Walk aliases.
19993 2014-05-28  Tom de Vries  <tom@codesourcery.com>
19995         Revert:
19996         2014-05-28  Tom de Vries  <tom@codesourcery.com>
19998         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19999         * lra.c (initialize_lra_reg_info_element): Add init of
20000         actual_call_used_reg_set field.
20001         (lra): Call lra_create_live_ranges before lra_inheritance for
20002         -fuse-caller-save.
20003         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20004         -fuse-caller-save.
20005         * lra-constraints.c (need_for_call_save_p): Use
20006         actual_call_used_reg_set instead of call_used_reg_set for
20007         -fuse-caller-save.
20008         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20010 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20012         * doc/md.texi: Document that the % constraint character must
20013         be at the beginning of the string.
20014         * genoutput.c (validate_insn_alternatives): Check that '=',
20015         '+' and '%' only appear at the beginning of a constraint.
20016         * ira.c (commutative_constraint_p): Delete.
20017         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
20018         at the start of the string.
20019         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
20020         duplicate '='s.
20021         * config/arm/neon.md (bicdi3_neon): Likewise.
20022         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
20023         (slt_si, sltu_si): Likewise.
20024         * config/vax/vax.md (sbcdi3): Likewise.
20025         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
20026         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
20027         (mul64): Move '%' to beginning of constraint.
20028         * config/arm/arm.md (*xordi3_insn): Likewise.
20029         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
20030         (xorsi3): Likewise.
20032 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20034         * doc/md.texi: Document the restrictions on the "enabled" attribute.
20036 2014-05-28  Jason Merrill  <jason@redhat.com>
20038         PR c++/47202
20039         * cgraph.h (symtab_node::get_comdat_group_id): New.
20040         * cgraphunit.c (analyze_functions): Call it.
20041         * symtab.c (dump_symtab_node): Likewise.
20042         * tree.c (decl_comdat_group_id): New.
20043         * tree.h: Declare it.
20044         * lto-streamer-out.c (write_symbol): Use it.
20045         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
20047 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20049         PR bootstrap/PR61146
20050         * wide-int.cc: Do not include longlong.h when compiling with clang.
20052 2014-05-28  Richard Biener  <rguenther@suse.de>
20054         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
20055         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
20056         (vrp_visit_assignment_or_call): Print less vertical space.
20057         (vrp_visit_stmt): Likewise.
20058         (vrp_visit_phi_node): Likewise.  For a PHI argument with
20059         VR_VARYING range consider recording it as copy.
20061 2014-05-28  Richard Biener  <rguenther@suse.de>
20063         Revert
20064         2014-05-28  Richard Biener  <rguenther@suse.de>
20066         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20068 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20070         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
20071         sufficiently aligned and an offset is used at the same time.
20072         (expand_expr_real_1): Likewise.
20074 2014-05-28  Richard Biener  <rguenther@suse.de>
20076         PR middle-end/61045
20077         * fold-const.c (fold_comparison): When folding
20078         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
20079         the sign of the remaining constant operand stays the same.
20081 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
20083         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
20084         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
20085         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
20086         to the assembler.
20087         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
20088         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
20089         (m32bit-doubles) Likewise.
20090         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
20091         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
20092         option for RL78.
20094 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20096         * configure.ac ($gcc_cv_ld_clearcap): New test.
20097         * configure: Regenerate.
20098         * config.in: Regenerate.
20099         * config/sol2.opt (mclear-hwcap): New option.
20100         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
20101         * config/sol2-clearcap.map: Moved here from
20102         testsuite/gcc.target/i386/clearcap.map.
20103         * config/sol2-clearcapv2.map: Move here from
20104         gcc.target/i386/clearcapv2.map.
20105         * config/t-sol2 (install): Depend on install-clearcap-map.
20106         (install-clearcap-map): New target.
20107         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
20108         -mclear-hwcap.
20110 2014-05-28  Richard Biener  <rguenther@suse.de>
20112         * hwint.h (*_HALF_WIDE_INT*): Move to ...
20113         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
20114         ... here and remove the rest.
20115         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20117 2014-05-28  Richard Biener  <rguenther@suse.de>
20119         PR tree-optimization/61335
20120         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
20121         new range fails, drop to varying.
20123 2014-05-28  Olivier Hainque  <hainque@adacore.com>
20125         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
20126         (CPP_SPEC): Add entry for -mcpu=8548.
20127         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
20128         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
20130 2014-05-28  Tom de Vries  <tom@codesourcery.com>
20132         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20133         * lra.c (initialize_lra_reg_info_element): Add init of
20134         actual_call_used_reg_set field.
20135         (lra): Call lra_create_live_ranges before lra_inheritance for
20136         -fuse-caller-save.
20137         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20138         -fuse-caller-save.
20139         * lra-constraints.c (need_for_call_save_p): Use
20140         actual_call_used_reg_set instead of call_used_reg_set for
20141         -fuse-caller-save.
20142         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20144 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20145             Tom de Vries  <tom@codesourcery.com>
20147         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
20148         to gccoptlist.
20149         (@item -fuse-caller-save): New item.
20151 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20152             Tom de Vries  <tom@codesourcery.com>
20154         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
20155         OPT_fuse_caller_save.
20157 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20158             Tom de Vries  <tom@codesourcery.com>
20160         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
20161         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
20162         get_call_reg_set_usage.
20163         * resource.c (mark_set_resources, mark_target_live_regs): Use
20164         get_call_reg_set_usage.
20165         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
20166         field.
20167         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
20168         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
20169         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20170         * ira-build.c (ira_create_allocno): Init
20171         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20172         (create_cap_allocno, propagate_allocno_info)
20173         (propagate_some_info_from_allocno)
20174         (copy_info_to_removed_store_destinations): Handle
20175         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20176         * ira-costs.c (ira_tune_allocno_costs): Use
20177         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
20179 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20180             Tom de Vries  <tom@codesourcery.com>
20182         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
20183         and function_used_regs_valid fields.
20184         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
20185         find_all_hard_reg_sets.
20186         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
20187         (get_call_reg_set_usage): New function.
20188         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
20189         * regs.h (get_call_reg_set_usage): Declare.
20191 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20193         PR libgcc/61152
20194         * config/dbx.h (License): Add Runtime Library Exception.
20195         * config/newlib-stdint.h (License): Same.
20196         * config/rtems.h (License): Same
20197         * config/initfini-array.h (License): Same
20198         * config/v850/v850.h (License): Same.
20199         * config/v850/v850-opts.h (License): Same
20200         * config/v850/rtems.h (License): Same.
20202 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20204         PR target/61044
20205         * doc/extend.texi (Local Labels): Note that label differences are
20206         not supported for AVR.
20208 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20209             Olivier Hainque  <hainque@adacore.com>
20211         * rtl.h (set_for_reg_notes): Declare.
20212         * emit-rtl.c (set_for_reg_notes): New function.
20213         (set_unique_reg_note): Use it.
20214         * optabs.c (add_equal_note): Likewise
20216 2014-05-27  Andrew Pinski  <apinski@cavium.com>
20218         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
20219         Use <w> for the register in assembly template.
20220         (stack_protect_test): Use the mode of operands[0] for the result.
20221         (stack_protect_test_<mode>): Use <w> for the register
20222         in assembly template.
20224 2014-05-27  DJ Delorie  <dj@redhat.com>
20226         * config/rx/rx.c (add_vector_labels): New.
20227         (rx_output_function_prologue): Call it.
20228         (rx_handle_func_attribute): Don't require empty arguments.
20229         (rx_handle_vector_attribute): New.
20230         (rx_attribute_table): Add "vector" attribute.
20231         * doc/extend.texi (interrupt, vector): Document new/changed
20232         RX-specific attributes.
20234         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
20236 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20238         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
20239         predicate to detect a negative quotient.
20241 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20243         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20244         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20245         Add X - Y CMP 0 to X CMP Y transformation.
20246         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20248 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
20250         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20251         before printing.
20253 2014-05-27  Steve Ellcey  <sellcey@mips.com>
20255         * config/mips/mips.c: Add include of cgraph.h.
20257 2014-05-27  Richard Biener  <rguenther@suse.de>
20259         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20261 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
20263         PR libgcc/61152
20264         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
20265         * config/arm/arm-cores.def (License): Same.
20266         * config/arm/arm-opts.h (License): Same.
20267         * config/arm/aout.h (License): Same.
20268         * config/arm/bpabi.h (License): Same.
20269         * config/arm/elf.h (License): Same.
20270         * config/arm/linux-elf.h (License): Same.
20271         * config/arm/linux-gas.h (License): Same.
20272         * config/arm/netbsd-elf.h (License): Same.
20273         * config/arm/uclinux-eabi.h (License): Same.
20274         * config/arm/uclinux-elf.h (License): Same.
20275         * config/arm/vxworks.h (License): Same.
20277 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20279         * config/arm/neon.md (neon_bswap<mode>): New pattern.
20280         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
20281         (arm_init_neon_builtins): Handle NEON_BSWAP.
20282         Define required type nodes.
20283         (arm_expand_neon_builtin): Handle NEON_BSWAP.
20284         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
20285         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
20286         * config/arm/iterators.md (VDQHSD): New mode iterator.
20288 2014-05-27  Richard Biener  <rguenther@suse.de>
20290         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
20291         Try using literal operands when comparing value-ranges failed.
20293 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20295         * ira.c (commutative_operand): Adjust for change to recog_data.
20296         [Missing from previous commit.]
20298 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20300         * system.h (TEST_BIT): New macro.
20301         * recog.h (alternative_mask): New type.
20302         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
20303         (recog_data_d): Replace alternative_enabled_p array with
20304         enabled_alternatives.
20305         (target_recog): New structure.
20306         (default_target_recog, this_target_recog): Declare.
20307         (get_enabled_alternatives, recog_init): Likewise.
20308         * recog.c (default_target_recog, this_target_recog): New variables.
20309         (get_enabled_alternatives): New function.
20310         (extract_insn): Use it.
20311         (recog_init): New function.
20312         (preprocess_constraints, constrain_operands): Adjust for change to
20313         recog_data.
20314         * postreload.c (reload_cse_simplify_operands): Likewise.
20315         * reload.c (find_reloads): Likewise.
20316         * ira-costs.c (record_reg_classes): Likewise.
20317         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
20318         all alternatives after a disabled one would be skipped.
20319         (ira_implicitly_set_insn_hard_regs): Likewise.
20320         * ira.c (ira_setup_alts): Adjust for change to recog_data.
20321         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
20322         with enabled_alternatives.
20323         * lra.c (free_insn_recog_data): Update accordingly.
20324         (lra_update_insn_recog_data): Likewise.
20325         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
20326         * lra-constraints.c (process_alt_operands): Likewise.  Handle
20327         only_alternative as part of the enabled mask.
20328         * target-globals.h (this_target_recog): Declare.
20329         (target_globals): Add a recog field.
20330         (restore_target_globals): Restore this_target_recog.
20331         * target-globals.c: Include recog.h.
20332         (default_target_globals): Initialize recog field.
20333         (save_target_globals): Likewise.
20334         * reginfo.c (reinit_regs): Call recog_init.
20335         * toplev.c (backend_init_target): Likewise.
20337 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20339         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
20340         rather than any named insn's code.
20342 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
20344         PR libgcc/61152
20345         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
20346         * config/arm/arm-cores.def (License): Same.
20348 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
20350         * tree.h (decl_comdat_group): Declare.
20351         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
20352         * tree.c (decl_comdat_group): Here.
20354 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
20356         PR rtl-optimization/61222
20357         * combine.c (simplify_shift_const_1): When moving a PLUS outside
20358         the shift, truncate the PLUS operand to the result mode.
20360 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
20362         PR target/61271
20363         * config/i386/i386.c (ix86_rtx_costs)
20364         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
20365         Fix condition.
20367 2014-05-26  Martin Jambor  <mjambor@suse.cz>
20369         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
20370         subreg uses.
20372 2014-05-26  Richard Biener  <rguenther@suse.de>
20374         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
20375         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
20376         Provide specializations.
20377         (wi::int_traits <HOST_WIDE_INT>,
20378         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
20380 2014-05-26  Alan Modra  <amodra@gmail.com>
20382         PR target/61098
20383         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
20384         params and return a bool.  Remove dead code.  Update comment.
20385         Assert we have a const_int source.  Remove bogus code from
20386         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
20387         handling of constants > 2G and reg_equal note, from..
20388         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
20389         return value.  Update comment.  If we can, use a new pseudo
20390         for intermediate calculations.
20391         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
20392         prototype.
20393         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
20394         call to rs6000_emit_set_const in splitter.
20395         (movdi_internal64+2, +3): Likewise.
20397 2014-05-26  Richard Biener  <rguenther@suse.de>
20399         * system.h: Define __STDC_FORMAT_MACROS before
20400         including inttypes.h.
20401         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
20402         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
20403         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
20404         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
20405         HOST_WIDEST_INT_C): Remove.
20406         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
20407         if C99 inttypes.h is not available.
20408         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
20409         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
20410         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
20411         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
20412         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
20413         (struct output_info): Likewise.
20414         (print_statistics): Adjust.
20415         (dump_bitmap_statistics): Likewise.
20416         * bt-load.c (migrate_btr_defs): Print with PRId64.
20417         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
20418         (MAX_SAFE_MULTIPLIER): Adjust.
20419         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
20420         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
20421         dump_cgraph_node): Likewise.
20422         * final.c (dump_basic_block_info): Likewise.
20423         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
20424         * gcov.c (format_gcov): Likewise.
20425         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
20426         for calculation.
20427         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
20428         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
20429         (inline_small_functions, dump_overall_stats, dump_inline_stats):
20430         Use PRId64 for dumping.
20431         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
20432         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
20433         (add_allocno_hard_regs): Adjust.
20434         * loop-doloop.c (doloop_modify): Print using PRId64.
20435         * loop-iv.c (inverse): Compute in uint64_t.
20436         (determine_max_iter, iv_number_of_iterations): Likewise.
20437         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
20438         Print using PRId64.
20439         * lto-streamer-out.c (write_symbol): Use uint64_t.
20440         * mcf.c (CAP_INFINITY): Use int64_t maximum.
20441         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
20442         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
20443         * modulo-sched.c (const_iteration_count): Use int64_t.
20444         (sms_schedule): Dump using PRId64.
20445         * predict.c (dump_prediction): Likewise.
20446         * pretty-print.h (pp_widest_integer): Remove.
20447         * profile.c (get_working_sets, is_edge_inconsistent,
20448         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
20449         * tree-pretty-print.c (pp_double_int): Remove case handling
20450         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
20451         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
20452         and adjust users.
20453         (pass_optimize_bswap::execute): Remove restriction on hosts.
20454         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
20455         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
20456         * tree.c (widest_int_cst_value): Remove.
20457         * tree.h (widest_int_cst_value): Likewise.
20458         * value-prof.c (dump_histogram_value): Print using PRId64.
20459         * gengtype.c (main): Also inject int64_t.
20460         * ggc-page.c (struct max_alignment): Use int64_t.
20461         * alloc-pool.c (struct allocation_object_def): Likewise.
20462         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
20463         for computation.
20464         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
20465         * doc/tm.texi: Regenerated.
20466         * gengtype-lex.l (IWORD): Handle [u]int64_t.
20467         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
20468         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
20469         mmix_output_register_setting): Use [u]int64_t in prototypes.
20470         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
20471         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
20472         mmix_output_octa, mmix_output_shifted_value): Adjust.
20473         (mmix_intval): Adjust.  Remove unreachable case.
20474         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
20476 2014-05-26  Richard Biener  <rguenther@suse.de>
20478         * configure.ac: Drop __int64 type check.  Insist that we
20479         found uint64_t and int64_t.
20480         * hwint.h (HOST_BITS_PER___INT64): Remove.
20481         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
20482         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
20483         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
20484         (HOST_WIDEST_FAST_INT): Remove __int64 case.
20485         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
20486         for dst_q_src_df_rms_cdt.
20487         * configure: Regenerate.
20488         * config.in: Likewise.
20490 2014-05-26  Michael Tautschnig  <mt@debian.org>
20492         PR target/61249
20493         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
20494         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
20496 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20498         PR rtl-optimization/61278
20499         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
20501 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20503         PR rtl-optimization/61220
20504         Part of PR rtl-optimization/61225
20505         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
20506         insn; skip split_edge for a block with only one successor.
20508 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20510         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
20511         for variables.
20513 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20515         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
20516         (update_vtable_references): New function.
20517         (function_and_variable_visibility): Rewrite also vtable initializers.
20518         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
20520 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20522         * ggc.h (ggc_grow): New function.
20523         * ggc-none.c (ggc_grow): New function.
20524         * ggc-page.c (ggc_grow): Likewise.
20526 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20528         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20529         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
20530         comdat_can_be_unshared_p, cgraph_externally_visible_p,
20531         varpool_externally_visible_p, can_replace_by_local_alias,
20532         update_visibility_by_resolution_info, function_and_variable_visibility,
20533         pass_data_ipa_function_and_variable_visibility,
20534         make_pass_ipa_function_and_variable_visibility,
20535         whole_program_function_and_variable_visibility,
20536         pass_data_ipa_whole_program_visibility,
20537         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
20538         * cgraph.h (cgraph_local_node_p): Declare.
20539         * ipa-visibility.c: New file.
20540         * Makefile.in (OBJS): Add ipa-visiblity.o
20542 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20544         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
20545         that var decl is available.
20547 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20549         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
20550         symtab_node pointer.
20551         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
20552         (find_decls_types_r): Do not walk COMDAT_GROUP.
20553         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
20554         * varasm.c (make_decl_one_only): Use set_comdat_group;
20555         create node if needed.
20556         * ipa-inline-transform.c (save_inline_function_body): Update
20557         way we decl->symtab mapping.
20558         * symtab.c (symtab_hash, hash_node, eq_node
20559         symtab_insert_node_to_hashtable): Remove.
20560         (symtab_register_node): Update.
20561         (symtab_unregister_node): Update.
20562         (symtab_get_node): Reimplement as inline function.
20563         (symtab_add_to_same_comdat_group): Update.
20564         (symtab_dissolve_same_comdat_group_list): Update.
20565         (dump_symtab_base): Update.
20566         (verify_symtab_base): Update.
20567         (symtab_make_decl_local): Update.
20568         (fixup_same_cpp_alias_visibility): Update.
20569         (symtab_nonoverwritable_alias): Update.
20570         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
20571         * ipa.c (update_visibility_by_resolution_info): UPdate.
20572         * bb-reorder.c: Include cgraph.h
20573         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
20574         with comdat groups.
20575         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
20576         * cgraph.c (cgraph_get_create_node): Update.
20577         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
20578         and comdat_group_.
20579         (symtab_get_node): Make inline.
20580         (symtab_insert_node_to_hashtable): Remove.
20581         (symtab_can_be_discarded): Update.
20582         (decl_comdat_group): New function.
20583         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
20584         Update.
20585         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
20586         comdat group name.
20587         (read_comdat_group): New function.
20588         (input_node, input_varpool_node): Use it.
20589         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
20590         comdat groups.
20591         * mips.c (mips_start_unique_function): Likewise.
20592         (ix86_code_end): Likewise.
20593         (rs6000_code_end): Likweise.
20594         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
20596 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20598         * gengtype-state.c (fatal_reading_state): Bring offline.
20599         * optabs.c (widening_optab_handler): Bring offline.
20600         * optabs.h (widening_optab_handler): Likewise.
20601         * final.c (get_attr_length_1): Likewise.
20603 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20605         * sched-int.h (sd_iterator_cond): Manually tail recurse.
20607 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20609         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
20610         (ppc440-compare): Include shift with dot.
20611         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
20612         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
20613         without dot.
20614         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
20615         without dot.
20616         (e6500_sfx2): Include it.
20617         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
20618         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20619         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
20620         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
20621         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
20622         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
20623         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
20624         *lshiftrt_internal1le, *lshiftrt_internal1be,
20625         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
20626         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
20627         *rotldi3_internal10le, *rotldi3_internal10be,
20628         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
20629         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
20630         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
20631         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
20632         define_insns): Use type "shift" in the appropriate alternatives.
20634 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20636         * config/rs6000/rs6000.md (type): Add "logical".  Delete
20637         "fast_compare".
20638         (dot): Adjust comment.
20639         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
20640         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
20641         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
20642         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
20643         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
20644         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
20645         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
20646         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20648         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20649         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20650         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20651         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20652         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20653         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20654         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20655         * config/rs6000/8540.md (ppc8540_su): Adjust.
20656         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20657         cell-cmp-microcoded): Adjust.
20658         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20659         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20660         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20661         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20662         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20663         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20664         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20665         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20666         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20667         Adjust.
20668         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20669         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
20670         Adjust.  Adjust comment.
20671         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20672         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20674 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20676         * config/rs6000/rs6000.md (type): Add "add".
20677         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
20678         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
20679         define_insns): Use it.
20680         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20682         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20683         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20684         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20685         * config/rs6000/601.md (ppc601-integer): Adjust.
20686         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20687         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20688         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20689         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20690         * config/rs6000/8540.md (ppc8540_su): Adjust.
20691         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20692         cell-cmp-microcoded): Adjust.
20693         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20694         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20695         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20696         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20697         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20698         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20699         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20700         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20701         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20702         Adjust.
20703         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20704         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
20705         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20706         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20708 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20710         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
20711         "delayed_compare", "var_delayed_compare".
20712         (var_shift): New attribute.
20713         (cell_micro): Adjust.
20714         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
20715         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
20716         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
20717         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20718         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20719         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20720         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20721         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
20722         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
20723         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20724         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
20725         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
20726         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
20727         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
20728         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
20729         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
20730         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
20731         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
20732         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
20733         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
20734         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
20735         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
20736         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
20737         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20738         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20740         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20741         * config/rs6000/440.md (ppc440-integer): Adjust.
20742         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20743         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
20744         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20745         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20746         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20747         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20748         * config/rs6000/8540.md (ppc8540_su): Adjust.
20749         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20750         cell-cmp-microcoded): Adjust.
20751         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
20752         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20753         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
20754         e500mc64_delayed): Adjust.
20755         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
20756         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
20757         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20758         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
20759         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
20760         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
20761         power6-delayed-compare, power6-var-delayed-compare): Adjust.
20762         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
20763         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
20764         Adjust comment.
20765         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20766         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20768 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20770         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
20771         (bits): New mode_attr.
20772         (idiv_ldiv): Delete mode_attr.
20773         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
20774         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20775         rs6000_adjust_priority, is_nonpipeline_insn,
20776         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20778         * config/rs6000/40x.md (ppc403-idiv): Adjust.
20779         * config/rs6000/440.md (ppc440-idiv): Adjust.
20780         * config/rs6000/476.md (ppc476-idiv): Adjust.
20781         * config/rs6000/601.md (ppc601-idiv): Adjust.
20782         * config/rs6000/603.md (ppc603-idiv): Adjust.
20783         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
20784         ppc620-ldiv): Adjust.
20785         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
20786         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
20787         * config/rs6000/8540.md (ppc8540_divide): Adjust.
20788         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
20789         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
20790         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
20791         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
20792         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
20793         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
20794         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
20795         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
20796         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
20797         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
20798         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
20799         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
20800         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
20801         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
20802         * config/rs6000/titan.md (titan_fxu_div): Adjust.
20804 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20806         * config/rs6000/rs6000.md (type): Delete "insert_word",
20807         "insert_dword".  Add "insert".
20808         (size): Update comment.
20809         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20810         insn_must_be_first_in_group): Adjust.
20811         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20812         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20813         *insvsi_internal6, insvdi_internal): Adjust.
20815         * config/rs6000/40x.md (ppc403-integer): Adjust.
20816         * config/rs6000/440.md (ppc440-integer): Adjust.
20817         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
20818         * config/rs6000/601.md (ppc601-integer): Adjust.
20819         * config/rs6000/603.md (ppc603-integer): Adjust.
20820         * config/rs6000/6xx.md (ppc604-integer): Adjust.
20821         * config/rs6000/7450.md (ppc7450-integer): Adjust.
20822         * config/rs6000/7xx.md (ppc750-integer): Adjust.
20823         * config/rs6000/8540.md (ppc8540_su): Adjust.
20824         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
20825         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
20826         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20827         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
20828         * config/rs6000/e5500.md (e5500_sfx): Adjust.
20829         * config/rs6000/e6500.md (e6500_sfx): Adjust.
20830         * config/rs6000/mpc.md (mpccore-integer): Adjust.
20831         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
20832         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
20833         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
20834         * config/rs6000/power7.md (power7-integer): Adjust.
20835         * config/rs6000/power8.md (power8-1cyc): Adjust.
20836         * config/rs6000/rs64.md (rs64a-integer): Adjust.
20837         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20839 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20841         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
20842         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
20843         (size): New attribute.
20844         (dot): New attribute.
20845         (cell_micro): Adjust.
20846         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
20847         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
20848         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
20849         umuldi3_highpart): Adjust.
20850         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20851         rs6000_adjust_priority, is_nonpipeline_insn,
20852         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20854         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
20855         ppc405-imul3): Adjust.
20856         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
20857         * config/rs6000/476.md (ppc476-imul): Adjust.
20858         * config/rs6000/601.md (ppc601-imul): Adjust.
20859         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
20860         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
20861         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
20862         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
20863         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
20864         Adjust.
20865         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
20866         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
20867         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
20868         cell-imul): Adjust.
20869         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
20870         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
20871         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
20872         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
20873         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
20874         * config/rs6000/mpc.md (mpccore-imul): Adjust.
20875         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
20876         power4-lmul, power4-imul, power4-imul3): Adjust.
20877         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
20878         power5-lmul, power5-imul, power5-imul3): Adjust.
20879         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
20880         power6-lmul, power6-imul, power6-imul3): Adjust.
20881         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
20882         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
20884         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
20885         rs64a-lmul): Adjust.
20886         * config/rs6000/titan.md (titan_imul): Adjust.
20888 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20890         * config/rs6000/rs6000.md (type): Add new value "halfmul".
20891         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
20892         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
20893         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
20894         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
20895         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
20896         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
20897         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
20898         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
20899         * config/rs6000/titan.md: Delete nonsensical comment.
20900         (titan_imul): Add type imul3.
20901         (titan_mulhw): Remove type imul3; add type halfmul.
20903 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20905         * config/rs6000/rs6000.md (type): Reorder, reformat.
20907 2014-05-23  Martin Jambor  <mjambor@suse.cz>
20909         PR tree-optimization/53787
20910         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
20911         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
20912         analysis_done, update all uses.
20913         * ipa-prop.c: Include domwalk.h
20914         (param_analysis_info): Removed.
20915         (param_aa_status): New type.
20916         (ipa_bb_info): Likewise.
20917         (func_body_info): Likewise.
20918         (ipa_get_bb_info): New function.
20919         (aa_overwalked): Likewise.
20920         (find_dominating_aa_status): Likewise.
20921         (parm_bb_aa_status_for_bb): Likewise.
20922         (parm_preserved_before_stmt_p): Changed to use new param AA info.
20923         (load_from_unmodified_param): Accept func_body_info as a parameter
20924         instead of parms_ainfo.
20925         (parm_ref_data_preserved_p): Changed to use new param AA info.
20926         (parm_ref_data_pass_through_p): Likewise.
20927         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
20928         (compute_complex_assign_jump_func): Changed to use new param AA info.
20929         (compute_complex_ancestor_jump_func): Likewise.
20930         (ipa_compute_jump_functions_for_edge): Likewise.
20931         (ipa_compute_jump_functions): Removed.
20932         (ipa_compute_jump_functions_for_bb): New function.
20933         (ipa_analyze_indirect_call_uses): Likewise, moved variable
20934         declarations down.
20935         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
20936         and info, moved variable declarations down.
20937         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
20938         node and info.
20939         (ipa_analyze_stmt_uses): Likewise.
20940         (ipa_analyze_params_uses): Removed.
20941         (ipa_analyze_params_uses_in_bb): New function.
20942         (ipa_analyze_controlled_uses): Likewise.
20943         (free_ipa_bb_info): Likewise.
20944         (analysis_dom_walker): New class.
20945         (ipa_analyze_node): Handle node-specific forbidden analysis,
20946         initialize and free func_body_info, use dominator walker.
20947         (ipcp_modif_dom_walker): New class.
20948         (ipcp_transform_function): Create and free func_body_info, use
20949         ipcp_modif_dom_walker, moved a lot of functionality there.
20951 2014-05-23  Marek Polacek  <polacek@redhat.com>
20952             Jakub Jelinek  <jakub@redhat.com>
20954         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
20955         * gcc.c (sanitize_spec_function): Likewise.
20956         * convert.c (convert_to_integer): Include "ubsan.h".  Add
20957         floating-point to integer instrumentation.
20958         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
20959         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
20960         SANITIZE_NONDEFAULT.
20961         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
20962         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
20963         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
20964         * ubsan.c: Include "realmpfr.h" and "dfp.h".
20965         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
20966         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
20967         float/double/long double.
20968         (ubsan_instrument_float_cast): New function.
20969         * ubsan.h (ubsan_instrument_float_cast): Declare.
20971 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
20973         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
20974         predicate.
20975         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
20976         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
20977         Adjust for tailcalling through registers.
20978         * config/aarch64/aarch64.h (enum reg_class): New caller save
20979         register class.
20980         (REG_CLASS_NAMES): Likewise.
20981         (REG_CLASS_CONTENTS): Likewise.
20982         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
20983         Allow tailcalling without decls.
20985 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
20987         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20988         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
20990         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
20991         gsi, and variables v_* to v*.
20993 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
20995         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
20997 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
20999         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
21000         * omp-low.c: Update accordingly.
21002         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
21003         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
21004         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
21005         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
21006         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
21007         GF_OMP_TARGET_KIND_UPDATE.
21009         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21010         Explicitly enumerate the expected region types.
21012 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21014         PR other/56955
21015         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
21016         documentation; the old documentation didn't clearly state the
21017         constraints on the contents of the pointed-to storage.
21019 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21021         Fix bootstrap error on ia64
21022         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
21023         Return default value.
21025 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21027         PR tree-optimization/54733
21028         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
21029         (CMPNOP): Define.
21030         (find_bswap_or_nop_load): New.
21031         (find_bswap_1): Renamed to ...
21032         (find_bswap_or_nop_1): This. Also add support for memory source.
21033         (find_bswap): Renamed to ...
21034         (find_bswap_or_nop): This. Also add support for memory source and
21035         detection of bitwise operations equivalent to load in target
21036         endianness.
21037         (execute_optimize_bswap): Likewise. Also move its leading comment back
21038         in place and split statement transformation into ...
21039         (bswap_replace): This.
21041 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21043         PR rtl-optimization/61215
21044         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
21045         simplify_gen_subreg until final substitution.
21047 2014-05-23  Alan Modra  <amodra@gmail.com>
21049         PR target/61231
21050         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
21051         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
21052         Use "Y" constraint rather than "m".
21054 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
21056         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
21057         define.
21058         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
21059         New function declaration.
21060         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
21061         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
21062         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
21063         (aarch64_init_builtins) : Initialize builtins
21064         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21065         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21066         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
21067         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
21068         and __builtins_aarch64_set_fpsr.
21069         (aarch64_atomic_assign_expand_fenv): New function.
21070         * config/aarch64/aarch64.md (set_fpcr): New pattern.
21071         (get_fpcr) : Likewise.
21072         (set_fpsr) : Likewise.
21073         (get_fpsr) : Likewise.
21074         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
21075          and UNSPECV_SET_FPSR.
21076         * doc/extend.texi (AARCH64 Built-in Functions) : Document
21077         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21078         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21080 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21082         PR rtl-optimization/60969
21083         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
21084         constraints.  Set up mem cost for NO_REGS case.
21086 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
21088         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
21090 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
21092         * config/darwin.c: Include "lto-section-names.h".
21093         (LTO_SEGMENT_NAME): Don't define.
21094         * config/i386/winnt.c: Include "lto-section-names.h".
21095         * lto-streamer.c: Include "lto-section-names.h".
21096         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
21097         * lto-wrapper.c: Include "lto-section-names.h".
21098         (LTO_SECTION_NAME_PREFIX): Don't define.
21099         * lto-section-names.h: New file.
21100         * cgraphunit.c: Include "lto-section-names.h".
21102 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
21104         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
21106 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
21108         PR target/61208
21109         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
21111 2014-05-22  Nick Clifton  <nickc@redhat.com>
21113         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
21115 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
21117         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
21118         -> (T)A transformation to integer types.
21120 2014-05-22  Teresa Johnson  <tejohnson@google.com>
21122         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
21123         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
21124         (gcov_rewrite): Use gcov_nonruntime_assert.
21125         (gcov_open): Ditto.
21126         (gcov_write_words): Ditto.
21127         (gcov_write_length): Ditto.
21128         (gcov_read_words): Use gcov_nonruntime_assert, and remove
21129         gcc_assert from IN_LIBGCOV code.
21130         (gcov_read_summary): Use gcov_error to flag profile corruption.
21131         (gcov_sync): Use gcov_nonruntime_assert.
21132         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
21133         (gcov_histo_index): Use gcov_nonruntime_assert.
21134         (static void gcov_histogram_merge): Ditto.
21135         (compute_working_sets): Ditto.
21136         * gcov-io.h (gcov_nonruntime_assert): Define.
21137         (gcov_error): Define for !IN_LIBGCOV
21139 2014-05-22  Richard Biener  <rguenther@suse.de>
21141         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21142         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
21143         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
21144         and deallocation site.
21145         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21146         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
21147         passing through the incoming points-to set.
21148         (handle_lhs_call): Use flags argument instead of recomputing it.
21149         (find_func_aliases_for_call): Call handle_lhs_call with proper
21150         call return flags.
21152 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
21154         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
21155         all padding bits in REAL_VALUE_TYPE are cleared.
21157 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21159         Cleanup and improve multipass_dfa_lookahead_guard
21160         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
21161         (core2i7_first_cycle_multipass_begin,)
21162         (core2i7_first_cycle_multipass_issue,)
21163         (core2i7_first_cycle_multipass_backtrack): Update signature.
21164         * config/ia64/ia64.c
21165         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
21166         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
21167         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
21168         hook definition.
21169         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
21170         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
21171         values.
21172         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
21173         return values.
21174         * doc/tm.texi: Regenerate.
21175         * doc/tm.texi.in
21176         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
21177         * haifa-sched.c (ready_try): Make signed to allow negative values.
21178         (rebug_ready_list_1): Update.
21179         (choose_ready): Simplify.
21180         (sched_extend_ready_list): Update.
21182 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21184         Remove IA64 speculation tweaking flags
21185         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
21186         speculation tuning flags.
21187         (msched-prefer-non-data-spec-insns,)
21188         (msched-prefer-non-control-spec-insns): Obsolete options.
21189         * haifa-sched.c (choose_ready): Remove handling of
21190         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21191         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
21192         and PREFER_NON_DATA_SPEC.
21193         * sel-sched.c (process_spec_exprs): Remove handling of
21194         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21196 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21198         Improve scheduling debug output
21199         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
21200         (advance_one_cycle): Update.
21201         (schedule_insn, queue_to_ready): Add debug printouts.
21202         (debug_ready_list_1): New static function.
21203         (debug_ready_list): Update.
21204         (max_issue): Add debug printouts.
21205         (dump_insn_stream): New static function.
21206         (schedule_block): Use it.  Also better indent printouts.
21208 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21210         Fix sched_insn debug counter
21211         * haifa-sched.c (schedule_insn): Update.
21212         (struct haifa_saved_data): Add nonscheduled_insns_begin.
21213         (save_backtrack_point, restore_backtrack_point): Update.
21214         (first_nonscheduled_insn): New static function.
21215         (queue_to_ready, choose_ready): Use it.
21216         (schedule_block): Init nonscheduled_insns_begin.
21217         (sched_emit_insn): Update.
21220 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
21222         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
21223         to GENERAL_REGS.
21224         (aarch64_secondary_reload) : LikeWise.
21225         (aarch64_class_max_nregs) : Remove CORE_REGS.
21226         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
21227         (REG_CLASS_NAMES) : Likewise.
21228         (REG_CLASS_CONTENTS) : LikeWise.
21229         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
21231 2014-05-21  Guozhi Wei  <carrot@google.com>
21233         PR target/61202
21234         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
21235         constraint.
21236         (vqdmulhq_n_s16): Likewise.
21238 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21240         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21242 2014-05-21  Marek Polacek  <polacek@redhat.com>
21244         PR sanitizer/61272
21245         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21247 2014-05-21  Martin Jambor  <mjambor@suse.cz>
21249         * doc/invoke.texi (Optimize Options): Document parameters
21250         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21251         ipa-cp-array-index-hint-bonus.
21253 2014-05-21  Mark Wielaard  <mjw@redhat.com>
21255         PR debug/16063
21256         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21257         version >= 3 or not strict DWARF.
21258         * langhooks.h (struct lang_hooks_for_types): Add
21259         enum_underlying_base_type.
21260         * langhooks.c (lhd_enum_underlying_base_type): New function.
21261         * gcc/langhooks.h (struct lang_hooks_for_types): Add
21262         enum_underlying_base_type.
21263         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
21264         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
21265         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
21267 2014-05-21  Richard Biener  <rguenther@suse.de>
21269         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
21271 2014-05-21  John Marino  <gnugcc@marino.st>
21273         * config.gcc (*-*-dragonfly*): New target.
21274         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
21275         * configure: Regenerate.
21276         * config/dragonfly-stdint.h: New.
21277         * config/dragonfly.h: New.
21278         * config/dragonfly.opt: New.
21279         * config/i386/dragonfly.h: New.
21280         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
21282 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21284         * tree.def (VOID_CST): New.
21285         * tree-core.h (TI_VOID): New.
21286         * tree.h (void_node): New.
21287         * tree.c (tree_node_structure_for_code, tree_code_size)
21288         (iterative_hash_expr): Handle VOID_CST.
21289         (build_common_tree_nodes): Initialize void_node.
21291 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
21293         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
21294         functions.
21295         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
21297         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
21298         more places.
21300         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
21301         flag_reorder_blocks_and_partition.
21302         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
21304 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
21306         PR target/54236
21307         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
21308         constraints.
21309         (*addc_r_t): Add new insn_and_split.
21311 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
21313         PR middle-end/61252
21314         * omp-low.c (handle_simd_reference): New function.
21315         (lower_rec_input_clauses): Use it.  Defer adding reference
21316         initialization even for reduction without placeholder if in simd,
21317         handle it properly later on.
21319 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21321         PR tree-optimization/60899
21322         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
21323         assume all static symbols will have definition wile parsing and
21324         check the do have definition later in compilation; check that
21325         variable referring symbol will be output before concluding that
21326         reference is safe; be conservative for referring local statics;
21327         be more precise about when comdat is output in other partition.
21329 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21331         PR bootstrap/60984
21332         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
21333         parameter.
21334         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
21335         (ipa_inline): Loop inline_to_all_callers until no more aliases
21336         are removed.
21338 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21340         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
21341         set writeonly flag only for vars actually written to.
21343 2014-05-20  Dehao Chen  <dehao@google.com>
21345         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
21346         and callee count to get clone count.
21347         * tree-inline.c (expand_call_inline): Use callee count instead of bb
21348         count in copy_body.
21350 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
21352         PR rtl-optimization/61243
21353         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
21355 2014-05-20  Xinliang David Li  <davidxl@google.com>
21357         * cgraphunit.c (walk_polymorphic_call_targets): Add
21358         dbgcnt and fopt-info support.
21359         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
21360         * ipa-devirt.c (ipa_devirt): Ditto.
21361         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
21362         * ipa.c (walk_polymorphic_call_targets): Ditto.
21363         * gimple-fold.c (fold_gimple_assign): Ditto.
21364         (gimple_fold_call): Ditto.
21365         * dbgcnt.def: New counter.
21367 2014-05-20  DJ Delorie  <dj@redhat.com>
21369         * config/msp430/msp430.md (split): Don't allow subregs when
21370         splitting SImode adds.
21371         (andneghi): Fix subtraction logic.
21372         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
21374 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21376         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
21377         symbols.
21378         * except.c (switch_to_exception_section, resolve_unique_section,
21379         get_named_text_section, default_function_rodata_section,
21380         align_variable, get_block_for_decl, default_section_type_flags):
21381         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
21382         * symtab.c (symtab_add_to_same_comdat_group,
21383         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
21384         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
21385         Likewise.
21386         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
21387         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
21388         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21389         (c6x_function_in_section_p): Likewise.
21390         * config/darwin.c (machopic_select_section): Likewise.
21391         * config/arm/arm.c (arm_function_in_section_p): Likewise.
21392         * config/mips/mips.c (mips_function_rodata_section): Likewise.
21393         * config/mep/mep.c (mep_select_section): LIkewise.
21394         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21396 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21398         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
21399         EH region of calls to pure functions that can throw an exception.
21400         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
21401         (copy_reference_ops_from_call): Also copy the EH region of the call if
21402         it can throw an exception.
21404 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21406         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
21407         nested VEC_SELECTs that are inverses of each other.
21409 2014-05-20  Richard Biener  <rguenther@suse.de>
21411         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
21412         (extract_and_process_scc_for_name): not here.
21413         (cond_dom_walker::before_dom_children): Only process
21414         stmts that end the BB in interesting ways.
21415         (run_scc_vn): Mark param uses as visited.
21417 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21419         * config/arm/arm.md (arith_shiftsi): Do not predicate for
21420         arm_restrict_it.
21422 2014-05-20  Nick Clifton  <nickc@redhat.com>
21424         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21425         (msp430_gimplify_va_arg_expr): New function.
21426         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
21428         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
21429         operand 0 in order to prevent confusion about the number of
21430         registers involved.
21432 2014-05-20  Richard Biener  <rguenther@suse.de>
21434         PR tree-optimization/61221
21435         * tree-ssa-pre.c (el_to_update): Remove.
21436         (eliminate_dom_walker::before_dom_children): Handle released
21437         VDEFs by value-numbering them to the associated VUSE.  Update
21438         stmt immediately for substituted call address.
21439         (eliminate): Remove delayed stmt updating code.
21440         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
21441         possibly late re-numbered vuses.
21442         (vn_reference_lookup_2): Adjust.
21443         (vn_reference_lookup_pieces): Likewise.
21444         (vn_reference_lookup): Likewise.
21446 2014-05-20  Richard Biener  <rguenther@suse.de>
21448         * config.gcc: Remove need_64bit_hwint.
21449         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
21450         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
21451         it to be true.
21452         * config.in: Regenerate.
21453         * configure: Likewise.
21455 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
21457         * doc/extend.texi: Create Label Attributes section,
21458         move all label attributes into it and reference it.
21460 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
21462         * arm.c (thumb1_reorg): When scanning backwards skip anything
21463         that's not a proper insn.
21465 2014-05-19  Richard Biener  <rguenther@suse.de>
21467         PR tree-optimization/61221
21468         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21469         Do nothing for unreachable blocks.
21470         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
21471         Improve unreachability detection.
21473 2014-05-19  Richard Biener  <rguenther@suse.de>
21475         PR tree-optimization/61209
21476         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
21478 2014-05-19  Nick Clifton  <nickc@redhat.com>
21480         * except.c (init_eh): Fix computation of builtin setjmp buffer
21481         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
21483 2014-05-19  Richard Biener  <rguenther@suse.de>
21485         PR tree-optimization/61184
21486         * tree-vrp.c (is_negative_overflow_infinity): Use
21487         TREE_OVERFLOW_P and do that check first.
21488         (is_positive_overflow_infinity): Likewise.
21489         (is_overflow_infinity): Likewise.
21490         (vrp_operand_equal_p): Properly treat operands with
21491         differing overflow as not equal.
21493 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
21495         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
21496         shift simplification where it was intended.
21498 2014-05-19  Christian Bruel  <christian.bruel@st.com>
21500         PR target/61195
21501         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
21503 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
21505         PR target/61084
21506         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
21507         than wide_int.
21509 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21511         * reg-notes.def (CROSSING_JUMP): Likewise.
21512         * rtl.h (rtx_def): Update comment for jump flag.
21513         (CROSSING_JUMP_P): Define.
21514         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
21515         of a REG_CROSSING_JUMP note.
21516         * cfghooks.c (tidy_fallthru_edges): Likewise.
21517         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
21518         * emit-rtl.c (try_split): Likewise.
21519         * haifa-sched.c (sched_create_recovery_edges): Likewise.
21520         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
21521         * jump.c (redirect_jump_2): Likewise.
21522         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
21523         (relax_delay_slots): Likewise.
21524         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
21525         (bbit_di): Likewise.
21526         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
21527         * config/sh/sh.md (jump_compact): Likewise.
21528         * bb-reorder.c (rotate_loop): Likewise.
21529         (pass_duplicate_computed_gotos::execute): Likewise.
21530         (add_reg_crossing_jump_notes): Rename to...
21531         (update_crossing_jump_flags): ...this.
21532         (pass_partition_blocks::execute): Update accordingly.
21534 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21536         * tree.h: Remove extraneous template <>.
21538 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21540         * ipa.c (symtab_remove_unreachable_nodes): Remove
21541         symbol from comdat group if its body was eliminated.
21542         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
21543         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
21544         (symtab_unregister_node): ... this one.
21545         (verify_symtab_base): More strict checking of comdats.
21546         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
21548 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21550         * tree-pass.h (make_pass_ipa_comdats): New pass.
21551         * timevar.def (TV_IPA_COMDATS): New timevar.
21552         * passes.def (pass_ipa_comdats): Add.
21553         * Makefile.in (OBJS): Add ipa-comdats.o
21554         * ipa-comdats.c: New file.
21556 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21558         * ipa.c (update_visibility_by_resolution_info): New function.
21559         (function_and_variable_visibility): Use it.
21561 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21563         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
21564         New functions.
21565         (FOR_EACH_DEFINED_SYMBOL): New macro.
21566         (varpool_first_static_initializer, varpool_next_static_initializer,
21567         varpool_first_defined_variable, varpool_next_defined_variable):
21568         Fix comments.
21569         (symtab_in_same_comdat_p): Correctly deal with inline functions.
21571 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21573         * ggc-page.c (ggc_handle_finalizers): Add comment.
21575 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21577         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
21578         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
21579         (ggc_internal_cleared_alloc): Likewise.
21580         * ggc-page.c (finalizer): New class.
21581         (vec_finalizer): Likewise.
21582         (globals::finalizers): New member.
21583         (globals::vec_finalizers): Likewise.
21584         (ggc_internal_alloc): Record the finalizer if any for the block being
21585         allocated.
21586         (ggc_handle_finalizers): New function.
21587         (ggc_collect): Call ggc_handle_finalizers.
21588         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
21589         finalizer.
21590         (ggc_internal_cleared_alloc): Likewise.
21591         (finalize): New function.
21592         (need_finalization_p): Likewise.
21593         (ggc_alloc): Install the type's destructor as the finalizer if it
21594         might do something.
21595         (ggc_cleared_alloc): Likewise.
21596         (ggc_vec_alloc): Likewise.
21597         (ggc_cleared_vec_alloc): Likewise.
21599 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21601         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
21603 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21605         * alias.c (record_alias_subset): Adjust.
21606         * bitmap.c (bitmap_element_allocate): Likewise.
21607         (bitmap_gc_alloc_stat): Likewise.
21608         * cfg.c (init_flow): Likewise.
21609         (alloc_block): Likewise.
21610         (unchecked_make_edge): Likewise.
21611         * cfgloop.c (alloc_loop): Likewise.
21612         (flow_loops_find): Likewise.
21613         (rescan_loop_exit): Likewise.
21614         * cfgrtl.c (init_rtl_bb_info): Likewise.
21615         * cgraph.c (insert_new_cgraph_node_version): Likewise.
21616         (cgraph_allocate_node): Likewise.
21617         (cgraph_create_edge_1): Likewise.
21618         (cgraph_allocate_init_indirect_info): Likewise.
21619         * cgraphclones.c (cgraph_clone_edge): Likewise.
21620         * cgraphunit.c (add_asm_node): Likewise.
21621         (init_lowered_empty_function): Likewise.
21622         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
21623         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21624         (alpha_use_linkage): Likewise.
21625         * config/arc/arc.c (arc_init_machine_status): Likewise.
21626         * config/arm/arm.c (arm_init_machine_status): Likewise.
21627         * config/avr/avr.c (avr_init_machine_status): Likewise.
21628         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21629         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
21630         * config/cris/cris.c (cris_init_machine_status): Likewise.
21631         * config/darwin.c (machopic_indirection_name): Likewise.
21632         (darwin_build_constant_cfstring): Likewise.
21633         (darwin_enter_string_into_cfstring_table): Likewise.
21634         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
21635         * config/frv/frv.c (frv_init_machine_status): Likewise.
21636         * config/i386/i386.c (get_dllimport_decl): Likewise.
21637         (ix86_init_machine_status): Likewise.
21638         (assign_386_stack_local): Likewise.
21639         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21640         (i386_pe_maybe_record_exported_symbol): Likewise.
21641         (i386_pe_record_stub): Likewise.
21642         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21643         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21644         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21645         (m32c_note_pragma_address): Likewise.
21646         * config/mep/mep.c (mep_init_machine_status): Likewise.
21647         (mep_note_pragma_flag): Likewise.
21648         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21649         (mips16_local_alias): Likewise.
21650         (mips_init_machine_status): Likewise.
21651         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21652         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21653         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
21654         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
21655         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
21656         * config/pa/pa.c (pa_init_machine_status): Likewise.
21657         (pa_get_deferred_plabel): Likewise.
21658         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
21659         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21660         (rs6000_init_machine_status): Likewise.
21661         (output_toc): Likewise.
21662         * config/s390/s390.c (s390_init_machine_status): Likewise.
21663         * config/score/score.c (score_output_external): Likewise.
21664         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21665         * config/spu/spu.c (spu_init_machine_status): Likewise.
21666         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
21667         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
21668         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21669         * coverage.c (coverage_end_function): Likewise.
21670         * dbxout.c (dbxout_init): Likewise.
21671         * doc/gty.texi: Don't mention variable_size attribute.
21672         * dwarf2cfi.c (new_cfi): Adjust.
21673         (new_cfi_row): Likewise.
21674         (copy_cfi_row): Likewise.
21675         (create_cie_data): Likewise.
21676         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
21677         (new_loc_descr): Likewise.
21678         (find_AT_string_in_table): Likewise.
21679         (add_addr_table_entry): Likewise.
21680         (new_die): Likewise.
21681         (add_var_loc_to_decl): Likewise.
21682         (clone_die): Likewise.
21683         (clone_as_declaration): Likewise.
21684         (break_out_comdat_types): Likewise.
21685         (new_loc_list): Likewise.
21686         (add_loc_descr_to_each): Likewise.
21687         (add_location_or_const_value_attribute): Likewise.
21688         (add_linkage_name): Likewise.
21689         (lookup_filename): Likewise.
21690         (dwarf2out_var_location): Likewise.
21691         (new_line_info_table): Likewise.
21692         (dwarf2out_init): Likewise.
21693         (mem_loc_descriptor): Likewise.
21694         (loc_descriptor): Likewise.
21695         (add_const_value_attribute): Likewise.
21696         (tree_add_const_value_attribute): Likewise.
21697         (comp_dir_string): Likewise.
21698         (dwarf2out_vms_debug_main_pointer): Likewise.
21699         (string_cst_pool_decl): Likewise.
21700         * emit-rtl.c (set_mem_attrs): Likewise.
21701         (get_reg_attrs): Likewise.
21702         (start_sequence): Likewise.
21703         (init_emit): Likewise.
21704         (init_emit_regs): Likewise.
21705         * except.c (init_eh_for_function): Likewise.
21706         (gen_eh_region): Likewise.
21707         (gen_eh_region_catch): Likewise.
21708         (gen_eh_landing_pad): Likewise.
21709         (add_call_site): Likewise.
21710         * function.c (add_frame_space): Likewise.
21711         (insert_temp_slot_address): Likewise.
21712         (assign_stack_temp_for_type): Likewise.
21713         (get_hard_reg_initial_val): Likewise.
21714         (allocate_struct_function): Likewise.
21715         (prepare_function_start): Likewise.
21716         (types_used_by_var_decl_insert): Likewise.
21717         * gengtype.c (variable_size_p): Remove function.
21718         (enum alloc_quantity): Remove enum.
21719         (write_typed_alloc_def): Remove function.
21720         (write_typed_struct_alloc_def): Likewise.
21721         (write_typed_typedef_alloc_def): Likewise.
21722         (write_typed_alloc_defns): Likewise.
21723         (main): Adjust.
21724         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
21725         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
21726         * ggc.h (ggc_alloc): new function.
21727         (ggc_cleared_alloc): Likewise.
21728         (ggc_vec_alloc): Template on type of vector element, and remove
21729         element size argument.
21730         (ggc_cleared_vec_alloc): Likewise.
21731         * gimple.c (gimple_build_omp_for): Adjust.
21732         (gimple_copy): Likewise.
21733         * ipa-cp.c (get_replacement_map): Likewise.
21734         (find_aggregate_values_for_callers_subset): Likewise.
21735         (known_aggs_to_agg_replacement_list): Likewise.
21736         * ipa-devirt.c (get_odr_type): Likewise.
21737         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
21738         (read_agg_replacement_chain): Likewise.
21739         * loop-iv.c (get_simple_loop_desc): Likewise.
21740         * lto-cgraph.c (input_node_opt_summary): Likewise.
21741         * lto-section-in.c (lto_new_in_decl_state): Likewise.
21742         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21743         (input_eh_region): Likewise.
21744         (input_eh_lp): Likewise.
21745         (input_cfg): Likewise.
21746         * optabs.c (set_optab_libfunc): Likewise.
21747         (init_tree_optimization_optabs): Likewise.
21748         (set_conv_libfunc): Likewise.
21749         * passes.c (do_per_function_toporder): Likewise.
21750         * rtl.h: Don't use variable_size gty attribute.
21751         * sese.c (if_region_set_false_region): Adjust.
21752         * stringpool.c (gt_pch_save_stringpool): Likewise.
21753         * target-globals.c (save_target_globals): Likewise.
21754         * toplev.c (general_init): Likewise.
21755         * trans-mem.c (record_tm_replacement): Likewise.
21756         (split_bb_make_tm_edge): Likewise.
21757         * tree-cfg.c (move_sese_region_to_fn): Likewise.
21758         * tree-data-ref.h (lambda_vector_new): Likewise.
21759         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
21760         * tree-iterator.c (tsi_link_before): Likewise.
21761         (tsi_link_after): Likewise.
21762         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
21763         * tree-ssa-loop-niter.c (record_estimate): Likewise.
21764         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
21765         * tree-ssa-operands.h: Don't use variable_size gty attribute.
21766         * tree-ssa.c (init_tree_ssa): Adjust.
21767         * tree-ssanames.c (set_range_info): Likewise.
21768         (get_ptr_info): Likewise.
21769         (duplicate_ssa_name_ptr_info): Likewise.
21770         (duplicate_ssa_name_range_info): Likewise.
21771         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
21772         (unpack_ts_fixed_cst_value_fields): Likewise.
21773         * tree.c (build_fixed): Likewise.
21774         (build_real): Likewise.
21775         (build_string): Likewise.
21776         (decl_priority_info): Likewise.
21777         (decl_debug_expr_insert): Likewise.
21778         (decl_value_expr_insert): Likewise.
21779         (decl_debug_args_insert): Likewise.
21780         (type_hash_add): Likewise.
21781         (build_omp_clause): Likewise.
21782         * ubsan.c (decl_for_type_insert): Likewise.
21783         * varasm.c (get_unnamed_section): Likewise.
21784         (get_noswitch_section): Likewise.
21785         (get_section): Likewise.
21786         (get_block_for_section): Likewise.
21787         (create_block_symbol): Likewise.
21788         (build_constant_desc): Likewise.
21789         (create_constant_pool): Likewise.
21790         (force_const_mem): Likewise.
21791         (record_tm_clone_pair): Likewise.
21792         * varpool.c (varpool_create_empty_node): Likewise.
21794 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21796         * dwarf2out.c (tree_add_const_value_attribute): Call
21797         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
21798         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
21799         instead of ggc_internal_<x>alloc_stat.
21800         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
21801         (ggc_realloc): Likewise.
21802         * ggc-none.c (ggc_internal_alloc): Likewise.
21803         (ggc_internal_cleared_alloc): Likewise.
21804         * ggc-page.c: Likewise.
21805         * ggc.h (ggc_internal_alloc_stat): Likewise.
21806         (ggc_internal_alloc): Remove macro.
21807         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
21808         (ggc_internal_cleared_alloc): Remove macro.
21809         (GGC_RESIZEVEC): Adjust.
21810         (ggc_resizevar): Remove macro.
21811         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
21812         (ggc_internal_cleared_vec_alloc_stat): Likewise.
21813         (ggc_internal_vec_cleared_alloc): Remove macro.
21814         (ggc_alloc_atomic_stat): Drop _stat suffix.
21815         (ggc_alloc_atomic): Remove macro.
21816         (ggc_alloc_cleared_atomic): Remove macro.
21817         (ggc_alloc_string_stat): Drop _stat suffix.
21818         (ggc_alloc_string): Remove macro.
21819         (ggc_alloc_rtx_def_stat): Adjust.
21820         (ggc_alloc_tree_node_stat): Likewise.
21821         (ggc_alloc_cleared_tree_node_stat): Likewise.
21822         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
21823         (ggc_alloc_cleared_simd_clone_stat): Likewise.
21824         * gimple.c (gimple_build_omp_for): Likewise.
21825         (gimple_copy): Likewise.
21826         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
21827         * toplev.c (realloc_for_line_map): Adjust.
21828         * tree-data-ref.h (lambda_vector_new): Likewise.
21829         * tree-phinodes.c (allocate_phi_node): Likewise.
21830         * tree.c (grow_tree_vec_stat): Likewise.
21831         * vec.h (va_gc::reserve): Adjust.
21833 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
21835         * config/microblaze/microblaze.c (break_handler): New Declaration.
21836         (microblaze_break_function_p,microblaze_is_break_handler): New.
21837         (compute_frame_size): Use microblaze_break_function_p.
21838         Add the test of break_handler.
21839         (microblaze_function_prologue) : Add the test of variable
21840         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
21841         (microblaze_function_epilogue) : Add the test of break_handler.
21842         (microblaze_globalize_label) : Add the test of break_handler.
21843         Check the name by BREAK_HANDLER_NAME.
21845         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
21847         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
21848         microblaze_is_break_handler test.
21849         (call_internal1,call_value_intern): Use microblaze_break_function_p.
21850         Use SYMBOL_REF_DECL.
21852         * config/microblaze/microblaze-protos.h
21853         (microblaze_break_function_p,microblaze_is_break_handler):
21854         New Declaration.
21856         * doc/extend.texi (MicroBlaze break_handler Functions): Document
21857         new MicroBlaze break_handler functions.
21859 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
21861         * doc/extend.texi (Size of an asm): Move node text according
21862         to its @menu entry position.
21864 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
21866         PR tree-optimization/61140
21867         PR tree-optimization/61150
21868         PR tree-optimization/61197
21869         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
21871 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
21873         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
21875 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
21877         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
21878         __SIZEOF_INT128__ is defined.
21880 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
21882         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
21883         (rs6000_delegitimize_address): Use it.
21885 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
21887         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
21888         inplace argument.  Store the new address in the original MEM when true.
21889         * emit-rtl.c (change_address_1): Likewise.
21890         (adjust_address_1, adjust_automodify_address_1, offset_address):
21891         Update accordingly.
21892         * rtl.h (plus_constant): Add an inplace argument.
21893         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
21894         when true.  Avoid generating (plus X (const_int 0)).
21895         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
21896         in-place.  Pass true to plus_constant.
21897         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
21899 2014-05-16  Dehao Chen  <dehao@google.com>
21901         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
21903 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
21905         PR target/54089
21906         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
21907         patterns.
21908         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
21910 2014-05-16  Dehao Chen  <dehao@google.com>
21912         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
21913         optimize_function_for_size_p.
21914         * regs.h (REG_FREQ_FROM_BB): Likewise.
21916 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
21918         PR target/51244
21919         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
21920         negt_reg_operand cases.
21921         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
21922         predicate.
21923         * config/sh/predicates.md (cbranch_treg_value): Simplify.
21925 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
21927         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
21928         target variants.
21930 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
21932         Revert:
21933         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
21935         * tree-cfg.c (dump_function_to_file): Dump the return type of
21936         functions, in a line to itself before the function body, mimicking
21937         the layout of a C function.
21939 2014-05-16  Dehao Chen  <dehao@google.com>
21941         * cfghooks.c (make_forwarder_block): Use direct computation to
21942         get fall-through edge's count and frequency.
21944 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
21946         * config/arc/arc.c (arc_init): Fix typo in error message.
21947         * config/i386/i386.c (ix86_expand_builtin): Likewise.
21948         (split_stack_prologue_scratch_regno): Likewise.
21949         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
21950         word from error message.
21952 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21954         * ira-costs.c: Fix typo in comment.
21956 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
21958         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
21960 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
21962         * varpool.c (dump_varpool_node): Dump write-only flag.
21963         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
21964         write-only flag.
21965         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
21966         write-only variables.
21967         * ipa.c (process_references): New function.
21968         (set_readonly_bit): New function.
21969         (set_writeonly_bit): New function.
21970         (clear_addressable_bit): New function.
21971         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
21972         fix handling of aliases.
21973         * cgraph.h (struct varpool_node): Add writeonly flag.
21975 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
21977         PR rtl-optimization/60969
21978         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
21979         Calculate costs for this case.
21981 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
21983         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
21984         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
21986 2014-05-16  Richard Biener  <rguenther@suse.de>
21988         PR tree-optimization/61194
21989         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
21990         bool patterns ending in a COND_EXPR.
21992 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21994         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
21996 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21998         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
21999         where we were unable to cost an RTX.
22001 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22003         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
22004         HIGH, LO_SUM.
22006 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22007             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22009         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
22011 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22012             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22014         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
22015         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
22017 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22018             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22020         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
22021         operators.
22023 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22024             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22026         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22027         DIV/MOD.
22029 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22030             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22032         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
22033         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
22035 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22036             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22038         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22039         rotates and shifts.
22041 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22042             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22044         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
22045         ZERO_EXTEND and SIGN_EXTEND better.
22047 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22048             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22050         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
22051         logical operations.
22053 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22054             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22056         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
22057         costs when costing loads and stores to memory.
22059 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22060             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
22062         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
22063         for SET RTX.
22065 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22067         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
22069 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22070             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22072         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
22073         to...
22074         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
22075         well formed.
22076         (aarch64_rtx_mult_cost): New.
22077         (aarch64_rtx_costs): Use it, refactor as appropriate.
22079 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22080             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22082         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
22083         emit instructions, return number of instructions which would
22084         be emitted.
22085         (aarch64_add_constant): Update call to aarch64_build_constant.
22086         (aarch64_output_mi_thunk): Likewise.
22087         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
22088         a CONST_DOUBLE.
22090 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22092         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
22093         (TARGET_RTX_COSTS): Call it.
22095 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22097         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
22098         (cortexa57_vector_cost): Likewise.
22099         (cortexa57_tunings): Use them.
22101 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22103         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
22104         (cpu_addrcost_table): Use it.
22105         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
22106         (aarch64_address_cost): Rewrite using aarch64_classify_address,
22107         move it.
22109 2014-05-16  Richard Biener  <rguenther@suse.de>
22111         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
22112         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
22113         (visit_phi): Ignore edges marked as not executable.
22114         (class cond_dom_walker): New.
22115         (cond_dom_walker::before_dom_children): Value-number
22116         control statements and mark successor edges as not
22117         executable if possible.
22118         (run_scc_vn): First walk all control statements in
22119         dominator order, marking edges as not executable.
22120         * tree-inline.c (copy_edges_for_bb): Be not confused
22121         about random edge flags.
22123 2014-05-16  Richard Biener  <rguenther@suse.de>
22125         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
22127 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
22129         PR target/61193
22130         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
22131         (__TM_simple_begin): Use it.
22132         (__TM_begin): Likewise.
22134 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22136         PR ipa/61085
22137         * ipa-prop.c (update_indirect_edges_after_inlining): Check
22138         type_preserved flag when the indirect edge is polymorphic.
22140 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22142         PR tree-optimization/61090
22143         * tree-sra.c (sra_modify_expr): Pass the current gsi to
22144         build_ref_for_model.
22146 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22148         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
22149         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
22151 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
22153         PR tree-optimization/61158
22154         * fold-const.c (fold_binary_loc): If X is zero-extended and
22155         shiftc >= prec, make sure zerobits is all ones instead of
22156         invoking undefined behavior.
22158 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22160         * regcprop.h: New file.
22161         * regcprop.c (skip_debug_insn_p): New decl.
22162         (replace_oldest_value_reg): Check skip_debug_insn_p.
22163         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
22164         * shrink-wrap.c: Include regcprop.h.
22165         (prepare_shrink_wrap): Call
22166         copyprop_hardreg_forward_bb_without_debug_insn.
22168 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22170         * shrink-wrap.h: Update comment.
22171         * shrink-wrap.c: Update comment.
22172         (next_block_for_reg): Rename to live_edge_for_reg.
22173         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
22174         (move_insn_for_shrink_wrap): Split live_edge.
22175         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
22177 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22179         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
22180         Delete.
22181         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
22182         * config/sparc/sparc.md (fptype_ut699): New attribute.
22183         (in_branch_delay): Return false if -mfix-ut699 is specified and
22184         fptype_ut699 is set to single.
22185         (truncdfsf2): Add fptype_ut699 attribute.
22186         (fix_truncdfsi2): Likewise.
22187         (floatsisf2): Change fptype attribute.
22188         (fix_truncsfsi2): Likewise.
22189         (negtf2_notv9): Delete.
22190         (negtf2_v9): Likewise.
22191         (negtf2_hq): New instruction.
22192         (negtf2): New instruction and splitter.
22193         (negdf2_notv9): Rewrite.
22194         (abstf2_notv9): Delete.
22195         (abstf2_hq_v9): Likewise.
22196         (abstf2_v9): Likewise.
22197         (abstf2_hq): New instruction.
22198         (abstf2): New instruction and splitter.
22199         (absdf2_notv9): Rewrite.
22201 2014-05-14  Cary Coutant  <ccoutant@google.com>
22203         PR debug/61013
22204         * opts.c (common_handle_option): Don't special-case "-g".
22205         (set_debug_level): Default to at least level 2 with "-g".
22207 2014-05-14  DJ Delorie  <dj@redhat.com>
22209         * config/msp430/msp430.c (msp430_builtin): Add
22210         MSP430_BUILTIN_DELAY_CYCLES.
22211         (msp430_init_builtins): Register void __delay_cycles(long long).
22212         (msp430_builtin_decl): Add it.
22213         (cg_magic_constant): New.
22214         (msp430_expand_delay_cycles): New.
22215         (msp430_expand_builtin): Call it.
22216         (msp430_print_operand_raw): Change integer printing from "int" to
22217         HOST_WIDE_INT.
22218         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
22219         (delay_cycles_start): New.
22220         (delay_cycles_end): New.
22221         (delay_cycles_32): New.
22222         (delay_cycles_32x): New.
22223         (delay_cycles_16): New.
22224         (delay_cycles_16x): New.
22225         (delay_cycles_2): New.
22226         (delay_cycles_1): New.
22227         * doc/extend.texi: Document __delay_cycles().
22229 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
22231         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
22232         length attribute computation.
22234 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
22236         PR debug/61188
22237         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
22239 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
22241         PR target/61084
22242         * config/sparc/sparc.md: Fix types of low and high in DI constant
22243         splitter.  Use gen_int_mode in some other splitters.
22245 2014-05-14  Martin Jambor  <mjambor@suse.cz>
22247         PR ipa/60897
22248         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22250 2014-05-14  James Norris  <jnorris@codesourcery.com>
22252         * omp-low.c (expand_parallel_call): Remove shadow variable.
22253         (expand_omp_taskreg): Likewise.
22255 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
22257         * common/config/i386/i386-common.c
22258         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22259         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22260         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22261         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
22262         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
22263         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
22264         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
22265         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
22266         xsavecintrin.h, xsavesintrin.h.
22267         (x86_64-*-*): Ditto.
22268         * config/i386/clflushoptintrin.h: New.
22269         * config/i386/xsavecintrin.h: Ditto.
22270         * config/i386/xsavesintrin.h: Ditto.
22271         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
22272         (bit_XSAVES): Ditto.
22273         (bit_XSAVES): Ditto.
22274         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22275         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
22276         -mno-clflushopt.
22277         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22278         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
22279         OPTION_MASK_ISA_XSAVES.
22280         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
22281         -mxsavec, -mxsaves.
22282         (PTA_CLFLUSHOPT) Define.
22283         (PTA_XSAVEC): Ditto.
22284         (PTA_XSAVES): Ditto.
22285         (ix86_option_override_internal): Handle new options.
22286         (ix86_valid_target_attribute_inner_p): Ditto.
22287         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
22288         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
22289         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
22290         (bdesc_special_args): Add __builtin_ia32_xsaves,
22291         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
22292         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
22293         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
22294         (ix86_expand_builtin): Handle new builtins.
22295         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
22296         (TARGET_CLFLUSHOPT_P): Ditto.
22297         (TARGET_XSAVEC): Ditto.
22298         (TARGET_XSAVEC_P): Ditto.
22299         (TARGET_XSAVES): Ditto.
22300         (TARGET_XSAVES_P): Ditto.
22301         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
22302         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
22303         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
22304         (ANY_XRSTOR): New.
22305         (ANY_XRSTOR64): Ditto.
22306         (xrstor): Ditto.
22307         (xrstor): Change into <xrstor>.
22308         (xrstor_rex64): Change into <xrstor>_rex64.
22309         (xrstor64): Change into <xrstor>64
22310         (clflushopt): New.
22311         * config/i386/i386.opt (mclflushopt): New.
22312         (mxsavec): Ditto.
22313         (mxsaves): Ditto.
22314         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
22315         xsavecintrin.h.
22316         * doc/invoke.texi: Document new options.
22318 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
22320         PR rtl-optimization/60866
22321         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
22322         Default it to -1.  Pass it down to init_simplejump_data.
22323         (init_simplejump_data): New parameter old_seqno.  Pass it down
22324         to get_seqno_for_a_jump.
22325         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
22326         initializing new jump seqno as a last resort.  Add comment.
22327         (sel_redirect_edge_and_branch): Save old seqno of the conditional
22328         jump and pass it down to sel_init_new_insn.
22329         (sel_redirect_edge_and_branch_force): Likewise.
22331 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
22333         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
22334         shifted values to avoid build warning.
22336 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22338         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
22339         * cfgrtl.c (rtl_merge_blocks): Fix comment.
22340         (cfg_layout_merge_blocks): Likewise.
22341         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
22343 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
22345         PR rtl-optimization/60901
22346         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
22347         bb predecessor belongs to the same scheduling region.  Adjust comment.
22349 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
22351         * doc/sourcebuild.texi: (dfp_hw): Document.
22352         (p8vector_hw): Likewise.
22353         (powerpc_eabi_ok): Likewise.
22354         (powerpc_elfv2): Likewise.
22355         (powerpc_htm_ok): Likewise.
22356         (ppc_recip_hw): Likewise.
22357         (vsx_hw): Likewise.
22359 2014-05-13  Cary Coutant  <ccoutant@google.com>
22361         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
22363 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
22365         * gengtype-parse.c (require3): Eliminate in favor of...
22366         (require4): New.
22367         (require_template_declaration): Update to support optional single *
22368         on a type.
22370         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
22371         (create_user_defined_type): Handle a single level of explicit
22372         pointerness within template arguments.
22373         (struct write_types_data): Add field "kind".
22374         (filter_type_name): Handle "*" character.
22375         (write_user_func_for_structure_ptr): Require a write_types_data
22376         rather than just a prefix string, so that we can look up the kind
22377         of the wtd and use it as an index into wrote_user_func_for_ptr,
22378         ensuring that such functions are written at most once.  Support
22379         subclasses by invoking the marking function of the ultimate base class.
22380         (write_user_func_for_structure_body): Require a write_types_data
22381         rather than just a prefix string, so that we can pass this to
22382         write_user_func_for_structure_ptr.
22383         (write_func_for_structure): Likewise.
22384         (ggc_wtd): Add initializer of new "kind" field.
22385         (pch_wtd): Likewise.
22387         * gengtype.h (enum write_types_kinds): New.
22388         (struct type): Add field wrote_user_func_for_ptr to the "s"
22389         union member.
22391 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
22393         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
22394         instead of const_binop.
22395         (fold_binary_loc): Likewise.
22397 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
22399         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
22400         calculation to match get_ref_base_and_extent.
22402 2014-05-13  Catherine Moore  <clm@codesourcery.com>
22403             Sandra Loosemore  <sandra@codesourcery.com>
22405         * configure.ac: Fix assembly for explicit JALR relocation check.
22406         * configure: Regenerate.
22408 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22410         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
22411         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
22412         Remove associated type declarations and initialisations.
22413         (arm_expand_neon_builtin): Likewise.
22414         (neon_emit_pair_result_insn): Delete.
22415         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
22416         * config/arm/neon.md (neon_vtrn<mode>): Delete.
22417         (neon_vzip<mode>): Likewise.
22418         (neon_vuzp<mode>): Likewise.
22420 2014-05-13  Richard Biener  <rguenther@suse.de>
22422         PR ipa/60973
22423         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
22424         it needs revisiting whether the call still may be tail-called.
22426 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22428         * rtl.def (SYMBOL_REF): Remove middle "0" field.
22429         * rtl.h (block_symbol): Reduce number of fields to 2.
22430         (rtx_def): Add u2.symbol_ref_flags.
22431         (SYMBOL_REF_FLAGS): Use it.
22432         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
22433         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
22434         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
22435         Lower index of SYMBOL_REF_DATA.
22436         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
22437         Print SYMBOL_REF_FLAGS at the same time.
22438         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
22440 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22442         * rtl.def (VAR_LOCATION): Remove "i" field.
22443         * rtl.h (rtx_def): Add u2.var_location_status.
22444         (PAT_VAR_LOCATION_STATUS): Use it.
22445         (gen_rtx_VAR_LOCATION): Declare.
22446         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
22447         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
22448         * var-tracking.c (emit_note_insn_var_location): Remove casts.
22450 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22452         * rtl.def (scratch): Fix outdated comment and remove "0" field.
22453         * gengtype.c (adjust_field_rtx_def): Update accordingly.
22455 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22457         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
22458         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
22459         * rtl.h (rtx_def): Add insn_uid to u2 field.
22460         (RTX_FLAG_CHECK8): Delete in favor of...
22461         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
22462         (INSN_DELETED_P): Update accordingly.
22463         (INSN_UID): Use u2.insn_uid.
22464         (INSN_CHAIN_CODE_P): Define.
22465         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
22466         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
22467         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
22468         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
22469         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
22470         indices accordingly.
22471         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
22472         Update indices for insn-chain rtxes.
22473         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
22474         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
22475         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
22476         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
22477         * combine.c (try_combine): Likewise.
22478         * ira.c (setup_prohibited_mode_move_regs): Likewise.
22480 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22482         * rtl.def (REG): Remove middle field.
22483         * rtl.h (rtx_def): Add orignal_regno to u2.
22484         (ORIGINAL_REGNO): Use it instead of field 1.
22485         (REG_ATTRS): Lower field index accordingly.
22486         * gengtype.c (adjust_field_rtx_def): Remove handling of
22487         ORIGINAL_REGNO.  Move REG_ATTRS index down.
22488         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
22489         code that prints the REGNO.
22491 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22493         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
22494         GENERATOR_FILE.
22496 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22498         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
22500 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
22502         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
22503         (alloc_iv): Lower base expressions containing ADDR_EXPR.
22505 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
22507         * config/aarch64/aarch64-protos.h
22508         (aarch64_hard_regno_caller_save_mode): New prototype.
22509         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
22510         New function.
22511         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
22513 2014-05-13  Christian Bruel  <christian.bruel@st.com>
22515         * target.def (mode_switching): New hook vector.
22516         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
22517         (mode_exit, modepriority_to_mode): Likewise.
22518         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
22519         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22520         * target.h: Include tm.h and hard-reg-set.h.
22521         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
22522         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
22523         * doc/tm.texi Regenerate.
22524         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22525         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22526         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
22527         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
22528         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22529         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22530         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
22531         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
22532         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
22533         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
22534         (ix86_emit_mode_set): Hookify.
22535         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
22536         Delete.
22537         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22538         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
22539         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
22540         (epiphany_mode_priority_to_mode): Remove declaration.
22541         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
22542         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
22543         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
22544         Likewise.
22545         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
22546         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
22547         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
22549 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
22551         PR target/61060
22552         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
22553         is const0_rtx, return immediately.  Don't test count == 0 when
22554         it is always true.
22556 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22558         * Makefile.in: add shrink-wrap.o.
22559         * config/i386/i386.c: include "shrink-wrap.h"
22560         * function.c: Likewise.
22561         (requires_stack_frame_p, next_block_for_reg,
22562         move_insn_for_shrink_wrap, prepare_shrink_wrap,
22563         dup_block_and_redirect): Move to shrink-wrap.c
22564         (thread_prologue_and_epilogue_insns): Extract three code segments
22565         as functions in shrink-wrap.c
22566         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
22567         shrink-wrap.h
22568         * shrink-wrap.c: New file.
22569         * shrink-wrap.h: New file.
22571 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
22573         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
22574         reference to Solaris.
22576 2014-05-12  Mike Stump  <mikestump@comcast.net>
22578         PR other/31778
22579         * genattrtab.c (filename): Add.
22580         (convert_set_attr_alternative): Improve error message.
22581         (check_defs): Restore read_md_filename for error messages.
22582         (gen_insn): Save filename.
22584 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
22586         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
22587         -fno-local-ivars and -fivar-visibility.
22588         * c-family/c.opt: Make -Wshadow also implicitly enable
22589         -Wshadow-ivar.
22591 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
22593         * doc/tm.texi: Remove reference to deleted macro.
22594         * doc/tm.texi.in: Likewise.
22596 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22598         PR target/60991
22599         * config/avr/avr.c (avr_out_store_psi): Use correct constant
22600         to restore Y.
22602 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
22604         PR libgcc/61152
22605         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
22606         * config/arm/aout.h (License): Same.
22607         * config/arm/bpabi.h (License): Same.
22608         * config/arm/elf.h (License): Same.
22609         * config/arm/linux-elf.h (License): Same.
22610         * config/arm/linux-gas.h (License): Same.
22611         * config/arm/netbsd-elf.h (License): Same.
22612         * config/arm/uclinux-eabi.h (License): Same.
22613         * config/arm/uclinux-elf.h (License): Same.
22614         * config/arm/vxworks.h (License): Same.
22616 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
22618         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
22619         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
22620         number of operands to 3.
22621         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
22622         * tree-nested.c (convert_nonlocal_omp_clauses,
22623         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
22624         * gimplify.c (gimplify_scan_omp_clauses): Handle
22625         OMP_CLAUSE_LINEAR_STMT.
22626         * omp-low.c (lower_rec_input_clauses): Fix typo.
22627         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
22628         cast between Fortran boolean_type_node and C _Bool if
22629         needed.
22631 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
22633         PR tree-optimization/61136
22634         * wide-int.h (multiple_of_p): Define a version that doesn't return
22635         the quotient.
22636         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
22637         integer_zerop/const_binop pair.
22638         (multiple_of_p): Likewise, converting both operands to widest_int
22639         precision.
22641 2014-05-09  Teresa Johnson  <tejohnson@google.com>
22643         * cgraphunit.c (analyze_functions): Use correct dump file.
22645 2014-05-09  Florian Weimer  <fweimer@redhat.com>
22647         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
22648         expand_used_vars.
22649         (stack_protect_return_slot_p): New function.
22650         (expand_used_vars): Call stack_protect_decl_p and
22651         stack_protect_return_slot_p for -fstack-protector-strong.
22653 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
22654         Andrew Haley <aph@redhat.com>
22655         Richard Sandiford <rdsandiford@googlemail.com>
22657         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
22658         pages.
22660 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
22662         PR middle-end/61111
22663         * fold-const.c (fold_binary_loc): Changed width of mask.
22665 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
22667         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
22668         unsigned int initializers for regno_in, regno_out.
22670 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
22672         PR target/61055
22673         * config/avr/avr.md (cc): Add new attribute set_vzn.
22674         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
22675         Set cc insn attribute to set_vzn instead of set_zn for alternatives
22676         with INC, DEC or NEG.
22677         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
22678         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
22679         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
22681 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22683         Revert:
22684         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22686         * wide-int.cc (UTItype): Define.
22687         (UDWtype): Define for appropriate W_TYPE_SIZE.
22689 2014-05-09  Richard Biener  <rguenther@suse.de>
22691         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
22692         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
22693         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
22694         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
22695         ssa_propagate): Adjust.
22697 2014-05-08  Jeff Law  <law@redhat.com>
22699         PR tree-optimization/61009
22700         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
22701         tri-state rather than a boolean.  When a block is too big to
22702         thread through, inform caller via negative return value.
22703         (thread_across_edge): If a block was too big for normal threading,
22704         then it's too big for a joiner too, so remove temporary equivalences
22705         and return immediately.
22707 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22708             Matthias Klose  <doko@ubuntu.com>
22710         PR driver/61106
22711         * optc-gen.awk: Fix option handling for -Wunused-parameter.
22713 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
22715         PR target/59952
22716         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
22718 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
22720         PR target/61092
22721         * config/alpha/alpha.c: Include gimple-iterator.h.
22722         (alpha_gimple_fold_builtin): New function.  Move
22723         ALPHA_BUILTIN_UMULH folding from ...
22724         (alpha_fold_builtin): ... here.
22725         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
22727 2014-05-08  Wei Mi  <wmi@google.com>
22729         PR target/58066
22730         * config/i386/i386.c (ix86_compute_frame_layout): Update
22731         preferred_stack_boundary for call, expanded from tls descriptor.
22732         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
22733         to depend on SP register.
22734         (*tls_local_dynamic_base_32_gnu): Ditto.
22735         (*tls_local_dynamic_32_once): Ditto.
22736         (tls_global_dynamic_64_<mode>): Set
22737         ix86_tls_descriptor_calls_expanded_in_cfun.
22738         (tls_local_dynamic_base_64_<mode>): Ditto.
22739         (tls_global_dynamic_32): Set
22740         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
22741         to depend on SP register.
22742         (tls_local_dynamic_base_32): Ditto.
22744 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22746         * config/arm/arm_neon.h: Update comment.
22747         * config/arm/neon-docgen.ml: Delete.
22748         * config/arm/neon-gen.ml: Delete.
22749         * doc/arm-neon-intrinsics.texi: Update comment.
22751 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22753         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
22754         and v4sf versions.
22755         (vand, vorr, veor, vorn, vbic): Remove.
22756         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
22757         iterator.
22758         (neon_vsub_unspec): Likewise.
22759         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
22761 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22763         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
22764         (vadd_s16): Likewise.
22765         (vadd_s32): Likewise.
22766         (vadd_f32): Likewise.
22767         (vadd_u8): Likewise.
22768         (vadd_u16): Likewise.
22769         (vadd_u32): Likewise.
22770         (vadd_s64): Likewise.
22771         (vadd_u64): Likewise.
22772         (vaddq_s8): Likewise.
22773         (vaddq_s16): Likewise.
22774         (vaddq_s32): Likewise.
22775         (vaddq_s64): Likewise.
22776         (vaddq_f32): Likewise.
22777         (vaddq_u8): Likewise.
22778         (vaddq_u16): Likewise.
22779         (vaddq_u32): Likewise.
22780         (vaddq_u64): Likewise.
22781         (vmul_s8): Likewise.
22782         (vmul_s16): Likewise.
22783         (vmul_s32): Likewise.
22784         (vmul_f32): Likewise.
22785         (vmul_u8): Likewise.
22786         (vmul_u16): Likewise.
22787         (vmul_u32): Likewise.
22788         (vmul_p8): Likewise.
22789         (vmulq_s8): Likewise.
22790         (vmulq_s16): Likewise.
22791         (vmulq_s32): Likewise.
22792         (vmulq_f32): Likewise.
22793         (vmulq_u8): Likewise.
22794         (vmulq_u16): Likewise.
22795         (vmulq_u32): Likewise.
22796         (vsub_s8): Likewise.
22797         (vsub_s16): Likewise.
22798         (vsub_s32): Likewise.
22799         (vsub_f32): Likewise.
22800         (vsub_u8): Likewise.
22801         (vsub_u16): Likewise.
22802         (vsub_u32): Likewise.
22803         (vsub_s64): Likewise.
22804         (vsub_u64): Likewise.
22805         (vsubq_s8): Likewise.
22806         (vsubq_s16): Likewise.
22807         (vsubq_s32): Likewise.
22808         (vsubq_s64): Likewise.
22809         (vsubq_f32): Likewise.
22810         (vsubq_u8): Likewise.
22811         (vsubq_u16): Likewise.
22812         (vsubq_u32): Likewise.
22813         (vsubq_u64): Likewise.
22814         (vand_s8): Likewise.
22815         (vand_s16): Likewise.
22816         (vand_s32): Likewise.
22817         (vand_u8): Likewise.
22818         (vand_u16): Likewise.
22819         (vand_u32): Likewise.
22820         (vand_s64): Likewise.
22821         (vand_u64): Likewise.
22822         (vandq_s8): Likewise.
22823         (vandq_s16): Likewise.
22824         (vandq_s32): Likewise.
22825         (vandq_s64): Likewise.
22826         (vandq_u8): Likewise.
22827         (vandq_u16): Likewise.
22828         (vandq_u32): Likewise.
22829         (vandq_u64): Likewise.
22830         (vorr_s8): Likewise.
22831         (vorr_s16): Likewise.
22832         (vorr_s32): Likewise.
22833         (vorr_u8): Likewise.
22834         (vorr_u16): Likewise.
22835         (vorr_u32): Likewise.
22836         (vorr_s64): Likewise.
22837         (vorr_u64): Likewise.
22838         (vorrq_s8): Likewise.
22839         (vorrq_s16): Likewise.
22840         (vorrq_s32): Likewise.
22841         (vorrq_s64): Likewise.
22842         (vorrq_u8): Likewise.
22843         (vorrq_u16): Likewise.
22844         (vorrq_u32): Likewise.
22845         (vorrq_u64): Likewise.
22846         (veor_s8): Likewise.
22847         (veor_s16): Likewise.
22848         (veor_s32): Likewise.
22849         (veor_u8): Likewise.
22850         (veor_u16): Likewise.
22851         (veor_u32): Likewise.
22852         (veor_s64): Likewise.
22853         (veor_u64): Likewise.
22854         (veorq_s8): Likewise.
22855         (veorq_s16): Likewise.
22856         (veorq_s32): Likewise.
22857         (veorq_s64): Likewise.
22858         (veorq_u8): Likewise.
22859         (veorq_u16): Likewise.
22860         (veorq_u32): Likewise.
22861         (veorq_u64): Likewise.
22862         (vbic_s8): Likewise.
22863         (vbic_s16): Likewise.
22864         (vbic_s32): Likewise.
22865         (vbic_u8): Likewise.
22866         (vbic_u16): Likewise.
22867         (vbic_u32): Likewise.
22868         (vbic_s64): Likewise.
22869         (vbic_u64): Likewise.
22870         (vbicq_s8): Likewise.
22871         (vbicq_s16): Likewise.
22872         (vbicq_s32): Likewise.
22873         (vbicq_s64): Likewise.
22874         (vbicq_u8): Likewise.
22875         (vbicq_u16): Likewise.
22876         (vbicq_u32): Likewise.
22877         (vbicq_u64): Likewise.
22878         (vorn_s8): Likewise.
22879         (vorn_s16): Likewise.
22880         (vorn_s32): Likewise.
22881         (vorn_u8): Likewise.
22882         (vorn_u16): Likewise.
22883         (vorn_u32): Likewise.
22884         (vorn_s64): Likewise.
22885         (vorn_u64): Likewise.
22886         (vornq_s8): Likewise.
22887         (vornq_s16): Likewise.
22888         (vornq_s32): Likewise.
22889         (vornq_s64): Likewise.
22890         (vornq_u8): Likewise.
22891         (vornq_u16): Likewise.
22892         (vornq_u32): Likewise.
22893         (vornq_u64): Likewise.
22895 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22897         * wide-int.cc (UTItype): Define.
22898         (UDWtype): Define for appropriate W_TYPE_SIZE.
22900 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
22902         PR tree-optimization/59100
22903         * tree-ssa-phiopt.c: Include tree-inline.h.
22904         (neutral_element_p, absorbing_element_p): New functions.
22905         (value_replacement): Handle conditional binary operations with a
22906         neutral or absorbing element.
22908 2014-05-08  Richard Biener  <rguenther@suse.de>
22910         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
22911         folding the expression.
22912         (valueize_expr): Remove.
22913         (visit_reference_op_load): Do not valueize the result of
22914         vn_get_expr_for.
22915         (simplify_binary_expression): Likewise.
22916         (simplify_unary_expression): Likewise.
22918 2014-05-08  Richard Biener  <rguenther@suse.de>
22920         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
22921         looking at TYPE_ARG_TYPES.
22923 2014-05-08  Richard Biener  <rguenther@suse.de>
22925         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
22926         pointer propagation special-case.
22928 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
22930         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
22931         core part of address expressions.
22933 2014-05-08  Alan Modra  <amodra@gmail.com>
22935         PR target/60737
22936         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
22937         loads and stores when -mno-strict-align at any alignment.
22938         (expand_block_clear): Similarly.  Also correct calculation of
22939         instruction count.
22941 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22943         PR middle-end/39246
22944         * tree-complex.c (expand_complex_move): Keep line info when expanding
22945         complex move.
22946         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
22947         of complex expression. Use new argument to display correct location
22948         for values coming from phi statement.
22949         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
22950         (warn_uninitialized_phi): Pass location of phi argument to
22951         warn_uninit.
22952         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
22953         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
22955 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
22957         * config/rs6000/predicates.md (indexed_address_mem): New.
22958         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
22959         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
22960         fpstore_ux, fpstore_u.
22961         (sign_extend, indexed, update): New.
22962         (cell_micro): Adjust.
22963         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
22964         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
22965         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
22966         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
22967         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
22968         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
22969         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
22970         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
22971         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
22972         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
22973         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
22974         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
22975         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
22976         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
22977         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
22979         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
22980         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
22981         *vsx_extract_<mode>_store): Adjust.
22982         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
22983         is_cracked_insn, insn_must_be_first_in_group,
22984         insn_must_be_last_in_group): Adjust.
22986         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
22987         Adjust.
22988         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
22989         ppc440-fpstore): Adjust.
22990         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
22991         ppc476-fpstore): Adjust.
22992         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
22993         ppc601-fpstore): Adjust.
22994         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
22995         Adjust.
22996         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
22997         Adjust.
22998         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
22999         ppc7450-fpstore): Adjust.
23000         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
23001         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
23002         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
23003         Adjust.
23004         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
23005         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
23006         cell-fpstore, cell-fpstore-update): Adjust.
23007         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
23008         ppce300c3_store, ppce300c3_fpstore): Adjust.
23009         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
23010         e500mc_fpstore): Adjust.
23011         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
23012         e500mc64_store, e500mc64_fpstore): Adjust.
23013         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
23014         e5500_fpstore): Adjust.
23015         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
23016         e6500_fpstore): Adjust.
23017         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
23018         Adjust.
23019         * config/rs6000/power4.md (power4-load, power4-load-ext,
23020         power4-load-ext-update, power4-load-ext-update-indexed,
23021         power4-load-update-indexed, power4-load-update, power4-fpload,
23022         power4-fpload-update, power4-store, power4-store-update,
23023         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
23024         Adjust.
23025         * config/rs6000/power5.md (power5-load, power5-load-ext,
23026         power5-load-ext-update, power5-load-ext-update-indexed,
23027         power5-load-update-indexed, power5-load-update, power5-fpload,
23028         power5-fpload-update, power5-store, power5-store-update,
23029         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
23030         Adjust.
23031         * config/rs6000/power6.md (power6-load, power6-load-ext,
23032         power6-load-update, power6-load-update-indexed,
23033         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
23034         power6-fpload-update, power6-store, power6-store-update,
23035         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
23036         Adjust.
23037         * config/rs6000/power7.md (power7-load, power7-load-ext,
23038         power7-load-update, power7-load-update-indexed,
23039         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
23040         power7-fpload-update, power7-store, power7-store-update,
23041         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
23042         Adjust.
23043         * config/rs6000/power8.md (power8-load, power8-load-update,
23044         power8-load-ext, power8-load-ext-update, power8-fpload,
23045         power8-fpload-update, power8-store, power8-store-update-indexed,
23046         power8-fpstore, power8-fpstore-update): Adjust.
23047         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
23048         Adjust.
23049         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
23050         titan_lsu_store, titan_lsu_fpstore): Adjust.
23051         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
23053 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
23055         PR target/60884
23056         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
23057         unrolled byte insns.  Emit address increments after move insns.
23059 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
23061         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
23062         const_gimple, rather than a gimple.
23063         (gimple_call_builtin_p): Likewise, for the three variants.
23065         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
23066         (gimple_call_builtin_p): Likewise, for the three variants.
23068 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23070         PR tree-optimization/61095
23071         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
23073 2014-05-07  Richard Biener  <rguenther@suse.de>
23075         PR tree-optimization/61034
23076         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
23077         (maybe_skip_until): Use translate to take into account
23078         lattices when trying to do disambiguations.
23079         (get_continuation_for_phi_1): Likewise.
23080         (get_continuation_for_phi): Adjust for added translate arguments.
23081         (walk_non_aliased_vuses): Likewise.
23082         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
23083         (walk_non_aliased_vuses): Likewise.
23084         (call_may_clobber_ref_p_1): Declare.
23085         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
23086         calls.  Stop early if we are only supposed to disambiguate.
23087         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
23089 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
23091         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
23092         Emit an error when the function has arguments.
23094 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23096         * cfgloop.h (unswitch_loops): Remove.
23097         * doc/passes.texi: Remove references to loop-unswitch.c
23098         * timevar.def (TV_LOOP_UNSWITCH): Remove.
23100 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
23102         * tree-vect-data-refs.c (vect_grouped_load_supported): New
23103         check for loads group of length 3.
23104         (vect_permute_load_chain): New permutations for loads group of
23105         length 3.
23106         * tree-vect-stmts.c (vect_model_load_cost): Change cost
23107         of vec_perm_shuffle for the new permutations.
23109 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
23111         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
23112         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
23113         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
23114         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
23115         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
23116         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
23117         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
23118         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
23120 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23122         * loop-unswitch.c: Delete.
23124 2014-05-07  Richard Biener  <rguenther@suse.de>
23126         * config.gcc: Always set need_64bit_hwint to yes.
23128 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
23130         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
23131         of using optimize_size.
23133 2014-05-06  Mike Stump  <mikestump@comcast.net>
23135         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
23137 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
23139         * config/i386/sse.md (*mov<mode>_internal)
23140         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
23141         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
23142         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
23143         (*<code><mode>3, *andnot<mode>3<mask_name>)
23144         (<mask_codefor><code><mode>3<mask_name>): Only consider
23145         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
23147 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23149         Revert:
23150         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
23152         * lra-constraints.c (valid_address_p): Move earlier in file.
23153         Add a constraint argument to the address_info version.
23154         (satisfies_memory_constraint_p): New function.
23155         (satisfies_address_constraint_p): Likewise.
23156         (process_alt_operands, curr_insn_transform): Use them.
23157         (process_address): Pass the constraint to valid_address_p when
23158         checking address operands.
23160 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
23162         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
23163         to their respective blocks.  Fix inadvertent use of "node".
23165 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23167         * emit-rtl.c (init_derived_machine_modes): New functionm, split
23168         out from...
23169         (init_emit_once): ...here.
23170         * rtl.h (init_derived_machine_modes): Declare.
23171         * toplev.c (do_compile): Call it even if no_backend.
23173 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
23174             Mike Stump  <mikestump@comcast.net>
23175             Richard Sandiford  <rdsandiford@googlemail.com>
23176             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23178         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
23179         (rtx_equal_for_memref_p): Update comment.
23180         (adjust_offset_for_component_ref): Use wide-int interfaces.
23181         * builtins.c (get_object_alignment_2): Likewise.
23182         (c_readstr): Likewise.
23183         (target_char_cast): Add comment.
23184         (determine_block_size): Use wide-int interfaces.
23185         (expand_builtin_signbit): Likewise.
23186         (fold_builtin_int_roundingfn): Likewise.
23187         (fold_builtin_bitop): Likewise.
23188         (fold_builtin_bswap): Likewise.
23189         (fold_builtin_logarithm): Use signop.
23190         (fold_builtin_pow): Likewise.
23191         (fold_builtin_memory_op): Use wide-int interfaces.
23192         (fold_builtin_object_size): Likewise.
23193         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
23194         nb_iterations_estimate.
23195         (record_niter_bound): Use wide-int interfaces.
23196         (get_estimated_loop_iterations_int): Likewise.
23197         (get_estimated_loop_iterations): Likewise.
23198         (get_max_loop_iterations): Likewise.
23199         * cfgloop.h: Include wide-int.h.
23200         (struct nb_iter_bound): Change bound to widest_int.
23201         (struct loop): Change nb_iterations_upper_bound and
23202         nb_iterations_estimate to widest_int.
23203         (record_niter_bound): Switch to use widest_int.
23204         (get_estimated_loop_iterations): Likewise.
23205         (get_max_loop_iterations): Likewise.
23206         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
23207         update for wide-int.
23208         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
23209         * combine.c (try_combine): Likewise.
23210         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
23211         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
23212         interfaces.
23213         (aarch64_float_const_representable_p): Likewise.
23214         * config/arc/arc.c: Include wide-int.h.
23215         (arc_can_use_doloop_p): Use wide-int interfaces.
23216         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
23217         (vfp3_const_double_index): Likewise.
23218         * config/avr/avr.c (avr_out_round): Likewise.
23219         (avr_fold_builtin): Likewise.
23220         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
23221         (bfin_can_use_doloop_p): Likewise.
23222         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
23223         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
23224         * config/i386/i386.c: Include wide-int.h.
23225         (ix86_data_alignment): Use wide-int interfaces.
23226         (ix86_local_alignment): Likewise.
23227         (ix86_emit_swsqrtsf): Update real_from_integer.
23228         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
23229         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23230         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
23231         (zero_constant): Likewise.
23232         (input_operand): Likewise.
23233         (splat_input_operand): Likewise.
23234         (non_logical_cint_operand): Change const_double to const_wide_int.
23235         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
23236         (easy_altivec_constant): Remove comment.
23237         (paired_expand_vector_init): Use CONSTANT_P.
23238         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
23239         (rs6000_emit_move): Update checks.
23240         (rs6000_aggregate_candidate): Use wide-int interfaces.
23241         (rs6000_expand_ternop_builtin): Likewise.
23242         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23243         (rs6000_assemble_integer): Likewise.
23244         (rs6000_hash_constant): Likewise.
23245         (output_toc): Likewise.
23246         (rs6000_rtx_costs): Likewise.
23247         (rs6000_emit_swrsqrt); Update call to real_from_integer.
23248         * config/rs6000/rs6000-c.c: Include wide-int.h.
23249         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23250         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23251         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23252         Handle CONST_WIDE_INT.
23253         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23254         Use tree_fits_uhwi_p.
23255         * config/sparc/sparc.c: Include wide-int.h.
23256         (sparc_fold_builtin): Use wide-int interfaces.
23257         * config/vax/vax.c: Include wide-int.h.
23258         (vax_float_literal): Use real_from_integer.
23259         * coretypes.h (struct hwivec_def): New.
23260         (hwivec): New.
23261         (const_hwivec): New.
23262         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
23263         (equiv_constant): Handle CONST_WIDE_INT.
23264         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
23265         (cselib_hash_rtx): Handle CONST_WIDE_INT.
23266         * dbxout.c (stabstr_U): Use wide-int interfaces.
23267         (dbxout_type): Update to use cst_fits_shwi_p.
23268         * defaults.h (LOG2_BITS_PER_UNIT): Define.
23269         (TARGET_SUPPORTS_WIDE_INT): Add default.
23270         * dfp.c: Include wide-int.h.
23271         (decimal_real_to_integer2): Use wide-int interfaces and rename to
23272         decimal_real_to_integer.
23273         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
23274         decimal_real_to_integer.
23275         * doc/generic.texi (Constant expressions): Update for wide_int.
23276         * doc/rtl.texi (const_double): Likewise.
23277         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
23278         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
23279         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
23280         (REAL_VALUE_FROM_INT): Remove.
23281         (TARGET_SUPPORTS_WIDE_INT): New.
23282         * doc/tm.texi: Regenerate.
23283         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
23284         * double-int.h: Include wide-int.h.
23285         (struct wi::int_traits): New.
23286         * dwarf2out.c (get_full_len): New.
23287         (dw_val_equal_p): Add case dw_val_class_wide_int.
23288         (size_of_loc_descr): Likewise.
23289         (output_loc_operands): Likewise.
23290         (insert_double): Remove.
23291         (insert_wide_int): New.
23292         (add_AT_wide): New.
23293         (print_die): Add case dw_val_class_wide_int.
23294         (attr_checksum): Likewise.
23295         (attr_checksum_ordered): Likewise.
23296         (same_dw_val_p): Likewise.
23297         (size_of_die): Likewise.
23298         (value_format): Likewise.
23299         (output_die): Likewise.
23300         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
23301         Use wide-int.
23302         (clz_loc_descriptor): Use wide-int interfaces.
23303         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
23304         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
23305         (round_up_to_align): Use wide-int interfaces.
23306         (field_byte_offset): Likewise.
23307         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
23308         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
23309         CONST_DOUBLE handling.  Use wide-int interfaces.
23310         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
23311         (gen_enumeration_type_die): Use add_AT_wide.
23312         (hash_loc_operands): Add case dw_val_class_wide_int.
23313         (compare_loc_operands): Likewise.
23314         * dwarf2out.h: Include wide-int.h.
23315         (wide_int_ptr): New.
23316         (enum dw_val_class): Add dw_val_class_wide_int.
23317         (struct dw_val_struct): Add val_wide.
23318         * emit-rtl.c (const_wide_int_htab): New.
23319         (const_wide_int_htab_hash): New.
23320         (const_wide_int_htab_eq): New.
23321         (lookup_const_wide_int): New.
23322         (const_double_htab_hash): Use wide-int interfaces.
23323         (const_double_htab_eq): Likewise.
23324         (rtx_to_double_int): Conditionally compile for wide-int.
23325         (immed_double_int_const): Rename to immed_wide_int_const and
23326         update for wide-int.
23327         (immed_double_const): Conditionally compile for wide-int.
23328         (init_emit_once): Use wide-int interfaces.
23329         * explow.c (plus_constant): Likewise.
23330         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
23331         (lshift_value): Use wide-int interfaces.
23332         (expand_mult): Likewise.
23333         (choose_multiplier): Likewise.
23334         (expand_smod_pow2): Likewise.
23335         (make_tree): Likewise.
23336         * expr.c (convert_modes): Consolidate handling of constants.
23337         Use wide-int interfaces.
23338         (emit_group_load_1): Add note.
23339         (store_expr): Update comment.
23340         (get_inner_reference): Use wide-int interfaces.
23341         (expand_constructor): Update comment.
23342         (expand_expr_real_2): Use wide-int interfaces.
23343         (expand_expr_real_1): Likewise.
23344         (reduce_to_bit_field_precision): Likewise.
23345         (const_vector_from_tree): Likewise.
23346         * final.c: Include wide-int-print.h.
23347         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
23348         * fixed-value.c: Include wide-int.h.
23349         (fixed_from_string): Use wide-int interfaces.
23350         (fixed_to_decimal): Likewise.
23351         (fixed_convert_from_real): Likewise.
23352         (real_convert_from_fixed): Likewise.
23353         * fold-const.h (mem_ref_offset): Return an offset_int.
23354         (div_if_zero_remainder): Remove code parameter.
23355         * fold-const.c (div_if_zero_remainder): Remove code parameter.
23356         Use wide-int interfaces.
23357         (may_negate_without_overflow_p): Use wide-int interfaces.
23358         (negate_expr_p): Likewise.
23359         (fold_negate_expr): Likewise.
23360         (int_const_binop_1): Likewise.
23361         (const_binop): Likewise.
23362         (fold_convert_const_int_from_int): Likewise.
23363         (fold_convert_const_int_from_real): Likewise.
23364         (fold_convert_const_int_from_fixed): Likewise.
23365         (fold_convert_const_fixed_from_int): Likewise.
23366         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
23367         (sign_bit_p): Use wide-int interfaces.
23368         (make_range_step): Likewise.
23369         (build_range_check): Likewise.  Pass an integer of the correct type
23370         instead of using integer_one_node.
23371         (range_predecessor): Pass an integer of the correct type instead
23372         of using integer_one_node.
23373         (range_successor): Likewise.
23374         (merge_ranges): Likewise.
23375         (unextend): Use wide-int interfaces.
23376         (extract_muldiv_1): Likewise.
23377         (fold_div_compare): Likewise.
23378         (fold_single_bit_test): Likewise.
23379         (fold_sign_changed_comparison): Likewise.
23380         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
23381         (fold_plusminus_mult_expr): Use wide-int interfaces.
23382         (native_encode_int): Likewise.
23383         (native_interpret_int): Likewise.
23384         (fold_unary_loc): Likewise.
23385         (pointer_may_wrap_p): Likewise.
23386         (size_low_cst): Likewise.
23387         (mask_with_tz): Likewise.
23388         (fold_binary_loc): Likewise.
23389         (fold_ternary_loc): Likewise.
23390         (multiple_of_p): Likewise.
23391         (tree_call_nonnegative_warnv_p): Update calls to
23392         tree_int_cst_min_precision and real_from_integer.
23393         (fold_negate_const): Use wide-int interfaces.
23394         (fold_abs_const): Likewise.
23395         (fold_relational_const): Use tree_int_cst_lt.
23396         (round_up_loc): Use wide-int interfaces.
23397         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
23398         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
23399         * gengtype.c: Remove include of double-int.h.
23400         (do_typedef): Use wide-int interfaces.
23401         (open_base_files): Add wide-int.h.
23402         (main): Add offset_int and widest_int typedefs.
23403         * gengtype-lex.l: Handle "^".
23404         (CXX_KEYWORD): Add "static".
23405         * gengtype-parse.c (require3): New.
23406         (require_template_declaration): Handle constant template arguments
23407         and nested templates.
23408         * gengtype-state.c: Don't include "double-int.h".
23409         * genpreds.c (write_one_predicate_function): Update comment.
23410         (write_tm_constrs_h): Add check for hval and lval use in
23411         CONST_WIDE_INT.
23412         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
23413         (add_to_sequence): Likewise.
23414         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
23415         and const_double_operand.
23416         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
23417         interfaces.
23418         * gimple-fold.c (get_base_constructor): Likewise.
23419         (fold_array_ctor_reference): Likewise.
23420         (fold_nonarray_ctor_reference): Likewise.
23421         (fold_const_aggregate_ref_1): Likewise.
23422         (gimple_val_nonnegative_real_p): Likewise.
23423         (gimple_fold_indirect_ref): Likewise.
23424         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
23425         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
23426         (struct slsr_cand_d): Change index to be widest_int.
23427         (struct incr_info_d): Change incr to be widest_int.
23428         (alloc_cand_and_find_basis): Use wide-int interfaces.
23429         (slsr_process_phi): Likewise.
23430         (backtrace_base_for_ref): Likewise.  Return a widest_int.
23431         (restructure_reference): Take a widest_int instead of a double_int.
23432         (slsr_process_ref): Use wide-int interfaces.
23433         (create_mul_ssa_cand): Likewise.
23434         (create_mul_imm_cand): Likewise.
23435         (create_add_ssa_cand): Likewise.
23436         (create_add_imm_cand): Take a widest_int instead of a double_int.
23437         (slsr_process_add): Use wide-int interfaces.
23438         (slsr_process_cast): Likewise.
23439         (slsr_process_copy): Likewise.
23440         (dump_candidate): Likewise.
23441         (dump_incr_vec): Likewise.
23442         (replace_ref): Likewise.
23443         (cand_increment): Likewise.  Return a widest_int.
23444         (cand_abs_increment): Likewise.
23445         (replace_mult_candidate): Take a widest_int instead of a double_int.
23446         (replace_unconditional_candidate): Use wide-int interfaces.
23447         (incr_vec_index): Take a widest_int instead of a double_int.
23448         (create_add_on_incoming_edge): Likewise.
23449         (create_phi_basis): Use wide-int interfaces.
23450         (replace_conditional_candidate): Likewise.
23451         (record_increment): Take a widest_int instead of a double_int.
23452         (record_phi_increments): Use wide-int interfaces.
23453         (phi_incr_cost): Take a widest_int instead of a double_int.
23454         (lowest_cost_path): Likewise.
23455         (total_savings): Likewise.
23456         (analyze_increments): Use wide-int interfaces.
23457         (ncd_with_phi): Take a widest_int instead of a double_int.
23458         (ncd_of_cand_and_phis): Likewise.
23459         (nearest_common_dominator_for_cands): Likewise.
23460         (insert_initializers): Use wide-int interfaces.
23461         (all_phi_incrs_profitable): Likewise.
23462         (replace_one_candidate): Likewise.
23463         (replace_profitable_candidates): Likewise.
23464         * godump.c: Include wide-int-print.h.
23465         (go_output_typedef): Use wide-int interfaces.
23466         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
23467         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
23468         (build_loop_iteration_domains): Likewise.
23469         * hooks.h: Include wide-int.h rather than double-int.h.
23470         (hook_bool_dint_dint_uint_bool_true): Delete.
23471         (hook_bool_wint_wint_uint_bool_true): Declare.
23472         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
23473         (hook_bool_wint_wint_uint_bool_true): New.
23474         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
23475         interfaces.
23476         (ubsan_expand_si_overflow_mul_check): Likewise.
23477         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
23478         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
23479         (get_ancestor_addr_info): Likewise.
23480         (ipa_modify_call_arguments): Likewise.
23481         * loop-doloop.c (doloop_modify): Likewise.
23482         (doloop_optimize): Likewise.
23483         * loop-iv.c (iv_number_of_iterations): Likewise.
23484         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
23485         (unroll_loop_constant_iterations): Likewise.
23486         (decide_unroll_runtime_iterations): Likewise.
23487         (unroll_loop_runtime_iterations): Likewise.
23488         (decide_peel_simple): Likewise.
23489         (decide_unroll_stupid): Likewise.
23490         * lto-streamer-in.c (streamer_read_wi): Add.
23491         (input_cfg): Use wide-int interfaces.
23492         (lto_input_tree_1): Likewise.
23493         * lto-streamer-out.c (streamer_write_wi): Add.
23494         (hash_tree): Use wide-int interfaces.
23495         (output_cfg): Likewise.
23496         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
23497         (GTFILES): Add wide-int.h and signop.h.
23498         (TAGS): Look for .cc files too.
23499         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
23500         * optabs.c (expand_subword_shift): Likewise.
23501         (expand_doubleword_shift): Likewise.
23502         (expand_absneg_bit): Likewise.
23503         (expand_copysign_absneg): Likewise.
23504         (expand_copysign_bit): Likewise.
23505         * postreload.c (reload_cse_simplify_set): Likewise.
23506         * predict.c (predict_iv_comparison): Likewise.
23507         * pretty-print.h: Include wide-int-print.h.
23508         (pp_wide_int) New.
23509         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
23510         * print-tree.c: Include wide-int-print.h.
23511         (print_node_brief): Use wide-int interfaces.
23512         (print_node): Likewise.
23513         * read-rtl.c (validate_const_wide_int): New.
23514         (read_rtx_code): Add CONST_WIDE_INT case.
23515         * real.c: Include wide-int.h.
23516         (real_to_integer2): Delete.
23517         (real_to_integer): New function, returning a wide_int.
23518         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23519         (ten_to_ptwo): Update call to real_from_integer.
23520         (real_digit): Likewise.
23521         * real.h: Include signop.h, wide-int.h and insn-modes.h.
23522         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
23523         (REAL_VALUE_TO_INT): Delete.
23524         (real_to_integer): Declare a wide-int form.
23525         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23526         * recog.c (const_int_operand): Improve comment.
23527         (const_scalar_int_operand): New.
23528         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
23529         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
23530         (split_double): Likewise.
23531         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
23532         (rtx_size): Likewise.
23533         (rtx_alloc_stat_v): New.
23534         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
23535         (cwi_output_hex): New.
23536         (iterative_hash_rtx): Handle CONST_WIDE_INT.
23537         (cwi_check_failed_bounds): New.
23538         * rtl.def (CONST_WIDE_INT): New.
23539         * rtl.h: Include <utility> and wide-int.h.
23540         (struct hwivec_def): New.
23541         (CWI_GET_NUM_ELEM): New.
23542         (CWI_PUT_NUM_ELEM): New.
23543         (struct rtx_def): Add num_elem and hwiv.
23544         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
23545         (CASE_CONST_UNIQUE): Likewise.
23546         (CASE_CONST_ANY): Likewise.
23547         (CONST_SCALAR_INT_P): Likewise.
23548         (CONST_WIDE_INT_P): New.
23549         (CWI_ELT): New.
23550         (HWIVEC_CHECK): New.
23551         (cwi_check_failed_bounds): New.
23552         (CWI_ELT): New.
23553         (HWIVEC_CHECK): New.
23554         (CONST_WIDE_INT_VEC) New.
23555         (CONST_WIDE_INT_NUNITS) New.
23556         (CONST_WIDE_INT_ELT) New.
23557         (rtx_mode_t): New type.
23558         (wi::int_traits <rtx_mode_t>): New.
23559         (wi::shwi): New.
23560         (wi::min_value): New.
23561         (wi::max_value): New.
23562         (rtx_alloc_v) New.
23563         (const_wide_int_alloc): New.
23564         (immed_wide_int_const): New.
23565         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
23566         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
23567         * signop.h: New file.
23568         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
23569         (simplify_const_unary_operation): Use wide-int interfaces.
23570         (simplify_binary_operation_1): Likewise.
23571         (simplify_const_binary_operation): Likewise.
23572         (simplify_const_relational_operation): Likewise.
23573         (simplify_immed_subreg): Likewise.
23574         * stmt.c (expand_case): Likewise.
23575         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
23576         signop rather than a bool.
23577         * stor-layout.c (layout_type): Use wide-int interfaces.
23578         (initialize_sizetypes): Update calls to
23579         set_min_and_max_values_for_integral_type.
23580         (set_min_and_max_values_for_integral_type): Take a signop rather
23581         than a bool.  Use wide-int interfaces.
23582         (fixup_signed_type): Update accordingly.  Remove
23583         HOST_BITS_PER_DOUBLE_INT limit.
23584         (fixup_unsigned_type): Likewise.
23585         * system.h (STATIC_CONSTANT_P): New.
23586         (STATIC_ASSERT): New.
23587         * target.def (can_use_doloop_p): Take widest_ints rather than
23588         double_ints.
23589         * target.h: Include wide-int.h rather than double-int.h.
23590         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
23591         than double_ints.
23592         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
23593         rather than INT_CST_LT_UNSIGNED.
23594         (can_use_doloop_if_innermost): Take widest_ints rather than
23595         double_ints.
23596         * tree-affine.c: Include wide-int-print.h.
23597         (double_int_ext_for_comb): Delete.
23598         (wide_int_ext_for_comb): New.
23599         (aff_combination_zero): Use wide-int interfaces.
23600         (aff_combination_const): Take a widest_int instead of a double_int.
23601         (aff_combination_elt): Use wide-int interfaces.
23602         (aff_combination_scale): Take a widest_int instead of a double_int.
23603         (aff_combination_add_elt): Likewise.
23604         (aff_combination_add_cst): Likewise.
23605         (aff_combination_add): Use wide-int interfaces.
23606         (aff_combination_convert): Likewise.
23607         (tree_to_aff_combination): Likewise.
23608         (add_elt_to_tree): Take a widest_int instead of a double_int.
23609         (aff_combination_to_tree): Use wide-int interfaces.
23610         (aff_combination_remove_elt): Likewise.
23611         (aff_combination_add_product): Take a widest_int instead of
23612         a double_int.
23613         (aff_combination_mult): Use wide-int interfaces.
23614         (aff_combination_expand): Likewise.
23615         (double_int_constant_multiple_p): Delete.
23616         (wide_int_constant_multiple_p): New.
23617         (aff_combination_constant_multiple_p): Take a widest_int pointer
23618         instead of a double_int pointer.
23619         (print_aff): Use wide-int interfaces.
23620         (get_inner_reference_aff): Take a widest_int pointer
23621         instead of a double_int pointer.
23622         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
23623         * tree-affine.h: Include wide-int.h.
23624         (struct aff_comb_elt): Change type of coef to widest_int.
23625         (struct affine_tree_combination): Change type of offset to widest_int.
23626         (double_int_ext_for_comb): Delete.
23627         (wide_int_ext_for_comb): New.
23628         (aff_combination_const): Use widest_int instead of double_int.
23629         (aff_combination_scale): Likewise.
23630         (aff_combination_add_elt): Likewise.
23631         (aff_combination_constant_multiple_p): Likewise.
23632         (get_inner_reference_aff): Likewise.
23633         (aff_comb_cannot_overlap_p): Likewise.
23634         (aff_combination_zero_p): Use wide-int interfaces.
23635         * tree.c: Include tree.h.
23636         (init_ttree): Use make_int_cst.
23637         (tree_code_size): Removed code for INTEGER_CST case.
23638         (tree_size): Add INTEGER_CST case.
23639         (make_node_stat): Update comment.
23640         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
23641         (build_int_cst_type): Use wide-int interfaces.
23642         (double_int_to_tree): Likewise.
23643         (double_int_fits_to_tree_p): Delete.
23644         (force_fit_type_double): Delete.
23645         (force_fit_type): New.
23646         (int_cst_hash_hash): Use wide-int interfaces.
23647         (int_cst_hash_eq): Likewise.
23648         (build_int_cst_wide): Delete.
23649         (wide_int_to_tree): New.
23650         (cache_integer_cst): Use wide-int interfaces.
23651         (build_low_bits_mask): Likewise.
23652         (cst_and_fits_in_hwi): Likewise.
23653         (real_value_from_int_cst): Likewise.
23654         (make_int_cst_stat): New.
23655         (integer_zerop): Use wide_int interfaces.
23656         (integer_onep): Likewise.
23657         (integer_all_onesp): Likewise.
23658         (integer_pow2p): Likewise.
23659         (integer_nonzerop): Likewise.
23660         (tree_log2): Likewise.
23661         (tree_floor_log2): Likewise.
23662         (tree_ctz): Likewise.
23663         (int_size_in_bytes): Likewise.
23664         (mem_ref_offset): Return an offset_int rather than a double_int.
23665         (build_type_attribute_qual_variant): Use wide_int interfaces.
23666         (type_hash_eq): Likewise
23667         (tree_int_cst_equal): Likewise.
23668         (tree_int_cst_lt): Delete.
23669         (tree_int_cst_compare): Likewise.
23670         (tree_fits_shwi_p): Use wide_int interfaces.
23671         (tree_fits_uhwi_p): Likewise.
23672         (tree_int_cst_sign_bit): Likewise.
23673         (tree_int_cst_sgn): Likewise.
23674         (tree_int_cst_min_precision): Take a signop rather than a bool.
23675         (simple_cst_equal): Use wide_int interfaces.
23676         (compare_tree_int): Likewise.
23677         (iterative_hash_expr): Likewise.
23678         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
23679         INT_CST_LT.
23680         (get_type_static_bounds): Use wide_int interfaces.
23681         (tree_int_cst_elt_check_failed): New.
23682         (build_common_tree_nodes): Reordered to set prec before filling in
23683         value.
23684         (int_cst_value): Check cst_and_fits_in_hwi.
23685         (widest_int_cst_value): Use wide_int interfaces.
23686         (upper_bound_in_type): Likewise.
23687         (lower_bound_in_type): Likewise.
23688         (num_ending_zeros): Likewise.
23689         (drop_tree_overflow): Likewise.
23690         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
23691         (gen_conditions_for_pow_cst_base): Likewise.
23692         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
23693         (group_case_labels_stmt): Use wide-int interfaces.
23694         (verify_gimple_assign_binary): Likewise.
23695         (print_loop): Likewise.
23696         * tree-chrec.c (tree_fold_binomial): Likewise.
23697         * tree-core.h (struct tree_base): Add int_length.
23698         (struct tree_int_cst): Change rep of value.
23699         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
23700         (dr_may_alias_p): Likewise.
23701         (max_stmt_executions_tree): Likewise.
23702         * tree.def (INTEGER_CST): Update comment.
23703         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
23704         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
23705         * tree-dump.c: Include wide-int.h and wide-int-print.h.
23706         (dequeue_and_dump): Use wide-int interfaces.
23707         * tree.h: Include wide-int.h.
23708         (NULL_TREE): Moved to earlier loc in file.
23709         (TREE_INT_CST_ELT_CHECK): New.
23710         (tree_int_cst_elt_check_failed): New.
23711         (TYPE_SIGN): New.
23712         (TREE_INT_CST): Delete.
23713         (TREE_INT_CST_LOW): Use wide-int interfaces.
23714         (TREE_INT_CST_HIGH): Delete.
23715         (TREE_INT_CST_NUNITS): New.
23716         (TREE_INT_CST_EXT_NUNITS): Likewise.
23717         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
23718         (TREE_INT_CST_ELT): Likewise.
23719         (INT_CST_LT): Delete.
23720         (tree_int_cst_elt_check): New (two forms).
23721         (type_code_size): Update comment.
23722         (make_int_cst_stat, make_int_cst): New.
23723         (tree_to_double_int): Delete.
23724         (double_int_fits_to_tree_p): Delete.
23725         (force_fit_type_double): Delete.
23726         (build_int_cstu): Replace with out-of-line function.
23727         (build_int_cst_wide): Delete.
23728         (tree_int_cst_lt): Define inline.
23729         (tree_int_cst_le): New.
23730         (tree_int_cst_compare): Define inline.
23731         (tree_int_cst_min_precision): Take a signop rather than a bool.
23732         (wi::int_traits <const_tree>): New.
23733         (wi::int_traits <tree>): New.
23734         (wi::extended_tree): New.
23735         (wi::int_traits <wi::extended_tree>): New.
23736         (wi::to_widest): New.
23737         (wi::to_offset): New.
23738         (wi::fits_to_tree_p): New.
23739         (wi::min_value): New.
23740         (wi::max_value): New.
23741         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
23742         (copy_tree_body_r): Likewise.
23743         * tree-object-size.c (compute_object_offset): Likewise.
23744         (addr_object_size): Likewise.
23745         * tree-predcom.c: Include wide-int-print.h.
23746         (struct dref_d): Change type of offset to widest_int.
23747         (dump_dref): Call wide-int printer.
23748         (aff_combination_dr_offset): Use wide-int interfaces.
23749         (determine_offset): Take a widest_int pointer rather than a
23750         double_int pointer.
23751         (split_data_refs_to_components): Use wide-int interfaces.
23752         (suitable_component_p): Likewise.
23753         (order_drefs): Likewise.
23754         (add_ref_to_chain): Likewise.
23755         (valid_initializer_p): Likewise.
23756         (determine_roots_comp): Likewise.
23757         * tree-pretty-print.c: Include wide-int-print.h.
23758         (dump_generic_node): Use wide-int interfaces.
23759         * tree-sra.c (sra_ipa_modify_expr): Likewise.
23760         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
23761         (move_fixed_address_to_symbol): Likewise.
23762         (move_hint_to_base): Likewise.
23763         (move_pointer_to_base): Likewise.
23764         (move_variant_to_index): Likewise.
23765         (most_expensive_mult_to_index): Likewise.
23766         (addr_to_parts): Likewise.
23767         (copy_ref_info): Likewise.
23768         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
23769         (indirect_refs_may_alias_p): Likewise.
23770         (stmt_kills_ref_p_1): Likewise.
23771         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
23772         * tree-ssa-ccp.c: Update comment at top of file.  Include
23773         wide-int-print.h.
23774         (struct prop_value_d): Change type of mask to widest_int.
23775         (extend_mask): New function.
23776         (dump_lattice_value): Use wide-int interfaces.
23777         (get_default_value): Likewise.
23778         (set_constant_value): Likewise.
23779         (set_value_varying): Likewise.
23780         (valid_lattice_transition): Likewise.
23781         (set_lattice_value): Likewise.
23782         (value_to_double_int): Delete.
23783         (value_to_wide_int): New.
23784         (get_value_from_alignment): Use wide-int interfaces.
23785         (get_value_for_expr): Likewise.
23786         (do_dbg_cnt): Likewise.
23787         (ccp_finalize): Likewise.
23788         (ccp_lattice_meet): Likewise.
23789         (bit_value_unop_1): Use widest_ints rather than double_ints.
23790         (bit_value_binop_1): Likewise.
23791         (bit_value_unop): Use wide-int interfaces.
23792         (bit_value_binop): Likewise.
23793         (bit_value_assume_aligned): Likewise.
23794         (evaluate_stmt): Likewise.
23795         (ccp_fold_stmt): Likewise.
23796         (visit_cond_stmt): Likewise.
23797         (ccp_visit_stmt): Likewise.
23798         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
23799         (constant_pointer_difference): Likewise.
23800         (associate_pointerplus): Likewise.
23801         (combine_conversions): Likewise.
23802         * tree-ssa-loop.h: Include wide-int.h.
23803         (struct tree_niter_desc): Change type of max to widest_int.
23804         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
23805         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
23806         (remove_redundant_iv_tests): Likewise.
23807         (canonicalize_loop_induction_variables): Likewise.
23808         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
23809         (constant_multiple_of): Take a widest_int pointer instead of
23810         a double_int pointer.
23811         (get_computation_aff): Use wide-int interfaces.
23812         (ptr_difference_cost): Likewise.
23813         (difference_cost): Likewise.
23814         (get_loop_invariant_expr_id): Likewise.
23815         (get_computation_cost_at): Likewise.
23816         (iv_elimination_compare_lt): Likewise.
23817         (may_eliminate_iv): Likewise.
23818         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
23819         instead of double_int.
23820         (max_loop_iterations): Likewise.
23821         (max_stmt_executions): Likewise.
23822         (estimated_stmt_executions): Likewise.
23823         * tree-ssa-loop-niter.c: Include wide-int-print.h.
23824         (split_to_var_and_offset): Use wide-int interfaces.
23825         (determine_value_range): Likewise.
23826         (bound_difference_of_offsetted_base): Likewise.
23827         (bounds_add): Take a widest_int instead of a double_int.
23828         (number_of_iterations_ne_max): Use wide-int interfaces.
23829         (number_of_iterations_ne): Likewise.
23830         (number_of_iterations_lt_to_ne): Likewise.
23831         (assert_loop_rolls_lt): Likewise.
23832         (number_of_iterations_lt): Likewise.
23833         (number_of_iterations_le): Likewise.
23834         (number_of_iterations_cond): Likewise.
23835         (number_of_iterations_exit): Likewise.
23836         (finite_loop_p): Likewise.
23837         (derive_constant_upper_bound_assign): Likewise.
23838         (derive_constant_upper_bound): Return a widest_int.
23839         (derive_constant_upper_bound_ops): Likewise.
23840         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
23841         (record_estimate): Take a widest_int rather than a double_int.
23842         (record_nonwrapping_iv): Use wide-int interfaces.
23843         (double_int_cmp): Delete.
23844         (wide_int_cmp): New.
23845         (bound_index): Take a widest_int rather than a double_int.
23846         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
23847         (maybe_lower_iteration_bound): Likewise.
23848         (estimate_numbers_of_iterations_loop): Likewise.
23849         (estimated_loop_iterations): Take a widest_int pointer than than
23850         a double_int pointer.
23851         (estimated_loop_iterations_int): Use wide-int interfaces.
23852         (max_loop_iterations): Take a widest_int pointer than than
23853         a double_int pointer.
23854         (max_loop_iterations_int): Use wide-int interfaces.
23855         (max_stmt_executions): Take a widest_int pointer than than
23856         a double_int pointer.
23857         (estimated_stmt_executions): Likewise.
23858         (n_of_executions_at_most): Use wide-int interfaces.
23859         (scev_probably_wraps_p): Likewise.
23860         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
23861         to real_to_integer.
23862         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
23863         interfaces.
23864         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
23865         double_ints.  Adjust for trailing_wide_ints <3> representation.
23866         (set_nonzero_bits): Likewise.
23867         (get_range_info): Return wide_ints rather than double_ints.
23868         Adjust for trailing_wide_ints <3> representation.
23869         (get_nonzero_bits): Likewise.
23870         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
23871         representation.
23872         * tree-ssanames.h (struct range_info_def): Replace min, max and
23873         nonzero_bits with a trailing_wide_ints <3>.
23874         (set_range_info): Use wide_int_refs rather than double_ints.
23875         (set_nonzero_bits): Likewise.
23876         (get_range_info): Return wide_ints rather than double_ints.
23877         (get_nonzero_bits): Likewise.
23878         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
23879         * tree-ssa-pre.c (phi_translate_1): Likewise.
23880         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
23881         (acceptable_pow_call): Likewise.
23882         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
23883         interfaces.
23884         (vn_reference_fold_indirect): Likewise.
23885         (vn_reference_maybe_forwprop_address): Likewise.
23886         (valueize_refs_1): Likewise.
23887         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
23888         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
23889         tree_int_cst_lt and tree_int_cst_le.
23890         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
23891         interfaces.
23892         (streamer_alloc_tree): Likewise.
23893         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
23894         (streamer_write_tree_header): Likewise.
23895         (streamer_write_integer_cst): Likewise.
23896         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23897         (build_constructors): Likewise.
23898         (array_value_type): Likewise.
23899         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
23900         (vect_check_gather): Likewise.
23901         * tree-vect-generic.c (build_replicated_const): Likewise.
23902         (expand_vector_divmod): Likewise.
23903         * tree-vect-loop.c (vect_transform_loop): Likewise.
23904         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
23905         (vect_do_peeling_for_alignment): Likewise.
23906         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
23907         * tree-vrp.c: Include wide-int.h.
23908         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
23909         (extract_range_from_assert): Use wide-int interfaces.
23910         (vrp_int_const_binop): Likewise.
23911         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
23912         double_int pointers.
23913         (ranges_from_anti_range): Use wide-int interfaces.
23914         (quad_int_cmp): Delete.
23915         (quad_int_pair_sort): Likewise.
23916         (extract_range_from_binary_expr_1): Use wide-int interfaces.
23917         (extract_range_from_unary_expr_1): Likewise.
23918         (adjust_range_with_scev): Likewise.
23919         (masked_increment): Take and return wide_ints rather than double_ints.
23920         (register_edge_assert_for_2): Use wide-int interfaces.
23921         (check_array_ref): Likewise.
23922         (search_for_addr_array): Likewise.
23923         (maybe_set_nonzero_bits): Likewise.
23924         (union_ranges): Pass an integer of the correct type instead of
23925         using integer_one_node.
23926         (intersect_ranges): Likewise.
23927         (simplify_truth_ops_using_ranges): Likewise.
23928         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
23929         (range_fits_type_p): Likewise.
23930         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
23931         a bool.
23932         (simplify_conversion_using_ranges): Use wide-int interfaces.
23933         (simplify_float_conversion_using_ranges): Likewise.
23934         (vrp_finalize): Likewise.
23935         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
23936         (gimple_stringops_transform): Likewise.
23937         * varasm.c (decode_addr_const): Likewise.
23938         (const_hash_1): Likewise.
23939         (const_rtx_hash_1): Likewise
23940         (output_constant): Likewise.
23941         (array_size_for_constructor): Likewise.
23942         (output_constructor_regular_field): Likewise.
23943         (output_constructor_bitfield): Likewise.
23944         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
23945         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
23946         GENERATOR_FILEs.
23947         * gencheck.c: Define BITS_PER_UNIT.
23948         * wide-int.cc: New.
23949         * wide-int.h: New.
23950         * wide-int-print.cc: New.
23951         * wide-int-print.h: New.
23953 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23955         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
23957 2014-05-06  Richard Biener  <rguenther@suse.de>
23959         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
23960         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
23961         (TODO_verify_all): Adjust.
23962         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
23963         TODO_verify_stmts and TODO_verify_rtl_sharing.
23964         * bb-reorder.c: Likewise.
23965         * cfgexpand.c: Likewise.
23966         * cprop.c: Likewise.
23967         * cse.c: Likewise.
23968         * function.c: Likewise.
23969         * fwprop.c: Likewise.
23970         * gcse.c: Likewise.
23971         * gimple-ssa-isolate-paths.c: Likewise.
23972         * gimple-ssa-strength-reduction.c: Likewise.
23973         * ipa-split.c: Likewise.
23974         * loop-init.c: Likewise.
23975         * loop-unroll.c: Likewise.
23976         * lower-subreg.c: Likewise.
23977         * modulo-sched.c: Likewise.
23978         * postreload-gcse.c: Likewise.
23979         * predict.c: Likewise.
23980         * recog.c: Likewise.
23981         * sched-rgn.c: Likewise.
23982         * store-motion.c: Likewise.
23983         * tracer.c: Likewise.
23984         * trans-mem.c: Likewise.
23985         * tree-call-cdce.c: Likewise.
23986         * tree-cfg.c: Likewise.
23987         * tree-cfgcleanup.c: Likewise.
23988         * tree-complex.c: Likewise.
23989         * tree-eh.c: Likewise.
23990         * tree-emutls.c: Likewise.
23991         * tree-if-conv.c: Likewise.
23992         * tree-into-ssa.c: Likewise.
23993         * tree-loop-distribution.c: Likewise.
23994         * tree-object-size.c: Likewise.
23995         * tree-parloops.c: Likewise.
23996         * tree-pass.h: Likewise.
23997         * tree-sra.c: Likewise.
23998         * tree-ssa-ccp.c: Likewise.
23999         * tree-ssa-copy.c: Likewise.
24000         * tree-ssa-copyrename.c: Likewise.
24001         * tree-ssa-dce.c: Likewise.
24002         * tree-ssa-dom.c: Likewise.
24003         * tree-ssa-dse.c: Likewise.
24004         * tree-ssa-forwprop.c: Likewise.
24005         * tree-ssa-ifcombine.c: Likewise.
24006         * tree-ssa-loop-ch.c: Likewise.
24007         * tree-ssa-loop-ivcanon.c: Likewise.
24008         * tree-ssa-loop.c: Likewise.
24009         * tree-ssa-math-opts.c: Likewise.
24010         * tree-ssa-phiopt.c: Likewise.
24011         * tree-ssa-phiprop.c: Likewise.
24012         * tree-ssa-pre.c: Likewise.
24013         * tree-ssa-reassoc.c: Likewise.
24014         * tree-ssa-sink.c: Likewise.
24015         * tree-ssa-strlen.c: Likewise.
24016         * tree-ssa-tail-merge.c: Likewise.
24017         * tree-ssa-uncprop.c: Likewise.
24018         * tree-switch-conversion.c: Likewise.
24019         * tree-tailcall.c: Likewise.
24020         * tree-vect-generic.c: Likewise.
24021         * tree-vectorizer.c: Likewise.
24022         * tree-vrp.c: Likewise.
24023         * tsan.c: Likewise.
24024         * var-tracking.c: Likewise.
24025         * bt-load.c: Likewise.
24026         * cfgcleanup.c: Likewise.
24027         * combine-stack-adj.c: Likewise.
24028         * combine.c: Likewise.
24029         * compare-elim.c: Likewise.
24030         * config/epiphany/resolve-sw-modes.c: Likewise.
24031         * config/i386/i386.c: Likewise.
24032         * config/mips/mips.c: Likewise.
24033         * config/s390/s390.c: Likewise.
24034         * config/sh/sh_treg_combine.cc: Likewise.
24035         * config/sparc/sparc.c: Likewise.
24036         * dce.c: Likewise.
24037         * dse.c: Likewise.
24038         * final.c: Likewise.
24039         * ifcvt.c: Likewise.
24040         * mode-switching.c: Likewise.
24041         * passes.c: Likewise.
24042         * postreload.c: Likewise.
24043         * ree.c: Likewise.
24044         * reg-stack.c: Likewise.
24045         * regcprop.c: Likewise.
24046         * regrename.c: Likewise.
24047         * web.c: Likewise.
24049 2014-05-06  Richard Biener  <rguenther@suse.de>
24051         PR middle-end/61070
24052         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
24053         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
24055 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
24057         PR ipa/60965
24058         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
24060 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
24061             Tom de Vries  <tom@codesourcery.com>
24063         * target.def (call_fusage_contains_non_callee_clobbers): New
24064         DEFHOOKPOD.
24065         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
24066         Hooks to @menu.
24067         (@node Miscellaneous Register Hooks): New node.
24068         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
24069         * doc/tm.texi: Regenerate.
24071 2014-05-05  Marek Polacek  <polacek@redhat.com>
24073         PR driver/61065
24074         * opts.c (common_handle_option): Call error_at instead of warning_at.
24076 2014-05-05  Richard Biener  <rguenther@suse.de>
24078         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
24079         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
24080         under the TODO_verify_il umbrella.
24082 2014-05-05  Richard Biener  <rguenther@suse.de>
24084         * passes.c (execute_function_todo): Move TODO_verify_flow under
24085         the TODO_verify_ul umbrella.
24087 2014-05-05  Richard Biener  <rguenther@suse.de>
24089         PR middle-end/61010
24090         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
24091         X & CST away from a CST that is the mask of a mode.
24093 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24095         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
24096         int argument to enum machine_mode.
24097         (picochip_class_max_nregs): Ditto.
24098         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
24099         (picochip_class_max_nregs): Ditto.
24101 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24103         * target.def: Add new target hook.
24104         * doc/tm.texi: Regenerate.
24105         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
24106         * targhooks.c (default_keep_leaf_when_profiled): New function.
24108         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
24109         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
24111 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
24113         PR tree-optimization/60363
24114         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
24115         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
24116         (update_destination_phis): New parameter.
24117         (create_edge_and_update_destination_phis): Ditto.
24118         (ssa_fix_duplicate_block_edges): Pass new arguments.
24119         (thread_single_edge): Ditto.
24121 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
24123         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
24124         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
24125         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
24126         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
24127         Use RS6000_BTM_HARD_FLOAT.
24128         (BU_MISC_2): Likewise.
24129         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
24130         RS6000_BTM_HARD_FLOAT.
24131         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
24132         is explicitly used.
24133         (rs6000_invalid_builtin): Add hard floating builtin support.
24134         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
24135         hard float builtins.
24136         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
24138 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24140         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
24141         Add missing function* argument.
24143 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24145         * lra-constraints.c (valid_address_p): Move earlier in file.
24146         Add a constraint argument to the address_info version.
24147         (satisfies_memory_constraint_p): New function.
24148         (satisfies_address_constraint_p): Likewise.
24149         (process_alt_operands, curr_insn_transform): Use them.
24150         (process_address): Pass the constraint to valid_address_p when
24151         checking address operands.
24153 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24155         * config/mips/mips.c (mips_isa_rev): New variable.
24156         (mips_set_architecture): Set it.
24157         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
24158         from mips_isa_rev.
24159         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
24160         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
24161         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
24162         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
24163         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
24164         conditions in terms of mips_isa_rev.
24165         (mips_isa_rev): Declare.
24167 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24169         * config/sh/sh-mem.cc: Use tabs instead of spaces.
24170         (prob_unlikely, prob_likely): Make variables const.
24172 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
24174         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
24176 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24178         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
24180 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24182         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
24183         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
24184         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
24185         functions.
24186         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
24187         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
24188         sh_pass_in_reg_p.
24189         Replace usage of ROUND_REG with sh_round_reg.
24190         Use CEIL instead of ROUND_ADVANCE.
24192 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24194         PR target/61026
24195         * config/sh/sh.c: Include stdlib headers before everything else.
24197 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
24199         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
24200         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
24201         (gimplify_adjust_omp_clauses): Simd region is never
24202         directly nested in combined parallel.  Instead, for linear
24203         with copyin/copyout, if in combined for simd loop, make decl
24204         firstprivate/lastprivate on OMP_FOR.
24205         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
24206         expand_omp_for_static_chunk): When setting endvar, also set
24207         fd->loop.v to the same value.
24209 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24211         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
24213 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
24215         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
24216         expression.
24218 2014-05-02  Marek Polacek  <polacek@redhat.com>
24220         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
24222 2014-05-02  Kito Cheng  <kito@0xlab.org>
24224         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
24225         to a C expression marco.
24226         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
24227         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
24228         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
24229         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
24230         HONOR_REG_ALLOC_ORDER.
24231         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
24233 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24235         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
24237 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24239         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24241 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
24243         * tree-if-conv.c (is_cond_scalar_reduction): New function.
24244         (convert_scalar_cond_reduction): Likewise.
24245         (predicate_scalar_phi): Add recognition and transformation
24246         of simple conditioanl reduction to be vectorizable.
24248 2014-05-01  Marek Polacek  <polacek@redhat.com>
24250         PR c/43245
24251         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24253 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
24255         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24256         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24257         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24258         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24259         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24260         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24261         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
24262         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
24264 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
24266         * config/arc/arc.opt (mlra): Move comment above option name
24267         to avoid mis-parsing as language options.
24269 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24271         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
24272         * config/sol2.h: ... here.
24273         * config/sol2-10.h: Remove.
24275         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
24276         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
24277         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
24278         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
24279         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
24280         * config/sol2.h: ... here.
24281         (SECTION_NAME_FORMAT): Don't redefine.
24282         (STARTFILE_ARCH32_SPEC): Rename to ...
24283         (STARTFILE_ARCH_SPEC): ... this.
24284         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24285         * config/sparc/sol2.h: ... here.
24286         (SECTION_NAME_FORMAT): Don't undef.
24287         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
24288         (SUBTARGET_EXTRA_SPECS): Remove.
24289         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
24291         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
24292         (MD_STARTFILE_PREFIX): Remove.
24293         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
24294         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
24295         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
24296         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
24297         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
24298         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
24299         * config/i386/sol2.h: ... here.
24300         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
24301         * config/i386/sol2-bi.h: Remove.
24302         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
24303         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
24305         * config/i386/t-sol2-64: Rename to ...
24306         * config/i386/t-sol2: ... this.
24307         * config/sparc/t-sol2-64: Rename to ...
24308         * config/sparc/t-sol2: ... this.
24310         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
24311         sol2_tm_file_head, sol2_tm_file_tail.
24312         Include ${cpu_type}/sol2.h before sol2.h.
24313         Remove sol2-10.h.
24314         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
24315         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
24316         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
24317         Reflect i386/t-sol2-64 renaming.
24318         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
24319         Reflect sparc/t-sol2-64 renaming.
24321 2014-04-30  Richard Biener  <rguenther@suse.de>
24323         * passes.c (execute_function_todo): Move TODO_verify_stmts
24324         and TODO_verify_ssa under the TODO_verify_il umbrella.
24325         * tree-ssa.h (verify_ssa): Adjust prototype.
24326         * tree-ssa.c (verify_ssa): Add parameter to tell whether
24327         we should verify SSA operands.
24328         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
24329         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
24330         whether we should verify whether not throwing stmts have EH info.
24331         * graphite-scop-detection.c (create_sese_edges): Adjust.
24332         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
24333         * tree-eh.c (lower_try_finally_switch): Do not add the
24334         default case label twice.
24336 2014-04-30  Marek Polacek  <polacek@redhat.com>
24338         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
24339         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
24340         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
24341         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
24343 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
24345         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
24346         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
24347         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
24348         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
24349         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
24350         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
24351         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
24352         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
24354 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
24356         * tree-cfg.c (dump_function_to_file): Dump the return type of
24357         functions, in a line to itself before the function body, mimicking
24358         the layout of a C function.
24360 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
24362         PR tree-optimization/60971
24363         * tree-tailcall.c (process_assignment): Reject conversions which
24364         reduce precision.
24366 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
24368         * calls.c (initialize_argument_information): Always treat
24369         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
24370         (expand_call): Likewise.
24371         (emit_library_call_calue_1): Likewise.
24372         * expr.c (PUSH_ARGS_REVERSED): Do not define.
24373         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
24374         code accordingly.
24376 2014-04-29  Nick Clifton  <nickc@redhat.com>
24378         * config/msp430/msp430.md (umulsidi): Fix typo.
24379         (mulhisi3): Enable even inside interrupt handlers.
24380         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
24381         bigger return address pushed in large mode.
24383 2014-04-29  Nick Clifton  <nickc@redhat.com>
24385         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
24386         (arc_init_reg_tables): Use a machine_mode enum to iterate over
24387         available modes.
24388         * config/m32r/m32r.c (init_reg_tables): Likewise.
24389         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
24390         enum to hold the modes.
24392 2014-04-29  Richard Biener  <rguenther@suse.de>
24394         * dominance.c (free_dominance_info): Add overload with
24395         function parameter.
24396         (dom_info_state): Likewise.
24397         (dom_info_available_p): Likewise.
24398         * basic-block.h (free_dominance_info, dom_info_state,
24399         dom_info_available_p): Declare overloads.
24400         * passes.c (execute_function_todo): Verify that verifiers
24401         don't change dominator info state.  Drop dominator info
24402         for IPA pass invocations.
24403         * cgraph.c (release_function_body): Restore asserts that
24404         dominator information is released.
24406 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
24408         * doc/invoke.texi: Fix typo.
24409         * tree-vrp.c: Fix typos.
24410         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
24412 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24414         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
24416 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
24418         * config/aarch64/aarch64-builtins.c
24419         (aarch64_types_storestruct_lane_qualifiers): New.
24420         (TYPES_STORESTRUCT_LANE): Likewise.
24421         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
24422         (st3_lane): Likewise.
24423         (st4_lane): Likewise.
24424         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
24425         (vec_store_lanesci_lane<mode>): Likewise.
24426         (vec_store_lanesxi_lane<mode>): Likewise.
24427         (aarch64_st2_lane<VQ:mode>): Likewise.
24428         (aarch64_st3_lane<VQ:mode>): Likewise.
24429         (aarch64_st4_lane<VQ:mode>): Likewise.
24430         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
24431         * config/aarch64/arm_neon.h
24432         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
24433         use new macro arguments.
24434         (__ST3_LANE_FUNC): Likewise.
24435         (__ST4_LANE_FUNC): Likewise.
24436         * config/aarch64/iterators.md (V_TWO_ELEM): New.
24437         (V_THREE_ELEM): Likewise.
24438         (V_FOUR_ELEM): Likewise.
24440 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
24442         * doc/gimple.texi: Replace the description of the now-defunct
24443         union gimple_statement_d with a diagram showing the
24444         gimple_statement_base class hierarchy and its relationships to
24445         the GSS_ and GIMPLE_ enums.
24447 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
24449         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
24450         * config/aarch64/aarch64.c
24451         (aarch64_cannot_change_mode_class): Weaken conditions.
24452         (aarch64_modes_tieable_p): New.
24453         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
24455 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
24457         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24458         (loadsync_<mode>): Change mode.
24459         (load_quadpti, store_quadpti): New.
24460         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24461         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24463 2014-04-28  Martin Jambor  <mjambor@suse.cz>
24465         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
24466         same alias type as the original statement.
24467         (subreplacement_assignment_data): New type.
24468         (handle_unscalarized_data_in_subtree): New type of parameter,
24469         generate new memory accesses with same alias type as the original
24470         statement.
24471         (load_assign_lhs_subreplacements): Likewise.
24472         (sra_modify_constructor_assign): Generate new memory accesses with
24473         same alias type as the original statement.
24475 2014-04-28  Richard Biener  <rguenther@suse.de>
24477         * tree-pass.h (TODO_verify_il): Define.
24478         (TODO_verify_all): Complete properly.
24479         * passes.c (execute_function_todo): Move existing loop-closed
24480         SSA verification under TODO_verify_il.
24481         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
24482         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
24483         Fix tree sharing issue.
24485 2014-04-28  Richard Biener  <rguenther@suse.de>
24487         PR middle-end/60092
24488         * builtins.def (DEF_C11_BUILTIN): Add.
24489         (BUILT_IN_ALIGNED_ALLOC): Likewise.
24490         * coretypes.h (enum function_class): Add function_c11_misc.
24491         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24492         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
24493         (call_may_clobber_ref_p_1): Likewise.
24494         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24495         (mark_all_reaching_defs_necessary_1): Likewise.
24496         (propagate_necessity): Likewise.
24497         (eliminate_unnecessary_stmts): Likewise.
24498         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
24500 2014-04-28  Richard Biener  <rguenther@suse.de>
24502         * tree-vrp.c (vrp_var_may_overflow): Remove.
24503         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
24504         with overflow immediately bump to one before that value and
24505         let iteration figure out overflow status.
24507 2014-04-28  Richard Biener  <rguenther@suse.de>
24509         * configure.ac: Do valgrind header checks unconditionally.
24510         Add --enable-valgrind-annotations.
24511         * system.h: Guard valgrind header inclusion with
24512         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
24513         * alloc-pool.c (pool_alloc, pool_free): Use
24514         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
24515         to guard possibly dead code.
24516         * config.in: Regenerated.
24517         * configure: Likewise.
24519 2014-04-28  Jeff Law  <law@redhat.com>
24521         PR tree-optimization/60902
24522         * tree-ssa-threadedge.c
24523         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
24524         over real defs when invalidating outputs from statements that do not
24525         produce useful outputs for threading.
24527 2014-04-28  Richard Biener  <rguenther@suse.de>
24529         PR tree-optimization/60979
24530         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
24531         SCOPs that end in a block with a successor with abnormal
24532         predecessors.
24534 2014-04-28  Richard Biener  <rguenther@suse.de>
24536         * tree-pass.h (execute_pass_list): Adjust prototype.
24537         * passes.c (pass_manager::execute_early_local_passes): Adjust.
24538         (do_per_function): Change callback signature, push all actual
24539         work to the callbals.
24540         (do_per_function_toporder): Likewise.
24541         (execute_function_dump): Adjust.
24542         (execute_function_todo): Likewise.
24543         (clear_last_verified): Likewise.
24544         (verify_curr_properties): Likewise.
24545         (update_properties_after_pass): Likewise.
24546         (execute_pass_list_1): Split out from ...
24547         (execute_pass_list): ... here.  Adjust.
24548         (execute_ipa_pass_list): Likewise.
24549         * cgraphunit.c (cgraph_add_new_function): Adjust.
24550         (analyze_function): Likewise.
24551         (expand_function): Likewise.
24552         * cgraph.c (release_function_body): Free dominance info
24553         here instead of asserting it was magically freed elsewhere.
24555 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24557         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
24558         * configure: Regenerate.
24559         * config/sparc/sparc.opt (muser-mode): New option.
24560         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
24561         for LEON3.
24562         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
24563         * doc/invoke.texi (SPARC options): Document -muser-mode.
24565 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
24567         * cselib.c (find_slot_memmode): Delete.
24568         (cselib_hasher): Change compare_type to a struct.
24569         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
24570         constants.
24571         (preserve_constants_and_equivs): Adjust for new compare_type.
24572         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
24573         (wrap_constant): Delete.
24574         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
24576 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
24578         * doc/install.texi (Building with profile feedback): Remove
24579         outdated sentence.
24581 2014-04-26  Tom de Vries  <tom@codesourcery.com>
24583         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
24584         array accesses.
24586 2014-04-25  Cary Coutant  <ccoutant@google.com>
24588         PR debug/60929
24589         * dwarf2out.c (should_move_die_to_comdat): A type definition
24590         can contain a subprogram definition, but don't move it to a
24591         comdat unit.
24592         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
24593         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
24594         from original DIE.
24595         (clone_tree_hash): Rename to...
24596         (clone_tree_partial): ...this; change callers.  Copy
24597         DW_TAG_subprogram DIEs as declarations.
24598         (copy_decls_walk): Don't copy children of a declaration into a
24599         type unit.
24601 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
24603         PR target/60969
24604         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
24605         alternative 12.
24607 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
24609         * config/arm/predicates.md (call_insn_operand): Add long_call check.
24610         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
24611         reg for long_call.
24612         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
24613         restriction.
24615 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24617         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
24619 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24621         PR tree-optimization/60930
24622         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
24623         creating a multiply candidate by folding two constant
24624         multiplicands when the result overflows.
24626 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
24628         PR tree-optimization/60960
24629         * tree-vect-generic.c (expand_vector_operation): Only call
24630         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
24632 2014-04-25  Tom de Vries  <tom@codesourcery.com>
24634         * expr.c (clobber_reg_mode): New function.
24635         * expr.h (clobber_reg): New function.
24637 2014-04-25  Tom de Vries  <tom@codesourcery.com>
24639         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
24640         clobbers.
24642 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
24643             Tom de Vries  <tom@codesourcery.com>
24645         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
24646         handle.
24647         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
24648         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
24649         new argument to find_all_hard_reg_sets call.
24651 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24653         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
24654         Use HOST_WIDE_INT_C for mask literal.
24655         (aarch_rev16_shleft_mask_imm_p): Likewise.
24657 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
24659         PR target/60941
24660         * config/sparc/sparc.md (ashlsi3_extend): Delete.
24662 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
24664         PR preprocessor/56540
24665         * config/i386/i386-c.c (ix86_target_macros): Define
24666         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
24668 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24670         * configure.ac (tga_func): Remove.
24671         (LIB_TLS_SPEC): Remove.
24672         * configure: Regenerate.
24673         * config.in: Regenerate.
24674         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
24676 2014-04-25  Richard Biener  <rguenther@suse.de>
24678         PR ipa/60912
24679         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
24680         call stmt use/clobber sets during stmt walk instead of
24681         walking the possibly incomplete set of caller edges.
24683 2014-04-25  Richard Biener  <rguenther@suse.de>
24685         PR ipa/60911
24686         * passes.c (apply_ipa_transforms): Inline into only caller ...
24687         (execute_one_pass): ... here.  Properly bring in function
24688         bodies for nodes we want to apply IPA transforms to.
24690 2014-04-24  Cong Hou  <congh@google.com>
24692         PR tree-optimization/60896
24693         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
24694         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
24695         (vect_mark_pattern_stmts): Set the def type of all statements in
24696         PATTERN_DEF_SEQ as vect_internal_def.
24698 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24700         * doc/extend.texi (PowerPC Built-in Functions): Document new
24701         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
24702         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
24704         * config/rs6000/predicates.md (const_0_to_3_operand): New
24705         predicate to match 0..3 integer constants.
24707         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
24708         to support adding miscellaneous builtin functions.
24709         (BU_DFP_MISC_2): Likewise.
24710         (BU_P7_MISC_1): Likewise.
24711         (BU_P7_MISC_2): Likewise.
24712         (BU_P8V_MISC_3): Likewise.
24713         (BU_MISC_1): Likewise.
24714         (BU_MISC_2): Likewise.
24715         (DIVWE): Add extended divide builtin functions.
24716         (DIVWEO): Likewise.
24717         (DIVWEU): Likewise.
24718         (DIVWEUO): Likewise.
24719         (DIVDE): Likewise.
24720         (DIVDEO): Likewise.
24721         (DIVDEU): Likewise.
24722         (DIVDEUO): Likewise.
24723         (DXEX): Add decimal floating-point builtin functions.
24724         (DXEXQ): Likewise.
24725         (DDEDPD): Likewise.
24726         (DDEDPDQ): Likewise.
24727         (DENBCD): Likewise.
24728         (DENBCDQ): Likewise.
24729         (DIEX): Likewise.
24730         (DIEXQ): Likewise.
24731         (DSCLI): Likewise.
24732         (DSCLIQ): Likewise.
24733         (DSCRI): Likewise.
24734         (DSCRIQ): Likewise.
24735         (CDTBCD): Add new BCD builtin functions.
24736         (CBCDTD): Likewise.
24737         (ADDG6S): Likewise.
24738         (BCDADD): Likewise.
24739         (BCDADD_LT): Likewise.
24740         (BCDADD_EQ): Likewise.
24741         (BCDADD_GT): Likewise.
24742         (BCDADD_OV): Likewise.
24743         (BCDSUB): Likewise.
24744         (BCDSUB_LT): Likewise.
24745         (BCDSUB_EQ): Likewise.
24746         (BCDSUB_GT): Likewise.
24747         (BCDSUB_OV): Likewise.
24748         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
24749         (UNPACK_TD): Likewise.
24750         (PACK_TF): Likewise.
24751         (UNPACK_TF): Likewise.
24752         (UNPACK_TF_0): Likewise.
24753         (UNPACK_TF_1): Likewise.
24754         (PACK_V1TI): Likewise.
24755         (UNPACK_V1TI): Likewise.
24757         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24758         support for decimal floating point builtin functions.
24759         (rs6000_expand_ternop_builtin): Add checks for the new builtin
24760         functions that take constant arguments.
24761         (rs6000_invalid_builtin): Add decimal floating point builtin support.
24762         (rs6000_init_builtins): Setup long double, _Decimal64, and
24763         _Decimal128 types for new builtin functions.
24764         (builtin_function_type): Set the unsigned flags appropriately for
24765         the new builtin functions.
24766         (rs6000_opt_masks): Add support for decimal floating point builtin
24767         functions.
24769         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
24770         floating point builtin functions.
24771         (RS6000_BTM_COMMON): Likewise.
24772         (RS6000_BTI_long_double): Likewise.
24773         (RS6000_BTI_dfloat64): Likewise.
24774         (RS6000_BTI_dfloat128): Likewise.
24775         (long_double_type_internal_node): Likewise.
24776         (dfloat64_type_internal_node): Likewise.
24777         (dfloat128_type_internal_node): Likewise.
24779         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
24780         2.07 bcd arithmetic instructions.
24781         (UNSPEC_BCDSUB): Likewise.
24782         (UNSPEC_BCD_OVERFLOW): Likewise.
24783         (UNSPEC_BCD_ADD_SUB): Likewise.
24784         (bcd_add_sub): Likewise.
24785         (BCD_TEST): Likewise.
24786         (bcd<bcd_add_sub>): Likewise.
24787         (bcd<bcd_add_sub>_test): Likewise.
24788         (bcd<bcd_add_sub>_test2): Likewise.
24789         (bcd<bcd_add_sub>_<code>): Likewise.
24790         (peephole2 for combined bcd ops): Likewise.
24792         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
24793         decimal floating point builtin functions.
24794         (UNSPEC_DENBCD): Likewise.
24795         (UNSPEC_DXEX): Likewise.
24796         (UNSPEC_DIEX): Likewise.
24797         (UNSPEC_DSCLI): Likewise.
24798         (UNSPEC_DSCRI): Likewise.
24799         (D64_D128): Likewise.
24800         (dfp_suffix): Likewise.
24801         (dfp_ddedpd_<mode>): Likewise.
24802         (dfp_denbcd_<mode>): Likewise.
24803         (dfp_dxex_<mode>): Likewise.
24804         (dfp_diex_<mode>): Likewise.
24805         (dfp_dscli_<mode>): Likewise.
24806         (dfp_dscri_<mode>): Likewise.
24808         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
24809         builtin functions.
24810         (UNSPEC_CDTBCD): Likewise.
24811         (UNSPEC_CBCDTD): Likewise.
24812         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
24813         (UNSPEC_DIVEO): Likewise.
24814         (UNSPEC_DIVEU): Likewise.
24815         (UNSPEC_DIVEUO): Likewise.
24816         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
24817         pack/unpack 128-bit types.
24818         (UNSPEC_PACK_128BIT): Likewise.
24819         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
24820         (udiv<mode>3): Use idiv_ldiv mode attribute.
24821         (div<mode>3): Likewise.
24822         (addg6s): Add new BCD builtin functions.
24823         (cdtbcd): Likewise.
24824         (cbcdtd): Likewise.
24825         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
24826         (div_extend): Likewise.
24827         (div<div_extend>_<mode>"): Likewise.
24828         (FP128_64): Add support for new builtin functions to pack/unpack
24829         128-bit types.
24830         (unpack<mode>): Likewise.
24831         (unpacktf_0): Likewise.
24832         (unpacktf_1): Likewise.
24833         (unpack<mode>_dm): Likewise.
24834         (unpack<mode>_nodm): Likewise.
24835         (pack<mode>): Likewise.
24836         (unpackv1ti): Likewise.
24837         (packv1ti): Likewise.
24839 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
24841         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
24842         is disabled.
24844 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
24846         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
24847         * gimplify.c (omp_is_private): Change last argument's type to int.
24848         Only diagnose lastprivate if the simd argument is 1, only diagnose
24849         linear if the simd argument is 2.
24850         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
24851         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
24852         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
24853         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
24854         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
24855         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24856         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
24857         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24858         * tree-nested.c (convert_nonlocal_omp_clauses,
24859         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
24861 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
24863         PR target/60822
24864         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
24865         operand 1.
24867 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
24869         * flag-types.h (enum ivar_visibility): Add.
24871 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
24873         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
24874         function * argument.
24876 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
24878         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
24880 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
24881             Tom de Vries  <tom@codesourcery.com>
24883         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
24884         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
24885         reg-note.
24886         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
24887         * emit-rtl.c (try_split): Same.
24889 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
24890             Tom de Vries  <tom@codesourcery.com>
24892         * common.opt (fuse-caller-save): New option.
24894 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
24896         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
24897         elements for big-endian.
24899 2014-04-24  Richard Biener  <rguenther@suse.de>
24901         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
24902         during TER and instead use the sepops interface for expanding
24903         non-GIMPLE_SINGLE_RHS.
24905 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24907         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
24908         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
24910 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24912         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
24913         assembler 64-bit option.
24914         * configure: Regenerate.
24916 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24918         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
24919         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
24920         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
24921         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
24922         (TARGET_CRYPTO): Take TARGET_SIMD into account.
24924 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24926         * config/aarch64/aarch64-builtins.c
24927         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
24928         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
24929         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
24930         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
24931         builtins.
24932         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
24933         (Vrevsuff): New mode attribute.
24935 2014-04-24  Terry Guo  <terry.guo@arm.com>
24937         * config/arm/arm.h (machine_function): Define variable
24938         after_arm_reorg here.
24939         * config/arm/arm.c (after_arm_reorg): Remove the definition.
24940         (arm_split_constant): Update the way to access variable
24941         after_arm_reorg.
24942         (arm_reorg): Ditto.
24943         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
24945 2014-04-23  Tom de Vries  <tom@codesourcery.com>
24947         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
24949 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
24951         * is-a.h: Update comments to reflect the following changes to the
24952         "pointerness" of the API, making the template parameter match the
24953         return type, allowing use of is-a.h with typedefs of pointers.
24954         (is_a_helper::cast): Return a T rather then a pointer to a T, so
24955         that the return type matches the parameter to the is_a_helper.
24956         (as_a): Likewise.
24957         (dyn_cast): Likewise.
24959         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
24960         pointer from the is-a.h API.
24962         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
24963         (is_a_helper <cgraph_node *>::test): ...this, matching change to
24964         is-a.h API.
24965         (is_a_helper <varpool_node>::test): Likewise, convert to...
24966         (is_a_helper <varpool_node *>::test): ...this.
24968         (varpool_first_variable): Update for removal of implicit pointer
24969         from the is-a.h API.
24970         (varpool_next_variable): Likewise.
24971         (varpool_first_static_initializer): Likewise.
24972         (varpool_next_static_initializer): Likewise.
24973         (varpool_first_defined_variable): Likewise.
24974         (varpool_next_defined_variable): Likewise.
24975         (cgraph_first_defined_function): Likewise.
24976         (cgraph_next_defined_function): Likewise.
24977         (cgraph_first_function): Likewise.
24978         (cgraph_next_function): Likewise.
24979         (cgraph_first_function_with_gimple_body): Likewise.
24980         (cgraph_next_function_with_gimple_body): Likewise.
24981         (cgraph_alias_target): Likewise.
24982         (varpool_alias_target): Likewise.
24983         (cgraph_function_or_thunk_node): Likewise.
24984         (varpool_variable_node): Likewise.
24985         (symtab_real_symbol_p): Likewise.
24986         * cgraphunit.c (referred_to_p): Likewise.
24987         (analyze_functions): Likewise.
24988         (handle_alias_pairs): Likewise.
24989         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
24990         * gimple-ssa.h (gimple_vuse_op): Likewise.
24991         (gimple_vdef_op): Likewise.
24992         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
24993         * gimple.c (gimple_build_asm_1): Likewise.
24994         (gimple_build_try): Likewise.
24995         (gimple_build_resx): Likewise.
24996         (gimple_build_eh_dispatch): Likewise.
24997         (gimple_build_omp_for): Likewise.
24998         (gimple_omp_for_set_clauses): Likewise.
25000         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
25001         (is_a_helper <gimple_statement_asm *>::test): ...this.
25002         (is_a_helper <gimple_statement_bind>::test): Convert to...
25003         (is_a_helper <gimple_statement_bind *>::test): ...this.
25004         (is_a_helper <gimple_statement_call>::test): Convert to...
25005         (is_a_helper <gimple_statement_call *>::test): ...this.
25006         (is_a_helper <gimple_statement_catch>::test): Convert to...
25007         (is_a_helper <gimple_statement_catch *>::test): ...this.
25008         (is_a_helper <gimple_statement_resx>::test): Convert to...
25009         (is_a_helper <gimple_statement_resx *>::test): ...this.
25010         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
25011         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
25012         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
25013         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
25014         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
25015         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
25016         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
25017         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
25018         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
25019         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
25020         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
25021         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
25022         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
25023         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
25024         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
25025         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
25026         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
25027         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
25028         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
25029         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
25030         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
25031         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
25032         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
25033         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
25034         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
25035         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
25036         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
25037         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
25038         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
25039         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
25040         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
25041         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
25042         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
25043         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
25044         (is_a_helper <gimple_statement_phi>::test): Convert to...
25045         (is_a_helper <gimple_statement_phi *>::test): ...this.
25046         (is_a_helper <gimple_statement_transaction>::test): Convert to...
25047         (is_a_helper <gimple_statement_transaction *>::test): ...this.
25048         (is_a_helper <gimple_statement_try>::test): Convert to...
25049         (is_a_helper <gimple_statement_try *>::test): ...this.
25050         (is_a_helper <gimple_statement_wce>::test): Convert to...
25051         (is_a_helper <gimple_statement_wce *>::test): ...this.
25052         (is_a_helper <const gimple_statement_asm>::test): Convert to...
25053         (is_a_helper <const gimple_statement_asm *>::test): ...this.
25054         (is_a_helper <const gimple_statement_bind>::test): Convert to...
25055         (is_a_helper <const gimple_statement_bind *>::test): ...this.
25056         (is_a_helper <const gimple_statement_call>::test): Convert to...
25057         (is_a_helper <const gimple_statement_call *>::test): ...this.
25058         (is_a_helper <const gimple_statement_catch>::test): Convert to...
25059         (is_a_helper <const gimple_statement_catch *>::test): ...this.
25060         (is_a_helper <const gimple_statement_resx>::test): Convert to...
25061         (is_a_helper <const gimple_statement_resx *>::test): ...this.
25062         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
25063         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
25064         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
25065         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
25066         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
25067         Convert to...
25068         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
25069         ...this.
25070         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
25071         Convert to...
25072         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
25073         ...this.
25074         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
25075         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
25076         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
25077         to...
25078         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
25079         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
25080         to...
25081         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
25082         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
25083         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
25084         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
25085         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
25086         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
25087         to...
25088         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
25089         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
25090         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
25091         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
25092         to...
25093         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
25094         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
25095         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
25096         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
25097         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
25098         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
25099         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
25100         (is_a_helper <const gimple_statement_phi>::test): Convert to...
25101         (is_a_helper <const gimple_statement_phi *>::test): ...this.
25102         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
25103         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
25104         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
25105         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
25106         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
25107         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
25108         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
25109         to...
25110         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
25111         ...this.
25112         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
25113         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
25115         (gimple_use_ops): Update for removal of implicit pointer from the
25116         is-a.h API.
25117         (gimple_set_use_ops): Likewise.
25118         (gimple_vuse): Likewise.
25119         (gimple_vdef): Likewise.
25120         (gimple_vuse_ptr): Likewise.
25121         (gimple_vdef_ptr): Likewise.
25122         (gimple_set_vuse): Likewise.
25123         (gimple_set_vdef): Likewise.
25124         (gimple_omp_return_set_lhs): Likewise.
25125         (gimple_omp_return_lhs): Likewise.
25126         (gimple_omp_return_lhs_ptr): Likewise.
25127         (gimple_call_fntype): Likewise.
25128         (gimple_call_set_fntype): Likewise.
25129         (gimple_call_set_internal_fn): Likewise.
25130         (gimple_call_use_set): Likewise.
25131         (gimple_call_clobber_set): Likewise.
25132         (gimple_bind_vars): Likewise.
25133         (gimple_bind_set_vars): Likewise.
25134         (gimple_bind_body_ptr): Likewise.
25135         (gimple_bind_set_body): Likewise.
25136         (gimple_bind_add_stmt): Likewise.
25137         (gimple_bind_block): Likewise.
25138         (gimple_bind_set_block): Likewise.
25139         (gimple_asm_ninputs): Likewise.
25140         (gimple_asm_noutputs): Likewise.
25141         (gimple_asm_nclobbers): Likewise.
25142         (gimple_asm_nlabels): Likewise.
25143         (gimple_asm_input_op): Likewise.
25144         (gimple_asm_input_op_ptr): Likewise.
25145         (gimple_asm_output_op): Likewise.
25146         (gimple_asm_output_op_ptr): Likewise.
25147         (gimple_asm_set_output_op): Likewise.
25148         (gimple_asm_clobber_op): Likewise.
25149         (gimple_asm_set_clobber_op): Likewise.
25150         (gimple_asm_label_op): Likewise.
25151         (gimple_asm_set_label_op): Likewise.
25152         (gimple_asm_string): Likewise.
25153         (gimple_catch_types): Likewise.
25154         (gimple_catch_types_ptr): Likewise.
25155         (gimple_catch_handler_ptr): Likewise.
25156         (gimple_catch_set_types): Likewise.
25157         (gimple_catch_set_handler): Likewise.
25158         (gimple_eh_filter_types): Likewise.
25159         (gimple_eh_filter_types_ptr): Likewise.
25160         (gimple_eh_filter_failure_ptr): Likewise.
25161         (gimple_eh_filter_set_types): Likewise.
25162         (gimple_eh_filter_set_failure): Likewise.
25163         (gimple_eh_must_not_throw_fndecl): Likewise.
25164         (gimple_eh_must_not_throw_set_fndecl): Likewise.
25165         (gimple_eh_else_n_body_ptr): Likewise.
25166         (gimple_eh_else_e_body_ptr): Likewise.
25167         (gimple_eh_else_set_n_body): Likewise.
25168         (gimple_eh_else_set_e_body): Likewise.
25169         (gimple_try_eval_ptr): Likewise.
25170         (gimple_try_cleanup_ptr): Likewise.
25171         (gimple_try_set_eval): Likewise.
25172         (gimple_try_set_cleanup): Likewise.
25173         (gimple_wce_cleanup_ptr): Likewise.
25174         (gimple_wce_set_cleanup): Likewise.
25175         (gimple_phi_capacity): Likewise.
25176         (gimple_phi_num_args): Likewise.
25177         (gimple_phi_result): Likewise.
25178         (gimple_phi_result_ptr): Likewise.
25179         (gimple_phi_set_result): Likewise.
25180         (gimple_phi_arg): Likewise.
25181         (gimple_phi_set_arg): Likewise.
25182         (gimple_resx_region): Likewise.
25183         (gimple_resx_set_region): Likewise.
25184         (gimple_eh_dispatch_region): Likewise.
25185         (gimple_eh_dispatch_set_region): Likewise.
25186         (gimple_omp_critical_name): Likewise.
25187         (gimple_omp_critical_name_ptr): Likewise.
25188         (gimple_omp_critical_set_name): Likewise.
25189         (gimple_omp_for_clauses): Likewise.
25190         (gimple_omp_for_clauses_ptr): Likewise.
25191         (gimple_omp_for_set_clauses): Likewise.
25192         (gimple_omp_for_collapse): Likewise.
25193         (gimple_omp_for_index): Likewise.
25194         (gimple_omp_for_index_ptr): Likewise.
25195         (gimple_omp_for_set_index): Likewise.
25196         (gimple_omp_for_initial): Likewise.
25197         (gimple_omp_for_initial_ptr): Likewise.
25198         (gimple_omp_for_set_initial): Likewise.
25199         (gimple_omp_for_final): Likewise.
25200         (gimple_omp_for_final_ptr): Likewise.
25201         (gimple_omp_for_set_final): Likewise.
25202         (gimple_omp_for_incr): Likewise.
25203         (gimple_omp_for_incr_ptr): Likewise.
25204         (gimple_omp_for_set_incr): Likewise.
25205         (gimple_omp_for_pre_body_ptr): Likewise.
25206         (gimple_omp_for_set_pre_body): Likewise.
25207         (gimple_omp_parallel_clauses): Likewise.
25208         (gimple_omp_parallel_clauses_ptr): Likewise.
25209         (gimple_omp_parallel_set_clauses): Likewise.
25210         (gimple_omp_parallel_child_fn): Likewise.
25211         (gimple_omp_parallel_child_fn_ptr): Likewise.
25212         (gimple_omp_parallel_set_child_fn): Likewise.
25213         (gimple_omp_parallel_data_arg): Likewise.
25214         (gimple_omp_parallel_data_arg_ptr): Likewise.
25215         (gimple_omp_parallel_set_data_arg): Likewise.
25216         (gimple_omp_task_clauses): Likewise.
25217         (gimple_omp_task_clauses_ptr): Likewise.
25218         (gimple_omp_task_set_clauses): Likewise.
25219         (gimple_omp_task_child_fn): Likewise.
25220         (gimple_omp_task_child_fn_ptr): Likewise.
25221         (gimple_omp_task_set_child_fn): Likewise.
25222         (gimple_omp_task_data_arg): Likewise.
25223         (gimple_omp_task_data_arg_ptr): Likewise.
25224         (gimple_omp_task_set_data_arg): Likewise.
25225         (gimple_omp_taskreg_clauses): Likewise.
25226         (gimple_omp_taskreg_clauses_ptr): Likewise.
25227         (gimple_omp_taskreg_set_clauses): Likewise.
25228         (gimple_omp_taskreg_child_fn): Likewise.
25229         (gimple_omp_taskreg_child_fn_ptr): Likewise.
25230         (gimple_omp_taskreg_set_child_fn): Likewise.
25231         (gimple_omp_taskreg_data_arg): Likewise.
25232         (gimple_omp_taskreg_data_arg_ptr): Likewise.
25233         (gimple_omp_taskreg_set_data_arg): Likewise.
25234         (gimple_omp_task_copy_fn): Likewise.
25235         (gimple_omp_task_copy_fn_ptr): Likewise.
25236         (gimple_omp_task_set_copy_fn): Likewise.
25237         (gimple_omp_task_arg_size): Likewise.
25238         (gimple_omp_task_arg_size_ptr): Likewise.
25239         (gimple_omp_task_set_arg_size): Likewise.
25240         (gimple_omp_task_arg_align): Likewise.
25241         (gimple_omp_task_arg_align_ptr): Likewise.
25242         (gimple_omp_task_set_arg_align): Likewise.
25243         (gimple_omp_single_clauses): Likewise.
25244         (gimple_omp_single_clauses_ptr): Likewise.
25245         (gimple_omp_single_set_clauses): Likewise.
25246         (gimple_omp_target_clauses): Likewise.
25247         (gimple_omp_target_clauses_ptr): Likewise.
25248         (gimple_omp_target_set_clauses): Likewise.
25249         (gimple_omp_target_child_fn): Likewise.
25250         (gimple_omp_target_child_fn_ptr): Likewise.
25251         (gimple_omp_target_set_child_fn): Likewise.
25252         (gimple_omp_target_data_arg): Likewise.
25253         (gimple_omp_target_data_arg_ptr): Likewise.
25254         (gimple_omp_target_set_data_arg): Likewise.
25255         (gimple_omp_teams_clauses): Likewise.
25256         (gimple_omp_teams_clauses_ptr): Likewise.
25257         (gimple_omp_teams_set_clauses): Likewise.
25258         (gimple_omp_sections_clauses): Likewise.
25259         (gimple_omp_sections_clauses_ptr): Likewise.
25260         (gimple_omp_sections_set_clauses): Likewise.
25261         (gimple_omp_sections_control): Likewise.
25262         (gimple_omp_sections_control_ptr): Likewise.
25263         (gimple_omp_sections_set_control): Likewise.
25264         (gimple_omp_for_set_cond): Likewise.
25265         (gimple_omp_for_cond): Likewise.
25266         (gimple_omp_atomic_store_set_val): Likewise.
25267         (gimple_omp_atomic_store_val): Likewise.
25268         (gimple_omp_atomic_store_val_ptr): Likewise.
25269         (gimple_omp_atomic_load_set_lhs): Likewise.
25270         (gimple_omp_atomic_load_lhs): Likewise.
25271         (gimple_omp_atomic_load_lhs_ptr): Likewise.
25272         (gimple_omp_atomic_load_set_rhs): Likewise.
25273         (gimple_omp_atomic_load_rhs): Likewise.
25274         (gimple_omp_atomic_load_rhs_ptr): Likewise.
25275         (gimple_omp_continue_control_def): Likewise.
25276         (gimple_omp_continue_control_def_ptr): Likewise.
25277         (gimple_omp_continue_set_control_def): Likewise.
25278         (gimple_omp_continue_control_use): Likewise.
25279         (gimple_omp_continue_control_use_ptr): Likewise.
25280         (gimple_omp_continue_set_control_use): Likewise.
25281         (gimple_transaction_body_ptr): Likewise.
25282         (gimple_transaction_label): Likewise.
25283         (gimple_transaction_label_ptr): Likewise.
25284         (gimple_transaction_set_body): Likewise.
25285         (gimple_transaction_set_label): Likewise.
25287         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
25288         * ipa-inline-analysis.c (inline_write_summary): Likewise.
25289         * ipa-ref.c (ipa_record_reference): Likewise.
25290         * ipa-reference.c (analyze_function): Likewise.
25291         (ipa_reference_write_optimization_summary): Likewise.
25292         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
25293         (address_taken_from_non_vtable_p): Likewise.
25294         (comdat_can_be_unshared_p_1): Likewise.
25295         * lto-cgraph.c (lto_output_ref): Likewise.
25296         (add_references): Likewise.
25297         (compute_ltrans_boundary): Likewise.
25298         (output_symtab): Likewise.
25299         (input_ref): Likewise.
25300         (input_cgraph_1): Likewise.
25301         (output_cgraph_opt_summary): Likewise.
25302         * lto-streamer-out.c (lto_output): Likewise.
25303         (output_symbol_p): Likewise.
25304         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
25305         (lsei_start_function_in_partition): Likewise.
25306         (lsei_next_variable_in_partition): Likewise.
25307         (lsei_start_variable_in_partition): Likewise.
25308         * symtab.c (insert_to_assembler_name_hash): Likewise.
25309         (unlink_from_assembler_name_hash): Likewise.
25310         (symtab_unregister_node): Likewise.
25311         (symtab_remove_node): Likewise.
25312         (dump_symtab_node): Likewise.
25313         (verify_symtab_base): Likewise.
25314         (verify_symtab_node): Likewise.
25315         (symtab_make_decl_local): Likewise.
25316         (symtab_alias_ultimate_target): Likewise.
25317         (symtab_resolve_alias): Likewise.
25318         (symtab_get_symbol_partitioning_class): Likewise.
25319         * tree-phinodes.c (allocate_phi_node): Likewise.
25320         (reserve_phi_args_for_new_edge): Likewise.
25321         (remove_phi_args): Likewise.
25322         * varpool.c (varpool_node_for_asm): Likewise.
25323         (varpool_remove_unreferenced_decls): Likewise.
25325 2014-04-23  Jeff Law  <law@redhat.com>
25327         PR tree-optimization/60902
25328         * tree-ssa-threadedge.c
25329         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
25330         invalidate outputs from statements that do not produce useful
25331         outputs for threading.
25333 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
25335         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
25336         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
25337         machine descriptions for Stack Smashing Protector.
25339 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
25341         * aarch64.md (<optab>_rol<mode>3): New pattern.
25342         (<optab>_rolsi3_uxtw): Likewise.
25343         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
25345 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
25347         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
25348         (arm_cortex_a12_tune): Likewise.
25350 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25352         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
25354 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25356         * config/arm/arm.md (arm_rev16si2): New pattern.
25357         (arm_rev16si2_alt): Likewise.
25358         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
25360 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25362         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
25363         (rev16<mode>2_alt): Likewise.
25364         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
25365         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
25366         (aarch_rev16_shleft_mask_imm_p): Likewise.
25367         (aarch_rev16_p_1): Likewise.
25368         (aarch_rev16_p): Likewise.
25369         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
25370         (aarch_rev16_shright_mask_imm_p): Likewise.
25371         (aarch_rev16_shleft_mask_imm_p): Likewise.
25373 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25375         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
25376         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
25377         rev cost.
25378         (cortex_a53_extra_costs): Likewise.
25379         (cortex_a57_extra_costs): Likewise.
25380         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
25381         (cortexa7_extra_costs): Likewise.
25382         (cortexa8_extra_costs): Likewise.
25383         (cortexa12_extra_costs): Likewise.
25384         (cortexa15_extra_costs): Likewise.
25385         (v7m_extra_costs): Likewise.
25386         (arm_new_rtx_costs): Handle BSWAP.
25388 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25390         * config/arm/arm.c (cortexa8_extra_costs): New table.
25391         (arm_cortex_a8_tune): New tuning struct.
25392         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
25394 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25396         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
25398 2014-04-23  Richard Biener  <rguenther@suse.de>
25400         * Makefile.in (OBJS): Remove loop-unswitch.o.
25401         * tree-pass.h (make_pass_rtl_unswitch): Remove.
25402         * passes.def (pass_rtl_unswitch): Likewise.
25403         * loop-init.c (gate_rtl_unswitch): Likewise.
25404         (rtl_unswitch): Likewise.
25405         (pass_data_rtl_unswitch): Likewise.
25406         (pass_rtl_unswitch): Likewise.
25407         (make_pass_rtl_unswitch): Likewise.
25408         * rtl.h (reversed_condition): Likewise.
25409         (compare_and_jump_seq): Likewise.
25410         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
25411         and make static.
25412         * loop-unroll.c (compare_and_jump_seq): Likewise.
25414 2014-04-23  Richard Biener  <rguenther@suse.de>
25416         PR tree-optimization/60903
25417         * tree-ssa-loop-im.c (analyze_memory_references): Remove
25418         commented code block.
25419         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
25420         loop flags to newly created BBs and edges.
25422 2014-04-23  Nick Clifton  <nickc@redhat.com>
25424         * config/msp430/msp430.c (msp430_handle_option): Move function
25425         to msp430-common.c
25426         (msp430_option_override): Simplify mcu and mcpu option handling.
25427         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
25428         support for -mhwmult command line option.
25429         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
25430         -mhwmult command line option.
25431         (msp430_hwmult_enabled): Delete.
25432         (msp43o_output_labelref): Add support for -mhwmult command line option.
25433         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
25434         (umulsidi3): Likewise.
25435         * config/msp430/msp430.opt (mmcu): Add Report attribute.
25436         (mcpu, mlarge, msmall): Likewise.
25437         (mhwmult): New option.
25438         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
25439         prototype.
25440         (msp430_is_f5_mcu): Remove prototype.
25441         (msp430_use_f5_series_hwmult): Add prototype.
25442         * config/msp430/msp430-opts.h: New file.
25443         * common/config/msp430: New directory.
25444         * common/config/msp430/msp430-common.c: New file.
25445         * config.gcc (msp430): Remove target_has_targetm_common.
25446         * doc/invoke.texi: Document -mhwmult command line option.
25448 2014-04-23  Nick Clifton  <nickc@redhat.com>
25450         * config/i386/cygwin.h (ENDFILE_SPEC): Include
25451         default-manifest.o if it can be found in the search path.
25452         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25454 2014-04-23  Terry Guo  <terry.guo@arm.com>
25456         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
25458 2014-04-23  Richard Biener  <rguenther@suse.de>
25460         PR middle-end/60895
25461         * tree-inline.c (declare_return_variable): Use mark_addressable.
25463 2014-04-23  Richard Biener  <rguenther@suse.de>
25465         PR middle-end/60891
25466         * loop-init.c (loop_optimizer_init): Make sure to apply
25467         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
25469 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25471         PR sanitizer/60275
25472         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
25473         New options.
25474         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
25475         if flag_sanitize_undefined_trap_on_error.
25476         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
25477         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
25478         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
25479         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
25480         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
25481         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
25482         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
25483         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
25484         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
25485         * ubsan.c (ubsan_instrument_unreachable): Return
25486         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
25487         (ubsan_expand_null_ifn): Emit __builtin_trap ()
25488         if flag_sanitize_undefined_trap_on_error and
25489         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
25490         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
25491         instrument_bool_enum_load): Emit __builtin_trap () if
25492         flag_sanitize_undefined_trap_on_error and
25493         __builtin_handle_*_abort () if !flag_sanitize_recover.
25494         * doc/invoke.texi (-fsanitize-recover,
25495         -fsanitize-undefined-trap-on-error): Document.
25497 2014-04-22  Christian Bruel  <christian.bruel@st.com>
25499         * config/sh/sh.md (mov<mode>): Replace movQIHI.
25500          Force immediates to SImode.
25502 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
25504         * config/nios2/nios2.md (UNSPEC_ROUND): New.
25505         (lroundsfsi2): New.
25506         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
25507         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
25508         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
25509         (nios2_fpu_insn): Add entry for round.
25510         (N2FPU_NO_ERRNO_P): Define.
25511         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
25512         flag_errno_math.
25513         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
25515 2014-04-22  Richard Henderson  <rth@redhat.com>
25517         * config/aarch64/aarch64 (addti3, subti3): New expanders.
25518         (add<GPI>3_compare0): Remove leading * from name.
25519         (add<GPI>3_carryin): Likewise.
25520         (sub<GPI>3_compare0): Likewise.
25521         (sub<GPI>3_carryin): Likewise.
25522         (<su_optab>mulditi3): New expander.
25523         (multi3): New expander.
25524         (madd<GPI>): Remove leading * from name.
25526 2014-04-22  Martin Jambor  <mjambor@suse.cz>
25528         * cgraphclones.c (cgraph_function_versioning): Copy
25529         ipa_transforms_to_apply instead of asserting it is empty.
25531 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
25533         PR target/60868
25534         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
25535         on count_exp to get mode.
25537 2014-04-22  Andrew Pinski  <apinski@cavium.com>
25539         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25540         Handle TLS for ILP32.
25541         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
25542         (tlsie_small_<mode>): this and handle PTR.
25543         (tlsie_small_sidi): New pattern.
25544         (tlsle_small): Change to an expand to handle ILP32.
25545         (tlsle_small_<mode>): New pattern.
25546         (tlsdesc_small): Rename to ...
25547         (tlsdesc_small_<mode>): this and handle PTR.
25549 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25551         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
25553 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25555         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25556         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
25557         (aarch64_types_signed_poly_qualifiers): Likewise.
25558         (aarch64_types_unsigned_signed_qualifiers): Likewise.
25559         (aarch64_types_poly_signed_qualifiers): Likewise.
25560         (TYPES_REINTERP_SS): Type macro added.
25561         (TYPES_REINTERP_SU): Likewise.
25562         (TYPES_REINTERP_SP): Likewise.
25563         (TYPES_REINTERP_US): Likewise.
25564         (TYPES_REINTERP_PS): Likewise.
25565         (aarch64_fold_builtin): New expression folding added.
25566         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
25567         Declarations removed.
25568         (REINTERP_SS): Declarations added.
25569         (REINTERP_US): Likewise.
25570         (REINTERP_PS): Likewise.
25571         (REINTERP_SU): Likewise.
25572         (REINTERP_SP): Likewise.
25573         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
25574         (vreinterpretq_p8_f64): Likewise.
25575         (vreinterpret_p16_f64): Likewise.
25576         (vreinterpretq_p16_f64): Likewise.
25577         (vreinterpret_f32_f64): Likewise.
25578         (vreinterpretq_f32_f64): Likewise.
25579         (vreinterpret_f64_f32): Likewise.
25580         (vreinterpret_f64_p8): Likewise.
25581         (vreinterpret_f64_p16): Likewise.
25582         (vreinterpret_f64_s8): Likewise.
25583         (vreinterpret_f64_s16): Likewise.
25584         (vreinterpret_f64_s32): Likewise.
25585         (vreinterpret_f64_s64): Likewise.
25586         (vreinterpret_f64_u8): Likewise.
25587         (vreinterpret_f64_u16): Likewise.
25588         (vreinterpret_f64_u32): Likewise.
25589         (vreinterpret_f64_u64): Likewise.
25590         (vreinterpretq_f64_f32): Likewise.
25591         (vreinterpretq_f64_p8): Likewise.
25592         (vreinterpretq_f64_p16): Likewise.
25593         (vreinterpretq_f64_s8): Likewise.
25594         (vreinterpretq_f64_s16): Likewise.
25595         (vreinterpretq_f64_s32): Likewise.
25596         (vreinterpretq_f64_s64): Likewise.
25597         (vreinterpretq_f64_u8): Likewise.
25598         (vreinterpretq_f64_u16): Likewise.
25599         (vreinterpretq_f64_u32): Likewise.
25600         (vreinterpretq_f64_u64): Likewise.
25601         (vreinterpret_s64_f64): Likewise.
25602         (vreinterpretq_s64_f64): Likewise.
25603         (vreinterpret_u64_f64): Likewise.
25604         (vreinterpretq_u64_f64): Likewise.
25605         (vreinterpret_s8_f64): Likewise.
25606         (vreinterpretq_s8_f64): Likewise.
25607         (vreinterpret_s16_f64): Likewise.
25608         (vreinterpretq_s16_f64): Likewise.
25609         (vreinterpret_s32_f64): Likewise.
25610         (vreinterpretq_s32_f64): Likewise.
25611         (vreinterpret_u8_f64): Likewise.
25612         (vreinterpretq_u8_f64): Likewise.
25613         (vreinterpret_u16_f64): Likewise.
25614         (vreinterpretq_u16_f64): Likewise.
25615         (vreinterpret_u32_f64): Likewise.
25616         (vreinterpretq_u32_f64): Likewise.
25618 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25620         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25621         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
25622         (vreinterpret_p8_s8): Likewise.
25623         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
25624         (vreinterpret_p8_s16): Likewise.
25625         (vreinterpret_p8_s32): Likewise.
25626         (vreinterpret_p8_s64): Likewise.
25627         (vreinterpret_p8_f32): Likewise.
25628         (vreinterpret_p8_u8): Likewise.
25629         (vreinterpret_p8_u16): Likewise.
25630         (vreinterpret_p8_u32): Likewise.
25631         (vreinterpret_p8_u64): Likewise.
25632         (vreinterpret_p8_p16): Likewise.
25633         (vreinterpretq_p8_s8): Likewise.
25634         (vreinterpretq_p8_s16): Likewise.
25635         (vreinterpretq_p8_s32): Likewise.
25636         (vreinterpretq_p8_s64): Likewise.
25637         (vreinterpretq_p8_f32): Likewise.
25638         (vreinterpretq_p8_u8): Likewise.
25639         (vreinterpretq_p8_u16): Likewise.
25640         (vreinterpretq_p8_u32): Likewise.
25641         (vreinterpretq_p8_u64): Likewise.
25642         (vreinterpretq_p8_p16): Likewise.
25643         (vreinterpret_p16_s8): Likewise.
25644         (vreinterpret_p16_s16): Likewise.
25645         (vreinterpret_p16_s32): Likewise.
25646         (vreinterpret_p16_s64): Likewise.
25647         (vreinterpret_p16_f32): Likewise.
25648         (vreinterpret_p16_u8): Likewise.
25649         (vreinterpret_p16_u16): Likewise.
25650         (vreinterpret_p16_u32): Likewise.
25651         (vreinterpret_p16_u64): Likewise.
25652         (vreinterpret_p16_p8): Likewise.
25653         (vreinterpretq_p16_s8): Likewise.
25654         (vreinterpretq_p16_s16): Likewise.
25655         (vreinterpretq_p16_s32): Likewise.
25656         (vreinterpretq_p16_s64): Likewise.
25657         (vreinterpretq_p16_f32): Likewise.
25658         (vreinterpretq_p16_u8): Likewise.
25659         (vreinterpretq_p16_u16): Likewise.
25660         (vreinterpretq_p16_u32): Likewise.
25661         (vreinterpretq_p16_u64): Likewise.
25662         (vreinterpretq_p16_p8): Likewise.
25663         (vreinterpret_f32_s8): Likewise.
25664         (vreinterpret_f32_s16): Likewise.
25665         (vreinterpret_f32_s32): Likewise.
25666         (vreinterpret_f32_s64): Likewise.
25667         (vreinterpret_f32_u8): Likewise.
25668         (vreinterpret_f32_u16): Likewise.
25669         (vreinterpret_f32_u32): Likewise.
25670         (vreinterpret_f32_u64): Likewise.
25671         (vreinterpret_f32_p8): Likewise.
25672         (vreinterpret_f32_p16): Likewise.
25673         (vreinterpretq_f32_s8): Likewise.
25674         (vreinterpretq_f32_s16): Likewise.
25675         (vreinterpretq_f32_s32): Likewise.
25676         (vreinterpretq_f32_s64): Likewise.
25677         (vreinterpretq_f32_u8): Likewise.
25678         (vreinterpretq_f32_u16): Likewise.
25679         (vreinterpretq_f32_u32): Likewise.
25680         (vreinterpretq_f32_u64): Likewise.
25681         (vreinterpretq_f32_p8): Likewise.
25682         (vreinterpretq_f32_p16): Likewise.
25683         (vreinterpret_s64_s8): Likewise.
25684         (vreinterpret_s64_s16): Likewise.
25685         (vreinterpret_s64_s32): Likewise.
25686         (vreinterpret_s64_f32): Likewise.
25687         (vreinterpret_s64_u8): Likewise.
25688         (vreinterpret_s64_u16): Likewise.
25689         (vreinterpret_s64_u32): Likewise.
25690         (vreinterpret_s64_u64): Likewise.
25691         (vreinterpret_s64_p8): Likewise.
25692         (vreinterpret_s64_p16): Likewise.
25693         (vreinterpretq_s64_s8): Likewise.
25694         (vreinterpretq_s64_s16): Likewise.
25695         (vreinterpretq_s64_s32): Likewise.
25696         (vreinterpretq_s64_f32): Likewise.
25697         (vreinterpretq_s64_u8): Likewise.
25698         (vreinterpretq_s64_u16): Likewise.
25699         (vreinterpretq_s64_u32): Likewise.
25700         (vreinterpretq_s64_u64): Likewise.
25701         (vreinterpretq_s64_p8): Likewise.
25702         (vreinterpretq_s64_p16): Likewise.
25703         (vreinterpret_u64_s8): Likewise.
25704         (vreinterpret_u64_s16): Likewise.
25705         (vreinterpret_u64_s32): Likewise.
25706         (vreinterpret_u64_s64): Likewise.
25707         (vreinterpret_u64_f32): Likewise.
25708         (vreinterpret_u64_u8): Likewise.
25709         (vreinterpret_u64_u16): Likewise.
25710         (vreinterpret_u64_u32): Likewise.
25711         (vreinterpret_u64_p8): Likewise.
25712         (vreinterpret_u64_p16): Likewise.
25713         (vreinterpretq_u64_s8): Likewise.
25714         (vreinterpretq_u64_s16): Likewise.
25715         (vreinterpretq_u64_s32): Likewise.
25716         (vreinterpretq_u64_s64): Likewise.
25717         (vreinterpretq_u64_f32): Likewise.
25718         (vreinterpretq_u64_u8): Likewise.
25719         (vreinterpretq_u64_u16): Likewise.
25720         (vreinterpretq_u64_u32): Likewise.
25721         (vreinterpretq_u64_p8): Likewise.
25722         (vreinterpretq_u64_p16): Likewise.
25723         (vreinterpret_s8_s16): Likewise.
25724         (vreinterpret_s8_s32): Likewise.
25725         (vreinterpret_s8_s64): Likewise.
25726         (vreinterpret_s8_f32): Likewise.
25727         (vreinterpret_s8_u8): Likewise.
25728         (vreinterpret_s8_u16): Likewise.
25729         (vreinterpret_s8_u32): Likewise.
25730         (vreinterpret_s8_u64): Likewise.
25731         (vreinterpret_s8_p8): Likewise.
25732         (vreinterpret_s8_p16): Likewise.
25733         (vreinterpretq_s8_s16): Likewise.
25734         (vreinterpretq_s8_s32): Likewise.
25735         (vreinterpretq_s8_s64): Likewise.
25736         (vreinterpretq_s8_f32): Likewise.
25737         (vreinterpretq_s8_u8): Likewise.
25738         (vreinterpretq_s8_u16): Likewise.
25739         (vreinterpretq_s8_u32): Likewise.
25740         (vreinterpretq_s8_u64): Likewise.
25741         (vreinterpretq_s8_p8): Likewise.
25742         (vreinterpretq_s8_p16): Likewise.
25743         (vreinterpret_s16_s8): Likewise.
25744         (vreinterpret_s16_s32): Likewise.
25745         (vreinterpret_s16_s64): Likewise.
25746         (vreinterpret_s16_f32): Likewise.
25747         (vreinterpret_s16_u8): Likewise.
25748         (vreinterpret_s16_u16): Likewise.
25749         (vreinterpret_s16_u32): Likewise.
25750         (vreinterpret_s16_u64): Likewise.
25751         (vreinterpret_s16_p8): Likewise.
25752         (vreinterpret_s16_p16): Likewise.
25753         (vreinterpretq_s16_s8): Likewise.
25754         (vreinterpretq_s16_s32): Likewise.
25755         (vreinterpretq_s16_s64): Likewise.
25756         (vreinterpretq_s16_f32): Likewise.
25757         (vreinterpretq_s16_u8): Likewise.
25758         (vreinterpretq_s16_u16): Likewise.
25759         (vreinterpretq_s16_u32): Likewise.
25760         (vreinterpretq_s16_u64): Likewise.
25761         (vreinterpretq_s16_p8): Likewise.
25762         (vreinterpretq_s16_p16): Likewise.
25763         (vreinterpret_s32_s8): Likewise.
25764         (vreinterpret_s32_s16): Likewise.
25765         (vreinterpret_s32_s64): Likewise.
25766         (vreinterpret_s32_f32): Likewise.
25767         (vreinterpret_s32_u8): Likewise.
25768         (vreinterpret_s32_u16): Likewise.
25769         (vreinterpret_s32_u32): Likewise.
25770         (vreinterpret_s32_u64): Likewise.
25771         (vreinterpret_s32_p8): Likewise.
25772         (vreinterpret_s32_p16): Likewise.
25773         (vreinterpretq_s32_s8): Likewise.
25774         (vreinterpretq_s32_s16): Likewise.
25775         (vreinterpretq_s32_s64): Likewise.
25776         (vreinterpretq_s32_f32): Likewise.
25777         (vreinterpretq_s32_u8): Likewise.
25778         (vreinterpretq_s32_u16): Likewise.
25779         (vreinterpretq_s32_u32): Likewise.
25780         (vreinterpretq_s32_u64): Likewise.
25781         (vreinterpretq_s32_p8): Likewise.
25782         (vreinterpretq_s32_p16): Likewise.
25783         (vreinterpret_u8_s8): Likewise.
25784         (vreinterpret_u8_s16): Likewise.
25785         (vreinterpret_u8_s32): Likewise.
25786         (vreinterpret_u8_s64): Likewise.
25787         (vreinterpret_u8_f32): Likewise.
25788         (vreinterpret_u8_u16): Likewise.
25789         (vreinterpret_u8_u32): Likewise.
25790         (vreinterpret_u8_u64): Likewise.
25791         (vreinterpret_u8_p8): Likewise.
25792         (vreinterpret_u8_p16): Likewise.
25793         (vreinterpretq_u8_s8): Likewise.
25794         (vreinterpretq_u8_s16): Likewise.
25795         (vreinterpretq_u8_s32): Likewise.
25796         (vreinterpretq_u8_s64): Likewise.
25797         (vreinterpretq_u8_f32): Likewise.
25798         (vreinterpretq_u8_u16): Likewise.
25799         (vreinterpretq_u8_u32): Likewise.
25800         (vreinterpretq_u8_u64): Likewise.
25801         (vreinterpretq_u8_p8): Likewise.
25802         (vreinterpretq_u8_p16): Likewise.
25803         (vreinterpret_u16_s8): Likewise.
25804         (vreinterpret_u16_s16): Likewise.
25805         (vreinterpret_u16_s32): Likewise.
25806         (vreinterpret_u16_s64): Likewise.
25807         (vreinterpret_u16_f32): Likewise.
25808         (vreinterpret_u16_u8): Likewise.
25809         (vreinterpret_u16_u32): Likewise.
25810         (vreinterpret_u16_u64): Likewise.
25811         (vreinterpret_u16_p8): Likewise.
25812         (vreinterpret_u16_p16): Likewise.
25813         (vreinterpretq_u16_s8): Likewise.
25814         (vreinterpretq_u16_s16): Likewise.
25815         (vreinterpretq_u16_s32): Likewise.
25816         (vreinterpretq_u16_s64): Likewise.
25817         (vreinterpretq_u16_f32): Likewise.
25818         (vreinterpretq_u16_u8): Likewise.
25819         (vreinterpretq_u16_u32): Likewise.
25820         (vreinterpretq_u16_u64): Likewise.
25821         (vreinterpretq_u16_p8): Likewise.
25822         (vreinterpretq_u16_p16): Likewise.
25823         (vreinterpret_u32_s8): Likewise.
25824         (vreinterpret_u32_s16): Likewise.
25825         (vreinterpret_u32_s32): Likewise.
25826         (vreinterpret_u32_s64): Likewise.
25827         (vreinterpret_u32_f32): Likewise.
25828         (vreinterpret_u32_u8): Likewise.
25829         (vreinterpret_u32_u16): Likewise.
25830         (vreinterpret_u32_u64): Likewise.
25831         (vreinterpret_u32_p8): Likewise.
25832         (vreinterpret_u32_p16): Likewise.
25833         (vreinterpretq_u32_s8): Likewise.
25834         (vreinterpretq_u32_s16): Likewise.
25835         (vreinterpretq_u32_s32): Likewise.
25836         (vreinterpretq_u32_s64): Likewise.
25837         (vreinterpretq_u32_f32): Likewise.
25838         (vreinterpretq_u32_u8): Likewise.
25839         (vreinterpretq_u32_u16): Likewise.
25840         (vreinterpretq_u32_u64): Likewise.
25841         (vreinterpretq_u32_p8): Likewise.
25842         (vreinterpretq_u32_p16): Likewise.
25844 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25846         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
25847         Pattern extended.
25848         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
25849         (sqabs): Likewise.
25850         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
25851         (vqnegd_s64): Likewise.
25852         (vqabs_s64): Likewise.
25853         (vqabsd_s64): Likewise.
25855 2014-04-22  Richard Henderson  <rth@redhat.com>
25857         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
25858         computation to the top of the loop.
25860 2014-04-22  Renlin  <renlin.li@arm.com>
25861             Jiong Wang  <jiong.wang@arm.com>
25863         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
25864         * config/aarch64/aarch64.c (aarch64_layout_frame)
25865         (aarch64_initial_elimination_offset): Likewise.
25867 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25869         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
25870         Fix indentation.
25872 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
25874         * machmode.h (bitwise_mode_for_mode): Declare.
25875         * stor-layout.h (bitwise_type_for_mode): Likewise.
25876         * stor-layout.c (bitwise_mode_for_mode): New function.
25877         (bitwise_type_for_mode): Likewise.
25878         * builtins.c (fold_builtin_memory_op): Use it instead of
25879         int_mode_for_mode and build_nonstandard_integer_type.
25881 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25883         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
25884         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
25885         (*-*-solaris2*): Simplify.
25886         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
25887         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
25888         *-*-solaris2.9* handling.
25890         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
25891         as bug.
25892         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
25893         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
25894         handling, simplify.
25895         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
25896         * configure: Regenerate.
25898         * config/i386/sol2-9.h: Remove.
25900         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
25901         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
25902         Remove Solaris 9 references.
25904 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
25906         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
25907         (floatuns<GPI:mode><GPF:mode>2): Remove.
25908         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
25909         and floatuns conversions.
25910         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
25911         and floatuns conversions.
25912         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
25913         (w1,w2): New mode attributes for inequal width conversions.
25915 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
25917         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
25918         the output asm format.
25920 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
25922         * config/aarch64/aarch64-simd.md
25923         (aarch64_cm<optab>di): Always split.
25924         (*aarch64_cm<optab>di): New.
25925         (aarch64_cmtstdi): Always split.
25926         (*aarch64_cmtstdi): New.
25928 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25930         PR tree-optimization/60823
25931         * omp-low.c (ipa_simd_modify_function_body): Go through
25932         all SSA_NAMEs and for those refering to vector arguments
25933         which are going to be replaced adjust SSA_NAME_VAR and,
25934         if it is a default definition, change it into a non-default
25935         definition assigned at the beginning of function from new_decl.
25936         (ipa_simd_modify_stmt_ops): Rewritten.
25937         * tree-dfa.c (set_ssa_default_def): When removing default def,
25938         check for NULL loc instead of NULL *loc.
25940 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25942         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
25943         restrictions on core registers for DImode values in Thumb2.
25945 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
25947         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
25948         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
25950 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
25952         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
25953         (*iordi_notzesidi_di): Likewise.
25954         (*iordi_notsesidi_di): Likewise.
25956 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
25958         * config/arm/arm-protos.h (tune_params): New struct members.
25959         * config/arm/arm.c: Initialise tune_params per processor.
25960         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
25961         for speed, based on new tune_params.
25963 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25965         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
25966         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
25967         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
25968         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
25969         * config/aarch64/arm_neon.h (vrnd_f64): Added.
25970         (vrnda_f64): Likewise.
25971         (vrndi_f64): Likewise.
25972         (vrndm_f64): Likewise.
25973         (vrndn_f64): Likewise.
25974         (vrndp_f64): Likewise.
25975         (vrndx_f64): Likewise.
25977 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25979         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
25980         GET_MODE_SIZE argument is enum machine_mode.
25982 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25984         PR target/60910
25985         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
25986         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
25988 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
25990         PR middle-end/60281
25991         * asan.c (asan_emit_stack_protection): Force the base to align to
25992         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
25993         appropriate bits if STRICT_ALIGNMENT.
25994         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
25995         when asan is on.
25996         (expand_used_vars): Leave a space in the stack frame for alignment
25997         if STRICT_ALIGNMENT.
25999 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
26001         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
26002         than a gimple.
26003         (gimple_store_p): Likewise.
26004         (gimple_assign_load_p): Likewise.
26005         (gimple_assign_cast_p): Likewise.
26006         (gimple_clobber_p): Likewise.
26008         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
26009         rather than a gimple.
26010         (gimple_assign_cast_p): Likewise.
26012 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26014         PR target/60735
26015         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
26016         If mode is DDmode and TARGET_E500_DOUBLE allow move.
26018         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
26019         more debug information for E500 if -mdebug=reg.
26021 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
26023         PR target/60909
26024         * config/i386/i386.c (ix86_expand_builtin)
26025         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
26026         register for target RTX.
26027         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
26029 2014-04-18  Cong Hou  <congh@google.com>
26031         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
26032         the widen-mult pattern by handling two operands with different sizes,
26033         and operands whose size is smaller than half of the result type.
26035 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26037         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
26038         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
26039         (do_estimate_edge_time): Compute it.
26040         * ipa-inline.c (want_inline_small_function_p): Bypass
26041         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
26043 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26045         * ipa-inline.c (spec_rem): New static variable.
26046         (dump_overall_stats): New function.
26047         (dump_inline_stats): New function.
26049 2014-04-18  Richard Henderson  <rth@redhat.com>
26051         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
26052         to GET_MODE_SIZE, not a reg_class_t.
26054 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26056         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
26057         (vsx_xxmrglw_<mode>): Likewise.
26059 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
26061         PR target/60876
26062         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
26063         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
26064         (rs6000_init_hard_regno_mode_ok): Likewise.
26066 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
26068         * ipa-inline.c (inline_small_functions): Account only non-cold
26069         functions.
26070         * doc/invoke.texi (inline-unit-growth): Update documentation.
26072 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
26074         * config/rs6000/rs6000.md (addti3, subti3): New.
26076 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
26078         PR target/60863
26079         * config/i386/i386.c (ix86_expand_clear): Remove outdated
26080         comment.  Check optimize_insn_for_size_p instead of
26081         optimize_insn_for_speed_p.
26083 2014-04-17  Martin Jambor  <mjambor@suse.cz>
26085         * gimple-iterator.c (gsi_start_edge): New function.
26086         * gimple-iterator.h (gsi_start_edge): Declare.
26087         * tree-sra.c (single_non_eh_succ): New function.
26088         (disqualify_ops_if_throwing_stmt): Renamed to
26089         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
26090         having one non-EH successor BB.
26091         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
26092         generate loads into replacements.
26093         (sra_modify_assign): Likewise and and also use the simple path for
26094         such statements.
26095         (sra_modify_function_body): Commit statements on edges.
26097 2014-04-17  Richard Biener  <rguenther@suse.de>
26099         PR middle-end/60849
26100         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
26101         comparison results and add clarifying comment.
26103 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
26105         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
26106         (blank_mode): Initialize it.
26107         (emit_mode_size_inline, emit_mode_nunits_inline,
26108         emit_mode_inner_inline): New functions.
26109         (emit_insn_modes_h): Call them and surround their output with
26110         #if GCC_VERSION >= 4001 ... #endif.
26111         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
26112         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
26113         mode_* arrays if the argument is __builtin_constant_p.
26114         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
26115         is enum machine_mode.
26117 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26119         * passes.c (opt_pass::execute): Adjust.
26120         (pass_manager::execute_pass_mode_switching): Likewise.
26121         (early_local_passes::execute): Likewise.
26122         (execute_one_pass): Pass cfun to the pass's execute method.
26123         * tree-pass.h (opt_pass::execute): Add function * argument.
26124         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26125         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26126         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26127         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26128         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26129         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
26130         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
26131         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26132         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26133         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
26134         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
26135         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
26136         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
26137         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
26138         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26139         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26140         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26141         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
26142         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
26143         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26144         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26145         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26146         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26147         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26148         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26149         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26150         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26151         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26152         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26153         Adjust.
26155 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26157         * passes.c (opt_pass::gate): Take function * argument.
26158         (gate_all_early_local_passes): Merge into
26159         (early_local_passes::gate): this.
26160         (gate_all_early_optimizations): Merge into
26161         (all_early_optimizations::gate): this.
26162         (gate_all_optimizations): Mege into
26163         (all_optimizations::gate): this.
26164         (gate_all_optimizations_g): Merge into
26165         (all_optimizations_g::gate): this.
26166         (gate_rest_of_compilation): Mege into
26167         (rest_of_compilation::gate): this.
26168         (gate_postreload): Merge into
26169         (postreload::gate): this.
26170         (dump_one_pass): Pass cfun to the pass's gate method.
26171         (execute_ipa_summary_passes): Likewise.
26172         (execute_one_pass): Likewise.
26173         (ipa_write_summaries_2): Likewise.
26174         (ipa_write_optimization_summaries_1): Likewise.
26175         (ipa_read_summaries_1): Likewise.
26176         (ipa_read_optimization_summaries_1): Likewise.
26177         (execute_ipa_stmt_fixups): Likewise.
26178         * tree-pass.h (opt_pass::gate): Add function * argument.
26179         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
26180         combine-stack-adj.c, combine.c, compare-elim.c,
26181         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26182         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
26183         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
26184         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
26185         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26186         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26187         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26188         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
26189         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
26190         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
26191         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26192         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26193         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
26194         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26195         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26196         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26197         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26198         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26199         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26200         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26201         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26202         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26203         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
26204         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
26205         var-tracking.c, vtable-verify.c, web.c: Adjust.
26207 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26209         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
26210         * configure: Regenerate.
26212 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26214         * passes.c (dump_one_pass): don't check pass->has_gate.
26215         (execute_ipa_summary_passes): Likewise.
26216         (execute_one_pass): Likewise.
26217         (ipa_write_summaries_2): Likewise.
26218         (ipa_write_optimization_summaries_1): Likewise.
26219         (ipa_read_optimization_summaries_1): Likewise.
26220         (execute_ipa_stmt_fixups): Likewise.
26221         * tree-pass.h (pass_data::has_gate): Remove.
26222         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26223         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26224         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26225         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26226         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26227         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26228         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26229         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26230         gimple-low.c, gimple-ssa-isolate-paths.c,
26231         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26232         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
26233         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26234         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
26235         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
26236         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
26237         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
26238         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
26239         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26240         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26241         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26242         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26243         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26244         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26245         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26246         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26247         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26248         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26249         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26250         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26251         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26252         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26253         Adjust.
26255 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26257         * pass_manager.h (pass_manager::register_dump_files_1): Remove
26258         declaration.
26259         * passes.c (pass_manager::register_dump_files_1): Merge into
26260         (pass_manager::register_dump_files): this, and remove its handling of
26261         properties since the pass always has the properties anyway.
26262         (pass_manager::pass_manager): Adjust.
26264 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26266         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
26267         * passes.c (pass_manager::register_dump_files_1): Remove dead code
26268         dealing with properties.
26269         (pass_manager::register_dump_files): Adjust.
26271 2014-03-20  Mark Wielaard  <mjw@redhat.com>
26273         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
26274         then represent the bound as normal constant value.
26276 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
26278         PR target/60847
26279         Forward port from 4.8 branch
26280         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
26282         * config/i386/bmiintrin.h (_blsi_u32): New.
26283         (_blsi_u64): Ditto.
26284         (_blsr_u32): Ditto.
26285         (_blsr_u64): Ditto.
26286         (_blsmsk_u32): Ditto.
26287         (_blsmsk_u64): Ditto.
26288         (_tzcnt_u32): Ditto.
26289         (_tzcnt_u64): Ditto.
26291 2014-04-17  Kito Cheng  <kito@0xlab.org>
26293         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
26295 2014-04-17  Richard Biener  <rguenther@suse.de>
26297         PR middle-end/60849
26298         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
26299         boolean results for comparisons.
26301 2014-04-17  Richard Biener  <rguenther@suse.de>
26303         PR tree-optimization/60836
26304         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
26305         initial PHI args to be gimple values.
26307 2014-04-17  Richard Biener  <rguenther@suse.de>
26309         PR tree-optimization/60841
26310         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
26311         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
26312         of stmts to SLP build.
26313         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
26314         (vect_analyze_slp): Likewise.
26315         (vect_analyze_slp_instance): Likewise.
26316         (vect_build_slp_tree): Limit overall SLP tree growth.
26317         * tree-vectorizer.h (vect_analyze_data_refs,
26318         vect_analyze_slp): Adjust prototypes.
26320 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26322         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
26323         Silvermont.
26325 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26327         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
26328         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
26329         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
26330         for TARGET_SLOW_PSHUFB
26332 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26334         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
26335         * config/i386/i386.c (intel_cost): Ditto.
26337 2014-04-17  Joey Ye  <joey.ye@arm.com>
26339         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
26341 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
26343         * opts.c (common_handle_option): Disable -fipa-reference coorectly
26344         with -fuse-profile.
26346 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
26348         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
26349         (type_all_derivations_known_p): New predicate.
26350         (type_all_ctors_visible_p): New predicate.
26351         (type_possibly_instantiated_p): New predicate.
26352         (get_odr_type): Compute all_derivations_known.
26353         (dump_odr_type): Dump the flag.
26354         (maybe_record_type): Cleanup.
26355         (record_target_from_binfo): Add bases_to_consider array;
26356         record bases for types w/o instances and skip CXX destructor.
26357         (possible_polymorphic_call_targets_1): Add bases_to_consider
26358         and consider_construction parameters; check if type may have instance.
26359         (get_polymorphic_call_info): Set maybe_in_construction to true
26360         when we know nothing.
26361         (record_targets_from_bases): Skip CXX destructors; they are
26362         never called for types in construction.
26363         (possible_polymorphic_call_targets): Do not record target when
26364         type may not have instance.
26366 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
26368         PR ipa/60854
26369         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
26370         external aliases alive, too.
26372 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
26374         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
26375         definition.
26377 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
26379         * final.c (compute_alignments): Do not apply loop alignment to a block
26380         falling through to the exit.
26382 2014-04-16  Catherine Moore  <clm@codesourcery.com>
26384         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
26385         Adjust constraints for microMIPS store patterns.
26387 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
26389         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
26391 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
26393         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
26394         (append_use): Run at -O0.
26395         (append_vdef): Likewise.
26396         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
26397         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
26399 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
26401         PR tree-optimization/60844
26402         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
26403         (propagate_op_to_single_use, remove_visited_stmt_chain,
26404         linearize_expr, repropagate_negates, reassociate_bb): Use it
26405         instead of gsi_remove.
26407 2014-04-16  Martin Jambor  <mjambor@suse.cz>
26409         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
26410         ipa_transforms_to_apply.
26411         (cgraph_function_versioning): Assert that old_node has empty
26412         ipa_transforms_to_apply.
26413         * trans-mem.c (ipa_tm_create_version): Likewise.
26414         * tree-inline.c (tree_function_versioning): Do not duplicate
26415         ipa_transforms_to_apply.
26417 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26419         PR target/60817
26420         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
26421         x86_64-*-* cases.
26422         Pass necessary as flags on 64-bit Solaris/x86.
26423         Use lowercase relocs for x86_64-*-*.
26424         * configure: Regenerate.
26426 2014-04-15  Jan Hubicka  <jh@suse.cz>
26428         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
26429         (maybe_record_node, likely_target_p): Use it.
26431 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26433         PR target/60839
26434         Revert following patch
26436         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26438         PR target/60735
26439         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26440         software floating point or no floating point registers, do not
26441         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
26442         in GPRs that occurs after we tested for GPRs that would never be
26443         true.
26445         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26446         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26447         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
26448         specifically allow DDmode, since that does not use the SPE SIMD
26449         instructions.
26451 2014-03-21  Mark Wielaard  <mjw@redhat.com>
26453         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
26454         as unsigned or int depending on type and value used.
26456 2014-04-15  Richard Biener  <rguenther@suse.de>
26458         PR rtl-optimization/56965
26459         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
26460         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
26461         ... here.
26462         * alias.c (true_dependence_1): Do not call
26463         nonoverlapping_component_refs_p.
26464         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
26465         nonoverlapping_component_refs_p.
26466         (indirect_refs_may_alias_p): Likewise.
26468 2014-04-15  Teresa Johnson  <tejohnson@google.com>
26470         * cfg.c (dump_bb_info): Fix flags check.
26471         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
26473 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26475         PR rtl-optimization/60663
26476         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
26477         avoid 0 cost.
26479 2014-04-15  Richard Biener  <rguenther@suse.de>
26481         * lto-streamer.h (LTO_major_version): Bump to 4.
26483 2014-04-15  Richard Biener  <rguenther@suse.de>
26485         * common.opt (lto_partition_model): New enum.
26486         (flto-partition=): Merge separate options with a single with argument,
26487         add -flto-partition=one support.
26488         * flag-types.h (enum lto_partition_model): Declare.
26489         * opts.c (finish_options): Remove duplicate -flto-partition=
26490         option check.
26491         * lto-wrapper.c (run_gcc): Adjust.
26493 2014-04-15  Richard Biener  <rguenther@suse.de>
26495         * alias.c (ncr_compar): New function.
26496         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
26498 2014-04-15  Richard Biener  <rguenther@suse.de>
26500         * alias.c (record_component_aliases): Do not walk BINFOs.
26502 2014-04-15  Richard Biener  <rguenther@suse.de>
26504         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26505         Add struct function argument and adjust.
26506         (find_func_aliases_for_call): Likewise.
26507         (find_func_aliases): Likewise.
26508         (find_func_clobbers): Likewise.
26509         (intra_create_variable_infos): Likewise.
26510         (compute_points_to_sets): Likewise.
26511         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
26513 2014-04-15  Richard Biener  <rguenther@suse.de>
26515         * tree.c (iterative_hash_expr): Use enum tree_code_class
26516         to store TREE_CODE_CLASS.
26517         (tree_block): Likewise.
26518         (tree_set_block): Likewise.
26519         * tree.h (fold_build_pointer_plus_loc): Use
26520         convert_to_ptrofftype_loc.
26522 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
26524         PR plugins/59335
26525         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
26526         added in 4.9.
26528 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26530         * cfgloop.h (struct loop): Move force_vectorize down.
26531         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
26532         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
26533         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
26534         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
26535         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
26536         * tree-core.h (enum annot_expr_kind): Add new kind values.
26537         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
26538         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
26539         kinds.
26540         * tree.def (ANNOTATE_EXPR): Tweak comment.
26542 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26544         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
26545         cxa_pure_virtual).
26547 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
26549         * tree.h (TYPE_IDENTIFIER): Declare.
26550         * tree.c (subrange_type_for_debug_p): Use it.
26551         * godump.c (go_format_type): Likewise.
26552         * dwarf2out.c (is_cxx_auto, modified_type_die,
26553         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
26554         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
26556 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26558         PR lto/60820
26559         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
26561 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
26563         * config/i386/i386.c (examine_argument): Return bool.  Return true if
26564         parameter should be passed in memory.
26565         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
26566         (construct_container): Update calls to examine_argument.
26567         (function_arg_advance_64): Ditto.
26568         (return_in_memory_32): Merge with ix86_return_in_memory.
26569         (return_in_memory_64): Ditto.
26570         (return_in_memory_ms_64): Ditto.
26572 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26574         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
26575         * coverage.c (coverage_compute_profile_id): Handle externally visible
26576         symbols.
26578 2014-04-14  Martin Jambor  <mjambor@suse.cz>
26580         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
26581         DECL_DISREGARD_INLINE_LIMITS functions.
26583 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
26585         PR target/60827
26586         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
26588 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
26590         PR target/60827
26591         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
26592         optimize_insn_for_speed_p instead of
26593         optimize_function_for_speed_p.
26595 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
26597         * doc/invoke.texi (free): Document AArch64.
26599 2014-04-14  Richard Biener  <rguenther@suse.de>
26601         PR tree-optimization/60042
26602         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
26603         (insert_into_preds_of_block): Do not prevent PHI insertion
26604         for REFERENCE exprs here ...
26605         (eliminate_dom_walker::before_dom_children): ... but prevent
26606         their use here under similar conditions when applied to the
26607         IL after PRE optimizations.
26609 2014-04-14  Richard Biener  <rguenther@suse.de>
26611         * passes.def: Move early points-to after early SRA.
26613 2014-04-14  Richard Biener  <rguenther@suse.de>
26615         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
26616         check for which sign-changes we allow when forwarding
26617         a converted value into a switch.
26619 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
26621         * stor-layout.c (place_field): Finalize non-constant offset for the
26622         field, if any.
26624 2014-04-14  Richard Biener  <rguenther@suse.de>
26626         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
26627         as argument.
26628         (expand_switch_using_bit_tests_p): Likewise.
26629         (process_switch): Compute and pass on speed_p based on the
26630         switch stmt.
26631         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
26632         optimize_bb_for_speed_p.
26634 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
26636         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
26637         * function.h (struct function): Rename has_force_vect_loops into
26638         has_force_vectorize_loops.
26639         * lto-streamer-in.c (input_cfg): Adjust for renaming.
26640         (input_struct_function_base): Likewise.
26641         * lto-streamer-out.c (output_cfg): Likewise.
26642         (output_struct_function_base): Likewise.
26643         * omp-low.c (expand_omp_simd): Likewise.
26644         * tree-cfg.c (move_sese_region_to_fn): Likewise.
26645         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
26646         (version_loop_for_if_conversion): Likewise.
26647         (tree_if_conversion): Likewise.
26648         (main_tree_if_conversion): Likewise.
26649         (gate_tree_if_conversion): Likewise.
26650         * tree-inline.c (copy_loops): Likewise.
26651         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
26652         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
26653         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26654         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
26655         * tree-vectorizer.c (vectorize_loops): Likewise.
26656         * tree-vectorizer.h (unlimited_cost_model): Likewise.
26658 2014-04-14  Richard Biener  <rguenther@suse.de>
26660         PR lto/60720
26661         * lto-streamer-out.c (wrap_refs): New function.
26662         (lto_output): Wrap symbol references in global initializes in
26663         type-preserving MEM_REFs.
26665 2014-04-14  Christian Bruel  <christian.bruel@st.com>
26667         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
26669 2014-04-14  Christian Bruel  <christian.bruel@st.com>
26671         * config/sh/sh.md (setmemqi): New expand pattern.
26672         * config/sh/sh.h (CLEAR_RATIO): Define.
26673         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
26674         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
26676 2014-04-14  Richard Biener  <rguenther@suse.de>
26678         PR middle-end/55022
26679         * fold-const.c (negate_expr_p): Don't negate directional rounding
26680         division.
26681         (fold_negate_expr): Likewise.
26683 2014-04-14  Richard Biener  <rguenther@suse.de>
26685         PR tree-optimization/59817
26686         PR tree-optimization/60453
26687         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
26688         recursion to catch all CHRECs in the scalar evolution and restrict
26689         the predicate for the remains appropriately.
26691 2014-04-12  Catherine Moore  <clm@codesourcery.com>
26693         * config/mips/constraints.md: Add new register constraint "kb".
26694         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
26695         (*movhi_internal): Likewise.
26696         (*movqi_internal): Likewise.
26697         * config/mips/mips.h (M16_STORE_REGS): New register class.
26698         (REG_CLASS_NAMES): Add M16_STORE_REGS.
26699         (REG_CLASS_CONTENTS): Likewise.
26700         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
26702 2014-04-11  Tobias Burnus  <burnus@net-b.de>
26704         PR c/60194
26705         * doc/invoke.texi (-Wformat-signedness): Document it.
26706         (Wformat=2): Mention that this enables -Wformat-signedness.
26708 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26710         * common/config/epiphany/epiphany-common.c
26711         (epiphany_option_optimization_table): Enable section anchors by
26712         default at -O1 or higher.
26713         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
26714         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
26715         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
26716         carries no extra cost.
26717         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
26718         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
26719         * config/epiphany/predicates.md (memclob_operand): New predicate.
26720         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
26721         Use memclob_operand predicate and X constraint for operand 3.
26723 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26725         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
26726         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
26727         its operands.
26729 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26731         PR rtl-optimization/60651
26732         * mode-switching.c (optimize_mode_switching): Make sure to emit
26733         sets of a lower numbered entity before sets of a higher numbered
26734         entity to a mode of the same or lower priority.
26735         When creating a seginfo for a basic block that starts with a code
26736         label, move the insertion point past the code label.
26737         (new_seginfo): Document and enforce requirement that
26738         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
26739         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
26740         * doc/tm.texi: Regenerate.
26742 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26744         PR target/60811
26745         * config/arc/arc.c (arc_save_restore): Fix assert typo.
26747 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
26749         * BASE-VER: Set to 4.10.0.
26751 2014-04-11  Tobias Burnus  <burnus@net-b.de>
26753         PR other/59055
26754         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
26755         * doc/gcc.texi (Service): Update description in the @menu
26756         * doc/invoke.texi (Option Summary): Remove misplaced and
26757         duplicated @menu.
26759 2014-04-11  Steve Ellcey  <sellcey@mips.com>
26760             Jakub Jelinek  <jakub@redhat.com>
26762         PR middle-end/60556
26763         * expr.c (convert_move): Use emit_store_flag_force instead of
26764         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
26765         argument to it.
26767 2014-04-11  Richard Biener  <rguenther@suse.de>
26769         PR middle-end/60797
26770         * varasm.c (assemble_alias): Avoid endless error reporting
26771         recursion by setting TREE_ASM_WRITTEN.
26773 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26775         * config/s390/s390.md: Add a splitter for NOT rtx.
26777 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
26779         PR rtl-optimization/60663
26780         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
26782 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
26783             Jakub Jelinek  <jakub@redhat.com>
26785         PR lto/60567
26786         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
26787         flag from decl_node to node.
26789 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26791         PR debug/60655
26792         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
26793         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
26794         ameliorating the cases where it can be.
26796 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
26798         Revert
26799         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
26801         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26802         (loadsync_<mode>): Change mode.
26803         (load_quadpti, store_quadpti): New.
26804         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26805         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26806         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
26808 2014-04-09  Cong Hou  <congh@google.com>
26810         PR testsuite/60773
26811         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
26812         documentation.
26814 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26816         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
26817         instead of vnor to exploit possible fusion opportunity in the
26818         future.
26819         (altivec_expand_vec_perm_const_le): Likewise.
26821 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
26823         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26824         (loadsync_<mode>): Change mode.
26825         (load_quadpti, store_quadpti): New.
26826         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26827         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26829 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
26831         PR target/60763
26832         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
26833         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
26834         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
26836 2014-04-08  Richard Biener  <rguenther@suse.de>
26838         PR middle-end/60706
26839         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
26840         a 64bit widest int print double-int similar to on HWI64 hosts.
26842 2014-04-08  Richard Biener  <rguenther@suse.de>
26844         PR tree-optimization/60785
26845         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
26846         default defs properly.
26848 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
26850         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
26851         (Weffc++): Likewise.
26853 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
26855         * ipa-devirt.c (maybe_record_node): When node is not recorded,
26856         set completep to false rather than true.
26858 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
26860         PR target/60504
26861         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
26862         ARM_TARGET2_DWARF_FORMAT.
26864 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
26866         PR target/60609
26867         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
26868         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
26869         ADDR_DIFF_VEC.
26871 2014-04-07  Richard Biener  <rguenther@suse.de>
26873         PR tree-optimization/60766
26874         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
26875         (may_eliminate_iv): Convert cand_value_at result to desired type.
26877 2014-04-07  Jason Merrill  <jason@redhat.com>
26879         PR c++/60731
26880         * common.opt (-fno-gnu-unique): Add.
26881         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
26883 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26885         * haifa-sched.c: Fix outdated function reference and minor
26886         grammar errors in introductory comment.
26888 2014-04-07  Richard Biener  <rguenther@suse.de>
26890         PR middle-end/60750
26891         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
26892         for noreturn calls.
26893         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
26895 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
26897         PR debug/55794
26898         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
26899         size accounting for thunks.
26900         (pa_asm_output_mi_thunk): Use final_start_function() and
26901         final_end_function() to output function start and end directives.
26903 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
26905         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
26906         device specific ISA/ feature information. Remove short_sp and
26907         errata_skip ds.  Add avr_device_specific_features enum to have device
26908         specific info.
26909         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
26910         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
26911         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
26912         updated device specific info.
26913         * config/avr/avr-mcus.def: Merge device specific details to
26914         dev_attribute field.
26915         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
26916         errata_skip.
26917         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
26918         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
26919         assembler if RMW isa supported by current device.
26920         * config/avr/genmultilib.awk: Update as device info structure changed.
26921         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
26923 2014-04-04  Cong Hou  <congh@google.com>
26925         PR tree-optimization/60656
26926         * tree-vect-stmts.c (supportable_widening_operation):
26927         Fix a bug that elements in a vector with vect_used_by_reduction
26928         property are incorrectly reordered when the operation on it is not
26929         consistant with the one in reduction operation.
26931 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
26933         PR rtl-optimization/60155
26934         * gcse.c (record_set_data): New function.
26935         (single_set_gcse): New function.
26936         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
26937         (hoist_code): Likewise.
26938         (get_pressure_class_and_nregs): Likewise.
26940 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
26942         * explow.c (probe_stack_range): Emit a final optimization blockage.
26944 2014-04-04  Anthony Green  <green@moxielogic.com>
26946         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
26947         typos.
26949 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
26951         PR ipa/59626
26952         * lto-cgraph.c (input_overwrite_node): Check that partitioning
26953         flags are set only during streaming.
26954         * ipa.c (process_references, walk_polymorphic_call_targets,
26955         symtab_remove_unreachable_nodes): Drop bodies of always inline
26956         after early inlining.
26957         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
26959 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
26960         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26962         PR debug/60655
26963         * dwarf2out.c (const_ok_for_output_1): Reject expressions
26964         containing a NOT.
26966 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26968         PR bootstrap/60743
26969         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
26970         duration.
26971         (cortex_a53_fdivd): Likewise.
26973 2014-04-04  Martin Jambor  <mjambor@suse.cz>
26975         PR ipa/60640
26976         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
26977         Adjust all callers.
26978         * cgraph.c (clone_of_p): Also return true if thunks match.
26979         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
26980         cgraph_function_or_thunk_node and an obsolete comment.
26981         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
26982         file.
26983         (build_function_decl_skip_args): Likewise.
26984         (set_new_clone_decl_and_node_flags): New function.
26985         (duplicate_thunk_for_node): Likewise.
26986         (redirect_edge_duplicating_thunks): Likewise.
26987         (cgraph_clone_node): New parameter args_to_skip, pass it to
26988         redirect_edge_duplicating_thunks which is called instead of
26989         cgraph_redirect_edge_callee.
26990         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
26991         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
26993 2014-04-04  Jeff Law  <law@redhat.com>
26995         PR target/60657
26996         * config/arm/predicates.md (const_int_I_operand): New predicate.
26997         (const_int_M_operand): Similarly.
26998         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
26999         const_int_operand.
27000         (insv_t2, extv_reg, extzv_t2): Likewise.
27001         (load_multiple_with_writeback): Similarly for const_int_I_operand.
27002         (pop_multiple_with_writeback_and_return): Likewise.
27003         (vfp_pop_multiple_with_writeback): Likewise
27005 2014-04-04  Richard Biener  <rguenther@suse.de>
27007         PR ipa/60746
27008         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
27009         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
27010         non-GIMPLE_LABELs.
27011         * gimplify.h (gimple_add_tmp_var_fn): Declare.
27012         * gimplify.c (gimple_add_tmp_var_fn): New function.
27013         * gimple-expr.h (create_tmp_reg_fn): Declare.
27014         * gimple-expr.c (create_tmp_reg_fn): New function.
27015         * gimple-low.c (record_vars_into): Don't change cfun.
27016         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
27017         code generation without cfun.
27019 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
27021         PR bootstrap/60719
27022         * Makefile.in (install-driver): Fix shell scripting.
27024 2014-04-03  Cong Hou  <congh@google.com>
27026         PR tree-optimization/60505
27027         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
27028         threshold of number of iterations below which no vectorization
27029         will be done.
27030         * tree-vect-loop.c (new_loop_vec_info):
27031         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
27032         * tree-vect-loop.c (vect_analyze_loop_operations):
27033         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
27034         * tree-vect-loop.c (vect_transform_loop):
27035         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
27036         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
27037         of iterations of the loop and see if we should build the epilogue.
27039 2014-04-03  Richard Biener  <rguenther@suse.de>
27041         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
27042         (streamer_tree_cache_create): Adjust.
27043         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
27044         to allow optional nodes array.
27045         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
27046         (streamer_tree_cache_append): Likewise.
27047         (streamer_tree_cache_create): Create nodes array optionally
27048         as specified by parameter.
27049         * lto-streamer-out.c (create_output_block): Avoid maintaining
27050         the node array in the writer cache.
27051         (DFS_write_tree): Remove assertion.
27052         (produce_asm_for_decls): Free the out decl state hash table early.
27053         * lto-streamer-in.c (lto_data_in_create): Adjust for
27054         streamer_tree_cache_create prototype change.
27056 2014-04-03  Richard Biener  <rguenther@suse.de>
27058         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
27059         set TREE_CHAIN to NULL_TREE.
27061 2014-04-03  Richard Biener  <rguenther@suse.de>
27063         PR tree-optimization/60740
27064         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
27065         over all GIMPLE_COND operands.
27067 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
27069         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
27070         (Weffc++): Remove Scott's numbering, merge lists and reference
27071         Wnon-virtual-dtor.
27073 2014-04-03  Nick Clifton  <nickc@redhat.com>
27075         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
27076         properly.
27078 2014-04-03  Martin Jambor  <mjambor@suse.cz>
27080         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
27081         mention gcc_unreachable before failing.
27082         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
27083         removed symbols.
27085 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
27087         PR ipa/60659
27088         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
27089         inconsistent code and instead mark the context inconsistent.
27090         (possible_polymorphic_call_targets): For inconsistent contexts
27091         return empty complete list.
27093 2014-04-02  Anthony Green  <green@moxielogic.com>
27095         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
27096         (extendqisi2, extendhisi2): Define.
27097         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
27098         (WCHAR_TYPE): Change to unsigned int.
27100 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27102         PR tree-optimization/60733
27103         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
27104         insertion point for PHI candidates to be the end of the feeding
27105         block for the PHI argument.
27107 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
27109         PR rtl-optimization/60650
27110         * lra-constraints.c (process_alt_operands): Decrease reject for
27111         earlyclobber matching.
27113 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27115         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
27117 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27119         * config/spu/spu.c (pad_bb): Do not crash when the last
27120         insn is CODE_FOR_blockage.
27122 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27124         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
27125         lies outside the target mode.
27127 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27129         PR target/60735
27130         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27131         software floating point or no floating point registers, do not
27132         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
27133         in GPRs that occurs after we tested for GPRs that would never be
27134         true.
27136         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27137         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27138         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
27139         specifically allow DDmode, since that does not use the SPE SIMD
27140         instructions.
27142 2014-04-02  Richard Biener  <rguenther@suse.de>
27144         PR middle-end/60729
27145         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
27146         MODE_INTs.  Properly use negv_optab.
27147         (expand_abs): Likewise.
27149 2014-04-02  Richard Biener  <rguenther@suse.de>
27151         PR bootstrap/60719
27152         * Makefile.in (install-driver): Guard extra installs with special
27153         names properly.
27155 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27157         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27158         Document vec_vgbbd.
27160 2014-04-01  Richard Henderson  <rth@redhat.com>
27162         PR target/60704
27163         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
27164         alternative enabled before register allocation.
27166 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
27168         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
27169         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
27170         typo.
27171         (nios2_large_got_address): Remove unneeded 'sym' parameter.
27172         (nios2_got_address): Update nios2_large_got_address call site.
27173         (nios2_delegitimize_address): New function.
27174         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
27175         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
27176         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
27178 2014-04-01  Martin Husemann  <martin@duskware.de>
27180         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
27181         for -mabi=32.
27183 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
27185         PR rtl-optimization/60604
27186         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
27187         check from register_operand.
27188         (register_operand): Redefine in terms of general_operand.
27189         (nonmemory_operand): Use register_operand for the non-constant cases.
27191 2014-04-01  Richard Biener  <rguenther@suse.de>
27193         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
27195 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27197         * doc/invoke.texi (mapp-regs): Clarify.
27199 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
27201         * config/i386/avx512fintrin.h (__v32hi): Define type.
27202         (__v64qi): Likewise.
27203         (_mm512_set1_epi8): Define.
27204         (_mm512_set1_epi16): Define.
27205         (_mm512_set4_epi32): Define.
27206         (_mm512_set4_epi64): Define.
27207         (_mm512_set4_pd): Define.
27208         (_mm512_set4_ps): Define.
27209         (_mm512_setr4_epi64): Define.
27210         (_mm512_setr4_epi32): Define.
27211         (_mm512_setr4_pd): Define.
27212         (_mm512_setr4_ps): Define.
27213         (_mm512_setzero_epi32): Define.
27215 2014-03-31  Martin Jambor  <mjambor@suse.cz>
27217         PR middle-end/60647
27218         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
27219         callsite_arguments_match_p.  Updated all callers.  Also check types of
27220         corresponding formal parameters and actual arguments.
27221         (not_all_callers_have_enough_arguments_p) Renamed to
27222         some_callers_have_mismatched_arguments_p.
27224 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
27226         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
27228 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
27230         PR target/60034
27231         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
27232         section anchor.
27234 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
27236         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
27237         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
27238         Split out
27239         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27240         Use FMAMODE_NOVF512 mode iterator.
27241         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27242         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27243         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27244         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27245         Split out
27246         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27247         Use VF_128_256 mode iterator.
27248         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27249         Ditto.
27251 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27253         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27254         static chain if needed.
27256 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27258         PR target/60697
27259         * lra-constraints.c (index_part_to_reg): New.
27260         (process_address): Use it.
27262 2014-03-27  Jeff Law  <law@redhat.com>
27263             Jakub Jelinek  <jakub@redhat.com>
27265         PR target/60648
27266         * expr.c (do_tablejump): Use simplify_gen_binary rather than
27267         gen_rtx_{PLUS,MULT} to build up the address expression.
27269         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
27270         creating non-canonical RTL.
27272 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27274         PR ipa/60243
27275         * ipa-inline.c (want_inline_small_function_p): Short circuit large
27276         functions; reorganize to make cheap checks first.
27277         (inline_small_functions): Do not estimate growth when dumping;
27278         it is expensive.
27279         * ipa-inline.h (inline_summary): Add min_size.
27280         (growth_likely_positive): New function.
27281         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
27282         (set_cond_stmt_execution_predicate): Cleanup.
27283         (estimate_edge_size_and_time): Compute min_size.
27284         (estimate_calls_size_and_time): Likewise.
27285         (estimate_node_size_and_time): Likewise.
27286         (inline_update_overall_summary): Update min_size.
27287         (do_estimate_edge_time): Likewise.
27288         (do_estimate_edge_size): Update.
27289         (do_estimate_edge_hints): Update.
27290         (growth_likely_positive): New function.
27292 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
27294         PR target/60693
27295         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
27296         also if addr has VOIDmode.
27298 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27300         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
27301         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
27302         Declare extern.
27303         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
27304         instructions as well as AdvancedSIMD loads.
27306 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27308         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
27309         Use crypto_aese type.
27310         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
27311         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
27312         crypto_aese, crypto_aesmc.  Move to types.md.
27313         * config/arm/types.md (crypto_aes): Split into crypto_aese,
27314         crypto_aesmc.
27315         * config/arm/iterators.md (crypto_type): Likewise.
27317 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27319         * cgraph.c: Include expr.h and tree-dfa.h.
27320         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
27321         remove LHS.
27323 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27325         PR target/60675
27326         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
27327         regs from checking multi-reg pseudos.
27329 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27331         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
27333 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27335         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
27336         if it would clobber the stack pointer, even temporarily.
27338 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
27340         * mode-switching.c: Make small adjustments to the top comment.
27342 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
27344         * config/rs6000/constraints.md (wD constraint): New constraint to
27345         match the constant integer to get the top DImode/DFmode out of a
27346         vector in a VSX register.
27348         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
27349         match the constant integer to get the top DImode/DFmode out of a
27350         vector in a VSX register.
27352         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
27353         for ISA 2.07.
27355         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27356         vbpermq builtins.
27358         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27359         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
27361         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
27362         Optimize vec_extract of 64-bit values, where the value being
27363         extracted is in the top word, where we can use scalar
27364         instructions.  Add direct move and store support.  Combine the big
27365         endian/little endian vector select load support into a single insn.
27366         (vsx_extract_<mode>_internal1): Likewise.
27367         (vsx_extract_<mode>_internal2): Likewise.
27368         (vsx_extract_<mode>_load): Likewise.
27369         (vsx_extract_<mode>_store): Likewise.
27370         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
27371         combined into vsx_extract_<mode>_load.
27372         (vsx_extract_<mode>_one_le): Likewise.
27374         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
27375         define the top 64-bit vector element.
27377         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
27378         constraint.
27380         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27381         Document vec_vbpermq builtin.
27383         PR target/60672
27384         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
27385         enable use of xxsldwi and xxpermdi builtin functions.
27386         (vec_xxpermdi): Likewise.
27388         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27389         Document use of vec_xxsldwi and vec_xxpermdi builtins.
27391 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
27393         PR rtl-optimization/60650
27394         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
27395         first_p.  Use it.
27396         (find_spills_for): New.
27397         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
27398         Spill all pseudos on the second iteration.
27400 2014-03-27  Marek Polacek  <polacek@redhat.com>
27402         PR c/50347
27403         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
27404         types.
27406 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27408         * config/s390/s390.c (s390_can_use_return_insn): Check for
27409         call-saved FPRs on 31 bit.
27411 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
27413         PR middle-end/60682
27414         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
27415         if they need regimplification, just drop them instead of
27416         calling gimple_regimplify_operands on them.
27418 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27420         PR target/60580
27421         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
27422         (aarch64_frame_pointer_required): Adjust logic.
27423         (aarch64_can_eliminate): Adjust logic.
27424         (aarch64_override_options_after_change): Adjust logic.
27426 2014-03-27  Dehao Chen  <dehao@google.com>
27428         * ipa-inline.c (early_inliner): Update node's inline info.
27430 2014-03-26  Dehao Chen  <dehao@google.com>
27432         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
27433         compiler inserted conditional jumps for NAN float check.
27435 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
27437         * ubsan.h (ubsan_create_data): Change second argument's type
27438         to const location_t *.
27439         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
27440         _("<unknown>").
27441         (ubsan_create_data): Change second argument to const location_t *PLOC.
27442         Create Loc field whenever PLOC is non-NULL.
27443         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
27444         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
27445         callers.
27447         PR other/59545
27448         * real.c (real_to_integer2): Change type of low to UHWI.
27450 2014-03-26  Tobias Burnus  <burnus@net-b.de>
27452         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
27453         (CILK_SELF_SPECS): New define.
27454         (driver_self_specs): Use it.
27456 2014-03-26  Richard Biener  <rguenther@suse.de>
27458         * tree-pretty-print.c (percent_K_format): Implement special
27459         case for LTO and its stripped down BLOCK tree.
27461 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
27463         PR sanitizer/60636
27464         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
27466         * tree-vrp.c (simplify_internal_call_using_ranges): If only
27467         one range is range_int_cst_p, but not both, at least optimize
27468         addition/subtraction of 0 and multiplication by 0 or 1.
27469         * gimple-fold.c (gimple_fold_call): Fold
27470         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
27471         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
27472         INTEGER_CSTs, try to fold at least x * 0 and y - y.
27474 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
27476         PR rtl-optimization/60452
27477         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
27478         <case REG>: Return 1 for invalid offsets from the frame pointer.
27480 2014-03-26  Marek Polacek  <polacek@redhat.com>
27482         PR c/37428
27483         * doc/extend.texi (C Extensions): Mention variable-length arrays in
27484         a structure/union.
27486 2014-03-26  Marek Polacek  <polacek@redhat.com>
27488         PR c/39525
27489         * doc/extend.texi (Designated Inits): Describe what happens to omitted
27490         field members.
27492 2014-03-26  Marek Polacek  <polacek@redhat.com>
27494         PR other/59545
27495         * ira-color.c (update_conflict_hard_regno_costs): Perform the
27496         multiplication in unsigned type.
27498 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
27500         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
27502 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
27504         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
27506 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
27508         PR ipa/60315
27509         * cif-code.def (UNREACHABLE) New code.
27510         * ipa-inline.c (inline_small_functions): Skip edges to
27511         __builtlin_unreachable.
27512         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
27513         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
27514         predicate to __bulitin_unreachable.
27515         (set_cond_stmt_execution_predicate): Fix issue when
27516         invert_tree_comparison returns ERROR_MARK.
27517         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
27518         propagate to inline clones.
27519         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
27520         to unreachable.
27521         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
27522         * cgraphclones.c (cgraph_clone_node): If call destination is already
27523         ureachable, do not redirect it back.
27524         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
27525         unreachable.
27527 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
27529         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
27530         Do not modify inline clones.
27532 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
27534         * config/i386/i386.md (general_sext_operand): New mode attr.
27535         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
27536         don't generate (sign_extend (const_int)).
27537         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
27538         operands[2].  Use We constraint instead of <i> and
27539         <general_sext_operand> predicate instead of <general_operand>.
27540         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
27541         * config/i386/constraints.md (We): New constraint.
27542         * config/i386/predicates.md (x86_64_sext_operand,
27543         sext_operand): New predicates.
27545 2014-03-25  Martin Jambor  <mjambor@suse.cz>
27547         PR ipa/60600
27548         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
27549         inconsistent devirtualizations to __builtin_unreachable.
27551 2014-03-25  Marek Polacek  <polacek@redhat.com>
27553         PR c/35449
27554         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
27556 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
27558         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
27559         order of elements for big-endian.
27561 2014-03-25  Richard Biener  <rguenther@suse.de>
27563         PR middle-end/60635
27564         * gimplify-me.c (gimple_regimplify_operands): Update the
27565         re-gimplifed stmt.
27567 2014-03-25  Martin Jambor  <mjambor@suse.cz>
27569         PR ipa/59176
27570         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
27571         (lto_output_varpool_node): Likewise.
27572         (input_overwrite_node): Likewise.
27573         (input_varpool_node): Likewise.
27575 2014-03-25  Richard Biener  <rguenther@suse.de>
27577         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
27578         (run_gcc): Likewise.
27580 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
27582         * combine.c (simplify_compare_const): Add MODE argument.
27583         Handle mode_width 0 as very large mode_width.
27584         (try_combine, simplify_comparison): Adjust callers.
27586         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
27587         type to avoid signed integer overflow.
27588         * explow.c (plus_constant): Likewise.
27590 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27592         * doc/generic.texi: Correct typos.
27594 2014-03-24  Tobias Burnus  <burnus@net-b.de>
27596         * doc/invoke.texi (-flto): Expand section about
27597         using static libraries with LTO.
27599 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27601         PR rtl-optimization/60501
27602         * optabs.def (addptr3_optab): New optab.
27603         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
27604         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
27605         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
27607         * lra.c (emit_add3_insn): Use the addptr pattern if available.
27609         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
27611 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
27613         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
27614         _mm512_set1_pd.
27616         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
27617         (_mm256_undefined_ps): Define.
27618         (_mm256_undefined_pd): Define.
27619         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
27620         (_mm_undefined_pd): Define.
27621         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
27622         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
27623         (_mm512_undefined_ps): Define.
27624         (_mm512_undefined_pd): Define.
27625         Use _mm*_undefined_*.
27626         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
27628 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
27630         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
27631         (lshr_simd): DI mode added.
27632         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
27633         (aarch64_ushr_simddi): Likewise.
27634         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
27635         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
27636         (vshrd_n_u64): Likewise.
27638 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27640         * Makefile.in (s-macro_list): Depend on cc1.
27642 2014-03-23  Teresa Johnson  <tejohnson@google.com>
27644         * ipa-utils.c (ipa_print_order): Use specified dump file.
27646 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
27648         PR rtl-optimization/60601
27649         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
27651         * gcc.c (eval_spec_function): Initialize save_growing_value.
27653 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
27655         PR sanitizer/60613
27656         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
27657         code == MINUS_EXPR, never swap op0 with op1.
27659         * toplev.c (init_local_tick): Avoid signed integer multiplication
27660         overflow.
27661         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
27662         shift by first operand's bitsize.
27664 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
27666         PR target/60610
27667         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
27668         redefine to 1 or 0.
27669         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
27670         TARGET_ISA_64BIT_P(x).
27672 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27674         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
27675         pattern for vector nor instead of subtract from splat(-1).
27676         (altivec_expand_vec_perm_const_le): Likewise.
27678 2014-03-21  Richard Henderson  <rth@twiddle.net>
27680         PR target/60598
27681         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
27682         related insns after epilogue_completed.
27684 2014-03-21  Martin Jambor  <mjambor@suse.cz>
27686         PR ipa/59176
27687         * cgraph.h (symtab_node): New flag body_removed.
27688         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
27689         when removing bodies.
27690         * symtab.c (dump_symtab_base): Dump body_removed flag.
27691         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
27692         had their bodies removed.
27694 2014-03-21  Martin Jambor  <mjambor@suse.cz>
27696         PR ipa/60419
27697         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
27698         in the border.
27700 2014-03-21  Richard Biener  <rguenther@suse.de>
27702         PR tree-optimization/60577
27703         * tree-core.h (struct tree_base): Document nothrow_flag use
27704         in DECL_NONALIASED.
27705         * tree.h (DECL_NONALIASED): New.
27706         (may_be_aliased): Adjust.
27707         * coverage.c (build_var): Set DECL_NONALIASED.
27709 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27711         * expr.c (expand_expr_real_1): Remove outdated comment.
27713 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
27715         PR middle-end/60597
27716         * ira.c (adjust_cleared_regs): Call copy_rtx on
27717         *reg_equiv[REGNO (loc)].src_p before passing it to
27718         simplify_replace_fn_rtx.
27720         PR target/60568
27721         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
27722         into CONST, put pic register as first operand of PLUS.  Use
27723         gen_const_mem for both 32-bit and 64-bit PIC got loads.
27725 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27727         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
27729 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27731         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
27732         around for store forwarding issue in the FPU on the UT699.
27733         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
27734         loads and operations if -mfix-ut699 is specified.
27735         (divtf3_hq): Tweak attribute.
27736         (sqrttf2_hq): Likewise.
27738 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27740         * calls.c (store_one_arg): Remove incorrect const qualification on the
27741         type of the temporary.
27742         * cfgexpand.c (expand_return): Likewise.
27743         * expr.c (expand_constructor): Likewise.
27744         (expand_expr_real_1): Likewise.
27746 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27748         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
27749         of parts.
27751 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
27753         PR target/60039
27754         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
27756 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
27758         * config/arm/aarch-common-protos.h
27759         (alu_cost_table): Fix spelling of "extend".
27760         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
27762 2014-03-19  Richard Biener  <rguenther@suse.de>
27764         PR middle-end/60553
27765         * tree-core.h (tree_type_common): Re-order pointer members
27766         to reduce recursion depth during GC walks.
27768 2014-03-19  Marek Polacek  <polacek@redhat.com>
27770         PR sanitizer/60569
27771         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
27772         before accessing it.
27774 2014-03-19  Richard Biener  <rguenther@suse.de>
27776         PR lto/59543
27777         * lto-streamer-in.c (input_function): In WPA stage do not drop
27778         debug stmts.
27780 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
27782         PR tree-optimization/60559
27783         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
27784         with build_zero_cst assignment.
27786 2014-03-18  Kai Tietz  <ktietz@redhat.com>
27788         PR rtl-optimization/56356
27789         * sdbout.c (sdbout_parms): Verify that parms'
27790         incoming argument is valid.
27791         (sdbout_reg_parms): Likewise.
27793 2014-03-18  Richard Henderson  <rth@redhat.com>
27795         PR target/60562
27796         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
27797         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
27798         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
27800 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
27802         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
27803         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
27804         Italicize plugin event names in description.  Explain that
27805         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
27806         Remind that no GCC functions should be called after PLUGIN_FINISH.
27807         Explain what pragmas with expansion are.
27809 2014-03-18  Martin Liska  <mliska@suse.cz>
27811         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
27812         gimple call statement is update.
27813         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
27814         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
27816 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
27818         PR sanitizer/60557
27819         * ubsan.c (ubsan_instrument_unreachable): Call
27820         initialize_sanitizer_builtins.
27821         (ubsan_pass): Likewise.
27823         PR sanitizer/60535
27824         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
27825         varpool_finalize_decl instead of rest_of_decl_compilation.
27827 2014-03-18  Richard Biener  <rguenther@suse.de>
27829         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
27830         by using bitmap_and_compl instead of bitmap_and_compl_into.
27831         (df_rd_transfer_function): Likewise.
27833 2014-03-18  Richard Biener  <rguenther@suse.de>
27835         * doc/lto.texi (fresolution): Fix typo.
27837 2014-03-18  Richard Biener  <rguenther@suse.de>
27839         * doc/invoke.texi (flto): Update for changes in 4.9.
27841 2014-03-18  Richard Biener  <rguenther@suse.de>
27843         * doc/loop.texi: Remove section on the removed lambda framework.
27844         Update loop docs with recent changes in preserving loop structure.
27846 2014-03-18  Richard Biener  <rguenther@suse.de>
27848         * doc/lto.texi (-fresolution): Document.
27850 2014-03-18  Richard Biener  <rguenther@suse.de>
27852         * doc/contrib.texi: Adjust my name.
27854 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
27856         PR ipa/58721
27857         * internal-fn.c: Include diagnostic-core.h.
27858         (expand_BUILTIN_EXPECT): New function.
27859         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
27860         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
27861         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
27862         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
27863         IFN_BUILTIN_EXPECT.
27864         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
27865         Revert 3 argument __builtin_expect code.
27866         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
27867         * gimple-fold.c (gimple_fold_call): Likewise.
27868         * tree.h (fold_builtin_expect): New prototype.
27869         * builtins.c (build_builtin_expect_predicate): Add predictor
27870         argument, if non-NULL, create 3 argument __builtin_expect.
27871         (fold_builtin_expect): No longer static.  Add ARG2 argument,
27872         pass it through to build_builtin_expect_predicate.
27873         (fold_builtin_2): Adjust caller.
27874         (fold_builtin_3): Handle BUILT_IN_EXPECT.
27875         * internal-fn.def (BUILTIN_EXPECT): New.
27877 2014-03-18  Tobias Burnus  <burnus@net-b.de>
27879         PR ipa/58721
27880         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
27881         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
27882         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
27884 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
27886         PR ipa/58721
27887         * predict.c (combine_predictions_for_bb): Fix up formatting.
27888         (expr_expected_value_1, expr_expected_value): Add predictor argument,
27889         fill what it points to if non-NULL.
27890         (tree_predict_by_opcode): Adjust caller, use the predictor.
27891         * predict.def (PRED_COMPARE_AND_SWAP): Add.
27893 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
27895         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
27896         proper constant for the store mode.
27898 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
27900         * symtab.c (change_decl_assembler_name): Fix transparent alias
27901         chain construction.
27903 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
27905         * config/aarch64/aarch64.c: Correct the comments about the
27906         aarch64 stack layout.
27908 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
27910         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
27911         check for GF_OMP_FOR_KIND_FOR.
27913 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
27915         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
27916         ymm and zmm register names.
27918 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
27920         PR target/60516
27921         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
27922         note creation for the 2010-08-31 changes.
27924 2014-03-17  Marek Polacek  <polacek@redhat.com>
27926         PR middle-end/60534
27927         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
27928         as -fno-tree-loop-vectorize.
27929         (expand_omp_simd): Likewise.
27931 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27933         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
27934         (eligible_for_call_delay): New prototype.
27935         * config/sparc/sparc.c (tls_call_delay): Rename into...
27936         (eligible_for_call_delay): ...this.  Return false if the instruction
27937         cannot be put in the delay slot of a branch.
27938         (eligible_for_restore_insn): Simplify.
27939         (eligible_for_return_delay): Return false if the instruction cannot be
27940         put in the delay slot of a branch and simplify.
27941         (eligible_for_sibcall_delay): Return false if the instruction cannot be
27942         put in the delay slot of a branch.
27943         * config/sparc/sparc.md (fix_ut699): New attribute.
27944         (tls_call_delay): Delete.
27945         (in_call_delay): Reimplement.
27946         (eligible_for_sibcall_delay): Rename into...
27947         (in_sibcall_delay): ...this.
27948         (eligible_for_return_delay): Rename into...
27949         (in_return_delay): ...this.
27950         (in_branch_delay): Reimplement.
27951         (in_uncond_branch_delay): Delete.
27952         (in_annul_branch_delay): Delete.
27954 2014-03-14  Richard Henderson  <rth@redhat.com>
27956         PR target/60525
27957         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
27958         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
27959         (*floathi<X87MODEF>2_i387_with_temp): Remove.
27960         (floathi splitters): Remove.
27961         (float<SWI48x>xf2): New pattern.
27962         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
27963         code that tried to handle DImode for 32-bit, but which was excluded
27964         by the pattern's condition.  Drop allocation of stack temporary.
27965         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
27966         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
27967         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
27968         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
27969         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
27970         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
27971         (*float<SWI48><MODEF>2_sse_interunit): Remove.
27972         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
27973         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
27974         (*float<SWI48x><X87MODEF>2_i387): Remove.
27975         (all float _with_temp splitters): Remove.
27976         (*float<SWI48x><MODEF>2_i387): New pattern.
27977         (*float<SWI48><MODEF>2_sse): New pattern.
27978         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
27979         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
27981 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
27982             Marek Polacek  <polacek@redhat.com>
27984         PR middle-end/60484
27985         * common.opt (dump_base_name_prefixed): New Variable.
27986         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
27987         if x_dump_base_name_prefixed is already set, set it at the end.
27989 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
27991         PR rtl-optimization/60508
27992         * lra-constraints.c (get_reload_reg): Add new parameter
27993         in_subreg_p.
27994         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
27995         Pass the new parameter values.
27997 2014-03-14  Richard Biener  <rguenther@suse.de>
27999         * common.opt: Revert unintented changes from r205065.
28000         * opts.c: Likewise.
28002 2014-03-14  Richard Biener  <rguenther@suse.de>
28004         PR middle-end/60518
28005         * cfghooks.c (split_block): Properly adjust all loops the
28006         block was a latch of.
28008 2014-03-14  Martin Jambor  <mjambor@suse.cz>
28010         PR lto/60461
28011         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
28012         and simplify it.
28014 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
28016         PR target/59396
28017         * config/avr/avr.c (avr_set_current_function): Pass function name
28018         through default_strip_name_encoding before sanity checking instead
28019         of skipping the first char of the assembler name.
28021 2014-03-13  Richard Henderson  <rth@redhat.com>
28023         PR debug/60438
28024         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
28025         (ix86_force_to_memory, ix86_free_from_memory): Remove.
28026         * config/i386/i386-protos.h: Likewise.
28027         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
28028         in the expander instead of a splitter.
28029         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
28030         any possibility of requiring a memory.
28031         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
28032         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
28033         (fp branch splitters): Update for ix86_split_fp_branch.
28034         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
28035         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
28036         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
28037         (*fop_<MODEF>_2_i387): Remove f/r alternative.
28038         (*fop_<MODEF>_3_i387): Likewise.
28039         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
28040         (splitters for the fop_* register patterns): Remove.
28041         (fscalexf4_i387): Rename from *fscalexf4_i387.
28042         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
28044 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28046         PR tree-optimization/59779
28047         * tree-dfa.c (get_ref_base_and_extent): Use double_int
28048         type for bitsize and maxsize instead of HOST_WIDE_INT.
28050 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
28052         PR rtl-optimization/57320
28053         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
28054         the CFG after thread_prologue_and_epilogue_insns.
28056 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
28058         PR rtl-optimization/57189
28059         * lra-constraints.c (process_alt_operands): Disfavor spilling
28060         vector pseudos.
28062 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
28064         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
28066 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28068         PR tree-optimization/59025
28069         PR middle-end/60418
28070         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
28071         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
28073 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
28075         PR target/60486
28076         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
28077         calls of avr_out_plus_1.
28079 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
28081         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
28082         BB's single pred and update the father loop's latch info later.
28084 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
28086         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
28087         (VEC_M): Likewise.
28088         (VEC_N): Likewise.
28089         (VEC_R): Likewise.
28090         (VEC_base): Likewise.
28091         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
28092         registers, we need to swap double words in little endian mode.
28094         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
28095         to be a container mode for 128-bit integer operations added in ISA
28096         2.07.  Unlike TImode and PTImode, the preferred register set is
28097         the Altivec/VMX registers for the 128-bit operations.
28099         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
28100         declarations.
28101         (rs6000_split_128bit_ok_p): Likewise.
28103         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
28104         macros for creating ISA 2.07 normal and overloaded builtin
28105         functions with 3 arguments.
28106         (BU_P8V_OVERLOAD_3): Likewise.
28107         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
28108         for use as overloaded functions.
28109         (VPERM_1TI_UNS): Likewise.
28110         (VSEL_1TI): Likewise.
28111         (VSEL_1TI_UNS): Likewise.
28112         (ST_INTERNAL_1ti): Likewise.
28113         (LD_INTERNAL_1ti): Likewise.
28114         (XXSEL_1TI): Likewise.
28115         (XXSEL_1TI_UNS): Likewise.
28116         (VPERM_1TI): Likewise.
28117         (VPERM_1TI_UNS): Likewise.
28118         (XXPERMDI_1TI): Likewise.
28119         (SET_1TI): Likewise.
28120         (LXVD2X_V1TI): Likewise.
28121         (STXVD2X_V1TI): Likewise.
28122         (VEC_INIT_V1TI): Likewise.
28123         (VEC_SET_V1TI): Likewise.
28124         (VEC_EXT_V1TI): Likewise.
28125         (EQV_V1TI): Likewise.
28126         (NAND_V1TI): Likewise.
28127         (ORC_V1TI): Likewise.
28128         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
28129         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
28130         overloaded builtin.
28131         (VADDUQM): Likewise.
28132         (VSUBCUQ): Likewise.
28133         (VADDEUQM): Likewise.
28134         (VADDECUQ): Likewise.
28135         (VSUBEUQM): Likewise.
28136         (VSUBECUQ): Likewise.
28138         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
28139         __int128_t and __uint128_t types.
28140         (__uint128_type): Likewise.
28141         (altivec_categorize_keyword): Add support for vector __int128_t,
28142         vector __uint128_t, vector __int128, and vector unsigned __int128
28143         as a container type for TImode operations that need to be done in
28144         VSX/Altivec registers.
28145         (rs6000_macro_to_expand): Likewise.
28146         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
28147         to support 128-bit integer instructions vaddcuq, vadduqm,
28148         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
28149         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
28151         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
28152         for V1TImode, and set up preferences to use VSX/Altivec registers.
28153         Setup VSX reload handlers.
28154         (rs6000_debug_reg_global): Likewise.
28155         (rs6000_init_hard_regno_mode_ok): Likewise.
28156         (rs6000_preferred_simd_mode): Likewise.
28157         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
28158         (easy_altivec_constant): Likewise.
28159         (output_vec_const_move): Likewise.
28160         (rs6000_expand_vector_set): Convert V1TImode set and extract to
28161         simple move.
28162         (rs6000_expand_vector_extract): Likewise.
28163         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
28164         addressing.
28165         (rs6000_const_vec): Add support for V1TImode.
28166         (rs6000_emit_le_vsx_load): Swap double words when loading or
28167         storing TImode/V1TImode.
28168         (rs6000_emit_le_vsx_store): Likewise.
28169         (rs6000_emit_le_vsx_move): Likewise.
28170         (rs6000_emit_move): Add support for V1TImode.
28171         (altivec_expand_ld_builtin): Likewise.
28172         (altivec_expand_st_builtin): Likewise.
28173         (altivec_expand_vec_init_builtin): Likewise.
28174         (altivec_expand_builtin): Likewise.
28175         (rs6000_init_builtins): Add support for V1TImode type.  Add
28176         support for ISA 2.07 128-bit integer builtins.  Define type names
28177         for the VSX/Altivec vector types.
28178         (altivec_init_builtins): Add support for overloaded vector
28179         functions with V1TImode type.
28180         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
28181         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
28182         external function.
28183         (rs6000_split_128bit_ok_p): Likewise.
28184         (rs6000_handle_altivec_attribute): Create V1TImode from vector
28185         __int128_t and vector __uint128_t.
28187         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
28188         and mode attributes.
28189         (VSX_M): Likewise.
28190         (VSX_M2): Likewise.
28191         (VSm): Likewise.
28192         (VSs): Likewise.
28193         (VSr): Likewise.
28194         (VSv): Likewise.
28195         (VS_scalar): Likewise.
28196         (VS_double): Likewise.
28197         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
28199         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
28200         we support the ISA 2.07 128-bit integer arithmetic instructions.
28201         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
28202         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
28203         and TImode types for use with the builtin functions.
28204         (V1TI_type_node): Likewise.
28205         (unsigned_V1TI_type_node): Likewise.
28206         (intTI_type_internal_node): Likewise.
28207         (uintTI_type_internal_node): Likewise.
28209         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
28210         128-bit builtin functions.
28211         (UNSPEC_VADDEUQM): Likewise.
28212         (UNSPEC_VADDECUQ): Likewise.
28213         (UNSPEC_VSUBCUQ): Likewise.
28214         (UNSPEC_VSUBEUQM): Likewise.
28215         (UNSPEC_VSUBECUQ): Likewise.
28216         (VM): Add V1TImode to vector mode iterators.
28217         (VM2): Likewise.
28218         (VI_unit): Likewise.
28219         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
28220         (altivec_vaddcuq): Likewise.
28221         (altivec_vsubuqm): Likewise.
28222         (altivec_vsubcuq): Likewise.
28223         (altivec_vaddeuqm): Likewise.
28224         (altivec_vaddecuq): Likewise.
28225         (altivec_vsubeuqm): Likewise.
28226         (altivec_vsubecuq): Likewise.
28228         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
28229         mode iterators.
28230         (BOOL_128): Likewise.
28231         (BOOL_REGS_OUTPUT): Likewise.
28232         (BOOL_REGS_OP1): Likewise.
28233         (BOOL_REGS_OP2): Likewise.
28234         (BOOL_REGS_UNARY): Likewise.
28235         (BOOL_REGS_AND_CR0): Likewise.
28237         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
28238         128-bit integer builtin support.
28239         (vec_vadduqm): Likewise.
28240         (vec_vaddecuq): Likewise.
28241         (vec_vaddeuqm): Likewise.
28242         (vec_vsubecuq): Likewise.
28243         (vec_vsubeuqm): Likewise.
28244         (vec_vsubcuq): Likewise.
28245         (vec_vsubuqm): Likewise.
28247         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28248         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28249         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28250         128-bit integer add/subtract to ISA 2.07.
28252 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
28254         * config/arc/arc.c (arc_predicate_delay_insns):
28255         Fix third argument passed to conditionalize_nonjump.
28257 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
28259         * config/aarch64/aarch64-builtins.c
28260         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28261         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
28262         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
28263         instead of __builtin_lfloor.
28264         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
28266 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28268         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
28269         (tree_ssa_ifcombine_bb_1): New function.
28270         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
28271         is an empty forwarder block to then_bb or vice versa and then_bb
28272         and else_bb are effectively swapped.
28274 2014-03-12  Christian Bruel  <christian.bruel@st.com>
28276         PR target/60264
28277         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
28278         REG_CFA_DEF_CFA note.
28279         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
28280         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
28282 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28284         PR tree-optimization/60454
28285         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
28287 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28289         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
28290         Do not define target_cpu_default2 to generic.
28291         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
28292         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
28293         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
28295 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28296             Marc Glisse  <marc.glisse@inria.fr>
28298         PR tree-optimization/60502
28299         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
28300         instead of build_low_bits_mask.
28302 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28304         PR middle-end/60482
28305         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
28306         if there are multiple uses, but op doesn't live on E edge.
28307         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
28308         clobber stmts before __builtin_unreachable.
28310 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
28312         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
28313         hard_frame_pointer_rtx.
28314         * cse.c (cse_insn): Remove volatile check.
28315         * cselib.c (cselib_process_insn): Likewise.
28316         * dse.c (scan_insn): Likewise.
28318 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28320         * config/arc/arc.c (conditionalize_nonjump): New function,
28321         broken out of ...
28322         (arc_ifcvt): ... this.
28323         (arc_predicate_delay_insns): Use it.
28325 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28327         * config/arc/predicates.md (extend_operand): During/after reload,
28328         allow const_int_operand.
28329         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
28330         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
28331         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
28332         to "i".
28333         (umulsi3_highpart_i): Likewise.
28335 2014-03-11  Richard Biener  <rguenther@suse.de>
28337         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
28338         Add asserts to guard possible wrong-code bugs.
28340 2014-03-11  Richard Biener  <rguenther@suse.de>
28342         PR tree-optimization/60429
28343         PR tree-optimization/60485
28344         * tree-ssa-structalias.c (set_union_with_increment): Properly
28345         take into account all fields that overlap the shifted vars.
28346         (do_sd_constraint): Likewise.
28347         (do_ds_constraint): Likewise.
28348         (get_constraint_for_ptr_offset): Likewise.
28350 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
28352         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
28353         (nios2_compute_frame_layout):
28354         Add calculation of cfun->machine->fp_save_offset.
28355         (nios2_expand_prologue): Correct setting of frame pointer register
28356         in prologue.
28357         (nios2_expand_epilogue): Update recovery of stack pointer from
28358         frame pointer accordingly.
28359         (nios2_initial_elimination_offset): Update calculation of offset
28360         for eliminating to HARD_FRAME_POINTER_REGNUM.
28362 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
28364         PR ipa/60457
28365         * ipa.c (symtab_remove_unreachable_nodes): Don't call
28366         cgraph_get_create_node on VAR_DECLs.
28368 2014-03-10  Richard Biener  <rguenther@suse.de>
28370         PR middle-end/60474
28371         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
28373 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
28375         * config/vms/vms.opt (vms_float_format): New variable.
28377 2014-03-08  Tobias Burnus  <burnus@net-b.de>
28379         * doc/invoke.texi (-fcilkplus): Update implementation status.
28381 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
28382             Richard Biener  <rguenther@suse.de>
28384         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
28385         consistently accross all TUs.
28386         (run_gcc): Enable -fshort-double automatically at link at link-time
28387         and disallow override.
28389 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
28391         PR target/58271
28392         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
28393         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
28394         if they can't be used.
28396 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28398         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
28399         for Solaris 11/x86 ld.
28400         * configure: Regenerate.
28402 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28404         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
28405         (LIB_TLS_SPEC): Save as ld_tls_libs.
28406         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
28407         (HAVE_AS_IX86_TLSLDM): New test.
28408         * configure, config.in: Regenerate.
28409         * config/i386/i386.c (legitimize_tls_address): Fall back to
28410         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
28411         cannot support TLS_MODEL_LOCAL_DYNAMIC.
28412         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
28413         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
28415 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
28417         * common.opt (fira-loop-pressure): Mark as optimization.
28419 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
28421         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
28422         an OpenMP mappable type.
28424 2014-03-06  Matthias Klose  <doko@ubuntu.com>
28426         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
28427         MULTILIB_OSDIRNAMES is not defined.
28429 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
28430             Meador Inge  <meadori@codesourcery.com>
28432         PR target/58595
28433         * config/arm/arm.c (arm_tls_symbol_p): Remove.
28434         (arm_legitimize_address): Call legitimize_tls_address for any
28435         arm_tls_referenced_p expression, handle constant addend.  Call it
28436         before testing for !TARGET_ARM.
28437         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
28439 2014-03-06  Richard Biener  <rguenther@suse.de>
28441         PR middle-end/60445
28442         PR lto/60424
28443         PR lto/60427
28444         Revert
28445         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
28447         * tree-streamer.c (record_common_node): Assert we don't record
28448         nodes with type double.
28449         (preload_common_node): Skip type double, complex double and double
28450         pointer since it is now frontend dependent due to fshort-double option.
28452 2014-03-06  Richard Biener  <rguenther@suse.de>
28454         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
28455         or -fno-lto is specified and the linker has full plugin support.
28456         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
28457         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
28458         * lto-wrapper.c (merge_and_complain): Merge compile-time
28459         optimization levels.
28460         (run_gcc): And pass it through to the link options.
28462 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
28464         PR debug/60381
28465         Revert:
28466         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28467         PR debug/59992
28468         * cselib.c (remove_useless_values): Skip to avoid quadratic
28469         behavior if the condition moved from...
28470         (cselib_process_insn): ... here holds.
28472 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
28474         PR plugins/59335
28475         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
28476         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
28478         PR plugins/59335
28479         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
28480         (TM_H): Add x86-tune.def.
28482 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28484         * config/aarch64/aarch64.c (generic_tunings):
28485         Use cortexa57_extra_costs.
28487 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
28489         PR lto/60404
28490         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
28491         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
28492         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
28493         cost for in_lto_p.
28495 2014-03-04  Heiher  <r@hev.cc>
28497         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
28498         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
28500 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
28502         * config/i386/predicates.md (const2356_operand): Change to ...
28503         (const2367_operand): ... this.
28504         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
28505         const2367_operand.
28506         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28507         (*avx512pf_scatterpf<mode>sf): Ditto.
28508         (avx512pf_scatterpf<mode>df): Ditto.
28509         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28510         (*avx512pf_scatterpf<mode>df): Ditto.
28511         * config/i386/i386.c (ix86_expand_builtin): Update
28512         incorrect hint operand error message.
28514 2014-03-04  Richard Biener  <rguenther@suse.de>
28516         * lto-section-in.c (lto_get_section_data): Fix const cast.
28518 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
28520         * tree-streamer.c (record_common_node): Assert we don't record
28521         nodes with type double.
28522         (preload_common_node): Skip type double, complex double and double
28523         pointer since it is now frontend dependent due to fshort-double option.
28525 2014-03-04  Richard Biener  <rguenther@suse.de>
28527         PR lto/60405
28528         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
28529         (lto_input_toplevel_asms): Likewise.
28530         * lto-section-in.c (lto_get_section_data): Instead do it here
28531         for every section.
28533 2014-03-04  Richard Biener  <rguenther@suse.de>
28535         PR tree-optimization/60382
28536         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
28537         dead PHIs a reduction.
28539 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
28541         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
28542         hint value.
28543         (_mm_prefetch): Move out of GCC target("sse") pragma.
28544         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
28545         GCC target("prfchw") pragma.
28546         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
28547         for locality <= 2.
28548         * config/i386/i386.c (ix86_option_override_internal): Enable
28549         -mprfchw with -mprefetchwt1.
28551 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28553         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
28554         Mark as varying.
28556 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28558         * opts.h (CL_PCH_IGNORE): Define.
28559         * targhooks.c (option_affects_pch_p):
28560         Return false for options that have CL_PCH_IGNORE set.
28561         * opt-functions.awk: Process PchIgnore.
28562         * doc/options.texi: Document PchIgnore.
28564         * config/arc/arc.opt (misize): Add PchIgnore property.
28566 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28568         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
28569         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
28570         constraint on constants to permit them being loaded into
28571         GENERAL_REGS or BASE_REGS.
28573 2014-03-03  Nick Clifton  <nickc@redhat.com>
28575         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
28576         anti-cacnonical alternatives.
28577         (negandhi3_real): New pattern.
28578         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
28580 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28582         * config/avr/avr-mcus.def: Remove atxmega16x1.
28583         * config/avr/avr-tables.opt: Regenerate.
28584         * config/avr/t-multilib: Regenerate.
28585         * doc/avr-mmcu.texi: Regenerate.
28587 2014-03-03  Tobias Grosser  <tobias@grosser.es>
28588             Mircea Namolaru  <mircea.namolaru@inria.fr>
28590         PR tree-optimization/58028
28591         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
28592         scalar dimensions.
28594 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28596         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
28597         not handled by recognizers.
28599 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
28601         PR middle-end/60175
28602         * function.c (expand_function_end): Don't emit
28603         clobber_return_register sequence if clobber_after is a BARRIER.
28604         * cfgexpand.c (construct_exit_block): Append instructions before
28605         return_label to prev_bb.
28607 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28609         * config/rs6000/constraints.md: Document reserved use of "wc".
28611 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
28613         PR ipa/60150
28614         * ipa.c (function_and_variable_visibility): When dissolving comdat
28615         group, also set all symbols to local.
28617 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
28619         PR ipa/60306
28621         Revert:
28622         2013-12-14  Jan Hubicka  <jh@suse.cz>
28623         PR middle-end/58477
28624         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
28626 2014-03-02  Jon Beniston  <jon@beniston.com>
28628         PR bootstrap/48230
28629         PR bootstrap/50927
28630         PR bootstrap/52466
28631         PR target/46898
28632         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
28633           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
28634         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
28635         (simple_return, *simple_return): New patterns
28636         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
28637         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
28639 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
28641         * dwarf2out.c (gen_subprogram_die): Tidy.
28643 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
28645         PR target/60071
28646         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
28647         (*mov_t_msb_neg_negc): ... this new insn.
28649 2014-02-28  Jason Merrill  <jason@redhat.com>
28651         PR c++/58678
28652         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
28653         function.
28655 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
28657         PR c++/60314
28658         * dwarf2out.c (decltype_auto_die): New static.
28659         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
28660         (gen_type_die_with_usage): Handle 'decltype(auto)'.
28661         (is_cxx_auto): Likewise.
28663 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
28665         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
28666         we are not using general regs only.
28668 2014-02-28  Richard Biener  <rguenther@suse.de>
28670         PR target/60280
28671         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
28672         previous fix and only allow to remove trivial pre-headers
28673         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
28674         (remove_forwarder_block): Properly update the latch of a loop.
28676 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28678         PR debug/59992
28679         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
28680         (cselib_preserved_hash_table): New.
28681         (preserve_constants_and_equivs): Move preserved vals to it.
28682         (cselib_find_slot): Look it up first.
28683         (cselib_init): Initialize it.
28684         (cselib_finish): Release it.
28685         (dump_cselib_table): Dump it.
28687 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28689         PR debug/59992
28690         * cselib.c (remove_useless_values): Skip to avoid quadratic
28691         behavior if the condition moved from...
28692         (cselib_process_insn): ... here holds.
28694 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28696         PR debug/57232
28697         * var-tracking.c (vt_initialize): Apply the same condition to
28698         preserve the CFA base value.
28700 2014-02-28  Joey Ye  <joey.ye@arm.com>
28702         PR target/PR60169
28703         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
28704         if reload in progress or completed.
28706 2014-02-28  Tobias Burnus  <burnus@net-b.de>
28708         PR middle-end/60147
28709         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
28710         NAMELIST_DECL.
28712 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
28714         * doc/tm.texi.in (Condition Code Status): Update documention for
28715         relative locations of cc0-setter and cc0-user.
28717 2014-02-27  Jeff Law  <law@redhat.com>
28719         PR rtl-optimization/52714
28720         * combine.c (try_combine): When splitting an unrecognized PARALLEL
28721         into two independent simple sets, if I3 is a jump, ensure the
28722         pattern we place into I3 is a (set (pc) ...).
28724 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
28725             Jeff Law  <law@redhat.com>
28727         PR rtl-optimization/49847
28728         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
28729         are in different blocks.
28730         * doc/tm.texi (Condition Code Status): Update documention for
28731         relative locations of cc0-setter and cc0-user.
28733 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28735         PR target/59222
28736         * lra.c (lra_emit_add): Check SUBREG too.
28738 2014-02-27  Andreas Schwab  <schwab@suse.de>
28740         * config/m68k/m68k.c (m68k_option_override): Disable
28741         -flive-range-shrinkage for classic m68k.
28742         (m68k_override_options_after_change): Likewise.
28744 2014-02-27  Marek Polacek  <polacek@redhat.com>
28746         PR middle-end/59223
28747         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
28748         -Wmaybe-uninitialized.
28750 2014-02-27  Alan Modra  <amodra@gmail.com>
28752         PR target/57936
28753         * reload1.c (emit_input_reload_insns): When reload_override_in,
28754         set old to rl->in_reg when rl->in_reg is a subreg.
28756 2014-02-26  Richard Biener  <rguenther@suse.de>
28758         PR bootstrap/60343
28759         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
28761 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
28763         * common/config/i386/predicates.md (const1256_operand): Remove.
28764         (const2356_operand): New.
28765         (const_1_to_2_operand): Remove.
28766         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28767         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28768         (*avx512pf_gatherpf<mode>sf): Ditto.
28769         (avx512pf_gatherpf<mode>df): Ditto.
28770         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28771         (*avx512pf_gatherpf<mode>df): Ditto.
28772         (avx512pf_scatterpf<mode>sf): Ditto.
28773         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28774         (*avx512pf_scatterpf<mode>sf): Ditto.
28775         (avx512pf_scatterpf<mode>df): Ditto.
28776         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28777         (*avx512pf_scatterpf<mode>df): Ditto.
28778         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
28780 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
28782         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
28783         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
28784         (_mm512_mask_testn_epi64_mask): Move to ...
28785         * config/i386/avx512cdintrin.h: Here.
28786         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
28787         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
28788         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
28789         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
28790         TARGET_AVX512F from TARGET_AVX512CD.
28792 2014-02-26  Richard Biener  <rguenther@suse.de>
28794         PR ipa/60327
28795         * ipa.c (walk_polymorphic_call_targets): Properly guard
28796         call to inline_update_overall_summary.
28798 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
28800         PR target/60280
28801         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
28802         and latches only if requested.  Fix latch if it is removed.
28803         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
28804         LOOPS_HAVE_PREHEADERS.
28806 2014-02-25  Andrew Pinski  <apinski@cavium.com>
28808         * builtins.c (expand_builtin_thread_pointer): Create a new target
28809         when the target is NULL.
28811 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
28813         PR rtl-optimization/60317
28814         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28815         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28816         * lra-assigns.c: Include params.h.
28817         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
28818         other reload pseudos considerations.
28820 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28822         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
28823         to use canonical form for nor<mode>3.
28825 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28827         PR target/55426
28828         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
28829         conversions.
28831 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
28833         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
28834         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
28835         (ix86_handle_option): Handle OPT_mprefetchwt1.
28836         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
28837         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28838         PREFETCHWT1 CPUID.
28839         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28840         OPTION_MASK_ISA_PREFETCHWT1.
28841         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
28842         (PTA_PREFETCHWT1): New.
28843         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
28844         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
28845         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
28846         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
28847         (*prefetch_avx512pf_<mode>_: Change into ...
28848         (*prefetch_prefetchwt1_<mode>: This.
28849         * config/i386/i386.opt (mprefetchwt1): New.
28850         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
28851         (_mm_prefetch): Handle intent to write.
28852         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
28854 2014-02-25  Richard Biener  <rguenther@suse.de>
28856         PR middle-end/60291
28857         * emit-rtl.c (mem_attrs_htab): Remove.
28858         (mem_attrs_htab_hash): Likewise.
28859         (mem_attrs_htab_eq): Likewise.
28860         (set_mem_attrs): Always allocate new mem-attrs when something changed.
28861         (init_emit_once): Do not allocate mem_attrs_htab.
28863 2014-02-25  Richard Biener  <rguenther@suse.de>
28865         PR lto/60319
28866         * lto-opts.c (lto_write_options): Output non-explicit conservative
28867         -fwrapv, -fno-trapv and -fno-strict-overflow.
28868         * lto-wrapper.c (merge_and_complain): Handle merging those options.
28869         (run_gcc): And pass them through.
28871 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
28873         * sel-sched.c (calculate_new_fences): New parameter ptime.
28874         Calculate it as a maximum over all fence cycles.
28875         (sel_sched_region_2): Adjust the call to calculate_new_fences.
28876         Print the final schedule timing when sched_verbose.
28878 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
28880         PR rtl-optimization/60292
28881         * sel-sched.c (fill_vec_av_set): Do not reset target availability
28882         bit fot the fence instruction.
28884 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
28886         * calls.h: Fix typo in comment.
28888 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
28890         * config/pa/pa.c (pa_output_move_double): Don't valididate when
28891         adjusting offsetable addresses.
28893 2014-02-24  Guozhi Wei  <carrot@google.com>
28895         * sparseset.h (sparseset_pop): Fix the wrong index.
28897 2014-02-24  Walter Lee  <walt@tilera.com>
28899         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
28900         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
28901         triplet.
28902         * common/config/tilegx/tilegx-common.c
28903         (TARGET_DEFAULT_TARGET_FLAGS): Define.
28904         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
28905         (LINK_SPEC): Ditto.
28906         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
28907         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
28908         (tilegx_gimplify_va_arg_expr): Handle big endian.
28909         (tilegx_expand_unaligned_load): Ditto.
28910         (tilegx_expand_unaligned_store): Ditto.
28911         (TARGET_RETURN_IN_MSB): New.
28912         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
28913         (TARGET_ENDIAN_DEFAULT): New.
28914         (TARGET_BIG_ENDIAN): Handle big endian.
28915         (BYTES_BIG_ENDIAN): Ditto.
28916         (WORDS_BIG_ENDIAN): Ditto.
28917         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
28918         (ENDIAN_SPEC): New.
28919         (EXTRA_SPECS): New.
28920         * config/tilegx/tilegx.md (extv): Handle big endian.
28921         (extzv): Ditto.
28922         (insn_st<n>): Ditto.
28923         (insn_st<n>_add<bitsuffix>): Ditto.
28924         (insn_stnt<n>): Ditto.
28925         (insn_stnt<n>_add<bitsuffix>):Ditto.
28926         (vec_interleave_highv8qi): Handle big endian.
28927         (vec_interleave_highv8qi_be): New.
28928         (vec_interleave_highv8qi_le): New.
28929         (insn_v1int_h): Handle big endian.
28930         (vec_interleave_lowv8qi): Handle big endian.
28931         (vec_interleave_lowv8qi_be): New.
28932         (vec_interleave_lowv8qi_le): New.
28933         (insn_v1int_l): Handle big endian.
28934         (vec_interleave_highv4hi): Handle big endian.
28935         (vec_interleave_highv4hi_be): New.
28936         (vec_interleave_highv4hi_le): New.
28937         (insn_v2int_h): Handle big endian.
28938         (vec_interleave_lowv4hi): Handle big endian.
28939         (vec_interleave_lowv4hi_be): New.
28940         (vec_interleave_lowv4hi_le): New.
28941         (insn_v2int_l): Handle big endian.
28942         (vec_interleave_highv2si): Handle big endian.
28943         (vec_interleave_highv2si_be): New.
28944         (vec_interleave_highv2si_le): New.
28945         (insn_v4int_h): Handle big endian.
28946         (vec_interleave_lowv2si): Handle big endian.
28947         (vec_interleave_lowv2si_be): New.
28948         (vec_interleave_lowv2si_le): New.
28949         (insn_v4int_l): Handle big endian.
28950         * config/tilegx/tilegx.opt (mbig-endian): New option.
28951         (mlittle-endian): New option.
28952         * doc/install.texi: Document tilegxbe-linux.
28953         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
28955 2014-02-24  Martin Jambor  <mjambor@suse.cz>
28957         PR ipa/60266
28958         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
28959         there are no parameter descriptors.
28961 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
28963         PR rtl-optimization/60268
28964         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
28965         initialization to ...
28966         (sched_rgn_init): ... here.
28967         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
28969 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
28971         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
28972         names.
28974 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
28976         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
28977         definition.
28979 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
28981         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
28982         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
28984 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
28986         * config/microblaze/predicates.md: Add cmp_op predicate.
28987         * config/microblaze/microblaze.md: Add branch_compare instruction
28988         which uses cmp_op predicate and emits cmp insn before branch.
28989         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
28990         to microblaze_expand_conditional_branch and consolidate logic.
28991         (microblaze_expand_conditional_branch): emit branch_compare
28992         insn instead of handling cmp op separate from branch insn.
28994 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28996         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
28997         to permit subregs.
28999 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29001         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
29002         define_insn with define_expand and new define_insn
29003         *altivec_lve<VI_char>x_internal.
29004         (altivec_stve<VI_char>x): Replace define_insn with define_expand
29005         and new define_insn *altivec_stve<VI_char>x_internal.
29006         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
29007         prototype.
29008         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
29009         lve*x built-ins.
29010         (altivec_expand_stvex_be): New function.
29012 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
29014         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
29015         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
29016         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
29017         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
29019 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
29021         PR target/60298
29022         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
29023         instead of emit_move_insn.
29025 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29027         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
29028         vspltw with vsldoi.
29029         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
29030         gen_altivec_vsumsws.
29032 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29034         * config/rs6000/altivec.md (altivec_lvxl): Rename as
29035         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
29036         (altivec_lvxl_<mode>): New define_expand incorporating
29037         -maltivec=be semantics where needed.
29038         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
29039         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
29040         semantics where needed.
29041         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
29042         (altivec_stvx_<mode>): New define_expand incorporating
29043         -maltivec=be semantics where needed.
29044         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
29045         VM2 iterator instead of V4SI.
29046         (altivec_stvxl_<mode>): New define_expand incorporating
29047         -maltivec=be semantics where needed.
29048         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
29049         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
29050         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
29051         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
29052         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
29053         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
29054         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
29055         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
29056         ALTIVEC_BUILTIN_STVXL.
29057         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
29058         (altivec_expand_stvx_be): Likewise.
29059         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
29060         (altivec_expand_lvx_be): Likewise.
29061         (altivec_expand_stvx_be): Likewise.
29062         (altivec_expand_builtin): Add cases for
29063         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
29064         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
29065         (altivec_init_builtins): Add definitions for
29066         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
29067         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
29069 2014-02-21  Catherine Moore  <clm@codesourcery.com>
29071         * doc/invoke.texi (mvirt, mno-virt): Document.
29072         * config/mips/mips.opt (mvirt): New option.
29073         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
29075 2014-02-21  Richard Biener  <rguenther@suse.de>
29077         PR tree-optimization/60276
29078         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
29079         (STMT_VINFO_MIN_NEG_DIST): New macro.
29080         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
29081         STMT_VINFO_MIN_NEG_DIST.
29082         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
29083         made for negative dependence distances still hold.
29085 2014-02-21  Richard Biener  <rguenther@suse.de>
29087         PR middle-end/60291
29088         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
29089         DECL_INITIAL for globals not in the current function context.
29091 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29093         PR tree-optimization/56490
29094         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
29095         * tree-ssa-uninit.c: Include params.h.
29096         (compute_control_dep_chain): Add num_calls argument, return false
29097         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
29098         num_calls to recursive call.
29099         (find_predicates): Change dep_chain into normal array,
29100         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
29101         variable and adjust compute_control_dep_chain caller.
29102         (find_def_preds): Likewise.
29104 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
29106         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
29107         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
29109 2014-02-21  Nick Clifton  <nickc@redhat.com>
29111         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
29112         (pushhi1): Likewise.
29113         (popqi1): Add mode to pre_dec.
29114         (pophi1): Likewise.
29116 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29118         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
29119         mode for mask of V8SFmode permutation.
29121 2014-02-20  Richard Henderson  <rth@redhat.com>
29123         PR c++/60272
29124         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
29125         a new pseudo for OLDVAL.
29127 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
29129         PR target/57896
29130         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
29131         gen_reg_rtx if d->testing_p.
29132         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
29133         if d->testing_p and we will certainly return true.
29134         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
29135         if d->testing_p.
29137 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
29139         * emit-rtl.c (gen_reg_rtx): Assert that
29140         crtl->emit.regno_pointer_align_length is non-zero.
29142 2014-02-20  Richard Henderson  <rth@redhat.com>
29144         PR c++/60272
29145         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
29146         on failure the store back into EXPECT.
29148 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
29149             Sandra Loosemore  <sandra@codesourcery.com>
29151         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
29152         * config/nios2/nios2.c (nios2_function_profiler): Add
29153         -fPIC (flag_pic == 2) support.
29154         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
29155         (nios2_large_offset_p): New function.
29156         (nios2_unspec_reloc_p): Move up position, update to use
29157         nios2_large_offset_p.
29158         (nios2_unspec_address): Remove function.
29159         (nios2_unspec_offset): New function.
29160         (nios2_large_got_address): New function.
29161         (nios2_got_address): Add large offset support.
29162         (nios2_legitimize_tls_address): Update usage of removed and new
29163         functions.
29164         (nios2_symbol_binds_local_p): New function.
29165         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
29166         (nios2_legitimize_address): Update to use nios2_large_offset_p.
29167         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
29168         (nios2_print_operand): Merge H/L processing, add hiadj/lo
29169         processing for (const (unspec ...)).
29170         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
29172 2014-02-20  Richard Biener  <rguenther@suse.de>
29174         * tree-cfg.c (replace_uses_by): Mark altered BBs before
29175         doing the substitution.
29176         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
29178 2014-02-20  Martin Jambor  <mjambor@suse.cz>
29180         PR ipa/55260
29181         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
29182         info when checking whether lattices are bottom.
29184 2014-02-20  Richard Biener  <rguenther@suse.de>
29186         PR middle-end/60221
29187         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
29188         regions at -O0.
29190 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
29192         PR ipa/58555
29193         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
29194         parameter specifying the scaling.
29195         (inline_call): Update.
29196         (want_inline_recursively): Guard division by zero.
29197         (recursive_inlining): Update.
29198         * ipa-inline.h (clone_inlined_nodes): Update.
29200 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29202         PR target/60204
29203         * config/i386/i386.c (classify_argument): Pass structures of size
29204         64 bytes or less in register.
29206 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29207             Kirill Yukhin  <kirill.yukhin@intel.com>
29209         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
29210         (_mm_rcp28_round_ss): Ditto.
29211         (_mm_rsqrt28_round_sd): Ditto.
29212         (_mm_rsqrt28_round_ss): Ditto.
29213         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
29214         (_mm_rcp14_round_ss): Ditto.
29215         (_mm_rsqrt14_round_sd): Ditto.
29216         (_mm_rsqrt14_round_ss): Ditto.
29217         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
29218         the first input operand, get rid of match_dup.
29219         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
29220         attribute to sse.
29221         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29222         Ditto.
29223         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
29224         operand as the first input operand, set type attribute.
29225         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29226         Set type attribute.
29227         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
29228         operand as the first input operand, set type attribute.
29230 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29232         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
29233         bit of zero.
29235 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
29237         PR target/60207
29238         * config/i386/i386.c (construct_container): Remove TFmode check
29239         for X86_64_INTEGER_CLASS.
29241 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
29243         PR target/59794
29244         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29245         only when -Wpsabi is enabled.
29247 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
29249          PR target/59799
29250         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29251         passing arrays in registers are the same as for structs, so remove the
29252         special case for them.
29254 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
29256         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29257         destination type, extract only the valid bits if the source type is not
29258         integral and has a different mode.
29260 2014-02-19  Richard Biener  <rguenther@suse.de>
29262         PR ipa/60243
29263         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
29264         for all calls.
29266 2014-02-19  Richard Biener  <rguenther@suse.de>
29268         PR ipa/60243
29269         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
29270         (ipa_modify_call_arguments): Emit an argument load explicitely and
29271         preserve virtual SSA form there and for the replacement call.
29272         Do not update SSA form nor free dominance info.
29274 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29276         * ipa.c (function_and_variable_visibility): Also clear WEAK
29277         flag when disolving COMDAT_GROUP.
29279 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29281         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
29282         * ipa-prop.c (ipa_set_jf_known_type): Return early when
29283         not devirtualizing.
29284         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
29285         do more sanity checks.
29286         (detect_type_change): Return true when giving up early.
29287         (compute_complex_assign_jump_func): Fix type parameter of
29288         ipa_set_ancestor_jf.
29289         (compute_complex_ancestor_jump_func): Likewise.
29290         (update_jump_functions_after_inlining): Fix updating of
29291         ancestor function.
29292         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
29294 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29296         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
29297         inline clones when edge disappears.
29299 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
29301         PR target/60203
29302         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
29303         Split 64-bit moves into 2 patterns.  Do not allow the use of
29304         direct move for TDmode in little endian, since the decimal value
29305         has little endian bytes within a word, but the 64-bit pieces are
29306         ordered in a big endian fashion, and normal subreg's of TDmode are
29307         not allowed.
29308         (mov<mode>_64bit_dm): Likewise.
29309         (movtd_64bit_nodm): Likewise.
29311 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
29313         PR tree-optimization/60174
29314         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
29315         statement of an SSA_NAME that occurs in an abnormal PHI node.
29317 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
29319         PR sanitizer/60142
29320         * final.c (SEEN_BB): Remove.
29321         (SEEN_NOTE, SEEN_EMITTED): Renumber.
29322         (final_scan_insn): Don't force_source_line on second
29323         NOTE_INSN_BASIC_BLOCK.
29325 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
29327         PR target/60205
29328         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
29329         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
29330         (type_natural_mode): Warn ABI change when %zmm register is not
29331         available for AVX512F vector value passing.
29333 2014-02-18  Kai Tietz  <ktietz@redhat.com>
29335         PR target/60193
29336         * config/i386/i386.c (ix86_expand_prologue): Use value in
29337         rax register as displacement when restoring %r10 or %rax.
29338         Fix wrong offset when restoring both registers.
29340 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
29342         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
29343         assertion with conditional return.
29345 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
29346             Uros Bizjak  <ubizjak@gmail.com>
29348         PR driver/60233
29349         * config/i386/driver-i386.c (host_detect_local_cpu): If
29350         YMM state is not saved by the OS, also clear has_f16c.  Move
29351         CPUID 0x80000001 handling before YMM state saving checking.
29353 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
29355         PR rtl-optimization/58960
29356         * haifa-sched.c (alloc_global_sched_pressure_data): New,
29357         factored out from ...
29358         (sched_init): ... here.
29359         (free_global_sched_pressure_data): New, factored out from ...
29360         (sched_finish): ... here.
29361         * sched-int.h (free_global_sched_pressure_data): Declare.
29362         * sched-rgn.c (nr_regions_initial): New static global.
29363         (haifa_find_rgns): Initialize it.
29364         (schedule_region): Disable sched-pressure for the newly
29365         generated regions.
29367 2014-02-17  Richard Biener  <rguenther@suse.de>
29369         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
29370         release SSA defs of pattern stmts.
29372 2014-02-17  Richard Biener  <rguenther@suse.de>
29374         * tree-inline.c (expand_call_inline): Release the virtual
29375         operand defined by the call we are about to inline.
29377 2014-02-17  Richard Biener  <rguenther@suse.de>
29379         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
29381 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
29382             Ilya Tocar  <ilya.tocar@intel.com>
29384         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
29385         arguments order in builtin.
29386         (_mm512_permutexvar_epi64): Ditto.
29387         (_mm512_mask_permutexvar_epi64): Ditto
29388         (_mm512_maskz_permutexvar_epi32): Ditto
29389         (_mm512_permutexvar_epi32): Ditto
29390         (_mm512_mask_permutexvar_epi32): Ditto
29392 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29394         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
29395         (p8_vmrgow): Likewise.
29397 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29399         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
29400         endian targets.
29402 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
29404         PR target/60203
29405         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
29406         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
29407         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
29408         using direct move instructions on ISA 2.07.  Also adjust
29409         instruction length for 64-bit.
29410         (mov<mode>_64bit, TFmode/TDmode): Likewise.
29411         (mov<mode>_32bit, TFmode/TDmode): Likewise.
29413 2014-02-15  Alan Modra  <amodra@gmail.com>
29415         PR target/58675
29416         PR target/57935
29417         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29418         find_replacement on parts of insn rtl that might be reloaded.
29420 2014-02-15  Richard Biener  <rguenther@suse.de>
29422         PR tree-optimization/60183
29423         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
29424         (tree_ssa_phiprop): Calculate and free post-dominators.
29426 2014-02-14  Jeff Law  <law@redhat.com>
29428         PR rtl-optimization/60131
29429         * ree.c (get_extended_src_reg): New function.
29430         (combine_reaching_defs): Use it rather than assuming location of REG.
29431         (find_and_remove_re): Verify first operand of extension is
29432         a REG before adding the insns to the copy list.
29434 2014-02-14  Roland McGrath  <mcgrathr@google.com>
29436         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
29437         * configure: Regenerated.
29438         * config.in: Regenerated.
29439         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
29440         instead of ASM_SHORT.
29442 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
29443             Richard Earnshaw  <rearnsha@arm.com>
29445         PR rtl-optimization/59535
29446         * lra-constraints.c (process_alt_operands): Encourage alternative
29447         when unassigned pseudo class is superset of the alternative class.
29448         (inherit_reload_reg): Don't inherit when optimizing for code size.
29449         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
29450         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
29451         modes not less than 4 for Thumb1.
29453 2014-02-14  Kyle McMartin  <kyle@redhat.com>
29455         PR pch/60010
29456         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
29458 2014-02-14  Richard Biener  <rguenther@suse.de>
29460         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
29461         (get_frame_arg): Drop the assert with langhook types_compatible_p.
29462         Do not strip INDIRECT_REFs.
29464 2014-02-14  Richard Biener  <rguenther@suse.de>
29466         PR lto/60179
29467         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
29468         DECL_FUNCTION_SPECIFIC_TARGET.
29469         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
29470         * tree-streamer-out.c (pack_ts_target_option): Remove.
29471         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
29472         (write_ts_function_decl_tree_pointers): Do not stream
29473         DECL_FUNCTION_SPECIFIC_TARGET.
29474         * tree-streamer-in.c (unpack_ts_target_option): Remove.
29475         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
29476         (lto_input_ts_function_decl_tree_pointers): Do not stream
29477         DECL_FUNCTION_SPECIFIC_TARGET.
29479 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
29481         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
29482         (get_initial_def_for_induction, vectorizable_induction): Ignore
29483         debug stmts when looking for exit_phi.
29484         (vectorizable_live_operation): Fix up condition.
29486 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29488         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
29489         nreverse() because it changes the content of original tree list.
29491 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29493         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
29494         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
29496 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29498         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
29499         GNU coding standards.
29501 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
29503         PR debug/60152
29504         * dwarf2out.c (gen_subprogram_die): Don't call
29505         add_calling_convention_attribute if subr_die is old_die.
29507 2014-02-13  Sharad Singhai  <singhai@google.com>
29509         * doc/optinfo.texi: Fix order of nodes.
29511 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
29513         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
29514         operands[2], not operands[3].
29516 2014-02-13  Richard Biener  <rguenther@suse.de>
29518         PR bootstrap/59878
29519         * doc/install.texi (ISL): Update recommended version to 0.12.2,
29520         mention the possibility of an in-tree build.
29521         (CLooG): Update recommended version to 0.18.1, mention the
29522         possibility of an in-tree build and clarify that the ISL
29523         bundled with CLooG does not work.
29525 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
29527         PR target/43546
29528         * expr.c (compress_float_constant): If x is a hard register,
29529         extend into a pseudo and then move to x.
29531 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29533         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
29534         caused by bad second argument to warning_at() with -mhotpatch and
29535         nested functions (e.g. with gfortran).
29537 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
29539         * opts.c (option_name): Remove "enabled by default" rider.
29541 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
29543         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
29545 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29546             Uros Bizjak  <ubizjak@gmail.com>
29548         PR target/60151
29549         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
29550         * configure: Regenerated.
29552 2014-02-12  Richard Biener  <rguenther@suse.de>
29554         * vec.c (vec_prefix::calculate_allocation): Move as
29555         inline variant to vec.h.
29556         (vec_prefix::calculate_allocation_1): New out-of-line version.
29557         * vec.h (vec_prefix::calculate_allocation_1): Declare.
29558         (vec_prefix::m_has_auto_buf): Rename to ...
29559         (vec_prefix::m_using_auto_storage): ... this.
29560         (vec_prefix::calculate_allocation): Inline the easy cases
29561         and dispatch to calculate_allocation_1 which doesn't need the
29562         prefix address.
29563         (va_heap::reserve): Use gcc_checking_assert.
29564         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
29565         m_using_auto_storage.
29566         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
29567         member and adjust.
29568         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
29569         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
29570         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
29572 2014-02-12  Richard Biener  <rguenther@suse.de>
29574         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
29575         when we found a dependence.
29577 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
29579         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
29580         common code...
29581         (maybe_fold_stmt): ... into this new function.
29582         * omp-low.c (lower_omp): Update comment.
29584         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
29585         last use.
29587         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
29588         dereference.
29590 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
29592         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
29593         identifiers in comments.
29594         (cortexa53_extra_costs): Likewise.
29595         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
29596         (cortexa7_extra_costs): Likewise.
29597         (cortexa12_extra_costs): Likewise.
29598         (cortexa15_extra_costs): Likewise.
29599         (v7m_extra_costs): Likewise.
29601 2014-02-12  Richard Biener  <rguenther@suse.de>
29603         PR middle-end/60092
29604         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
29605         of posix_memalign being successful.
29606         (lower_stmt): Restrict lowering of posix_memalign to when
29607         -ftree-bit-ccp is enabled.
29609 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29611         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
29612         arg_loc.
29613         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
29615 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
29617         PR rtl-optimization/60116
29618         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
29619         other_insn once the combination has been validated.
29621 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
29623         PR lto/59468
29624         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
29625         and wrapper.
29626         * ipa-devirt.c: Include demangle.h
29627         (odr_violation_reported): New static variable.
29628         (add_type_duplicate): Update odr_violations.
29629         (maybe_record_node): Add completep parameter; update it.
29630         (record_target_from_binfo): Add COMPLETEP parameter;
29631         update it as needed.
29632         (possible_polymorphic_call_targets_1): Likewise.
29633         (struct polymorphic_call_target_d): Add nonconstruction_targets;
29634         rename FINAL to COMPLETE.
29635         (record_targets_from_bases): Sanity check we found the binfo;
29636         fix COMPLETEP updating.
29637         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
29638         parameter, fix computing of COMPLETEP.
29639         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
29640         at LTO time do demangling.
29641         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
29642         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
29643         parameter.
29644         (gimple_get_virt_method_for_binfo): Likewise.
29645         * gimple-fold.h (gimple_get_virt_method_for_binfo,
29646         gimple_get_virt_method_for_vtable): Update prototypes.
29648 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
29650         PR target/49008
29651         * genautomata.c (add_presence_absence): Fix typo with
29652         {final_}presence_list.
29654 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
29656         PR target/60137
29657         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
29658         for VSX/Altivec vectors that land in GPR registers.
29660 2014-02-11  Richard Henderson  <rth@redhat.com>
29661             Jakub Jelinek  <jakub@redhat.com>
29663         PR debug/59776
29664         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
29665         around drhs if type conversion to lacc->type is not useless.
29667 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29669         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
29670         tuning struct.
29671         (cortex-a57.cortex-a53): Likewise.
29672         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
29674 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29676         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
29677         arm_restrict_it.
29679 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
29681         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
29682         add_options_for_arm_vfp3.
29684 2014-02-11  Jeff Law  <law@redhat.com>
29686         PR middle-end/54041
29687         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
29688         object with an undesirable mode.
29690 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29692         PR libgomp/60107
29693         * config/i386/sol2-9.h: New file.
29694         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
29695         *-*-solaris2.9*): Use it.
29697 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
29699         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
29700         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
29702 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
29704         * config/microblaze/microblaze.c: Extend mcpu version format
29706 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
29708         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
29710 2014-02-10  Richard Henderson  <rth@redhat.com>
29712         PR target/59927
29713         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
29714         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
29715         ms-abi vs -mno-accumulate-outgoing-args.
29716         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
29717         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
29718         respect to ms-abi.
29720 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29722         PR middle-end/60080
29723         * cfgexpand.c (expand_asm_operands): Attach source location to
29724         ASM_INPUT rtx objects.
29725         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
29727 2014-02-10  Nick Clifton  <nickc@redhat.com>
29729         * config/mn10300/mn10300.c (popcount): New function.
29730         (mn10300_expand_prologue): Include saved registers in stack usage
29731         count.
29733 2014-02-10  Jeff Law  <law@redhat.com>
29735         PR middle-end/52306
29736         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
29737         when changing the SET_DEST of a prior insn to avoid an input reload.
29739 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29741         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
29742         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
29743         -mcall-openbsd, or -mcall-linux.
29744         (CC1_ENDIAN_BIG_SPEC): Remove.
29745         (CC1_ENDIAN_LITTLE_SPEC): Remove.
29746         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29747         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
29748         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
29749         and %cc1_endian_default.
29750         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29752 2014-02-10  Richard Biener  <rguenther@suse.de>
29754         PR tree-optimization/60115
29755         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
29756         MEM_REF handling.  Properly verify that the accesses are not
29757         out of the objects bound.
29759 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29761         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
29762         coretex to cortex.
29764 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
29766         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
29767         proper constants and fix formatting.
29768         (possible_polymorphic_call_targets): Fix formatting.
29770 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
29771             Ilya Tocar  <ilya.tocar@intel.com>
29773         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
29774         (_mm512_loadu_epi32): Renamed into...
29775         (_mm512_loadu_si512): This.
29776         (_mm512_storeu_epi32): Renamed into...
29777         (_mm512_storeu_si512): This.
29778         (_mm512_maskz_ceil_ps): Removed.
29779         (_mm512_maskz_ceil_pd): Ditto.
29780         (_mm512_maskz_floor_ps): Ditto.
29781         (_mm512_maskz_floor_pd): Ditto.
29782         (_mm512_floor_round_ps): Ditto.
29783         (_mm512_floor_round_pd): Ditto.
29784         (_mm512_ceil_round_ps): Ditto.
29785         (_mm512_ceil_round_pd): Ditto.
29786         (_mm512_mask_floor_round_ps): Ditto.
29787         (_mm512_mask_floor_round_pd): Ditto.
29788         (_mm512_mask_ceil_round_ps): Ditto.
29789         (_mm512_mask_ceil_round_pd): Ditto.
29790         (_mm512_maskz_floor_round_ps): Ditto.
29791         (_mm512_maskz_floor_round_pd): Ditto.
29792         (_mm512_maskz_ceil_round_ps): Ditto.
29793         (_mm512_maskz_ceil_round_pd): Ditto.
29794         (_mm512_expand_pd): Ditto.
29795         (_mm512_expand_ps): Ditto.
29796         * config/i386/i386.c (ix86_builtins): Remove
29797         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
29798         (bdesc_args): Ditto.
29799         * config/i386/predicates.md (const1256_operand): New.
29800         (const_1_to_2_operand): Ditto.
29801         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29802         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29803         (*avx512pf_gatherpf<mode>sf): Ditto.
29804         (avx512pf_gatherpf<mode>df): Ditto.
29805         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29806         (*avx512pf_gatherpf<mode>df): Ditto.
29807         (avx512pf_scatterpf<mode>sf): Ditto.
29808         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29809         (*avx512pf_scatterpf<mode>sf): Ditto.
29810         (avx512pf_scatterpf<mode>df): Ditto.
29811         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29812         (*avx512pf_scatterpf<mode>df): Ditto.
29813         (avx512f_expand<mode>): Removed.
29814         (<shift_insn><mode>3<mask_name>): Change predicate type.
29816 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
29818         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
29819         not at the end of datarefs vector use ordered_remove to avoid
29820         reordering datarefs vector.
29822         PR c/59984
29823         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
29824         mark local addressable non-static vars as GOVD_PRIVATE
29825         instead of GOVD_LOCAL.
29826         * omp-low.c (lower_omp_for): Move gimple_bind_vars
29827         and BLOCK_VARS of gimple_bind_block to new_stmt rather
29828         than copying them.
29830         PR middle-end/60092
29831         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
29832         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
29833         assume_aligned or alloc_align attributes.
29834         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
29835         arguments.  Handle also assume_aligned and alloc_align attributes.
29836         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
29837         calls to functions with assume_aligned or alloc_align attributes.
29838         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
29840 2014-02-08  Terry Guo  <terry.guo@arm.com>
29842         * doc/invoke.texi: Document ARM -march=armv7e-m.
29844 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
29846         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
29847         flag on __cilkrts_rethrow builtin.
29849         PR ipa/60026
29850         * ipa-cp.c (determine_versionability): Fail at -O0
29851         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
29852         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
29854         Revert:
29855         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
29857         PR ipa/60026
29858         * tree-inline.c (copy_forbidden): Fail for
29859         __attribute__((optimize (0))) functions.
29861 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
29863         * varpool.c: Include pointer-set.h.
29864         (varpool_remove_unreferenced_decls): Variables in other partitions
29865         will not be output; be however careful to not lose information
29866         about partitioning.
29868 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
29870         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
29871         lookup in the vtable constructor.
29873 2014-02-07  Jeff Law  <law@redhat.com>
29875         PR target/40977
29876         * config/m68k/m68k.md (ashldi_extsi): Turn into a
29877         define_insn_and_split.
29879         * ipa-inline.c (inline_small_functions): Fix typos.
29881 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29883         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
29884         (s390_can_use_return_insn): Declare.
29885         * config/s390/s390.h (EPILOGUE_USES): Define.
29886         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
29887         instructions.
29888         (s390_chunkify_start): Handle return JUMP_LABELs.
29889         (s390_early_mach): Emit a main_pool instruction on the entry edge.
29890         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
29891         (s390_can_use_return_insn): New functions.
29892         (s390_fix_long_loop_prediction): Handle conditional returns.
29893         (TARGET_SET_UP_BY_PROLOGUE): Define.
29894         * config/s390/s390.md (ANY_RETURN): New code iterator.
29895         (*creturn, *csimple_return, return, simple_return): New patterns.
29897 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29899         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
29900         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
29901         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
29902         REG_CFA_RESTORE list when deciding not to restore a register.
29904 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29906         * config/s390/s390.c: Include tree-pass.h and context.h.
29907         (s390_early_mach): New function, split out from...
29908         (s390_emit_prologue): ...here.
29909         (pass_data_s390_early_mach): New pass structure.
29910         (pass_s390_early_mach): New class.
29911         (s390_option_override): Create and register early_mach pass.
29912         Move to end of file.
29914 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29916         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
29917         to match for the exit block.
29919 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29921         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
29922         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
29923         Reject misaligned operands.
29925 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29927         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
29929 2014-02-07  Richard Biener  <rguenther@suse.de>
29931         PR middle-end/60092
29932         * gimple-low.c (lower_builtin_posix_memalign): New function.
29933         (lower_stmt): Call it to lower posix_memalign in a way
29934         to make alignment info accessible.
29936 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
29938         PR c++/60082
29939         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
29940         __builtin_setjmp_receiver.
29942 2014-02-07  Richard Biener  <rguenther@suse.de>
29944         PR middle-end/60092
29945         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
29946         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
29947         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29948         Handle BUILT_IN_POSIX_MEMALIGN.
29949         (find_func_clobbers): Likewise.
29950         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29951         (call_may_clobber_ref_p_1): Likewise.
29953 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29955         PR ipa/59918
29956         * ipa-devirt.c (record_target_from_binfo): Remove overactive
29957         sanity check.
29959 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29961         PR ipa/59469
29962         * lto-cgraph.c (lto_output_node): Use
29963         symtab_get_symbol_partitioning_class.
29964         (lto_output_varpool_node): likewise.
29965         (symtab_get_symbol_partitioning_class): Move here from
29966         lto/lto-partition.c
29967         * cgraph.h (symbol_partitioning_class): Likewise.
29968         (symtab_get_symbol_partitioning_class): Declare.
29970 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29972         * ggc.h (ggc_internal_cleared_alloc): New macro.
29973         * vec.h (vec_safe_copy): Handle memory stats.
29974         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
29975         * target-globals.c (save_target_globals): Likewise.
29977 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29979         PR target/60077
29980         * expr.c (emit_move_resolve_push): Export; be bit more selective
29981         on when to clear alias set.
29982         * expr.h (emit_move_resolve_push): Declare.
29983         * function.h (struct function): Add tail_call_marked.
29984         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
29985         * config/i386/i386-protos.h (ix86_expand_push): Remove.
29986         * config/i386/i386.md (TImode move expander): De not call
29987         ix86_expand_push.
29988         (FP push expanders): Preserve memory attributes.
29989         * config/i386/sse.md (push<mode>1): Remove.
29990         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
29991         (ix86_expand_push): Remove.
29992         * config/i386/mmx.md (push<mode>1): Remove.
29994 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
29996         PR rtl-optimization/60030
29997         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
29998         lopart with paradoxical subreg before shifting it up by hprec.
30000 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30002         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
30003         Remove extra newline at end of file.
30004         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
30005         (arm_issue_rate): Handle cortexa57.
30006         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
30007         (cortex-a57.cortex-a53): Likewise.
30009 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30011         PR target/59575
30012         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
30013         don't record in REG_FRAME_RELATED_EXPR registers not set in that
30014         bitmask.
30015         (arm_expand_prologue): Adjust all callers.
30016         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
30017         info, registers also at the lowest numbered registers side.  Use
30018         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
30019         XEXP.
30021         PR debug/59992
30022         * var-tracking.c (adjust_mems): Before adding a SET to
30023         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
30025 2014-02-06  Alan Modra  <amodra@gmail.com>
30027         PR target/60032
30028         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
30029         change SDmode to DDmode when lra_in_progress.
30031 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30033         PR middle-end/59150
30034         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
30035         free_data_ref on the dr first, and before goto again also set dr
30036         to the next dr.  For simd_lane_access, free old datarefs[i] before
30037         overwriting it.  For get_vectype_for_scalar_type failure, don't
30038         free_data_ref if simd_lane_access.
30040         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
30042         PR target/60062
30043         * tree.h (opts_for_fn): New inline function.
30044         (opt_for_fn): Define.
30045         * config/i386/i386.c (ix86_function_regparm): Use
30046         opt_for_fn (decl, optimize) instead of optimize.
30048 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30050         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
30051         for SYMBOL_REF in large memory model.
30053 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30055         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
30056         and crypto support.
30057         (cortex-a57): Likewise.
30058         (cortex-a57.cortex-a53): Likewise.
30060 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
30061             Kugan Vivekanandarajah  <kuganv@linaro.org>
30063         * config/arm/arm.c (arm_vector_alignment_reachable): Check
30064         unaligned_access.
30065         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
30067 2014-02-06  Richard Biener  <rguenther@suse.de>
30069         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
30070         set_loop_copy and initialize_original_copy_tables.
30072 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
30074         * config/aarch64/aarch64-simd.md
30075         (aarch64_ashr_simddi): Change QI to SI.
30077 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30078             Jakub Jelinek  <jakub@redhat.com>
30080         PR middle-end/60013
30081         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
30082         of the dataflow.
30084 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30086         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
30087         CODE_FOR_altivec_vpku[hw]um to
30088         CODE_FOR_altivec_vpku[hw]um_direct.
30089         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
30090         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
30091         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
30092         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
30094 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30096         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
30097         generation for -maltivec=be.
30098         (altivec_vsumsws): Simplify redundant test.
30100 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30102         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
30103         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
30104         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
30105         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
30106         gen_altivec_vpkuwum.
30107         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
30108         BYTES_BIG_ENDIAN.
30109         (altivec_vpks<VI_char>ss): Likewise.
30110         (altivec_vpks<VI_char>us): Likewise.
30111         (altivec_vpku<VI_char>us): Likewise.
30112         (altivec_vpku<VI_char>um): Likewise.
30113         (altivec_vpku<VI_char>um_direct): New (copy of
30114         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
30115         internal use).
30116         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
30117         target is little endian and -maltivec=be is not specified.
30118         (*altivec_vupkhs<VU_char>_direct): New (copy of
30119         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
30120         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
30121         target is little endian and -maltivec=be is not specified.
30122         (*altivec_vupkls<VU_char>_direct): New (copy of
30123         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
30124         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
30125         little endian and -maltivec=be is not specified.
30126         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
30127         little endian and -maltivec=be is not specified.
30129 2014-02-05  Richard Henderson  <rth@redhat.com>
30131         PR debug/52727
30132         * combine-stack-adj.c: Revert r206943.
30133         * sched-int.h (struct deps_desc): Add last_args_size.
30134         * sched-deps.c (init_deps): Initialize it.
30135         (sched_analyze_insn): Add OUTPUT dependencies between insns that
30136         contain REG_ARGS_SIZE notes.
30138 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30140         * lto-cgraph.c (asm_nodes_output): Make global.
30141         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
30142         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
30143         (driver_handle_option): Handle OPT_fwpa.
30145 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
30147         PR ipa/59947
30148         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
30149         a comment typo and formatting issue.  If odr_hash hasn't been
30150         created, return vNULL and set *completep to false.
30152         PR middle-end/57499
30153         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
30154         bb with no successors.
30156 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
30158         PR target/59718
30159         * doc/invoke.texi (-march): Clarify documentation for ARM.
30160         (-mtune): Likewise.
30161         (-mcpu): Likewise.
30163 2014-02-05  Richard Biener  <rguenther@suse.de>
30165         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
30166         when not vectorizing because of too many alias checks.
30167         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30168         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
30170 2014-02-05  Nick Clifton  <nickc@redhat.com>
30172         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
30173         accept extended registers in any mode when compiling for the MN10300.
30175 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
30177         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
30178         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
30179         sanitization attributes.
30180         (can_inline_edge_p): Likewise.
30181         (sanitize_attrs_match_for_inline_p): New function.
30183 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30185         * ipa-prop.c (detect_type_change): Shor circuit testing of
30186         type changes on THIS pointer.
30188 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
30190         PR target/59777
30191         * config/pa/pa.c (legitimize_tls_address): Return original address
30192         if not passed a SYMBOL_REF rtx.
30193         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
30194         addresses.
30195         (pa_emit_move_sequence): Simplify TLS source operands.
30196         (pa_legitimate_constant_p): Reject all TLS constants.
30197         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
30198         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
30200 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30202         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
30203         groups when we know they are controlled by LTO.
30204         * varasm.c (default_binds_local_p_1): If object is in other partition,
30205         it will be resolved locally.
30207 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30209         * config/host-linux.c (linux_gt_pch_use_address): Don't
30210         use SSIZE_MAX because it is not always defined.
30212 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
30214         PR bootstrap/59913
30215         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
30216         threshold for pseudo splitting.
30217         (update_ebb_live_info): Process call argument hard registers and
30218         hard registers from insn definition too.
30219         (max_small_class_regs_num): New constant.
30220         (inherit_in_ebb): Update live hard regs through EBBs.  Update
30221         reloads_num only for small register classes.  Don't split for
30222         outputs of jumps.
30224 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
30226         PR ipa/60058
30227         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
30228         is non-null.
30230 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30232         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
30233         visibility is safe.
30235 2014-02-04  Marek Polacek  <polacek@redhat.com>
30237         * gdbinit.in (pel): Define.
30239 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30241         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30242         behavior.
30244 2014-02-04  Richard Biener  <rguenther@suse.de>
30246         PR lto/59723
30247         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30248         in function context local.
30249         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30250         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30251         similar to LTO_imported_decl_ref.
30253 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
30255         PR tree-optimization/60002
30256         * cgraphclones.c (build_function_decl_skip_args): Clear
30257         DECL_LANG_SPECIFIC.
30259         PR tree-optimization/60023
30260         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30261         false to gsi_replace.
30262         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
30263         has been in some EH region and vec_stmt could throw, add
30264         vec_stmt into the same EH region.
30265         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
30266         has no lhs, ignore it.
30267         * internal-fn.c (expand_MASK_LOAD): Likewise.
30269         PR ipa/60026
30270         * tree-inline.c (copy_forbidden): Fail for
30271         __attribute__((optimize (0))) functions.
30273         PR other/58712
30274         * omp-low.c (simd_clone_struct_copy): If from->inbranch
30275         is set, copy one less argument.
30276         (expand_simd_clones): Don't subtract clone_info->inbranch
30277         from simd_clone_struct_alloc argument.
30279         PR rtl-optimization/57915
30280         * recog.c (simplify_while_replacing): If all unary/binary/relational
30281         operation arguments are constant, attempt to simplify those.
30283         PR middle-end/59261
30284         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
30285         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
30287 2014-02-04  Richard Biener  <rguenther@suse.de>
30289         PR tree-optimization/60012
30290         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
30291         TBAA disambiguation to all DDRs.
30293 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30295         PR target/59788
30296         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
30297         (LINK_SPEC): Use it for -shared, -shared-libgcc.
30299 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30301         PR ipa/59882
30302         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
30304 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30306         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
30307         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
30309 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30311         PR ipa/59831
30312         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
30313         to figure out targets of polymorphic calls with known decl.
30314         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30315         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
30316         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
30317         (get_polymorphic_call_info): ... here.
30318         (get_polymorphic_call_info_from_invariant): New function.
30320 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30322         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
30323         lookup via vtable pointer; check for type consistency
30324         and turn inconsitent facts into UNREACHABLE.
30325         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30326         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
30327         type inconsistent querries; return UNREACHABLE instead.
30329 2014-02-03  Richard Henderson  <rth@twiddle.net>
30331         PR tree-opt/59924
30332         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
30333         already processed this node.
30334         (normalize_one_pred_1): Pass along mark_set.
30335         (normalize_one_pred): Create and destroy a pointer_set_t.
30336         (normalize_one_pred_chain): Likewise.
30338 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
30340         PR gcov-profile/58602
30341         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
30343 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30345         PR ipa/59831
30346         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
30347         -fno-devirtualize; try to devirtualize by the knowledge of
30348         virtual table pointer given by aggregate propagation.
30349         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30350         (ipa_print_node_jump_functions): Dump also offset that
30351         is relevant for polymorphic calls.
30352         (determine_known_aggregate_parts): Add arg_type parameter; use it
30353         instead of determining the type from pointer type.
30354         (ipa_compute_jump_functions_for_edge): Update call of
30355         determine_known_aggregate_parts.
30356         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
30357         (gimple_get_virt_method_for_binfo): ... here; simplify using
30358         vtable_pointer_value_to_vtable.
30359         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
30360         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
30361         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
30362         (vtable_pointer_value_to_vtable): Break out from ...; handle also
30363         POINTER_PLUS_EXPR.
30364         (vtable_pointer_value_to_binfo): ... here.
30365         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
30367 2014-02-03  Teresa Johnson  <tejohnson@google.com>
30369         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
30370         redef of outer loop index variable.
30372 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
30374         PR c++/53017
30375         PR c++/59211
30376         * doc/extend.texi (Function Attributes): Typo.
30378 2014-02-03  Cong Hou  <congh@google.com>
30380         PR tree-optimization/60000
30381         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
30382         if the vectorized statement is a store.  A store statement can only
30383         appear at the end of pattern statements.
30385 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
30387         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
30388         (ix86_option_override_internal): Default long double to 64-bit for
30389         32-bit Bionic and to 128-bit for 64-bit Bionic.
30391         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
30392         TARGET_LONG_DOUBLE_128 is true.
30393         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30395         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
30396         (mlong-double-64): Negate -mlong-double-128.
30397         (mlong-double-128): New option.
30399         * config/i386/i386-c.c (ix86_target_macros): Define
30400         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
30402         * doc/invoke.texi: Document -mlong-double-128.
30404 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
30406         PR rtl-optimization/60024
30407         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
30409 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
30411         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
30413 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
30415         PR rtl-optimization/57662
30416         * sel-sched.c (code_motion_path_driver): Do not mark already not
30417         existing blocks in the visiting bitmap.
30419 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
30421         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
30422         on the insn being emitted.
30424 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
30425             Will Deacon  <will.deacon@arm.com>
30427         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
30429 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30431         * config/arm/arm-tables.opt: Regenerate.
30433 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30435         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
30436         for vector types other than V16QImode.
30437         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
30438         define_expand, and call altivec_expand_vec_perm_le when producing
30439         code with little endian element order.
30440         (*altivec_vperm_<mode>_internal): New insn having previous
30441         behavior of altivec_vperm_<mode>.
30442         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
30443         altivec_expand_vec_perm_le when producing code with little endian
30444         element order.
30445         (*altivec_vperm_<mode>_uns_internal): New insn having previous
30446         behavior of altivec_vperm_<mode>_uns.
30448 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30450         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
30451         (altivec_vsumsws): Add handling for -maltivec=be with a little
30452         endian target.
30453         (altivec_vsumsws_direct): New.
30454         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
30455         gen_altivec_vsumsws.
30457 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
30459         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
30460         vtable_pointer_value_to_binfo): New functions.
30461         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
30462         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
30464 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
30466         * config/nios2/nios2.md (load_got_register): Initialize GOT
30467         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
30468         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
30470 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
30472         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
30473         preserverd by passthrough, do not propagate the type.
30475 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30477         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
30478         (mips_atomic_assign_expand_fenv): New function.
30479         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30481 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30483         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
30484         (__builtin_mips_set_fcsr): Likewise.
30485         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
30486         MIPS_USI_FTYPE_VOID.
30487         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
30488         (mips16_expand_set_fcsr): Likewise.
30489         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
30490         (mips16_set_fcsr_stub): Likewise.
30491         (mips16_get_fcsr_one_only_stub): New class.
30492         (mips16_set_fcsr_one_only_stub): Likewise.
30493         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
30494         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
30495         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
30496         (hard_float): New availability predicate.
30497         (mips_builtins): Add get_fcsr and set_fcsr.
30498         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
30499         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
30500         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
30501         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
30502         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
30503         patterns.
30505 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30507         * config/mips/mips.c (mips_one_only_stub): New class.
30508         (mips_need_mips16_rdhwr_p): Replace with...
30509         (mips16_rdhwr_stub): ...this new variable.
30510         (mips16_stub_call_address): New function.
30511         (mips16_rdhwr_one_only_stub): New class.
30512         (mips_expand_thread_pointer): Use mips16_stub_call_address.
30513         (mips_output_mips16_rdhwr): Delete.
30514         (mips_finish_stub): New function.
30515         (mips_code_end): Use it to handle rdhwr stubs.
30517 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
30519         PR target/60017
30520         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
30521         when calculating size of integer atomic types.
30523 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
30525         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
30527 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
30529         PR tree-optimization/60003
30530         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
30531         * profile.c (branch_prob): Use gimple_call_builtin_p
30532         to check for BUILT_IN_SETJMP_RECEIVER.
30533         * tree-inline.c (copy_bb): Call notice_special_calls.
30535 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
30537         PR bootstrap/59985
30538         * lra-constraints.c (process_alt_operands): Update reload_sum only
30539         on the first pass.
30541 2014-01-31  Richard Henderson  <rth@redhat.com>
30543         PR middle-end/60004
30544         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
30545         until after else_eh is processed.
30547 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
30549         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
30550         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
30551         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
30552         in smmintrin.h, remove them.
30553         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
30554         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
30555         * config/i386/i386.md (ROUND_SAE): Fix value.
30556         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
30557         (const48_operand): New.
30558         * config/i386/subst.md (round), (round_expand): Use
30559         const_4_or_8_to_11_operand.
30560         (round_saeonly), (round_saeonly_expand): Use const48_operand.
30562 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
30564         * config/i386/constraints.md (Yk): Swap meaning with k.
30565         * config/i386/i386.md (movhi_internal): Change Yk to k.
30566         (movqi_internal): Ditto.
30567         (*k<logic><mode>): Ditto.
30568         (*andhi_1): Ditto.
30569         (*andqi_1): Ditto.
30570         (kandn<mode>): Ditto.
30571         (*<code>hi_1): Ditto.
30572         (*<code>qi_1): Ditto.
30573         (kxnor<mode>): Ditto.
30574         (kortestzhi): Ditto.
30575         (kortestchi): Ditto.
30576         (kunpckhi): Ditto.
30577         (*one_cmplhi2_1): Ditto.
30578         (*one_cmplqi2_1): Ditto.
30579         * config/i386/sse.md (): Change k to Yk.
30580         (avx512f_load<mode>_mask): Ditto.
30581         (avx512f_blendm<mode>): Ditto.
30582         (avx512f_store<mode>_mask): Ditto.
30583         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
30584         (avx512f_storedqu<mode>_mask): Ditto.
30585         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
30586         Ditto.
30587         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
30588         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
30589         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
30590         (avx512f_maskcmp<mode>3): Ditto.
30591         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
30592         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
30593         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
30594         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
30595         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
30596         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
30597         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
30598         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
30599         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
30600         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
30601         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
30602         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
30603         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
30604         (vec_extract_lo_<mode>_maskm): Ditto.
30605         (vec_extract_hi_<mode>_maskm): Ditto.
30606         (avx512f_vternlog<mode>_mask): Ditto.
30607         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
30608         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
30609         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
30610         (avx512f_<code>v8div16qi2_mask): Ditto.
30611         (avx512f_<code>v8div16qi2_mask_store): Ditto.
30612         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
30613         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
30614         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
30615         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
30616         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30617         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30618         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30619         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30620         (avx512cd_maskb_vec_dupv8di): Ditto.
30621         (avx512cd_maskw_vec_dupv16si): Ditto.
30622         (avx512f_vpermi2var<mode>3_maskz): Ditto.
30623         (avx512f_vpermi2var<mode>3_mask): Ditto.
30624         (avx512f_vpermi2var<mode>3_mask): Ditto.
30625         (avx512f_vpermt2var<mode>3_maskz): Ditto.
30626         (*avx512f_gathersi<mode>): Ditto.
30627         (*avx512f_gathersi<mode>_2): Ditto.
30628         (*avx512f_gatherdi<mode>): Ditto.
30629         (*avx512f_gatherdi<mode>_2): Ditto.
30630         (*avx512f_scattersi<mode>): Ditto.
30631         (*avx512f_scatterdi<mode>): Ditto.
30632         (avx512f_compress<mode>_mask): Ditto.
30633         (avx512f_compressstore<mode>_mask): Ditto.
30634         (avx512f_expand<mode>_mask): Ditto.
30635         * config/i386/subst.md (mask): Change k to Yk.
30636         (mask_scalar_merge): Ditto.
30637         (sd): Ditto.
30639 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
30641         * doc/extend.texi (Vector Extensions): Document ?: in C++.
30643 2014-01-31  Richard Biener  <rguenther@suse.de>
30645         PR middle-end/59990
30646         * builtins.c (fold_builtin_memory_op): Make sure to not
30647         use a floating-point mode or a boolean or enumeral type for
30648         the copy operation.
30650 2014-01-30  DJ Delorie  <dj@redhat.com>
30652         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
30653         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
30654         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
30655         whenever main() has an epilogue.
30657 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30659         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
30660         unused variable "field".
30661         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
30662         (vsx_mergeh_<mode>): Likewise.
30663         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
30664         (altivec_vmrghh): Likewise.
30665         (altivec_vmrghw): Likewise.
30666         (altivec_vmrglb): Likewise.
30667         (altivec_vmrglh): Likewise.
30668         (altivec_vmrglw): Likewise.
30669         (altivec_vspltb): Add missing uses.
30670         (altivec_vsplth): Likewise.
30671         (altivec_vspltw): Likewise.
30672         (altivec_vspltsf): Likewise.
30674 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
30676         PR target/59923
30677         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
30678         frame related instructions.
30680 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30682         PR rtl-optimization/59959
30683         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
30684         any reload of register whose subreg is invalid.
30686 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
30688         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
30689         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
30690         Add missing return type - void.
30692 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30694         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
30695         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
30696         remove element index adjustment for endian (now handled in vsx.md
30697         and altivec.md).
30698         (altivec_expand_vec_perm_const): Use
30699         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
30700         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
30701         (vsx_xxspltw_<mode>): Adjust element index for little endian.
30702         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
30703         define_expand and a new define_insn *altivec_vspltb_internal;
30704         adjust for -maltivec=be on a little endian target.
30705         (altivec_vspltb_direct): New.
30706         (altivec_vsplth): Divide into a define_expand and a new
30707         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
30708         little endian target.
30709         (altivec_vsplth_direct): New.
30710         (altivec_vspltw): Divide into a define_expand and a new
30711         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
30712         little endian target.
30713         (altivec_vspltw_direct): New.
30714         (altivec_vspltsf): Divide into a define_expand and a new
30715         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
30716         a little endian target.
30718 2014-01-30  Richard Biener  <rguenther@suse.de>
30720         PR tree-optimization/59993
30721         * tree-ssa-forwprop.c (associate_pointerplus): Check we
30722         can propagate form the earlier stmt and avoid the transform
30723         when the intermediate result is needed.
30725 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
30727         * README.Portability: Fix typo.
30729 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
30731         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
30732         comparison_operator with ordered_comparison_operator.
30734 2014-01-30  Nick Clifton  <nickc@redhat.com>
30736         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
30737         Rename to mn10300_store_multiple_regs.
30738         * config/mn10300/mn10300.c: Likewise.
30739         * config/mn10300/mn10300.md (store_movm): Fix typo: call
30740         store_multiple_regs.
30741         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
30742         Call mn10300_store_multiple_regs.
30744 2014-01-30  Nick Clifton  <nickc@redhat.com>
30745             DJ Delorie  <dj@redhat.com>
30747         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
30748         %fp 2 to keep registers after it properly word-aligned.
30749         (rl78_alloc_physical_registers_umul): Handle the case where both
30750         input operands are the same.
30752 2014-01-30  Richard Biener  <rguenther@suse.de>
30754         PR tree-optimization/59903
30755         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
30756         check properly.
30758 2014-01-30  Jason Merrill  <jason@redhat.com>
30760         PR c++/59633
30761         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
30763         PR c++/59645
30764         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
30766 2014-01-30  Richard Biener  <rguenther@suse.de>
30768         PR tree-optimization/59951
30769         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
30771 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
30773         PR target/59784
30774         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
30775         SFmode to DFmode case.
30777 2014-01-29  DJ Delorie  <dj@redhat.com>
30779         * config/msp430/msp430.opt (-minrt): New.
30780         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
30781         if -minrt given.
30782         (ENDFILE_SPEC): Likewise.
30784 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
30786         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
30787         (estimate_function_body_sizes): Use it.
30789 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
30791         PR c++/58561
30792         * dwarf2out.c (is_cxx_auto): New.
30793         (is_base_type): Use it.
30794         (gen_type_die_with_usage): Likewise.
30796 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30798         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
30799         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
30800         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
30801         -maltivec=be with LE targets.
30802         (vsx_mergeh_<mode>): Likewise.
30803         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
30804         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
30805         (altivec_vmrghb): Replace with define_expand and new
30806         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
30807         (altivec_vmrghb_direct): New define_insn.
30808         (altivec_vmrghh): Replace with define_expand and new
30809         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
30810         (altivec_vmrghh_direct): New define_insn.
30811         (altivec_vmrghw): Replace with define_expand and new
30812         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
30813         (altivec_vmrghw_direct): New define_insn.
30814         (*altivec_vmrghsf): Adjust for endianness.
30815         (altivec_vmrglb): Replace with define_expand and new
30816         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
30817         (altivec_vmrglb_direct): New define_insn.
30818         (altivec_vmrglh): Replace with define_expand and new
30819         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
30820         (altivec_vmrglh_direct): New define_insn.
30821         (altivec_vmrglw): Replace with define_expand and new
30822         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
30823         (altivec_vmrglw_direct): New define_insn.
30824         (*altivec_vmrglsf): Adjust for endianness.
30825         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30826         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30827         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30828         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30829         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30830         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30831         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30832         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30834 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30836         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
30837         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
30838         whitespace.
30840 2014-01-29  Richard Biener  <rguenther@suse.de>
30842         PR tree-optimization/58742
30843         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
30844         associate_pointerplus_align.
30845         (associate_pointerplus_diff): New function.
30846         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
30847         and associate_pointerplus_diff.
30849 2014-01-29  Richard Biener  <rguenther@suse.de>
30851         * lto-streamer.h (LTO_major_version): Bump to 3.
30852         (LTO_minor_version): Reset to 0.
30854 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
30856         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
30857         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
30858         (arm_file_start): Generate correct asm header for armv7ve.
30859         * config/arm/bpabi.h: Add multilib support for armv7ve.
30860         * config/arm/driver-arm.c: Change the architectures of cortex-a7
30861         and cortex-a15 to armv7ve.
30862         * config/arm/t-aprofile: Add multilib support for armv7ve.
30863         * doc/invoke.texi: Document -march=armv7ve.
30865 2014-01-29  Richard Biener  <rguenther@suse.de>
30867         PR tree-optimization/58742
30868         * tree-ssa-forwprop.c (associate_plusminus): Return true
30869         if we changed sth, defer EH cleanup to ...
30870         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
30871         (simplify_mult): New function.
30873 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
30875         PR middle-end/59917
30876         PR tree-optimization/59920
30877         * tree.c (build_common_builtin_nodes): Remove
30878         __builtin_setjmp_dispatcher initialization.
30879         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
30880         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
30881         instead of gsi_after_labels + manually skipping debug stmts.
30882         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
30883         ignore bbs with IFN_ABNORMAL_DISPATCHER.
30884         * tree-inline.c (copy_edges_for_bb): Remove
30885         can_make_abnormal_goto argument, instead add abnormal_goto_dest
30886         argument.  Ignore computed_goto_p stmts.  Don't call
30887         make_abnormal_goto_edges.  If a call might need abnormal edges
30888         for non-local gotos, see if it already has an edge to
30889         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
30890         with true argument, don't do anything then, otherwise add
30891         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
30892         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
30893         caller.
30894         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
30895         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
30896         (lower_stmt): Don't set data->calls_builtin_setjmp.
30897         (lower_builtin_setjmp): Adjust comment.
30898         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
30899         * tree-cfg.c (found_computed_goto): Remove.
30900         (factor_computed_gotos): Remove.
30901         (make_goto_expr_edges): Return bool, true for computed gotos.
30902         Don't call make_abnormal_goto_edges.
30903         (build_gimple_cfg): Don't set found_computed_goto, don't call
30904         factor_computed_gotos.
30905         (computed_goto_p): No longer static.
30906         (make_blocks): Don't set found_computed_goto.
30907         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
30908         (make_edges): If make_goto_expr_edges returns true, push bb
30909         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
30910         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
30911         vector.  Record mapping between bbs and OpenMP regions if there
30912         are any, adjust make_gimple_omp_edges caller.  Call
30913         handle_abnormal_edges.
30914         (make_abnormal_goto_edges): Remove.
30915         * tree-cfg.h (make_abnormal_goto_edges): Remove.
30916         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
30917         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
30918         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
30919         * internal-fn.def (ABNORMAL_DISPATCHER): New.
30920         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
30921         filling *region also set *region_idx to (*region)->entry->index.
30923         PR other/58712
30924         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
30925         For REGs set ORIGINAL_REGNO.
30927 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
30929         * doc/md.texi: Mention that a target shouldn't implement
30930         vec_widen_(s|u)mul_even/odd pair if it is less efficient
30931         than hi/lo pair.
30933 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
30935         PR tree-optimization/59594
30936         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
30937         a copy of the datarefs vector rather than the vector itself.
30939 2014-01-28  Jason Merrill  <jason@redhat.com>
30941         PR c++/53756
30942         * dwarf2out.c (auto_die): New static.
30943         (gen_type_die_with_usage): Handle C++1y 'auto'.
30944         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
30945         on definition.
30947 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
30949         PR target/59672
30950         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
30951         (SPEC_X32): Likewise.
30952         (SPEC_64): Likewise.
30953         * config/i386/i386.c (ix86_option_override_internal): Turn off
30954         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
30955         for TARGET_16BIT.
30956         (x86_file_start): Output .code16gcc for TARGET_16BIT.
30957         * config/i386/i386.h (TARGET_16BIT): New macro.
30958         (TARGET_16BIT_P): Likewise.
30959         * config/i386/i386.opt: Add m16.
30960         * doc/invoke.texi: Document -m16.
30962 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
30964         PR preprocessor/59935
30965         * input.c (location_get_source_line): Bail out on when line number
30966         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
30968 2014-01-28  Richard Biener  <rguenther@suse.de>
30970         PR tree-optimization/58742
30971         * tree-ssa-forwprop.c (associate_plusminus): Handle
30972         pointer subtraction of the form (T)(P + A) - (T)P.
30974 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30976         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
30977         at const_int_cost.
30979 2014-01-28  Richard Biener  <rguenther@suse.de>
30981         Revert
30982         2014-01-28  Richard Biener  <rguenther@suse.de>
30984         PR rtl-optimization/45364
30985         PR rtl-optimization/59890
30986         * var-tracking.c (local_get_addr_clear_given_value): Handle
30987         already cleared slot.
30988         (val_reset): Handle not allocated local_get_addr_cache.
30989         (vt_find_locations): Use post-order on the inverted CFG.
30991 2014-01-28  Richard Biener  <rguenther@suse.de>
30993         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
30995 2014-01-28  Richard Biener  <rguenther@suse.de>
30997         PR rtl-optimization/45364
30998         PR rtl-optimization/59890
30999         * var-tracking.c (local_get_addr_clear_given_value): Handle
31000         already cleared slot.
31001         (val_reset): Handle not allocated local_get_addr_cache.
31002         (vt_find_locations): Use post-order on the inverted CFG.
31004 2014-01-28  Alan Modra  <amodra@gmail.com>
31006         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
31007         * configure.ac <recursive call for build != host>: Define
31008         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
31009         and LD_FOR_BUILD too.
31010         * configure: Regenerate.
31012 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
31014         * config/i386/i386.c (get_builtin_code_for_version): Separate
31015         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
31016         Broadwell from Haswell.
31018 2014-01-27  Steve Ellcey  <sellcey@mips.com>
31020         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31021         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
31022         * config/mips/mips.c (mips_option_override): Change setting
31023         of TARGET_DSP.
31024         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
31025         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
31026         Change from Mask to Var.
31028 2014-01-27  Jeff Law  <law@redhat.com>
31030         * ipa-inline.c (inline_small_functions): Fix typo.
31032 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
31034         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
31035         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
31036         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
31037         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
31038         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
31039         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
31040         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
31041         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
31042         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
31043         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
31044         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
31045         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
31046         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
31047         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
31048         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
31049         (_mm512_storeu_epi64): Ditto.
31050         (_mm512_cmpge_epi32_mask): Ditto.
31051         (_mm512_cmpge_epu32_mask): Ditto.
31052         (_mm512_cmpge_epi64_mask): Ditto.
31053         (_mm512_cmpge_epu64_mask): Ditto.
31054         (_mm512_cmple_epi32_mask): Ditto.
31055         (_mm512_cmple_epu32_mask): Ditto.
31056         (_mm512_cmple_epi64_mask): Ditto.
31057         (_mm512_cmple_epu64_mask): Ditto.
31058         (_mm512_cmplt_epi32_mask): Ditto.
31059         (_mm512_cmplt_epu32_mask): Ditto.
31060         (_mm512_cmplt_epi64_mask): Ditto.
31061         (_mm512_cmplt_epu64_mask): Ditto.
31062         (_mm512_cmpneq_epi32_mask): Ditto.
31063         (_mm512_cmpneq_epu32_mask): Ditto.
31064         (_mm512_cmpneq_epi64_mask): Ditto.
31065         (_mm512_cmpneq_epu64_mask): Ditto.
31066         (_mm512_expand_pd): Ditto.
31067         (_mm512_expand_ps): Ditto.
31068         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
31069         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
31070         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
31071         * config/i386/i386.c (ix86_builtins): Add
31072         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
31073         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
31074         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
31075         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
31076         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
31077         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
31078         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
31079         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
31080         IX86_BUILTIN_PMOVUSQW512_MEM.
31081         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
31082         __builtin_ia32_pmovsqd512mem_mask,
31083         __builtin_ia32_pmovqd512mem_mask,
31084         __builtin_ia32_pmovusqw512mem_mask,
31085         __builtin_ia32_pmovsqw512mem_mask,
31086         __builtin_ia32_pmovqw512mem_mask,
31087         __builtin_ia32_pmovusdw512mem_mask,
31088         __builtin_ia32_pmovsdw512mem_mask,
31089         __builtin_ia32_pmovdw512mem_mask,
31090         __builtin_ia32_pmovqb512mem_mask,
31091         __builtin_ia32_pmovusqb512mem_mask,
31092         __builtin_ia32_pmovsqb512mem_mask,
31093         __builtin_ia32_pmovusdb512mem_mask,
31094         __builtin_ia32_pmovsdb512mem_mask,
31095         __builtin_ia32_pmovdb512mem_mask.
31096         (bdesc_args): Add __builtin_ia32_expanddf512,
31097         __builtin_ia32_expandsf512.
31098         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
31099         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
31100         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
31101         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
31102         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
31103         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
31104         (avx512f_<code>v8div16qi2_mask_store): This.
31105         (avx512f_expand<mode>): New.
31107 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
31109         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
31110         New.
31111         (_mm512_mask_prefetch_i64gather_pd): Ditto.
31112         (_mm512_prefetch_i32scatter_pd): Ditto.
31113         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
31114         (_mm512_prefetch_i64scatter_pd): Ditto.
31115         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
31116         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
31117         (_mm512_mask_prefetch_i64gather_ps): Ditto.
31118         (_mm512_prefetch_i32scatter_ps): Ditto.
31119         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
31120         (_mm512_prefetch_i64scatter_ps): Ditto.
31121         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
31122         * config/i386/i386-builtin-types.def: Define
31123         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
31124         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
31125         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
31126         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
31127         IX86_BUILTIN_SCATTERPFQPD.
31128         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
31129         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
31130         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
31131         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
31132         __builtin_ia32_scatterpfqps.
31133         (ix86_expand_builtin): Expand new built-ins.
31134         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
31135         fix memory access data type.
31136         (*avx512pf_gatherpf<mode>_mask): Ditto.
31137         (*avx512pf_gatherpf<mode>): Ditto.
31138         (avx512pf_scatterpf<mode>): Ditto.
31139         (*avx512pf_scatterpf<mode>_mask): Ditto.
31140         (*avx512pf_scatterpf<mode>): Ditto.
31141         (GATHER_SCATTER_SF_MEM_MODE): New.
31142         (avx512pf_gatherpf<mode>df): Ditto.
31143         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31144         (*avx512pf_scatterpf<mode>df): Ditto.
31146 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
31148         PR bootstrap/59934
31149         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
31150         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
31151         reached.
31153 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31155         * common/config/arm/arm-common.c
31156         (arm_rewrite_mcpu): Handle multiple names.
31157         * config/arm/arm.h
31158         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31160 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31162         * gimple-builder.h (create_gimple_tmp): Delete.
31164 2014-01-27  Christian Bruel  <christian.bruel@st.com>
31166         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
31167         words comparisons.
31169 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
31171         * config/pa/pa.md (call): Generate indirect long calls to non-local
31172         functions when outputing 32-bit code.
31173         (call_value): Likewise except for special call to buggy powf function.
31175         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
31176         portable runtime and PIC indirect calls.
31177         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
31178         and PIC call sequences.  Use ldo instead of blr to set return register
31179         in PIC call sequence.
31181 2014-01-25  Walter Lee  <walt@tilera.com>
31183         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
31184         avoid clobbering a live register.
31186 2014-01-25  Walter Lee  <walt@tilera.com>
31188         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
31189         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
31190         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
31191         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
31193 2014-01-25  Walter Lee  <walt@tilera.com>
31195         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
31196         arguments on even registers.
31197         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
31198         STACK_BOUNDARY.
31199         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
31200         (BIGGEST_ALIGNMENT): Ditto.
31201         (BIGGEST_FIELD_ALIGNMENT): Ditto.
31203 2014-01-25  Walter Lee  <walt@tilera.com>
31205         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
31206         insns before bundling.
31207         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
31209 2014-01-25  Walter Lee  <walt@tilera.com>
31211         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
31212         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
31213         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
31215 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31217         * config/mips/constraints.md (kl): Delete.
31218         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
31219         define expands, using...
31220         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
31221         instructions for MIPS16.
31222         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
31223         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
31225 2014-01-25  Walter Lee  <walt@tilera.com>
31227         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
31228         (clzdi2): Ditto.
31229         (ffsdi2): Ditto.
31231 2014-01-25  Walter Lee  <walt@tilera.com>
31233         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
31234         (TARGET_EXPAND_TO_RTL_HOOK): Define.
31236 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31238         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31239         Handle XOR.
31241 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
31243         * print-rtl.c (in_call_function_usage): New var.
31244         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31245         EXPR_LIST mode as mode and not as reg note name.
31247         PR middle-end/59561
31248         * cfgloopmanip.c (copy_loop_info): If
31249         loop->warned_aggressive_loop_optimizations, make sure
31250         the flag is set in target loop too.
31252 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
31254         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31255         flag_cilkplus.
31256         * builtins.def: Likewise.
31257         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31258         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31259         * ira.c (ira_setup_eliminable_regset): Likewise.
31260         * omp-low.c (gate_expand_omp): Likewise.
31261         (execute_lower_omp): Likewise.
31262         (diagnose_sb_0): Likewise.
31263         (gate_diagnose_omp_blocks): Likewise.
31264         (simd_clone_clauses_extract): Likewise.
31265         (gate): Likewise.
31267 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31269         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
31270         correction for little endian...
31271         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
31272         here.
31274 2014-01-24  Jeff Law  <law@redhat.com>
31276         PR tree-optimization/59919
31277         * tree-vrp.c (find_assert_locations_1): Do not register asserts
31278         for non-returning calls.
31280 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
31282         * common/config/aarch64/aarch64-common.c
31283         (aarch64_rewrite_mcpu): Handle multiple names.
31284         * config/aarch64/aarch64.h
31285         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31287 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
31289         * input.c (add_file_to_cache_tab): Handle the case where fopen
31290         returns NULL.
31292 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
31294         PR target/59929
31295         * config/i386/i386.md (pushsf splitter): Get stack adjustment
31296         from push operand if code of push isn't PRE_DEC.
31298 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
31300         PR target/59909
31301         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
31302         -mquad-memory-atomic.  Update -mquad-memory documentation to say
31303         it is only used for non-atomic loads/stores.
31305         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
31306         -mquad-memory or -mquad-memory-atomic switches.
31308         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
31309         -mquad-memory-atomic to ISA 2.07 support.
31311         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
31312         to separate support of normal quad word memory operations (ldq, stq)
31313         from the atomic quad word memory operations.
31315         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31316         support to separate non-atomic quad word operations from atomic
31317         quad word operations.  Disable non-atomic quad word operations in
31318         little endian mode so that we don't have to swap words after the
31319         load and before the store.
31320         (quad_load_store_p): Add comment about atomic quad word support.
31321         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
31322         options printed with -mdebug=reg.
31324         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
31325         -mquad-memory-atomic as the test for whether we have quad word
31326         atomic instructions.
31327         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
31328         or -mp8-vector are used, allow byte/half-word atomic operations.
31330         * config/rs6000/sync.md (load_lockedti): Insure that the address
31331         is a proper indexed or indirect address for the lqarx instruction.
31332         On little endian systems, swap the hi/lo registers after the lqarx
31333         instruction.
31334         (load_lockedpti): Use indexed_or_indirect_operand predicate to
31335         insure the address is valid for the lqarx instruction.
31336         (store_conditionalti): Insure that the address is a proper indexed
31337         or indirect address for the stqcrx. instruction.  On little endian
31338         systems, swap the hi/lo registers before doing the stqcrx.
31339         instruction.
31340         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
31341         insure the address is valid for the stqcrx. instruction.
31343         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
31344         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
31345         type of quad memory support is available.
31347 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
31349         PR regression/59915
31350         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
31351         there is a danger of looping.
31353 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
31355         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31356         force flag_ira_loop_pressure if set via command line.
31358 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31360         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
31361         (ashr_simd): New builtin handling DI mode.
31362         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
31363         (aarch64_sshr_simddi): New match pattern.
31364         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
31365         (vshrd_n_s64): Likewise.
31366         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
31368 2014-01-23  Nick Clifton  <nickc@redhat.com>
31370         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
31371         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
31372         favour of mcu specific scripts.
31373         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
31374         430x multilibs.
31376 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
31377             Alex Velenko  <Alex.Velenko@arm.com>
31379         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
31380         (vaddv_s16): Likewise.
31381         (vaddv_s32): Likewise.
31382         (vaddv_u8): Likewise.
31383         (vaddv_u16): Likewise.
31384         (vaddv_u32): Likewise.
31385         (vaddvq_s8): Likewise.
31386         (vaddvq_s16): Likewise.
31387         (vaddvq_s32): Likewise.
31388         (vaddvq_s64): Likewise.
31389         (vaddvq_u8): Likewise.
31390         (vaddvq_u16): Likewise.
31391         (vaddvq_u32): Likewise.
31392         (vaddvq_u64): Likewise.
31393         (vaddv_f32): Likewise.
31394         (vaddvq_f32): Likewise.
31395         (vaddvq_f64): Likewise.
31396         (vmaxv_f32): Likewise.
31397         (vmaxv_s8): Likewise.
31398         (vmaxv_s16): Likewise.
31399         (vmaxv_s32): Likewise.
31400         (vmaxv_u8): Likewise.
31401         (vmaxv_u16): Likewise.
31402         (vmaxv_u32): Likewise.
31403         (vmaxvq_f32): Likewise.
31404         (vmaxvq_f64): Likewise.
31405         (vmaxvq_s8): Likewise.
31406         (vmaxvq_s16): Likewise.
31407         (vmaxvq_s32): Likewise.
31408         (vmaxvq_u8): Likewise.
31409         (vmaxvq_u16): Likewise.
31410         (vmaxvq_u32): Likewise.
31411         (vmaxnmv_f32): Likewise.
31412         (vmaxnmvq_f32): Likewise.
31413         (vmaxnmvq_f64): Likewise.
31414         (vminv_f32): Likewise.
31415         (vminv_s8): Likewise.
31416         (vminv_s16): Likewise.
31417         (vminv_s32): Likewise.
31418         (vminv_u8): Likewise.
31419         (vminv_u16): Likewise.
31420         (vminv_u32): Likewise.
31421         (vminvq_f32): Likewise.
31422         (vminvq_f64): Likewise.
31423         (vminvq_s8): Likewise.
31424         (vminvq_s16): Likewise.
31425         (vminvq_s32): Likewise.
31426         (vminvq_u8): Likewise.
31427         (vminvq_u16): Likewise.
31428         (vminvq_u32): Likewise.
31429         (vminnmv_f32): Likewise.
31430         (vminnmvq_f32): Likewise.
31431         (vminnmvq_f64): Likewise.
31433 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
31435         * config/aarch64/aarch64-simd.md
31436         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
31437         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
31438         (*aarch64_mul3_elt<mode>): Likewise.
31439         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
31440         (*aarch64_mul3_elt_to_64v2df): Likewise.
31441         (*aarch64_mla_elt<mode>): Likewise.
31442         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31443         (*aarch64_mls_elt<mode>): Likewise.
31444         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31445         (*aarch64_fma4_elt<mode>): Likewise.
31446         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31447         (*aarch64_fma4_elt_to_64v2df): Likewise.
31448         (*aarch64_fnma4_elt<mode>): Likewise.
31449         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31450         (*aarch64_fnma4_elt_to_64v2df): Likewise.
31451         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
31452         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
31453         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31454         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31455         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31456         (aarch64_sqdmull_lane<mode>_internal): Likewise.
31457         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31459 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31461         * config/aarch64/aarch64-simd.md
31462         (aarch64_be_checked_get_lane<mode>): New define_expand.
31463         * config/aarch64/aarch64-simd-builtins.def
31464         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
31465         New builtin definition.
31466         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
31467         Use new safe be builtin.
31469 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31471         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
31472         New define_insn.
31473         (aarch64_be_st1<mode>): Likewise.
31474         (aarch_ld1<VALL:mode>): Define_expand modified.
31475         (aarch_st1<VALL:mode>): Likewise.
31476         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
31477         (UNSPEC_ST1): Likewise.
31479 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
31481         * config/microblaze/microblaze.md: Add trap insn and attribute
31483 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
31485         PR preprocessor/58580
31486         * input.h (location_get_source_line): Take an additional line_size
31487         parameter.
31488         (void diagnostics_file_cache_fini): Declare new function.
31489         * input.c (struct fcache): New type.
31490         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
31491         New static constants.
31492         (diagnostic_file_cache_init, total_lines_num)
31493         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
31494         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
31495         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
31496         (get_next_line, read_next_line, goto_next_line, read_line_num):
31497         New static function definitions.
31498         (diagnostic_file_cache_fini): New function.
31499         (location_get_source_line): Take an additional output line_len
31500         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
31501         read_line_num.
31502         * diagnostic.c (diagnostic_finish): Call
31503         diagnostic_file_cache_fini.
31504         (adjust_line): Take an additional input parameter for the length
31505         of the line, rather than calculating it with strlen.
31506         (diagnostic_show_locus): Adjust the use of
31507         location_get_source_line and adjust_line with respect to their new
31508         signature.  While displaying a line now, do not stop at the first
31509         null byte.  Rather, display the zero byte as a space and keep
31510         going until we reach the size of the line.
31511         * Makefile.in: Add vec.o to OBJS-libcommon
31513 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
31514             Ilya Tocar  <ilya.tocar@intel.com>
31516         * config/i386/avx512fintrin.h (_mm512_kmov): New.
31517         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
31518         (__builtin_ia32_kmov16): Ditto.
31519         * config/i386/i386.md (UNSPEC_KMOV): New.
31520         (kmovw): Ditto.
31522 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
31524         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
31525         (_mm512_storeu_si512): Ditto.
31527 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
31529         PR target/52125
31530         * rtl.h (get_referenced_operands): Declare.
31531         * recog.c (get_referenced_operands): New function.
31532         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
31533         operands have been referenced when recording LO_SUM references.
31535 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
31537         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
31539 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
31541         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
31542         Enable for generic and recent AMD targets.
31544 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
31546         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
31547         ARG_SIZE note when adjustment was eliminated.
31549 2014-01-22  Jeff Law  <law@redhat.com>
31551         PR tree-optimization/59597
31552         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
31553         in file.  Accept new argument REGISTERING and use it to modify
31554         dump output appropriately.
31555         (register_jump_thread): Corresponding changes.
31556         (mark_threaded_blocks): Reinstate code to cancel unprofitable
31557         thread paths involving joiner blocks.  Add code to dump cancelled
31558         jump threading paths.
31560 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
31562         PR rtl-optimization/59477
31563         * lra-constraints.c (inherit_in_ebb): Process call for living hard
31564         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
31566 2014-01-22  Tom Tromey  <tromey@redhat.com>
31568         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
31569         PARAMS.
31570         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
31572 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
31574         PR rtl-optimization/59896
31575         * lra-constraints.c (process_alt_operands): Check unused note for
31576         matched operands of insn with no output reloads.
31578 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
31580         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
31581         (mips_move_from_gpr_cost): Likewise.
31583 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
31585         PR rtl-optimization/59858
31586         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
31587         ira_class_hard_regs_num.
31588         (process_alt_operands): Increase reject for dying matched operand.
31590 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
31592         PR target/59003
31593         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
31594         smaller than size, perform several stores or loads and stores
31595         at dst + count - size to store or copy all of size bytes, rather
31596         than just last modesize bytes.
31598 2014-01-20  DJ Delorie  <dj@redhat.com>
31600         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
31601         that CLOBBERs are REGs before propogating their values.
31603 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
31605         PR middle-end/59789
31606         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
31607         (cgraph_inline_failed_type): New function.
31608         * cgraph.h (DEFCIFCODE): Add type.
31609         (cgraph_inline_failed_type_t): New enum.
31610         (cgraph_inline_failed_type): New prototype.
31611         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
31612         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31613         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
31614         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
31615         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
31616         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
31617         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
31618         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
31619         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
31620         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
31621         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
31622         OPTIMIZATION_MISMATCH.
31623         * tree-inline.c (expand_call_inline): Emit errors during
31624         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
31626 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
31628         PR target/59685
31629         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
31630         mode attribute in insn output.
31632 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
31634         * output.h (output_constant): Delete.
31635         * varasm.c (output_constant): Make private.
31637 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
31639         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
31641 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
31643         PR middle-end/59860
31644         * tree.h (fold_builtin_strcat): New prototype.
31645         * builtins.c (fold_builtin_strcat): No longer static.  Add len
31646         argument, if non-NULL, don't call c_strlen.  Optimize
31647         directly into __builtin_memcpy instead of __builtin_strcpy.
31648         (fold_builtin_2): Adjust fold_builtin_strcat caller.
31649         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
31651 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
31653         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31654         for SImode_address_operand operands, having only a REG argument.
31656 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31658         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
31659         loader name using mbig-endian.
31660         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
31662 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
31664         * doc/invoke.texi (-march): Clarify documentation for AArch64.
31665         (-mtune): Likewise.
31666         (-mcpu): Likewise.
31668 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
31670         * config/aarch64/aarch64-protos.h
31671         (aarch64_cannot_change_mode_class_ptr): Declare.
31672         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
31673         aarch64_cannot_change_mode_class_ptr): New.
31674         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
31675         backend hook aarch64_cannot_change_mode_class.
31677 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
31679         * common/config/aarch64/aarch64-common.c
31680         (aarch64_handle_option): Don't handle any option order logic here.
31681         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
31682         selected_cpu, warn on architecture version mismatch.
31683         (aarch64_override_options): Fix parsing order for option strings.
31685 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31686             Iain Sandoe  <iain@codesourcery.com>
31688         PR bootstrap/59496
31689         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
31690         warning.  Amend comment to reflect current functionality.
31692 2014-01-20  Richard Biener  <rguenther@suse.de>
31694         PR middle-end/59860
31695         * builtins.c (fold_builtin_strcat): Remove case better handled
31696         by tree-ssa-strlen.c.
31698 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
31700         * config/aarch64/aarch64.opt
31701         (mcpu, march, mtune): Make case-insensitive.
31703 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
31705         PR target/59880
31706         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31707         if operands[1] is a REG or ZERO_EXTEND of a REG.
31709 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
31711         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
31713 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
31715         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
31716         long non-pic millicode calls.
31718 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31720         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
31722 2014-01-19  Kito Cheng  <kito@0xlab.org>
31724         * builtins.c (expand_movstr): Check movstr expand done or fail.
31726 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
31727             H.J. Lu  <hongjiu.lu@intel.com>
31729         PR target/59379
31730         * config/i386/i386.md (*lea<mode>): Zero-extend return register
31731         to DImode for zero-extended addresses.
31733 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
31735         PR rtl-optimization/57763
31736         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
31737         on the new indirect jump_insn and increment LABEL_NUSES (label).
31739 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
31741         PR bootstrap/59580
31742         PR bootstrap/59583
31743         * config.gcc (x86_archs): New variable.
31744         (x86_64_archs): Likewise.
31745         (x86_cpus): Likewise.
31746         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
31747         --with-arch/--with-cpu= options.
31748         Support --with-arch=/--with-cpu={nehalem,westmere,
31749         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
31751 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
31753         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
31754         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
31756 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
31758         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
31760 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
31762         PR target/58944
31763         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
31764         clear cpp_get_options (parse_in)->warn_unused_macros for
31765         ix86_target_macros_internal with cpp_define.
31767 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
31769         * jump.c (delete_related_insns): Keep (use (insn))s.
31770         * reorg.c (redundant_insn): Check for barriers too.
31772 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31774         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
31776 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
31778         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
31779         call to $$dyncall when TARGET_LONG_CALLS is true.
31781 2014-01-17  Jeff Law  <law@redhat.com>
31783         * ree.c (combine_set_extension): Temporarily disable test for
31784         changing number of hard registers.
31786 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
31788         PR middle-end/58125
31789         * ipa-inline-analysis.c (inline_free_summary):
31790         Do not free summary of aliases.
31792 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
31794         PR middle-end/59706
31795         * gimplify.c (gimplify_expr): Use create_tmp_var
31796         instead of create_tmp_var_raw.  If cond doesn't have
31797         integral type, don't add the IFN_ANNOTATE builtin at all.
31799 2014-01-17  Martin Jambor  <mjambor@suse.cz>
31801         PR ipa/59736
31802         * ipa-cp.c (prev_edge_clone): New variable.
31803         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
31804         Also resize prev_edge_clone vector.
31805         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
31806         (ipcp_edge_removal_hook): New function.
31807         (ipcp_driver): Register ipcp_edge_removal_hook.
31809 2014-01-17  Andrew Pinski  <apinski@cavium.com>
31810             Steve Ellcey  <sellcey@mips.com>
31812         PR target/59462
31813         * config/mips/mips.c (mips_print_operand): Check operand mode instead
31814         of operator mode.
31816 2014-01-17  Jeff Law  <law@redhat.com>
31818         PR middle-end/57904
31819         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
31820         so that pass_ccp runs first.
31822 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31824         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
31825         (ix86_adjust_cost): Use !TARGET_XXX.
31826         (do_reorder_for_imul): Likewise.
31827         (swap_top_of_ready_list): Likewise.
31828         (ix86_sched_reorder): Likewise.
31830 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31832         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31833         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
31834         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
31835         (intel_memset): New.  Duplicate slm_memset.
31836         (intel_cost): New.  Duplicate slm_cost.
31837         (m_INTEL): New macro.
31838         (processor_target_table): Add "intel".
31839         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
31840         with PROCESSOR_INTEL for "intel".
31841         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
31842         PROCESSOR_SILVERMONT.
31843         (ix86_issue_rate): Likewise.
31844         (ix86_adjust_cost): Likewise.
31845         (ia32_multipass_dfa_lookahead): Likewise.
31846         (swap_top_of_ready_list): Likewise.
31847         (ix86_sched_reorder): Likewise.
31848         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
31849         instead of TARGET_OPT_AGU.
31850         * config/i386/i386.h (TARGET_INTEL): New.
31851         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
31852         (processor_type): Add PROCESSOR_INTEL.
31853         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
31854         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
31856 2014-01-17  Marek Polacek  <polacek@redhat.com>
31858         PR c/58346
31859         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
31860         size is zero.
31862 2014-01-17  Richard Biener  <rguenther@suse.de>
31864         PR tree-optimization/46590
31865         * opts.c (default_options_table): Add entries for
31866         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
31867         all enabled at -O1 but not for -Og.
31868         * common.opt (fbranch-count-reg): Remove Init(1).
31869         (fmove-loop-invariants): Likewise.
31870         (ftree-pta): Likewise.
31872 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
31874         * config/i386/i386.c (ix86_data_alignment): For compatibility with
31875         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
31876         decls to at least the GCC 4.8 used alignments.
31878         PR fortran/59440
31879         * tree-nested.c (convert_nonlocal_reference_stmt,
31880         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
31881         of GIMPLE_BIND stmts, adjust associated decls.
31883 2014-01-17  Richard Biener  <rguenther@suse.de>
31885         PR tree-optimization/46590
31886         * vec.h (vec<>::bseach): New member function implementing
31887         binary search according to C89 bsearch.
31888         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
31889         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
31890         bitmap pointer again.  Make accesses_in_loop a flat array.
31891         (mem_ref_obstack): New global.
31892         (outermost_indep_loop): Adjust for mem_ref->stored changes.
31893         (mark_ref_stored): Likewise.
31894         (ref_indep_loop_p_2): Likewise.
31895         (set_ref_stored_in_loop): New helper function.
31896         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
31897         (memref_free): Adjust.
31898         (record_mem_ref_loc): Simplify.
31899         (gather_mem_refs_stmt): Adjust.
31900         (sort_locs_in_loop_postorder_cmp): New function.
31901         (analyze_memory_references): Sort accesses_in_loop after
31902         loop postorder number.
31903         (find_ref_loc_in_loop_cmp): New function.
31904         (for_all_locs_in_loop): Find relevant cluster of locs in
31905         accesses_in_loop and iterate without recursion.
31906         (execute_sm): Avoid uninit warning.
31907         (struct ref_always_accessed): Simplify.
31908         (ref_always_accessed::operator ()): Likewise.
31909         (ref_always_accessed_p): Likewise.
31910         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
31911         loop postorder numbers here.
31912         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
31913         numbers.
31915 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
31917         PR c++/57945
31918         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
31919         on decls for which assemble_alias has been called.
31921 2014-01-17  Nick Clifton  <nickc@redhat.com>
31923         * config/msp430/msp430.opt: (mcpu): New option.
31924         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
31925         (msp430_option_override): Parse target_cpu.  If the MCU name
31926         matches a generic string, clear target_mcu.
31927         (msp430_attr): Allow numeric interrupt values up to 63.
31928         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
31929         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
31930         option.
31931         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
31932         Add mcpu matches.
31933         * config/msp430/msp430.md (popm): Use %J rather than %I.
31934         (addsi3): Use msp430_nonimmediate_operand for operand 2.
31935         (addhi_cy_i): Use immediate_operand for operand 2.
31936         * doc/invoke.texi: Document -mcpu option.
31938 2014-01-17  Richard Biener  <rguenther@suse.de>
31940         PR rtl-optimization/38518
31941         * df.h (df_analyze_loop): Declare.
31942         * df-core.c: Include cfgloop.h.
31943         (df_analyze_1): Split out main part of df_analyze.
31944         (df_analyze): Adjust.
31945         (loop_inverted_post_order_compute): New function.
31946         (loop_post_order_compute): Likewise.
31947         (df_analyze_loop): New function avoiding whole-function
31948         postorder computes.
31949         * loop-invariant.c (find_defs): Use df_analyze_loop.
31950         (find_invariants): Adjust.
31951         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
31953 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31955         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
31956         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
31958 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31960         * ipa-ref.c (ipa_remove_stmt_references): Fix references
31961         traversal when removing references.
31963 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
31965         PR ipa/59775
31966         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
31968 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
31970         PR middle-end/56791
31971         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
31972         pushing a reload for an autoinc when we had previously reloaded an
31973         inner part of the address.
31975 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
31977         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
31978         field.
31979         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
31980         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
31981         when not giving up or versioning for alias only because of
31982         loop->safelen.
31983         (vect_analyze_data_ref_dependences): Set to true.
31984         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
31985         is a GIMPLE_PHI.
31986         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
31987         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
31988         to the condition.
31990         PR middle-end/58344
31991         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
31993         PR target/59839
31994         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
31995         operand 0 predicate for gathers, use a new pseudo as subtarget.
31997 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
31999         PR middle-end/59609
32000         * lra-constraints.c (process_alt_operands): Add printing debug info.
32001         Check absence of input/output reloads for matched operands too.
32003 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
32005         PR rtl-optimization/59835
32006         * ira.c (ira_init_register_move_cost): Increase cost for
32007         impossible modes.
32009 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
32011         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
32013 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
32015         PR target/59780
32016         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
32017         non-register objects.  Use gen_(high/low)part more consistently.
32018         Fix assertions.
32020 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
32022         PR target/59844
32023         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
32024         endian support, remove tests for WORDS_BIG_ENDIAN.
32025         (p8_mfvsrd_3_<mode>): Likewise.
32026         (reload_gpr_from_vsx<mode>): Likewise.
32027         (reload_gpr_from_vsxsf): Likewise.
32028         (p8_mfvsrd_4_disf): Likewise.
32030 2014-01-16  Richard Biener  <rguenther@suse.de>
32032         PR rtl-optimization/46590
32033         * lcm.c (compute_antinout_edge): Use postorder iteration.
32034         (compute_laterin): Use inverted postorder iteration.
32036 2014-01-16  Nick Clifton  <nickc@redhat.com>
32038         PR middle-end/28865
32039         * varasm.c (output_constant): Return the number of bytes actually
32040         emitted.
32041         (output_constructor_array_range): Update the field size with the
32042         number of bytes emitted by output_constant.
32043         (output_constructor_regular_field): Likewise.  Also do not
32044         complain if the total number of bytes emitted is now greater
32045         than the expected fieldpos.
32046         * output.h (output_constant): Update prototype and descriptive comment.
32048 2014-01-16  Marek Polacek  <polacek@redhat.com>
32050         PR middle-end/59827
32051         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
32052         it is error_mark_node.
32054 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
32056         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
32057         VALID_AVX256_REG_OR_OI_MODE.
32059 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
32061         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
32062         current procedure should be profiled.
32064 2014-01-15  Andrew Pinski  <apinski@cavium.com>
32066         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
32067         of moving from/to the STACK_REG register class.
32069 2014-01-15  Richard Henderson  <rth@redhat.com>
32071         PR debug/54694
32072         * reginfo.c (global_regs_decl): Globalize.
32073         * rtl.h (global_regs_decl): Declare.
32074         * ira.c (do_reload): Diagnose frame_pointer_needed and it
32075         reserved via global_regs.
32077 2014-01-15  Teresa Johnson  <tejohnson@google.com>
32079         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
32081 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
32083         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
32084         and vmulosh rather than call gen_vec_widen_smult_*.
32085         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
32086         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
32087         (vec_widen_smult_even_v16qi): Likewise.
32088         (vec_widen_umult_even_v8hi): Likewise.
32089         (vec_widen_smult_even_v8hi): Likewise.
32090         (vec_widen_umult_odd_v16qi): Likewise.
32091         (vec_widen_smult_odd_v16qi): Likewise.
32092         (vec_widen_umult_odd_v8hi): Likewise.
32093         (vec_widen_smult_odd_v8hi): Likewise.
32094         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
32095         vmuloub rather than call gen_vec_widen_umult_*.
32096         (vec_widen_umult_lo_v16qi): Likewise.
32097         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
32098         vmulosb rather than call gen_vec_widen_smult_*.
32099         (vec_widen_smult_lo_v16qi): Likewise.
32100         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
32101         rather than call gen_vec_widen_umult_*.
32102         (vec_widen_umult_lo_v8hi): Likewise.
32103         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
32104         rather than call gen_vec_widen_smult_*.
32105         (vec_widen_smult_lo_v8hi): Likewise.
32107 2014-01-15  Jeff Law  <law@redhat.com>
32109         PR tree-optimization/59747
32110         * ree.c (find_and_remove_re): Properly handle case where a second
32111         eliminated extension requires widening a copy created for elimination
32112         of a prior extension.
32113         (combine_set_extension): Ensure that the number of hard regs needed
32114         for a destination register does not change when we widen it.
32116 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32118         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
32119         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
32120         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
32121         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
32122         (avr-*-rtems*): Likewise.
32123         (bfin*-rtems*): Likewise.
32124         (moxie-*-rtems*): Likewise.
32125         (h8300-*-rtems*): Likewise.
32126         (i[34567]86-*-rtems*): Likewise.
32127         (lm32-*-rtems*): Likewise.
32128         (m32r-*-rtems*): Likewise.
32129         (m68k-*-rtems*): Likewise.
32130         (microblaze*-*-rtems*): Likewise.
32131         (mips*-*-rtems*): Likewise.
32132         (powerpc-*-rtems*): Likewise.
32133         (sh-*-rtems*): Likewise.
32134         (sparc-*-rtems*): Likewise.
32135         (sparc64-*-rtems*): Likewise.
32136         (v850-*-rtems*): Likewise.
32137         (m32c-*-rtems*): Likewise.
32139 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
32141         PR rtl-optimization/59511
32142         * ira.c (ira_init_register_move_cost): Use memory costs for some
32143         cases of register move cost calculations.
32144         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
32145         instead of BB frequency.
32146         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
32147         * lra-assigns.c (find_hard_regno_for): Ditto.
32149 2014-01-15  Richard Biener  <rguenther@suse.de>
32151         PR tree-optimization/59822
32152         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
32153         (vectorizable_load): Use it to hoist defs of uses of invariant
32154         loads out of the loop.
32156 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
32157             Kugan Vivekanandarajah  <kuganv@linaro.org>
32159         PR target/59695
32160         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
32161         truncation.
32163 2014-01-15  Richard Biener  <rguenther@suse.de>
32165         PR rtl-optimization/59802
32166         * lcm.c (compute_available): Use inverted postorder to seed
32167         the initial worklist.
32169 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32171         PR target/59803
32172         * config/s390/s390.c (s390_preferred_reload_class): Don't return
32173         ADDR_REGS for invalid symrefs in non-PIC code.
32175 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
32177         PR other/58712
32178         * builtins.c (determine_block_size): Initialize *probable_max_size
32179         even if len_rtx is CONST_INT.
32181 2014-01-14  Andrew Pinski  <apinski@cavium.com>
32183         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
32184         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
32185         (cortexa53_tunings): Likewise.
32186         (aarch64_sched_issue_rate): New function.
32187         (TARGET_SCHED_ISSUE_RATE): Define.
32189 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32191         * ira-costs.c (find_costs_and_classes): Add missed
32192         ira_init_register_move_cost_if_necessary.
32194 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32196         PR target/59787
32197         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
32199 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
32201         PR target/59794
32202         * config/i386/i386.c (type_natural_mode): Add a bool parameter
32203         to indicate if type is used for function return value.  Warn ABI
32204         change if the vector mode isn't available for function return value.
32205         (ix86_function_arg_advance): Pass false to type_natural_mode.
32206         (ix86_function_arg): Likewise.
32207         (ix86_gimplify_va_arg): Likewise.
32208         (function_arg_32): Don't warn ABI change.
32209         (ix86_function_value): Pass true to type_natural_mode.
32210         (ix86_return_in_memory): Likewise.
32211         (ix86_struct_value_rtx): Removed.
32212         (TARGET_STRUCT_VALUE_RTX): Likewise.
32214 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32216         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
32217         converting a conditional jump into a conditional return.
32219 2014-01-14  Richard Biener  <rguenther@suse.de>
32221         PR tree-optimization/58921
32222         PR tree-optimization/59006
32223         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
32224         hoisting invariant stmts.
32225         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
32226         invariant loads on the preheader edge if possible.
32228 2014-01-14  Joey Ye  <joey.ye@arm.com>
32230         * doc/plugin.texi (Building GCC plugins): Update to C++.
32232 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
32234         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
32235         (_mm_rcp28_round_ss): Ditto.
32236         (_mm_rsqrt28_round_sd): Ditto.
32237         (_mm_rsqrt28_round_ss): Ditto.
32238         (_mm_rcp28_sd): Ditto.
32239         (_mm_rcp28_ss): Ditto.
32240         (_mm_rsqrt28_sd): Ditto.
32241         (_mm_rsqrt28_ss): Ditto.
32242         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32243         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32244         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32245         (IX86_BUILTIN_RCP28SD): Ditto.
32246         (IX86_BUILTIN_RCP28SS): Ditto.
32247         (IX86_BUILTIN_RSQRT28SD): Ditto.
32248         (IX86_BUILTIN_RSQRT28SS): Ditto.
32249         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32250         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32251         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32252         (ix86_expand_special_args_builtin): Expand new FTYPE.
32253         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32254         (srcp14<mode>): Make insn unary.
32255         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32256         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32257         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32258         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32259         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32260         Fix rounding: make it SAE only.
32261         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32262         Ditto.
32263         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32264         Ditto.
32265         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
32266         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
32267         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
32268         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
32269         (round_saeonly_mask_scalar_operand4): Ditto.
32270         (round_saeonly_mask_scalar_op3): Ditto.
32271         (round_saeonly_mask_scalar_op4): Ditto.
32273 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32275         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32276         Implement -maltivec=be for vec_insert and vec_extract.
32278 2014-01-10  DJ Delorie  <dj@redhat.com>
32280         * config/msp430/msp430.md (call_internal): Don't allow memory
32281         references with SP as the base register.
32282         (call_value_internal): Likewise.
32283         * config/msp430/constraints.md (Yc): New.  For memory references
32284         that don't use SP as a base register.
32286         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
32287         "an integer without a # prefix"
32288         * config/msp430/msp430.md (epilogue_helper): Use it.
32290 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
32292         PR target/59617
32293         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
32294         AVX512F gather builtins.
32295         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
32296         on gather decls with INTEGER_TYPE masktype.
32297         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
32298         directly into the builtin rather than hoisting it before loop.
32300         PR tree-optimization/59387
32301         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
32302         (scev_const_prop): If folded_casts and type has undefined overflow,
32303         use force_gimple_operand instead of force_gimple_operand_gsi and
32304         for each added stmt if it is assign with
32305         arith_code_with_undefined_signed_overflow, call
32306         rewrite_to_defined_overflow.
32307         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
32308         gimple-fold.h instead.
32309         (arith_code_with_undefined_signed_overflow,
32310         rewrite_to_defined_overflow): Moved to ...
32311         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
32312         rewrite_to_defined_overflow): ... here.  No longer static.
32313         Include gimplify-me.h.
32314         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
32315         rewrite_to_defined_overflow): New prototypes.
32317 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32319         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
32321 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
32323         * builtins.c (get_object_alignment_2): Minor tweak.
32324         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
32326 2014-01-13  Christian Bruel  <christian.bruel@st.com>
32328         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
32329         optimized non constant lengths.
32331 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
32333         PR libgomp/59194
32334         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
32335         load as __atomic_load_N if possible.
32337 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
32339         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
32340         target parameter.
32341         (rs6000_expand_builtin): Adjust call.
32343 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
32345         PR target/58115
32346         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
32347         * config/rs6000/rs6000.c: Include target-globals.h.
32348         (rs6000_set_current_function): Instead of doing target_reinit
32349         unconditionally, use save_target_globals_default_opts and
32350         restore_target_globals.
32352         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
32353         FPSCR.
32354         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
32355         (rs6000_expand_builtin): Handle mffs and mtfsf.
32356         (rs6000_init_builtins): Define mffs and mtfsf.
32357         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
32358         (rs6000_mffs): New pattern.
32359         (rs6000_mtfsf): New pattern.
32361 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
32363         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
32364         Start narrowing with START.  Apply candidate-use pair
32365         and check overall cost in narrowing.
32366         (iv_ca_prune): Pass new argument.
32368 2014-01-10  Jeff Law  <law@redhat.com>
32370         PR middle-end/59743
32371         * ree.c (combine_reaching_defs): Ensure the defining statement
32372         occurs before the extension when optimizing extensions with
32373         different source and destination hard registers.
32375 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
32377         PR ipa/58585
32378         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
32379         vtables into the type inheritance graph.
32381 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32383         PR rtl-optimization/59754
32384         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
32385         modes in the REGNO != REGNO case.
32387 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32389         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
32391 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32393         PR tree-optimization/59745
32394         * tree-predcom.c (tree_predictive_commoning_loop): Call
32395         free_affine_expand_cache if giving up because components is NULL.
32397         * target-globals.c (save_target_globals): Allocate < 4KB structs using
32398         GC in payload of target_globals struct instead of allocating them on
32399         the heap and the larger structs separately using GC.
32400         * target-globals.h (struct target_globals): Make regs, hard_regs,
32401         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
32402         of GTY((skip)) and change type to void *.
32403         (reset_target_globals): Cast loads from those fields to corresponding
32404         types.
32406 2014-01-10  Steve Ellcey  <sellcey@mips.com>
32408         PR plugins/59335
32409         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
32410         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
32411         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
32413 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
32415         PR target/59744
32416         * aarch64-modes.def (CC_Zmode): New flags mode.
32417         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
32418         represents an equality.
32419         (aarch64_get_condition_code): Handle CC_Zmode.
32420         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
32422 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32424         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
32425         extraction in good case.
32427 2014-01-10  Richard Biener  <rguenther@suse.de>
32429         PR tree-optimization/59374
32430         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
32431         checking after SLP discovery.  Mark stmts not participating
32432         in any SLP instance properly.
32434 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32436         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
32437         when handling a SET rtx.
32439 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32441         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
32442         (cortex-a57): Likewise.
32443         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
32445 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32447         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
32448         non-iwmmxt builtins.
32450 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
32452         PR ipa/58252
32453         PR ipa/59226
32454         * ipa-devirt.c record_target_from_binfo): Take as argument
32455         stack of binfos and lookup matching one for virtual inheritance.
32456         (possible_polymorphic_call_targets_1): Update.
32458 2014-01-10  Huacai Chen  <chenhc@lemote.com>
32460         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
32461         kernel strings for Loongson-2E/2F/3A.
32463 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32465         PR middle-end/59670
32466         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
32467         is_gimple_call before calling gimple_call_internal_p.
32469 2014-01-09  Steve Ellcey  <sellcey@mips.com>
32471         * Makefile.in (TREE_FLOW_H): Remove.
32472         (TREE_SSA_H): Add file names from tree-flow.h.
32473         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
32474         * tree.h: Remove tree-flow.h reference.
32475         * hash-table.h: Remove tree-flow.h reference.
32476         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
32477         reference with tree-ssa-loop.h.
32479 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32481         * doc/invoke.texi: Add -maltivec={be,le} options, and document
32482         default element-order behavior for -maltivec.
32483         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
32484         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
32485         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
32486         when targeting big endian, at least for now.
32487         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
32489 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32491         PR middle-end/47735
32492         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
32493         var satisfies use_register_for_decl, just take into account type
32494         alignment, rather than decl alignment.
32496         PR tree-optimization/59622
32497         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
32498         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
32499         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
32500         Don't devirtualize for inplace at all.  For targets.length () == 1,
32501         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
32503 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
32505         * config/i386/i386.md (cpu): Remove the unused btver1.
32507 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
32509         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
32511 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32513         PR target/58115
32514         * tree-core.h (struct target_globals): New forward declaration.
32515         (struct tree_target_option): Add globals field.
32516         * tree.h (TREE_TARGET_GLOBALS): Define.
32517         (prepare_target_option_nodes_for_pch): New prototype.
32518         * target-globals.h (struct target_globals): Define even if
32519         !SWITCHABLE_TARGET.
32520         * tree.c (prepare_target_option_node_for_pch,
32521         prepare_target_option_nodes_for_pch): New functions.
32522         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
32523         * config/i386/i386.c: Include target-globals.h.
32524         (ix86_set_current_function): Instead of doing target_reinit
32525         unconditionally, use save_target_globals_default_opts and
32526         restore_target_globals.
32528 2014-01-09  Richard Biener  <rguenther@suse.de>
32530         PR tree-optimization/59715
32531         * tree-cfg.h (split_critical_edges): Declare.
32532         * tree-cfg.c (split_critical_edges): Export.
32533         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
32535 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32537         * cfgexpand.c (expand_stack_vars): Optionally disable
32538         asan stack protection.
32539         (expand_used_vars): Likewise.
32540         (partition_stack_vars): Likewise.
32541         * asan.c (asan_emit_stack_protection): Optionally disable
32542         after return stack usage.
32543         (instrument_derefs): Optionally disable memory access instrumentation.
32544         (instrument_builtin_call): Likewise.
32545         (instrument_strlen_call): Likewise.
32546         (asan_protect_global): Optionally disable global variables protection.
32547         * doc/invoke.texi: Added doc for new options.
32548         * params.def: Added new options.
32549         * params.h: Likewise.
32551 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32553         PR rtl-optimization/59724
32554         * ifcvt.c (cond_exec_process_if_block): Don't call
32555         flow_find_head_matching_sequence with 0 longest_match.
32556         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
32557         non-active insns if !stop_after.
32558         (try_head_merge_bb): Revert 2014-01-07 changes.
32560 2014-01-08  Jeff Law  <law@redhat.com>
32562         * ree.c (get_sub_rtx): New function, extracted from...
32563         (merge_def_and_ext): Here.
32564         (combine_reaching_defs): Use get_sub_rtx.
32566 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
32568         * cgraph.h (varpool_variable_node): Do not choke on null node.
32570 2014-01-08  Catherine Moore  <clm@codesourcery.com>
32572         * config/mips/mips.md (simple_return): Attempt to use JRC
32573         for microMIPS.
32574         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
32576 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
32578         PR rtl-optimization/59137
32579         * reorg.c (steal_delay_list_from_target): Call update_block for
32580         elided insns.
32581         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
32583 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32585         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
32586         two duplicate entries.
32588 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
32590         Revert:
32591         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
32593         * config/mips/mips.c (mips_truncated_op_cost): New function.
32594         (mips_rtx_costs): Adjust test for BADDU.
32595         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
32597         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
32599         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
32600         (*baddu_si): ...this new pattern.
32602 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
32604         PR ipa/59722
32605         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
32607 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32609         PR middle-end/57748
32610         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
32611         inner_reference_p.
32612         (expand_expr, expand_normal): Adjust.
32613         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
32614         inner_reference_p. Use inner_reference_p to expand inner references.
32615         (store_expr): Adjust.
32616         * cfgexpand.c (expand_call_stmt): Adjust.
32618 2014-01-08  Rong Xu  <xur@google.com>
32620         * gcov-io.c (gcov_var): Move from gcov-io.h.
32621         (gcov_position): Ditto.
32622         (gcov_is_error): Ditto.
32623         (gcov_rewrite): Ditto.
32624         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
32625         only part to libgcc/libgcov.h.
32627 2014-01-08  Marek Polacek  <polacek@redhat.com>
32629         PR middle-end/59669
32630         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
32632 2014-01-08  Marek Polacek  <polacek@redhat.com>
32634         PR sanitizer/59667
32635         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
32637 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
32639         PR rtl-optimization/59649
32640         * stor-layout.c (get_mode_bounds): For BImode return
32641         0 and STORE_FLAG_VALUE.
32643 2014-01-08  Richard Biener  <rguenther@suse.de>
32645         PR middle-end/59630
32646         * gimple.h (is_gimple_builtin_call): Remove.
32647         (gimple_builtin_call_types_compatible_p): New.
32648         (gimple_call_builtin_p): New overload.
32649         * gimple.c (is_gimple_builtin_call): Remove.
32650         (validate_call): Rename to ...
32651         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
32652         check return types.
32653         (validate_type): New static function.
32654         (gimple_call_builtin_p): New overload and adjust.
32655         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
32656         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
32657         (gimple_fold_stmt_to_constant_1): Likewise.
32658         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
32660 2014-01-08  Richard Biener  <rguenther@suse.de>
32662         PR middle-end/59471
32663         * gimplify.c (gimplify_expr): Gimplify register-register type
32664         VIEW_CONVERT_EXPRs to separate stmts.
32666 2014-01-07  Jeff Law  <law@redhat.com>
32668         PR middle-end/53623
32669         * ree.c (combine_set_extension): Handle case where source
32670         and destination registers in an extension insn are different.
32671         (combine_reaching_defs): Allow source and destination registers
32672         in extension to be different under limited circumstances.
32673         (add_removable_extension): Remove restriction that the
32674         source and destination registers in the extension are the same.
32675         (find_and_remove_re): Emit a copy from the extension's
32676         destination to its source after the defining insn if
32677         the source and destination registers are different.
32679         PR middle-end/59285
32680         * ifcvt.c (merge_if_block): If we are merging a block with more than
32681         one successor with a block with no successors, remove any BARRIER
32682         after the second block.
32684 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
32686         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
32688 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
32690         PR target/59652
32691         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
32692         for 14-bit register offsets when INT14_OK_STRICT is false.
32694 2014-01-07  Roland Stigge  <stigge@antcom.de>
32695             Michael Meissner  <meissner@linux.vnet.ibm.com>
32697         PR 57386/target
32698         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
32699         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
32701 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
32703         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
32704         -mcpu.
32706 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
32708         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
32709         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
32710         rtx is const0_rtx or not.
32712 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
32714         PR target/58115
32715         * target-globals.c (save_target_globals): Remove this_fn_optab
32716         handling.
32717         * toplev.c: Include optabs.h.
32718         (target_reinit): Temporarily restore the global options if another
32719         set of options are in force.
32721 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
32723         PR rtl-optimization/58668
32724         * cfgcleanup.c (flow_find_cross_jump): Don't count
32725         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
32726         to determine what is counted.
32727         (flow_find_head_matching_sequence): Use active_insn_p to determine
32728         what is counted.
32729         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
32730         counting change.
32731         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
32732         determine what is counted.
32734         PR tree-optimization/59643
32735         * tree-predcom.c (split_data_refs_to_components): If one dr is
32736         read and one write, determine_offset fails and the write isn't
32737         in the bad component, just put the read into the bad component.
32739 2014-01-07  Mike Stump  <mikestump@comcast.net>
32740             Jakub Jelinek  <jakub@redhat.com>
32742         PR pch/59436
32743         * tree-core.h (struct tree_optimization_option): Change optabs
32744         type from unsigned char * to void *.
32745         * optabs.c (init_tree_optimization_optabs): Adjust
32746         TREE_OPTIMIZATION_OPTABS initialization.
32748 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
32750         PR target/59644
32751         * config/i386/i386.h (struct machine_function): Add
32752         no_drap_save_restore field.
32753         * config/i386/i386.c (ix86_save_reg): Use
32754         !cfun->machine->no_drap_save_restore instead of
32755         crtl->stack_realign_needed.
32756         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
32757         this function clears frame_pointer_needed.  Set
32758         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
32759         and DRAP reg is needed.
32761 2014-01-06  Marek Polacek  <polacek@redhat.com>
32763         PR c/57773
32764         * doc/implement-c.texi: Mention that other integer types are
32765         permitted as bit-field types in strictly conforming mode.
32767 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
32769         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
32770         is newly allocated.
32772 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
32774         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
32776 2014-01-06  Martin Jambor  <mjambor@suse.cz>
32778         PR ipa/59008
32779         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
32780         to int.
32781         * ipa-prop.c (ipa_print_node_params): Fix indentation.
32783 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
32785         PR debug/59350
32786         PR debug/59510
32787         * var-tracking.c (add_stores): Preserve the value of the source even if
32788         we don't record the store.
32790 2014-01-06  Terry Guo  <terry.guo@arm.com>
32792         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
32794 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
32796         PR bootstrap/59541
32797         * config/darwin.c (darwin_function_section): Adjust return values to
32798         correspond to optimisation changes made in r206070.
32800 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
32802         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
32803         from prefetch_block tune setting.
32804         (nocona_cost): Correct size of prefetch block to 64.
32806 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32808         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
32809         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
32810         used to save the static chain register in the computation of the offset
32811         from which the FP registers need to be restored.
32813 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
32815         PR tree-optimization/59519
32816         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
32817         ICE if get_current_def (current_new_name) is already non-NULL, as long
32818         as it is a phi result of some other phi in *new_exit_bb that has
32819         the same argument.
32821         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
32822         or vmovdqu* for misaligned_operand.
32823         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
32824         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
32825         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
32826         aligned_mem for AVX512F masked aligned load and store builtins and for
32827         non-temporal moves.
32829 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
32831         PR tree-optimization/59651
32832         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32833         Address range for negative step should be added by TYPE_SIZE_UNIT.
32835 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
32837         * config/m68k/m68k.c (handle_move_double): Handle pushes with
32838         overlapping registers also for registers other than the stack pointer.
32840 2014-01-03  Marek Polacek  <polacek@redhat.com>
32842         PR other/59661
32843         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
32844         __builtin_FILE.
32846 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
32848         PR target/59625
32849         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
32850         asm goto as jump.
32852         * config/i386/i386.md (MODE_SIZE): New mode attribute.
32853         (push splitter): Use <P:MODE_SIZE> instead of
32854         GET_MODE_SIZE (<P:MODE>mode).
32855         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
32856         (mov -1, reg peephole2): Likewise.
32857         * config/i386/sse.md (*mov<mode>_internal,
32858         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
32859         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
32860         *<code><mode>3, *andnot<mode>3<mask_name>,
32861         <mask_codefor><code><mode>3<mask_name>): Likewise.
32862         * config/i386/subst.md (mask_mode512bit_condition,
32863         sd_mask_mode512bit_condition): Likewise.
32865 2014-01-02  Xinliang David Li  <davidxl@google.com>
32867         PR tree-optimization/59303
32868         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
32869         (dump_predicates): Better output format.
32870         (pred_equal_p): New function.
32871         (is_neq_relop_p): Ditto.
32872         (is_neq_zero_form_p): Ditto.
32873         (pred_expr_equal_p): Ditto.
32874         (pred_neg_p): Ditto.
32875         (simplify_pred): Ditto.
32876         (simplify_preds_2): Ditto.
32877         (simplify_preds_3): Ditto.
32878         (simplify_preds_4): Ditto.
32879         (simplify_preds): Ditto.
32880         (push_pred): Ditto.
32881         (push_to_worklist): Ditto.
32882         (get_pred_info_from_cmp): Ditto.
32883         (is_degenerated_phi): Ditto.
32884         (normalize_one_pred_1): Ditto.
32885         (normalize_one_pred): Ditto.
32886         (normalize_one_pred_chain): Ditto.
32887         (normalize_preds): Ditto.
32888         (normalize_cond_1): Remove function.
32889         (normalize_cond): Ditto.
32890         (is_gcond_subset_of): Ditto.
32891         (is_subset_of_any): Ditto.
32892         (is_or_set_subset_of): Ditto.
32893         (is_and_set_subset_of): Ditto.
32894         (is_norm_cond_subset_of): Ditto.
32895         (pred_chain_length_cmp): Ditto.
32896         (convert_control_dep_chain_into_preds): Type change.
32897         (find_predicates): Ditto.
32898         (find_def_preds): Ditto.
32899         (destroy_predicates_vecs): Ditto.
32900         (find_matching_predicates_in_rest_chains): Ditto.
32901         (use_pred_not_overlap_with_undef_path_pred): Ditto.
32902         (is_pred_expr_subset): Ditto.
32903         (is_pred_chain_subset_of): Ditto.
32904         (is_included_in): Ditto.
32905         (is_superset_of): Ditto.
32907 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
32909         Update copyright years.
32911 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
32913         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
32914         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
32915         config/arc/arc.md, config/arc/arc.opt,
32916         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
32917         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
32918         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
32919         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
32920         config/linux-protos.h, config/linux.c, config/winnt-c.c,
32921         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
32922         vtable-verify.c, vtable-verify.h: Use the standard form for the
32923         copyright notice.
32925 2014-01-02  Tobias Burnus  <burnus@net-b.de>
32927         * gcc.c (process_command): Update copyright notice dates.
32928         * gcov-dump.c: Ditto.
32929         * gcov.c: Ditto.
32930         * doc/cpp.texi: Bump @copying's copyright year.
32931         * doc/cppinternals.texi: Ditto.
32932         * doc/gcc.texi: Ditto.
32933         * doc/gccint.texi: Ditto.
32934         * doc/gcov.texi: Ditto.
32935         * doc/install.texi: Ditto.
32936         * doc/invoke.texi: Ditto.
32938 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32940         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
32942 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
32944         * config/i386/sse.md (*mov<mode>_internal): Guard
32945         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
32947         PR rtl-optimization/59647
32948         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
32949         new_rtx into UNSIGNED_FLOAT rtxes.
32951 Copyright (C) 2014 Free Software Foundation, Inc.
32953 Copying and distribution of this file, with or without modification,
32954 are permitted in any medium without royalty provided the copyright
32955 notice and this notice are preserved.