1 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
3 * gcc.c (try_generate_repro): Remove argument "prog". Change all
5 (run_attempt): Handle errors of "pex_run" invocation.
7 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
9 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
11 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
12 (TARGET_ASAN_SHADOW_OFFSET): Define.
14 2014-09-26 Martin Liska <mliska@suse.cz>
16 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
19 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
20 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
21 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
22 * tree-ssa-alias.h: Likewise.
24 2014-09-26 Jakub Jelinek <jakub@redhat.com>
25 Max Ostapenko <m.ostapenko@partner.samsung.com>
27 * common.opt: New option.
28 * doc/invoke.texi: Describe new option.
29 * gcc.c (execute): Don't free first string early, but at the end
30 of the function. Call retry_ice if compiler exited with
32 (main): Factor out common code.
33 (print_configuration): New function.
34 (files_equal_p): Likewise.
35 (check_repro): Likewise.
36 (run_attempt): Likewise.
37 (do_report_bug): Likewise.
38 (append_text): Likewise.
39 (try_generate_repro): Likewise
41 2014-09-25 Andi Kleen <ak@linux.intel.com>
43 * config/i386/i386.c (x86_print_call_or_nop): New function.
44 (x86_function_profiler): Support -mnop-mcount and
46 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
47 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
49 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
51 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
52 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
53 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
56 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
58 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
59 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
60 types_odr_comparable): Declare.
61 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
62 * ipa-polymorphic-call.c: New file.
63 (contains_polymorphic_type_p, possible_placement_new,
64 ipa_polymorphic_call_context::restrict_to_inner_class,
65 contains_type_p, decl_maybe_in_construction_p,
66 ipa_polymorphic_call_context::stream_out,
67 ipa_polymorphic_call_context::debug,
68 ipa_polymorphic_call_context::stream_in,
69 ipa_polymorphic_call_context::set_by_decl,
70 ipa_polymorphic_call_context::set_by_invariant,
72 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
73 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
74 extr_type_from_vtbl_ptr_store, record_known_type
75 check_stmt_for_type_change,
76 ipa_polymorphic_call_context::get_dynamic_type): Move here from
78 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
80 (contains_polymorphic_type_p, possible_placement_new,
81 ipa_polymorphic_call_context::restrict_to_inner_class,
82 contains_type_p, decl_maybe_in_construction_p,
83 ipa_polymorphic_call_context::stream_out,
84 ipa_polymorphic_call_context::debug,
85 ipa_polymorphic_call_context::stream_in,
86 ipa_polymorphic_call_context::set_by_decl,
87 ipa_polymorphic_call_context::set_by_invariant,
89 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
90 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
91 extr_type_from_vtbl_ptr_store, record_known_type
92 check_stmt_for_type_change,
93 ipa_polymorphic_call_context::get_dynamic_type): Move to
94 ipa-polymorphic-call.c
95 (type_all_derivations_known_p, types_odr_comparable,
96 types_must_be_same_for_odr): Export.
97 (type_known_to_have_no_deriavations_p): New function.
98 * Makefile.in: Add ipa-polymorphic-call.c
100 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
102 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
104 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
105 (possible_polymorphic_call_targets): Instead of computing both
106 speculative and non-speculative answers, do just one at a time.
107 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
108 (dump_targets): Break out from ...
109 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
110 and non-speculative lists.
111 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
112 * ipa-utils.h (possible_polymorphic_call_targets): Update.
114 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
116 PR rtl-optimization/63348
117 * emit-rtl.c (try_split): Do not emit extra barrier.
119 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
121 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
122 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
124 (aarch64_<sur>shll2_n<mode>): Likewise.
125 (aarch64_<sur>shr_n<mode>): Likewise.
126 (aarch64_<sur>sra_n<mode>: Likewise.
127 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
128 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
129 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
130 * config/aarch64/iterators.md (ve_mode): New.
131 (offsetlr): Remap to infix text for use in new predicates.
132 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
133 (aarch64_simd_shift_imm_hi): Likewise.
134 (aarch64_simd_shift_imm_si): Likewise.
135 (aarch64_simd_shift_imm_di): Likewise.
136 (aarch64_simd_shift_imm_offset_qi): Likewise.
137 (aarch64_simd_shift_imm_offset_hi): Likewise.
138 (aarch64_simd_shift_imm_offset_si): Likewise.
139 (aarch64_simd_shift_imm_offset_di): Likewise.
140 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
141 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
142 (aarch64_simd_shift_imm_bitsize_si): Likewise.
143 (aarch64_simd_shift_imm_bitsize_di): Likewise.
145 2014-09-25 Jiong Wang <jiong.wang@arm.com>
147 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
148 new created BB as the intersection of live-in from "old_dest" and
151 2014-09-25 Felix Yang <felix.yang@huawei.com>
153 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
154 * genautomata.c (merge_states): Ditto.
156 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
159 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
160 in instruction sequence.
162 2014-09-25 Nick Clifton <nickc@redhat.com>
165 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
166 in instruction sequence.
168 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
171 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
172 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
174 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
175 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
176 Anna Tikhonova <anna.tikhonova@intel.com>
177 Ilya Tocar <ilya.tocar@intel.com>
178 Andrey Turetskiy <andrey.turetskiy@intel.com>
179 Ilya Verbin <ilya.verbin@intel.com>
180 Kirill Yukhin <kirill.yukhin@intel.com>
181 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
184 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
185 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
186 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
187 (define_expand "<avx512>_perm<mode>_mask"): ... this.
188 Use VI8F_256_512 mode iterator.
189 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
190 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
192 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
193 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
194 Anna Tikhonova <anna.tikhonova@intel.com>
195 Ilya Tocar <ilya.tocar@intel.com>
196 Andrey Turetskiy <andrey.turetskiy@intel.com>
197 Ilya Verbin <ilya.verbin@intel.com>
198 Kirill Yukhin <kirill.yukhin@intel.com>
199 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
202 (define_insn "avx_movshdup256<mask_name>"): Add masking.
203 (define_insn "sse3_movshdup<mask_name>"): Ditto.
204 (define_insn "avx_movsldup256<mask_name>"): Ditto.
205 (define_insn "sse3_movsldup<mask_name>"): Ditto.
206 (define_insn "vec_dupv2df<mask_name>"): Ditto.
207 (define_insn "*vec_concatv2df"): Add EVEX version.
209 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
210 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
211 Anna Tikhonova <anna.tikhonova@intel.com>
212 Ilya Tocar <ilya.tocar@intel.com>
213 Andrey Turetskiy <andrey.turetskiy@intel.com>
214 Ilya Verbin <ilya.verbin@intel.com>
215 Kirill Yukhin <kirill.yukhin@intel.com>
216 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
219 (define_insn "vec_set<mode>_0"): Add EVEX version.
221 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
222 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
223 Anna Tikhonova <anna.tikhonova@intel.com>
224 Ilya Tocar <ilya.tocar@intel.com>
225 Andrey Turetskiy <andrey.turetskiy@intel.com>
226 Ilya Verbin <ilya.verbin@intel.com>
227 Kirill Yukhin <kirill.yukhin@intel.com>
228 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
232 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
234 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
235 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
236 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
237 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
238 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
239 (define_expand "sse2_cvtpd2ps_mask): New.
240 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
241 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
243 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
244 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
245 Anna Tikhonova <anna.tikhonova@intel.com>
246 Ilya Tocar <ilya.tocar@intel.com>
247 Andrey Turetskiy <andrey.turetskiy@intel.com>
248 Ilya Verbin <ilya.verbin@intel.com>
249 Kirill Yukhin <kirill.yukhin@intel.com>
250 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
253 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
254 (ufix_notruncv8dfv8si2_mask_round): ... this.
256 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
257 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
258 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
259 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
260 (define_expand "sse2_cvtpd2dq"): Delete.
261 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
262 make 2nd operand const0 vector.
263 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
265 (define_mode_attr pd2udqsuff): New.
267 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
268 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
269 (define_insn "*avx_cvttpd2dq256_2"): Delete.
270 (define_expand "sse2_cvttpd2dq"): Ditto.
271 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
272 make 2nd operand const0 vector.
274 2014-09-25 Jakub Jelinek <jakub@redhat.com>
276 PR tree-optimization/63341
277 * tree-vectorizer.h (vect_create_data_ref_ptr,
278 vect_create_addr_base_for_vector_ref): Add another tree argument
279 defaulting to NULL_TREE.
280 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
281 argument, pass it down to vect_create_addr_base_for_vector_ref.
282 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
283 add that to base_offset too if non-NULL.
284 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
285 for dr_explicit_realign_optimized set it to vector byte size
286 - 1 instead of setting offset, pass byte_offset down to
287 vect_create_data_ref_ptr.
289 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
291 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
292 forgotten debug output; canonicalize querries more wtih LTO.
294 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
296 * cgraph.h (class ipa_polymorphic_call_context): Move here from
297 ipa-utils.h; add stream_int and stream_out methods.
298 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
299 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
300 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
302 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
303 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
304 ipa_polymorphic_call_context::clear_speculation,
305 ipa_polymorphic_call_context::clear_outer_type): Move here from
307 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
308 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
309 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
310 ipa_polymorphic_call_context::clear_speculation,
311 ipa_polymorphic_call_context::clear_outer_type): Likewise.
312 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
314 (ipa_polymorphic_call_context::stream_out): New method.
315 (ipa_polymorphic_call_context::stream_in): New method.
316 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
317 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
319 (ipa_analyze_call_uses): Simplify.
320 (update_indirect_edges_after_inlining): Do not care about outer_type.
321 (ipa_write_indirect_edge_info): Update.
322 (ipa_write_indirect_edge_info): Likewise.
323 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
324 (dump_edge_flags): Break out from ...
325 (cgraph_node::dump): ... here; dump indirect edges.
327 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
329 * ipa-utils.h (polymorphic_call_context): Add
330 metdhos dump, debug and clear_outer_type.
331 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
332 (ipa_polymorphic_call_context::clear_outer_type): New method.
333 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
334 * ipa-devirt.c (types_odr_comparable): New function.
335 (types_must_be_same_for_odr): New function.
336 (odr_subtypes_equivalent_p): Simplify.
337 (possible_placement_new): Break out from ...
338 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
339 be more cuatious about returning false in cases the context may be
340 valid in derived type or via placement new.
341 (contains_type_p): Clear maybe_derived_type
342 (ipa_polymorphic_call_context::dump): New method.
343 (ipa_polymorphic_call_context::debug): New method.
344 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
345 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
346 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
347 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
348 to suceed on all valid cases; remove confused sanity check.
349 (dump_possible_polymorphic_call_targets): Simplify.
351 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
353 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
354 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
355 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
356 varpool.c: Rename all instances of DECL_ABSTRACT to
359 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
361 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
362 special handling for stores whose SET_SRC is an UNSPEC (such as
365 2014-09-24 Jiong Wang <jiong.wang@arm.com>
367 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
368 !REG_P (src) to release more instruction sink opportunities.
370 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
372 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
373 move costs for 128-bit types.
375 2014-09-24 Martin Jambor <mjambor@suse.cz>
377 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
378 when duplicating a PASS_THROUGH jump function when creating a
381 2014-09-24 Marek Polacek <polacek@redhat.com>
385 * asan.c (maybe_instrument_call): Add default case.
386 * ipa-pure-const.c (special_builtin_state): Likewise.
387 * predict.c (expr_expected_value_1): Likewise.
388 * lto-streamer-out.c (write_symbol): Initialize variable.
390 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
392 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
394 (vmuld_laneq_f64): Likewise.
395 (vmuls_lane_f32): Likewise.
396 (vmuls_laneq_f32): Likewise.
398 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
401 * varpool.c (varpool_node::add): Pass decl attributes
404 2014-09-24 Jakub Jelinek <jakub@redhat.com>
407 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
409 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
411 PR tree-optimization/63266
412 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
413 marker for unknown byte value.
414 (MARKER_MASK): New macro.
415 (MARKER_BYTE_UNKNOWN): New macro.
416 (HEAD_MARKER): New macro.
417 (do_shift_rotate): Mark bytes with unknown values due to sign
418 extension when doing an arithmetic right shift. Replace hardcoded
419 mask for marker by new MARKER_MASK macro.
420 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
423 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
425 Anna Tikhonova <anna.tikhonova@intel.com>
426 Ilya Tocar <ilya.tocar@intel.com>
427 Andrey Turetskiy <andrey.turetskiy@intel.com>
428 Ilya Verbin <ilya.verbin@intel.com>
429 Kirill Yukhin <kirill.yukhin@intel.com>
430 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
434 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
436 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
437 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
439 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
440 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
441 Anna Tikhonova <anna.tikhonova@intel.com>
442 Ilya Tocar <ilya.tocar@intel.com>
443 Andrey Turetskiy <andrey.turetskiy@intel.com>
444 Ilya Verbin <ilya.verbin@intel.com>
445 Kirill Yukhin <kirill.yukhin@intel.com>
446 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
449 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
450 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
451 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
452 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
453 (define_expand "avx512vl_pshuflw_mask"): New.
454 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
455 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
456 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
457 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
458 (define_expand "avx512vl_pshufhw_mask"): New.
459 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
461 2014-09-24 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>
471 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
472 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
473 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
474 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
475 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
477 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
479 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
480 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
482 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
483 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
484 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
485 (define_expand "avx512vl_pshufd_mask"): New.
486 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
488 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
489 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
490 Anna Tikhonova <anna.tikhonova@intel.com>
491 Ilya Tocar <ilya.tocar@intel.com>
492 Andrey Turetskiy <andrey.turetskiy@intel.com>
493 Ilya Verbin <ilya.verbin@intel.com>
494 Kirill Yukhin <kirill.yukhin@intel.com>
495 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
498 (CODE_FOR_avx2_extracti128): Rename to ...
499 (CODE_FOR_avx_vextractf128v4di): this.
500 (CODE_FOR_avx2_inserti128): Rename to ...
501 (CODE_FOR_avx_vinsertf128v4di): this.
502 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
503 CODE_FOR_avx_vextractf128v4di.
504 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
505 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
506 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
507 CODE_FOR_avx512vl_vinsertv8si.
510 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
511 AVX512_VEC mode iterator.
513 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
516 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
517 AVX512_VEC_2 mode iterator.
518 (define_insn "vec_set_lo_<mode><mask_name>"): New.
519 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
520 (define_expand "avx512vl_vinsert<mode>"): Ditto.
521 (define_insn "avx2_vec_set_lo_v4di"): Delete.
522 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
523 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
524 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
525 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
526 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
527 (define_expand "avx2_extracti128"): Delete.
528 (define_expand "avx2_inserti128"): Ditto.
530 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
531 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
532 Anna Tikhonova <anna.tikhonova@intel.com>
533 Ilya Tocar <ilya.tocar@intel.com>
534 Andrey Turetskiy <andrey.turetskiy@intel.com>
535 Ilya Verbin <ilya.verbin@intel.com>
536 Kirill Yukhin <kirill.yukhin@intel.com>
537 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
540 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
541 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
542 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
543 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
544 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
545 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
546 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
547 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
548 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
549 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
550 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
551 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
552 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
554 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
556 PR rtl-optimization/63210
557 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
558 HARD_REGNO is not available for CONFLICT_A.
560 2014-09-23 Andi Kleen <ak@linux.intel.com>
562 * cgraph.h (symtab_node): Add no_reorder attribute.
563 (symbol_table::output_asm_statements): Remove.
564 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
565 (cgraph_node::create_version_clone): Dito.
566 (symbol_table::output_asm_statements): Remove.
567 * trans-mem.c (ipa_tm_create_version_alias): Dito.
568 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
569 (output_in_order): Add no_reorder flag. Only handle no_reorder
571 (symbol_table::compile): Add separate pass for no_reorder nodes.
572 (process_common_attributes): Set no_reorder flag in symtab node.
574 (process_function_and_variable_attributes): Pass symtab nodes to
575 process_common_attributes.
576 * doc/extend.texi (no_reorder): Document no_reorder attribute.
577 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
578 (lto_output_varpool_node): Dito.
579 (input_overwrite_node): Dito.
580 (input_varpool_node): Dito.
581 * varpool.c (varpool_node::add): Set no_reorder attribute.
582 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
583 (symbol_table::output_variables): Dito.
584 * symtab.c (symtab_node::dump_base): Print no_reorder.
586 2014-09-23 Jiong Wang <jiong.wang@arm.com>
588 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
591 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
593 * configure: Regenerate.
595 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
597 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
598 when result_mode == shift_mode.
600 2014-09-23 Kostya Serebryany <kcc@google.com>
602 Update to match the changed asan API.
603 * asan.c (asan_global_struct): Update the __asan_global definition
604 to match the new API.
605 (asan_add_global): Ditto.
606 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
609 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
611 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
612 refine the constraints used on 32/64-bit floating point moves.
617 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
618 (BOOL_REGS_OP1): Likewise.
619 (BOOL_REGS_OP2): Likewise.
620 (BOOL_REGS_UNARY): Likewise.
621 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
622 32/64-bit floating point moves. Do not use wa, instead use ww/ws
623 for moves involving VSX registers. Do not use constraints that
624 target VSX registers for decimal types.
625 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
626 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
628 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
630 * tree.h (int_bit_position): Turn into inline function;
631 implement using wide int.
632 * tree.c (int_bit_position): Remove.
634 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
637 * target-globals.c (target_globals::~target_globals): Fix location
638 of ira_int destruction.
640 2014-09-23 Renlin Li <renlin.li@arm.com>
642 * config/aarch64/aarch64.md (return): New.
643 (simple_return): Likewise.
644 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
645 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
647 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
649 * common/config/aarch64/aarch64-common.c:
650 (default_options aarch_option_optimization_table):
651 Default to -fsched-pressure.
653 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
655 * cfgcleanup.c (try_optimize_cfg): Do not remove label
656 with LABEL_PRESERVE_P flag set.
658 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
660 Anna Tikhonova <anna.tikhonova@intel.com>
661 Ilya Tocar <ilya.tocar@intel.com>
662 Andrey Turetskiy <andrey.turetskiy@intel.com>
663 Ilya Verbin <ilya.verbin@intel.com>
664 Kirill Yukhin <kirill.yukhin@intel.com>
665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
668 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
669 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
670 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
671 (define_insn "sse2_shufpd_v2df_mask"): New.
673 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
674 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
675 Anna Tikhonova <anna.tikhonova@intel.com>
676 Ilya Tocar <ilya.tocar@intel.com>
677 Andrey Turetskiy <andrey.turetskiy@intel.com>
678 Ilya Verbin <ilya.verbin@intel.com>
679 Kirill Yukhin <kirill.yukhin@intel.com>
680 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
683 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
684 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
685 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
686 (define_insn "sse_shufps_v4sf_mask"): New.
688 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
689 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
690 Anna Tikhonova <anna.tikhonova@intel.com>
691 Ilya Tocar <ilya.tocar@intel.com>
692 Andrey Turetskiy <andrey.turetskiy@intel.com>
693 Ilya Verbin <ilya.verbin@intel.com>
694 Kirill Yukhin <kirill.yukhin@intel.com>
695 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
698 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
699 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
700 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
701 (define_insn "unpcklps128_mask"): New.
703 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
705 Anna Tikhonova <anna.tikhonova@intel.com>
706 Ilya Tocar <ilya.tocar@intel.com>
707 Andrey Turetskiy <andrey.turetskiy@intel.com>
708 Ilya Verbin <ilya.verbin@intel.com>
709 Kirill Yukhin <kirill.yukhin@intel.com>
710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
713 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
714 (define_insn "avx512vl_unpckhpd128_mask"): New.
715 (define_expand "avx_movddup256<mask_name>"): Add masking.
716 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
717 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
718 (define_insn "avx512vl_unpcklpd128_mask"): New.
720 2014-09-22 Joseph Myers <joseph@codesourcery.com>
722 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
723 * doc/tm.texi: Regenerate.
724 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
725 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
726 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
728 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
729 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
730 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
731 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
732 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
734 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
735 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
736 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
737 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
738 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
739 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
740 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
741 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
742 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
743 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
744 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
747 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
749 * tree-ssa-ccp.c (prop_value_d): Rename to ...
750 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
751 * ipa-prop.c (struct type_change_info): Rename to ...
752 (prop_type_change_info): ... this; update uses.
753 * ggc-page.c (globals): Rename to ...
754 (static struct ggc_globals): ... this; update uses.
755 * tree-ssa-loop-im.c (mem_ref): Rename to ...
756 (im_mem_ref): ... this; update uses.
757 * ggc-common.c (loc_descriptor): Rename to ...
758 (ggc_loc_descriptor): ... this; update uses.
759 * lra-eliminations.c (elim_table): Rename to ...
760 (lra_elim_table): ... this; update uses.
761 * bitmap.c (output_info): Rename to ...
762 (bitmap_output_info): ... this; update uses.
763 * gcse.c (expr): Rename to ...
764 (gcse_expr) ... this; update uses.
765 (occr): Rename to ...
766 (gcse_occr): .. this; update uses.
767 * tree-ssa-copy.c (prop_value_d): Rename to ...
768 (prop_value_t): ... this.
769 * predict.c (block_info_def): Rename to ...
770 (block_info): ... this; update uses.
771 (edge_info_def): Rename to ...
772 (edge_info): ... this; update uses.
773 * profile.c (bb_info): Rename to ...
774 (bb_profile_info): ... this; update uses.
775 * alloc-pool.c (output_info): Rename to ...
776 (pool_output_info): ... this; update uses.
777 * ipa-cp.c (topo_info): Rename to ..
778 (ipa_topo_info): ... this; update uses.
779 * tree-nrv.c (nrv_data): Rename to ...
780 (nrv_data_t): ... this; update uses.
781 * ipa-split.c (bb_info): Rename to ...
782 (split_bb_info): ... this one.
783 * profile.h (edge_info): Rename to ...
784 (edge_profile_info): ... this one; update uses.
785 * dse.c (bb_info): Rename to ...
786 (dse_bb_info): ... this one; update uses.
787 * cprop.c (occr): Rename to ...
788 (cprop_occr): ... this one; update uses.
789 (expr): Rename to ...
790 (cprop_expr): ... this one; update uses.
792 2014-09-22 Jason Merrill <jason@redhat.com>
794 * Makefile.in (check-parallel-%): Add @.
796 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
798 * config/aarch64/geniterators.sh: New.
799 * config/aarch64/iterators.md (VDQF_DF): New.
800 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
801 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
803 2014-09-22 Peter A. Bigot <pab@pabigot.com>
805 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
806 -lnosys when -msim absent.
808 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
810 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
812 2014-09-22 Richard Biener <rguenther@suse.de>
814 * gimplify.c (gimplify_init_constructor): Do not leave
815 non-GIMPLE vector constructors around.
816 * tree-cfg.c (verify_gimple_assign_single): Verify that
817 CONSTRUCTORs have gimple elements.
819 2014-09-22 Jakub Jelinek <jakub@redhat.com>
822 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
823 insert a debug source bind stmt setting DEBUG_EXPR_DECL
824 instead of a normal gimple assignment stmt.
826 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
828 * config/bfin/bfin.md: Fix use of constraints in define_split.
830 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
832 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
833 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
835 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
837 * hard-reg-set.h: Include hash-table.h.
838 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
840 * target-globals.c (target_globals::~target_globals): Call
842 * rtl.h (subreg_shape): New structure.
843 (shape_of_subreg): New function.
844 (simplifiable_subregs): Declare.
845 * reginfo.c (simplifiable_subreg): New structure.
846 (simplifiable_subregs_hasher): Likewise.
847 (simplifiable_subregs): New function.
848 (invalid_mode_changes): Delete.
849 (alid_mode_changes, valid_mode_changes_obstack): New variables.
850 (record_subregs_of_mode): Remove subregs_of_mode parameter.
851 Record valid mode changes in valid_mode_changes.
852 (find_subregs_of_mode): Remove subregs_of_mode parameter.
853 Update calls to record_subregs_of_mode.
854 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
855 handling. Initialize new variables. Update call to
856 find_subregs_of_mode.
857 (invalid_mode_change_p): Check new variables instead of
858 invalid_mode_changes.
859 (finish_subregs_of_mode): Finalize new variables instead of
860 invalid_mode_changes.
861 (target_hard_regs::finalize): New function.
862 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
863 even when CLASS_CANNOT_CHANGE_MODE is undefined.
865 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
867 * combine.c (subst): Use simplify_subreg_regno rather than
868 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
870 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
872 * rtl.h (subreg_info): Expand commentary
873 * rtlanal.c (subreg_get_info): Likewise.
875 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
877 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
878 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
879 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
881 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
883 * config/arm/arm.c: #include "tm-constrs.h"
884 (thumb1_size_rtx_costs): Adjust rtx costs.
886 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
888 * configure.ac (target_header_dir): Move block defining
889 this to before the block setting inhibit_libc.
890 (inhibit_libc): When considering $with_headers, just
891 check it it's explicitly "no". If not, also check if
892 $target_header_dir/stdio.h is present. If not, set
894 * configure: Regenerate.
896 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
898 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
900 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
902 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
903 insn for divides by integer powers of two.
904 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
905 (mod<mode>3): Fix formatting.
906 (three anonymous define_insn and two define_split): Delete.
908 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
910 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
911 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
912 (floatdisf2_internal2): Ditto.
913 (ashrdi3_no_power): Ditto. Fix formatting.
915 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
917 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
918 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
921 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
923 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
924 constant, use addsi3 directly.
925 (three anonymous define_insn, two define_split): Delete.
926 (sub<mode>3): Move. Do not allow constant second operand.
927 Generate different insn for constant first operand.
928 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
929 (subf<mode>3_imm): New.
930 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
931 (*plus_ltu<mode>): Only handle registers.
932 (*plus_ltu<mode>_1): New. Handle integer third operand.
933 (*plus_gtu<mode>): Only handle registers.
934 (*plus_gtu<mode>_1): New. Handle integer third operand.
936 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
938 * config/rs6000/rs6000.md (iorxor): New code_iterator.
939 (iorxor): New code_attr.
940 (IORXOR): New code_attr.
941 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
942 (ior<mode>3, xor<mode>3): Delete.
943 (<iorxor><mode>3): New.
944 (splitter for "big" integer ior, xor): New.
945 (*bool<mode>3): Move. Also handle AND.
946 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
947 (splitter for "big" integer ior, xor): Delete.
949 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
951 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
952 (two anonymous define_insn and two define_split): Delete.
953 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
955 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
957 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
958 (two anonymous define_insn and two define_split): Delete.
959 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
961 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
963 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
965 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
967 * config/rs6000/predicates.md (ca_operand): Allow subregs.
968 (input_operand): Do not allow ca_operand.
969 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
970 carry bit, allow SImode and Pmode.
971 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
973 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
975 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
976 clobbered registers using clobber_reg. Remove UNSPEC decoration.
977 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
978 (*call_rex64_ms_sysv): Remove.
979 (*call_value_rex64_ms_sysv): Ditto.
980 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
982 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
984 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
987 2014-09-20 Andreas Schwab <schwab@suse.de>
989 * config/ia64/ia64.md: Remove constraints from define_split
992 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
994 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
995 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
996 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
997 (get_dynamic_type): Remove.
998 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
999 (clear_speculation): Bring to ipa-deivrt.h
1000 (get_class_context): Rename to ...
1001 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1002 (contains_type_p): Update.
1003 (get_dynamic_type): Rename to ...
1004 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1005 (possible_polymorphic_call_targets): UPdate.
1006 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1007 * ipa-prop.c (ipa_analyze_call_uses): Update.
1009 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1011 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1012 privatize dynamic TLS variables.
1014 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1016 * diagnostic.c (warning_n): New function.
1017 * diagnostic-core.h (warning_n): Declare.
1018 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1019 output dynamic counts when available.
1021 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1023 PR tree-optimization/63255
1024 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
1025 issue in setting body_removed flag.
1027 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1030 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
1031 that visibility change is possible
1032 (handle_weakref_attribute): Likewise.
1033 * cgraph.h (symtab_node): Add method get_create and
1034 field refuse_visibility_changes.
1035 (symtab_node::get_create): New method.
1036 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
1037 * varasm.c (mark_weak): Verify that visibility change is
1040 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
1042 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
1043 for base_reg_operand to be common between LO_SUM and PLUS.
1044 (fusion_gpr_mem_combo): New predicate to match a fused address
1045 that combines the addis and memory offset address.
1047 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
1049 (emit_fusion_gpr_load): Likewise.
1051 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
1052 signature to pass each argument separately, rather than
1053 using an operands array. Rewrite the insns found by peephole2 to
1054 be a single insn, rather than hoping the insns will still be
1055 together when the peephole pass is done. Drop being called via a
1057 (emit_fusion_gpr_load): Change calling signature to be called from
1058 the fusion_gpr_load_<mode> insns with a combined memory address
1059 instead of the peephole pass passing the addis and offset
1062 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
1064 (power8 fusion peephole): Drop support for doing power8 via a
1065 normal peephole that was created by the peephole2 pass.
1066 (power8 fusion peephole2): Create a new insn with the fused
1067 address, so that the fused operation is kept together after
1068 register allocation is done.
1069 (fusion_gpr_load_<mode>): Likewise.
1071 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1074 * tree.c (need_assembler_name_p): Do not mangle variadic types.
1076 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
1078 * recog.c (scratch_operand): Do not simply allow all hard registers:
1079 only allow those that are allocatable.
1081 2014-09-19 Felix Yang <felix.yang@huawei.com>
1083 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
1084 comments and fix spacing to conform to coding style.
1086 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1088 * genrecog.c (validate_pattern): Allow empty constraints in
1091 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
1093 * dwarf2out.c (decl_ultimate_origin): Update comment.
1094 * tree.c (block_ultimate_origin): Same.
1096 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1098 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1099 Update GCC version name to GCC 5.
1100 (rs6000_function_arg_boundary): Likewise.
1101 (rs6000_function_arg): Likewise.
1103 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1105 * config/sh/sh.md: Fix use of constraints in define_split.
1107 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
1110 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
1112 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1114 * doc/md.texi (Modifiers): Consistently use "read/write"
1115 nomenclature rather than "input/output".
1116 * genrecog.c (constraints_supported_in_insn_p): New.
1117 (validate_pattern): If needed, also check constraints on
1118 MATCH_SCRATCH operands.
1119 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
1120 operands with no '=' or '+' modifier.
1122 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1124 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
1125 scratch register as written.
1127 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1129 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
1132 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1134 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
1137 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1140 * config/s390/s390.c (s390_emit_epilogue): When doing the return
1141 address load optimization force s390_optimize_prologue to leave it
1142 that way. Only do the optimization if we already decided to push
1143 r14 into a stack slot.
1145 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
1147 * asan.c (build_check_stmt): Alignment arg was added.
1148 (asan_expand_check_ifn): Optimization for alignment >= 8.
1150 2014-09-19 Olivier Hainque <hainque@adacore.com>
1152 * config/i386/vxworksae.h: Remove obsolete definitions.
1153 (STACK_CHECK_PROTECT): Define.
1154 * config/i386/vx-common.h: Remove. Merge contents within
1155 config/i386/vxworks.h.
1156 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
1159 2014-09-19 Olivier Hainque <hainque@adacore.com>
1161 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
1162 * config/rs6000/t-vxworksmils: New file.
1163 * config/rs6000/vxworksmils.h: New file.
1165 2014-09-19 Olivier Hainque <hainque@adacore.com>
1167 * varasm.c (default_section_type_flags): Flag .persistent.bss
1168 sections as SECTION_BSS.
1170 2014-09-19 Nick Clifton <nickc@redhat.com>
1172 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
1173 pop'ed registers so that DCE does not eliminate them.
1175 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
1178 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
1180 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1182 * system.h (LIBGCC2_TF_CEXT): Poison.
1183 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
1184 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
1185 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
1186 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
1187 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
1188 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
1189 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
1190 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
1191 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
1193 2014-09-19 Kito Cheng <kito@0xlab.org>
1195 * except.h: Fix header guard.
1196 * addresses.h: Add missing header guard.
1197 * cfghooks.h: Likewise.
1198 * collect-utils.h: Likewise.
1199 * collect2-aix.h: Likewise.
1200 * conditions.h: Likewise.
1201 * cselib.h: Likewise.
1202 * dwarf2asm.h: Likewise.
1203 * graphds.h: Likewise.
1204 * graphite-scop-detection.h: Likewise.
1205 * gsyms.h: Likewise.
1206 * hw-doloop.h: Likewise.
1207 * incpath.h: Likewise.
1208 * ipa-inline.h: Likewise.
1209 * ipa-ref.h: Likewise.
1210 * ira-int.h: Likewise.
1212 * lra-int.h: Likewise.
1214 * lto-section-names.h: Likewise.
1215 * read-md.h: Likewise.
1216 * reload.h: Likewise.
1217 * rtl-error.h: Likewise.
1218 * sdbout.h: Likewise.
1219 * targhooks.h: Likewise.
1220 * tree-affine.h: Likewise.
1221 * xcoff.h: Likewise.
1222 * xcoffout.h: Likewise.
1224 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1227 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
1230 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1233 * lra.c (lra): Call recog_init.
1235 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1238 * asan.c (transform_statements): Don't instrument clobber statements.
1240 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1242 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
1243 to neon_load1_1reg<q>.
1245 2014-09-17 Jakub Jelinek <jakub@redhat.com>
1248 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
1249 if there are only debug stmts after the noreturn call, instead
1250 remove the debug stmts.
1252 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
1254 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
1255 (odr_types_equivalent_p): Use pair hash.
1256 (odr_subtypes_equivalent_p): Likewise, do structural compare
1257 on ODR types that may be mismatched.
1258 (warn_odr): Support warning when only one field is given.
1259 (odr_types_equivalent_p): Strenghten comparsions made;
1261 (add_type_duplicate): Update VISITED hash set.
1263 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1265 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
1266 Enable selection of 'posix' or no thread model.
1268 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1270 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1271 when architecture is older than ARMv7.
1273 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
1276 * config/pa/pa.c (pa_function_value): Directly handle aggregates
1277 that fit exactly in a word or double word.
1279 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
1281 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
1284 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1285 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1286 Anna Tikhonova <anna.tikhonova@intel.com>
1287 Ilya Tocar <ilya.tocar@intel.com>
1288 Andrey Turetskiy <andrey.turetskiy@intel.com>
1289 Ilya Verbin <ilya.verbin@intel.com>
1290 Kirill Yukhin <kirill.yukhin@intel.com>
1291 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1293 * config/i386/i386.c
1294 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
1295 * config/i386/sse.md
1296 (define_mode_iterator VI48F_256): New.
1297 (define_mode_attr extract_type): Ditto.
1298 (define_mode_attr extract_suf): Ditto.
1299 (define_mode_iterator AVX512_VEC): Ditto.
1301 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
1303 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
1305 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
1307 (define_mode_attr extract_type_2): Ditto.
1308 (define_mode_attr extract_suf_2): Ditto.
1309 (define_mode_iterator AVX512_VEC_2): Ditto.
1311 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
1312 AVX512_VEC_2 mode iterator.
1313 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1314 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
1315 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1316 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1317 (define_split for V16FI mode): Ditto.
1318 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1319 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1320 (define_split for VI8F_256 mode): Ditto.
1321 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1322 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1323 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1324 (define_split for VI4F_256 mode): Ditto.
1325 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
1326 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1327 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1328 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
1329 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
1330 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
1331 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
1332 Update `type' attribute, remove explicit `memory' attribute calculation.
1334 2014-09-16 Kito Cheng <kito@0xlab.org>
1336 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
1337 ira_spilled_reg_stack_slots_num if using lra.
1338 (do_reload): Remove release ira_spilled_reg_stack_slots part.
1339 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
1340 make sure not using lra.
1341 (ira_reuse_stack_slot): Likewise.
1342 (ira_mark_new_stack_slot): Likewise.
1344 2014-09-15 Andi Kleen <ak@linux.intel.com>
1346 * function.c (allocate_struct_function): Force
1347 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
1348 profiling is disabled.
1350 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1352 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
1353 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
1354 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
1355 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
1356 macro with statically checked member functions.
1357 * rtl.h (rtx_insn::deleted): New method.
1358 (rtx_insn::set_deleted): Likewise.
1359 (rtx_insn::set_undeleted): Likewise.
1360 (INSN_DELETED_P): Remove.
1362 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1364 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
1365 result of emit_jump_insn_before to a new variable.
1366 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
1367 (mark_jump_label_1): Likewise.
1368 (mark_jump_label_asm): Likewise.
1369 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
1370 * rtl.h (mark_jump_label): Adjust.
1372 2014-09-15 Jakub Jelinek <jakub@redhat.com>
1374 * Makefile.in (dg_target_exps): Remove.
1375 (check_gcc_parallelize): Change to just an upper bound number.
1376 (check-%-subtargets): Always print the non-parallelized goals.
1377 (check_p_vars, check_p_comma, check_p_subwork): Remove.
1378 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
1379 check_p_numbers3, check_p_numbers4, check_p_numbers5,
1380 check_p_numbers6): New variables.
1381 (check_p_numbers): Set to sequence from 1 to 9999.
1382 (check_p_subdirs): Set to sequence from 1 to minimum of
1383 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
1385 (check-%, check-parallel-%): Rewritten so that for parallelized
1386 testing each job runs all the *.exp files, with
1387 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
1389 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1391 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
1393 (arc_sets_cc_p): Likewise.
1394 * config/arc/arc.c (arc_print_operand): Use methods of
1395 "final_sequence" for clarity, and to enable strengthening of
1396 locals "jump" and "delay" from rtx to rtx_insn *.
1397 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
1398 rtx_insn *; use method of rtx_sequence for typesafety.
1399 (arc_get_insn_variants): Use insn method of rtx_sequence for
1401 (arc_pad_return): Likewise.
1402 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
1403 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
1404 dyn_cast to rtx_sequence *, using insn method for typesafety.
1405 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
1406 rtx_sequence * and use insn method when invoking get_attr_length.
1407 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
1408 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
1409 rtx_sequence *, introducing a local "seq", using its insn method
1410 from typesafety and clarity.
1411 (add_sched_insns_for_speculation): Strengthen local "next" from
1413 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
1414 (predicate_insn): Likewise.
1415 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
1417 * config/cris/cris.c (cris_notice_update_cc): Likewise.
1418 * config/epiphany/epiphany-protos.h
1419 (extern void epiphany_insert_mode_switch_use): Likewise for param
1421 (get_attr_sched_use_fpu): Likewise for param.
1422 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
1423 Likewise for param "insn".
1424 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
1425 param "insn" of "target_insert_mode_switch_use" callback.
1426 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
1427 (frv_issues_to_branch_unit_p): Likewise.
1428 (frv_pack_insn_p): Likewise.
1429 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
1430 const rtx * (i.e. mutable rtx_def * const *) to
1432 * config/i386/i386-protos.h (standard_sse_constant_opcode):
1433 Strengthen first param from rtx to rtx_insn *.
1434 (output_fix_trunc): Likewise.
1435 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
1436 (output_fix_trunc): Likewise.
1437 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
1439 (min_insn_size): Likewise for param "insn".
1440 (get_mem_group): Likewise.
1442 (get_insn_path): Likewise.
1443 (get_insn_group): Likewise.
1444 (count_num_restricted): Likewise.
1445 (fits_dispatch_window): Likewise.
1446 (add_insn_window): Likewise.
1447 (add_to_dispatch_window): Likewise.
1448 (debug_insn_dispatch_info_file): Likewise.
1449 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
1451 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
1452 "cmp" and local "prev".
1453 (m32c_output_compare): Likewise for param "insn".
1454 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
1455 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
1456 (define_predicate "large_insn_p"): Likewise.
1457 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
1458 param from rtx to rtx_insn *.
1459 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
1460 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
1461 (m68k_sched_attr_size): Likewise.
1462 (sched_get_opxy_mem_type): Likewise for param "insn".
1463 (m68k_sched_attr_op_mem): Likewise.
1464 (sched_mem_operand_p): Likewise.
1465 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
1466 * config/mep/mep.c (mep_multi_slot): Likewise.
1467 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
1469 (mips_sync_loop_insns): Likewise.
1470 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
1471 method of "final_sequence" for typesafety.
1472 (mips_process_sync_loop): Strengthen param "insn" from rtx to
1474 (mips_output_sync_loop): Likewise.
1475 (mips_sync_loop_insns): Likewise.
1476 (mips_74k_agen_init): Likewise.
1477 (mips_sched_init): Use NULL rather than NULL_RTX when working with
1479 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
1480 Strengthen param "insn" from rtx to rtx_insn *.
1481 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
1483 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
1485 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
1486 "insn". Use method of rtx_sequence for typesafety.
1487 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
1489 (branch_needs_nop_p): Likewise.
1490 (use_skip_p): Likewise.
1491 (pa_insn_refs_are_delayed): Likewise.
1492 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
1493 for locals "insn", "ninsn".
1494 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
1496 (is_cracked_insn): Likewise.
1497 (is_branch_slot_insn): Likewise.
1498 (is_nonpipeline_insn): Likewise.
1499 (insn_terminates_group_p): Likewise.
1500 (insn_must_be_first_in_group): Likewise.
1501 (insn_must_be_last_in_group): Likewise.
1502 (force_new_group): Likewise for param "next_insn".
1503 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
1505 (s390_sched_score): Likewise.
1506 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
1507 (rtx sfunc_uses_reg): Likewise for sole param.
1508 * config/sh/sh.c (sh_print_operand): Use insn method of
1509 final_sequence for typesafety.
1510 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
1511 Use insn method of final_sequence for typesafety.
1512 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
1513 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
1515 (eligible_for_return_delay): Likewise.
1516 (eligible_for_sibcall_delay): Likewise.
1517 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
1518 (eligible_for_return_delay): Likewise.
1519 (eligible_for_sibcall_delay): Likewise.
1520 * config/stormy16/stormy16-protos.h
1521 (xstormy16_output_cbranch_hi): Likewise for final param.
1522 (xstormy16_output_cbranch_si): Likewise.
1523 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
1524 (xstormy16_output_cbranch_si): Likewise.
1525 * config/v850/v850-protos.h (notice_update_cc): Likewise.
1526 * config/v850/v850.c (notice_update_cc): Likewise.
1528 * final.c (get_attr_length_1): Strengthen param "insn" and param
1529 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
1530 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
1531 (get_attr_min_length): Likewise.
1532 (shorten_branches): Likewise for signature of locals "length_fun"
1533 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
1534 from a checked cast and use its methods for clarity and to enable
1535 strengthening local "inner_insn" from rtx to rtx_insn *.
1536 * genattr.c (gen_attr): When writing out the prototypes of the
1537 various generated "get_attr_" functions, strengthen the params of
1538 the non-const functions from rtx to rtx_insn *.
1539 Similarly, strengthen the params of insn_default_length,
1540 insn_min_length, insn_variable_length_p, insn_current_length.
1541 (main): Similarly, strengthen the param of num_delay_slots,
1542 internal_dfa_insn_code, insn_default_latency, bypass_p,
1543 insn_latency, min_issue_delay, print_reservation,
1544 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
1545 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
1546 to hook_int_rtx_insn_unreachable.
1547 * genattrtab.c (write_attr_get): When writing out the generated
1548 "get_attr_" functions, strengthen the param "insn" from rtx to
1549 rtx_insn *, eliminating a checked cast.
1550 (make_automaton_attrs): When writing out prototypes of
1551 "internal_dfa_insn_code_", "insn_default_latency_" functions
1552 and the "internal_dfa_insn_code" and "insn_default_latency"
1553 callbacks, strengthen their params from rtx to rtx_insn *
1554 * genautomata.c (output_internal_insn_code_evaluation): When
1555 writing out code, add a checked cast from rtx to rtx_insn * when
1556 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
1557 (output_dfa_insn_code_func): Strengthen param of generated
1558 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
1559 (output_trans_func): Likewise for generated function
1561 (output_internal_insn_latency_func): When writing out generated
1562 function "internal_insn_latency", rename params from "insn" and
1563 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
1564 locals "insn" and "insn2" as rtx_insn * with checked casts once
1565 we've proven that we're not dealing with const0_rtx.
1566 (output_insn_latency_func): Strengthen param of generated
1567 function "insn_latency" from rtx to rtx_insn *.
1568 (output_print_reservation_func): Likewise for generated function
1569 "print_reservation".
1570 (output_insn_has_dfa_reservation_p): Likewise for generated
1571 function "insn_has_dfa_reservation_p".
1572 * hooks.c (hook_int_rtx_unreachable): Rename to...
1573 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
1574 from rtx to rtx_insn *.
1575 * hooks.h (hook_int_rtx_unreachable): Likewise.
1576 (extern int hook_int_rtx_insn_unreachable): Likewise.
1577 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
1578 (get_attr_min_length): Likewise.
1579 * recog.c (get_enabled_alternatives): Likewise.
1580 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
1581 * reorg.c (find_end_label): Introduce local rtx "pat" and
1582 strengthen local "insn" from rtx to rtx_insn *.
1583 (redundant_insn): Use insn method of "seq" rather than element for
1584 typesafety; strengthen local "control" from rtx to rtx_insn *.
1585 * resource.c (mark_referenced_resources): Add checked cast to
1586 rtx_insn * within INSN/JUMP_INSN case.
1587 (mark_set_resources): Likewise.
1588 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
1591 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1593 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
1594 param "label" from rtx to rtx_insn *.
1595 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
1597 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
1598 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
1599 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1600 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1601 * final.c (default_label_align_after_barrier_max_skip): Strengthen
1602 param from rtx to rtx_insn *.
1603 (default_loop_align_max_skip): Likewise.
1604 (default_label_align_max_skip): Likewise.
1605 (default_jump_align_max_skip): Likewise.
1606 * target.def (label_align_after_barrier_max_skip): Likewise.
1607 (loop_align_max_skip): Likewise.
1608 (label_align_max_skip): Likewise.
1609 (jump_align_max_skip): Likewise.
1610 * targhooks.h (default_label_align_after_barrier_max_skip):
1612 (default_loop_align_max_skip): Likewise.
1613 (default_label_align_max_skip): Likewise.
1614 (default_jump_align_max_skip): Likewise.
1616 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1618 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
1619 from const_rtx to const rtx_insn *. Update union members from rtx
1621 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
1622 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
1623 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
1624 strengthen both params from const_rtx to const rtx_insn *.
1625 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
1626 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
1627 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
1629 * target.def (can_follow_jump): Strengthen both params from
1630 const_rtx to const rtx_insn *, and update default implementation
1631 from hook_bool_const_rtx_const_rtx_true to
1632 hook_bool_const_rtx_insn_const_rtx_insn_true.
1634 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1636 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
1637 "insn" from rtx to rtx_insn *.
1638 * sched-int.h (deps_start_bb): Likewise for 2nd param.
1640 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1641 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1642 Anna Tikhonova <anna.tikhonova@intel.com>
1643 Ilya Tocar <ilya.tocar@intel.com>
1644 Andrey Turetskiy <andrey.turetskiy@intel.com>
1645 Ilya Verbin <ilya.verbin@intel.com>
1646 Kirill Yukhin <kirill.yukhin@intel.com>
1647 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1649 * config/i386/sse.md
1650 (define_insn "vcvtph2ps<mask_name>"): Add masking.
1651 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
1652 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
1653 (define_expand "vcvtps2ph_mask"): New.
1654 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
1655 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
1656 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
1658 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1660 Anna Tikhonova <anna.tikhonova@intel.com>
1661 Ilya Tocar <ilya.tocar@intel.com>
1662 Andrey Turetskiy <andrey.turetskiy@intel.com>
1663 Ilya Verbin <ilya.verbin@intel.com>
1664 Kirill Yukhin <kirill.yukhin@intel.com>
1665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1667 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
1669 (define_mode_iterator VI24_AVX512BW_1): Ditto.
1670 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
1671 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
1672 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
1673 also for TARGET_AVX512VL.
1674 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
1676 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
1678 * doc/install.texi (Options specification): add
1679 --disable-libsanitizer item.
1681 2014-09-14 James Clarke <jrtc27@jrtc27.com>
1682 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1685 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
1687 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
1688 kernel version check to avoid incrementing it after every major OS X
1690 (darwin_default_min_version): Avoid static memory buffer.
1692 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
1694 * tree.c (need_assembler_name_p): Store C++ type mangling only
1697 2014-09-13 Marek Polacek <polacek@redhat.com>
1699 * tree.c (protected_set_expr_location): Don't check whether T is
1702 2014-09-12 DJ Delorie <dj@redhat.com>
1704 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
1705 (extend_and_shift1_hipsi2): Likewise.
1706 (extend_and_shift2_hipsi2): Likewise.
1708 2014-09-12 David Malcolm <dmalcolm@redhat.com>
1710 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
1711 with NULL when dealing with an insn.
1712 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
1713 from rtx to rtx_insn *.
1714 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
1715 const_rtx to const rtx_insn *.
1716 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
1718 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
1720 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
1723 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1725 * target.def (libgcc_floating_mode_supported_p): New hook.
1726 * targhooks.c (default_libgcc_floating_mode_supported_p): New
1728 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
1729 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
1730 (LIBGCC2_HAS_TF_MODE): Remove.
1731 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
1732 * doc/tm.texi: Regenerate.
1733 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
1735 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
1736 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
1737 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
1738 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
1739 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1740 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
1741 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
1742 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
1743 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
1744 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
1746 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
1747 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1748 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1749 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1750 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1751 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1752 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1753 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
1754 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
1755 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
1756 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1757 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
1758 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
1759 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
1761 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
1763 (ia64_libgcc_floating_mode_supported_p): New function.
1764 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
1765 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1766 (IA64_NO_LIBGCC_TFMODE): Define.
1767 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
1768 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
1770 (pdp11_scalar_mode_supported_p): New function.
1771 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
1772 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
1774 2014-09-12 Richard Biener <rguenther@suse.de>
1777 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
1779 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
1781 * tree.c (integer_each_onep): New function.
1782 * tree.h (integer_each_onep): Declare it.
1783 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
1784 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
1785 (X & 1) == 0 for vector and complex.
1787 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1789 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
1791 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
1792 cost to spilling from integer to FP registers.
1794 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1796 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
1798 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
1799 are now handled correctly.
1801 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1803 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
1804 handling of CALLER_SAVE_REGS and POINTER_REGS.
1806 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
1808 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
1809 the number of hard registers.
1811 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1812 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1813 Anna Tikhonova <anna.tikhonova@intel.com>
1814 Ilya Tocar <ilya.tocar@intel.com>
1815 Andrey Turetskiy <andrey.turetskiy@intel.com>
1816 Ilya Verbin <ilya.verbin@intel.com>
1817 Kirill Yukhin <kirill.yukhin@intel.com>
1818 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1820 * config/i386/sse.md
1821 (define_mode_iterator VI48_AVX512VL): New.
1822 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
1823 "avx512f_vternlog<mode>_maskz" and update mode iterator.
1824 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
1825 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
1826 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
1827 "avx512f_vternlog<mode>_mask" and update mode iterator.
1828 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
1829 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
1831 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
1832 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
1833 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
1834 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
1835 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
1836 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
1838 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1839 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1840 Anna Tikhonova <anna.tikhonova@intel.com>
1841 Ilya Tocar <ilya.tocar@intel.com>
1842 Andrey Turetskiy <andrey.turetskiy@intel.com>
1843 Ilya Verbin <ilya.verbin@intel.com>
1844 Kirill Yukhin <kirill.yukhin@intel.com>
1845 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1847 * config/i386/sse.md (VI128_256): Delete.
1848 (define_mode_iterator VI124_256): New.
1849 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
1850 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
1851 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
1852 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
1853 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
1854 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
1855 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1856 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
1858 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
1859 in presence of AVX-512.
1861 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1862 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1863 Anna Tikhonova <anna.tikhonova@intel.com>
1864 Ilya Tocar <ilya.tocar@intel.com>
1865 Andrey Turetskiy <andrey.turetskiy@intel.com>
1866 Ilya Verbin <ilya.verbin@intel.com>
1867 Kirill Yukhin <kirill.yukhin@intel.com>
1868 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1870 * config/i386/sse.md
1871 (define_expand "<avx512>_gathersi<mode>"): Rename from
1872 "avx512f_gathersi<mode>".
1873 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
1874 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
1875 (define_expand "<avx512>_gatherdi<mode>"): Rename from
1876 "avx512f_gatherdi<mode>".
1877 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
1878 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
1880 (define_expand "<avx512>_scattersi<mode>"): Rename from
1881 "avx512f_scattersi<mode>".
1882 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
1883 (define_expand "<avx512>_scatterdi<mode>"): Rename from
1884 "avx512f_scatterdi<mode>".
1885 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
1887 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
1889 * ira.h (ira_finish_once): Delete.
1890 * ira-int.h (target_ira_int::~target_ira_int): Declare.
1891 (target_ira_int::free_ira_costs): Likewise.
1892 (target_ira_int::free_register_move_costs): Likewise.
1893 (ira_finish_costs_once): Delete.
1894 * ira.c (free_register_move_costs): Replace with...
1895 (target_ira_int::free_register_move_costs): ...this new function.
1896 (target_ira_int::~target_ira_int): Define.
1897 (ira_init): Call free_register_move_costs as a member function rather
1898 than a global function.
1899 (ira_finish_once): Delete.
1900 * ira-costs.c (free_ira_costs): Replace with...
1901 (target_ira_int::free_ira_costs): ...this new function.
1902 (ira_init_costs): Call free_ira_costs as a member function rather
1903 than a global function.
1904 (ira_finish_costs_once): Delete.
1905 * target-globals.c (target_globals::~target_globals): Call the
1906 target_ira_int destructor.
1907 * toplev.c: Include lra.h.
1908 (finalize): Call lra_finish_once rather than ira_finish_once.
1910 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
1912 * common.opt (flto-odr-type-merging): New flag.
1913 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
1914 (types_same_for_odr): Likewise.
1915 (odr_subtypes_equivalent_p): Likewise.
1916 (add_type_duplicate): Do not walk type variants.
1917 (register_odr_type): New function.
1918 * ipa-utils.h (register_odr_type): Declare.
1919 (odr_type_p): New function.
1920 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
1922 * doc/invoke.texi (-flto-odr-type-merging): Document.
1923 * tree.c (need_assembler_name_p): Compute ODR names when asked
1925 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
1927 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
1930 * config/i386/i386.c (ix86_option_override_internal): Also turn
1931 off OPTION_MASK_ABI_X32 for -m16.
1933 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
1935 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
1938 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1941 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
1942 Directly forward to __*_DENORM_MIN__.
1944 2014-09-11 David Malcolm <dmalcolm@redhat.com>
1946 * rtl.h (LABEL_REF_LABEL): New macro.
1948 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
1949 of XEXP (, 0), where we know that we have a LABEL_REF.
1950 * cfgbuild.c (make_edges): Likewise.
1951 (purge_dead_tablejump_edges): Likewise.
1952 * cfgexpand.c (convert_debug_memory_address): Likewise.
1953 * cfgrtl.c (patch_jump_insn): Likewise.
1954 * combine.c (distribute_notes): Likewise.
1955 * cse.c (hash_rtx_cb): Likewise.
1956 (exp_equiv_p): Likewise.
1957 (fold_rtx): Likewise.
1958 (check_for_label_ref): Likewise.
1959 * cselib.c (rtx_equal_for_cselib_1): Likewise.
1960 (cselib_hash_rtx): Likewise.
1961 * emit-rtl.c (mark_label_nuses): Likewise.
1962 * explow.c (convert_memory_address_addr_space): Likewise.
1963 * final.c (output_asm_label): Likewise.
1964 (output_addr_const): Likewise.
1965 * gcse.c (add_label_notes): Likewise.
1966 * genconfig.c (walk_insn_part): Likewise.
1967 * genrecog.c (validate_pattern): Likewise.
1968 * ifcvt.c (cond_exec_get_condition): Likewise.
1969 (noce_emit_store_flag): Likewise.
1970 (noce_get_alt_condition): Likewise.
1971 (noce_get_condition): Likewise.
1972 * jump.c (maybe_propagate_label_ref): Likewise.
1973 (mark_jump_label_1): Likewise.
1974 (redirect_exp_1): Likewise.
1975 (rtx_renumbered_equal_p): Likewise.
1976 * lra-constraints.c (operands_match_p): Likewise.
1977 * reload.c (operands_match_p): Likewise.
1978 (find_reloads): Likewise.
1979 * reload1.c (set_label_offsets): Likewise.
1980 * reorg.c (get_branch_condition): Likewise.
1981 * rtl.c (rtx_equal_p_cb): Likewise.
1982 (rtx_equal_p): Likewise.
1983 * rtlanal.c (reg_mentioned_p): Likewise.
1984 (rtx_referenced_p): Likewise.
1985 (get_condition): Likewise.
1986 * sched-vis.c (print_value): Likewise.
1987 * varasm.c (const_hash_1): Likewise.
1988 (compare_constant): Likewise.
1989 (const_rtx_hash_1): Likewise.
1990 (output_constant_pool_1): Likewise.
1992 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
1994 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
1995 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
1997 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
1998 cr6_test_for_lt_reverse): Ditto.
2000 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
2003 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2005 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2007 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2008 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2009 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2010 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2013 (aarch64_fold_builtin): Remove all reinterpret cases.
2015 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2017 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2019 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2020 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2021 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
2022 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
2023 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
2024 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
2025 aarch64_reinterpretv2df<mode>): Delete.
2027 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
2029 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
2030 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
2031 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
2032 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
2033 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
2034 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
2035 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
2036 vreinterpret_u32_f64): Use cast.
2038 * config/aarch64/iterators.md (VD_RE): Delete.
2040 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2042 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
2043 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
2044 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
2045 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
2046 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
2047 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
2048 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
2049 Replace inline assembler with __aarch64_vset_lane_any.
2051 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
2053 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
2055 (vmull_high_lane_s32): Likewise.
2056 (vmull_high_lane_u16): Likewise.
2057 (vmull_high_lane_u32): Likewise.
2059 2014-09-11 Jason Merrill <jason@redhat.com>
2062 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
2064 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
2067 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
2068 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
2069 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
2071 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2073 Anna Tikhonova <anna.tikhonova@intel.com>
2074 Ilya Tocar <ilya.tocar@intel.com>
2075 Andrey Turetskiy <andrey.turetskiy@intel.com>
2076 Ilya Verbin <ilya.verbin@intel.com>
2077 Kirill Yukhin <kirill.yukhin@intel.com>
2078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2080 * config/i386/sse.md
2081 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
2082 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
2083 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
2085 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
2086 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
2088 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2090 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
2091 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
2092 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
2093 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
2094 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
2095 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
2096 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
2097 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
2099 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2101 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
2102 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
2103 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
2105 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2107 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
2108 to access removed nodes.
2110 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2112 PR tree-optimization/63186
2113 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
2114 (mark_nonssa_use): Likewise.
2115 (verify_non_ssa_vars): Verify all header blocks for label
2118 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2119 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2120 Anna Tikhonova <anna.tikhonova@intel.com>
2121 Ilya Tocar <ilya.tocar@intel.com>
2122 Andrey Turetskiy <andrey.turetskiy@intel.com>
2123 Ilya Verbin <ilya.verbin@intel.com>
2124 Kirill Yukhin <kirill.yukhin@intel.com>
2125 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2127 * config/i386/sse.md
2128 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
2129 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
2130 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
2131 "<avx2_avx512f>_permvar<mode><mask_name>".
2132 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
2133 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
2134 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
2135 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
2137 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
2138 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2139 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
2140 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2142 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2144 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
2145 V2DF, V4SF, DF, and DI modes.
2146 (vsx_fmav2df2): Likewise.
2147 (vsx_float_fix_<mode>2): Likewise.
2148 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
2150 2014-09-10 Xinliang David Li <davidxl@google.com>
2153 * config/arm/arm.md (movcond_addsi): Handle case where source
2154 and target operands are the same.
2156 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2158 * final.c (this_is_asm_operands): Strengthen this variable from
2159 rtx to const rtx_insn *.
2160 * output.h (this_is_asm_operands): Likewise.
2161 * rtl-error.c (location_for_asm): Strengthen param "insn" from
2162 const_rtx to const rtx_insn *.
2163 (diagnostic_for_asm): Likewise.
2164 * rtl-error.h (error_for_asm): Likewise.
2165 (warning_for_asm): Likewise.
2167 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2169 * genextract.c (print_header): When writing out insn_extract to
2170 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
2171 * recog.h (insn_extract): Strengthen the param from rtx to
2174 2014-09-10 Mike Stump <mikestump@comcast.net>
2176 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
2179 2014-09-10 Martin Jambor <mjambor@suse.cz>
2181 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
2182 (analyze): Do not set analyze flag if expand_thunk returns false;.
2183 (create_wrapper): Likewise.
2184 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
2186 2014-09-10 Martin Jambor <mjambor@suse.cz>
2189 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
2190 new decl properly. Analyze the new thunk if it is expanded.
2192 2014-09-10 Andreas Schwab <schwab@suse.de>
2194 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
2195 [USED_FOR_TARGET]: Define.
2197 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
2199 * config/mips/mips.c (mips_secondary_reload_class): Handle
2202 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
2204 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
2207 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2209 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
2210 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
2211 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
2212 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
2213 flag_delete_null_pointer_checks for them.
2214 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2215 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
2216 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
2217 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
2218 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
2220 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
2221 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
2222 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
2223 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
2224 * doc/invoke.texi (-fsanitize=nonnull-attribute,
2225 -fsanitize=returns-nonnull-attribute): Document.
2227 * ubsan.h (struct ubsan_mismatch_data): Removed.
2228 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2229 * ubsan.c (ubsan_source_location): For unknown locations,
2230 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
2231 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2232 Allow more than one location and arbitrary extra arguments passed
2233 in ... instead of through MISMATCH pointer.
2234 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
2235 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
2236 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2239 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2240 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2241 Anna Tikhonova <anna.tikhonova@intel.com>
2242 Ilya Tocar <ilya.tocar@intel.com>
2243 Andrey Turetskiy <andrey.turetskiy@intel.com>
2244 Ilya Verbin <ilya.verbin@intel.com>
2245 Kirill Yukhin <kirill.yukhin@intel.com>
2246 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2248 * config/i386/sse.md
2249 (define_mode_iterator VI48F): New.
2250 (define_insn "<avx512>_compress<mode>_mask"): Rename from
2251 "avx512f_compress<mode>_mask" and update mode iterator.
2252 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
2253 "avx512f_compressstore<mode>_mask" and update mode iterator.
2254 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
2255 "avx512f_expand<mode>_maskz" and update mode iterator.
2256 (define_insn "<avx512>_expand<mode>_mask"): Rename from
2257 "avx512f_expand<mode>_mask" and update mode iterator.
2259 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2260 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2261 Anna Tikhonova <anna.tikhonova@intel.com>
2262 Ilya Tocar <ilya.tocar@intel.com>
2263 Andrey Turetskiy <andrey.turetskiy@intel.com>
2264 Ilya Verbin <ilya.verbin@intel.com>
2265 Kirill Yukhin <kirill.yukhin@intel.com>
2266 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2268 * config/i386/i386.c
2269 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
2270 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
2271 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
2272 avx512dq_rangepv4sf_mask.
2273 * config/i386/sse.md
2274 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
2276 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
2277 (define_insn "reduces<mode>"): Ditto.
2278 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2280 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
2281 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
2282 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
2284 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2285 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2286 Anna Tikhonova <anna.tikhonova@intel.com>
2287 Ilya Tocar <ilya.tocar@intel.com>
2288 Andrey Turetskiy <andrey.turetskiy@intel.com>
2289 Ilya Verbin <ilya.verbin@intel.com>
2290 Kirill Yukhin <kirill.yukhin@intel.com>
2291 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2293 * config/i386/i386.c
2294 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
2295 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
2296 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
2297 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
2298 avx512vl_getmantv2df_mask.
2299 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
2300 avx512f_vgetmantv4sf_round.
2301 * config/i386/sse.md
2302 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
2303 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
2305 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
2306 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
2307 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
2308 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
2310 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
2311 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
2312 update mode iterator.
2314 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
2315 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
2318 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
2319 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
2320 update mode iterator.
2321 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
2322 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
2325 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
2326 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
2328 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
2329 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
2330 update mode iterator.
2331 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
2332 "avx512f_getmant<mode><round_saeonly_name>".
2334 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2337 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
2339 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2340 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2341 Anna Tikhonova <anna.tikhonova@intel.com>
2342 Ilya Tocar <ilya.tocar@intel.com>
2343 Andrey Turetskiy <andrey.turetskiy@intel.com>
2344 Ilya Verbin <ilya.verbin@intel.com>
2345 Kirill Yukhin <kirill.yukhin@intel.com>
2346 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2348 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
2349 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
2350 (define_mode_iterator FMAMODE_AVX512): New.
2351 (define_mode_iterator FMAMODE): Remove conditions.
2352 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
2353 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
2354 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
2356 (define_mode_iterator FMAMODE_NOVF512): Remove.
2357 (define_insn "*fma_fmadd_<mode>"): Rename from
2358 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
2359 FMAMODE mode iterator.
2360 (define_mode_iterator VF_SF_AVX512VL): New.
2361 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
2362 Use VF_SF_AVX512VL mode iterator.
2363 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
2364 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2366 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
2367 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2369 (define_insn "*fma_fmsub_<mode>"): Rename from
2370 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
2371 FMAMODE mode iterator.
2372 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
2373 Use VF_SF_AVX512VL mode iterator.
2374 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
2375 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2377 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
2378 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2380 (define_insn "*fma_fnmadd_<mode>"): Rename from
2381 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
2382 use FMAMODE mode iterator.
2383 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
2384 Use VF_SF_AVX512VL mode iterator.
2385 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
2386 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2388 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
2389 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2391 (define_insn "*fma_fnmsub_<mode>"): Rename from
2392 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
2393 FMAMODE mode iterator.
2394 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
2395 Use VF_SF_AVX512VL mode iterator.
2396 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
2397 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2399 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
2400 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2402 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
2403 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
2404 use VF_AVX512VL mode iterator.
2405 (define_insn "*fma_fmaddsub_<mode>"): Rename from
2406 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
2408 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
2409 Use VF_SF_AVX512VL mode iterator.
2410 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
2411 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2413 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
2414 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2416 (define_insn "*fma_fmsubadd_<mode>"): Rename from
2417 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
2418 remove usage of subst.
2419 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
2420 Use VF_SF_AVX512VL mode iterator.
2421 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
2422 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2424 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
2425 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2428 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2431 * calls.c (precompute_arguments): Check
2432 promoted_for_signed_and_unsigned_p and set the promoted mode.
2433 (promoted_for_signed_and_unsigned_p): New function.
2434 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2435 and set the promoted mode.
2436 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2437 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2438 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2440 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2442 * opth-gen.awk: Generate mapping from cpp message reasons to the
2443 options that enable them.
2444 * doc/options.texi (CppReason): Document.
2446 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2448 * doc/invoke.texi (Wnormalized=): Update.
2450 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
2453 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
2454 operands. Split off the constant operand alternative to ...
2455 (*bool<mode>3_imm): New.
2457 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2459 * rtl.h (single_set_2): Strengthen first param from const_rtx to
2460 const rtx_insn *, and move prototype to above...
2461 (single_set): ...this. Convert this from a macro to an inline
2462 function, enforcing the requirement that the param is a const
2464 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
2466 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
2467 Strengthen both params from rtx to rtx_insn *.
2468 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2469 Likewise; introduce locals "producer_set", "consumer_set", using
2470 them in place of "producer" and "consumer" when dealing with SET
2472 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
2473 when invoking single_set in region guarded by INSN_P.
2474 (avr_out_bitop): Likewise.
2475 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
2476 region guarded by GET_CODE check, using methods to strengthen
2477 local "this_insn" from rtx to rtx_insn *, and for clarity.
2478 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
2479 Strengthen local "insn" from rtx to rtx_insn *.
2480 (define_insn_and_split "xload<mode>_A"): Likewise.
2481 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
2483 (find_load): Likewise for return type.
2484 (workaround_speculation): Likewise for both locals named
2486 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
2488 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
2490 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
2492 * config/h8300/h8300.c (notice_update_cc): Likewise.
2493 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
2494 "insn" and "dep_insn".
2495 (exact_store_load_dependency): Likewise for both params.
2496 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
2497 since this now clashes with inline function. Instead, delay
2498 calling single_set until the point where its needed, and then
2499 assign the result to "compare_set" and rework the conditional that
2501 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
2502 local "last" from rtx to rtx_insn *.
2503 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
2505 (mips_store_data_bypass_p): Likewise for both params.
2506 * config/mips/mips.c (mips_load_store_insns): Likewise for second
2508 (mips_store_data_bypass_p): Likewise for both params.
2509 (mips_orphaned_high_part_p): Likewise for param "insn".
2510 * config/mn10300/mn10300.c (extract_bundle): Likewise.
2511 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
2512 Introduce local rtx "insn2_pat".
2513 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
2515 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
2516 Introduce local rtx "set", using it in place of "insn" for the
2517 result of single_set. This appears to fix a bug, since the call
2518 to find_regno_note on a SET does nothing.
2519 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
2520 params from rtx to rtx_insn *.
2521 (set_to_load_agen): Likewise.
2522 * config/s390/s390.c (s390_label_align): Likewise for local
2523 "prev_insn". Introduce new rtx locals "set" and "src", using
2524 them in place of "prev_insn" for the results of single_set
2525 and SET_SRC respectively.
2526 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
2527 Introduce new rtx local "set" using in place of "jump" for the
2528 result of single_set. Use SET_SRC (set) rather than plain
2530 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
2532 (noncall_uses_reg): Likewise.
2533 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
2534 guarded by GET_CODE check, using its methods for clarity, and to
2535 enable strengthening local "this_insn" from rtx to rtx_insn *.
2536 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
2537 "insn" from rtx to rtx_insn *.
2538 (define_expand "umulhisi3"): Likewise.
2539 (define_expand "smulsi3_highpart"): Likewise.
2540 (define_expand "umulsi3_highpart"): Likewise.
2541 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2542 local "after". Replace GET_CODE check with a dyn_cast,
2543 introducing new local rtx_sequence * "seq", using insn method for
2546 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
2547 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
2548 place of "insn" once we're dealing with patterns rather than the
2550 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
2551 (scan_trace): Likewise for local "elt", updating lookups within
2552 sequence to use insn method rather than element method.
2553 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
2555 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
2556 * ifcvt.c (noce_try_abs): Likewise for local "insn".
2557 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
2558 invoking single_set.
2559 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
2560 "insn" from rtx to rtx_insn *.
2561 (skip_usage_debug_insns): Likewise for return type, adding a
2563 (check_secondary_memory_needed_p): Likewise for local "insn".
2564 (inherit_reload_reg): Likewise.
2565 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
2566 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
2568 (store_data_bypass_p): Likewise for both params.
2569 (if_test_bypass_p): Likewise.
2570 * recog.h (store_data_bypass_p): Likewise for both params.
2571 (if_test_bypass_p): Likewise.
2572 * reload.c (find_equiv_reg): Likewise for local "where".
2573 * reorg.c (delete_jump): Likewise for param "insn".
2574 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
2575 to const rtx_insn *.
2576 * store-motion.c (replace_store_insn): Likewise for param "del".
2577 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
2578 and use its methods for clarity, and to strengthen local "del"
2579 from rtx to rtx_insn *.
2580 (build_store_vectors): Use insn method of "st" when calling
2581 replace_store_insn for typesafety and clarity.
2583 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2585 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
2586 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
2587 on how to make it legal in future.
2589 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2591 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
2593 (restinsn): Likewise.
2594 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2596 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
2598 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
2600 (arc_hazard): Likewise for both params.
2601 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
2602 checked casts to rtx_sequence * and uses of the insn method for
2604 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
2605 (arc_adjust_insn_length): Likewise for param "insn".
2606 (struct insn_length_parameters_s): Likewise for first param of
2607 "get_variants" callback field.
2608 (arc_get_insn_variants): Likewise for first param and local
2609 "inner". Replace a check of GET_CODE with a dyn_cast to
2610 rtx_sequence *, using methods for type-safety and clarity.
2611 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
2612 rtx_sequence * and uses of the insn method for type-safety when
2613 invoking arc_adjust_insn_length.
2614 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
2616 (arm_address_offset_is_imm): Likewise.
2617 (struct tune_params): Likewise for params 1 and 3 of the
2618 "sched_adjust_cost" callback field.
2619 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
2620 params 1 and 3 ("insn" and "dep").
2621 (xscale_sched_adjust_cost): Likewise.
2622 (fa726te_sched_adjust_cost): Likewise.
2623 (cortexa7_older_only): Likewise for param "insn".
2624 (cortexa7_younger): Likewise.
2625 (arm_attr_length_move_neon): Likewise.
2626 (arm_address_offset_is_imm): Likewise.
2627 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
2628 * config/avr/avr.c (avr_notice_update_cc): Likewise.
2629 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
2630 (workaround_speculation): Likewise for local "last_condjump".
2631 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
2632 (shadow_or_blockage_p): Likewise.
2633 (get_unit_reqs): Likewise.
2634 (get_unit_operand_masks): Likewise.
2635 (c6x_registers_update): Likewise.
2636 (returning_call_p): Likewise.
2637 (can_use_callp): Likewise.
2638 (convert_to_callp): Likewise.
2639 (find_last_same_clock): Likwise for local "t".
2640 (reorg_split_calls): Likewise for local "shadow".
2641 (hwloop_pattern_reg): Likewise for param "insn".
2642 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
2643 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
2644 (frv_extract_membar): Likewise.
2645 (frv_optimize_membar_local): Strengthen param "last_membar" from
2646 rtx * to rtx_insn **.
2647 (frv_optimize_membar_global): Strengthen param "membar" from rtx
2649 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
2651 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
2652 both params from rtx to rtx_insn *.
2653 (ia64_ld_address_bypass_p): Likewise.
2654 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
2656 (ia64_safe_type): Likewise.
2657 (group_barrier_needed): Likewise.
2658 (safe_group_barrier_needed): Likewise.
2659 (ia64_single_set): Likewise.
2660 (is_load_p): Likewise.
2661 (record_memory_reference): Likewise.
2662 (get_mode_no_for_insn): Likewise.
2663 (important_for_bundling_p): Likewise.
2664 (unknown_for_bundling_p): Likewise.
2665 (ia64_st_address_bypass_p): Likewise for both params.
2666 (ia64_ld_address_bypass_p): Likewise.
2667 (expand_vselect): Introduce new local rtx_insn * "insn", using it
2668 in place of rtx "x" after the emit_insn call.
2669 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
2670 Strengthen param from rtx to rtx_insn *.
2671 (ix86_agi_dependent): Likewise for both params.
2672 (ix86_attr_length_immediate_default): Likewise for param 1.
2673 (ix86_attr_length_address_default): Likewise for param.
2674 (ix86_attr_length_vex_default): Likewise for param 1.
2675 * config/i386/i386.c (ix86_attr_length_immediate_default):
2676 Likewise for param "insn".
2677 (ix86_attr_length_address_default): Likewise.
2678 (ix86_attr_length_vex_default): Likewise.
2679 (ix86_agi_dependent): Likewise for both params.
2680 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
2681 (vselect_insn): Likewise for this variable.
2682 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
2684 (m68k_sched_attr_opy_type): Likewise.
2685 * config/m68k/m68k.c (sched_get_operand): Likewise.
2686 (sched_attr_op_type): Likewise.
2687 (m68k_sched_attr_opx_type): Likewise.
2688 (m68k_sched_attr_opy_type): Likewise.
2689 (sched_get_reg_operand): Likewise.
2690 (sched_get_mem_operand): Likewise.
2691 (m68k_sched_address_bypass_p): Likewise for both params.
2692 (sched_get_indexed_address_scale): Likewise.
2693 (m68k_sched_indexed_address_bypass_p): Likewise.
2694 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
2695 (m68k_sched_indexed_address_bypass_p): Likewise.
2696 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
2697 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
2699 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
2700 params from rtx to rtx_insn *.
2701 (mips_fmadd_bypass): Likewise.
2702 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
2703 (mips_linked_madd_p): Likewise.
2704 (mips_macc_chains_last_hilo): Likewise for this variable.
2705 (mips_macc_chains_record): Likewise for param.
2706 (vr4130_last_insn): Likewise for this variable.
2707 (vr4130_swap_insns_p): Likewise for both params.
2708 (mips_ls2_variable_issue): Likewise for param.
2709 (mips_need_noat_wrapper_p): Likewise for param "insn".
2710 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
2711 in place of "x" after the emit_insn.
2712 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
2713 params from rtx to rtx_insn *.
2714 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
2715 (pa_combine_instructions): Introduce local "par" for result of
2716 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
2718 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
2719 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
2720 (rl78_alloc_physical_registers_op1): Likewise.
2721 (rl78_alloc_physical_registers_op2): Likewise.
2722 (rl78_alloc_physical_registers_ro1): Likewise.
2723 (rl78_alloc_physical_registers_cmp): Likewise.
2724 (rl78_alloc_physical_registers_umul): Likewise.
2725 (rl78_alloc_address_registers_macax): Likewise.
2726 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
2727 * config/s390/predicates.md (execute_operation): Likewise for
2729 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
2731 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
2732 (addr_generation_dependency_p): Likewise for param "insn".
2733 (s390_agen_dep_p): Likewise for both params.
2734 (s390_fpload_toreg): Likewise for param "insn".
2735 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
2736 * config/sh/sh.c (sh_loop_align): Likewise for param and local
2738 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
2739 * config/sh/sh_treg_combine.cc
2740 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
2742 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
2743 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
2744 "and_insn", "load", "shift".
2745 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
2747 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
2748 for XEXP (note, 0) of the REG_CC_SETTER note.
2749 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
2750 rtx_insn *, eliminating a checked cast made redundant by this.
2751 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
2753 * genattr.c (main): When writing out the prototype to
2754 const_num_delay_slots, strengthen the param from rtx to
2756 * genattrtab.c (write_const_num_delay_slots): Likewise when
2757 writing out the implementation of const_num_delay_slots.
2758 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
2759 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
2760 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
2761 favor of new rtx locals "src" and "set" and new local rtx_insn *
2763 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
2765 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
2766 locals "cond", "if_then_else", "set" and new rtx_insn * locals
2768 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
2769 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
2770 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
2771 the top-level scope, replacing with new more tightly-scoped rtx
2772 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
2773 "new_insn", "copy_of_insn_b", and make local rtx "set" more
2775 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
2777 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
2779 (ira_setup_alts): Likewise for param "insn".
2780 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
2781 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
2783 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
2784 new more-tightly scoped rtx locals "add3_insn", "insn",
2785 "add2_insn" and rtx_insn * "move_insn".
2786 * postreload-gcse.c (eliminate_partially_redundant_load): Add
2787 checked cast on result of gen_move_insn when invoking
2789 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
2791 (verify_changes): Add a checked cast on "object" when invoking
2793 (extract_insn_cached): Strengthen param "insn" from rtx to
2795 (extract_constrain_insn_cached): Likewise.
2796 (extract_insn): Likewise.
2797 * recog.h (insn_invalid_p): Likewise for param 1.
2798 (recog_memoized): Likewise for param.
2799 (extract_insn): Likewise.
2800 (extract_constrain_insn_cached): Likewise.
2801 (extract_insn_cached): Likewise.
2802 * reload.c (can_reload_into): Likewise for local "test_insn".
2803 * reload.h (cleanup_subreg_operands): Likewise for param.
2804 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
2805 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
2806 result of emit_insn. Remove a checked cast made redundant by this
2808 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
2810 * sel-sched.c (get_reg_class): Likewise.
2812 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
2813 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2815 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
2816 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
2818 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
2820 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2822 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
2823 const rtx_insn *, and from rtx to rtx_insn * for the other
2825 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
2826 INSN_LOCATION, since we know INSN_P holds.
2827 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
2828 (insn_file): Likewise.
2829 (insn_scope): Likewise.
2830 (insn_location): Likewise.
2832 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
2833 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
2834 for the result of gen_load_const_gp.
2835 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
2836 param from rtx to rtx_insn *.
2837 * config/rs6000/rs6000.c (output_call): Likewise.
2838 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
2839 introducing a checked cast to rtx_sequence * and use of the insn
2841 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
2842 from rtx to rtx_insn *.
2843 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
2844 (insn_line): Likewise.
2845 (insn_file): Likewise.
2846 (insn_location): Likewise.
2847 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
2848 from rtx to rtx_insn *.
2849 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
2850 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
2851 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
2853 * reorg.c (relax_delay_slots): Strengthen locals named "after"
2854 from rtx to rtx_insn *; use methods of "pat" for type-safety.
2856 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2858 * combine.c (try_combine): Eliminate checked cast on result of
2860 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
2861 autogenerated one by strengthening the return type and params 2 and 3
2862 from rtx to rtx_insn *, and by naming the params.
2863 * gengenrtl.c (special_rtx): Add INSN to those that are
2865 * rtl.h (gen_rtx_INSN): New prototype.
2867 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2869 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
2871 (no_equiv): Likewise.
2872 (update_equiv_regs): Likewise.
2873 (setup_reg_equiv): Likewise. Strengthen locals "elem",
2874 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
2875 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
2877 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
2878 from rtx to rtx_insn_list *.
2879 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
2880 rtx_insn_list * and use methods for clarity and typesafety.
2881 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
2883 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
2884 redundant check on INSN_P (insns): this cannot hold, as "insns" is
2885 an INSN_LIST, not an insn.
2886 (reverse_equiv_p): Strengthen local "insns" from rtx to
2887 rtx_insn_list * and use methods for clarity and typesafety.
2888 (contains_reloaded_insn_p): Likewise for local "list".
2890 2014-09-09 Jiong Wang <jiong.wang@arm.com>
2892 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
2893 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
2894 (arm_builtin_vectorized_function): Likewise.
2895 * config/arm/arm_neon_builtins.def: New macro for copysignf.
2896 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
2898 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
2900 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
2901 * builtins.h (default_target_builtins): Likewise.
2902 * gcse.h (default_target_gcse): Likewise.
2903 * target-globals.h (target_globals): Add a destructor. Convert
2904 void-pointer fields back to their real type and change from
2905 GTY((atomic)) to GTY((skip)).
2906 (restore_target_globals): Remove casts accordingly.
2907 * target-globals.c (save_target_globals): Use XCNEW rather than
2908 ggc_internal_cleared_alloc to allocate non-GC structures.
2909 Use ggc_cleared_alloc to allocate the target_globals structure
2911 (target_globals::~target_globals): Define.
2913 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2915 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
2916 mnemonic instead of fldmfdd.
2917 * config/arm/arm.c (vfp_output_fstmd): Rename to...
2918 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
2919 Output vpush when address register is SP.
2920 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
2921 (vfp_output_vstmd): ... This.
2922 * config/arm/vfp.md (push_multi_vfp): Update call to
2925 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2927 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
2929 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2931 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
2932 (*sqrtdf2_vfp): Likewise.
2933 (*cmpsf_vfp): Likewise.
2934 (*cmpsf_trap_vfp): Likewise.
2935 (*cmpdf_vfp): Likewise.
2936 (*cmpdf_trap_vfp): Likewise.
2938 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2940 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
2941 (*truncdfsf2_vfp): Likewise.
2942 (*truncsisf2_vfp): Likewise.
2943 (*truncsidf2_vfp): Likewise.
2944 (fixuns_truncsfsi2): Likewise.
2945 (fixuns_truncdfsi2): Likewise.
2946 (*floatsisf2_vfp): Likewise.
2947 (*floatsidf2_vfp): Likewise.
2948 (floatunssisf2): Likewise.
2949 (floatunssidf2): Likewise.
2951 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2953 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
2954 (*muldf3_vfp): Likewise.
2955 (*mulsf3negsf_vfp): Likewise.
2956 (*muldf3negdf_vfp): Likewise.
2957 (*mulsf3addsf_vfp): Likewise.
2958 (*muldf3adddf_vfp): Likewise.
2959 (*mulsf3subsf_vfp): Likewise.
2960 (*muldf3subdf_vfp): Likewise.
2961 (*mulsf3negsfaddsf_vfp): Likewise.
2962 (*fmuldf3negdfadddf_vfp): Likewise.
2963 (*mulsf3negsfsubsf_vfp): Likewise.
2964 (*muldf3negdfsubdf_vfp): Likewise.
2966 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2968 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
2969 (*absdf2_vfp): Likewise.
2970 (*negsf2_vfp): Likewise.
2971 (*negdf2_vfp): Likewise.
2972 (*addsf3_vfp): Likewise.
2973 (*adddf3_vfp): Likewise.
2974 (*subsf3_vfp): Likewise.
2975 (*subdf3_vfp): Likewise.
2976 (*divsf3_vfp): Likewise.
2977 (*divdf3_vfp): Likewise.
2979 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2981 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
2983 (arm_print_operand): Don't convert real values to decimal
2984 representation in default case.
2985 (fp_immediate_constant): Delete.
2986 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
2987 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
2989 (*thumb2_movsi_vfp): Likewise.
2990 (*movdi_vfp): Likewise.
2991 (*movdi_vfp_cortexa8): Likewise.
2992 (*movhf_vfp_neon): Likewise.
2993 (*movhf_vfp): Likewise.
2994 (*movsf_vfp): Likewise.
2995 (*thumb2_movsf_vfp): Likewise.
2996 (*movdf_vfp): Likewise.
2997 (*thumb2_movdf_vfp): Likewise.
2998 (*movsfcc_vfp): Likewise.
2999 (*thumb2_movsfcc_vfp): Likewise.
3000 (*movdfcc_vfp): Likewise.
3001 (*thumb2_movdfcc_vfp): Likewise.
3003 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
3005 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3009 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3012 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3013 Use qualifier_immediate for last operand. Rename to...
3014 (aarch64_types_ternop_lane_qualifiers): ... This.
3015 (TYPES_QUADOP): Rename to...
3016 (TYPES_TERNOP_LANE): ... This.
3017 (aarch64_simd_expand_args): Return const0_rtx when encountering user
3018 error. Change return of 0 to return of NULL_RTX.
3019 (aarch64_crc32_expand_builtin): Likewise.
3020 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3021 ICE when expanding unknown builtin.
3022 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
3023 TERNOP_LANE qualifiers.
3024 (sqdmlsl_lane): Likewise.
3025 (sqdmlal_laneq): Likewise.
3026 (sqdmlsl_laneq): Likewise.
3027 (sqdmlal2_lane): Likewise.
3028 (sqdmlsl2_lane): Likewise.
3029 (sqdmlal2_laneq): Likewise.
3030 (sqdmlsl2_laneq): Likewise.
3032 2014-09-09 Nick Clifton <nickc@redhat.com>
3034 * doc/invoke.texi (Optimization Options): Add missing @gol to the
3036 (S/390 and zSeries Options): Remove superfluous word from the
3037 description of the -mhotpatch option.
3039 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
3041 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
3042 * ira.c: #include "shrink-wrap.h"
3043 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
3044 * ifcvt.c: #include "shrink-wrap.h"
3045 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
3047 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
3049 * common/config/picochip/picochip-common.c: Remove.
3050 * config.gcc: Remove support for picochip.
3051 * config/picochip/constraints.md: Remove.
3052 * config/picochip/dfa_space.md: Remove.
3053 * config/picochip/dfa_speed.md: Remove.
3054 * config/picochip/picochip-protos.h: Remove.
3055 * config/picochip/picochip.c: Remove.
3056 * config/picochip/picochip.h: Remove.
3057 * config/picochip/picochip.md: Remove.
3058 * config/picochip/picochip.opt: Remove.
3059 * config/picochip/predicates.md: Remove.
3060 * config/picochip/t-picochip: Remove.
3061 * doc/md.texi: Don't document picochi.
3063 2014-09-08 David Malcolm <dmalcolm@redhat.com>
3065 * basic-block.h (control_flow_insn_p): Strengthen param from
3066 const_rtx to const rtx_insn *.
3067 * cfgbuild.c (control_flow_insn_p): Likewise.
3069 2014-09-08 David Malcolm <dmalcolm@redhat.com>
3071 * gcse.c (modify_mem_list): Strengthen this variable from
3072 vec<rtx> * to vec<rtx_insn *> *.
3073 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
3075 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
3076 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
3077 (record_last_mem_set_info): Strengthen param "insn" from rtx to
3079 (record_last_set_info): Likewise for local "last_set_insn".
3081 2014-09-08 DJ Delorie <dj@redhat.com>
3083 * doc/invoke.texi (MSP430 Options): Add -minrt.
3085 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3087 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
3088 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
3089 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
3091 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
3093 (adjust_splat): New function.
3094 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
3095 (dump_swap_insn_table): Add case for SH_SPLAT.
3097 2014-09-08 Richard Biener <rguenther@suse.de>
3100 * tree-inline.c (copy_loops): The source loop header should
3102 (tree_function_versioning): If loops need fixup after removing
3103 unreachable blocks fix them.
3104 * omp-low.c (simd_clone_adjust): Do not add incr block to
3105 loop under construction.
3107 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
3109 * config/aarch64/aarch64-builtins.c
3110 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
3112 2014-09-08 Joseph Myers <joseph@codesourcery.com>
3114 * config/i386/cygming.h (TF_SIZE): Remove.
3115 * config/i386/darwin.h (TF_SIZE): Remove.
3116 * config/i386/dragonfly.h (TF_SIZE): Remove.
3117 * config/i386/freebsd.h (TF_SIZE): Remove.
3118 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
3119 * config/i386/openbsdelf.h (TF_SIZE): Remove.
3120 * config/i386/sol2.h (TF_SIZE): Remove.
3121 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
3122 * config/ia64/linux.h (TF_SIZE): Remove.
3123 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
3124 * doc/tm.texi: Regenerate.
3125 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
3127 2014-09-08 Joseph Myers <joseph@codesourcery.com>
3129 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3131 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
3133 * doc/tm.texi: Regenerate.
3134 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3136 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
3137 * config/cris/cris.h (__make_dp): Remove.
3139 2014-09-08 Richard Biener <rguenther@suse.de>
3142 * cfgloop.c (mark_loop_for_removal): Track former header
3144 * cfgloop.h (struct loop): Add former_header member unconditionally.
3145 * loop-init.c (fix_loop_structure): Enable bogus loop removal
3146 diagnostic unconditionally.
3148 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
3151 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
3152 constraint for operand0 and remove write only modifier from operand3.
3154 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
3156 PR rtl-optimization/62208
3157 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
3158 rather than const0_rtx in eq/ne-xor simplifications.
3160 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
3162 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
3163 (arc_output_mi_thunk): Likewise.
3165 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
3166 arguments to silence bogus warning.
3168 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
3171 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
3173 2014-09-06 Tom de Vries <tom@codesourcery.com>
3175 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
3176 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
3177 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3179 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
3182 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
3183 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
3185 2014-09-05 Easwaran Raman <eraman@google.com>
3187 PR rtl-optimization/62146
3188 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
3189 hoisted instruction unconditional.
3191 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
3194 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
3195 Do not allow any_mask_operand for operands[2].
3196 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
3198 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3200 * config/arc/arc.c (arc_print_operand): Use insn method of
3201 final_sequence for type-safety.
3202 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
3203 "insn" from rtx to rtx_insn *.
3204 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
3205 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3206 Likewise for locals "branch", "label".
3207 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
3208 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
3209 (same_cmp_following_p): Likewise for locals "i2", "i3".
3210 * config/sh/sh_optimize_sett_clrt.cc
3211 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
3212 param "cbranch_insn".
3213 * function.c (convert_jumps_to_returns): Likewis for local "jump".
3214 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
3215 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
3217 (condjump_p): Likewise.
3218 (condjump_in_parallel_p): Likewise.
3220 (any_uncondjump_p): Likewise.
3221 (any_condjump_p): Likewise.
3222 (condjump_label): Likewise.
3223 (returnjump_p): Strengthen param "insn" from rtx to
3225 (onlyjump_p): Strengthen param "insn" from const_rtx to
3227 (jump_to_label_p): Likewise.
3228 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
3229 (invert_jump): Likewise.
3230 * reorg.c (simplejump_or_return_p): Add checked cast when calling
3232 (get_jump_flags): Strengthen param "insn" from rtx to
3234 (get_branch_condition): Likewise.
3235 (condition_dominates_p): Likewise.
3236 (make_return_insns): Move declaration of local "pat" earlier, to
3237 after we've handled NONJUMP_INSN_P and non-sequences, using its
3238 methods to simplify the code and for type-safety.
3239 * rtl.h (find_constant_src): Strengthen param from const_rtx to
3241 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
3242 (condjump_p): Strengthen param from const_rtx to
3244 (any_condjump_p): Likewise.
3245 (any_uncondjump_p): Likewise.
3247 (condjump_label): Likewise.
3248 (simplejump_p): Likewise.
3249 (returnjump_p): Likewise.
3250 (onlyjump_p): Likewise.
3251 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
3252 (invert_jump): Likewise.
3253 (condjump_in_parallel_p): Strengthen param from const_rtx to
3255 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
3256 to const rtx_insn *.
3257 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
3258 to const rtx_insn *.
3259 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
3261 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3263 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
3264 above the conditional, and convert the check on GET_CODE to a
3265 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
3266 the conditional. Simplify the conditional by using methods of
3269 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3271 * haifa-sched.c (check_clobbered_conditions): Strengthen local
3272 "link" from rtx to rtx_insn_list *, and use its methods for
3273 clarity and type-safety.
3274 (toggle_cancelled_flags): Likewise.
3275 (restore_last_backtrack_point): Likewise.
3276 (queue_to_ready): Use insn method of "link" in one place.
3277 (schedule_block): Strengthen local "link" from rtx to
3278 rtx_insn_list *, and use its methods for clarity and type-safety.
3280 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3282 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
3283 param "insn" from const_rtx to const rtx_insn *.
3284 (sched_get_reverse_condition_uncached): Likewise.
3285 (sched_get_condition_with_rev): Likewise.
3286 (sched_has_condition_p): Likewise.
3287 (sched_insns_conditions_mutex_p): Likewise for both params.
3288 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
3289 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
3290 (setup_insn_reg_uses): Move local "list" to be more tightly
3291 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
3292 its methods for clarity and type-safety.
3293 (sched_analyze_1): Strengthen local "pending" from rtx to
3294 rtx_insn_list *, and local "pending_mem" from rtx to
3295 rtx_expr_list *. Use methods of each for clarity and type-safety.
3296 (sched_analyze_2): Likewise.
3297 (sched_analyze_insn): Likewise.
3299 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
3300 param from const_rtx to const rtx_insn *.
3301 (sched_insns_conditions_mutex_p): Likewise for both params.
3302 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
3305 * system.h (CONST_CAST_RTX_INSN): New macro.
3307 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3309 * recog.c (peep2_attempt): Strengthen return type from rtx to
3311 (peep2_update_life): Likewise for params "last", "prev", removing
3312 a checked cast made redundant by this.
3313 (peephole2_optimize): Likewise for local "last".
3315 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3317 * basic-block.h (set_block_for_insn): Eliminate this macro in
3319 * rtl.h (set_block_for_insn): New inline function, imposing the
3320 requirement that the "insn" param is an rtx_insn *.
3322 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3324 * caller-save.c (setup_save_areas): Strengthen local "insn" from
3326 * final.c (get_call_reg_set_usage): Likewise for first param,
3327 eliminating a checked cast.
3328 * regs.h (get_call_reg_set_usage): Likewise for first param.
3329 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
3330 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
3331 cast, replacing references to "x" with "call_insn" where
3333 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
3334 rtx_insn *, adding a checked cast.
3336 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3338 * output.h (final_scan_insn): Strengthen first param from rtx to
3341 * final.c (final_scan_insn): Likewise, renaming it back from
3342 "uncast_insn" to "insn", eliminating the checked cast.
3344 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
3345 "vec" with an rtx_sequence * "seq", taking a copy of
3346 "final_sequence", and using methods of "seq" for clarity, and for
3347 type-safety in the calls to final_scan_insn.
3348 * config/mips/mips.c (mips_output_conditional_branch): Use methods
3349 of "final_sequence" for clarity, and for type-safety in the call to
3351 * config/sh/sh.c (print_slot): Strengthen param from rtx to
3352 rtx_sequence * and rename from "insn" to "seq".
3354 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3356 * jump.c (delete_related_insns): Introduce a new local "table" by
3357 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
3358 get_labels method of "table" to simplify access to the labels in
3361 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3363 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
3364 f_minmaxs, f_minmaxd types.
3366 2014-09-05 Richard Biener <rguenther@suse.de>
3368 * cfgloop.c (mark_loop_for_removal): Record former header
3369 when ENABLE_CHECKING.
3370 * cfgloop.h (strut loop): Add former_header member when
3372 * loop-init.c (fix_loop_structure): Sanity check loops
3373 marked for removal if they re-appeared.
3375 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3377 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
3378 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
3380 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
3381 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
3382 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
3383 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
3384 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
3385 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
3386 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
3387 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
3388 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
3389 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
3390 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
3391 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
3392 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
3393 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
3394 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
3395 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
3396 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
3397 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
3398 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
3399 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
3400 with int{32,16,8}_t.
3402 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3404 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
3405 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
3406 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
3407 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
3408 Remove temporary __asm__ and reimplement.
3410 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3412 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
3413 handling cmge, cmgt, cmeq, cmtst.
3415 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
3416 cmlt, cmgeu, cmgtu, cmtst): Remove.
3418 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
3419 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
3420 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
3421 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
3423 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3425 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
3427 (aarch64_fold_builtin): Update pattern for cmtst.
3429 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
3432 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
3434 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
3435 Switch operands, separate out more cases, refactor.
3437 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
3439 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
3440 argument; rename old version to...
3441 (aarch64_const_vec_all_same_in_range_p): ...this.
3442 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
3444 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
3446 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3448 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3449 Remove qualifier_const_pointer, update comment.
3451 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3453 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
3455 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3457 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
3458 varargs with pointer parameter.
3459 (aarch64_simd_expand_builtin): pass pointer into previous.
3461 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3463 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
3466 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3468 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
3469 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
3470 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
3471 Replace temporary asm with call to builtin.
3472 (vrbit_p8, vrbitq_p8): New functions.
3474 2014-09-05 Richard Biener <rguenther@suse.de>
3476 * cfgloop.c (mark_loop_for_removal): New function.
3477 * cfgloop.h (mark_loop_for_removal): Declare.
3478 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
3479 (merge_blocks): Likewise.
3480 (duplicate_block): Likewise.
3481 * except.c (sjlj_emit_dispatch_table): Likewise.
3482 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3483 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
3484 (thread_through_loop_header): Likewise.
3486 2014-09-05 Richard Biener <rguenther@suse.de>
3489 * fold-const.c (try_move_mult_to_index): Remove.
3490 (fold_binary_loc): Do not call it.
3491 * tree-data-ref.c (dr_analyze_indices): Strip conversions
3492 from the base object again.
3494 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3496 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
3499 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3502 * config/arm/arm.md (setmem): New pattern.
3503 * config/arm/arm-protos.h (struct tune_params): New fields.
3504 (arm_gen_setmem): New prototype.
3505 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
3506 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3507 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3508 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
3509 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
3510 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
3511 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
3512 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3513 (arm_const_inline_cost): New function.
3514 (arm_block_set_max_insns): New function.
3515 (arm_block_set_non_vect_profit_p): New function.
3516 (arm_block_set_vect_profit_p): New function.
3517 (arm_block_set_unaligned_vect): New function.
3518 (arm_block_set_aligned_vect): New function.
3519 (arm_block_set_unaligned_non_vect): New function.
3520 (arm_block_set_aligned_non_vect): New function.
3521 (arm_block_set_vect, arm_gen_setmem): New functions.
3523 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3525 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
3527 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3529 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
3531 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3533 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
3535 * valtrack.h: Adjust.
3537 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3539 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
3541 (emit_jump_insn_before_noloc): Likewise.
3542 (emit_call_insn_before_noloc): Likewise.
3543 (emit_label_before): Likewise.
3544 (emit_label_after): Likewise.
3545 (emit_insn_before_setloc): Likewise.
3546 (emit_jump_insn_before_setloc): Likewise.
3547 (emit_call_insn_before_setloc): Likewise.
3548 (emit_call_insn_before): Likewise.
3551 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3553 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
3554 rtx_insn *, eliminating a checked cast.
3556 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3558 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
3559 const_rtx to const rtx_insn *.
3560 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
3563 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3565 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
3566 fixup_args_size_notes.
3567 * expr.c (fixup_args_size_notes): Strengthen first two params from
3568 rtx to rtx_insn *, eliminating a checked cast.
3569 * rtl.h (fixup_args_size_notes): Strengthen first two params from
3572 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3574 * haifa-sched.c (get_ready_element): Strengthen return type from
3576 * sched-int.h (get_ready_element): Likewise.
3578 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
3581 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
3582 indexed_or_indirect_operand instead of memory_operand.
3583 (floatsi<mode>2_lfiwzx_mem): Ditto.
3585 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3587 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
3588 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
3589 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
3591 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
3593 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
3595 (get_last_nonnote_insn): Likewise.
3596 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
3597 * resource.c (find_basic_block): Likewise.
3599 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
3602 2014-09-04 David Malcolm <dmalcolm@redhat.com>
3604 * genattr.c (main): Within the prototype of insn_latency written
3605 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
3606 * genautomata.c (output_internal_maximal_insn_latency_func):
3607 Within the implementation of insn_latency written out to
3608 insn-automata.c, strengthen both params from rtx to rtx_insn *,
3609 eliminating a pair of checked casts.
3611 2014-09-04 David Malcolm <dmalcolm@redhat.com>
3613 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
3616 * rtl.h (eh_returnjump_p): Likewise.
3618 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
3620 * Makefile.in (TAGS): Handle constructs in timevar.def.
3622 2014-09-04 Guozhi Wei <carrot@google.com>
3625 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
3626 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
3627 it into two patterns.
3628 (move_lo_quad_internal_be_<mode>): Likewise.
3630 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3632 * doc/options.texi: Document that Var and Init are required if CPP
3634 * optc-gen.awk: Require Var and Init if CPP is given.
3635 * common.opt (Wpedantic): Use Init.
3637 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3639 * config/rs6000/rs6000.c (special_handling_values): Add
3641 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
3642 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
3643 as swappable with special handling SH_EXTRACT. Remove
3644 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
3646 (adjust_extract): New function.
3647 (handle_special_swappables): Add default to case statement; add
3648 case for SH_EXTRACT that calls adjust_extract.
3649 (dump_swap_insn_table): Handle SH_EXTRACT.
3651 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3653 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
3654 selection of 0th memory doubleword, regardless of endianness.
3656 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3658 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
3660 2014-09-04 Alan Modra <amodra@gmail.com>
3663 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
3666 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
3668 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
3669 * targhooks.c (default_dwarf_frame_reg_mode): New function.
3670 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
3671 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
3672 * doc/tm.texi: Regenerate.
3673 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
3674 selection logic to default_dwarf_frame_reg_mode.
3676 2014-09-03 Marek Polacek <polacek@redhat.com>
3678 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
3681 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
3683 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
3684 the automodified register.
3686 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
3688 * output.h (get_some_local_dynamic_name): Declare.
3689 * final.c (some_local_dynamic_name): New variable.
3690 (get_some_local_dynamic_name): New function.
3691 (final_end_function): Clear some_local_dynamic_name.
3692 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
3693 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3694 (print_operand): Report an error if '%&' is used inappropriately.
3695 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
3696 (get_some_local_dynamic_name_1): Delete.
3697 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
3698 (rs6000_get_some_local_dynamic_name): Delete.
3699 (rs6000_get_some_local_dynamic_name_1): Delete.
3700 (print_operand): Report an error if '%&' is used inappropriately.
3701 * config/s390/s390.c (machine_function): Remove some_ld_name.
3702 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3703 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
3704 * config/sparc/sparc.c: Include rtl-iter.h.
3705 (machine_function): Remove some_ld_name.
3706 (sparc_print_operand): Report an error if '%&' is used inappropriately.
3707 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3709 2014-09-03 Richard Henderson <rth@redhat.com>
3711 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
3712 (aarch64_popwb_pair_reg): Remove.
3713 (aarch64_set_frame_expr): Remove.
3714 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
3715 the restore ops performed by the insns generated.
3716 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
3717 insn. Perform the calls_eh_return addition later; do not attempt to
3718 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
3719 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
3720 special markup at all. Load cfun->machine->frame.hard_fp_offset
3721 into a local variable.
3722 (aarch64_frame_pointer_required): Don't check calls_alloca.
3724 2014-09-03 Richard Biener <rguenther@suse.de>
3726 * opts.c (default_options_optimization): Adjust
3727 max-combine-insns to 2 for -Og.
3729 2014-09-03 Martin Jambor <mjambor@suse.cz>
3732 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
3733 pass-trough jump functions correctly.
3735 2014-09-03 Martin Jambor <mjambor@suse.cz>
3738 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
3739 created replacements in ascending order of offsets.
3740 (known_aggs_to_agg_replacement_list): Likewise.
3742 2014-09-03 Martin Liska <mliska@suse.cz>
3744 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
3745 is set to set uninitialized value for vnresult.
3747 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3749 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
3750 for TARGET_MUST_PASS_IN_STACK.
3752 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3754 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
3755 for TARGET_ARG_PARTIAL_BYTES.
3757 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3759 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
3760 instructions for varargs implementation.
3761 (nds32_expand_epilogue): Emit stack adjustment instructions for
3762 varargs implementation.
3764 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3766 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
3767 optimization detection.
3769 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3771 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
3773 (nds32_function_arg_advance): Deal with nameless arguments.
3774 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
3775 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
3776 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
3778 2014-09-03 Richard Biener <rguenther@suse.de>
3780 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
3781 (struct bb_bitmap_sets): Remove deferred member.
3782 (BB_DEFERRED): Remove.
3783 (defer_or_phi_translate_block): Remove.
3784 (compute_antic_aux): Remove deferring of blocks, assert
3785 proper iteration order.
3786 (compute_antic): Do not set BB_DEFERRED.
3787 (eliminate): Allocate el_avail of proper size initially.
3789 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3791 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
3792 according to the value of crtl->args.pretend_args_size.
3794 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3796 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
3797 varargs information.
3799 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3801 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
3802 implementation for TARGET_SETUP_INCOMING_VARARGS.
3803 (nds32_strict_argument_naming): Refine comment.
3804 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
3805 Define for future implementation.
3807 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
3809 * config/i386/adxintrin.h (_subborrow_u32): New.
3810 (_addcarry_u32): Ditto.
3811 (_subborrow_u64): Ditto.
3812 (_addcarry_u64): Ditto.
3813 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
3815 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
3816 __builtin_ia32_sbb_u64
3818 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3820 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
3822 (nds32_function_arg_advance): Likewise.
3823 (nds32_init_cumulative_args): Likewise.
3824 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
3825 (NDS32_FIRST_GPR_REGNUM): Define.
3826 (NDS32_LAST_GPR_REGNUM): Define.
3827 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
3828 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
3829 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
3830 (machine_function): Use GRP-specific stuff.
3832 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3834 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
3835 (nds32_expand_epilogue): Likewise.
3836 (nds32_expand_prologue_v3push): Likewise.
3837 (nds32_expand_epilogue_v3pop): Likewise.
3839 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3841 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
3842 v3push/v3pop for variadic function.
3843 * config/nds32/nds32.md (prologue, epilogue): Likewise.
3845 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3847 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
3848 Check rtx for varargs implementation.
3849 (nds32_output_stack_pop): Likewise.
3850 * config/nds32/nds32-protos.h: Have a rtx argument for
3851 nds32_output_stack_push and nds32_output_stack_pop.
3852 * config/nds32/nds32.md: Likewise.
3854 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3856 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
3857 to check if FUNC is an interrupt service routine.
3858 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
3860 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3862 * config/nds32/nds32.h (machine_function): Add some fields for variadic
3863 arguments implementation.
3865 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3867 * config/nds32/nds32-predicates.c
3868 (nds32_valid_stack_push_pop): Rename to ...
3869 (nds32_valid_stack_push_pop_p): ... this.
3870 * config/nds32/nds32-protos.h: Likewise.
3871 * config/nds32/predicates.md: Likewise.
3873 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3875 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
3876 (nds32_emit_stack_v3push): ... this.
3877 (nds32_gen_stack_v3pop): Rename to ...
3878 (nds32_emit_stack_v3pop): ... this and consider CFA restore
3881 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3883 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
3884 (nds32_emit_stack_push_multiple): ... this.
3885 (nds32_gen_stack_pop_multiple): Rename to ...
3886 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
3889 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3892 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
3893 and add a second splitter to handle the remaining cases.
3895 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3897 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
3899 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
3901 * cfgexpand.c (label_rtx_for_bb): Change type to
3902 hash_map<basic_block, rtx_code_label *> *.
3903 (expand_gimple_basic_block): Adjust.
3904 (pass_expand::execute): Likewise.
3906 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
3908 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
3909 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
3910 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
3911 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
3912 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
3913 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
3914 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
3917 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
3919 * alloc-pool.c: Include coretypes.h.
3920 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
3921 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
3922 hash_set instead of htab.
3923 * ggc-page.c (in_gc): New variable.
3924 (ggc_free): Do nothing if a collection is taking place.
3925 (ggc_collect): Set in_gc appropriately.
3926 * ggc.h (gt_ggc_mx(const char *)): New function.
3927 (gt_pch_nx(const char *)): Likewise.
3928 (gt_ggc_mx(int)): Likewise.
3929 (gt_pch_nx(int)): Likewise.
3930 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
3931 (hash_map::hash_entry::pch_nx): Likewise.
3932 (hash_map::hash_entry::pch_nx_helper): Likewise.
3933 (hash_map::hash_map): Adjust.
3934 (hash_map::create_ggc): New function.
3935 (gt_ggc_mx): Likewise.
3936 (gt_pch_nx): Likewise.
3937 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
3938 (default_hashset_traits::pch_nx): Likewise.
3939 (hash_set::hash_entry::ggc_mx): Likewise.
3940 (hash_set::hash_entry::pch_nx): Likewise.
3941 (hash_set::hash_entry::pch_nx_helper): Likewise.
3942 (hash_set::hash_set): Adjust.
3943 (hash_set::create_ggc): New function.
3944 (hash_set::elements): Likewise.
3945 (gt_ggc_mx): Likewise.
3946 (gt_pch_nx): Likewise.
3947 * hash-table.h (hash_table::hash_table): Adjust.
3948 (hash_table::m_ggc): New member.
3949 (hash_table::~hash_table): Adjust.
3950 (hash_table::expand): Likewise.
3951 (hash_table::empty): Likewise.
3952 (gt_ggc_mx): New function.
3953 (hashtab_entry_note_pointers): Likewise.
3954 (gt_pch_nx): Likewise.
3956 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3958 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
3959 built-in definition.
3960 (XVCVUXDDP_SCALE): Likewise.
3961 (XVCVDPSXDS_SCALE): Likewise.
3962 (XVCVDPUXDS_SCALE): Likewise.
3963 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3964 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
3965 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
3966 VSX_BUILTIN_XVCVDPUXDS_SCALE.
3967 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
3969 * config/rs6000/rs6000.c (real.h): New include.
3970 (rs6000_scale_v2df): New function.
3971 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
3972 (UNSPEC_VSX_XVCVUXDDP): Likewise.
3973 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
3974 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
3975 (vsx_xvcvsxddp_scale): New define_expand.
3976 (vsx_xvcvsxddp): New define_insn.
3977 (vsx_xvcvuxddp_scale): New define_expand.
3978 (vsx_xvcvuxddp): New define_insn.
3979 (vsx_xvcvdpsxds_scale): New define_expand.
3980 (vsx_xvcvdpsxds): New define_insn.
3981 (vsx_xvcvdpuxds_scale): New define_expand.
3982 (vsx_xvcvdpuxds): New define_insn.
3983 * doc/extend.texi (vec_ctf): Add new prototypes.
3984 (vec_cts): Likewise.
3985 (vec_ctu): Likewise.
3986 (vec_splat): Likewise.
3987 (vec_div): Likewise.
3988 (vec_mul): Likewise.
3990 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3993 * config/arm/neon.md
3994 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
3995 <v_cmp_result>): New pattern.
3996 * config/arm/iterators.md (NEON_VCVT): New int iterator.
3997 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
3998 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
3999 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4000 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4001 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4003 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4006 * config/arm/iterators.md (FIXUORS): New code iterator.
4007 (VCVT): New int iterator.
4008 (su_optab): New code attribute.
4010 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4012 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4014 * config/aarch64/predicates.md (aarch64_comparison_operation):
4015 New special predicate.
4016 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4017 aarch64_comparison_operation instead of matching an operator.
4018 Update operand numbers.
4019 (csinc3<mode>_insn): Likewise.
4020 (*csinv3<mode>_insn): Likewise.
4021 (*csneg3<mode>_insn): Likewise.
4022 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
4023 * config/aarch64/aarch64.c (aarch64_get_condition_code):
4024 Return -1 instead of aborting on invalid condition codes.
4025 (aarch64_print_operand): Update aarch64_get_condition_code callsites
4026 to assert that the returned condition code is valid.
4027 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
4029 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
4031 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
4032 tree.def, and gimple.def
4034 2014-09-02 Jakub Jelinek <jakub@redhat.com>
4035 Balaji V. Iyer <balaji.v.iyer@intel.com>
4036 Igor Zamyatin <igor.zamyatin@intel.com>
4038 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
4039 (__cilkrts_cilk_for_64): Likewise.
4040 * cilk-common.c (declare_cilk_for_builtin): New function.
4041 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
4042 __cilkrts_cilk_for_64 bultins.
4043 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
4045 (cilk_for_32_fndecl): New define.
4046 (cilk_for_64_fndecl): Likewise.
4047 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
4048 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
4049 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
4050 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
4051 GF_OMP_FOR_COMBINED_INTO.
4052 * gimplify.c (gimplify_scan_omp_clauses): Added
4053 OMP_CLAUSE__CILK_FOR_COUNT_ case.
4054 (gimplify_adjust_omp_clauses): Ditto.
4055 (gimplify_omp_for): Added CILK_FOR case.
4056 (gimplify_expr): Ditto.
4057 * omp-low.c: Include cilk.h.
4058 (extract_omp_for_data): Set appropriate kind for
4059 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
4060 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
4061 (create_omp_child_function_name): Added second argument to handle
4063 (cilk_for_check_loop_diff_type): New function.
4064 (expand_cilk_for_call): Likewise.
4065 (expand_cilk_for): Likewise.
4066 (create_omp_child_function): Set cilk_for_count; handle the cases when
4067 it is true; call create_omp_child_function_name with second argument.
4068 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
4069 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
4070 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
4071 * tree-nested.c (convert_nonlocal_omp_clauses): Added
4072 OMP_CLAUSE__CILK_FOR_COUNT_ case.
4073 (convert_local_omp_clauses): Ditto.
4074 * tree-pretty-print.c (dump_omp_clause): Added
4075 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
4076 (dump_generic_node): Added CILK_FOR case.
4077 * tree.c (omp_clause_num_ops): New element
4078 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
4079 (omp_clause_code_name): New element _Cilk_for_count_.
4080 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
4081 * tree.def: Add tree code for CILK_FOR.
4083 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4085 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
4086 (ppc403-compare): Add "exts with dot" case.
4087 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
4088 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
4089 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
4090 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
4091 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
4092 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
4093 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
4094 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4095 cell-cmp-microcoded): Similarly.
4096 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
4097 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
4098 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
4099 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
4100 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
4101 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
4102 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
4103 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
4104 (power6-compare): Add "exts with dot" case.
4105 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
4106 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
4107 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
4109 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
4110 if avoiding Cell microcode.
4111 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
4112 (is_cracked_insn): Ditto.
4113 (insn_must_be_first_in_group): Ditto.
4114 * config/rs6000/rs6000.md (dot): Adjust comment.
4115 (cell_micro): Handle exts+dot.
4116 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
4117 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
4118 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
4119 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
4120 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
4121 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
4122 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
4124 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4126 * config/rs6000/rs6000.md (QHSI): Delete.
4127 (EXTQI, EXTHI, EXTSI): New mode iterators.
4128 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
4129 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
4130 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
4131 9 anonymous instructions, and 8 splitters): Delete.
4132 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
4133 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
4134 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
4135 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
4136 *zero_extendsi<mode>2_dot2): New.
4138 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4140 * config/rs6000/rs6000.md (any_extend): New code iterator.
4141 (u, su): New code attributes.
4142 (dmode, DMODE): New mode attributes.
4143 (<su>mul<mode>3_highpart): New.
4144 (*<su>mul<mode>3_highpart): New.
4145 (<su>mulsi3_highpart_le): New.
4146 (<su>muldi3_highpart_le): New.
4147 (<su>mulsi3_highpart_64): New.
4148 (<u>mul<mode><dmode>3): New.
4149 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
4151 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
4154 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4156 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
4157 *mulsi3_internal2, and two splitters): Delete.
4158 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
4160 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
4162 2014-09-02 Richard Biener <rguenther@suse.de>
4164 PR tree-optimization/62695
4165 * tree-ssa-structalias.c (find_func_clobbers): Add missing
4168 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
4171 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
4173 2014-09-01 Andi Kleen <ak@linux.intel.com>
4175 * file-find.c (add_prefix_begin): Add.
4176 (do_add_prefix): Rename from add_prefix with first argument.
4177 (add_prefix): Add new wrapper.
4178 * file-find.h (add_prefix_begin): Add.
4179 * gcc-ar.c (main): Support -B option.
4181 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4183 * genemit.c: Include dumpfile.h.
4184 (gen_split): Print name of splitter function to dump file.
4186 2014-09-01 Richard Biener <rguenther@suse.de>
4188 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
4189 Use stack auto_vecs for constraint expressions.
4190 (find_func_aliases_for_call): Likewise.
4191 (find_func_aliases): Likewise.
4192 (find_func_clobbers): Likewise.
4194 2014-09-01 Richard Biener <rguenther@suse.de>
4196 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
4197 operands vector in most cases. Remove redundant code.
4199 2014-09-01 Olivier Hainque <hainque@adacore.com>
4201 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
4202 $WIND_BASE instead of designating a harcoded arbitrary home dir.
4203 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
4205 2014-09-01 Richard Biener <rguenther@suse.de>
4207 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
4208 copy_reference_ops_from_call, vn_nary_op_compute_hash,
4209 vn_reference_compute_hash, vn_reference_insert): Remove.
4210 (vn_reference_lookup_call): New function.
4211 * tree-ssa-sccvn.c (vn_reference_compute_hash,
4212 copy_reference_ops_from_ref, copy_reference_ops_from_call,
4213 vn_reference_insert, vn_nary_op_compute_hash): Make static.
4214 (create_reference_ops_from_call): Remove.
4215 (vn_reference_lookup_3): Properly update shared_lookup_references.
4216 (vn_reference_lookup_pieces): Assert that we updated
4217 shared_lookup_references properly.
4218 (vn_reference_lookup): Likewise.
4219 (vn_reference_lookup_call): New function.
4220 (visit_reference_op_call): Use it. Avoid re-building the
4222 (visit_reference_op_load): Remove redundant lookup.
4223 (visit_reference_op_store): Perform special tail-merging work
4224 only when possibly doing tail-merging.
4225 (visit_use): Likewise.
4226 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
4228 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4231 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
4232 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
4233 (find_inc): Revert 2014-08-13 change.
4235 2014-09-01 Marek Polacek <polacek@redhat.com>
4238 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
4239 Change the type of V to unsigned HOST_WIDE_INT.
4241 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
4243 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
4244 the size of byte markers.
4245 (do_shift_rotate): Fix confusion between host, target and marker byte
4247 (verify_symbolic_number_p): Likewise.
4248 (find_bswap_or_nop_1): Likewise.
4249 (find_bswap_or_nop): Likewise.
4251 2014-09-01 Olivier Hainque <hainque@adacore.com>
4253 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4254 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
4256 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4258 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
4259 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
4260 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
4262 2014-09-01 Yury Gribov <y.gribov@samsung.com>
4266 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
4267 (build_check_stmt): Likewise.
4268 (instrument_strlen_call): Likewise.
4269 (asan_expand_check_ifn): Likewise and fix types.
4270 (maybe_cast_to_ptrmode): New function.
4272 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4274 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
4276 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
4278 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
4280 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
4282 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
4283 prefix to function labels when generating fast indirect calls.
4285 2014-08-30 David Malcolm <dmalcolm@redhat.com>
4289 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
4290 param back from rtx_insn * to rtx. Rename param from "label" to
4291 "label_or_return", reintroducing "label" as an rtx_insn * after
4292 we've ensured it's not a RETURN.
4293 (first_active_target_insn): Likewise for return type and param;
4294 add a checked cast to rtx_insn * once we've ensured "insn" is not
4296 (steal_delay_list_from_target): Convert param "pnew_thread" back
4297 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
4299 (own_thread_p): Convert param "thread" back from an rtx_insn * to
4300 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
4301 cast once we've established we're not dealing with a RETURN,
4302 renaming subsequent uses of "thread" to "thread_insn".
4303 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
4305 (follow_jumps): Convert return type and param "label" from
4306 rtx_insn * back to rtx. Move initialization of "value" to after
4307 the handling for ANY_RETURN_P, adding a checked cast there to
4308 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
4309 rename to "this_label_or_return", reintroducing "this_label" as
4310 an rtx_insn * once we've handled the case where it could be an
4312 (fill_slots_from_thread): Rename param "thread" to
4313 "thread_or_return", converting from an rtx_insn * back to an rtx.
4314 Reintroduce name "thread" as an rtx_insn * local with a checked
4315 cast once we've handled the case of it being an ANY_RETURN_P.
4316 Convert local "new_thread" from an rtx_insn * back to an rtx.
4317 Add a checked cast when assigning to "trial" from "new_thread".
4318 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
4319 checked cast to rtx_insn * from "new_thread" when invoking
4321 (fill_eager_delay_slots): Convert locals "target_label",
4322 "insn_at_target" from rtx_insn * back to rtx.
4323 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
4324 (relax_delay_slots): Convert locals "trial", "target_label" from
4325 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
4326 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
4327 invoking update_block.
4328 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
4329 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
4331 * resource.h (mark_target_live_regs): Undo erroneous conversion
4332 of second param of r214693, converting it back from rtx_insn * to
4333 rtx, since it could be a RETURN.
4335 * resource.c (find_dead_or_set_registers): Similarly, convert
4336 param "jump_target" back from an rtx_insn ** to an rtx *, as we
4337 could be writing back a RETURN. Rename local rtx_insn * "next" to
4338 "next_insn", and introduce "lab_or_return" as a local rtx,
4339 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
4340 (mark_target_live_regs): Undo erroneous conversion
4341 of second param of r214693, converting it back from rtx_insn * to
4342 rtx, since it could be a RETURN. Rename it from "target" to
4343 "target_maybe_return", reintroducing the name "target" as a local
4344 rtx_insn * with a checked cast, after we've handled the case of
4347 2014-08-29 DJ Delorie <dj@redhat.com>
4349 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
4350 pointer size up to a power of two.
4351 * defaults.h (DWARF2_ADDR_SIZE): Round up.
4352 (POINTER_SIZE_UNITS): New, rounded up value.
4353 * dwarf2asm.c (size_of_encoded_value): Use it.
4354 (dw2_output_indirect_constant_1): Likewise.
4355 * expmed.c (init_expmed_one_conv): We now know the sizes of
4357 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
4358 * optabs.c (expand_float): Use precision, not size.
4359 (expand_fix): Likewise.
4360 * simplify-rtx (simplify_unary_operation_1): Likewise.
4361 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4362 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
4363 (default_assemble_integer) Likewise.
4364 (dump_tm_clone_pairs): Likewise.
4365 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
4366 * var-tracking.c (adjust_mems): Allow partial-int modes also.
4367 (prepare_call_arguments): Likewise.
4368 * stor-layout.c (finalize_type_size): Preserve precision.
4369 (layout_type): Use precision, not size.
4371 * expr.c (convert_move): If the target has an explicit converter,
4374 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4376 * gdbinit.in: Skip various inline functions in rtl.h when
4379 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
4382 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
4384 2014-08-29 Richard Biener <rguenther@suse.de>
4386 PR tree-optimization/62291
4387 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
4388 exactly the vector size needed and use quick_push.
4389 (phi_translate_1): Adjust comment.
4390 (valid_in_sets): Remove block argument and remove pointless
4392 (dependent_clean): Adjust for removal of block argument.
4394 (compute_antic_aux): Likewise.
4395 (compute_partial_antic_aux): Likewise.
4397 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4399 Anna Tikhonova <anna.tikhonova@intel.com>
4400 Ilya Tocar <ilya.tocar@intel.com>
4401 Andrey Turetskiy <andrey.turetskiy@intel.com>
4402 Ilya Verbin <ilya.verbin@intel.com>
4403 Kirill Yukhin <kirill.yukhin@intel.com>
4404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4406 * config/i386/sse.md
4407 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
4408 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
4409 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
4410 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
4412 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4413 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4414 Anna Tikhonova <anna.tikhonova@intel.com>
4415 Ilya Tocar <ilya.tocar@intel.com>
4416 Andrey Turetskiy <andrey.turetskiy@intel.com>
4417 Ilya Verbin <ilya.verbin@intel.com>
4418 Kirill Yukhin <kirill.yukhin@intel.com>
4419 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4421 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
4422 * config/i386/sse.md
4423 (define_mode_iterator VI4_128_8_256): New.
4424 (define_mode_iterator VI2_128_4_256): Ditto.
4425 (define_mode_iterator PMOV_DST_MODE): Rename into
4426 (define_mode_iterator PMOV_DST_MODE_1): this.
4427 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
4428 Use PMOV_DST_MODE_1 mode iterator.
4429 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4431 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4433 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
4434 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
4435 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
4436 (define_mode_iterator PMOV_DST_MODE_2): New.
4437 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
4438 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
4439 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
4441 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
4442 (define_mode_attr pmov_dst_3): Ditto.
4443 (define_mode_attr pmov_dst_zeroed_3): Ditto.
4444 (define_mode_attr pmov_suff_3): Ditto.
4445 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
4446 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
4447 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
4448 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
4449 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
4450 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
4451 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
4452 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
4453 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
4454 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
4455 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
4456 (define_mode_attr pmov_dst_4): Ditto.
4457 (define_mode_attr pmov_dst_zeroed_4): Ditto.
4458 (define_mode_attr pmov_suff_4): Ditto.
4459 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
4460 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
4461 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
4462 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
4463 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
4464 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
4465 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
4466 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
4467 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
4468 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
4469 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
4471 2014-08-29 Richard Biener <rguenther@suse.de>
4473 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
4474 NON_LVALUE_EXPR in gimple.
4476 2014-08-29 Richard Biener <rguenther@suse.de>
4479 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
4480 from previous refactoring.
4481 (gimple_fold_builtin_strncpy): Likewise.
4483 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4486 * function.c (assign_parm_setup_reg): Remove erroneous checked
4487 cast to rtx_insn * on result of gen_extend_insn in favor of
4488 introducing a new local rtx "pat".
4490 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4492 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
4494 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
4496 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4498 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
4499 (next_insn): Likewise.
4500 * emit-rtl.c (next_insn): Likewise.
4501 (previous_insn): Likewise.
4502 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
4503 "insn" and "next" from rtx to rtx_insn *.
4504 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
4505 "insn", "insn1", "vliw_start", "prologue_end_note",
4506 "last_insn_in_packet".
4508 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4510 * shrink-wrap.h (active_insn_between): Strengthen both params from
4512 * function.c (active_insn_between): Likewise.
4514 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4516 * genattr.c (main): When writing out insn-attr.h, strengthen param
4517 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
4518 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
4519 writing out the definition of dfa_clear_single_insn_cache to the
4520 generated insn-automata.c
4522 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4524 * resource.h (clear_hashed_info_for_insn): Strengthen param from
4526 (incr_ticks_for_insn): Likewise.
4527 (init_resource_info): Likewise.
4529 * resource.c (init_resource_info): Likewise.
4530 (clear_hashed_info_for_insn): Likewise.
4531 (incr_ticks_for_insn): Likewise.
4533 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
4535 (steal_delay_list_from_target): Use methods of "seq".
4536 (try_merge_delay_insns): Use methods of "merged_insns".
4537 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
4538 (reorg_redirect_jump): Likewise for param "jump".
4540 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4542 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
4544 * config/s390/s390.c (s390_split_branches): Eliminate top-level
4545 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
4547 (s390_mainpool_finish): In three places, split out a local rtx
4548 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
4549 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
4550 and split another local rtx "insn" out into rtx "pat" and
4552 * config/sh/sh.c (output_branchy_insn): Rather than working
4553 directly on operands[9], introduce local rtx_code_label *
4554 variables named "lab" in two places, working on them, and then
4555 assigning them to operands[9], so that the intervening operations
4556 are known by the type system to be on insns.
4558 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4560 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
4563 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
4564 in invocation of INSN_HAS_LOCATION.
4566 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4568 * config/rs6000/altivec.h (vec_xl): New #define.
4569 (vec_xst): Likewise.
4570 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
4571 (XXSPLTD_V2DI): Likewise.
4572 (DIV_V2DI): Likewise.
4573 (UDIV_V2DI): Likewise.
4574 (MUL_V2DI): Likewise.
4575 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4576 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
4577 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
4578 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
4579 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
4580 (UNSPEC_VSX_DIVSD): Likewise.
4581 (UNSPEC_VSX_DIVUD): Likewise.
4582 (UNSPEC_VSX_MULSD): Likewise.
4583 (vsx_mul_v2di): New insn-and-split.
4584 (vsx_div_v2di): Likewise.
4585 (vsx_udiv_v2di): Likewise.
4586 (vsx_xxspltd_<mode>): New insn.
4588 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4590 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
4592 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
4593 (NEXT_INSN): Likewise.
4594 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
4595 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
4597 (no_labels_between_p): Likewise for both params.
4599 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
4600 cast when using NEXT_INSN on operands[2].
4601 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
4602 "insn" from rtx to rtx_insn *, adding a checked cast.
4603 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
4605 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
4607 (arc_text_label): Likewise for param "insn".
4608 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
4610 (arc_ccfsm_record_condition): Likewise for param "jump".
4611 (arc_text_label): Likewise for local "label".
4612 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
4613 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
4614 a method for typesafety. Add a checked cast.
4615 * config/arc/constraints.md (Clb): Add a checked cast when getting
4616 the CODE_LABEL from a LABEL_REF.
4617 * config/arm/arm.c (require_pic_register): Strengthen locals
4618 "seq", "insn" from rtx to rtx_insn *.
4619 (create_fix_barrier): Likewise for locals "selected", "next".
4620 (thumb1_reorg): Likewise for locals "prev", "insn".
4621 (arm_expand_prologue): Likewise for local "last".
4622 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
4624 (thumb2_output_casesi): Likewise for operands[2].
4625 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
4626 strengthen local "insn" from rtx to rtx_insn *.
4627 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
4628 type and param "insn".
4629 (find_prev_insn_start): Likewise.
4630 (hwloop_optimize): Likewise for locals "insn", "last_insn",
4632 (gen_one_bundle): Likewise for loal "t".
4633 (find_load): Likewise for param "insn".
4634 (workaround_speculation): Likewise for locals "insn", "next",
4635 "target", "next_tgt".
4636 * config/c6x/c6x.c (assign_reservations): Likewise for both params
4637 and for locals "insn", "within", "last".
4638 (count_unit_reqs): Likewise for params "head", "tail" and local
4640 (try_rename_operands): Likewise for params "head", "tail".
4641 (reshuffle_units): Likewise for locals "head", "tail", "insn".
4642 (struct c6x_sched_context): Likewise for fields
4643 "last_scheduled_insn", "last_scheduled_iter0".
4644 (init_sched_state): Replace NULL_RTX with NULL.
4645 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
4647 (undo_split_delayed_nonbranch): Likewise for param and for local
4649 (conditionalize_after_sched): Likewise for local "insn".
4650 (bb_earliest_end_cycle): Likewise.
4651 (filter_insns_above): Likewise for locals "insn", "next".
4652 (hwloop_optimize): Remove redundant checked cast.
4653 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
4654 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
4656 (cris_simple_epilogue): Likewise.
4657 (cris_expand_prologue): Likewise.
4658 (cris_expand_epilogue): Likewise.
4659 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
4660 local "insn" from rtx to rtx_insn *.
4661 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
4662 (struct frv_packet_group): Likewise for the elements within array
4663 fields "insns", "sorted", and for field "nop".
4664 (frv_packet): Likewise for the elements within array field
4666 (frv_add_insn_to_packet): Likewise for param "insn".
4667 (frv_insert_nop_in_packet): Likewise for param "insn" and local
4669 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
4670 (frv_sort_insn_group_1): Likewise for local "insn".
4671 (frv_optimize_membar_local): Likewise.
4672 (frv_align_label): Likewise for locals "x", "last", "barrier",
4674 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
4676 (ia64_sched_init): Likewise for local "insn".
4677 (scheduled_good_insn): Likewise for param "last".
4678 (struct _ia64_sched_context): Likewise for field
4679 "last_scheduled_insn".
4680 (ia64_init_sched_context): Replace NULL_RTX with NULL.
4681 (struct bundle_state): Likewise for field "insn".
4682 (issue_nops_and_insn): Likewise for param "insn".
4683 (get_next_important_insn): Likewise for return type and both
4685 (ia64_add_bundle_selector_before): Likewise for param "insn".
4686 (bundling): Likewise for params "prev_head_insn", "tail" and
4687 locals "insn", "next_insn", "b". Eliminate top-level local rtx
4688 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
4689 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
4690 Strengthen final param from rtx to rtx_insn *.
4691 (iq2000_move_1word): Likewise for second param.
4692 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
4693 param "cur_insn" and local "next_insn".
4694 (iq2000_move_1word): Likewise for param "insn".
4695 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
4696 casts when using NEXT_INSN on operands[1].
4697 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
4698 "insn" from rtx to rtx_insn *.
4699 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
4700 "x", introducing local rtx_insn * "insn" for when working with the
4701 CODE_LABEL of the LABEL_REF.
4702 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
4704 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
4706 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
4708 (conditionalize_block): Likewise for return type and param.
4709 (mcore_is_dead): Likewise for param "first" and local "insn".
4710 (emit_new_cond_insn): Likewise for return type.
4711 (conditionalize_block): Likewise for return type, param, and
4712 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
4714 (conditionalize_optimization): Likewise for local "insn".
4715 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
4717 * config/microblaze/microblaze.md: Add checked casts when using
4719 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
4720 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
4721 and rtx_insn * "insn".
4722 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
4723 checked cast when using NEXT_INSN on operands[2].
4724 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
4725 local "insn" from rtx to rtx_insn *.
4726 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
4728 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
4729 Add a checked cast when using NEXT_INSN on operands[1].
4730 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
4732 (pa_output_cbranch): Likewise for final param.
4733 (pa_output_lbranch): Likewise for second param.
4734 (pa_output_bb): Likewise for third param.
4735 (pa_output_bvb): Likewise.
4736 (pa_output_dbra): Likewise for second param.
4737 (pa_output_movb): Likewise.
4738 (pa_output_parallel_movb): Likewise.
4739 (pa_output_parallel_addb): Likewise.
4740 (pa_output_millicode_call): Likewise for first param.
4741 (pa_output_mul_insn): Likewise for second param.
4742 (pa_output_div_insn): Likewise for third param.
4743 (pa_output_mod_insn): Likewise for second param.
4744 (pa_jump_in_call_delay): Likewise for param.
4745 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
4746 (pa_output_div_insn): Likewise.
4747 (pa_output_mod_insn): Likewise.
4748 (pa_output_cbranch): Likewise.
4749 (pa_output_lbranch): Likewise.
4750 (pa_output_bb): Likewise.
4751 (pa_output_bvb): Likewise.
4752 (pa_output_dbra): Likewise.
4753 (pa_output_movb): Likewise.
4754 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
4755 to simplify and for typesafety.
4756 (pa_output_call): Use method of rtx_sequence *.
4757 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
4758 (pa_jump_in_call_delay): Likewise.
4759 (pa_output_parallel_movb): Likewise.
4760 (pa_output_parallel_addb): Likewise.
4761 (pa_following_call): Likewise.
4762 (pa_combine_instructions): Likewise for locals "anchor",
4764 (pa_can_combine_p): Likewise for params "anchor", "floater" and
4765 locals "start", "end".
4766 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
4767 param "insn" and local "local_insn".
4768 (picochip_final_prescan_insn): Likewise for local "local_insn".
4769 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
4771 (uses_TOC): Likewise.
4772 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
4773 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
4774 splitting out to more tightly-scoped locals, 3 as rtx and one as
4776 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
4778 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
4780 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
4782 (fixup_addr_diff_vecs): Likewise.
4783 (reg_unused_after): Likewise for param 2.
4784 (sh_can_redirect_branch): Likewise for both params.
4785 (check_use_sfunc_addr): Likewise for param 1.
4786 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
4787 (find_barrier): Likewise for local "last_got".
4788 (gen_block_redirect): Likewise for return type, param "jump" and
4789 locals "prev", "scan", "next", "insn".
4790 (struct far_branch): Likewise for fields "near_label",
4791 "insert_place", "far_label".
4792 (gen_far_branch): Likewise for local "jump".
4793 (fixup_addr_diff_vecs): Likewise for param "first" and locals
4795 (barrier_align): Likewise for param and for locals "prev", "x".
4796 Introduce local rtx_sequence * "prev_seq" and use insn method for
4797 typesafety and clarity.
4798 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
4799 (get_dest_uid): Likewise for local "dest".
4800 (split_branches): Likewise for locals "next", "beyond", "label",
4801 "block", "far_label". Add checked casts when assigning to
4802 bp->far_label and "far_label".
4803 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
4804 (sequence_insn_p): Likewise.
4805 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
4806 more loop-scoped rtx "insn" when walking LABEL_REFS.
4807 (sh_can_redirect_branch): Strengthen both params from rtx to
4809 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
4810 new local rtx_sequence * "seq" via a dyn_cast, and use a method
4811 for clarity and typesafety.
4812 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
4813 "insn" from rtx to rtx_insn *.
4814 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
4815 when using NEXT_INSN on the CODE_LABEL in operands[2].
4816 (define_insn "casesi_worker_2"): Likewise.
4817 (define_insn "casesi_shift_media"): Likewise.
4818 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
4820 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
4821 Strengthen field "insn" from rtx to rtx_insn *.
4822 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
4823 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
4824 param "start_insn" and local "start_insn".
4825 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
4827 (find_set_of_reg_bb): Likewise for param "insn".
4828 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
4829 (trace_reg_uses): Likewise for param "start_insn".
4830 (sh_treg_combine::cbranch_trace): Likewise for field
4832 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
4834 (sh_treg_combine::record_set_of_reg): Likewise for param
4835 "start_insn" and local "i".
4836 (sh_treg_combine::can_remove_cstore): Likewise for local
4838 (sh_treg_combine::try_optimize_cbranch): Likewise for param
4840 (sh_treg_combine::execute): Likewise for local "i".
4841 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
4843 (sparc_check_64): Likewise for second param.
4844 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
4845 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
4846 dyn_cast, using its insn method for typesafety and clarity.
4847 (empty_delay_slot): Strengthen param "insn" from rtx to
4849 (set_extends): Likewise.
4850 (sparc_check_64): Likewise.
4851 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
4852 for locals "seq", "last_insn".
4853 (combine_bnp): Likewise for param "insn".
4854 (xstormy16_reorg): Likewise for local "insn".
4855 * config/v850/v850.c (substitute_ep_register): Likewise for params
4856 "first_insn", "last_insn" and local "insn".
4857 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
4858 elements of "regs" array, and local "insn".
4859 * except.c (emit_note_eh_region_end): Likewise for param "insn".
4860 * final.c (final_sequence): Strengthen this global from rtx to
4862 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
4864 (final_scan_insn): Update assignment to "final_sequence" to be
4865 from "seq", the cast version of "body", for type-safety.
4866 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
4867 "insns" from rtx to rtx_insn *.
4868 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
4869 * genattr.c (main): When writing out generated insn-attr.h,
4870 strengthen params 1 and 3 of eligible_for_delay,
4871 eligible_for_annul_true, eligible_for_annul_false from rtx to
4873 * genattrtab.c (write_eligible_delay): Likewise when writing out
4874 generated insn-attrtab.c; also local "insn" the generated
4876 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
4878 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
4879 "start_label" from rtx to rtx_insn *.
4880 * ira.c (decrease_live_ranges_number): Likewise for local "p".
4881 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
4882 "insns" and local "insn".
4883 (validate_equiv_mem): Likewise for param "start" and local "insn".
4884 (memref_used_between_p): Likewise for params "start", "end" and
4886 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
4888 * loop-doloop.c (doloop_optimize): Within region guarded by
4889 INSN_P (doloop_pat), introduce a new local rtx_insn *
4890 "doloop_insn" via a checked cast, and use it for typesafety,
4891 eventually writing the value back into doloop_pat.
4892 * output.h (final_sequence): Strengthen this global from rtx to
4894 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
4895 reintroducing "insn" as an rtx_insn * via a checked cast.
4896 Strengthen param "attempt" and local "new_insn"from rtx to
4898 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
4900 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
4901 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
4902 "p" in favor of more tightly-scoped replacements, sometimes rtx
4903 and sometimes rtx_insn *, as appropriate.
4904 (delete_output_reload): Eliminate top-level rtx "i1", splitting
4905 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
4906 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
4907 local "trial" from rtx to rtx_insn *.
4908 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
4909 rtx to rtx_insn *. Strenghten local "pat" from rtx to
4910 rtx_sequence * and use methods for clarity and typesafety.
4911 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
4912 rtx to rtx_insn *. Strenghten local "li" from rtx to
4913 rtx_insn_list * and use its methods for clarity and typesafety.
4914 (steal_delay_list_from_target): Strengthen param "insn" from rtx
4916 (steal_delay_list_from_fallthrough): Likewise.
4917 (try_merge_delay_insns): Likewise for param "thread" and locals
4918 "trial", "next_trial", "delay_insn".
4919 (redundant_insn): Likewise for param "target" and local "trial".
4920 (own_thread_p): Likewise for param "thread" and locals
4921 "active_insn", "insn".
4922 (get_label_before): Likewise for param "insn".
4923 (fill_simple_delay_slots): Likewise for local "new_label"; use
4924 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
4925 (label_before_next_insn): Strengthen return type and local "insn"
4926 from rtx to rtx_insn *.
4927 (relax_delay_slots): Likewise for locals "other", "tmp".
4928 (make_return_insns): Likewise for param "first" and locals "insn",
4929 "jump_insn", "prev". Move declaration of "pat" to its assignment
4930 and strengthen from rtx to rtx_sequence *. Use its methods for
4931 clarity and typesafety.
4932 * rtlanal.c (no_labels_between_p): Strengthen params from
4933 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
4935 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
4936 from const_rtx to const rtx_insn *.
4937 (reg_set_between_p): Rename param "from_insn" to
4938 "uncast_from_insn", and reintroduce "from_insn" as a
4939 const rtx_insn * via a checked cast.
4940 (modified_between_p): Likewise for param "start" as "uncast_start".
4941 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
4942 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
4943 "tmp", head" from rtx to rtx_insn *.
4944 (recompute_rev_top_order): Likewise for local "insn".
4945 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
4946 * store-motion.c (build_store_vectors): Likewise for local "insn".
4947 Strengthen local "st" from rtx to rtx_insn_list * and use methods
4948 for clarity and typesafety.
4949 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
4951 (computation_cost): Likewise for local "seq".
4952 (get_address_cost): Likewise.
4954 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4956 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
4958 (label_is_jump_target_p): Likewise for second param.
4960 * rtlanal.c (tablejump_p): Likewise for param "insn".
4961 (label_is_jump_target_p): Likewise for param "jump_insn".
4963 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4965 * rtl.h (find_first_parameter_load): Strengthen return type and
4966 both params from rtx to rtx_insn *.
4967 * rtlanal.c (find_first_parameter_load): Strengthen return type,
4968 both params and locals "before", "first_set" from rtx to
4969 rtx_insn *. Remove now-redundant cast.
4970 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
4972 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4974 * rtl.h (find_last_value): Delete.
4975 * rtlanal.c (find_last_value): Delete.
4977 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4979 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
4980 from rtx to rtx_insn *.
4981 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
4982 rtx "note" with new local rtx_insn * "new_head" when calculating
4983 head insn of new basic block.
4984 * combine.c (combine_split_insns): Strengthen return type and local
4985 "ret" from rtx to rtx_insn *.
4986 (likely_spilled_retval_p): Likewise for locals "use" and "p".
4987 (try_combine): Eliminate local "m_split", splitting into new
4988 locals "m_split_insn" and "m_split_pat".
4989 (find_split_point): Strengthen local "seq" from rtx into
4991 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
4992 locals "label", "branch".
4993 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
4995 (define_expand "umulsi3_highpart"): Likewise for local "insn".
4996 * dse.c (note_add_store_info): Likewise for fields "first",
4998 (note_add_store): Likewise for local "insn".
4999 (emit_inc_dec_insn_before): Likewise for locals "insn",
5001 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5002 (replace_read): Likewise for locals "insns", "this_insn".
5003 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5004 (notice_eh_throw): Likewise for param "insn".
5005 (before_next_cfi_note): Likewise for return type, param, and local
5007 (connect_traces): Likewise for local "note".
5008 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5009 (verify_rtl_sharing): Likewise.
5010 (unshare_all_rtl_in_chain): Likewise for param "insn".
5011 (get_first_nonnote_insn): Likewise for local "insn".
5012 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
5013 "seq" and use its methods to clarify things.
5014 (next_insn): Strengthen return type from rtx to rtx_insn *.
5015 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5016 local rtx_insn * using a checked cast, dropping a checked cast
5017 made redundant by this change. Use a cast to and method of
5018 rtx_sequence to clarify the code.
5019 (previous_insn): Rename param "insn" to "uncast_insn" and
5020 reintroduce "insn" as a local rtx_insn * using a checked cast,
5021 dropping a checked cast made redundant by this change. Use a cast
5022 to and method of rtx_sequence to clarify the code.
5023 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
5024 reintroduce "insn" as a local rtx_insn * using a checked cast,
5025 dropping a checked cast made redundant by this change.
5026 (next_nonnote_insn_bb): Likewise.
5027 (prev_nonnote_insn): Likewise.
5028 (prev_nonnote_insn_bb): Likewise.
5029 (next_nondebug_insn): Likewise.
5030 (prev_nondebug_insn): Likewise.
5031 (next_nonnote_nondebug_insn): Likewise.
5032 (prev_nonnote_nondebug_insn): Likewise.
5033 (next_real_insn): Likewise.
5034 (prev_real_insn): Likewise.
5035 (next_active_insn): Likewise.
5036 (prev_active_insn): Likewise.
5037 (next_cc0_user): Likewise. Use rtx_sequence and a method for
5039 (prev_cc0_setter): Likewise.
5040 (try_split): Rename param "trial" to "uncast_trial" and
5041 reintroduce "insn" as a local rtx_insn * using a checked cast,
5042 dropping checked casts made redundant by this change.
5043 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
5045 (remove_insn): Rename param "insn" to "uncast_insn" and
5046 reintroduce "insn" as a local rtx_insn * using a checked cast.
5047 (emit_pattern_after_setloc): Likewise for param "after", as
5049 (emit_pattern_after): Likewise. Strengthen local "prev" from
5051 (emit_pattern_before_setloc): Rename param "before" to
5052 "uncast_before" and reintroduce "before" as a local rtx_insn *
5053 using a checked cast. Strengthen locals "first", "last" from
5055 (emit_pattern_before): Likewise rename/cast param "before" to
5056 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
5057 * except.c (copy_reg_eh_region_note_forward): Strengthen param
5058 "first" and local "insn" from rtx to rtx_insn *.
5059 (copy_reg_eh_region_note_backward): Likewise for param "last"
5061 * expr.c (fixup_args_size_notes): Rename param "last" to
5062 "uncast_last" and reintroduce "last" as a local rtx_insn *
5063 using a checked cast. Strengthen local "insn" from rtx to
5065 * function.c (set_insn_locations): Strengthen param "insn" from
5067 (record_insns): Likewise for param "insns" and local "tmp".
5068 (active_insn_between): Rename param "tail" to
5069 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
5070 using a checked cast.
5071 (thread_prologue_and_epilogue_insns): Split out top-level local
5072 rtx "seq" into three different rtx_insn * locals. Strengthen
5073 local "prologue_seq" from rtx to rtx_insn *.
5074 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
5075 from rtx to rtx_insn *.
5076 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5077 (priority): Likewise for locals "prev_first", "twin".
5078 (setup_insn_max_reg_pressure): Likewise for param "after".
5079 (sched_setup_bb_reg_pressure_info): Likewise.
5080 (no_real_insns_p): Strengthen params from const_rtx to
5082 (schedule_block): Strengthen local "next_tail" from rtx to
5084 * ifcvt.c (find_active_insn_before): Strengthen return type and
5085 param "insn" from rtx to rtx_insn *.
5086 (find_active_insn_after): Likewise.
5087 (cond_exec_process_insns): Likewise for param "start" and local "insn".
5088 (cond_exec_process_if_block): Likewise for locals "then_start",
5089 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
5090 (noce_process_if_block): Likewise for local "jump".
5091 (merge_if_block): Likewise for two locals named "end".
5092 (cond_exec_find_if_block): Likewise for local "last_insn".
5093 * jump.c (delete_related_insns): Rename param "insn" to
5094 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
5095 checked cast. Strengthen local "p" from rtx to rtx_insn *.
5096 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
5098 (split_reg): Likewise.
5099 * lra.c (lra_process_new_insns): Likewise.
5100 * modulo-sched.c (permute_partial_schedule): Strengthen param
5101 "last" from rtx to rtx_insn *.
5102 * optabs.c (add_equal_note): Likewise for param "insns" and local
5104 (expand_binop_directly): Add checked casts to rtx_insn * within
5105 NEXT_INSN (pat) uses.
5106 (expand_unop_direct): Likewise.
5107 (maybe_emit_unop_insn): Likewise.
5108 * recog.c (peep2_attempt): Strengthen locals "last",
5109 "before_try", "x" from rtx to rtx_insn *.
5110 * reorg.c (optimize_skip): Strengthen return type and local
5111 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
5112 and locals "trial", "next_trial" from rtx to rtx_insn *.
5113 * resource.c (next_insn_no_annul): Strengthen return type and
5114 param "insn" from rtx to rtx_insn *. Use a cast to and method of
5115 rtx_sequence to clarify the code.
5116 (mark_referenced_resources): Add a checked cast to rtx_insn *
5117 within PREV_INSN (x).
5118 (find_dead_or_set_registers): Strengthen return type, param
5119 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
5120 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
5122 (mark_target_live_regs): Strengthen params "insns" and "target",
5123 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
5124 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
5126 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
5127 from rtx to rtx_insn *.
5128 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
5129 from rtx to rtx_insn *.
5130 (copy_reg_eh_region_note_backward): Likewise.
5131 (unshare_all_rtl_in_chain): Likewise for sole param.
5132 (dump_rtl_slim): Strengthen second and third params from const_rtx
5133 to const rtx_insn *.
5134 * sched-deps.c (sched_free_deps): Strengthen params "head" and
5135 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
5136 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
5137 "next_tail" from rtx to rtx_insn *.
5138 (begin_move_insn): Likewise for local "next".
5139 * sched-int.h (sched_free_deps): Likewise for first and second
5141 (no_real_insns_p): Strengthen both params from const_rtx to
5143 (sched_setup_bb_reg_pressure_info): Strengthen second params from
5145 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
5147 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
5148 and locals "insn", "tail" from const_rtx to const rtx_insn *.
5149 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
5151 (debug_rtl_slim): Strengthen params "first" and "last" from
5152 const_rtx to const rtx_insn *.
5153 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
5154 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
5155 (convert_to_simple_return): Likewise for param "returnjump".
5156 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
5158 (convert_to_simple_return): Likewise for param "returnjump".
5159 * valtrack.c (propagate_for_debug): Likewise for params
5161 * valtrack.h (propagate_for_debug): Likewise for second param.
5163 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5165 * output.h (insn_current_reference_address): Strengthen param
5166 from rtx to rtx_insn *.
5167 * final.c (insn_current_reference_address): Likewise.
5169 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5171 * basic-block.h (inside_basic_block_p): Strengthen param from
5172 const_rtx to const rtx_insn *.
5173 * cfgbuild.c (inside_basic_block_p): Likewise.
5175 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5177 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
5179 (get_trace_info): Likewise for param "insn".
5180 (save_point_p): Likewise.
5181 (maybe_record_trace_start): Likewise for both params.
5182 (maybe_record_trace_start_abnormal): Likewise.
5183 (create_trace_edges): Likewise for sole param and for three of the
5185 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
5186 to rtx_insn *, and update a call to pat->element to pat->insn.
5188 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5190 * function.h (struct expr_status): Convert field "x_forced_labels"
5191 from rtx_expr_list * to rtx_insn_list *.
5193 * cfgbuild.c (make_edges): Convert local "x" from an
5194 rtx_expr_list * to an rtx_insn_list *, replacing use of
5195 "element" method with "insn" method.
5196 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5197 * except.c (sjlj_emit_dispatch_table): Replace use of
5198 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
5200 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
5201 rtx_expr_list * to an rtx_insn_list *, replacing use of
5202 "element" method with "insn" method.
5203 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5204 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
5205 rtx_insn *, adding a checked cast. Replace use of
5206 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
5208 (expand_label): Likewise for local "label_r".
5210 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5212 * function.h (struct rtl_data): Convert field
5213 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5215 * rtl.h (remove_node_from_insn_list): New prototype.
5217 * builtins.c (expand_builtin): When prepending to
5218 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5220 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
5221 to rtx_insn_list *, and use its "insn" method rather than
5223 * cfgrtl.c (delete_insn): Use new function
5224 remove_node_from_insn_list rather than
5225 remove_node_from_expr_list.
5226 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
5227 to rtx_insn_list *, and use its "insn" method rather than
5229 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5230 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5231 * rtlanal.c (remove_node_from_insn_list): New function, adapted
5232 from remove_node_from_expr_list.
5233 * stmt.c (expand_label): When prepending to
5234 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5237 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5239 * function.h (struct rtl_data): Strengthen fields "x_return_label"
5240 and "x_naked_return_label" from rtx to rtx_code_label *.
5242 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5244 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
5245 (SET_NEXT_INSN): Likewise.
5246 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
5248 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
5249 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
5250 to split out the SEQUENCE from local "bundle", strengthening the
5251 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
5252 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
5253 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
5254 and the type of the elements of the "slot" array from rtx to
5256 (reorg_split_calls): Likewise for locals "insn" and "next", and
5257 the type of the elements of the "slot" array.
5259 * config/frv/frv.c (frv_nops): Likewise for the elements of this
5261 (frv_function_prologue): Likewise for locals "insn", "next",
5263 (frv_register_nop): Introduce a local "nop_insn" to be the
5264 rtx_insn * containing rtx "nop".
5266 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
5267 used as an insn and sometimes as a pattern, so rename it to
5268 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
5269 using it where dealing with the core insn.
5271 * config/picochip/picochip.c (reorder_var_tracking_notes):
5272 Strengthen locals "insn", "next", "last_insn", "queue",
5273 "next_queue", "prev" from rtx to rtx_insn *.
5275 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
5276 the second param is an rtx_insn ** rather than an rtx **.
5277 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
5278 from rtx to rtx_sequence *, and introduce local named "sequence",
5279 using methods of rtx_sequence to clarify the code.
5280 (remove_insn): Introduce local rtx_sequence * named "sequence" and
5282 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
5283 Rename param "after" to "uncast_after", reintroducing "after" as a
5284 local rtx_insn * with a checked cast.
5285 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
5286 reintroducing "after" as a local rtx_insn * with a checked cast.
5287 Strengthen local "last" from rtx to rtx_insn * and remove the
5288 now-redundant checked casts.
5289 (copy_delay_slot_insn): Strengthen return type and param from rtx
5292 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
5293 "last" from rtx to rtx_insn *.
5295 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5297 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
5298 param from rtx to rtx_insn *.
5300 * emit-rtl.c (copy_delay_slot_insn): Likewise.
5302 * reorg.c (skip_consecutive_labels): Strengthen return type, param
5303 and local "insn" from rtx to rtx_insn *.
5304 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
5305 (unfilled_slots_next): Likewise.
5306 (function_return_label): Strengthen from rtx to rtx_code_label *.
5307 (function_simple_return_label): Likewise.
5308 (first_active_target_insn): Strengthen return type and param from
5310 (find_end_label): Strengthen return type from rtx to
5311 rtx_code_label *; strengthen locals as appropriate.
5312 (emit_delay_sequence): Strengthen return type, param "insn" and
5313 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
5314 and local "li" from rtx to rtx_insn_list *, using methods of
5315 rtx_insn_list for clarity and typesafety.
5316 (add_to_delay_list): Strengthen return type and param "insn" from
5317 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
5318 rtx_insn_list * and use methods of rtx_insn_list.
5319 (delete_from_delay_slot): Strengthen return type, param "insn",
5320 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
5321 Strengthen local "seq" from rtx to rtx_sequence *, and local
5322 "delay_list" from rtx to rtx_insn_list *, using methods of
5323 rtx_sequence for clarity and type-safety.
5324 (delete_scheduled_jump): Add checked cast when invoking
5325 delete_from_delay_slot. Strengthen local "trial" from rtx to
5327 (optimize_skip): Strengthen return type and local "delay_list"
5328 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
5330 (steal_delay_list_from_target): Strengthen return type, param
5331 "delay_list" and local "new_delay_list" from rtx to
5332 rtx_insn_list *. Strengthen param "seq" from rtx to
5333 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
5335 Split out local "temp" into multiple more-tightly scoped locals:
5336 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
5337 of rtx_insn_list and rtx_sequence for clarity and typesafety.
5338 Strengthen locals named "trial" from rtx to rtx_insn *.
5339 (steal_delay_list_from_fallthrough): Strengthen return type and
5340 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
5341 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
5342 Strengthen local "trial" from rtx to rtx_insn *.
5343 (try_merge_delay_insns): Strength local "merged_insns" from rtx
5344 to rtx_insn_list * and use its methods. Strengthen local "pat"
5345 from rtx to rtx_sequence * and use its methods. Strengthen locals
5346 "dtrial" and "new_rtx" from rtx to rtx_insn *.
5347 (get_label_before): Strengthen return type and local "label" from
5349 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
5350 "next_trial", "next", prev". Strengthen local "delay_list" from
5351 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
5353 (follow_jumps): Strengthen return type, param "label" and locals
5354 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
5355 (fill_slots_from_thread): Strengthen return type, param
5356 "delay_list" from rtx to rtx_insn_list *. Strengthen params
5357 "insn", "thread", "opposite_thread" and locals "new_thread",
5358 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
5359 "sequence" from a checked cast to rtx_sequence so that we can call
5360 steal_delay_list_from_target and steal_delay_list_from_fallthrough
5361 with an rtx_sequence *.
5362 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
5363 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
5364 Strengthen local "delay_list" from rtx to rtx_insn_list *.
5365 (relax_delay_slots): Strengthen param "first" and locals "insn",
5366 "next", "trial", "delay_insn", "target_label" from rtx to
5367 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
5368 Introduce a local "trial_seq" for PATTERN (trial) of type
5369 rtx_sequence *, in both cases using methods of rtx_sequence.
5370 (dbr_schedule): Strengthen param "first" and locals "insn",
5371 "next", "epilogue_insn" from rtx to rtx_insn *.
5373 2014-08-28 Richard Biener <rguenther@suse.de>
5375 PR tree-optimization/62283
5376 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5377 Do not peel loops for alignment where the vector loop likely
5378 doesn't run at least VF times.
5380 2014-08-28 Bin Cheng <bin.cheng@arm.com>
5382 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
5383 important_candidates. Consider all important candidates if
5384 IVS doesn't give any result. Remove check on ivs->upto.
5385 (try_add_cand_for): Call iv_ca_add_use only once.
5387 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5388 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5389 Anna Tikhonova <anna.tikhonova@intel.com>
5390 Ilya Tocar <ilya.tocar@intel.com>
5391 Andrey Turetskiy <andrey.turetskiy@intel.com>
5392 Ilya Verbin <ilya.verbin@intel.com>
5393 Kirill Yukhin <kirill.yukhin@intel.com>
5394 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5396 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
5397 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
5399 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
5400 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5401 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5402 (define_insn "*mul<mode>3"): Add EVEX version.
5404 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5405 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5406 Anna Tikhonova <anna.tikhonova@intel.com>
5407 Ilya Tocar <ilya.tocar@intel.com>
5408 Andrey Turetskiy <andrey.turetskiy@intel.com>
5409 Ilya Verbin <ilya.verbin@intel.com>
5410 Kirill Yukhin <kirill.yukhin@intel.com>
5411 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5413 * config/i386/sse.md
5414 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
5415 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
5416 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
5417 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
5418 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
5419 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
5420 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
5421 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
5422 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
5423 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
5424 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
5425 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
5426 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
5427 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
5428 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
5429 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
5431 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5432 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5433 Anna Tikhonova <anna.tikhonova@intel.com>
5434 Ilya Tocar <ilya.tocar@intel.com>
5435 Andrey Turetskiy <andrey.turetskiy@intel.com>
5436 Ilya Verbin <ilya.verbin@intel.com>
5437 Kirill Yukhin <kirill.yukhin@intel.com>
5438 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5440 * config/i386/sse.md
5441 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
5442 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
5443 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
5445 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5446 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5447 Anna Tikhonova <anna.tikhonova@intel.com>
5448 Ilya Tocar <ilya.tocar@intel.com>
5449 Andrey Turetskiy <andrey.turetskiy@intel.com>
5450 Ilya Verbin <ilya.verbin@intel.com>
5451 Kirill Yukhin <kirill.yukhin@intel.com>
5452 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5454 * config/i386/sse.md
5455 (define_mode_iterator VI128_256): New.
5456 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
5458 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5459 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5460 Anna Tikhonova <anna.tikhonova@intel.com>
5461 Ilya Tocar <ilya.tocar@intel.com>
5462 Andrey Turetskiy <andrey.turetskiy@intel.com>
5463 Ilya Verbin <ilya.verbin@intel.com>
5464 Kirill Yukhin <kirill.yukhin@intel.com>
5465 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5467 * config/i386/sse.md
5468 (define_mode_iterator VI8_256_512): New.
5469 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
5471 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5472 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
5474 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
5476 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5478 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
5479 pointer to the cumulative reloc value and return the value for
5481 (compute_reloc_for_rtx): Take a const_rtx. Call
5482 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
5483 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
5484 for_each_rtx for the CONST case.
5486 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5488 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
5489 (mark_constants_in_pattern): ...this new function to iterate over
5491 (mark_constants): Update accordingly.
5493 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5495 * varasm.c: Include rtl-iter.h.
5496 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
5497 Remove the pointer to the cumulative hashval_t and just return
5498 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
5499 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5500 Accumulate the hashval_ts here instead of const_rtx_hash_1.
5502 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5504 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
5505 Give real type of data parameter. Remove return value.
5506 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
5507 to iterate over subrtxes.
5509 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5511 * var-tracking.c (use_narrower_mode_test): Turn from being a
5512 for_each_rtx callback to being a function that examines each
5514 (adjust_mems): Update accordingly.
5516 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5518 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
5519 callback to being a function that examines each subrtx itself.
5520 Remove handling of null rtxes.
5521 (add_uses): Update accordingly.
5523 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5525 * var-tracking.c: Include rtl-iter.h.
5526 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
5527 to being a function that examines each subrtx itself.
5528 (use_type): Update accordingly.
5530 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5532 * store-motion.c: Include rtl-iter.h.
5533 (extract_mentioned_regs_1): Delete.
5534 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
5535 for_each_rtx to iterate over subrtxes.
5537 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5539 * sel-sched.c: Include rtl-iter.h
5540 (count_occurrences_1): Delete.
5541 (count_occurrences_equiv): Turn rtxes into const_rtxes.
5542 Use FOR_EACH_SUBRTX rather than for_each_rtx.
5544 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5546 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
5547 * rtlanal.c (tls_referenced_p_1): Delete.
5548 (tls_referenced_p): Take a const_rtx rather than an rtx.
5549 Use FOR_EACH_SUBRTX rather than for_each_rtx.
5551 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5553 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
5554 (for_each_inc_dec): Take an rtx rather than an rtx *.
5555 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
5556 (cselib_record_sets): Likewise.
5557 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
5558 (check_for_inc_dec): Likewise.
5559 * rtlanal.c (for_each_inc_dec_ops): Delete.
5560 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
5561 rather than a pointer to the memory address. Replace
5562 for_each_inc_dec_ops argument with separate function and data
5563 arguments. Abort on non-autoinc addresses.
5564 (for_each_inc_dec_find_mem): Delete.
5565 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
5566 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
5568 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5570 * rtl.h (find_all_hard_regs): Declare.
5571 * rtlanal.c (find_all_hard_regs): New function.
5572 (record_hard_reg_uses_1): Delete.
5573 (record_hard_reg_uses): Use find_all_hard_regs.
5575 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5577 * rtl.h (replace_label_data): Delete.
5578 (replace_label): Take the old label, new label and update-nuses flag
5579 as direct arguments. Return void.
5580 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
5581 * rtlanal.c (replace_label): Update interface as above. Handle
5582 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
5583 iterator. Use FOR_EACH_SUBRTX_PTR.
5585 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5587 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
5588 with const_rtx parameters.
5589 * varasm.c (get_pool_constant): Likewise.
5590 * rtlanal.c (rtx_referenced_p_1): Delete.
5591 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5592 Assert that the rtx we're looking for is nonnull. Allow searches
5593 for constant pool SYMBOL_REFs.
5595 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5597 * reload1.c: Include rtl-iter.h.
5598 (note_reg_elim_costly): Turn from being a for_each_rtx callback
5599 to being a function that examines each subrtx itself.
5600 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
5602 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5604 * regcprop.c (cprop_find_used_regs_1): Delete.
5605 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5607 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5609 * regcprop.c: Include rtl-iter.h.
5610 (kill_value): Take a const_rtx.
5611 (kill_autoinc_value): Turn from being a for_each_rtx callback
5612 to being a function that examines each subrtx itself.
5613 (copyprop_hardreg_forward_1): Update accordingly.
5615 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5617 * reg-stack.c: Include rtl-iter.h.
5618 (subst_stack_regs_in_debug_insn): Delete.
5619 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
5620 instead of for_each_rtx.
5622 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5624 * lower-subreg.c (find_decomposable_subregs): Turn from being
5625 a for_each_rtx callback to being a function that examines each
5626 subrtx itself. Remove handling of null rtxes.
5627 (decompose_multiword_subregs): Update accordingly.
5629 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5631 * lower-subreg.c (adjust_decomposed_uses): Delete.
5632 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
5633 Remove handling of null rtxes.
5635 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5637 * lower-subreg.c: Include rtl-iter.h.
5638 (resolve_subreg_use): Turn from being a for_each_rtx callback
5639 to being a function that examines each subrtx itself. Remove
5640 handling of null rtxes.
5641 (resolve_reg_notes, resolve_simple_move): Update accordingly.
5642 (decompose_multiword_subregs): Likewise.
5644 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5646 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
5647 to being a function that examines each subrtx itself.
5648 (simplify_using_condition, simplify_using_initial_values): Update
5651 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5653 * loop-iv.c: Include rtl-iter.h.
5654 (find_single_def_src): New function.
5655 (replace_single_def_regs): Turn from being a for_each_rtx callback
5656 to being a function that examines each subrtx itself.
5657 (replace_in_expr, simplify_using_initial_values): Update accordingly.
5659 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5661 * jump.c (eh_returnjump_p_1): Delete.
5662 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5663 Remove handling of null rtxes.
5665 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5667 * jump.c: Include rtl-iter.h.
5668 (returnjump_p_1): Delete.
5669 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5670 Remove handling of null rtxes.
5672 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5674 * ira.c: Include rtl-iter.h.
5675 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
5676 to being a function that examines each subrtx itself. Remove
5677 handling of null rtxes.
5678 (update_equiv_regs): Update call accordingly.
5680 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5682 * fwprop.c: Include rtl-iter.h.
5683 (varying_mem_p): Turn from being a for_each_rtx callback to being
5684 a function that examines each subrtx itself.
5685 (propagate_rtx): Update accordingly.
5687 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5689 * function.c: Include rtl-iter.h
5690 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
5691 callback to being a function that examines each subrtx itself.
5692 Return the changed flag.
5693 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
5694 (instantiate_virtual_regs): Update calls accordingly.
5696 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5698 * final.c: Include rtl-iter.h.
5699 (mark_symbol_ref_as_used): Delete.
5700 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
5703 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5705 * emit-rtl.c: Include rtl-iter.h.
5706 (find_auto_inc): Turn from being a for_each_rtx callback to being
5707 a function that examines each subrtx itself. Assume the first operand
5708 to an RTX_AUTOINC is the automodified register.
5709 (try_split): Update call accordingly.
5711 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5713 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
5714 Return a bool, inverting the result so that 0/false means "not ok".
5715 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
5716 subrtxes of a CONST.
5717 (mem_loc_descriptor, add_const_value_attribute)
5718 (resolve_addr_in_expr): Update calls accordingly.
5720 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5722 * dwarf2out.c: Include rtl-iter.h.
5723 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
5724 Remove unused data parameter. Return a bool, inverting the result
5725 so that 0/false means "not ok".
5726 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
5727 instead of for_each_rtx.
5729 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5731 * dse.c: Include rtl-iter.h.
5732 (check_mem_read_rtx): Change void * parameter to real type.
5733 Remove return value.
5734 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
5735 for_each_rtx. Don't handle null rtxes.
5737 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5739 * df-problems.c: Include rtl-iter.h.
5740 (find_memory): Turn from being a for_each_rtx callback to being
5741 a function that examines each subrtx itself. Continue to look for
5742 volatile references even after a nonvolatile one has been found.
5743 (can_move_insns_across): Update calls accordingly.
5745 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5747 * ddg.c (walk_mems_2, walk_mems_1): Delete.
5748 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
5749 to iterate over subrtxes. Return a bool rather than an int.
5751 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5753 * ddg.c: Include rtl-iter.h.
5754 (mark_mem_use_1): Rename to...
5755 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
5756 instead of for_each_rtx.
5757 (mem_read_insn_p): Update accordingly.
5759 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5761 * cse.c (change_cc_mode_args): Delete.
5762 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
5763 a function that examines each subrtx itself. Take the fields of
5764 change_cc_mode_args as argument and return void.
5765 (cse_change_cc_mode_insn): Update calls accordingly.
5767 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5769 * cse.c (is_dead_reg): Change argument to const_rtx.
5770 (dead_debug_insn_data): Delete.
5771 (is_dead_debug_insn): Expand commentary. Turn from being a
5772 for_each_rtx callback to being a function that examines
5773 each subrtx itself. Take the fields of dead_debug_insn_data
5775 (delete_trivially_dead_insns): Update call accordingly.
5777 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5779 * cse.c (check_for_label_ref): Move earlier in file. Turn from
5780 being a for_each_rtx callback to being a function that examines
5782 (cse_extended_basic_block): Update call accordingly.
5784 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5786 * cse.c (check_dependence_data): Delete.
5787 (check_dependence): Change from being a for_each_rtx callback to being
5788 a function that examines all subrtxes itself. Don't handle null rtxes.
5789 (invalidate): Update call accordingly.
5791 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5793 * cse.c: Include rtl-iter.h.
5794 (approx_reg_cost_1): Delete.
5795 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5796 Don't handle null rtxes.
5798 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5800 * cfgcleanup.c: Include rtl-iter.h.
5801 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
5802 to being a function that examines each subrtx itself.
5803 (thread_jump): Update accordingly.
5805 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5807 * combine-stack-adj.c: Include rtl-iter.h.
5808 (record_stack_refs_data): Delete.
5809 (record_stack_refs): Turn from being a for_each_rtx callback
5810 to being a function that examines each subrtx itself.
5811 Take a pointer to the reflist. Invert sense of return value
5812 so that true means success and false means failure. Don't
5814 (combine_stack_adjustments_for_block): Update accordingly.
5816 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5818 * combine.c (record_truncated_value): Turn from being a for_each_rtx
5819 callback to a function that takes an rtx and returns a bool
5820 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
5823 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5825 * combine.c: Include rtl-iter.h.
5826 (unmentioned_reg_p_1): Delete.
5827 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5828 Don't handle null rtxes.
5830 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5832 * calls.c: Include rtl-iter.h.
5833 (internal_arg_pointer_based_exp_1): Delete.
5834 (internal_arg_pointer_based_exp): Take a const_rtx.
5835 Use FOR_EACH_SUBRTX to iterate over subrtxes.
5837 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5839 * caller-save.c: Include rtl-iter.h.
5840 (add_used_regs_1): Delete.
5841 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
5842 to iterate over subrtxes. Assert that any remaining pseudos
5845 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5847 * bt-load.c: Include rtl-iter.h.
5848 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
5849 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
5850 to iterate over subrtxes.
5851 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
5852 find_btr_use rather than btr_referenced_p.
5854 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5856 * alias.c: Include rtl-iter.h.
5857 (refs_newer_value_cb): Delete.
5858 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5860 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5862 * rtl-iter.h: New file.
5863 * rtlanal.c: Include it.
5864 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
5865 (generic_subrtx_iterator <T>::add_single_to_queue)
5866 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
5867 (generic_subrtx_iterator <T>::free_array): New functions.
5868 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
5869 (generic_subrtx_iterator <const_rtx_accessor>)
5870 (generic_subrtx_iterator <rtx_var_accessor>
5871 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
5872 (setup_reg_subrtx_bounds): New function.
5873 (init_rtlanal): Call it.
5875 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
5878 * config/sh/sh.md (ashlsi3): Handle negative shift count for
5880 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
5882 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
5884 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
5886 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5888 * rtl.h (JUMP_LABEL_AS_INSN): New.
5890 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5892 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
5894 (alloc_EXPR_LIST): Strengthen return type from rtx to
5896 (remove_free_EXPR_LIST_node): Likewise for param.
5897 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
5898 from rtx to rtx_expr_list *.
5899 * sched-int.h (struct deps_desc): Strengthen fields
5900 "pending_read_mems" and "pending_write_mems" from rtx to
5903 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
5904 rtx to rtx_expr_list *.
5905 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
5906 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
5908 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
5909 from rtx to rtx_expr_list *.
5910 * loop-iv.c (simplify_using_initial_values): Strengthen local
5911 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
5912 "pnote_next" from rtx * to rtx_expr_list **.
5913 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
5914 param "exprp" from rtx * to rtx_expr_list **.
5915 (add_insn_mem_dependence): Strengthen local "mem_list" from
5916 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
5918 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
5919 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
5920 param "old_mems_p" from rtx * to rtx_expr_list **.
5921 * var-tracking.c (struct adjust_mem_data): Strengthen field
5922 "side_effects" from rtx to rtx_expr_list *.
5923 (adjust_insn): Replace NULL_RTX with NULL when assigning to
5925 (prepare_call_arguments): Likewise.
5927 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5929 * function.h (struct rtl_data): Strengthen field
5930 "x_stack_slot_list" from rtx to rtx_expr_list *.
5932 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
5933 when assigning to stack_slot_list.
5935 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5937 * function.h (struct rtl_data): Strengthen field
5938 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
5939 * rtl.h (remove_node_from_expr_list): Strengthen second param from
5940 rtx * to rtx_expr_list **.
5942 * cfgbuild.c (make_edges): In loop over
5943 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
5944 rtx_expr_list *, and use methods of the latter class to clarify
5946 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
5947 rtx_expr_list *, and use methods of the latter class to clarify
5949 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5950 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5951 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
5952 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
5953 to rtx_expr_list *. Use methods of the latter class to clarify
5956 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5958 * function.h (struct expr_status): Strengthen field
5959 "x_forced_labels" from rtx to rtx_expr_list *.
5961 * cfgbuild.c (make_edges): Split local "x" into two locals,
5962 strengthening one from rtx to rtx_expr_list *, and using methods
5964 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
5965 loop over forced_labels, introduce strengthen it from rtx to
5966 rtx_expr_list *, using methods to clarify the code.
5967 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
5968 to rtx_expr_list *, using methods of said class to clarify the
5970 * reload1.c (set_initial_label_offsets): Split local "x" into two
5971 per-loop variables, strengthening the first from rtx to
5972 rtx_expr_list * and using methods.
5974 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5976 * coretypes.h (class rtx_expr_list): Add forward declaration.
5977 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
5978 * gengenrtl.c (special_rtx): Add EXPR_LIST.
5979 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
5980 invariant: GET_CODE (X) == EXPR_LIST.
5981 (is_a_helper <rtx_expr_list *>::test): New.
5982 (rtx_expr_list::next): New.
5983 (rtx_expr_list::element): New.
5984 (gen_rtx_EXPR_LIST): New.
5986 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5988 * varasm.c (mark_constants): Convert a GET_CODE check into a
5989 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
5990 Use methods of rtx_sequence to clarify the code.
5992 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5994 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
5995 local "seq" via a checked cast, and use methods of rtx_sequence
5996 to simplify the code.
5998 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6000 * resource.c (mark_referenced_resources): Strengthen local
6001 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6002 using methods of rtx_sequence to clarify the code.
6003 (find_dead_or_set_registers): Within the switch statement, convert
6004 a GET_CODE check to a dyn_cast, introducing local "seq". Within
6005 the JUMP_P handling, introduce another local "seq", adding a
6006 checked cast to rtx_sequence *. In both cases, use methods of
6007 rtx_sequence to clarify the code.
6008 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6009 via a checked cast, and use methods of rtx_sequence to simplify
6012 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6014 * reorg.c (redundant_insn): In two places in the function, replace
6015 a check of GET_CODE with a dyn_cast, introducing local "seq", and
6016 usings methods of rtx_sequence to clarify the code.
6018 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6020 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6021 local "seq" with a checked cast, and use methods of rtx_sequence
6022 to clarify the code.
6024 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6026 * function.c (contains): Introduce local "seq" for PATTERN (insn),
6027 with a checked cast, in the region for where we know it's a
6028 SEQUENCE. Use methods of rtx_sequence.
6030 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6032 * final.c (get_attr_length_1): Replace GET_CODE check with a
6033 dyn_cast, introducing local "seq" and the use of methods of
6035 (shorten_branches): Likewise, introducing local "body_seq".
6036 Strengthen local "inner_insn" from rtx to rtx_insn *.
6037 (reemit_insn_block_notes): Replace GET_CODE check with a
6038 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
6039 Use methods of rtx_sequence.
6040 (final_scan_insn): Likewise, introducing local "seq" for when
6041 "body" is known to be a SEQUENCE, using its methods.
6043 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6045 * except.c (can_throw_external): Strengthen local "seq" from rtx
6046 to rtx_sequence *. Use methods of rtx_sequence.
6047 (insn_nothrow_p): Likewise.
6049 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6051 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
6052 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6053 Use methods of rtx_sequence.
6054 (scan_trace): Likewise for local "pat".
6056 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6058 * coretypes.h (class rtx_sequence): Add forward declaration.
6059 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
6060 invariant: GET_CODE (X) == SEQUENCE.
6061 (is_a_helper <rtx_sequence *>::test): New.
6062 (is_a_helper <const rtx_sequence *>::test): New.
6063 (rtx_sequence::len): New.
6064 (rtx_sequence::element): New.
6065 (rtx_sequence::insn): New.
6067 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6069 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
6071 (alloc_INSN_LIST): Strengthen return type from rtx to
6073 (copy_INSN_LIST): Likewise for return type and param.
6074 (concat_INSN_LIST): Likewise for both params and return type.
6075 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
6076 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
6077 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
6078 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
6080 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
6081 "implicit_sets", "control_uses", "clobbers" from rtx to
6083 (struct deps_desc): Likewise for fields "pending_read_insns",
6084 "pending_write_insns", "pending_jump_insns",
6085 "last_pending_memory_flush", "last_function_call",
6086 "last_function_call_may_noreturn", "sched_before_next_call",
6087 "sched_before_next_jump".
6088 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
6089 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
6091 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
6092 from rtx to rtx_insn_list *.
6093 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
6096 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
6097 to rtx_insn_list **.
6098 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
6100 (queue_insn): Likewise for local "link".
6101 (struct haifa_saved_data): Strengthen field "insn_queue" from
6102 rtx * to rtx_insn_list **.
6103 (save_backtrack_point): Update allocation of save->insn_queue to
6104 reflect the strengthening of elements from rtx to rtx_insn_list *.
6105 (queue_to_ready): Strengthen local "link" from rtx to
6106 rtx_insn_list *; use methods "next" and "insn" when traversing the
6108 (early_queue_to_ready): Likewise for locals "link", "next_link",
6110 (schedule_block): Update allocation of insn_queue to reflect the
6111 strengthening of elements from rtx to rtx_insn_list *. Strengthen
6112 local "link" from rtx to rtx_insn_list *, and use methods when
6114 (add_to_speculative_block): Strengthen locals "twins" and
6115 "next_node" from rtx to rtx_insn_list *, and use methods when
6116 working with them. Strengthen local "twin" from rtx to
6117 rtx_insn *, eliminating a checked cast.
6118 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
6119 from rtx to rtx_insn_list *, and use methods when working with
6122 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
6123 from rtx to rtx_insn_list *, adding a checked cast.
6124 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
6126 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
6127 "newlink" from rtx to rtx_insn_list *. Strengthen local
6128 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
6129 from rtx to rtx_insn *.
6130 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
6131 from rtx to rtx_insn_list *. Use methods of the latter class.
6132 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
6133 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
6134 (remove_free_INSN_LIST_node): Strengthen return type and local
6135 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
6136 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
6137 rtx_insn_list *, using "insn" method.
6139 * sched-deps.c (add_dependence_list): Strengthen param "list"
6140 from rtx to rtx_insn_list *, and use methods when working with it.
6141 (add_dependence_list_and_free): Strengthen param "listp" from
6142 rtx * to rtx_insn_list **.
6143 (remove_from_dependence_list): Strenghten param "listp" from rtx *
6144 to rtx_insn_list **, and use methods when working with *listp.
6145 (remove_from_both_dependence_lists): Strengthen param "listp" from
6146 rtx * to rtx_insn_list **
6147 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
6148 to rtx_insn_list **. Eliminate local "link", in favor of two new
6149 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
6151 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
6152 by introducing local "cond_deps".
6153 (remove_from_deps): Strengthen param "insn" from rtx to
6156 * sched-rgn.c (concat_insn_mem_list): Strengthen param
6157 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
6158 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
6159 Use methods of rtx_insn_list.
6161 * store-motion.c (struct st_expr): Strengthen fields
6162 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
6163 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
6165 (find_moveable_store): Split out "tmp" into multiple more-tightly
6166 scoped locals. Use methods of rtx_insn_list *.
6167 (compute_store_table): Strengthen local "tmp" from rtx to
6168 rtx_insn *. Use methods of rtx_insn_list *.
6170 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6172 * coretypes.h (class rtx_insn_list): Add forward declaration.
6173 * rtl.h (class rtx_insn_list): New subclass of rtx_def
6174 (is_a_helper <rtx_insn_list *>::test): New.
6175 (rtx_insn_list::next): New.
6176 (rtx_insn_list::insn): New.
6177 (gen_rtx_INSN_LIST): Add prototype.
6178 * emit-rtl.c (gen_rtx_INSN_LIST): New.
6179 * gengenrtl.c (special_rtx): Add INSN_LIST.
6181 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6183 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
6184 "prev" from rtx to rtx_insn *.
6186 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6188 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
6189 functions. Require merely an rtx for now, not an rtx_insn *.
6190 (BLOCK_FOR_INSN): Likewise.
6191 (INSN_LOCATION): Likewise.
6192 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
6194 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6196 * rtl.h (PATTERN): Convert this macro into a pair of inline
6197 functions, for now, requiring const_rtx and rtx.
6199 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6201 * target.def (unwind_emit): Strengthen param "insn" from rtx to
6203 (final_postscan_insn): Likewise.
6204 (adjust_cost): Likewise.
6205 (adjust_priority): Likewise.
6206 (variable_issue): Likewise.
6207 (macro_fusion_pair_p): Likewise.
6208 (dfa_post_cycle_insn): Likewise.
6209 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
6210 (first_cycle_multipass_issue): Likewise.
6211 (dfa_new_cycle): Likewise.
6212 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
6213 (speculate_insn): Likewise for param "insn".
6214 (gen_spec_check): Likewise for params "insn" and "label".
6215 (get_insn_spec_ds): Likewise for param "insn".
6216 (get_insn_checked_ds): Likewise.
6217 (dispatch_do): Likewise.
6218 (dispatch): Likewise.
6219 (cannot_copy_insn_p): Likewise.
6220 (invalid_within_doloop): Likewise.
6221 (legitimate_combined_insn): Likewise.
6225 * doc/tm.texi: Automatically updated to reflect changes to
6228 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
6230 (schedule_block): Likewise.
6231 (sched_init): Likewise.
6232 (sched_speculate_insn): Strengthen param "insn" from rtx to
6234 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
6236 * hooks.c (hook_bool_rtx_true): Rename to...
6237 hook_bool_rtx_insn_true): ...this, and strengthen first param from
6239 (hook_constcharptr_const_rtx_null): Rename to...
6240 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6241 first param from const_rtx to const rtx_insn *.
6242 (hook_bool_rtx_int_false): Rename to...
6243 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6244 param from rtx to rtx_insn *.
6245 (hook_void_rtx_int): Rename to...
6246 (hook_void_rtx_insn_int): ...this, and strengthen first param from
6249 * hooks.h (hook_bool_rtx_true): Rename to...
6250 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
6252 (hook_bool_rtx_int_false): Rename to...
6253 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6254 param from rtx to rtx_insn *.
6255 (hook_void_rtx_int): Rename to...
6256 (hook_void_rtx_insn_int): ...this, and strengthen first param from
6258 (hook_constcharptr_const_rtx_null): Rename to...
6259 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6260 first param from const_rtx to const rtx_insn *.
6262 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
6263 and local "prev" from rtx to rtx_insn *.
6265 * sched-int.h (sched_speculate_insn): Strengthen first param from
6268 * sel-sched.c (create_speculation_check): Likewise for local "label".
6269 * targhooks.c (default_invalid_within_doloop): Strengthen param
6270 "insn" from const_rtx to const rtx_insn *.
6271 * targhooks.h (default_invalid_within_doloop): Strengthen param
6272 from const_rtx to const rtx_insn *.
6274 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
6275 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
6277 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
6279 (arc_invalid_within_doloop): Likewise, with const.
6281 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
6282 (arm_cannot_copy_insn_p): Likewise for param "insn".
6283 (arm_unwind_emit): Likewise.
6285 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
6288 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
6289 (c6x_variable_issue): Likewise. Removed now-redundant checked
6291 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
6293 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
6294 Likewise for param "insn".
6295 (epiphany_mode_after): Likewise.
6296 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
6297 params "insn", "dep_insn".
6298 (epiphany_mode_needed): Likewise for param "insn".
6299 (epiphany_mode_after): Likewise.
6301 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
6302 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6303 (ix86_avx_u128_mode_needed): Likewise.
6304 (ix86_i387_mode_needed): Likewise.
6305 (ix86_mode_needed): Likewise.
6306 (ix86_avx_u128_mode_after): Likewise.
6307 (ix86_mode_after): Likewise.
6308 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
6309 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
6310 (ix86_adjust_priority): Likewise for param "insn".
6311 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
6312 (do_dispatch): Likewise.
6313 (has_dispatch): Likewise.
6314 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6316 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
6317 reflect renaming of default hook implementation from
6318 hook_constcharptr_const_rtx_null to
6319 hook_constcharptr_const_rtx_insn_null.
6320 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
6322 (ia64_variable_issue): Likewise for param "insn".
6323 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
6324 (ia64_dfa_new_cycle): Likewise.
6325 (ia64_get_insn_spec_ds): Likewise.
6326 (ia64_get_insn_checked_ds): Likewise.
6327 (ia64_speculate_insn): Likewise.
6328 (ia64_gen_spec_check): Likewise for params "insn", "label".
6329 (ia64_asm_unwind_emit): Likewise for param "insn".
6331 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
6333 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
6335 (m68k_sched_variable_issue): Likewise for param "insn".
6337 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
6340 * config/microblaze/microblaze.c (microblaze_adjust_cost):
6341 Likewise for params "insn", "dep".
6343 * config/mips/mips.c (mips_adjust_cost): Likewise.
6344 (mips_variable_issue): Likewise for param "insn".
6345 (mips_final_postscan_insn): Likewise.
6347 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
6348 for params "insn", "dep".
6350 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
6352 (pa_adjust_priority): Likewise for param "insn".
6354 * config/picochip/picochip.c (picochip_sched_adjust_cost):
6355 Likewise for params "insn", "dep_insn".
6357 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
6359 (rs6000_variable_issue): Likewise.
6360 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
6361 (rs6000_debug_adjust_cost): Likewise.
6362 (rs6000_adjust_priority): Likewise for param "insn".
6363 (rs6000_use_sched_lookahead_guard): Likewise.
6364 (get_next_active_insn): Likewise for return type and both params.
6365 (redefine_groups): Likewise for params "prev_head_insn", "tail"
6366 and locals "insn", "next_insn".
6367 (pad_groups): Likewise.
6369 * config/s390/s390.c (s390_adjust_priority): Likewise for param
6371 (s390_cannot_copy_insn_p): Likewise.
6372 (s390_sched_variable_issue): Likewise for third param, eliminating
6374 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
6375 default hook implementation from hook_constcharptr_const_rtx_null
6376 to hook_constcharptr_const_rtx_insn_null.
6378 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
6379 from rtx to rtx_insn *.
6380 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
6381 (sh_variable_issue): Likewise for param "insn".
6382 (sh_dfa_new_cycle): Likewise.
6383 (sh_mode_needed): Likewise.
6384 (sh_mode_after): Likewise.
6386 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
6387 params "insn", "dep_insn".
6388 (hypersparc_adjust_cost): Likewise.
6389 (sparc_adjust_cost): Likewise.
6391 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
6392 param, eliminated checked cast.
6393 (spu_sched_adjust_cost): Likewise for first and third params.
6395 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
6396 params "insn" and "dep_insn" from rtx to rtx_insn *.
6398 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
6400 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6402 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
6403 (set_is_load_p): ...this, updating to work on a SET pattern rather
6405 (is_store_insn): Rename to...
6406 (set_is_store_p): ...this, updating to work on a SET pattern
6407 rather than an insn.
6408 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
6409 top of function to where it is needed. Rewrite the bogus
6410 condition that checks for "insn" and "dep" being PARALLEL to
6411 instead use single_set, introducing locals "insn_set" and
6412 "dep_set". Given that we only ever returned "cost" for a non-pair
6413 of SETs, bail out early if we don't have a pair of SET.
6414 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
6415 use the new locals "insn_set" and "dep_set", and update calls to
6416 is_load_insn and is_store_insn to be calls to set_is_load_p and
6419 2014-08-27 Guozhi Wei <carrot@google.com>
6422 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
6423 amount before using it.
6425 2014-08-27 Richard Biener <rguenther@suse.de>
6427 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
6428 get_maxval_strlen inside a more useful API.
6429 (gimple_fold_builtin_with_strlen): Remove and fold into ...
6430 (gimple_fold_builtin): ... caller.
6431 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
6432 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
6433 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
6434 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
6435 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
6436 gimple_fold_builtin_sprintf): Adjust to compute maxval
6439 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
6442 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
6444 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6445 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6446 Anna Tikhonova <anna.tikhonova@intel.com>
6447 Ilya Tocar <ilya.tocar@intel.com>
6448 Andrey Turetskiy <andrey.turetskiy@intel.com>
6449 Ilya Verbin <ilya.verbin@intel.com>
6450 Kirill Yukhin <kirill.yukhin@intel.com>
6451 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6453 * config/i386/sse.md
6454 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
6455 Use `concat_tg_mode' attribute to determine asm register size.
6457 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6458 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6459 Anna Tikhonova <anna.tikhonova@intel.com>
6460 Ilya Tocar <ilya.tocar@intel.com>
6461 Andrey Turetskiy <andrey.turetskiy@intel.com>
6462 Ilya Verbin <ilya.verbin@intel.com>
6463 Kirill Yukhin <kirill.yukhin@intel.com>
6464 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6466 * config/i386/sse.md
6467 (define_mode_iterator VI48_AVX512VL): New.
6468 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
6469 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
6470 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
6471 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6472 with VI1): Change mode iterator.
6473 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6474 with VI_ULOADSTORE_BW_AVX512VL): New.
6475 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6476 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6477 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6478 with VI1): Change mode iterator.
6479 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6480 with VI_ULOADSTORE_BW_AVX512VL): New.
6481 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6482 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6483 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6484 with VI1): Change mode iterator.
6485 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6486 with VI_ULOADSTORE_BW_AVX512VL): New.
6487 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6488 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
6489 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
6490 (define_insn "<avx512>_storedqu<mode>_mask" with
6491 VI48_AVX512VL): New.
6492 (define_insn "<avx512>_storedqu<mode>_mask" with
6493 VI12_AVX512VL): Ditto.
6495 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6496 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6497 Anna Tikhonova <anna.tikhonova@intel.com>
6498 Ilya Tocar <ilya.tocar@intel.com>
6499 Andrey Turetskiy <andrey.turetskiy@intel.com>
6500 Ilya Verbin <ilya.verbin@intel.com>
6501 Kirill Yukhin <kirill.yukhin@intel.com>
6502 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6504 * config/i386/sse.md
6505 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
6506 (define_mode_iterator VI48_AVX512BW): New.
6507 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
6508 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6509 with VI48_AVX2_48_AVX512F): New.
6510 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6511 with VI2_AVX512VL): Ditto.
6513 2014-08-27 Richard Biener <rguenther@suse.de>
6516 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
6517 (fold_builtin_3): Do not fold strcat_chk here.
6518 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
6520 (gimple_fold_builtin): Fold strcat_chk here.
6522 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
6524 * dwarf2out.h (dwarf2out_decl): Remove prototype.
6525 * dwarf2out.c (dwarf2out_decl): Make static.
6527 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
6529 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
6531 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6533 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
6534 from rtx to rtx_insn *.
6535 (cselib_lookup_from_insn): Likewise for final param.
6536 (cselib_subst_to_values_from_insn): Likewise.
6537 (cselib_add_permanent_equiv): Likewise.
6539 * cselib.c (cselib_current_insn): Likewise for this variable.
6540 (cselib_subst_to_values_from_insn): Likewise for param "insn".
6541 (cselib_lookup_from_insn): Likewise.
6542 (cselib_add_permanent_equiv): Likewise for param "insn" and local
6543 "save_cselib_current_insn".
6544 (cselib_process_insn): Replace use of NULL_RTX with NULL.
6546 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
6547 from rtx to rtx_insn *.
6549 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6551 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
6554 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6556 * df.h (df_dump_insn_problem_function): Strengthen first param of
6557 this callback from const_rtx to const rtx_insn *.
6558 (struct df_insn_info): Strengthen field "insn" from rtx to
6560 (DF_REF_INSN): Eliminate this function, reinstating the older
6562 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
6563 (df_reg_defined): Likewise.
6564 (df_find_use): Likewise.
6565 (df_reg_used): Likewise.
6566 (df_dump_insn_top): Strengthen param 1 from const_rtx to
6568 (df_dump_insn_bottom): Likewise.
6569 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
6570 (df_insn_debug_regno): Likewise.
6571 (debug_df_insn): Likewise.
6572 (df_rd_simulate_one_insn): Likewise for param 2.
6573 (df_word_lr_simulate_defs): Likewise for param 1.
6574 (df_word_lr_simulate_uses): Likewise.
6575 (df_md_simulate_one_insn): Likewise for param 2.
6576 (df_simulate_find_noclobber_defs): Likewise for param 1.
6577 (df_simulate_find_defs): Likewise.
6578 (df_simulate_defs): Likewise.
6579 (df_simulate_uses): Likewise.
6580 (df_simulate_one_insn_backwards): Likewise for param 2.
6581 (df_simulate_one_insn_forwards): Likewise.
6582 (df_uses_create): Likewise for param 2.
6583 (df_insn_create_insn_record): Likewise for param 1.
6584 (df_insn_delete): Likewise.
6585 (df_insn_rescan): Likewise.
6586 (df_insn_rescan_debug_internal): Likewise.
6587 (df_insn_change_bb): Likewise.
6588 (df_notes_rescan): Likewise.
6589 * rtl.h (remove_death): Likewise for param 2.
6590 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
6592 * sched-int.h (reemit_notes): Strengthen param from rtx to
6594 * valtrack.h (propagate_for_debug): Likewise for param 1.
6596 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
6597 local "tmp_rtx" from const_rtx to const rtx_insn *.
6598 * combine.c (remove_death): Strengthen param "insn" from rtx to
6600 (move_deaths): Likewise for local "where_dead".
6601 * cse.c (delete_trivially_dead_insns): Introduce local
6602 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
6603 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
6605 (df_reg_defined): Likewise.
6606 (df_find_use): Likewise.
6607 (df_reg_used): Likewise.
6608 (df_dump_insn_problem_data): Strengthen param "insn" from
6609 const_rtx to const rtx_insn *.
6610 (df_dump_insn_top): Likewise.
6611 (df_dump_insn_bottom): Likewise.
6612 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
6613 (df_insn_debug_regno): Likewise.
6614 (debug_df_insn): Likewise.
6615 (DF_REF_INSN): Delete.
6616 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
6617 from rtx to rtx_insn *.
6618 (df_chain_insn_top_dump): Strengthen param "insn" from
6619 const_rtx to const rtx_insn *.
6620 (df_chain_insn_bottom_dump): Likewise.
6621 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
6623 (df_word_lr_simulate_uses): Likewise.
6624 (df_print_note): Likewise.
6625 (df_remove_dead_and_unused_notes): Likewise.
6626 (df_set_unused_notes_for_mw): Likewise.
6627 (df_set_dead_notes_for_mw): Likewise.
6628 (df_create_unused_note): Likewise.
6629 (df_simulate_find_defs): Likewise.
6630 (df_simulate_find_uses): Likewise.
6631 (df_simulate_find_noclobber_defs): Likewise.
6632 (df_simulate_defs): Likewise.
6633 (df_simulate_uses): Likewise.
6634 (df_simulate_one_insn_backwards): Likewise.
6635 (df_simulate_one_insn_forwards): Likewise.
6636 (df_md_simulate_one_insn): Likewise.
6637 * df-scan.c (df_uses_create): Likewise.
6638 (df_insn_create_insn_record): Likewise.
6639 (df_insn_delete): Likewise.
6640 (df_insn_rescan): Likewise.
6641 (df_insn_rescan_debug_internal): Likewise.
6642 (df_insn_change_bb): Likewise.
6643 (df_notes_rescan): Likewise.
6644 (df_refs_add_to_chains): Likewise.
6645 (df_insn_refs_verify): Likewise.
6646 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
6647 when invoking df_insn_delete.
6648 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
6649 (set_unique_reg_note): Add checked cast.
6650 * final.c (cleanup_subreg_operands): Likewise.
6651 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
6652 "insn" from rtx to rtx_insn *.
6653 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
6654 "last" from rtx to rtx_insn *.
6655 * ira-emit.c (change_regs_in_insn): New function.
6656 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
6657 Invoke change_regs_in_insn rather than change_regs.
6658 * ira.c (update_equiv_regs): Strengthen locals "insn",
6659 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
6660 for_each_rtx_in_insn rather than for_each_rtx.
6661 * recog.c (confirm_change_group): Add checked casts.
6662 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
6664 (peep2_fill_buffer): Add checked cast.
6665 * rtlanal.c (remove_note): Likewise.
6666 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
6667 locals "next" "end" from rtx to rtx_insn *.
6669 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6671 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
6673 (struct reg_use_data): Likewise for field "insn".
6674 (insn_cost): Likewise for param.
6675 (real_insn_for_shadow): Likewise for return type and param.
6676 (increase_insn_priority): Likewise for param 1.
6677 (debug_dependencies): Likewise for both params.
6679 * haifa-sched.c (insn_delay): Likewise for param "insn".
6680 (real_insn_for_shadow): Likewise for return type and param "insn".
6681 (update_insn_after_change): Likewise for param "insn".
6682 (recompute_todo_spec): Likewise for param "next" and locals "pro",
6684 (insn_cost): Likewise for param "insn".
6685 (increase_insn_priority): Likewise.
6686 (calculate_reg_deaths): Likewise.
6687 (setup_insn_reg_pressure_info): Likewise.
6688 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
6689 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
6690 (model_recompute): Likewise.
6691 (must_restore_pattern_p): Likewise for param "next".
6692 (model_excess_cost): Likewise for param "insn".
6693 (queue_remove): Likewise.
6694 (adjust_priority): Likewise for param "prev".
6695 (update_register_pressure): Likewise for param "insn".
6696 (setup_insn_max_reg_pressure): Likewise for local "insn".
6697 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
6698 (model_add_to_schedule): Likewise.
6699 (model_reset_queue_indices): Likewise for local "insn".
6700 (unschedule_insns_until): Strengthen local "recompute_vec" from
6701 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
6702 "con" from rtx to rtx_insn *.
6703 (restore_last_backtrack_point): Likewise for both locals "x". Add
6705 (estimate_insn_tick): Likewise for param "insn".
6706 (commit_schedule): Likewise for params "prev_head", "tail" and
6708 (verify_shadows): Likewise for locals "i1", "i2".
6709 (dump_insn_stream): Likewise for params "head", "tail" and locals
6710 "next_tail", "insn".
6711 (schedule_block): Likewise for locals "insn", "x". Add a checked
6713 (fix_inter_tick): Likewise for params "head", "tail".
6714 (create_check_block_twin): Likewise for local "jump".
6715 (haifa_change_pattern): Likewise for param "insn".
6716 (haifa_speculate_insn): Likewise.
6717 (dump_new_block_header): Likewise for params "head", "tail".
6718 (fix_jump_move): Likewise for param "jump".
6719 (move_block_after_check): Likewise.
6720 (sched_init_insn_luid): Likewise for param "insn".
6721 (sched_init_luids): Likewise for local "insn".
6722 (insn_luid): Likewise for param "insn".
6723 (init_h_i_d): Likewise.
6724 (haifa_init_h_i_d): Likewise for local "insn".
6725 (haifa_init_insn): Likewise for param "insn".
6726 * sched-deps.c (add_dependence): Likewise for local "real_pro",
6728 (create_insn_reg_use): Likewise for param "insn".
6729 (setup_insn_reg_uses): Likewise. Add a checked cast.
6730 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
6731 "tail" from rtx to rtx_insn *.
6732 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
6733 "insn", "next_tail".
6735 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6737 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
6738 from rtx to rtx_insn *.
6739 (model_add_to_schedule): Likewise for locals "start", "end",
6742 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6744 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
6746 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
6747 "to" and locals "insn", "next", "copy". Remove now-redundant
6750 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6752 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
6753 rtx_insn * and param 4 from rtx * to rtx_insn **.
6754 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
6755 param 2 from rtx * to rtx_insn **.
6757 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
6758 rtx_insn * and final param from rtx * to rtx_insn **.
6760 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
6761 from rtx to rtx_insn *.
6762 (try_head_merge_bb): Likewise for both locals named "move_upto".
6763 * df-problems.c (can_move_insns_across): Likewise for params
6764 "from", "to", "across_from", "across_to" and locals "insn",
6765 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
6767 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
6768 from rtx to rtx_insn *.
6769 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
6770 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
6771 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
6773 (noce_try_abs): Likewise.
6774 (noce_get_condition): Likewise for param "jump". Strengthen param
6775 "earliest" from rtx * to rtx_insn **.
6776 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
6778 (find_cond_trap): Likewise.
6779 (dead_or_predicable): Likewise for local "earliest".
6780 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
6782 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
6783 and local "prev". Strengthen param "earliest" from rtx * to
6785 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
6786 Strengthen param "earliest" from rtx * to rtx_insn **.
6788 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6790 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
6791 "to" and local "insn" from rtx to rtx_insn *.
6793 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6795 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
6796 from rtx to rtx_insn *.
6797 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
6798 (code_motion_path_driver): Likewise for local "last_insn".
6799 (simplify_changed_insns): Likewise for local "insn".
6801 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6803 * rtl.h (push_to_sequence): Strengthen param from rtx to
6805 (push_to_sequence2): Likewise for both params.
6806 (delete_insns_since): Likewise for param.
6807 (reorder_insns_nobb): Likewise for all three params.
6808 (set_new_first_and_last_insn): Likewise for both params.
6810 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
6811 rtx_insn *. Remove now-redundant cast.
6812 (set_last_insn): Likewise.
6814 * builtins.c (expand_builtin_return): Strengthen local
6815 "call_fusage" from rtx to rtx_insn *.
6816 * cfgrtl.c (create_basic_block_structure): Likewise for local
6818 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
6819 "first", "last" and local "insn".
6820 (delete_insns_since): Likewise for param "from".
6821 (reorder_insns_nobb): Likewise for params "from", "to", "after"
6823 (push_to_sequence): Likewise for param "first" and local "last".
6824 (push_to_sequence2): Likewise for params "first" and "last".
6825 * lra.c (emit_add3_insn): Likewise for local "last".
6826 (lra_emit_add): Likewise.
6827 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
6829 (process_address_1): Likewise for locals "insn", last".
6830 * modulo-sched.c (ps_first_note): Likewise for return type.
6831 * optabs.c (expand_binop_directly): Likewise for param "last".
6833 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6835 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
6837 * emit-rtl.c (get_last_insn_anywhere): Likewise.
6839 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6841 * function.h (struct sequence_stack): Strengthen fields "first"
6842 and "last" from rtx to rtx_insn *.
6843 (struct emit_status): Likewise for fields "x_first_insn" and
6846 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
6847 (set_first_insn): Add checked cast.
6848 (get_last_insn): Remove now-redundant checked cast.
6849 (set_last_insn): Add checked cast.
6851 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
6852 "saved_first" and "saved_last" from rtx to rtx_insn *.
6854 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6856 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
6857 (unlink_insn_chain): Strengthen both params from rtx to
6860 * cfgrtl.c (cfg_layout_function_header): Likewise for this
6862 (unlink_insn_chain): Likewise for params "first" and "last".
6863 Remove now-redundant checked cast.
6864 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
6865 (fixup_reorder_chain): Strengthen local "insn" from rtx to
6867 * emit-rtl.c (link_insn_into_chain): Likewise for all three
6869 (add_insn): Likewise for param "insn" and local "prev".
6870 (add_insn_after_nobb): Likewise for both params and local "next".
6871 (add_insn_before_nobb): Likewise for both params and local "prev".
6872 (add_insn_after): Rename param "after" to "uncast_after",
6873 introducing local "after" with another checked cast.
6874 (add_insn_before): Rename params "insn" and "before", giving them
6875 "uncast_" prefixes, adding the old names back using checked casts.
6876 (emit_note_after): Likewise for param "after".
6877 (emit_note_before): Likewise for param "before".
6878 (emit_label): Add a checked cast.
6880 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6882 * cselib.h (cselib_record_sets_hook): Strengthen initial param
6883 "insn" from rtx to rtx_insn *.
6885 * cselib.c (cselib_record_sets_hook): Likewise.
6887 * var-tracking.c (add_with_sets): Likewise, renaming back from
6888 "uncast_insn" to "insn" and eliminating the checked cast from rtx
6891 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6893 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
6894 and "header_" from rtx to rtx_insn *.
6895 (struct basic_block_d): Likewise for field "head_" within "x"
6896 field of union basic_block_il_dependent.
6897 (BB_HEAD): Drop function...
6898 (SET_BB_HEAD): ...and this function in favor of...
6899 (BB_HEAD): ...reinstate macro.
6900 (BB_END): Drop function...
6901 (SET_BB_END): ...and this function in favor of...
6902 (BB_END): ...reinstate macro.
6903 (BB_HEADER): Drop function...
6904 (SET_BB_HEADER): ...and this function in favor of...
6905 (BB_HEADER): ...reinstate macro.
6907 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
6908 (fix_crossing_unconditional_branches): Likewise.
6909 * caller-save.c (save_call_clobbered_regs): Likewise.
6910 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
6911 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
6912 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6913 (merge_blocks_move_successor_nojumps): Likewise.
6914 (outgoing_edges_match): Update use of for_each_rtx to
6915 for_each_rtx_in_insn.
6916 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
6917 (expand_gimple_cond): Likewise.
6918 (expand_gimple_tailcall): Likewise.
6919 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
6921 (construct_exit_block): Drop use of SET_BB_END.
6922 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
6924 (delete_insn): Rename param "insn" to "uncast_insn", introducing
6925 a new local "insn" with a checked cast to rtx_insn *. Drop use of
6926 SET_BB_HEAD and SET_BB_END.
6927 (create_basic_block_structure): Drop use of SET_BB_HEAD and
6929 (rtl_delete_block): Drop use of SET_BB_HEAD.
6930 (rtl_split_block): Drop use of SET_BB_END.
6931 (emit_nop_for_unique_locus_between): Likewise.
6932 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
6933 (block_label): Drop use of SET_BB_HEAD.
6934 (fixup_abnormal_edges): Drop use of SET_BB_END.
6935 (record_effective_endpoints): Drop use of SET_BB_HEADER.
6936 (relink_block_chain): Likewise.
6937 (fixup_reorder_chain): Drop use of SET_BB_END.
6938 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
6939 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
6940 rtx_insn **. Drop use of SET_BB_HEADER.
6941 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
6943 (BB_HEAD): Delete this function.
6944 (SET_BB_HEAD): Likewise.
6946 (SET_BB_END): Likewise.
6947 (BB_HEADER): Likewise.
6948 (SET_BB_HEADER): Likewise.
6949 * emit-rtl.c (add_insn_after): Rename param "insn" to
6950 "uncast_insn", adding a new local "insn" and a checked cast to
6951 rtx_insn *. Drop use of SET_BB_END.
6952 (remove_insn): Strengthen locals "next" and "prev" from rtx to
6953 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
6954 (reorder_insns): Drop use of SET_BB_END.
6955 (emit_insn_after_1): Strengthen param "first" and locals "last",
6956 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
6957 (emit_pattern_after_noloc): Add checked cast.
6958 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
6959 (restore_other_notes): Likewise.
6960 (move_insn): Likewise.
6961 (sched_extend_bb): Likewise.
6962 (fix_jump_move): Likewise.
6963 * ifcvt.c (noce_process_if_block): Likewise.
6964 (dead_or_predicable): Likewise.
6965 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
6966 * reg-stack.c (change_stack): Drop use of SET_BB_END.
6967 * sel-sched-ir.c (sel_move_insn): Likewise.
6968 * sel-sched.c (move_nop_to_previous_block): Likewise.
6970 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
6972 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6974 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6976 * basic-block.h (create_basic_block_structure): Strengthen params
6977 1 "head" and 2 "end" from rtx to rtx_insn *.
6978 * cfgrtl.c (create_basic_block_structure): Likewise.
6979 (rtl_create_basic_block): Update casts from void * to rtx to
6980 rtx_insn *, so that we can pass them as rtx_insn * to
6981 create_basic_block_structure.
6982 * sel-sched-ir.c (sel_create_basic_block): Likewise.
6984 2014-08-26 David Malcolm <dmalcolm@redhat.com>
6986 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
6988 (check_for_inc_dec): Strengthen param "insn" from rtx to
6991 * cselib.h (cselib_process_insn): Likewise.
6993 * cselib.c (cselib_record_sets): Likewise.
6994 (cselib_process_insn): Likewise.
6996 * dse.c (struct insn_info): Likewise for field "insn".
6997 (check_for_inc_dec_1): Likewise for local "insn".
6998 (check_for_inc_dec): Likewise for param "insn".
6999 (scan_insn): Likewise.
7000 (dse_step1): Likewise for local "insn".
7002 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7003 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
7005 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7007 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7008 from rtx to rtx_insn *.
7009 (DEP_PRO): Delete this function and...
7010 (SET_DEP_PRO): ...this function in favor of...
7011 (DEP_PRO): ...reinstate this macro.
7012 (DEP_CON): Delete this function and...
7013 (SET_DEP_CON): ...this function in favor of...
7014 (DEP_CON): ...reinstate this old macro.
7015 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7016 (init_dep): Likewise.
7017 (set_priorities): Likewise for both params.
7018 (sd_copy_back_deps): Likewise for params 1 and 2.
7020 * haifa-sched.c (priority): Likewise for param "insn" and local
7022 (set_priorities): Likewise for params "head" and "tail" and local
7024 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
7026 (add_to_speculative_block): Add a checked cast.
7027 (create_check_block_twin): Drop use of SET_DEP_CON.
7028 (add_jump_dependencies): Strengthen params "insn" and "jump" from
7031 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
7032 Drop use of SET_DEP_PRO
7033 (init_dep): Strengthen params "pro" and "con" from rtx to
7035 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
7039 (SET_DEP_PRO): Delete.
7040 (SET_DEP_CON): Delete.
7042 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7044 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
7045 from rtx to rtx_insn *.
7046 (VINSN_INSN_RTX): Eliminate rvalue function and...
7047 (SET_VINSN_INSN): ...lvalue function in favor of...
7048 (VINSN_INSN_RTX): reinstate this old macro.
7050 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
7051 in favor of VINSN_INSN_RTX.
7052 (VINSN_INSN_RTX): Delete this function.
7053 (SET_VINSN_INSN_RTX): Likewise.
7055 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7057 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
7058 (BND_TO): Delete this function and...
7059 (SET_BND_TO): ...this functions in favor of...
7060 (BND_TO): ...reinstating this macro.
7061 (struct _fence): Strengthen field "executing_insns" from
7062 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
7063 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
7064 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
7065 and param "insn" from rtx to insn_t.
7066 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
7069 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
7071 (rtx_vec_t): Likewise.
7072 (struct sched_deps_info_def): Strengthen param of "start_insn"
7073 callback from rtx to rtx_insn *. Likewise for param "insn2" of
7074 "note_mem_dep" callback and first param of "note_dep" callback.
7076 * haifa-sched.c (add_to_speculative_block): Strengthen param
7077 "insn" from rtx to rtx_insn *.
7078 (clear_priorities): Likewise.
7079 (calc_priorities): Likewise for local "insn".
7081 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
7082 Remove redundant checked cast.
7083 (haifa_note_mem_dep): Likewise for param "pending_insn".
7084 (haifa_note_dep): Likewise for param "elem".
7085 (note_mem_dep): Likewise for param "e".
7086 (sched_analyze_1): Add checked casts.
7087 (sched_analyze_2): Likewise.
7089 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
7090 from rtx to rtx_insn *.
7091 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
7092 from vec<rtx> * to vec<rtx_insn *> *.
7094 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
7096 (flist_add): Strengthen param "executing_insns" from
7097 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7098 (advance_deps_context): Remove now-redundant checked cast.
7099 (init_fences): Replace uses of NULL_RTX with NULL.
7100 (merge_fences): Strengthen params "last_scheduled_insn" and
7101 "sched_next" from rtx to rtx_insn * and "executing_insns" from
7102 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7103 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
7104 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
7105 an instruction, rather than doing double-duty as a pattern.
7106 (return_nop_to_pool): Update for change of insn_t.
7107 (deps_init_id): Remove now-redundant checked cast.
7108 (struct sched_scan_info_def): Strengthen param of "init_insn"
7109 callback from rtx to insn_t.
7110 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
7111 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
7113 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
7114 "end" from rtx to rtx_insn *.
7115 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
7116 (rtx insn_rtx, bool force_unique_p)
7117 (BND_TO): Delete function.
7118 (SET_BND_TO): Delete function.
7120 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
7122 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
7123 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
7125 (undo_transformations): Likewise for param "insn".
7126 (update_liveness_on_insn): Likewise.
7127 (compute_live_below_insn): Likewise for param "insn" and local
7129 (update_data_sets): Likewise for param "insn".
7130 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
7131 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
7132 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
7134 (move_cond_jump): Likewise for param "insn".
7135 (move_cond_jump): Drop use of SET_BND_TO.
7136 (compute_av_set_on_boundaries): Likewise.
7137 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
7138 (update_and_record_unavailable_insns): Strengthen local "bb_end"
7139 from rtx to rtx_insn *.
7140 (maybe_emit_renaming_copy): Likewise for param "insn".
7141 (maybe_emit_speculative_check): Likewise.
7142 (handle_emitting_transformations): Likewise.
7143 (remove_insn_from_stream): Likewise.
7144 (code_motion_process_successors): Strengthen local "succ" from rtx
7147 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7149 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
7150 ilist_t, not _xlist_t;
7151 (ILIST_INSN): Define in terms of new union field "insn".
7152 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
7154 (struct _list_node): Add new field "insn" to the union, of type
7156 (ilist_add): Replace macro with an inline function, requiring an
7158 (ilist_remove): Define this macro directly in terms of
7159 _list_remove, rather than indirectly via _xlist_remove.
7160 (ilist_clear): Likewise, in terms of _list_clear rather than
7162 (ilist_is_in_p): Replace macro with an inline function, requiring
7164 (_list_iter_cond_insn): New function.
7165 (ilist_iter_remove): Define this macro directly in terms of
7166 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
7167 (ilist_iterator): Define directly in terms of _list_iterator
7168 rather than indirectly through _xlist_iterator.
7169 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
7170 than in terms of _FOR_EACH_X.
7171 (FOR_EACH_INSN_1): Likewise.
7173 2014-08-26 Joseph Myers <joseph@codesourcery.com>
7177 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
7178 DECL_HARD_REGISTER and return for invalid register specifications.
7179 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
7180 DECL_HARD_REGISTER, call expand_one_error_var.
7181 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
7182 CC_REGNUM with non-MODE_CC modes.
7183 (arm_regno_class): Return NO_REGS for PC_REGNUM.
7185 2014-08-26 Marek Polacek <polacek@redhat.com>
7188 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
7190 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
7192 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
7193 qi cost; add di cost.
7194 (cortexa57_addrcost_table): Likewise.
7196 2014-08-26 Marek Polacek <polacek@redhat.com>
7199 * expr.c (is_aligning_offset): Remove logical not.
7201 2014-08-26 Marek Polacek <polacek@redhat.com>
7204 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
7205 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
7207 2014-08-26 Richard Biener <rguenther@suse.de>
7209 PR tree-optimization/62175
7210 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7211 expand possibly trapping operations.
7213 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7215 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
7216 "insn" from rtx to rtx_insn *.
7217 (permute_load): Likewise for param "insn".
7218 (permute_store): Likewise.
7219 (handle_special_swappables): Likewise for local "insn".
7220 (replace_swap_with_copy): Likewise for locals "insn" and
7222 (rs6000_analyze_swaps): Likewise for local "insn".
7224 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7226 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
7229 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7231 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
7232 "note_list" from rtx to rtx_insn *.
7233 (BB_NOTE_LIST): Replace this function and...
7234 (SET_BB_NOTE_LIST): ...this function with...
7235 (BB_NOTE_LIST): ...the former macro implementation.
7237 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
7238 local "from_start" from rtx to rtx_insn *. Strengthen param
7239 "to_endp" from rtx * to rtx_insn **.
7241 * haifa-sched.c (concat_note_lists): Likewise.
7242 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
7244 (sel_restore_notes): Likewise.
7245 (move_bb_info): Likewise.
7246 (BB_NOTE_LIST): Delete this function.
7247 (SET_BB_NOTE_LIST): Delete this function.
7248 * sel-sched.c (create_block_for_bookkeeping): Eliminate
7249 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
7251 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7253 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
7254 from rtx * to rtx_insn **.
7255 (reorder2): Likewise.
7256 (dependencies_evaluation_hook): Strengthen params "head", "tail"
7257 from rtx to rtx_insn *.
7259 * doc/tm.texi: Update mechanically for above change to target.def.
7261 * sched-int.h (note_list): Strengthen this variable from rtx to
7263 (remove_notes): Likewise for both params.
7264 (restore_other_notes): Likewise for return type and first param.
7265 (struct ready_list): Strengthen field "vec" from rtx * to
7267 (struct dep_replacement): Strenghten field "insn" from rtx to
7269 (struct deps_desc): Likewise for fields "last_debug_insn",
7271 (struct haifa_sched_info): Likewise for callback field
7272 "can_schedule_ready_p"'s param, for first param of "new_ready"
7273 callback field, for both params of "rank" callback field, for
7274 first field of "print_insn" callback field (with a const), for
7275 both params of "contributes_to_priority" callback, for param
7276 of "insn_finishes_block_p" callback, for fields "prev_head",
7277 "next_tail", "head", "tail", for first param of "add_remove_insn"
7278 callback, for first param of "begin_schedule_ready" callback, for
7279 both params of "begin_move_insn" callback, and for second param
7280 of "advance_target_bb" callback.
7281 (add_dependence): Likewise for params 1 and 2.
7282 (sched_analyze): Likewise for params 2 and 3.
7283 (deps_analyze_insn): Likewise for param 2.
7284 (ready_element): Likewise for return type.
7285 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7286 (try_ready): Strenghten param from rtx to rtx_insn *.
7287 (sched_emit_insn): Likewise for return type.
7288 (record_delay_slot_pair): Likewise for params 1 and 2.
7289 (add_delay_dependencies): Likewise for param.
7290 (contributes_to_priority): Likewise for both params.
7291 (find_modifiable_mems): Likewise.
7293 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
7294 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
7295 "first_older_only_insn" from rtx to rtx_insn *.
7296 (arm_sched_reorder): Strengthen param "ready" from rtx * to
7299 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
7300 "last_scheduled_iter0" from rtx to rtx_insn *.
7301 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
7302 (c6x_sched_reorder_1): Strengthen param "ready" and locals
7303 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7304 "insn" from rtx to rtx_insn *.
7305 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
7307 (c6x_sched_reorder2): Strengthen param "ready" and locals
7308 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7309 "insn" from rtx to rtx_insn *.
7310 (c6x_variable_issue): Add a checked cast when assigning from insn
7311 to ss.last_scheduled_iter0.
7312 (split_delayed_branch): Strengthen param "insn" and local "i1"
7313 from rtx to rtx_insn *.
7314 (split_delayed_nonbranch): Likewise.
7315 (undo_split_delayed_nonbranch): Likewise for local "insn".
7316 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
7317 "entry_after", "end_packet", "head_insn", "tail_insn",
7318 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
7319 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
7320 to rtx_insn **. Remove now-redundant checked cast on last_insn,
7321 but add a checked cast on loop->start_label. Consolidate calls to
7322 avoid assigning result of gen_spkernel to "insn", now an
7325 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
7326 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
7328 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
7329 rtx_insn **. Strengthen locals "top", "next" from rtx to
7331 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
7332 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
7333 (add_parameter_dependencies): Strengthen params "call", "head" and
7334 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
7335 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
7336 (add_dependee_for_func_arg): Likewise for param "arg" and local
7338 (ix86_dependencies_evaluation_hook): Likewise for params "head",
7339 "tail" and locals "insn", "first_arg".
7341 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
7342 for params "head", "tail" and locals "insn", "next", "next_tail".
7343 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
7344 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
7345 "insn", "lowest", "highest" from rtx to rtx_insn *.
7346 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
7348 (ia64_sched_reorder2): Likewise.
7350 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
7351 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
7352 from rtx * to rtx_insn **.
7353 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
7355 (mep_print_sched_insn): Strengthen param "insn" from rtx to
7357 (mep_sched_reorder): Strengthen param "ready" from rtx * to
7358 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
7361 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
7362 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
7364 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
7365 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
7366 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
7368 (vr4130_reorder): Likewise.
7369 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
7371 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
7373 (mips_sched_reorder): Likewise.
7374 (mips_sched_reorder2): Likewise.
7376 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
7378 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
7379 Strengthen local "tmp" from rtx to rtx_insn *.
7380 (rs6000_sched_reorder2): Likewise.
7382 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
7383 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
7384 (s390_sched_reorder): Strengthen param "ready" from rtx * to
7385 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
7387 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
7388 "tmp2" from rtx to rtx_insn *.
7389 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
7390 Strengthen local "insn" from rtx to rtx_insn *.
7391 (ready_reorder): Strengthen param "ready" from rtx * to
7392 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
7393 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
7394 (sh_reorder2): Likewise.
7396 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
7397 local "insn" from rtx to rtx_insn *.
7399 * haifa-sched.c (note_list): Strengthen this variable from rtx to
7401 (scheduled_insns): Strengthen this variable from vec<rtx> to
7403 (set_modulo_params): Likewise for locals "i1", "i2".
7404 (record_delay_slot_pair): Likewise for params "i1", "i2".
7405 (add_delay_dependencies): Likewise for param "insn".
7406 (cond_clobbered_p): Likewise.
7407 (recompute_todo_spec): Likewise for local "prev".
7408 (last_scheduled_insn): Likewise for this variable.
7409 (nonscheduled_insns_begin): Likewise.
7410 (model_set_excess_costs): Strengthen param "insns" from rtx * to
7412 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
7414 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
7415 Strengthen local "insn" from rtx to rtx_insn *.
7416 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
7417 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7418 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
7419 (ready_remove_first): Likewise for return type and local "t".
7420 (ready_element): Likewise for return type.
7421 (ready_remove): Likewise for return type and local "t".
7422 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
7423 (check_clobbered_conditions): Strengthen local "x" from rtx to
7424 rtx_insn *, adding a checked cast.
7425 (schedule_insn): Likewise for param "insn".
7426 (remove_notes): Likewise for params "head", "tail" and locals
7427 "next_tail", "insn", "next".
7428 (struct haifa_saved_data): Likewise for fields
7429 "last_scheduled_insn", "nonscheduled_insns_begin".
7430 (save_backtrack_point): Update for change to field "vec" of
7432 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
7434 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
7435 from rtx to rtx_insn *
7436 (resolve_dependencies): Strengthen param "insn" from rtx to
7438 (restore_other_notes): Likewise for return type, for param "head"
7439 and local "note_head".
7440 (undo_all_replacements): Likewise for local "insn".
7441 (first_nonscheduled_insn): Likewise for return type and local "insn".
7442 (queue_to_ready): Likewise for local "insn", adding checked casts.
7443 (early_queue_to_ready): Likewise for local "insn".
7444 (debug_ready_list_1): Strengthen local "p" from rtx * to
7446 (move_insn): Strengthen param "insn" and local "note" from rtx to
7448 (insn_finishes_cycle_p): Likewise for param "insn".
7449 (max_issue): Likewise for local "insn".
7450 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
7452 (commit_schedule): Strengthen param "prev_head" and local "insn"
7453 from rtx to rtx_insn *
7454 (prune_ready_list): Likewise for local "insn".
7455 (schedule_block): Likewise for locals "prev_head", "head", "tail",
7456 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
7457 (set_priorities): Likewise for local "prev_head".
7458 (try_ready): Likewise for param "next".
7459 (fix_tick_ready): Likewise.
7460 (change_queue_index): Likewise.
7461 (sched_extend_ready_list): Update for change to field "vec" of
7463 (generate_recovery_code): Strengthen param "insn" from rtx to
7465 (begin_speculative_block): Likewise.
7466 (create_check_block_twin): Likewise for param "insn" and locals
7467 "label", "check", "twin". Introduce local "check_pat" to avoid
7468 "check" being used as a plain rtx before being used as an insn.
7469 (fix_recovery_deps): Add a checked cast to rtx_insn * when
7470 extracting elements from ready_list.
7471 (sched_remove_insn): Strengthen param "insn" from rtx to
7473 (sched_emit_insn): Likewise for return type.
7474 (ready_remove_first_dispatch): Likewise for return type and local
7477 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
7479 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
7482 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
7483 from rtx to rtx_insn *.
7484 (add_dependence_list): Likewise for param "insn". Add a checked
7486 (add_dependence_list_and_free): Strengthen param "insn" from rtx
7487 to rtx_insn *. Strengthen param "list_p" from rtx * to
7489 (chain_to_prev_insn): Strengthen param "insn" and locals
7490 "prec_nonnote", "i" from rtx to rtx_insn *.
7491 (flush_pending_lists): Likewise for param "insn".
7492 (cur_insn): Likewise for this variable.
7493 (haifa_start_insn): Add a checked cast.
7494 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
7495 (sched_analyze_reg): Likewise for param "insn".
7496 (sched_analyze_1): Likewise.
7497 (sched_analyze_2): Likewise. Add checked casts.
7498 (sched_analyze_insn): Likewise. Also for local "prev".
7499 (deps_analyze_insn): Likewise for param "insn".
7500 (sched_analyze): Likewise for params "head", "tail" and local "insn".
7501 (add_dependence_1): Likewise for params "insn", "elem".
7502 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
7503 (parse_add_or_inc): Likewise for param "insn".
7504 (find_inc): Likewise for local "inc_cand".
7505 (find_modifiable_mems): Likewise for params "head", "tail" and
7506 locals "insn", "next_tail".
7508 * sched-ebb.c (init_ready_list): Likewise for local "insn".
7509 (begin_schedule_ready): Likewise for param "insn".
7510 (begin_move_insn): Likewise for params "insn" and "last".
7511 (ebb_print_insn): Strengthen param "insn" from const_rtx to
7513 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
7514 (ebb_contributes_to_priority): Likewise for params "next", "insn".
7515 (ebb_add_remove_insn): Likewise for param "insn".
7516 (advance_target_bb): Likewise.
7518 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
7520 (check_live): Likewise for param "insn".
7521 (init_ready_list): Likewise for local "insn".
7522 (can_schedule_ready_p): Likewise for param "insn".
7523 (begin_schedule_ready): Likewise.
7524 (new_ready): Likewise for param "next".
7525 (rgn_print_insn): Likewise for param "insn".
7526 (rgn_rank): Likewise for params "insn1", "insn2".
7527 (contributes_to_priority): Likewise for params "next", "insn".
7528 (rgn_insn_finishes_block_p): Likewise for param "insn".
7529 (add_branch_dependences): Likewise for params "head", "tail" and
7530 locals "insn", "last".
7531 (rgn_add_remove_insn): Likewise for param "insn".
7532 (advance_target_bb): Likewise.
7534 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
7535 const_rtx to const rtx_insn *.
7537 * sel-sched-dump.h (sel_print_insn): Likewise.
7539 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
7540 (deps_init_id): Likewise.
7542 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
7543 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
7546 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7548 * output.h (final_start_function): Strengthen param 1 from rtx to
7551 * final.c (final_start_function): Likewise, renaming back from
7552 "uncast_first" to "first", and dropping the checked cast from rtx
7555 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7557 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
7558 * final.c (final): Likewise. Rename param back from
7559 "uncast_first" to "first" and eliminate the checked cast from rtx
7562 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7564 * output.h (shorten_branches): Strengthen param from rtx to
7567 * final.c (shorten_branches): Likewise, renaming param back from
7568 "uncast_first" to "first", and dropping the checked cast from rtx
7571 * genattr.c (gen_attr): Likewise when writing out the prototype of
7574 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7576 * sched-int.h (struct haifa_sched_info): Strengthen fields
7577 "prev_head" and "next_tail" from rtx to rtx_insn *.
7579 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7581 * rtl.h (rtx_jump_table_data::get_labels): New method.
7582 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
7583 with use of the new rtx_jump_table_data::get_labels method.
7584 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
7585 to rtx_jump_table_data *. Simplify by using get_labels method.
7586 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
7587 a dyn_cast, introducing local "table", using it to replace
7588 label-lookup logic with a get_labels method call.
7589 (patch_jump_insn): Simplify using get_labels method.
7590 * dwarf2cfi.c (create_trace_edges): Likewise.
7591 * rtlanal.c (label_is_jump_target_p): Likewise.
7593 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7595 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
7598 * emit-rtl.c (unshare_all_rtl_1): Likewise.
7599 (unshare_all_rtl_again): Likewise, also for local "p".
7601 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7603 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
7605 * cfgrtl.c (delete_insn_and_edges): Likewise.
7607 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7609 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
7610 from rtx to rtx_insn *.
7612 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
7614 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7616 * function.c (thread_prologue_and_epilogue_insns): Likewise for
7617 locals "returnjump", "epilogue_end", "insn", "next".
7619 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
7620 "returnjump" from rtx * to rtx_insn **.
7621 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
7623 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7625 * basic-block.h (struct edge_def). Strengthen "r" within
7626 union edge_def_insns from rtx to rtx_insn *.
7628 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
7629 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
7631 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
7632 from rtx to rtx_insn *.
7633 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
7635 * postreload-gcse.c (reg_killed_on_edge): Likewise.
7636 (reg_used_on_edge): Likewise.
7637 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
7638 (gt_pch_nx): New overload for rtx_insn *&.
7639 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
7640 from rtx to rtx_insn *.
7642 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7644 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
7645 from rtx to rtx_insn *.
7646 (BB_FOOTER): Replace function with access macro.
7647 (SET_BB_FOOTER): Delete.
7649 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
7651 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7652 (emit_barrier_after_bb): Likewise.
7653 (record_effective_endpoints): Likewise.
7654 (relink_block_chain): Likewise.
7655 (fixup_fallthru_exit_predecessor): Likewise.
7656 (cfg_layout_duplicate_bb): Likewise.
7657 (cfg_layout_split_block): Likewise.
7658 (cfg_layout_delete_block): Likewise.
7659 (cfg_layout_merge_blocks): Likewise.
7660 (BB_FOOTER): Delete function.
7661 (SET_BB_FOOTER): Delete function.
7662 * combine.c (update_cfg_for_uncondjump): Replace uses of
7663 SET_BB_FOOTER with BB_FOOTER.
7665 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7667 * except.h (struct eh_landing_pad_d): Strengthen field
7668 "landing_pad" from rtx to rtx_code_label *.
7670 * except.c (sjlj_emit_dispatch_table): Likewise for param
7672 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
7674 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7676 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
7677 first param from rtx to rtx_insn *.
7678 * config/xtensa/xtensa.c (struct machine_function): Likewise for
7679 field "set_frame_ptr_insn".
7680 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
7681 "csend" from rtx to rtx_code_label *.
7682 (xtensa_expand_atomic): Likewise for local "csloop".
7683 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
7685 (xtensa_call_tls_desc): Likewise for return type and locals
7686 "call_insn", "insns".
7687 (xtensa_legitimize_tls_address): Likewise for local "insns".
7688 (xtensa_expand_prologue): Likewise for locals "insn", "first".
7690 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7692 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
7693 first param from rtx to rtx_insn *.
7694 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
7697 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7699 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
7700 Strengthen param 1 from rtx to rtx_insn *.
7701 (tilepro_output_cbranch): Likewise.
7702 (tilepro_adjust_insn_length): Likewise.
7703 (tilepro_final_prescan_insn): Likewise for sole param.
7705 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
7706 Likewise for local "last".
7707 (cbranch_predicted_p): Likewise for param "insn".
7708 (tilepro_output_simple_cbranch_with_opcode): Likewise.
7709 (tilepro_output_cbranch_with_opcode): Likewise.
7710 (tilepro_output_cbranch): Likewise.
7711 (frame_emit_load): Likewise for return type and locals "seq",
7713 (emit_sp_adjust): Likewise for return type and local "insn".
7714 (tilepro_expand_epilogue): Likewise for locals "last_insn",
7716 (tilepro_adjust_insn_length): Likewise for param "insn".
7717 (next_insn_to_bundle): Likewise for return type and params
7719 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
7720 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
7722 (match_addli_pcrel): Likewise for param "insn".
7723 (replace_addli_pcrel): Likewise.
7724 (match_auli_pcrel): Likewise.
7725 (replace_auli_pcrel): Likewise.
7726 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
7728 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7729 "queue", "next_queue", "prev".
7730 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
7731 (tilepro_final_prescan_insn): Likewise for param "insn".
7733 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7735 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
7736 Strengthen param 1 from rtx to rtx_insn *.
7737 (tilegx_output_cbranch): Likewise.
7738 (tilegx_adjust_insn_length): Likewise.
7739 (tilegx_final_prescan_insn): Likewise for sole param.
7741 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
7743 (cbranch_predicted_p): Likewise for param "insn".
7744 (tilegx_output_simple_cbranch_with_opcode): Likewise.
7745 (tilegx_output_cbranch_with_opcode): Likewise.
7746 (tilegx_output_cbranch): Likewise.
7747 (frame_emit_load): Likewise for return type.
7748 (set_frame_related_p): Likewise for locals "seq", "insn".
7749 (emit_sp_adjust): Likewise for return type, and for local "insn".
7750 Introduce local "pat" for use in place of "insn" where the latter
7751 isn't an instruction.
7752 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
7753 from rtx to rtx_insn *.
7754 (tilegx_adjust_insn_length): Likewise for param "insn".
7755 (next_insn_to_bundle): Likewise for return type and params "r" and
7757 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
7759 (replace_insns): Likewise for params "old_insn", "new_insns".
7760 (replace_mov_pcrel_step1): Likewise for param "insn" and local
7762 (replace_mov_pcrel_step2): Likewise.
7763 (replace_mov_pcrel_step3): Likewise.
7764 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
7766 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7767 "queue", "next_queue", "prev".
7768 (tilegx_output_mi_thunk): Likewise for local "insn".
7769 (tilegx_final_prescan_insn): Likewise for param "insn".
7771 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7773 * config/spu/spu.c (frame_emit_store): Strengthen return type from
7775 (frame_emit_load): Likewise.
7776 (frame_emit_add_imm): Likewise, also for local "insn".
7777 (spu_expand_prologue): Likewise for local "insn".
7778 (struct spu_bb_info): Likewise for field "prop_jump".
7779 (emit_nop_for_insn): Likewise for param "insn" and local
7781 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
7783 (spu_emit_branch_hint): Likewise for params "before", "branch" and
7784 locals "hint", "insn".
7785 (get_branch_target): Likewise for param "branch".
7786 (insn_clobbers_hbr): Likewise for param "insn".
7787 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
7788 locals "insn", "before_4", "before_16".
7789 (insert_hbrp): Likewise for local "insn".
7790 (spu_machine_dependent_reorg): Likewise for locals "branch",
7791 "insn", "next", "bbend".
7792 (uses_ls_unit): Likewise for param "insn".
7793 (get_pipe): Likewise.
7794 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
7795 introducing a checked cast.
7796 (spu_sched_adjust_cost): Likewise for params "insn" and
7798 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
7799 (spu_sms_res_mii): Likewise.
7801 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7803 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
7804 from rtx to rtx_insn *.
7805 (output_cbranch): Likewise for param 6.
7806 (output_return): Likewise for param 1.
7807 (output_sibcall): Likewise.
7808 (output_v8plus_shift): Likewise.
7809 (output_v8plus_mult): Likewise.
7810 (output_v9branch): Likewise for param 7.
7811 (output_cbcond): Likewise for param 3.
7813 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
7815 (sparc_legitimize_pic_address): Likewise.
7816 (sparc_emit_call_insn): Likewise.
7817 (emit_save_or_restore_regs): Likewise.
7818 (emit_window_save): Likewise for return type and local "insn".
7819 (sparc_expand_prologue): Likewise for local "insn".
7820 (sparc_flat_expand_prologue): Likewise.
7821 (output_return): Likewise for param "insn".
7822 (output_sibcall): Likewise for param "insn" and local "delay".
7823 (output_ubranch): Likewise for param "insn".
7824 (output_cbranch): Likewise.
7825 (output_cbcond): Likewise.
7826 (output_v9branch): Likewise.
7827 (output_v8plus_shift): Likewise.
7828 (sparc_output_mi_thunk): Likewise for local "insn".
7829 (get_some_local_dynamic_name): Likewise.
7830 (output_v8plus_mult): Likewise for param "insn".
7832 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7834 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
7835 from rtx to rtx_insn *.
7836 (output_branchy_insn): Likewise for param 3.
7837 (output_far_jump): Likewise for param 1.
7838 (final_prescan_insn): Likewise.
7839 (sh_insn_length_adjustment): Likewise for sole param.
7841 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
7842 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
7844 (sh_emit_compare_and_set): Likewise for local "lab".
7845 (output_far_jump): Strengthen param "insn" and local "prev" from
7847 (output_branchy_insn): Likewise for param "insn" and local
7849 (output_ieee_ccmpeq): Likewise for param "insn".
7850 (struct label_ref_list_d): Strengthen field "label" from rtx to
7852 (pool_node): Likewise.
7853 (pool_window_label): Likewise for this global.
7854 (add_constant): Likewise for return type and locals "lab", "new_rtx".
7855 (dump_table): Strengthen params "start", "barrier" and local
7856 "scan" from rtx to rtx_insn *.
7857 (broken_move): Likewise for param "insn".
7858 (untangle_mova): Likewise for params "first_mova" and "new_mova".
7859 Strengthen param "first_mova" from rtx * to rtx_insn **.
7860 (mova_p): Likewise for param "insn".
7861 (fixup_mova): Likewise for param "mova".
7862 (find_barrier): Likewise for return type, params "mova" and
7863 "from", and locals "barrier_before_mova", "found_barrier",
7864 "good_barrier", "orig", "last_symoff", "next". Strengthen local
7865 "label" from rtx to rtx_code_label *.
7866 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
7868 (sh_reorg): Likewise for locals "link", "scan", "barrier".
7869 (split_branches): Likewise for param "first" and local "insn".
7870 (final_prescan_insn): Likewise for param "insn".
7871 (sequence_insn_p): Likewise for locals "prev", "next".
7872 (sh_insn_length_adjustment): Likewise for param "insn".
7873 (sh_can_redirect_branch): Likewise for local "insn".
7874 (find_r0_life_regions): Likewise for locals "end", "insn".
7875 (sh_output_mi_thunk): Likewise for local "insns".
7877 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7879 * config/score/score.c (score_output_mi_thunk): Strengthen local
7880 "insn" from rtx to rtx_insn *.
7881 (score_prologue): Likewise.
7883 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7885 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
7886 1 from rtx to rtx_insn *.
7887 (s390_emit_jump): Likewise for return type.
7888 (s390_emit_call): Likewise.
7889 (s390_load_got): Likewise.
7891 * config/s390/s390.c (last_scheduled_insn): Likewise for this
7893 (s390_match_ccmode): Likewise for param "insn".
7894 (s390_emit_jump): Likewise for return type.
7895 (s390_split_branches): Likewise for local "label".
7896 (struct constant): Strengthen field "label" from rtx to
7898 (struct constant_pool): Likewise for field "label". Strengthen
7899 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
7901 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
7903 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
7904 (s390_end_pool): Likewise.
7905 (s390_dump_pool): Likewise for local "insn".
7906 (s390_mainpool_start): Likewise.
7907 (s390_chunkify_start): Likewise.
7908 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
7909 with insns. Strengthen locals "label", "jump", "barrier", "next",
7910 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
7911 (s390_chunkify_finish): Strengthen local "insn" from rtx to
7913 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
7914 "jump", "label", "next_insn".
7915 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
7916 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
7918 (s390_load_got): Likewise for return type and local "insns".
7919 (s390_save_gprs_to_fprs): Likewise for local "insn".
7920 (s390_restore_gprs_from_fprs): Likewise.
7921 (pass_s390_early_mach::execute): Likewise.
7922 (s390_emit_prologue): Likewise for local "insns".
7923 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
7925 (s390_emit_call): Strengthen return type and local "insn" from
7927 (s390_emit_tpf_eh_return): Likewise for local "insn".
7928 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
7929 "next_insn", introducing locals "s_pat", "rpat" to allow this.
7930 (s390_fix_long_loop_prediction): Likewise for param "insn" and
7932 (s390_non_addr_reg_read_p): Likewise for param "insn".
7933 (find_cond_jump): Likewise for return type and param "insn".
7934 (s390_swap_cmp): Likewise for param "insn".
7935 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
7936 "prev_insn", "next_insn".
7937 (s390_reorg): Likewise for locals "insn", "target".
7938 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
7939 (s390_sched_variable_issue): For now, rename param "insn" to
7940 "uncast_insn", introducing a checked cast.
7941 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
7943 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
7944 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
7946 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7948 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
7949 param from rtx to rtx_insn *.
7950 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
7952 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7954 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
7955 4 from rtx to rtx_insn *.
7956 (rs6000_final_prescan_insn): Likewise for first param.
7957 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
7959 (rs6000_get_some_local_dynamic_name): Likewise.
7960 (output_cbranch): Likewise for param "insn".
7961 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
7962 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
7963 (rs6000_emit_allocate_stack): Likewise for local "insn".
7964 (load_cr_save): Likewise.
7965 (restore_saved_cr): Likewise.
7966 (restore_saved_lr): Likewise.
7967 (emit_cfa_restores): Likewise.
7968 (rs6000_output_function_epilogue): Likewise for locals "insn" and
7969 "deleted_debug_label".
7970 (rs6000_output_mi_thunk): Likewise for local "insn".
7971 (rs6000_final_prescan_insn): Likewise for param "insn".
7973 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7975 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
7976 Strengthen param "insn" from rtx to rtx_insn *.
7977 * config/picochip/picochip.c (picochip_current_prescan_insn):
7978 Likewise for this variable.
7979 (picochip_final_prescan_insn): Likewise for param "insn".
7981 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7983 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
7984 from rtx to rtx_insn *.
7985 (pa_output_indirect_call): Likewise.
7986 (pa_adjust_insn_length): Likewise.
7987 (pa_attr_length_millicode_call): Likewise.
7988 (pa_attr_length_call): Likewise.
7989 (pa_attr_length_indirect_call): Likewise.
7991 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
7993 (pa_attr_length_millicode_call): Likewise.
7994 (pa_attr_length_call): Likewise.
7995 (pa_output_call): Likewise.
7996 (pa_attr_length_indirect_call): Likewise.
7997 (pa_output_indirect_call): Likewise.
7999 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8001 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8002 Strengthen first param from rtx to rtx_insn *.
8003 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8006 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8008 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8009 type from rtx to rtx_insn *.
8010 (mips_expand_call): Likewise.
8011 (mips_adjust_insn_length): Likewise for first param.
8012 (mips_output_conditional_branch): Likewise.
8013 (mips_output_order_conditional_branch): Likewise.
8014 (mips_final_prescan_insn): Likewise.
8016 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8017 rtx_insn * for the SEQUENCE case.
8018 (SEQ_END): Likewise.
8019 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8020 (mips_emit_call_insn): Likewise, also for local "insn".
8021 (mips16_gp_pseudo_reg): Likewise for local "scan".
8022 (mips16_build_call_stub): Likewise for return type and for local
8023 "insn". Introduce a new local "pattern" so that "insn" can indeed
8025 (mips_expand_call): Strengthen return type and local "insn" from
8027 (mips_block_move_loop): Strengthen local "label" from rtx to
8029 (mips_expand_synci_loop): Likewise for locals "label",
8031 (mips_set_frame_expr): Strengthen local "insn" from rtx to
8033 (mips16e_collect_argument_saves): Likewise for locals "insn",
8035 (mips_find_gp_ref): Likewise for param of callback for "pred"
8036 param, and for local "insn".
8037 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
8038 (mips_insn_has_flexible_gp_ref_p): Likewise.
8039 (mips_epilogue_emit_cfa_restores): Likewise for return type and
8041 (mips_epilogue_set_cfa): Likewise for local "insn".
8042 (mips_expand_epilogue): Likewise.
8043 (mips_adjust_insn_length): Likewise for param "insn".
8044 (mips_output_conditional_branch): Likewise.
8045 (mips_output_order_conditional_branch): Likewise.
8046 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
8047 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
8048 "falu2_turn_enabled_insn".
8049 (mips_builtin_branch_and_move): Strengthen locals "true_label",
8050 "done_label" from rtx to rtx_code_label *.
8051 (struct mips16_constant): Likewise for field "label".
8052 (mips16_add_constant): Likewise for return type.
8053 (mips16_emit_constants_1): Strengthen return type and param "insn"
8054 from rtx to rtx_insn *.
8055 (mips16_emit_constants): Likewise for param "insn".
8056 (mips16_insn_length): Likewise.
8057 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
8058 to rtx_code_label *.
8059 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
8060 from rtx to rtx_insn *.
8061 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
8062 "jump". Strengthen local "label" from rtx to rtx_code_label *.
8063 (r10k_simplify_address): Strengthen param "insn" and local
8064 "def_insn" from rtx to rtx_insn *.
8065 (r10k_safe_address_p): Strengthen param "insn" from rtx to
8067 (r10k_needs_protection_p_1): Update target type of cast of data
8068 from to rtx to rtx_insn *.
8069 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
8070 rtx * to rtx_insn **.
8071 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
8073 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
8074 (mips_call_expr_from_insn): Likewise for param "insn".
8075 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
8076 (mips_find_pic_call_symbol): Likewise for param "insn".
8077 (mips_annotate_pic_calls): Likewise for local "insn".
8078 (mips_sim_insn): Likewise for this variable.
8079 (struct mips_sim): Likewise for field "insn" within elements of
8081 (mips_sim_wait_reg): Likewise for param "insn".
8082 (mips_sim_wait_regs): Likewise.
8083 (mips_sim_wait_units): Likewise.
8084 (mips_sim_wait_insn): Likewise.
8085 (mips_sim_issue_insn): Likewise.
8086 (mips_sim_finish_insn): Likewise.
8087 (mips_seq_time): Likewise for param "seq" and local "insn".
8088 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
8089 locals "first", "second".
8090 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
8091 "last", "last2", "next".
8092 (mips_avoid_hazard): Likewise for params "after", "insn".
8093 (mips_reorg_process_insns): Likewise for locals "insn",
8094 "last_insn", "subinsn", "next_insn".
8095 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
8096 (mips16_split_long_branches): Likewise for locals "insn" "jump",
8098 (mips_output_mi_thunk): Likewise for local "insn".
8099 (mips_final_prescan_insn): Likewise for param "insn".
8101 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8103 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
8104 Strengthen return type and local "insns" from rtx to rtx_insn *.
8105 (microblaze_legitimize_tls_address): Likewise for local "insns".
8106 (microblaze_block_move_loop): Strengthen local "label" from rtx
8107 to rtx_code_label *.
8108 (microblaze_expand_prologue): Strengthen two locals named "insn"
8109 from rtx to rtx_insn *.
8110 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
8111 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
8112 "insn". Strengthen locals "div_label", "div_end_label" from rtx
8113 to rtx_code_label *.
8115 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8117 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
8118 param from rtx to rtx_insn *.
8119 (mep_reuse_lo): Likewise for third param.
8120 (mep_use_post_modify_p): Likewise for first param.
8121 (mep_core_address_length): Likewise.
8122 (mep_cop_address_length): Likewise.
8123 (mep_final_prescan_insn): Likewise.
8124 (mep_store_data_bypass_p): Likewise for both params.
8125 (mep_mul_hilo_bypass_p): Likewise.
8126 (mep_ipipe_ldc_p): Likewise for param.
8128 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
8129 (mep_rewrite_mult): Likewise.
8130 (mep_rewrite_mulsi3): Likewise.
8131 (mep_rewrite_maddsi3): Likewise.
8132 (mep_reuse_lo_p_1): Likewise.
8133 (mep_reuse_lo_p): Likewise.
8134 (mep_frame_expr): Likewise.
8135 (mep_make_parallel): Likewise for both params.
8136 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
8138 (mep_use_post_modify_p): Likewise for param "insn".
8139 (mep_core_address_length): Likewise.
8140 (mep_cop_address_length): Likewise.
8141 (mep_reg_set_in_function): Likewise for local "insn".
8142 (mep_asm_without_operands_p): Likewise.
8143 (F): Likewise for return type and param "x".
8144 (add_constant): Likewise for local "insn".
8145 (maybe_dead_move): Likewise for return type and local "insn".
8146 (mep_expand_prologue): Likewise for local "insn".
8147 (mep_final_prescan_insn): Likewise for param "insn".
8148 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
8149 "next", "follow", "x".
8150 (mep_insert_repeat_label_last): Likewise for return type, param
8151 "last_insn", and locals "next", "prev". Strengthen param "label"
8152 from rtx to rtx_code_label *.
8153 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
8155 (struct mep_doloop_end): Likewise for fields "insn" and
8157 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
8158 Strengthen local "repeat_label" from rtx to rtx_code_label *.
8159 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
8161 (mep_invert_branch): Likewise for params "insn" and "after".
8162 (mep_reorg_erepeat): Likewise for param "insns" and locals
8163 "insn", "prev", "new_last", "barrier", "user". Strengthen local
8164 "l" from rtx to rtx_code_label *.
8165 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
8166 from rtx to rtx_insn *.
8167 (mep_reorg_addcombine): Likewise for param "insns" and locals
8169 (add_sp_insn_p): Likewise for param "insn".
8170 (mep_reorg_noframe): Likewise for param "insns" and locals
8171 "start_frame_insn", "end_frame_insn", "next".
8172 (mep_reorg): Likewise for local "insns".
8173 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
8175 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
8176 (mep_mul_hilo_bypass_p): Likewise.
8177 (mep_ipipe_ldc_p): Likewise for param "insn".
8178 (mep_make_bundle): Likewise for return type, param "cop" and local
8179 "insn", splitting out the latter into a new local "seq" for when it
8180 is a SEQUENCE rather than an insn.
8181 (core_insn_p): Likewise for param "insn".
8182 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
8183 "last", "first", "note", "prev", "core_insn".
8185 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8187 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
8189 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
8190 (m68k_final_prescan_insn): Likewise for first param.
8192 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
8193 (m68k_set_frame_related): Likewise for param "insn".
8194 (output_btst): Likewise for param "insn".
8195 (m68k_final_prescan_insn): Likewise.
8196 (m68k_move_to_reg): Likewise for local "insn".
8197 (m68k_call_tls_get_addr): Likewise for local "insns".
8198 (m68k_call_m68k_read_tp): Likewise.
8199 (strict_low_part_peephole_ok): Likewise for param "first_insn".
8200 (m68k_output_mi_thunk): Likewise for local "insn".
8202 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8204 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
8205 first param from rtx to rtx_insn *.
8206 (iq2000_adjust_insn_length): Likewise.
8207 (iq2000_output_conditional_branch): Likewise.
8208 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
8209 "insn" and local "nop_insn".
8210 (iq2000_annotate_frame_insn): Likewise for param "insn".
8211 (iq2000_expand_prologue): Likewise for both locals "insn".
8212 (iq2000_adjust_insn_length): Likewise for param "insn".
8213 (iq2000_output_conditional_branch): Likewise.
8215 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8217 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
8218 "insns" from rtx to rtx_insn *.
8219 (ia64_emit_cond_move): Likewise for locals "insn", "first".
8220 (struct spill_fill_data): Likewise for field "init_after" and for
8221 elements of array field "prev_insn".
8222 (spill_restore_mem): Likewise for locals "insn", "first".
8223 (do_spill): Likewise for local "insn".
8224 (do_restore): Likewise.
8225 (ia64_expand_prologue): Likewise.
8226 (ia64_expand_epilogue): Likewise.
8227 (emit_insn_group_barriers): Likewise for locals "insn",
8229 (emit_all_insn_group_barriers): Likewise for locals "insn",
8231 (dfa_stop_insn): Likewise for this global.
8232 (dfa_pre_cycle_insn): Likewise.
8233 (ia64_nop): Likewise.
8234 (final_emit_insn_group_barriers): Likewise for locals "insn",
8236 (emit_predicate_relation_info): Likewise for locals "head", "n",
8238 (ia64_reorg): Likewise for local "insn".
8239 (ia64_output_mi_thunk): Likewise.
8240 (expand_vec_perm_interleave_2): Likewise for local "seq".
8242 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8244 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
8245 param 1 "insn" from rtx to rtx_insn *.
8246 (ix86_use_lea_for_mov): Likewise.
8247 (ix86_avoid_lea_for_addr): Likewise.
8248 (ix86_split_lea_for_addr): Likewise.
8249 (ix86_lea_for_add_ok): Likewise.
8250 (ix86_output_call_insn): Likewise.
8252 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
8253 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
8254 (ix86_output_function_epilogue): Likewise for locals "insn",
8255 "deleted_debug_label".
8256 (legitimize_tls_address): Likewise for local "insn".
8257 (get_some_local_dynamic_name): Likewise.
8258 (increase_distance): Likewise for params "prev", "next".
8259 (distance_non_agu_define_in_bb): Likewise for params "insn",
8260 "start" and locals "prev", "next".
8261 (distance_non_agu_define): Likewise for param "insn".
8262 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
8263 locals "next", "prev".
8264 (distance_agu_use): Likewise for param "insn".
8265 (ix86_lea_outperforms): Likewise.
8266 (ix86_ok_to_clobber_flags): Likewise.
8267 (ix86_avoid_lea_for_add): Likewise.
8268 (ix86_use_lea_for_mov): Likewise.
8269 (ix86_avoid_lea_for_addr): Likewise.
8270 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
8271 (ix86_split_lea_for_addr): Likewise for param "insn".
8272 (ix86_lea_for_add_ok): Likewise for param "insn".
8273 (ix86_expand_carry_flag_compare): Likewise for local
8275 (ix86_expand_int_movcc): Likewise.
8276 (ix86_output_call_insn): Likewise for param "insn".
8277 (ix86_output_call_insn): Likewise for local "i".
8278 (x86_output_mi_thunk): Introduce local "insn", using it in place
8279 of "tmp" when dealing with insns.
8280 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
8282 (ix86_pad_returns): Likewise for locals "ret", "prev".
8283 (ix86_count_insn_bb): Likewise for local "insn".
8284 (ix86_pad_short_function): Likewise for locals "ret", "insn".
8285 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
8286 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
8287 (expand_vec_perm_interleave2): Likewise for local "seq".
8288 (expand_vec_perm_vperm2f128_vblend): Likewise.
8289 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
8290 call to for_each_rtx with for_each_rtx_in_insn.
8292 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8294 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
8295 "label" from rtx to rtx_code_label *.
8296 (ix86_expand_prologue): Likewise.
8297 (ix86_expand_split_stack_prologue): Likewise for locals "label",
8299 (ix86_split_idivmod): Likewise for locals "end_label" and
8301 (ix86_expand_branch): Likewise for local "label2".
8302 (ix86_expand_aligntest): Likewise for return type and local "label".
8303 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
8305 (expand_movmem_epilogue): Likewise for the various locals named
8307 (expand_setmem_epilogue): Likewise.
8308 (expand_small_movmem_or_setmem): Likewise for local "label".
8309 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8310 Strengthen param "done_label" from rtx * to rtx_code_label **.
8311 Strengthen locals "loop_label" and "label" from rtx to
8313 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8314 Likewise for locals "loop_label", "label".
8315 (ix86_expand_set_or_movmem): Likewise for locals "label",
8316 "jump_around_label", "hot_label".
8317 (ix86_expand_strlensi_unroll_1): Likewise for locals
8318 "align_2_label", align_3_label", "align_4_label", "end_0_label",
8320 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
8321 (void ix86_emit_i387_log1p): Likewise for locals "label1",
8322 "label2", "jump_label".
8323 (ix86_expand_sse_compare_and_jump): Likewise for return type and
8325 (ix86_expand_lfloorceil): Likewise for local "label".
8326 (ix86_expand_rint): Likewise.
8327 (ix86_expand_floorceildf_32): Likewise.
8328 (ix86_expand_floorceil): Likewise.
8329 (ix86_expand_rounddf_32): Likewise.
8330 (ix86_expand_trunc): Likewise.
8331 (ix86_expand_truncdf_32): Likewise.
8332 (ix86_expand_round): Likewise.
8334 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8336 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
8337 first param from rtx to rtx_insn *.
8338 (h8300_insn_length_from_table): Likewise.
8339 * config/h8300/h8300.c (F): Likewise for return type and param
8341 (Fpa): Add a checked cast to rtx_insn *.
8342 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
8344 (final_prescan_insn): Likewise for param "insn".
8345 (h8300_binary_length): Likewise.
8346 (h8300_insn_length_from_table): Likewise.
8348 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8350 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
8351 Strengthen first param "insn" from rtx to rtx_insn *.
8353 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
8355 (frame_insn): Likewise for return type. Introduce local "insn"
8356 for use in place of local "x" for use as an rtx_insn *.
8357 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
8358 (epiphany_expand_prologue): Likewise for local "insn".
8359 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
8360 * config/epiphany/resolve-sw-modes.c
8361 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
8364 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8366 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
8367 param from rtx to rtx_insn *.
8368 (c6x_final_prescan_insn): Likewise for first param.
8370 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
8371 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
8372 (c6x_expand_compare): Strengthen local "insns" from rtx to
8374 (c6x_get_unit_specifier): Likewise for param "insn".
8375 (c6x_print_unit_specifier_field): Likewise.
8376 (c6x_final_prescan_insn): Likewise.
8377 (emit_add_sp_const): Likewise for local "insn".
8378 (c6x_expand_prologue): Likewise.
8380 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8382 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
8383 param 1 from rtx to rtx_insn *.
8384 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
8385 the various locals named "insn".
8386 (expand_epilogue_reg_restore): Likewise.
8387 (frame_related_constant_load): Likewise.
8388 (add_to_reg): Likewise.
8389 (emit_link_insn): Likewise.
8390 (do_link): Likewise.
8391 (expand_interrupt_handler_prologue): Likewise.
8392 (branch_dest): Likewise for param "branch".
8393 (asm_conditional_branch): Likewise for param "insn".
8394 (gen_one_bundle): Likewise for elements of param "slot" and local
8396 (bfin_gen_bundles): Likewise for locals "insn", "next" and
8397 elements of local "slot".
8398 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8399 "queue", "next_queue", "prev".
8400 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
8401 (add_sched_insns_for_speculation): Likewise for local "insn".
8403 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8405 * config/avr/avr-protos.h (output_movqi): Strengthen first param
8406 from rtx to rtx_insn *.
8407 (output_movhi): Likewise.
8408 (output_movsisf): Likewise.
8409 (avr_out_tstsi): Likewise.
8410 (avr_out_tsthi): Likewise.
8411 (avr_out_tstpsi): Likewise.
8412 (avr_out_compare): Likewise.
8413 (avr_out_compare64): Likewise.
8414 (avr_out_movpsi): Likewise.
8415 (ashlqi3_out): Likewise.
8416 (ashlhi3_out): Likewise.
8417 (ashlsi3_out): Likewise.
8418 (ashrqi3_out): Likewise.
8419 (ashrhi3_out): Likewise.
8420 (ashrsi3_out): Likewise.
8421 (lshrqi3_out): Likewise.
8422 (lshrhi3_out): Likewise.
8423 (lshrsi3_out): Likewise.
8424 (avr_out_ashlpsi3): Likewise.
8425 (avr_out_ashrpsi3): Likewise.
8426 (avr_out_lshrpsi3): Likewise.
8427 (avr_out_fract): Likewise.
8428 (avr_out_sbxx_branch): Likewise.
8429 (avr_out_round): Likewise.
8430 (avr_out_xload): Likewise.
8431 (avr_out_movmem): Likewise.
8432 (adjust_insn_length): Likewise.
8433 (avr_out_lpm): Likewise.
8434 (reg_unused_after): Likewise.
8435 (_reg_unused_after): Likewise.
8436 (avr_jump_mode): Likewise for second param.
8437 (jump_over_one_insn): Likewise for first param.
8438 (avr_final_prescan_insn): Likewise.
8439 (out_shift_with_cnt): Likewise for second param.
8441 * config/avr/avr.c (get_sequence_length): Likewise for param
8442 "insns" and local "insn".
8443 (emit_push_byte): Likewise for local "insn".
8444 (emit_push_sfr): Likewise.
8445 (avr_prologue_setup_frame): Likewise for locals "insn",
8446 "fp_plus_insns", "sp_plus_insns".
8447 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
8449 (avr_jump_mode): Likewise for param "insn".
8450 (avr_final_prescan_insn): Likewise.
8451 (avr_find_unused_d_reg): Likewise.
8452 (avr_out_lpm_no_lpmx): Likewise.
8453 (avr_out_lpm): Likewise.
8454 (avr_out_xload): Likewise.
8455 (output_movqi): Likewise.
8456 (output_movhi): Likewise.
8457 (out_movqi_r_mr): Likewise.
8458 (out_movhi_r_mr): Likewise.
8459 (out_movsi_r_mr): Likewise.
8460 (out_movsi_mr_r): Likewise.
8461 (output_movsisf): Likewise.
8462 (avr_out_load_psi): Likewise.
8463 (avr_out_store_psi): Likewise.
8464 (avr_out_movpsi): Likewise.
8465 (out_movqi_mr_r): Likewise.
8466 (avr_out_movhi_mr_r_xmega): Likewise.
8467 (out_movhi_mr_r): Likewise.
8468 (compare_condition): Likewise for param "insn" and local "next".
8469 (compare_sign_p): Likewise for param "insn".
8470 (compare_diff_p): Likewise.
8471 (compare_eq_p): Likewise.
8472 (avr_out_compare): Likewise.
8473 (avr_out_compare64): Likewise.
8474 (avr_out_tsthi): Likewise.
8475 (avr_out_tstpsi): Likewise.
8476 (avr_out_tstsi): Likewise.
8477 (out_shift_with_cnt): Likewise.
8478 (ashlqi3_out): Likewise.
8479 (ashlhi3_out): Likewise.
8480 (avr_out_ashlpsi3): Likewise.
8481 (ashlsi3_out): Likewise.
8482 (ashrqi3_out): Likewise.
8483 (ashrhi3_out): Likewise.
8484 (avr_out_ashrpsi3): Likewise.
8485 (ashrsi3_out): Likewise.
8486 (lshrqi3_out): Likewise.
8487 (lshrhi3_out): Likewise.
8488 (avr_out_lshrpsi3): Likewise.
8489 (lshrsi3_out): Likewise.
8490 (avr_out_fract): Likewise.
8491 (avr_out_round): Likewise.
8492 (avr_adjust_insn_length): Likewise.
8493 (reg_unused_after): Likewise.
8494 (_reg_unused_after): Likewise.
8495 (avr_compare_pattern): Likewise.
8496 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
8497 and locals "branch1", "branch2", "insn2", "jump".
8498 (avr_reorg): Likewise for local "insn".
8499 (avr_2word_insn_p): Likewise for param "insn".
8500 (jump_over_one_insn_p): Likewise.
8501 (avr_out_sbxx_branch): Likewise.
8502 (avr_out_movmem): Likewise.
8504 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8506 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
8507 param from rtx to rtx_insn *.
8508 (thumb1_final_prescan_insn): Likewise.
8509 (thumb2_final_prescan_insn): Likewise.
8511 * config/arm/arm.c (emit_set_insn): Strengthen return type from
8513 (struct minipool_node): Likewise for field "insn".
8514 (dump_minipool): Likewise for param "scan".
8515 (create_fix_barrier): Likewise for local "from". Strengthen local
8516 "label" from rtx to rtx_code_label *.
8517 (push_minipool_barrier): Strengthen param "insn" from rtx to
8519 (push_minipool_fix): Likewise.
8520 (note_invalid_constants): Likewise.
8521 (thumb2_reorg): Likewise for local "insn".
8522 (arm_reorg): Likewise.
8523 (thumb2_final_prescan_insn): Likewise for param
8524 "insn" and local "first_insn".
8525 (arm_final_prescan_insn): Likewise for param "insn" and locals
8526 "start_insn", "this_insn".
8527 (arm_debugger_arg_offset): Likewise for param "insn".
8528 (thumb1_emit_multi_reg_push): Likewise for return type and local
8530 (thumb1_final_prescan_insn): Likewise for param "insn".
8531 (thumb_far_jump_used_p): Likewise for local "insn".
8532 (thumb1_expand_prologue): Likewise.
8533 (arm_expand_epilogue_apcs_frame): Likewise.
8534 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
8535 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
8536 from rtx to rtx_code_label *.
8537 (arm_split_atomic_op): Likewise for local "label".
8538 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
8540 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8542 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
8543 first param from rtx to rtx_insn *.
8544 (arc_verify_short): Likewise.
8545 (arc_short_long): Likewise.
8546 (arc_need_delay): Likewise.
8548 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
8550 (arc_ccfsm_advance): Likewise for param "insn" and locals
8551 "start_insn", "this_insn".
8552 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
8553 (arc_ccfsm_post_advance): Likewise for param "insn".
8554 (arc_next_active_insn): Likewise for return type and param "insn".
8555 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
8556 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
8557 (output_short_suffix): Likewise for local "insn".
8558 (arc_final_prescan_insn): Likewise for param "insn". Remove
8559 now-redundant checked cast.
8560 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
8561 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
8562 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
8563 for use where lc_set became an insn.
8564 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
8566 (arc_get_insn_variants): Likewise for local "prev".
8567 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
8569 (arc_predicate_delay_insns): Likewise for local "insn".
8570 (arc_pad_return): Likewise for local "prev". For now, add a
8571 checked cast when extracting the insn from "final_sequence".
8572 (arc_short_long): Likewise for param "insn".
8573 (arc_need_delay): Likewise for param "insn" and local "next".
8574 (arc_label_align): Likewise for locals "prev", "next".
8576 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8578 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
8579 "insn" from rtx to rtx_insn *.
8580 (alpha_gp_save_rtx): Likewise for local "seq".
8581 (alpha_instantiate_decls): Likewise for local "top".
8582 (get_some_local_dynamic_name): Likewise for local "insn".
8583 (alpha_does_function_need_gp): Likewise.
8584 (set_frame_related_p): Likewise for return type and for locals
8586 (emit_frame_store_1): Likewise for local "insn".
8587 (alpha_expand_prologue): Likewise for locals "insn", "seq".
8588 (alpha_end_function): Likewise for local "insn".
8589 (alpha_output_mi_thunk_osf): Likewise.
8590 (alphaev4_insn_pipe): Likewise for param "insn".
8591 (alphaev5_insn_pipe): Likewise.
8592 (alphaev4_next_group): Likewise for return type and param 1
8594 (alphaev5_next_group): Likewise.
8595 (alpha_align_insns_1): Likewise for return type and param 1 of
8596 callback param "next_group", and for locals "i", "next", "prev",
8597 "where", "where2", "insn".
8599 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
8601 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
8602 rather than modifying the stmt.
8604 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8606 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
8607 cgraph_state conversion.
8609 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8611 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8612 Strengthen local "insns" from rtx to rtx_insn *.
8613 (aarch64_set_frame_expr): Likewise for local "insn".
8614 (aarch64_save_or_restore_fprs): Likewise.
8615 (aarch64_save_or_restore_callee_save_registers): Likewise.
8616 (aarch64_expand_prologue): Likewise.
8617 (aarch64_expand_epilogue): Likewise.
8618 (aarch64_output_mi_thunk): Likewise.
8619 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
8620 "label2" from rtx to rtx_code_label *.
8621 (aarch64_split_atomic_op): Likewise for local "label".
8623 2014-08-25 Martin Liska <mliska@suse.cz>
8625 * cgraph.h (symtab_node):
8626 (bool needed_p (void)): created from decide_is_symbol_needed
8627 (bool referred_to_p (void)): created from referred_to_p
8628 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
8629 * cgraph.h (cgraph_node):
8630 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
8631 (void expand (void)): created from expand_function
8632 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
8633 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
8634 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
8635 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
8636 * cgraph.h (varpool_node):
8637 (static void add (tree decl): created from varpool_add_new_variable
8638 * cgraph.h (cgraph_edge):
8640 (void remove_caller (void)): created from cgraph_edge_remove_caller
8641 (void remove_callee (void)): created from cgraph_edge_remove_callee
8642 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
8643 created from cgraph_set_call_stmt
8644 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
8645 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
8646 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
8647 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
8648 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
8649 created from cgraph_speculative_call_info
8650 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
8651 int freq_scale, bool update_original)): created from cgraph_clone_edge
8652 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
8653 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
8654 (bool recursive_p (void)): created from cgraph_edge_recursive_p
8655 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
8656 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
8657 (static void rebuild_references (void)): created from cgraph_rebuild_references
8658 * cgraph.h (symbol_table):
8659 (create_reference): renamed from add_reference
8660 (maybe_create_reference): renamed from maybe_add_reference
8661 (void register_symbol (symtab_node *node)): new function
8662 (void clear_asm_symbols (void)): new function
8663 (void unregister (symtab_node *node)): new function
8664 (void release_symbol (cgraph_node *node, int uid)): new function
8665 (cgraph_node * allocate_cgraph_symbol (void)): new function
8666 (void initialize (void)): created from cgraph_init
8667 (symtab_node *first_symbol (void)):new function
8668 (asm_node *first_asm_symbol (void)):new function
8669 (symtab_node *first_defined_symbol (void)):new function
8670 (varpool_node *first_variable (void)):new function
8671 (varpool_node *next_variable (varpool_node *node)):new function
8672 (varpool_node *first_static_initializer (void)):new function
8673 (varpool_node *next_static_initializer (varpool_node *node)):new function
8674 (varpool_node *first_defined_variable (void)):new function
8675 (varpool_node *next_defined_variable (varpool_node *node)):new function
8676 (cgraph_node *first_defined_function (void)):new function
8677 (cgraph_node *next_defined_function (cgraph_node *node)):new function
8678 (cgraph_node *first_function (void)):new function
8679 (cgraph_node *next_function (cgraph_node *node)):new function
8680 (cgraph_node *first_function_with_gimple_body (void)):new function
8681 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
8682 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
8683 created from symtab_remove_unreachable_nodes
8684 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
8685 (void process_new_functions (void)): created from cgraph_process_new_functions
8686 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
8687 (bool output_variables (void)): created from varpool_node::output_variables
8688 (void output_asm_statements (void)): created from output_asm_statements
8689 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
8690 (void compile (void)): created from compile
8691 (void output_weakrefs (void)): created from output_weakrefs
8692 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
8693 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
8694 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
8695 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
8696 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
8697 created from cgraph_next_function_with_gimple_body
8698 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
8699 created from cgraph_remove_edge_removal_hook
8700 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
8701 created from cgraph_add_node_removal_hook
8702 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
8703 created from cgraph_remove_node_removal_hook
8704 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
8705 created from varpool_add_node_removal_hook
8706 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
8707 created from varpool_remove_node_removal_hook
8708 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
8709 created from cgraph_add_function_insertion_hook
8710 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
8711 created from cgraph_remove_function_insertion_hook
8712 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
8713 created from varpool_add_variable_insertion_hook
8714 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
8715 created from varpool_remove_variable_insertion_hook
8716 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
8717 created from cgraph_add_edge_duplication_hook
8718 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
8719 created from cgraph_remove_edge_duplication_hook
8720 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
8721 created from cgraph_add_node_duplication_hook
8722 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
8723 created from cgraph_remove_node_duplication_hook
8724 (void call_edge_removal_hooks (cgraph_edge *e)):
8725 created from cgraph_call_edge_removal_hooks
8726 (void call_cgraph_insertion_hooks (cgraph_node *node)):
8727 created from call_function_insertion_hooks
8728 (void call_cgraph_removal_hooks (cgraph_node *node)):
8729 created from cgraph_call_node_removal_hooks
8730 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
8731 created from cgraph_node::call_duplication_hooks
8732 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
8733 created from cgraph_call_edge_duplication_hooks
8734 (void call_varpool_removal_hooks (varpool_node *node)):
8735 created from varpool_call_node_removal_hooks
8736 (void call_varpool_insertion_hooks (varpool_node *node)):
8737 created from varpool_call_variable_insertion_hooks
8738 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
8739 created from insert_to_assembler_name_hash
8740 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
8741 created from unlink_from_assembler_name_hash
8742 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
8743 created from symtab_prevail_in_asm_name_hash
8744 (void symtab_initialize_asm_name_hash (void)):
8745 created from symtab_initialize_asm_name_hash
8746 (void change_decl_assembler_name (tree decl, tree name)):
8747 created from change_decl_assembler_name
8748 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
8749 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
8750 created from decl_assembler_name_hash
8751 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
8752 created from decl_assembler_name_equal
8753 (static hashval_t hash_node_by_assembler_name (const void *p)):
8754 created from hash_node_by_assembler_name
8755 (static int eq_assembler_name (const void *p1, const void *p2)):
8756 created from eq_assembler_name
8758 2014-08-25 Marek Polacek <polacek@redhat.com>
8760 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
8762 2014-08-25 Petr Murzin <petr.murzin@intel.com>
8764 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
8765 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
8766 SWI1248_AVX512BW mode iterator.
8768 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
8771 * config/sh/predicates.md (general_extend_operand): Disable
8772 TRUNCATE before reload completes.
8774 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
8776 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
8778 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
8781 * config/sh/sh.opt (musermode): Allow negative form.
8782 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
8783 targets that don't support it.
8784 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
8785 Document -mno-usermode option.
8787 2014-08-24 Kito Cheng <kito@0xlab.org>
8789 * system.h (CALLER_SAVE_PROFITABLE): Poison.
8790 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
8791 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
8792 * doc/tm.texi: Regenerate.
8794 2014-08-24 Kito Cheng <kito@0xlab.org>
8796 * ira.c: Fix typo in comment.
8798 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
8800 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
8801 Deprecate c++1y. Change language to reflect greater confidence in C++14.
8803 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
8806 * config/pa/pa.c (pa_output_function_epilogue): Don't set
8807 last_address when the current function is a thunk.
8808 (pa_asm_output_mi_thunk): When we don't have named sections or they
8809 are not being used, check that thunk can reach the stub table with a
8812 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8814 * web.c (union_match_dups): Strengthen param "insn" from rtx to
8816 (pass_web::execute): Likewise for local "insn".
8818 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8820 * var-tracking.c (struct micro_operation_def): Strengthen field
8821 "insn" from rtx to rtx_insn *.
8822 (struct emit_note_data_def): Likewise.
8823 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
8824 (vt_stack_adjustments): Likewise for local "insn".
8825 (adjust_insn): Likewise for param "insn".
8826 (val_store): Likewise.
8827 (val_resolve): Likewise.
8828 (struct count_use_info): Likewise for field "insn".
8829 (log_op_type): Likewise for param "insn".
8830 (reverse_op): Likewise.
8831 (prepare_call_arguments): Likewise.
8832 (add_with_sets): The initial param takes an insn, but we can't
8833 yet strengthen it from rtx to rtx_insn * since it's used as a
8834 cselib_record_sets_hook callback. For now rename initial param
8835 from "insn" to "uncast_insn", and introduce a local "insn" of
8836 the stronger rtx_insn * type, with a checked cast.
8837 (compute_bb_dataflow): Strengthen local "insn" from rtx to
8839 (emit_note_insn_var_location): Likewise.
8840 (emit_notes_for_changes): Likewise.
8841 (emit_notes_for_differences): Likewise.
8842 (next_non_note_insn_var_location): Likewise for return type and
8844 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
8845 (vt_initialize): Likewise for local "insn".
8846 (delete_debug_insns): Likewise for locals "insn" and "next".
8848 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8850 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
8852 (mark_constant_pool): Likewise for local "insn".
8854 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8856 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
8858 (dead_debug_promote_uses): Likewise.
8859 (dead_debug_insert_temp): Likewise.
8861 2014-08-23 David Malcolm <dmalcolm@redhat.com>
8863 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
8864 from const_rtx to const rtx_insn *.
8865 (store_killed_after): Likewise. Strengthen locals "last", "act"
8866 from rtx to rtx_insn *.
8867 (store_killed_before): Strengthen param "insn" from const_rtx to
8868 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
8869 (find_moveable_store): Strengthen param "insn" from rtx to
8871 (compute_store_table): Likewise for local "insn".
8872 (insert_insn_start_basic_block): Likewise for param "insn" and
8873 locals "prev", "before", "insn".
8874 (insert_store): For now, add a checked cast to rtx_insn * on the
8875 result of gen_move_insn.
8876 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
8878 (replace_store_insn): Likewise. For now, add a checked cast to
8879 rtx_insn * on the result of gen_move_insn.
8881 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8883 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
8885 (expand_sjlj_dispatch_table): Likewise.
8887 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8889 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
8890 "insn" from rtx to rtx_insn *.
8892 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8894 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
8895 "insn" from rtx to rtx_insn *.
8896 (dup_block_and_redirect): Likewise for param 3 "before".
8898 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
8899 from rtx to rtx_insn *.
8900 (move_insn_for_shrink_wrap): Likewise.
8901 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
8902 (dup_block_and_redirect): Likewise for param "before" and local
8904 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
8906 (convert_to_simple_return): Likewise for local "start".
8908 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
8909 Strengthen local "insn" from rtx to rtx_insn *, for use when
8910 invoking requires_stack_frame_p.
8912 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8914 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
8916 (speculate_expr): Likewise for locals "orig_insn_rtx",
8918 (eq_transformed_insns): Likewise for locals "i1", "i2".
8919 (check_for_new_jump): Likewise for return type and local "end".
8920 (find_new_jump): Likewise for return type and local "jump".
8921 (sel_split_edge): Likewise for local "jump".
8922 (sel_create_recovery_block): Likewise.
8923 (sel_redirect_edge_and_branch_force): Likewise.
8924 (sel_redirect_edge_and_branch): Likewise.
8926 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8928 * sel-sched.c (substitute_reg_in_expr): Strengthen local
8929 "new_insn" from rtx to rtx_insn *.
8930 (create_insn_rtx_with_rhs): Likewise for return type and for local
8932 (create_insn_rtx_with_lhs): Likewise.
8933 (create_speculation_check): Likewise for local "insn_rtx".
8934 (implicit_clobber_conflict_p): Likewise for local "insn".
8935 (get_expr_cost): Likewise.
8936 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
8937 (move_cond_jump): Likewise for locals "next", "prev", "link",
8938 "head", "from", "to".
8940 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8942 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
8943 "next" from rtx to rtx_insn *.
8944 (find_conditional_protection): Likewise for local "next".
8945 (is_conditionally_protected): Likewise for local "insn1".
8946 (is_pfree): Likewise for locals "insn1", "insn2".
8948 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8950 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
8951 from rtx to rtx_insn *.
8953 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
8954 locals "insn1", "insn2" from rtx to rtx_insn *.
8955 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
8956 locals "insn", "prev", "last_jump", "next_tail".
8957 (schedule_ebb): Likewise for params "head", "tail".
8958 (schedule_ebbs): Likewise for locals "tail", "head".
8960 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
8961 to rtx_insn on "last_insn" in one of the invocations of
8964 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8966 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
8967 "elem", "insn" from rtx to rtx_insn *.
8968 (change_spec_dep_to_hard): Likewise.
8969 (get_back_and_forw_lists): Likewise for local "con".
8970 (sd_add_dep): Likewise for locals "elem", "insn".
8971 (sd_resolve_dep): Likewise for locals "pro", "con".
8972 (sd_unresolve_dep): Likewise.
8973 (sd_delete_dep): Likewise.
8974 (chain_to_prev_insn): Likewise for local "pro".
8975 (find_inc): Likewise for locals "pro", "con".
8977 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8979 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
8981 (reg_set_between_p): Strengthen local "insn" from const_rtx to
8983 (modified_between_p): Strengthen local "insn" from rtx to
8985 (remove_reg_equal_equiv_notes_for_regno): Likewise.
8986 (keep_with_call_p): Strengthen local "i2" from const_rtx to
8989 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8991 * resource.c (next_insn_no_annul): Strengthen local "next" from
8993 (mark_referenced_resources): Likewise for local "insn".
8995 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8997 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
8999 (find_reloads): Likewise for param 1.
9000 (subst_reloads): Likewise for sole param.
9001 (find_equiv_reg): Likwise for param 2.
9002 (regno_clobbered_p): Likwise for param 2.
9003 (reload): Likewise for param 1.
9005 * caller-save.c (save_call_clobbered_regs): Strengthen local
9006 "insn" from rtx to rtx_insn *.
9007 (insert_one_insn): Likewise for local "insn".
9009 * reload.c (this_insn): Likewise for this global.
9010 (find_reloads): Likewise for param "insn".
9011 (find_reloads_toplev): Likewise.
9012 (find_reloads_address): Likewise.
9013 (subst_reg_equivs): Likewise.
9014 (update_auto_inc_notes): Likewise.
9015 (find_reloads_address_1): Likewise.
9016 (find_reloads_subreg_address): Likewise.
9017 (subst_reloads): Likewise.
9018 (find_equiv_reg): Likewise, also for local "p".
9019 (regno_clobbered_p): Likewise for param "insn".
9021 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
9023 (spill_reg_store): Likewise for the elements of this array.
9024 (remove_init_insns): Likewise for local "equiv_insn".
9025 (will_delete_init_insn_p): Likewise for param "insn".
9026 (reload): Likewise for param ""first" and local "insn".
9027 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
9029 (calculate_elim_costs_all_insns): Likewise.
9030 (delete_caller_save_insns): Likewise.
9031 (spill_failure): Likewise for param "insn".
9032 (delete_dead_insn): Likewise.
9033 (set_label_offsets): Likewise.
9034 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
9036 (elimination_costs_in_insn): Likewise for param "insn".
9037 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
9038 when referring to an insn.
9039 (set_initial_label_offsets): Likewise.
9040 (set_offsets_for_label): Strengthen param "insn" from rtx to
9042 (init_eliminable_invariants): Likewise for param "first" and local
9044 (fixup_eh_region_note): Likewise for param "insn".
9045 (reload_as_needed): Likewise for locals "prev", "insn",
9046 "old_next", "old_prev", "next".
9047 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
9049 (reload_inheritance_insn): Strengthen elements of this array from
9051 (failed_reload): Likewise for param "insn".
9052 (choose_reload_regs): Likewise for local "insn". Replace use of
9053 NULL_RTX with NULL when referring to an insn.
9054 (input_reload_insns): Strengthen elements of this array from rtx
9056 (other_input_address_reload_insns): Likewise for this global.
9057 (other_input_reload_insns): Likewise for this global.
9058 (input_address_reload_insns): Likwise for the elements of this
9060 (inpaddr_address_reload_insns): Likwise for the elements of this
9062 (output_reload_insns): Likewise for the elements of this array.
9063 (output_address_reload_insns): Likewise for the elements of this
9065 (outaddr_address_reload_insns): Likewise for the elements of this
9067 (operand_reload_insns): Likewise for this global.
9068 (other_operand_reload_insns): Likewise for this global.
9069 (other_output_reload_insns): Likewise for the elements of this
9071 (new_spill_reg_store): Likewise for the elements of this
9073 (emit_input_reload_insns): Likewise for locals "insn", "temp".
9074 Strengthen local "where" from rtx * to rtx_insn **.
9075 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
9076 from rtx to rtx_insn *.
9077 (do_input_reload): Likewise for local "insn".
9078 (do_output_reload): Likewise for local "insn".
9079 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
9080 (emit_insn_if_valid_for_reload): Likewise for return type and local
9081 "last". Add checked cast to rtx_insn when returning "insn" since
9082 this has been through emit_insn.
9083 (gen_reload): Strengthen return type and locals "last", "insn", "set"
9084 from rtx to rtx_insn *. Add checked cast to rtx_insn when
9085 returning "insn" since it's been through
9086 emit_insn_if_valid_for_reload at this point.
9087 (delete_output_reload): Strengthen param "insn" and locals
9088 "output_reload_insn", "i2" from rtx to rtx_insn *.
9089 (delete_address_reloads): Likewise for params "dead_insn",
9090 "current_insn" and locals "prev", "next".
9091 (delete_address_reloads_1): Likewise for params "dead_insn",
9092 "current_insn" and locals "prev", "i2".
9093 (inc_for_reload): Likewise for locals "last", "add_insn".
9094 (add_auto_inc_notes): Strengthen param "insn" from rtx to
9097 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
9098 param of this duplicate of the prototype from reload.h
9100 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9102 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
9104 (regstat_bb_compute_calls_crossed): Likewise.
9106 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9108 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
9110 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
9112 (regrename_analyze): Strengthen local "insn" from rtx to
9114 (scan_rtx_reg): Likewise for param "insn".
9115 (scan_rtx_address): Likewise.
9116 (scan_rtx): Likewise.
9117 (restore_operands): Likewise.
9118 (record_out_operands): Likewise.
9119 (build_def_use): Likewise for local "insn". Replace use of
9120 NULL_RTX with NULL when dealing with an insn.
9122 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9124 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
9125 * reginfo.c (reg_scan): Likewise, also for local "insn".
9126 (reg_scan_mark_refs): Likewise for param "insn".
9127 (init_subregs_of_mode): Likewise for local "insn".
9129 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9131 * regcprop.c (struct queued_debug_insn_change): Strengthen field
9132 "insn" from rtx to rtx_insn *.
9133 (replace_oldest_value_reg): Likewise for param "insn".
9134 (replace_oldest_value_addr): Likewise.
9135 (replace_oldest_value_mem): Likewise.
9136 (apply_debug_insn_changes): Likewise for local "last_insn".
9137 (copyprop_hardreg_forward_1): Likewise for local "insn".
9139 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9141 * reg-stack.c (next_flags_user): Strengthen return type and param
9142 "insn" from rtx to rtx_insn *.
9143 (straighten_stack): Likewise for param "insn".
9144 (check_asm_stack_operands): Likewise.
9145 (remove_regno_note): Likewise.
9146 (emit_pop_insn): Likewise for return type, param "insn", local
9148 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
9149 "limit" from rtx to rtx_insn *.
9150 (swap_to_top): Likewise for param "insn".
9151 (move_for_stack_reg): Likewise.
9152 (move_nan_for_stack_reg): Likewise.
9153 (swap_rtx_condition): Likewise.
9154 (compare_for_stack_reg): Likewise.
9155 (subst_all_stack_regs_in_debug_insn): Likewise.
9156 (subst_stack_regs_pat): Likewise, and local "insn2".
9157 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
9159 (subst_stack_regs): Likewise.
9160 (change_stack): Likewise.
9161 (convert_regs_1): Likewise for locals "insn", "next".
9163 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9165 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
9167 (combine_set_extension): Likewise for param "curr_insn".
9168 (transform_ifelse): Likewise for param "def_insn".
9169 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
9170 from vec<rtx> * to vec<rtx_insn *> *.
9171 (is_cond_copy_insn): Likewise for param "insn".
9172 (struct ext_state): Strengthen the four vec fields from vec<rtx>
9174 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
9175 local "def_insn" from rtx to rtx_insn *.
9176 (get_sub_rtx): Likewise for param "def_insn".
9177 (merge_def_and_ext): Likewise.
9178 (combine_reaching_defs): Likewise.
9179 (add_removable_extension): Likewise for param "insn".
9180 (find_removable_extensions): Likewise for local "insn".
9181 (find_and_remove_re): Likewise for locals "curr_insn" and
9182 "def_insn". Strengthen locals "reinsn_del_list" and
9183 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
9185 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9187 * recog.c (split_insn): Strengthen param "insn" and locals
9188 "first", "last" from rtx to rtx_insn *.
9189 (split_all_insns): Likewise for locals "insn", "next".
9190 (split_all_insns_noflow): Likewise.
9192 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9194 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
9196 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9197 (debug_rtx_find): Likewise for param 1 "x".
9199 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
9200 const_rtx to const rtx_insn *. Likewise for local "insn".
9201 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9202 (debug_rtx_find): Likewise for param 1 "x".
9203 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
9204 from const_rtx to const rtx_insn * within the appropriate cases of
9205 the switch statement.
9207 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
9208 Strengthen local "insns" from rtx to rtx_insn * since this is
9209 passed to a call to debug_rtx_list.
9211 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9213 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
9216 * function.c (stack_protect_epilogue): Add checked cast to
9217 rtx_insn for now when invoking predict_insn_def.
9219 * predict.c (predict_insn): Strengthen param "insn" from rtx to
9221 (predict_insn_def): Likewise.
9222 (rtl_predict_edge): Likewise for local "last_insn".
9223 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
9225 (combine_predictions_for_insn): Strengthen param "insn" from rtx
9227 (bb_estimate_probability_locally): Likewise for local "last_insn".
9228 (expensive_function_p): Likewise for local "insn".
9230 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
9231 local "jmp", since this is used when invoking predict_insn_def.
9233 2014-08-22 Marek Polacek <polacek@redhat.com>
9236 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
9238 2014-08-22 Marek Polacek <polacek@redhat.com>
9241 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
9242 a comparison in parens.
9243 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
9246 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9248 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
9251 * cprop.c (fis_get_condition): Likewise.
9253 * postreload.c (reload_cse_regs): Likewise for param "first".
9254 (reload_cse_simplify): Likewise for param "insn".
9255 (reload_cse_regs_1): Likewise for local "insn".
9256 (reload_cse_simplify_set): Likewise for param "insn".
9257 (reload_cse_simplify_operands): Likewise.
9258 (struct reg_use): Likewise for field "insn".
9259 (reload_combine_purge_insn_uses): Likewise for param "insn".
9260 (fixup_debug_insns): Likewise for params "from", "to" and local
9262 (try_replace_in_use): Likewise for local "use_insn".
9263 (reload_combine_recognize_const_pattern): Likewise for param
9264 "insn" and locals "add_moved_after_insn", "use_insn".
9265 (reload_combine_recognize_pattern): Likewise for param "insn" and
9267 (reload_combine): Likewise for locals "insn", "prev".
9268 (reload_combine_note_use): Likewise for param "insn".
9269 (move2add_use_add2_insn): Likewise.
9270 (move2add_use_add3_insn): Likewise.
9271 (reload_cse_move2add): Likewise, also for local "next".
9272 (move2add_note_store): Likewise for local "insn".
9274 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9276 * postreload-gcse.c (struct occr): Strengthen field "insn" from
9278 (struct unoccr): Likewise.
9279 (struct modifies_mem): Likewise.
9280 (alloc_mem): Likewise for local "insn".
9281 (insert_expr_in_table): Likewise for param "insn".
9282 (dump_expr_hash_table_entry): Likewise for local "insn".
9283 (oprs_unchanged_p): Likewise for param "insn".
9284 (load_killed_in_block_p): Likewise for local "setter".
9285 (record_last_reg_set_info): Likewise for param "insn".
9286 (record_last_reg_set_info_regno): Likewise.
9287 (record_last_mem_set_info): Likewise.
9288 (record_last_set_info): Likewise for local "last_set_insn".
9289 (record_opr_changes): Likewise for param "insn".
9290 (hash_scan_set): Likewise.
9291 (compute_hash_table): Likewise for local "insn".
9292 (get_avail_load_store_reg): Likewise for param "insn".
9293 (eliminate_partially_redundant_load): Likewise, also for locals
9294 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
9296 (eliminate_partially_redundant_loads): Likewise for local "insn".
9298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9300 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
9302 (expand_binop): Likewise for locals "entry_last", "last", "insns"
9303 (expand_twoval_unop): Likewise for locals entry_last", "last".
9304 (expand_twoval_binop): Likewise.
9305 (expand_twoval_binop_libfunc): Likewise for local "insns".
9306 (widen_leading): Likewise for local "last".
9307 (expand_doubleword_clz): Likewise for local "seq". Strengthen
9308 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
9309 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
9310 (expand_parity): Likewise for locals "last" and "seq".
9311 (expand_ffs): Likewise for local "seq". Strengthen local
9312 "nonzero_label" from rtx to rtx_code_label *.
9313 (expand_absneg_bit): Strengthen local "insns" from rtx to
9315 (expand_unop_direct): Likewise for local "last".
9316 (expand_unop): Likewise for locals "last", "insns".
9317 (expand_abs_nojump): Likewise for local "last".
9318 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
9319 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
9321 (expand_copysign_absneg): Strengthen local "label" from rtx to
9323 (expand_copysign_bit): Strengthen local "insns" from rtx to
9325 (struct no_conflict_data): Likewise for fields "first", "insn".
9326 (emit_libcall_block_1): Likewise for param "insns" and locals
9327 "next", "last", "insn".
9328 (emit_libcall_block): For now, add a checked cast to rtx_insn *
9329 on "insns" when invoking emit_libcall_block_1. Ultimately we
9330 want to strengthen insns itself.
9331 (prepare_cmp_insn): Strengthen local "last" from rtx to
9333 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
9334 (prepare_float_lib_cmp): Likewise for local "insns".
9335 (emit_conditional_move): Likewise for local "last".
9336 (emit_conditional_add): Likewise.
9337 (have_sub2_insn): Likewise for local "seq".
9338 (expand_float): Likewise for local "insns". Strengthen locals
9339 "label", "neglabel" from rtx to rtx_code_label *.
9340 (expand_fix): Likewise for locals "last", "insn", "insns" (to
9341 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
9342 (expand_fixed_convert): Likewise for local "insns" (to
9344 (expand_sfix_optab): Likewise for local "last".
9345 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
9346 to rtx_code_label *.
9347 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
9348 from rtx to rtx_insn *.
9349 (expand_atomic_fetch_op): Likewise for local "insn".
9350 (maybe_legitimize_operand_same_code): Likewise for local "last".
9351 (maybe_legitimize_operands): Likewise.
9353 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9355 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
9356 "insn" from rtx to rtx_insn *.
9357 (ps_rtl_insn): Likewise for return type.
9358 (doloop_register_get): Likewise for params "head", "tail" and
9359 locals "insn", "first_insn_not_to_check".
9360 (schedule_reg_move): Likewise for local "this_insn".
9361 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
9362 of gen_move_insn for now.
9363 (reset_sched_times): Strengthen local "insn" from rtx to
9365 (permute_partial_schedule): Likewise.
9366 (duplicate_insns_of_cycles): Likewise for local "u_insn".
9367 (dump_insn_location): Likewise for param "insn".
9368 (loop_canon_p): Likewise for local "insn".
9369 (sms_schedule): Likewise.
9370 (print_partial_schedule): Likewise.
9371 (ps_has_conflicts): Likewise.
9373 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9375 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
9376 "tailp" from rtx * to rtx_insn **.
9378 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
9379 from rtx to rtx_insn *.
9380 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
9381 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
9382 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
9384 * modulo-sched.c (const_iteration_count): Strengthen return type
9385 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
9386 use of NULL_RTX with NULL when working with insns.
9387 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
9389 (sms_schedule): Likewise.
9390 * sched-rgn.c (init_ready_list): Likewise, also for locals
9391 "src_head" and "src_next_tail".
9392 (compute_block_dependences): Likewise.
9393 (free_block_dependencies): Likewise.
9394 (debug_rgn_dependencies): Likewise.
9395 (free_rgn_deps): Likewise.
9396 (compute_priorities): Likewise.
9397 (schedule_region): Likewise.
9398 * sel-sched.c (find_ebb_boundaries): Likewise.
9400 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
9401 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
9403 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9405 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
9406 from rtx to rtx_insn *.
9407 (new_seginfo): Likewise for param "insn".
9408 (create_pre_exit): Likewise for locals "last_insn",
9409 "before_return_copy", "return_copy".
9410 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
9413 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9415 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
9416 from rtx to rtx_insn *.
9417 (lra_push_insn): Likewise for 1st param.
9418 (lra_push_insn_and_update_insn_regno_info): Likewise.
9419 (lra_pop_insn): Likewise for return type.
9420 (lra_invalidate_insn_data): Likewise for 1st param.
9421 (lra_set_insn_deleted): Likewise.
9422 (lra_delete_dead_insn): Likewise.
9423 (lra_process_new_insns): Likewise for first 3 params.
9424 (lra_set_insn_recog_data): Likewise for 1st param.
9425 (lra_update_insn_recog_data): Likewise.
9426 (lra_set_used_insn_alternative): Likewise.
9427 (lra_invalidate_insn_regno_info): Likewise.
9428 (lra_update_insn_regno_info): Likewise.
9429 (lra_former_scratch_operand_p): Likewise.
9430 (lra_eliminate_regs_1): Likewise.
9431 (lra_get_insn_recog_data): Likewise.
9433 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
9436 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
9438 (substitute_within_insn): New.
9439 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
9440 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
9441 Replace call to "substitute" with call to substitute_within_insn.
9443 * lra-constraints.c (curr_insn): Strengthen from rtx to
9445 (get_equiv_with_elimination): Likewise for param "insn".
9446 (match_reload): Strengthen params "before" and "after" from rtx *
9448 (emit_spill_move): Likewise for return type. Add a checked cast
9449 to rtx_insn * on result of gen_move_insn for now.
9450 (check_and_process_move): Likewise for local "before". Replace
9451 NULL_RTX with NULL when referring to insns.
9452 (process_addr_reg): Strengthen params "before" and "after" from
9453 rtx * to rtx_insn **.
9454 (insert_move_for_subreg): Likewise.
9455 (simplify_operand_subreg): Strengthen locals "before" and "after"
9456 from rtx to rtx_insn *.
9457 (process_address_1): Strengthen params "before" and "after" from
9458 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
9460 (process_address): Strengthen params "before" and "after" from
9461 rtx * to rtx_insn **.
9462 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
9463 (curr_insn_transform): Strengthen locals "before" and "after"
9464 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
9466 (loc_equivalence_callback): Update cast of "data", changing
9467 resulting type from rtx to rtx_insn *.
9468 (substitute_pseudo_within_insn): New.
9469 (inherit_reload_reg): Strengthen param "insn" from rtx to
9470 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
9471 NULL when referring to insns. Add a checked cast to rtx_insn *
9472 when using usage_insn to invoke lra_update_insn_regno_info.
9473 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
9474 likewise for locals "restore", "save". Add checked casts to
9475 rtx_insn * when using usage_insn to invoke
9476 lra_update_insn_regno_info and lra_process_new_insns. Replace
9477 NULL_RTX with NULL when referring to insns.
9478 (split_if_necessary): Strengthen param "insn" from rtx to
9480 (update_ebb_live_info): Likewise for params "head", "tail" and local
9482 (get_last_insertion_point): Likewise for return type and local "insn".
9483 (get_live_on_other_edges): Likewise for local "last".
9484 (inherit_in_ebb): Likewise for params "head", "tail" and locals
9485 "prev_insn", "next_insn", "restore".
9486 (remove_inheritance_pseudos): Likewise for local "prev_insn".
9487 (undo_optional_reloads): Likewise for local "insn".
9489 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
9491 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
9493 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
9495 (spill_pseudos): Likewise for local "insn".
9496 (init_elimination): Likewise.
9497 (process_insn_for_elimination): Likewise for param "insn".
9499 * lra-lives.c (curr_insn): Likewise.;
9501 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
9502 (remove_pseudos): Likewise for param "insn".
9503 (spill_pseudos): Likewise for local "insn".
9504 (lra_final_code_change): Likewise for locals "insn", "curr".
9506 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
9507 (lra_set_insn_deleted): Likewise.
9508 (lra_delete_dead_insn): Likewise, and for local "prev".
9509 (new_insn_reg): Likewise for param "insn".
9510 (lra_set_insn_recog_data): Likewise.
9511 (lra_update_insn_recog_data): Likewise.
9512 (lra_set_used_insn_alternative): Likewise.
9513 (get_insn_freq): Likewise.
9514 (invalidate_insn_data_regno_info): Likewise.
9515 (lra_invalidate_insn_regno_info): Likewise.
9516 (lra_update_insn_regno_info): Likewise.
9517 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
9519 (lra_push_insn_1): Strengthen param "insn" from rtx to
9521 (lra_push_insn): Likewise.
9522 (lra_push_insn_and_update_insn_regno_info): Likewise.
9523 (lra_pop_insn): Likewise for return type and local "insn".
9524 (push_insns): Likewise for params "from", "to", and local "insn".
9525 (setup_sp_offset): Likewise for params "from", "last" and locals
9527 (lra_process_new_insns): Likewise for params "insn", "before",
9528 "after" and local "last".
9529 (struct sloc): Likewise for field "insn".
9530 (lra_former_scratch_operand_p): Likewise for param "insn".
9531 (remove_scratches): Likewise for locals "insn", "last".
9532 (check_rtl): Likewise for local "insn".
9533 (add_auto_inc_notes): Likewise for param "insn".
9534 (update_inc_notes): Likewise for local "insn".
9535 (lra): Replace NULL_RTX with NULL when referring to insn.
9537 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9539 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
9541 (resolve_reg_notes): Likewise.
9542 (resolve_simple_move): Likewise for return type, param "insn", and
9543 locals "insns", "minsn".
9544 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
9545 (resolve_use): Likewise.
9546 (resolve_debug): Likewise.
9547 (find_decomposable_shift_zext): Likewise.
9548 (resolve_shift_zext): Likewise for return type, param "insn", and
9549 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
9550 (decompose_multiword_subregs): Likewise for local "insn",
9551 "orig_insn", "decomposed_shift", "end".
9553 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9555 * basic-block.h (basic_block split_edge_and_insert): Strengthen
9556 param "insns" from rtx to rtx_insn *.
9558 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
9560 (struct iv_to_split): Likewise.
9561 (loop_exit_at_end_p): Likewise for local "insn".
9562 (split_edge_and_insert): Likewise for param "insns".
9563 (compare_and_jump_seq): Likewise for return type, param "cinsn",
9564 and locals "seq", "jump".
9565 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
9566 "branch_code"; update invocations of compare_and_jump_seq to
9567 eliminate NULL_RTX in favor of NULL.
9568 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
9570 (reset_debug_uses_in_loop): Likewise.
9571 (analyze_insn_to_expand_var): Likewise for param "insn".
9572 (analyze_iv_to_split_insn): Likewise.
9573 (analyze_insns_in_loop): Likewise for local "insn".
9574 (insert_base_initialization): Likewise for param
9575 "insn" and local "seq".
9576 (split_iv): Likewise for param "insn" and local "seq".
9577 (expand_var_during_unrolling): Likewise for param "insn".
9578 (insert_var_expansion_initialization): Likewise for local "seq".
9579 (combine_var_copies_in_loop_exit): Likewise.
9580 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
9582 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
9583 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
9586 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9588 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
9590 (iv_analyze_result): Likewise.
9591 (iv_analyze_expr): Likewise.
9594 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
9595 local "def_insn" from rtx to rtx_insn *.
9596 (get_biv_step_1): Likewise for local "insn".
9597 (iv_analyze_expr): Likewise for param "insn".
9598 (iv_analyze_def): Likewise for local "insn".
9599 (iv_analyze_op): Likewise for param "insn".
9600 (iv_analyze): Likewise.
9601 (iv_analyze_result): Likewise.
9603 (suitable_set_for_replacement): Likewise.
9604 (simplify_using_initial_values): Likewise for local "insn".
9605 (iv_number_of_iterations): Likewise for param "insn".
9606 (check_simple_exit): Add checked cast to rtx_insn when invoking
9607 iv_number_of_iterations for now (until get_condition is
9610 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
9611 "insn" from rtx to rtx_insn *.
9612 (analyze_insns_in_loop): Likewise for local "insn".
9614 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9616 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
9618 (struct invariant): Likewise.
9619 (hash_invariant_expr_1): Likewise for param "insn".
9620 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
9621 (find_exits): Likewise for local "insn".
9622 (create_new_invariant): Likewise for param "insn".
9623 (check_dependencies): Likewise.
9624 (find_invariant_insn): Likewise.
9625 (record_uses): Likewise.
9626 (find_invariants_insn): Likewise.
9627 (find_invariants_bb): Likewise for local "insn".
9628 (get_pressure_class_and_nregs): Likewise for param "insn".
9629 (calculate_loop_reg_pressure): Likewise for local "insn".
9631 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9633 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
9635 (add_test): Likewise for locals "seq", "jump".
9636 (doloop_modify): Likewise for locals "sequence", "jump_insn".
9638 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9640 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
9642 (rebuild_jump_labels_chain): Likewise for param "chain".
9644 * cfgexpand.c (pass_expand::execute): Add checked cast to
9645 rtx_insn * when calling rebuild_jump_labels_chain in region where
9646 we know e->insns.r is non-NULL.
9648 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
9650 (rebuild_jump_labels): Likewise.
9651 (rebuild_jump_labels_chain): Likewise for param "chain".
9652 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
9653 (init_label_info): Likewise for param "f".
9654 (maybe_propagate_label_ref): Likewise for params "jump_insn",
9655 "prev_nonjump_insn".
9656 (mark_all_labels): Likewise for param "f" and locals "insn",
9657 "prev_nonjump_insn".
9659 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9661 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
9662 from rtx to rtx_insn *insn.
9663 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
9664 (ira_add_allocno_copy): Likewise.
9665 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
9667 (ira_create_copy): Likewise.
9668 (ira_add_allocno_copy): Likewise.
9669 (create_bb_allocnos): Likewise for local "insn".
9670 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
9671 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
9672 process_regs_for_copy for rtx_insn * param.
9673 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
9674 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
9675 process_regs_for_copy for rtx_insn * param.
9676 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
9677 * ira-costs.c (record_reg_classes): Likewise for param "insn".
9678 (record_operand_costs): Likewise.
9679 (scan_one_insn): Likewise for return type, and for param "insn".
9680 (process_bb_for_costs): Likewise for local "insn".
9681 (process_bb_node_for_hard_reg_moves): Likewise.
9682 * ira-emit.c (struct move): Likewise for field "insn".
9683 (create_move): Eliminate use of NULL_RTX when dealing with an
9685 (emit_move_list): Strengthen return type and locals "result",
9686 "insn" from rtx to rtx_insn *insn.
9687 (emit_moves): Likewise for locals "insns", "tmp".
9688 (ira_emit): Likewise for local "insn".
9689 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
9691 (find_call_crossed_cheap_reg): Likewise.
9692 (process_bb_node_lives): Likewise for local "insn".
9693 * ira.c (decrease_live_ranges_number): Likewise.
9694 (compute_regs_asm_clobbered): Likewise.
9695 (build_insn_chain): Likewise.
9696 (find_moveable_pseudos): Likewise, also locals "def_insn",
9697 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
9698 to rtx_insn **. Add a checked cast when assigning from
9699 "closest_use" into closest_uses array in a region where we know
9700 it's a non-NULL insn.
9701 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
9703 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
9704 "last_interesting_insn", "uin".
9705 (move_unallocated_pseudos): Likewise for locals "def_insn",
9706 "move_insn", "newinsn".
9708 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9710 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
9711 Strengthen locals "done_label", "do_error" from rtx to
9713 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
9714 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
9716 (ubsan_expand_si_overflow_neg_check): Likewise for locals
9717 "done_label", "do_error" to rtx_code_label * and local "last" to
9719 (ubsan_expand_si_overflow_mul_check): Likewise for locals
9720 "done_label", "do_error", "large_op0", "small_op0_large_op1",
9721 "one_small_one_large", "both_ops_large", "after_hipart_neg",
9722 "after_lopart_neg", "do_overflow", "hipart_different" to
9723 rtx_code_label * and local "last" to rtx_insn *.
9725 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9727 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
9728 "insn" and "move_insn" from rtx to rtx_insn *.
9730 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9732 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
9734 (cheap_bb_rtx_cost_p): Likewise.
9735 (first_active_insn): Likewise for return type and local "insn".
9736 (last_active_insn): Likewise for return type and locals "insn",
9738 (struct noce_if_info): Likewise for fields "jump", "insn_a",
9740 (end_ifcvt_sequence): Likewise for return type and locals "insn",
9742 (noce_try_move): Likewise for local "seq".
9743 (noce_try_store_flag): Likewise.
9744 (noce_try_store_flag_constants): Likewise.
9745 (noce_try_addcc): Likewise.
9746 (noce_try_store_flag_mask): Likewise.
9747 (noce_try_cmove): Likewise.
9748 (noce_try_minmax): Likewise.
9749 (noce_try_abs): Likewise.
9750 (noce_try_sign_mask): Likewise.
9751 (noce_try_bitop): Likewise.
9752 (noce_can_store_speculate_p): Likewise for local "insn".
9753 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
9755 (check_cond_move_block): Likewise for local "insn".
9756 (cond_move_convert_if_block): Likewise.
9757 (cond_move_process_if_block): Likewise for locals "seq",
9759 (noce_find_if_block): Likewise for local "jump".
9760 (merge_if_block): Likewise for local "last".
9761 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
9762 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
9763 (block_has_only_trap): Likewise for return type and local "trap".
9764 (find_if_case_1): Likewise for local "jump".
9765 (dead_or_predicable): Likewise for locals "head", "end", "jump",
9768 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9770 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
9771 "last_insn", "loop_end" from rtx to rtx_insn *.
9773 * hw-doloop.c (scan_loop): Likewise for local "insn".
9774 (discover_loop): Likewise for param "tail_insn".
9775 (discover_loops): Likewise for local "tail".
9777 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
9778 cast to rtx_insn * when assigning from an rtx local to a
9779 hwloop_info's "last_insn" field.
9781 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9783 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
9784 (add_delay_dependencies): Strengthen local "pro" from rtx to
9786 (recompute_todo_spec): Likewise.
9787 (dep_cost_1): Likewise for locals "insn", "used".
9788 (schedule_insn): Likewise for local "dbg".
9789 (schedule_insn): Likewise for locals "pro", "next".
9790 (unschedule_insns_until): Likewise for local "con".
9791 (restore_pattern): Likewise for local "next".
9792 (estimate_insn_tick): Likewise for local "pro".
9793 (resolve_dependencies): Likewise for local "next".
9794 (fix_inter_tick): Likewise.
9795 (fix_tick_ready): Likewise for local "pro".
9796 (add_to_speculative_block): Likewise for locals "check", "twin",
9798 (sched_extend_bb): Likewise for locals "end", "insn".
9799 (init_before_recovery): Likewise for local "x".
9800 (sched_create_recovery_block): Likewise for local "barrier".
9801 (create_check_block_twin): Likewise for local "pro".
9802 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
9804 (unlink_bb_notes): Update for change to type of bb_header.
9805 Strengthen locals "prev", "label", "note", "next" from rtx to
9807 (clear_priorities): Likewise for local "pro".
9809 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9811 * gcse.c (struct occr): Strengthen field "insn" from rtx to
9813 (test_insn): Likewise for this global.
9814 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
9816 (oprs_anticipatable_p): Likewise.
9817 (oprs_available_p): Likewise.
9818 (insert_expr_in_table): Strengthen param "insn" from rtx to
9820 (hash_scan_set): Likewise.
9821 (hash_scan_clobber): Likewise.
9822 (hash_scan_call): Likewise.
9823 (hash_scan_insn): Likewise.
9824 (compute_hash_table_work): Likewise for local "insn".
9825 (process_insert_insn): Likewise for return type and local "pat".
9826 (insert_insn_end_basic_block): Likewise for locals "new_insn",
9827 "pat", "pat_end", "maybe_cc0_setter".
9828 (pre_edge_insert): Likewise for local "insn".
9829 (pre_insert_copy_insn): Likewise for param "insn".
9830 (pre_insert_copies): Likewise for local "insn".
9831 (struct set_data): Likewise for field "insn".
9832 (single_set_gcse): Likewise for param "insn".
9833 (gcse_emit_move_after): Likewise.
9834 (pre_delete): Likewise for local "insn".
9835 (update_bb_reg_pressure): Likewise for param "from" and local
9837 (should_hoist_expr_to_dom): Likewise for param "from".
9838 (hoist_code): Likewise for local "insn".
9839 (get_pressure_class_and_nregs): Likewise for param "insn".
9840 (calculate_bb_reg_pressure): Likewise for local "insn".
9841 (compute_ld_motion_mems): Likewise.
9843 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9845 * genpeep.c (main): Rename param back from "uncast_ins1" to
9846 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
9849 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
9851 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9854 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
9855 documentation to state it is only for VSX operations.
9857 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
9858 constraint only active if VSX.
9860 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
9861 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
9864 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9866 * fwprop.c (single_def_use_dom_walker::before_dom_children):
9867 Strengthen local "insn" from rtx to rtx_insn *.
9868 (use_killed_between): Likewise for param "target_insn".
9869 (all_uses_available_at): Likewise for param "target_insn" and
9871 (update_df_init): Likewise for params "def_insn", "insn".
9872 (update_df): Likewise for param "insn".
9873 (try_fwprop_subst): Likewise for param "def_insn" and local
9875 (free_load_extend): Likewise for param "insn".
9876 (forward_propagate_subreg): Likewise for param "def_insn" and
9878 (forward_propagate_asm): Likewise for param "def_insn" and local
9880 (forward_propagate_and_simplify): Likewise for param "def_insn"
9881 and local "use_insn".
9882 (forward_propagate_into): Likewise for locals "def_insn" and
9885 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9887 * function.c (emit_initial_value_sets): Strengthen local "seq"
9888 from rtx to rtx_insn *.
9889 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
9891 (instantiate_virtual_regs): Likewise for local "insn".
9892 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
9893 (reorder_blocks_1): Likewise for param "insns" and local "insn".
9894 (expand_function_end): Likewise for locals "insn" and "seq".
9895 (epilogue_done): Likewise for local "insn".
9896 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
9898 (reposition_prologue_and_epilogue_notes): Likewise for locals
9899 "insn", "last", "note", "first".
9900 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
9901 (pass_match_asm_constraints::execute): Likewise for local "insn".
9903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9905 * output.h (final_scan_insn): Strengthen return type from rtx to
9907 (final_forward_branch_p): Likewise for param.
9908 (current_output_insn): Likewise for this global.
9910 * final.c (rtx debug_insn): Likewise for this variable.
9911 (current_output_insn): Likewise.
9912 (get_attr_length_1): Rename param "insn" to "uncast_insn",
9913 adding "insn" back in as an rtx_insn * with a checked cast, so
9914 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
9916 (compute_alignments): Strengthen local "label" from rtx to
9918 (shorten_branches): Rename param from "first" to "uncast_first",
9919 introducing a new local rtx_insn * "first" using a checked cast to
9920 effectively strengthen "first" from rtx to rtx_insn * without
9921 affecting the type signature. Strengthen locals "insn", "seq",
9922 "next", "label" from rtx to rtx_insn *.
9923 (change_scope): Strengthen param "orig_insn" and local "insn" from
9925 (final_start_function): Rename param from "first" to "uncast_first",
9926 introducing a new local rtx_insn * "first" using a checked cast to
9927 effectively strengthen "first" from rtx to rtx_insn * without
9928 affecting the type signature. Strengthen local "insn" from rtx to
9930 (dump_basic_block_info): Strengthen param "insn" from rtx to
9932 (final): Rename param from "first" to "uncast_first",
9933 introducing a new local rtx_insn * "first" using a checked cast to
9934 effectively strengthen "first" from rtx to rtx_insn * without
9935 affecting the type signature. Strengthen locals "insn", "next"
9936 from rtx to rtx_insn *.
9937 (output_alternate_entry_point): Strengthen param "insn" from rtx to
9939 (call_from_call_insn): Strengthen param "insn" from rtx to
9941 (final_scan_insn): Rename param from "insn" to "uncast_insn",
9942 introducing a new local rtx_insn * "insn" using a checked cast to
9943 effectively strengthen "insn" from rtx to rtx_insn * without
9944 affecting the type signature. Strengthen return type and locals
9945 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
9946 now-redundant checked cast to rtx_insn * from both invocations of
9947 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
9948 introducing a local "call_insn" for use when invoking
9949 call_from_call_insn.
9950 (notice_source_line): Strengthen param "insn" from rtx to
9952 (leaf_function_p): Likewise for local "insn".
9953 (final_forward_branch_p): Likewise.
9954 (leaf_renumber_regs): Likewise for param "first".
9955 (rest_of_clean_state): Likewise for locals "insn" and "next".
9956 (self_recursive_call_p): Likewise for param "insn".
9957 (collect_fn_hard_reg_usage): Likewise for local "insn".
9958 (get_call_fndecl): Likewise for param "insn".
9959 (get_call_cgraph_rtl_info): Likewise.
9960 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
9961 introducing a new local rtx_insn * "insn" using a checked cast to
9962 effectively strengthen "insn" from rtx to rtx_insn * without
9963 affecting the type signature.
9965 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
9966 cast when assigning from param "insn" to current_output_insn.
9967 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
9968 so that we can assign it back to current_output_insn.
9970 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9972 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
9973 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
9974 atmxt540s and atmxt540sreva devices.
9975 * config/avr/avr-tables.opt: Regenerate.
9976 * config/avr/t-multilib: Regenerate.
9977 * doc/avr-mmcu.texi: Regenerate.
9979 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9981 * expr.c (convert_move): Strengthen local "insns" from rtx to
9983 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
9984 "top_label" from rtx to rtx_code_label *.
9985 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
9987 (emit_single_push_insn): Likewise for locals "prev", "last".
9988 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
9989 to rtx_code_label *.
9990 (store_constructor): Likewise for locals "loop_start", "loop_end".
9991 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
9993 (expand_expr_real_2): Likewise.
9994 (expand_expr_real_1): Strengthen local "label" from rtx to
9997 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9999 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10000 from rtx to rtx_insn *.
10001 (store_bit_field_1): Likewise.
10002 (extract_bit_field_1): Likewise.
10003 (expand_mult_const): Likewise for local "insns".
10004 (expmed_mult_highpart): Strengthen local "label" from rtx to
10006 (expand_smod_pow2): Likewise.
10007 (expand_sdiv_pow2): Likewise.
10008 (expand_divmod): Strengthen locals "last", "insn" from rtx to
10009 rtx_insn *. Strengthen locals "label", "label1", "label2",
10010 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10011 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10012 (emit_store_flag): Likewise.
10013 (emit_store_flag_force): Strengthen local "label" from rtx to
10015 (do_cmp_and_jump): Likewise for param "label".
10017 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10019 * explow.c (force_reg): Strengthen local "insn" from rtx to
10021 (adjust_stack_1): Likewise.
10022 (allocate_dynamic_stack_space): Likewise. Strengthen locals
10023 "final_label", "available_label", "space_available" from rtx to
10025 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10026 (anti_adjust_stack_and_probe): Likewise.
10028 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10030 * except.h (sjlj_emit_function_exit_after): Strengthen param
10031 "after" from rtx to rtx_insn *. This is only called with
10032 result of get_last_insn (in function.c) so type-change should be
10035 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
10036 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10037 to rtx_insn *. These fields are only used from except.c so this
10038 type-change should be self-contained to this patch.
10040 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
10041 local "last" from rtx to rtx_insn *.
10042 (dw2_build_landing_pads): Likewise for local "seq".
10043 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
10044 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
10045 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
10047 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
10049 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
10050 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
10051 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
10052 referring to an insn. Strengthen local "dispatch_label" from
10053 rtx to rtx_code_label *.
10054 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
10056 (expand_eh_return): Strengthen local "around_label" from
10057 rtx to rtx_code_label *.
10058 (convert_to_eh_region_ranges): Strengthen locals "iter",
10059 "last_action_insn", "first_no_action_insn",
10060 "first_no_action_insn_before_switch",
10061 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
10063 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10065 * dwarf2out.c (last_var_location_insn): Strengthen this variable
10066 from rtx to rtx_insn *.
10067 (cached_next_real_insn): Likewise.
10068 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
10069 working with insns.
10070 (dwarf2out_var_location): Strengthen locals "next_real",
10071 "next_note", "expected_next_loc_note", "last_start", "insn" from
10074 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10076 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
10077 from rtx to rtx_insn *.
10078 (create_pseudo_cfg): Likewise for local "insn".
10080 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10082 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
10083 from rtx to rtx_insn *.
10084 (df_bb_regno_last_def_find): Likewise.
10086 * df-problems.c (df_rd_bb_local_compute): Likewise.
10087 (df_lr_bb_local_compute): Likewise.
10088 (df_live_bb_local_compute): Likewise.
10089 (df_chain_remove_problem): Likewise.
10090 (df_chain_create_bb): Likewise.
10091 (df_word_lr_bb_local_compute): Likewise.
10092 (df_remove_dead_eq_notes): Likewise for param "insn".
10093 (df_note_bb_compute): Likewise for local "insn".
10094 (simulate_backwards_to_point): Likewise.
10095 (df_md_bb_local_compute): Likewise.
10097 * df-scan.c (df_scan_free_bb_info): Likewise.
10098 (df_scan_start_dump): Likewise.
10099 (df_scan_start_block): Likewise.
10100 (df_install_ref_incremental): Likewise for local "insn".
10101 (df_insn_rescan_all): Likewise.
10102 (df_reorganize_refs_by_reg_by_insn): Likewise.
10103 (df_reorganize_refs_by_insn_bb): Likewise.
10104 (df_recompute_luids): Likewise.
10105 (df_bb_refs_record): Likewise.
10106 (df_update_entry_exit_and_calls): Likewise.
10107 (df_bb_verify): Likewise.
10109 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10111 * ddg.h (struct ddg_node): Strengthen fields "insn" and
10112 "first_note" from rtx to rtx_insn *.
10113 (get_node_of_insn): Likewise for param 2 "insn".
10114 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10116 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
10118 (mem_write_insn_p): Likewise.
10119 (mem_access_insn_p): Likewise.
10120 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10121 (def_has_ccmode_p): Likewise for param "insn".
10122 (add_cross_iteration_register_deps): Likewise for locals
10123 "def_insn" and "use_insn".
10124 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
10125 (build_intra_loop_deps): Likewise for local "src_insn".
10126 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
10128 (get_node_of_insn): Likewise for param "insn".
10130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10132 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
10133 (deletable_insn_p): Strengthen param "insn" from rtx to
10134 rtx_insn *. Add checked cast to rtx_call_insn when invoking
10135 find_call_stack_args, since this is guarded by CALL_P (insn).
10136 (marked_insn_p): Strengthen param "insn" from rtx to
10138 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
10139 invoking find_call_stack_args, since this is guarded by
10141 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
10142 rtx_insn *; we know this is an insn since this was called by
10143 mark_nonreg_stores.
10144 (mark_nonreg_stores_2): Likewise.
10145 (mark_nonreg_stores): Strengthen param "insn" from rtx to
10147 (find_call_stack_args): Strengthen param "call_insn" from rtx to
10148 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
10150 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
10151 from rtx to rtx_insn *.
10152 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
10153 "next", "ref_insn".
10154 (delete_unmarked_insns): Likewise for locals "insn", "next".
10155 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
10156 (mark_reg_dependencies): Likewise for param "insn".
10157 (rest_of_handle_ud_dce): Likewise for local "insn".
10158 (word_dce_process_block): Likewise.
10159 (dce_process_block): Likewise.
10161 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10163 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
10164 from rtx to rtx_insn *.
10165 (struct change_cc_mode_args): Likewise for field "insn".
10166 (this_insn): Strengthen from rtx to rtx_insn *.
10167 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
10169 (validate_canon_reg): Strengthen param "insn" from rtx to
10171 (canon_reg): Likewise.
10172 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
10174 (record_jump_equiv): Strengthen param "insn" from rtx to
10176 (try_back_substitute_reg): Likewise, also for locals "prev",
10178 (find_sets_in_insn): Likewise for param "insn".
10179 (canonicalize_insn): Likewise.
10180 (cse_insn): Likewise. Add a checked cast.
10181 (invalidate_from_clobbers): Likewise for param "insn".
10182 (invalidate_from_sets_and_clobbers): Likewise.
10183 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
10185 (cse_prescan_path): Strengthen local "insn" from rtx to
10187 (cse_extended_basic_block): Likewise for locals "insn" and
10189 (cse_main): Likewise for param "f".
10190 (check_for_label_ref): Likewise for local "insn".
10191 (set_live_p): Likewise for second param ("insn").
10192 (insn_live_p): Likewise for first param ("insn") and for local
10194 (cse_change_cc_mode_insn): Likewise for first param "insn".
10195 (cse_change_cc_mode_insns): Likewise for first and second params
10197 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
10199 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
10202 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10203 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10204 Anna Tikhonova <anna.tikhonova@intel.com>
10205 Ilya Tocar <ilya.tocar@intel.com>
10206 Andrey Turetskiy <andrey.turetskiy@intel.com>
10207 Ilya Verbin <ilya.verbin@intel.com>
10208 Kirill Yukhin <kirill.yukhin@intel.com>
10209 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10211 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
10213 * config/i386/sse.md
10214 (define_mode_iterator VI248_AVX2): Delete.
10215 (define_mode_iterator VI2_AVX2_AVX512BW): New.
10216 (define_mode_iterator VI48_AVX2): Ditto.
10217 (define_insn <shift_insn><mode>3): Delete.
10218 (define_insn "<shift_insn><mode>3<mask_name>" with
10219 VI2_AVX2_AVX512BW): New.
10220 (define_insn "<shift_insn><mode>3<mask_name>" with
10223 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10224 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10225 Anna Tikhonova <anna.tikhonova@intel.com>
10226 Ilya Tocar <ilya.tocar@intel.com>
10227 Andrey Turetskiy <andrey.turetskiy@intel.com>
10228 Ilya Verbin <ilya.verbin@intel.com>
10229 Kirill Yukhin <kirill.yukhin@intel.com>
10230 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10232 * config/i386/sse.md
10233 (define_mode_iterator VI4F_BRCST32x2): New.
10234 (define_mode_attr 64x2_mode): Ditto.
10235 (define_mode_attr 32x2mode): Ditto.
10236 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
10237 with VI4F_BRCST32x2): Ditto.
10238 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
10239 with V16FI mode iterator): Ditto.
10240 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10241 with V16FI): Ditto.
10242 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10243 with VI8F_BRCST64x2): Ditto.
10245 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10246 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10247 Anna Tikhonova <anna.tikhonova@intel.com>
10248 Ilya Tocar <ilya.tocar@intel.com>
10249 Andrey Turetskiy <andrey.turetskiy@intel.com>
10250 Ilya Verbin <ilya.verbin@intel.com>
10251 Kirill Yukhin <kirill.yukhin@intel.com>
10252 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10254 * config/i386/sse.md
10255 (define_mode_iterator VI8_AVX512VL): New.
10256 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
10258 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
10260 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
10261 (define_mode_iterator V48_AVX512VL): New.
10262 (define_mode_iterator V12_AVX512VL): Ditto.
10263 (define_insn <avx512>_load<mode>_mask): Split into two similar
10264 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
10265 Refactor output template.
10266 (define_insn "<avx512>_store<mode>_mask"): Ditto.
10268 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10270 * cprop.c (struct occr): Strengthen field "insn" from rtx to
10272 (reg_available_p): Likewise for param "insn".
10273 (insert_set_in_table): Likewise.
10274 (hash_scan_set): Likewise.
10275 (hash_scan_insn): Likewise.
10276 (make_set_regs_unavailable): Likewise.
10277 (compute_hash_table_work): Likewise for local "insn".
10278 (reg_not_set_p): Strengthen param "insn" from const_rtx to
10280 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
10281 (try_replace_reg): Likewise.
10282 (find_avail_set): Likewise.
10283 (cprop_jump): Likewise for params "setcc", "jump".
10284 (constprop_register): Likewise for param "insn".
10285 (cprop_insn): Likewise.
10286 (do_local_cprop): Likewise.
10287 (local_cprop_pass): Likewise for local "insn".
10288 (bypass_block): Likewise for params "setcc" and "jump".
10289 (bypass_conditional_jumps): Likewise for locals "setcc" and
10291 (one_cprop_pass): Likewise for local "insn".
10293 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10295 * compare-elim.c (struct comparison_use): Strengthen field "insn"
10296 from rtx to rtx_insn *.
10297 (struct comparison): Likewise, also for field "prev_clobber".
10298 (conforming_compare): Likewise for param "insn".
10299 (arithmetic_flags_clobber_p): Likewise.
10300 (find_flags_uses_in_insn): Likewise.
10301 (find_comparison_dom_walker::before_dom_children): Likewise for
10302 locals "insn", "next", "last_clobber".
10303 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
10305 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10307 * combine-stack-adj.c (struct csa_reflist): Strengthen field
10308 "insn" from rtx to rtx_insn *.
10309 (single_set_for_csa): Likewise for param "insn".
10310 (record_one_stack_ref): Likewise.
10311 (try_apply_stack_adjustment): Likewise.
10312 (struct record_stack_refs_data): Likewise for field "insn".
10313 (maybe_move_args_size_note): Likewise for params "last" and "insn".
10314 (prev_active_insn_bb): Likewise for return type and param "insn".
10315 (next_active_insn_bb): Likewise.
10316 (force_move_args_size_note): Likewise for params "prev" and "last"
10317 and locals "test", "next_candidate", "prev_candidate".
10318 (combine_stack_adjustments_for_block): Strengthen locals
10319 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
10322 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10324 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
10325 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
10326 (subst_insn): Likewise for this variable.
10327 (added_links_insn): Likewise.
10328 (struct insn_link): Likewise for field "insn".
10329 (alloc_insn_link): Likewise for param "insn".
10330 (struct undobuf): Likewise for field "other_insn".
10331 (find_single_use): Likewise for param "insn" and local "next".
10332 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
10333 (delete_noop_moves): Likewise for locals "insn", "next".
10334 (create_log_links): Likewise for locals "insn", "use_insn".
10335 Strengthen local "next_use" from rtx * to rtx_insn **.
10336 (insn_a_feeds_b): Likewise for params "a", "b".
10337 (combine_instructions): Likewise for param "f" and locals "insn",
10338 "next", "prev", "first", "last_combined_insn", "link", "link1",
10339 "temp". Replace use of NULL_RTX with NULL when referring to
10341 (setup_incoming_promotions): Likewise for param "first"
10342 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
10343 (can_combine_p): Likewise for params "insn", "i3", "pred",
10344 "pred2", "succ", "succ2" and for local "p".
10345 (combinable_i3pat): Likewise for param "i3".
10346 (cant_combine_insn_p): Likewise for param "insn".
10347 (likely_spilled_retval_p): Likewise.
10348 (adjust_for_new_dest): Likewise.
10349 (update_cfg_for_uncondjump): Likewise, also for local "insn".
10350 (try_combine): Likewise for return type and for params "i3", "i2",
10351 "i1", "i0", "last_combined_insn", and for locals "insn",
10352 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
10353 "i0_insn". Eliminate local "tem" in favor of new locals
10354 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
10355 checked cast for now to rtx_insn * on the return type of
10356 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
10358 (find_split_point): Strengthen param "insn" from rtx to
10360 (simplify_set): Likewise for local "other_insn".
10361 (recog_for_combine): Likewise for param "insn".
10362 (record_value_for_reg): Likewise.
10363 (record_dead_and_set_regs_1): Likewise for local
10364 "record_dead_insn".
10365 (record_dead_and_set_regs): Likewise for param "insn".
10366 (record_promoted_value): Likewise.
10367 (check_promoted_subreg): Likewise.
10368 (get_last_value_validate): Likewise.
10369 (reg_dead_at_p): Likewise.
10370 (move_deaths): Likewise for param "to_insn".
10371 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
10372 and locals "place", "place2", "cc0_setter". Eliminate local "tem
10373 in favor of new locals "tem_note" and "tem_insn", the latter being
10375 (distribute_links): Strengthen locals "place", "insn" from rtx to
10378 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10380 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
10382 (can_delete_label_p): Require a const rtx_code_label * rather than
10384 (delete_insn): Add checked cast to rtx_code_label * when we know
10385 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
10387 (delete_insn_chain): Strengthen locals "prev" and "current" from
10388 rtx to rtx_insn *. Add a checked cast when assigning from
10389 "finish" (strengthening the params will come later). Add a
10390 checked cast to rtx_note * in region where we know
10392 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
10394 (compute_bb_for_insn): Likewise.
10395 (free_bb_for_insn): Likewise for local "insn".
10396 (compute_bb_for_insn): Likewise.
10397 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
10398 local "insn" from rtx to rtx_insn *
10399 (flow_active_insn_p): Require a const rtx_insn * rather than a
10401 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
10403 (can_fallthru): Likewise for locals "insn" and "insn2".
10404 (bb_note): Likewise for local "note".
10405 (first_insn_after_basic_block_note): Likewise for local "note" and
10407 (rtl_split_block): Likewise for locals "insn" and "next".
10408 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
10410 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
10411 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
10413 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
10414 them), "kill_from", "barrier", "new_insn".
10415 (patch_jump_insn): Likewise for params "insn", "old_label".
10416 (redirect_branch_edge): Likewise for locals "old_label", "insn".
10417 (force_nonfallthru_and_redirect): Likewise for locals "insn",
10418 "old_label", "new_label".
10419 (rtl_tidy_fallthru_edge): Likewise for local "q".
10420 (rtl_split_edge): Likewise for locals "before", "last".
10421 (commit_one_edge_insertion): Likewise for locals "before",
10422 "after", "insns", "tmp", "last", adding a checked cast where
10423 currently necessary.
10424 (commit_edge_insertions): Likewise.
10425 (rtl_dump_bb): Likewise for locals "insn", "last".
10426 (print_rtl_with_bb): Likewise for local "x".
10427 (rtl_verify_bb_insns): Likewise for local "x".
10428 (rtl_verify_bb_pointers): Likewise for local "insn".
10429 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
10431 (rtl_verify_fallthru): Likewise for local "insn".
10432 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
10433 (purge_dead_edges): Likewise for local "insn".
10434 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
10435 (skip_insns_after_block): Likewise for return type and for locals
10436 "insn", "last_insn", "next_head", "prev".
10437 (record_effective_endpoints): Likewise for locals "next_insn",
10439 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
10440 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
10441 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
10442 (duplicate_insn_chain): For now, add checked cast from rtx to
10443 rtx_insn * when returning insn.
10444 (cfg_layout_duplicate_bb): Likewise for local "insn".
10445 (cfg_layout_delete_block): Likewise for locals "insn", "next",
10446 "prev", "remaints".
10447 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
10448 (rtl_block_empty_p): Likewise.
10449 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
10450 "split_point", "last".
10451 (rtl_block_ends_with_call_p): Likewise for local "insn".
10452 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
10454 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
10455 "split_at_insn" from rtx to rtx_insn *.
10456 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
10457 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
10458 to const rtx_insn *.
10459 (rtl_account_profile_record): Likewise.
10461 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10463 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
10465 (average_num_loop_insns): Likewise.
10466 (init_set_costs): Likewise for local "seq".
10467 (seq_cost): Likewise for param "seq", from const_rtx to const
10470 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10472 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
10475 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10477 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
10478 "f1" and "f2" from rtx * to rtx_insn **.
10479 (flow_find_head_matching_sequence): Likewise.
10481 * cfgcleanup.c (try_simplify_condjump): Strengthen local
10482 "cbranch_insn" from rtx to rtx_insn *.
10483 (thread_jump): Likewise for local "insn".
10484 (try_forward_edges): Likewise for local "last".
10485 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
10486 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
10488 (can_replace_by): Likewise for params "i1", "i2".
10489 (old_insns_match_p): Likewise.
10490 (merge_notes): Likewise.
10491 (walk_to_nondebug_insn): Likewise for param "i1".
10492 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
10493 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
10494 "afterlast1", "afterlast2" from rtx to rtx_insn *.
10495 (flow_find_head_matching_sequence): Strengthen params "f1" and
10496 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
10497 "last1", "last2", "beforelast1", "beforelast2" from rtx to
10499 (outgoing_edges_match): Likewise for locals "last1", "last2".
10500 (try_crossjump_to_edge): Likewise for local "insn".
10501 Replace call to for_each_rtx with for_each_rtx_in_insn.
10503 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
10504 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
10505 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
10506 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
10507 (try_optimize_cfg): Strengthen local "last" from rtx to
10509 (delete_dead_jumptables): Likewise for locals "insn", "next",
10512 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
10513 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
10514 "rtx else_first_tail", to reflect the basic-block.h changes above.
10516 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10518 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
10520 (purge_dead_tablejump_edges): Likewise.
10521 (find_bb_boundaries): Likewise for locals "insn", "end",
10522 "flow_transfer_insn".
10524 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10526 * caller-save.c (save_call_clobbered_regs): Strengthen locals
10527 "ins" and "prev" from rtx to rtx_insn *.
10529 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10531 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
10533 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
10534 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
10536 (load_register_parameters): Likewise for local "before_arg".
10537 (check_sibcall_argument_overlap): Likewise for param "insn".
10538 (expand_call): Likewise for locals "normal_call_insns",
10539 "tail_call_insns", "insns", "before_call", "after_args",
10540 "before_arg", "last", "prev". Strengthen one of the "last" from
10541 rtx to rtx_call_insn *.
10542 (fixup_tail_calls): Strengthen local "insn" from rtx to
10544 (emit_library_call_value_1): Likewise for locals "before_call" and
10547 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10549 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
10550 and "last" from rtx to rtx_insn *.
10551 (expand_builtin_nonlocal_goto): Likewise for local "insn".
10552 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
10554 (expand_errno_check): Strengthen local "lab" from rtx to
10556 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
10558 (expand_builtin_mathfn_2): Likewise.
10559 (expand_builtin_mathfn_ternary): Likewise.
10560 (expand_builtin_mathfn_3): Likewise.
10561 (expand_builtin_interclass_mathfn): Likewise for local "last".
10562 (expand_builtin_int_roundingfn): Likewise for local "insns".
10563 (expand_builtin_int_roundingfn_2): Likewise.
10564 (expand_builtin_strlen): Likewise for local "before_strlen".
10565 (expand_builtin_strncmp): Likewise for local "seq".
10566 (expand_builtin_signbit): Likewise for local "last".
10567 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
10568 from rtx to rtx_code_label *.
10569 (expand_stack_restore): Strengthen local "prev" from rtx to
10572 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10574 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
10576 (struct btr_def_s): Likewise.
10577 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
10579 (add_btr_def): Likewise.
10580 (new_btr_user): Likewise.
10581 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
10583 (link_btr_uses): Likewise.
10584 (move_btr_def): Likewise for locals "insp", "old_insn",
10585 "new_insn". Add checked cast to rtx_insn * for now on result of
10587 (can_move_up): Strengthen param "insn" from const_rtx to
10590 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10592 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
10594 (get_uncond_jump_length): Likewise for locals "label", "jump".
10595 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
10597 (add_labels_and_missing_jumps): Likewise for local "new_jump".
10598 (fix_up_fall_thru_edges): Likewise for local "old_jump".
10599 (find_jump_block): Likewise for local "insn".
10600 (fix_crossing_conditional_branches): Likewise for locals
10601 "old_jump", "new_jump".
10602 (fix_crossing_unconditional_branches): Likewise for locals
10603 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
10604 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
10606 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10608 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
10610 (struct mem_insn): Likewise for field "insn".
10611 (reg_next_use): Strengthen from rtx * to rtx_insn **.
10612 (reg_next_inc_use): Likewise.
10613 (reg_next_def): Likewise.
10614 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
10615 from rtx to rtx_insn *.
10616 (move_insn_before): Likewise for param "next_insn" and local "insns".
10617 (attempt_change): Likewise for local "mov_insn".
10618 (try_merge): Likewise for param "last_insn".
10619 (get_next_ref): Likewise for return type and local "insn".
10620 Strengthen param "next_array" from rtx * to rtx_insn **.
10621 (parse_add_or_inc): Strengthen param "insn" from rtx to
10623 (find_inc): Likewise for locals "insn" and "other_insn" (three of
10625 (merge_in_block): Likewise for locals "insn", "curr",
10627 (pass_inc_dec::execute): Update allocations of the arrays to
10628 reflect the stronger types.
10630 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10632 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
10633 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
10634 from rtx to rtx_code_label *.
10636 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10638 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
10641 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10643 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
10644 generated a warning and prevented bootstrapping the compiler.
10646 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10648 * rtl.h (delete_related_insns): Strengthen return type from rtx to
10651 * jump.c (delete_related_insns): Likewise, also for locals "next"
10654 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10656 * genautomata.c (output_internal_insn_latency_func): When writing
10657 the function "internal_insn_latency" to insn-automata.c,
10658 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
10659 allowing the optional guard function of (define_bypass) clauses to
10660 expect a pair of rtx_insn *, rather than a pair of rtx.
10661 (output_insn_latency_func): When writing the function
10662 "insn_latency", add an "uncast_" prefix to params "insn" and
10663 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
10664 using checked casts from the params, thus enabling the above
10665 change to the generated "internal_insn_latency" function.
10667 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
10669 PR tree-optimization/62091
10670 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
10671 handle correctly arrays.
10672 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
10673 inheritance binfos.
10674 (record_known_type): Walk into inner type.
10675 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
10676 condition on no type changes.
10678 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10680 * genattrtab.c (write_attr_get): Within the generated get_attr_
10681 functions, rename param "insn" to "uncast_insn" and reintroduce
10682 "insn" as an local rtx_insn * using a checked cast, so that "insn"
10683 is an rtx_insn * within insn-attrtab.c
10685 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10687 * output.h (peephole): Strengthen return type from rtx to
10689 * rtl.h (delete_for_peephole): Likewise for both params.
10690 * genpeep.c (main): In generated "peephole" function, strengthen
10691 return type and local "insn" from rtx to rtx_insn *. For now,
10692 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
10693 rtx_insn *, with a checked cast.
10694 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
10695 locals "insn", "next", "prev" from rtx to rtx_insn *.
10697 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
10699 PR tree-optimization/62112
10700 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
10701 * gimple-iterator.h (gsi_replace): Return bool.
10702 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
10703 moved from ref_may_alias_global_p.
10704 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
10706 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
10707 (stmt_kills_ref_p_1): Rename...
10708 (stmt_kills_ref_p): ... to this.
10709 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
10710 stmt_kills_ref_p): Declare.
10711 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
10712 Move the self-assignment case...
10713 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
10715 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10717 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
10719 * emit-rtl.c (try_split): Likewise, also for locals "before" and
10720 "after". For now, don't strengthen param "trial", which requires
10721 adding checked casts when returning it.
10723 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10725 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
10726 "label" from rtx to rtx_code_label *. Strengthen param 1 of
10727 "var_location" hook from rtx to rtx_insn *.
10728 (debug_nothing_rtx): Delete in favor of...
10729 (debug_nothing_rtx_code_label): New prototype.
10730 (debug_nothing_rtx_rtx): Delete unused prototype.
10731 (debug_nothing_rtx_insn): New prototype.
10733 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
10734 invoking debug_hooks->var_location (in two places, one in a NOTE
10735 case of a switch statement, the other guarded by a CALL_P
10736 conditional. Add checked cast to rtx_code_label * when invoking
10737 debug_hooks->label (within CODE_LABEL case of switch statement).
10739 * dbxout.c (dbx_debug_hooks): Update "label" hook from
10740 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
10741 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
10742 (xcoff_debug_hooks): Likewise.
10743 * debug.c (do_nothing_debug_hooks): Likewise.
10744 (debug_nothing_rtx): Delete in favor of...
10745 (debug_nothing_rtx_insn): New function.
10746 (debug_nothing_rtx_rtx): Delete unused function.
10747 (debug_nothing_rtx_code_label): New function.
10748 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
10749 debug_nothing_rtx to debug_nothing_rtx_code_label.
10750 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
10752 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
10753 debug_nothing_rtx to debug_nothing_rtx_insn.
10754 (sdbout_label): Strengthen param "insn" from rtx to
10756 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
10757 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
10758 "var_location" hook from debug_nothing_rtx to
10759 debug_nothing_rtx_insn.
10761 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10763 * recog.h (insn_output_fn): Update this function typedef to match
10764 the changes below to the generated output functions, strengthening
10765 the 2nd param from rtx to rtx_insn *.
10767 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
10768 insn when invoking an output function, to match the new signature
10769 of insn_output_fn with a stronger second param.
10771 * genconditions.c (write_header): In the generated code for
10772 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
10773 to match the other changes in this patch.
10775 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
10776 the generated "gen_" functions from rtx to rtx_insn * within their
10779 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
10780 the subfunctions within the generated "recog_", "split", "peephole2"
10781 function trees from rtx to rtx_insn *. For now, the top-level
10782 generated functions ("recog", "split", "peephole2") continue to
10783 take a plain rtx for "insn", to avoid introducing dependencies on
10784 other patches. Rename this 2nd param from "insn" to
10785 "uncast_insn", and reintroduce "insn" as a local variable of type
10786 rtx_insn *, initialized at the top of the generated function with
10787 a checked cast on "uncast_insn".
10788 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
10789 the generated "gen_" functions from rtx to rtx_insn * within their
10792 * genoutput.c (process_template): Strengthen the 2nd param within
10793 the generated "output_" functions "insn" from rtx to rtx_insn *.
10795 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
10797 * tree-profile.c (tree_profiling): Skip external functions
10798 when doing coverage instrumentation.
10799 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
10801 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10803 * config/rs6000/altivec.h (vec_cpsgn): New #define.
10804 (vec_mergee): Likewise.
10805 (vec_mergeo): Likewise.
10806 (vec_cntlz): Likewise.
10807 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
10808 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
10809 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
10810 VMRGEW, and VMRGOW.
10811 * doc/extend.texi: Document various forms of vec_cpsgn,
10812 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
10813 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
10814 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
10815 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
10816 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
10818 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10820 * config/rs6000/rs6000.c (context.h): New include.
10821 (tree-pass.h): Likewise.
10822 (make_pass_analyze_swaps): New decl.
10823 (rs6000_option_override): Register pass_analyze_swaps.
10824 (swap_web_entry): New subsclass of web_entry_base (df.h).
10825 (special_handling_values): New enum.
10826 (union_defs): New function.
10827 (union_uses): Likewise.
10828 (insn_is_load_p): Likewise.
10829 (insn_is_store_p): Likewise.
10830 (insn_is_swap_p): Likewise.
10831 (rtx_is_swappable_p): Likewise.
10832 (insn_is_swappable_p): Likewise.
10833 (chain_purpose): New enum.
10834 (chain_contains_only_swaps): New function.
10835 (mark_swaps_for_removal): Likewise.
10836 (swap_const_vector_halves): Likewise.
10837 (adjust_subreg_index): Likewise.
10838 (permute_load): Likewise.
10839 (permute_store): Likewise.
10840 (handle_special_swappables): Likewise.
10841 (replace_swap_with_copy): Likewise.
10842 (dump_swap_insn_table): Likewise.
10843 (rs6000_analyze_swaps): Likewise.
10844 (pass_data_analyze_swaps): New pass_data.
10845 (pass_analyze_swaps): New rtl_opt_pass.
10846 (make_pass_analyze_swaps): New function.
10847 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
10849 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10851 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
10852 type from rtx to rtx_insn *.
10853 (create_copy_of_insn_rtx): Likewise.
10854 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
10855 (create_copy_of_insn_rtx): Likewise, also for local "res".
10857 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10859 * rtl.h (find_first_parameter_load): Strengthen return type from
10861 * rtlanal.c (find_first_parameter_load): Strengthen return type
10862 from rtx to rtx_insn *. Add checked cast for now, to postpone
10863 strengthening the params.
10865 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10868 * diagnostic.c: Set default caret.
10869 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
10871 * diagnostic.h (struct diagnostic_context):
10873 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10875 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
10876 (sel_bb_head): Strengthen return type insn_t (currently just an
10877 rtx) to rtx_insn *.
10878 (sel_bb_end): Likewise.
10880 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
10881 (sel_bb_head): Strengthen return type and local "head" from
10882 insn_t (currently just an rtx) to rtx_insn *.
10883 (sel_bb_end): Likewise for return type.
10884 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
10887 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10889 * basic-block.h (get_last_bb_insn): Strengthen return type from
10891 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
10894 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10897 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
10899 (diagnostic_report_diagnostic): ... from here.
10900 * toplev.c (general_init): Move code to c-family.
10902 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10904 * df.h (web_entry_base): Replace existing struct web_entry with a
10905 new class web_entry_base with only the predecessor member.
10906 (unionfind_root): Remove declaration and move to class member.
10907 (unionfind_union): Remove declaration and move to friend
10909 (union_defs): Remove declaration.
10910 * web.c (web_entry_base::unionfind_root): Modify to be member
10911 function and adjust accessors.
10912 (unionfind_union): Modify to be friend function and adjust
10914 (web_entry): New subclass of web_entry_base containing the reg
10916 (union_match_dups): Modify for struct -> class changes.
10917 (union_defs): Likewise.
10918 (entry_register): Likewise.
10919 (pass_web::execute): Likewise.
10921 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
10923 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
10924 builtin define __VEC_ELEMENT_REG_ORDER__.
10926 2014-08-20 Martin Jambor <mjambor@suse.cz>
10927 Wei Mi <wmi@google.com>
10930 PR middle-end/61776
10931 * tree-ssa-operands.c (update_stmt_operands): Remove
10932 MODIFIED_NORETURN_CALLS.
10933 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
10934 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
10935 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
10936 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
10937 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
10938 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
10939 (gimple_call_set_ctrl_altering): New func.
10940 (gimple_call_ctrl_altering_p): Ditto.
10941 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
10942 (make_blocks): Use gimple_call_initialize_ctrl_altering.
10943 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
10944 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
10945 remove MODIFIED_NORETURN_CALLS.
10947 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
10949 * coverage.c (coverage_compute_profile_id): Return non-0;
10950 also handle symbols with unique name.
10951 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
10953 2014-08-20 Steve Ellcey <sellcey@mips.com>
10955 PR middle-end/49191
10956 * doc/sourcebuild.texi (non_strict_align): New.
10958 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
10960 * cgraphunit.c (ipa_passes, compile): Reshedule
10961 symtab_remove_unreachable_nodes passes; update comments.
10962 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
10963 TODO_remove_functions before the pass; the functions ought to be
10965 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
10966 TODO_remove_functions.
10967 * passes.c (pass_data_early_local_passes): Do not schedule function
10969 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
10971 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10974 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
10975 before setting the option.
10976 * diagnostic.c (diagnostic_classify_diagnostic): Record
10977 command-line status.
10979 2014-08-20 Richard Biener <rguenther@suse.de>
10982 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
10983 to build uint{16,32,64}_type_node.
10985 2014-08-20 Terry Guo <terry.guo@arm.com>
10987 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
10988 with immediate_operand.
10990 2014-08-20 David Malcolm <dmalcolm@redhat.com>
10992 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
10993 "insn" from an as_a to a safe_as_a, for the case when "insn" is
10996 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10998 PR preprocessor/51303
10999 * incpath.c (remove_duplicates): Use cpp_warning.
11001 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11005 * doc/options.texi (CPP): Document it.
11006 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11007 * optc-gen.awk: Handle CPP.
11008 * opth-gen.awk: Likewise.
11010 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11012 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11014 (duplicate_insn_chain): Likewise.
11015 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11016 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
11017 checked cast for now (until we can strengthen the params in the
11019 (duplicate_insn_chain): Likewise.
11021 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11023 * rtl.h (next_cc0_user): Strengthen return type from rtx to
11025 (prev_cc0_setter): Likewise.
11027 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
11028 rtx_insn *, adding checked casts for now as necessary.
11029 (prev_cc0_setter): Likewise.
11031 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11033 * expr.h (emit_move_insn): Strengthen return type from rtx to
11035 (emit_move_insn_1): Likewise.
11036 (emit_move_complex_push): Likewise.
11037 (emit_move_complex_parts): Likewise.
11039 * expr.c (emit_move_via_integer): Strengthen return type from rtx
11040 to rtx_insn *. Replace use of NULL_RTX with NULL when working
11042 (emit_move_complex_push): Strengthen return type from rtx to
11044 (emit_move_complex): Likewise, also for local "ret".
11045 (emit_move_ccmode): Likewise.
11046 (emit_move_multi_word): Likewise for return type and locals
11047 "last_insn", "seq".
11048 (emit_move_insn_1): Likewise for return type and locals "result",
11050 (emit_move_insn): Likewise for return type and local "last_insn".
11051 (compress_float_constant): Likewise.
11053 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11055 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
11056 from rtx to rtx_insn *.
11058 * rtl.h (emit_insn_before): Likewise.
11059 (emit_insn_before_noloc): Likewise.
11060 (emit_insn_before_setloc): Likewise.
11061 (emit_jump_insn_before): Likewise.
11062 (emit_jump_insn_before_noloc): Likewise.
11063 (emit_jump_insn_before_setloc): Likewise.
11064 (emit_call_insn_before): Likewise.
11065 (emit_call_insn_before_noloc): Likewise.
11066 (emit_call_insn_before_setloc): Likewise.
11067 (emit_debug_insn_before): Likewise.
11068 (emit_debug_insn_before_noloc): Likewise.
11069 (emit_debug_insn_before_setloc): Likewise.
11070 (emit_label_before): Likewise.
11071 (emit_insn_after): Likewise.
11072 (emit_insn_after_noloc): Likewise.
11073 (emit_insn_after_setloc): Likewise.
11074 (emit_jump_insn_after): Likewise.
11075 (emit_jump_insn_after_noloc): Likewise.
11076 (emit_jump_insn_after_setloc): Likewise.
11077 (emit_call_insn_after): Likewise.
11078 (emit_call_insn_after_noloc): Likewise.
11079 (emit_call_insn_after_setloc): Likewise.
11080 (emit_debug_insn_after): Likewise.
11081 (emit_debug_insn_after_noloc): Likewise.
11082 (emit_debug_insn_after_setloc): Likewise.
11083 (emit_label_after): Likewise.
11084 (emit_insn): Likewise.
11085 (emit_debug_insn): Likewise.
11086 (emit_jump_insn): Likewise.
11087 (emit_call_insn): Likewise.
11088 (emit_label): Likewise.
11089 (gen_clobber): Likewise.
11090 (emit_clobber): Likewise.
11091 (gen_use): Likewise.
11092 (emit_use): Likewise.
11095 (emit_barrier_before): Strengthen return type from rtx to
11097 (emit_barrier_after): Likewise.
11098 (emit_barrier): Likewise.
11100 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
11101 from rtx to rtx_insn *. Add checked casts for now when converting
11102 "last" from rtx to rtx_insn *.
11103 (emit_insn_before_noloc): Likewise for return type.
11104 (emit_jump_insn_before_noloc): Likewise.
11105 (emit_call_insn_before_noloc): Likewise.
11106 (emit_debug_insn_before_noloc): Likewise.
11107 (emit_barrier_before): Strengthen return type and local "insn"
11108 from rtx to rtx_barrier *.
11109 (emit_label_before): Strengthen return type from rtx to
11110 rtx_insn *. Add checked cast for now when returning param
11111 (emit_pattern_after_noloc): Strengthen return type from rtx to
11112 rtx_insn *. Add checked casts for now when converting "last" from
11114 (emit_insn_after_noloc): Strengthen return type from rtx to
11116 (emit_jump_insn_after_noloc): Likewise.
11117 (emit_call_insn_after_noloc): Likewise.
11118 (emit_debug_insn_after_noloc): Likewise.
11119 (emit_barrier_after): Strengthen return type from rtx to
11121 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
11122 Add checked cast for now when converting "label" from rtx to
11124 (emit_pattern_after_setloc): Strengthen return type from rtx to
11125 rtx_insn *. Add checked casts for now when converting "last" from
11127 (emit_pattern_after): Strengthen return type from rtx to
11129 (emit_insn_after_setloc): Likewise.
11130 (emit_insn_after): Likewise.
11131 (emit_jump_insn_after_setloc): Likewise.
11132 (emit_jump_insn_after): Likewise.
11133 (emit_call_insn_after_setloc): Likewise.
11134 (emit_call_insn_after): Likewise.
11135 (emit_debug_insn_after_setloc): Likewise.
11136 (emit_debug_insn_after): Likewise.
11137 (emit_pattern_before_setloc): Likewise. Add checked casts for now
11138 when converting "last" from rtx to rtx_insn *.
11139 (emit_pattern_before): Strengthen return type from rtx to
11141 (emit_insn_before_setloc): Likewise.
11142 (emit_insn_before): Likewise.
11143 (emit_jump_insn_before_setloc): Likewise.
11144 (emit_jump_insn_before): Likewise.
11145 (emit_call_insn_before_setloc): Likewise.
11146 (emit_call_insn_before): Likewise.
11147 (emit_debug_insn_before_setloc): Likewise.
11148 (emit_debug_insn_before): Likewise.
11149 (emit_insn): Strengthen return type and locals "last", "insn",
11150 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
11151 within cases where we know we have an insn.
11152 (emit_debug_insn): Likewise.
11153 (emit_jump_insn): Likewise.
11154 (emit_call_insn): Strengthen return type and local "insn" from rtx
11156 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
11157 a checked cast to rtx_insn * for now on "label".
11158 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
11159 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
11160 (emit_use): Likewise.
11161 (gen_use): Likewise, also for local "seq".
11162 (emit): Likewise for return type and local "insn".
11163 (rtx_insn): Likewise for return type and local "new_rtx".
11165 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
11166 from rtx to rtx_barrier *.
11168 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
11169 changed return type from rtx to rtx_insn *, we must update
11170 "emit_fn" type, and this in turn means updating...
11171 (frame_insn): ...this. Strengthen return type from rtx to
11172 rtx_insn *. Introduce a new local "insn" of the appropriate type.
11174 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11176 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
11177 rtx to rtx_jump_table_data *. Also for local.
11178 * rtl.h (emit_jump_table_data): Likewise.
11180 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11182 * basic-block.h (create_basic_block_structure): Strengthen third
11183 param "bb_note" from rtx to rtx_note *.
11184 * rtl.h (emit_note_before): Strengthen return type from rtx to
11186 (emit_note_after): Likewise.
11187 (emit_note): Likewise.
11188 (emit_note_copy): Likewise. Also, strengthen param similarly.
11189 * function.h (struct rtl_data): Strengthen field
11190 "x_stack_check_probe_note" from rtx to rtx_note *.
11192 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
11193 from rtx to rtx_note *.
11194 * cfgrtl.c (create_basic_block_structure): Strengthen third param
11195 "bb_note" from rtx to rtx_note *.
11196 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
11197 when calling emit_note_copy.
11198 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
11200 (emit_note_after): Likewise.
11201 (emit_note_before): Likewise.
11202 (emit_note_copy): Likewise. Also, strengthen param similarly.
11203 (emit_note): Likewise.
11204 * except.c (emit_note_eh_region_end): Likewise for return type.
11205 Strengthen local "next" from rtx to rtx_insn *.
11206 (convert_to_eh_region_ranges): Strengthen local "note"
11207 from rtx to rtx_note *.
11208 * final.c (change_scope): Likewise.
11209 (reemit_insn_block_notes): Likewise, for both locals named "note".
11210 Also, strengthen local "insn" from rtx to rtx_insn *.
11211 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
11213 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
11214 strengthen local "seq" from rtx to rtx_insn *.
11215 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
11217 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
11219 (get_bb_note_from_pool): Strengthen return type from rtx to
11221 (sel_create_basic_block): Strengthen local "new_bb_note" from
11222 insn_t to rtx_note *.
11223 * var-tracking.c (emit_note_insn_var_location): Strengthen local
11224 "note" from rtx to rtx_note *.
11225 (emit_notes_in_bb): Likewise.
11227 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11229 * function.h (struct rtl_data): Strengthen field
11230 "x_parm_birth_insn" from rtx to rtx_insn *.
11231 * function.c (struct assign_parm_data_all): Strengthen fields
11232 "first_conversion_insn" and "last_conversion_insn" from rtx to
11235 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11237 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
11238 to rtx_insn *; also for local "var_end_seq".
11239 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
11240 (maybe_cleanup_end_of_block): Likewise for param "last" and local
11242 (expand_gimple_cond): Likewise for locals "last2" and "last".
11243 (mark_transaction_restart_calls): Likewise for local "insn".
11244 (expand_gimple_stmt): Likewise for return type and locals "last"
11246 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
11247 (avoid_complex_debug_insns): Likewise for param "insn".
11248 (expand_debug_locations): Likewise for locals "insn", "last",
11249 "prev_insn" and "insn2".
11250 (expand_gimple_basic_block): Likewise for local "last".
11251 (construct_exit_block): Likewise for locals "head", "end",
11253 (pass_expand::execute): Likewise for locals "var_seq",
11254 "var_ret_seq", "next".
11256 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11258 * asan.h (asan_emit_stack_protection): Strengthen return type from
11260 * asan.c (asan_emit_stack_protection): Likewise. Add local
11261 "insns" to hold the return value.
11263 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11265 * basic-block.h (bb_note): Strengthen return type from rtx to
11267 * sched-int.h (bb_note): Likewise.
11268 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
11270 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11272 * rtl.h (make_insn_raw): Strengthen return type from rtx to
11275 * emit-rtl.c (make_insn_raw): Strengthen return type and local
11276 "insn" from rtx to rtx_insn *.
11277 (make_debug_insn_raw): Strengthen return type from rtx to
11278 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
11279 (make_jump_insn_raw): Strengthen return type from rtx to
11280 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
11281 (make_call_insn_raw): Strengthen return type from rtx to
11282 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
11283 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
11284 callback from rtx to rtx_insn *; likewise for local "insn" and
11285 "next", adding a checked cast to rtx_insn in the relevant cases of
11286 the switch statement.
11287 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
11288 callback from rtx to rtx_insn *.
11289 (emit_pattern_after_setloc): Likewise.
11290 (emit_pattern_after): Likewise.
11291 (emit_pattern_before_setloc): Likewise.
11292 (emit_pattern_before): Likewise.
11294 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11296 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
11298 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
11299 accepting an rtx_insn *.
11300 (last_call_insn): Strengthen return type from rtx to
11303 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11305 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
11306 "insns" from rtx to rtx_insn *.
11307 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
11308 locals "insn" and "prev".
11310 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11312 * rtl.h (tablejump_p): Strengthen third param from rtx * to
11313 rtx_jump_table_data **.
11315 * cfgbuild.c (make_edges): Introduce local "table", using it in
11316 place of "tmp" for jump table data.
11317 (find_bb_boundaries): Strengthen local "table" from rtx to
11318 rtx_jump_table_data *.
11319 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11320 (outgoing_edges_match): Likewise for locals "table1" and "table2".
11321 (try_crossjump_to_edge): Likewise.
11322 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
11324 (patch_jump_insn): Introduce local "table", using it in place of
11325 "tmp" for jump table data.
11326 (force_nonfallthru_and_redirect): Introduce local "table", so that
11327 call to tablejump_p can receive an rtx_jump_table_data **. Update
11328 logic around the call to overwrite "note" appropriately if
11329 tablejump_p returns non-zero.
11330 (get_last_bb_insn): Introduce local "table", using it in place of
11331 "tmp" for jump table data.
11332 * dwarf2cfi.c (create_trace_edges): Likewise.
11334 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
11335 from rtx to rtx_jump_table_data *.
11336 (create_fix_barrier): Strengthen local "tmp" from rtx to
11337 rtx_jump_table_data *.
11338 (arm_reorg): Likewise for local "table".
11340 * config/s390/s390.c (s390_chunkify_start): Likewise.
11342 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
11344 * jump.c (delete_related_insns): Strengthen local "lab_next" from
11345 rtx to rtx_jump_table_data *.
11347 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
11348 rtx_jump_table_data **. Add a checked cast when writing through
11349 the pointer: we know there that local "table" is non-NULL and that
11350 JUMP_TABLE_DATA_P (table) holds.
11351 (label_is_jump_target_p): Introduce local "table", using it in
11352 place of "tmp" for jump table data.
11354 2014-08-19 Marek Polacek <polacek@redhat.com>
11357 * doc/invoke.texi: Document -Wbool-compare.
11359 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11361 * rtl.h (entry_of_function): Strengthen return type from rtx to
11363 * cfgrtl.c (entry_of_function): Likewise.
11365 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11367 * emit-rtl.h (get_insns): Strengthen return type from rtx to
11368 rtx_insn *, adding a checked cast for now.
11369 (get_last_insn): Likewise.
11371 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11373 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
11376 * emit-rtl.c (gen_label_rtx): Likewise.
11378 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11380 * rtl.h (previous_insn): Strengthen return type from rtx to
11382 (next_insn): Likewise.
11383 (prev_nonnote_insn): Likewise.
11384 (prev_nonnote_insn_bb): Likewise.
11385 (next_nonnote_insn): Likewise.
11386 (next_nonnote_insn_bb): Likewise.
11387 (prev_nondebug_insn): Likewise.
11388 (next_nondebug_insn): Likewise.
11389 (prev_nonnote_nondebug_insn): Likewise.
11390 (next_nonnote_nondebug_insn): Likewise.
11391 (prev_real_insn): Likewise.
11392 (next_real_insn): Likewise.
11393 (prev_active_insn): Likewise.
11394 (next_active_insn): Likewise.
11396 * emit-rtl.c (next_insn): Strengthen return type from rtx to
11397 rtx_insn *, adding a checked cast.
11398 (previous_insn): Likewise.
11399 (next_nonnote_insn): Likewise.
11400 (next_nonnote_insn_bb): Likewise.
11401 (prev_nonnote_insn): Likewise.
11402 (prev_nonnote_insn_bb): Likewise.
11403 (next_nondebug_insn): Likewise.
11404 (prev_nondebug_insn): Likewise.
11405 (next_nonnote_nondebug_insn): Likewise.
11406 (prev_nonnote_nondebug_insn): Likewise.
11407 (next_real_insn): Likewise.
11408 (prev_real_insn): Likewise.
11409 (next_active_insn): Likewise.
11410 (prev_active_insn): Likewise.
11412 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
11413 param "stepfunc" so that it returns an rtx_insn * rather than an
11414 rtx, to track the change to prev_nonnote_insn_bb, which is the
11415 only function this is called with.
11416 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
11418 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
11420 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
11423 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11425 * coretypes.h (class rtx_debug_insn): Add forward declaration.
11426 (class rtx_nonjump_insn): Likewise.
11427 (class rtx_jump_insn): Likewise.
11428 (class rtx_call_insn): Likewise.
11429 (class rtx_jump_table_data): Likewise.
11430 (class rtx_barrier): Likewise.
11431 (class rtx_code_label): Likewise.
11432 (class rtx_note): Likewise.
11434 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
11435 adding the invariant DEBUG_INSN_P (X).
11436 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
11437 the invariant NONJUMP_INSN_P (X).
11438 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
11439 the invariant JUMP_P (X).
11440 (class rtx_call_insn): New, a subclass of rtx_insn, adding
11441 the invariant CALL_P (X).
11442 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
11443 invariant JUMP_TABLE_DATA_P (X).
11444 (class rtx_barrier): New, a subclass of rtx_insn, adding the
11445 invariant BARRIER_P (X).
11446 (class rtx_code_label): New, a subclass of rtx_insn, adding
11447 the invariant LABEL_P (X).
11448 (class rtx_note): New, a subclass of rtx_insn, adding
11449 the invariant NOTE_P(X).
11450 (is_a_helper <rtx_debug_insn *>::test): New.
11451 (is_a_helper <rtx_nonjump_insn *>::test): New.
11452 (is_a_helper <rtx_jump_insn *>::test): New.
11453 (is_a_helper <rtx_call_insn *>::test): New.
11454 (is_a_helper <rtx_jump_table_data *>::test): New functions,
11455 overloaded for both rtx and rtx_insn *.
11456 (is_a_helper <rtx_barrier *>::test): New.
11457 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
11458 for both rtx and rtx_insn *.
11459 (is_a_helper <rtx_note *>::test): New.
11461 2014-08-19 Marek Polacek <polacek@redhat.com>
11463 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
11464 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11465 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
11466 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11468 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11470 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
11471 rtx_insn *. To help with transition, for now, convert from an
11472 access macro into a pair of functions: BND_TO, returning an
11474 (SET_BND_TO): New function, for use where BND_TO is used as an
11477 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
11479 (BND_TO): New function, adding a checked cast.
11480 (SET_BND_TO): New function.
11482 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
11484 (compute_av_set_on_boundaries): Likewise.
11486 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11488 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
11489 destination if it is used in source.
11490 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
11491 (*popcount<mode>2_falsedep_1): Likewise.
11493 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11496 * configure.ac: Set install_gold_as_default to no first.
11497 * configure: Regenerated.
11499 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11501 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
11502 "note_list" field will eventually be an rtx_insn *. To help with
11503 transition, for now, convert from an access macro into a pair of
11504 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
11505 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
11508 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
11509 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
11511 * sel-sched-ir.c (init_bb): Likewise.
11512 (sel_restore_notes): Likewise.
11513 (move_bb_info): Likewise.
11514 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
11515 (SET_BB_NOTE_LIST): New function.
11517 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11519 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
11520 field will eventually be an rtx_insn *. To help with transition,
11521 for now, convert from an access macro into a pair of functions:
11522 VINSN_INSN_RTX, returning an rtx_insn *, and...
11523 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
11524 is used as an lvalue.
11526 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
11527 SET_VINSN_INSN_RTX where it's used as an lvalue.
11528 (VINSN_INSN_RTX): New function.
11529 (SET_VINSN_INSN_RTX): New function.
11531 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11533 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
11534 eventually be rtx_insn *, but to help with transition, for now,
11535 convert from an access macro into a pair of functions: DEP_PRO
11536 returning an rtx_insn * and...
11537 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
11538 lvalue, returning an rtx&.
11539 (DEP_CON): Analogous changes to DEP_PRO above.
11540 (SET_DEP_CON): Likewise.
11542 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
11543 an lvalue to SET_DEP_CON.
11544 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
11545 (sd_copy_back_deps): Likewise for DEP_CON.
11546 (DEP_PRO): New function, adding a checked cast for now.
11547 (DEP_CON): Likewise.
11548 (SET_DEP_PRO): New function.
11549 (SET_DEP_CON): Likewise.
11551 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
11553 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
11554 (extra_options): Add i386/cygwin.opt.
11555 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
11556 (CPP_SPEC): Accept -pthread.
11557 (LINK_SPEC): Ditto.
11558 (GOMP_SELF_SPECS): Update comment.
11559 * config/i386/cygwin.opt: New file for -pthread flag.
11561 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11563 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
11564 * df.h (DF_REF_INSN): Convert from a macro to a function, so
11565 that we can return an rtx_insn *.
11567 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
11569 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
11570 when building executables, not DLLs. Add --large-address-aware
11571 under the same conditions.
11572 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
11573 when building executables, not DLLs. Add --large-address-aware
11574 under the same conditions when using -m32.
11576 * config/i386/cygwin-stdint.h: Throughout, make type
11577 definitions dependent on target architecture, not host.
11579 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11581 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
11582 the return type from rtx to rtx_insn *, which will enable various
11583 conversions in followup patches. For now this is is done by a
11585 (NEXT_INSN): Likewise.
11586 (SET_PREV_INSN): Convert to an inline function. This is intended
11587 for use as an lvalue, and so returns an rtx& to allow in-place
11589 (SET_NEXT_INSN): Likewise.
11591 2014-07-08 Mark Wielaard <mjw@redhat.com>
11594 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
11596 2014-08-19 Marek Polacek <polacek@redhat.com>
11599 * cgraphunit.c (handle_alias_pairs): Fix condition.
11601 2014-08-19 Richard Biener <rguenther@suse.de>
11603 * gimple-fold.c (fold_gimple_assign): Properly build a
11604 null-pointer constant when devirtualizing addresses.
11606 2014-07-07 Mark Wielaard <mjw@redhat.com>
11608 * dwarf2out.c (decl_quals): New function.
11609 (modified_type_die): Take one cv_quals argument instead of two,
11610 one for const and one for volatile.
11611 (add_type_attribute): Likewise.
11612 (generic_parameter_die): Call add_type_attribute with one modifier
11614 (base_type_for_mode): Likewise.
11615 (add_bounds_info): Likewise.
11616 (add_subscript_info): Likewise.
11617 (gen_array_type_die): Likewise.
11618 (gen_descr_array_type_die): Likewise.
11619 (gen_entry_point_die): Likewise.
11620 (gen_enumeration_type_die): Likewise.
11621 (gen_formal_parameter_die): Likewise.
11622 (gen_subprogram_die): Likewise.
11623 (gen_variable_die): Likewise.
11624 (gen_const_die): Likewise.
11625 (gen_field_die): Likewise.
11626 (gen_pointer_type_die): Likewise.
11627 (gen_reference_type_die): Likewise.
11628 (gen_ptr_to_mbr_type_die): Likewise.
11629 (gen_inheritance_die): Likewise.
11630 (gen_subroutine_type_die): Likewise.
11631 (gen_typedef_die): Likewise.
11632 (force_type_die): Likewise.
11634 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11636 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
11638 * configure: Regenerate.
11640 2014-08-19 Richard Biener <rguenther@suse.de>
11642 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
11643 DECL_EXTERNALs in BLOCKs as non-references.
11644 * tree-streamer-out.c (streamer_write_chain): Likewise.
11646 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
11647 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11648 Anna Tikhonova <anna.tikhonova@intel.com>
11649 Ilya Tocar <ilya.tocar@intel.com>
11650 Andrey Turetskiy <andrey.turetskiy@intel.com>
11651 Ilya Verbin <ilya.verbin@intel.com>
11652 Kirill Yukhin <kirill.yukhin@intel.com>
11653 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11655 * config/i386/sse.md
11656 (define_mode_iterator VI48_AVX512F): Delete.
11657 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
11658 (define_mode_iterator VI2_AVX512VL): Ditto.
11659 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
11662 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
11664 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
11665 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
11666 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11667 with VI48_AVX512F_AVX512VL): New.
11668 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11669 with VI2_AVX512VL): Ditto.
11671 2014-08-19 Marek Polacek <polacek@redhat.com>
11673 * doc/invoke.texi: Document -Wc99-c11-compat.
11675 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11677 * rtl.h (PREV_INSN): Split macro in two: the existing one,
11678 for rvalues, and...
11679 (SET_PREV_INSN): New macro, for use as an lvalue.
11680 (NEXT_INSN, SET_NEXT_INSN): Likewise.
11682 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
11683 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
11684 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11685 (fixup_abnormal_edges): Likewise.
11686 (unlink_insn_chain): Likewise.
11687 (fixup_reorder_chain): Likewise.
11688 (cfg_layout_delete_block): Likewise.
11689 (cfg_layout_merge_blocks): Likewise.
11690 * combine.c (update_cfg_for_uncondjump): Likewise.
11691 * emit-rtl.c (link_insn_into_chain): Likewise.
11692 (remove_insn): Likewise.
11693 (delete_insns_since): Likewise.
11694 (reorder_insns_nobb): Likewise.
11695 (emit_insn_after_1): Likewise.
11696 * final.c (rest_of_clean_state): Likewise.
11697 (final_scan_insn): Likewise.
11698 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
11699 * haifa-sched.c (concat_note_lists): Likewise.
11700 (remove_notes): Likewise.
11701 (restore_other_notes): Likewise.
11702 (move_insn): Likewise.
11703 (unlink_bb_notes): Likewise.
11704 (restore_bb_notes): Likewise.
11705 * jump.c (delete_for_peephole): Likewise.
11706 * optabs.c (emit_libcall_block_1): Likewise.
11707 * reorg.c (emit_delay_sequence): Likewise.
11708 (fill_simple_delay_slots): Likewise.
11709 * sel-sched-ir.c (sel_move_insn): Likewise.
11710 (sel_remove_insn): Likewise.
11711 (get_bb_note_from_pool): Likewise.
11712 * sel-sched.c (move_nop_to_previous_block): Likewise.
11714 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
11715 * config/c6x/c6x.c (gen_one_bundle): Likewise.
11716 (c6x_gen_bundles): Likewise.
11717 (hwloop_optimize): Likewise.
11718 * config/frv/frv.c (frv_function_prologue): Likewise.
11719 (frv_register_nop): Likewise.
11720 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
11721 (ia64_reorg): Likewise.
11722 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
11723 (mep_make_bundle): Likewise.
11724 (mep_bundle_insns): Likewise.
11725 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
11726 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
11727 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
11729 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11731 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
11732 return type from rtx to rtx_insn *.
11733 (BB_END): Likewise.
11734 (BB_HEADER): Likewise.
11735 (BB_FOOTER): Likewise.
11736 (SET_BB_HEAD): Convert to a function.
11737 (SET_BB_END): Likewise.
11738 (SET_BB_HEADER): Likewise.
11739 (SET_BB_FOOTER): Likewise.
11741 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
11742 Strengthen the return type from rtx to rtx_insn *. For now, this
11743 is done by adding a checked cast, but this will eventually
11744 become a field lookup.
11745 (BB_END): Likewise.
11746 (BB_HEADER): Likewise.
11747 (BB_FOOTER): Likewise.
11748 (SET_BB_HEAD): New function, from macro of same name. This is
11749 intended for use as an lvalue, and so returns an rtx& to allow
11750 in-place modification.
11751 (SET_BB_END): Likewise.
11752 (SET_BB_HEADER): Likewise.
11753 (SET_BB_FOOTER): Likewise.
11755 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11757 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
11758 for rvalues, and...
11759 (SET_BB_HEAD): New macro, for use as a lvalue.
11760 (BB_END, SET_BB_END): Likewise.
11761 (BB_HEADER, SET_BB_HEADER): Likewise.
11762 (BB_FOOTER, SET_BB_FOOTER): Likewise.
11764 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
11765 of BB_* macros into SET_BB_* macros.
11766 (fix_crossing_unconditional_branches): Likewise.
11767 * caller-save.c (save_call_clobbered_regs): Likewise.
11768 (insert_one_insn): Likewise.
11769 * cfgbuild.c (find_bb_boundaries): Likewise.
11770 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11771 (outgoing_edges_match): Likewise.
11772 (try_optimize_cfg): Likewise.
11773 * cfgexpand.c (expand_gimple_cond): Likewise.
11774 (expand_gimple_tailcall): Likewise.
11775 (expand_gimple_basic_block): Likewise.
11776 (construct_exit_block): Likewise.
11777 * cfgrtl.c (delete_insn): Likewise.
11778 (create_basic_block_structure): Likewise.
11779 (rtl_delete_block): Likewise.
11780 (rtl_split_block): Likewise.
11781 (emit_nop_for_unique_locus_between): Likewise.
11782 (rtl_merge_blocks): Likewise.
11783 (block_label): Likewise.
11784 (try_redirect_by_replacing_jump): Likewise.
11785 (emit_barrier_after_bb): Likewise.
11786 (fixup_abnormal_edges): Likewise.
11787 (record_effective_endpoints): Likewise.
11788 (relink_block_chain): Likewise.
11789 (fixup_reorder_chain): Likewise.
11790 (fixup_fallthru_exit_predecessor): Likewise.
11791 (cfg_layout_duplicate_bb): Likewise.
11792 (cfg_layout_split_block): Likewise.
11793 (cfg_layout_delete_block): Likewise.
11794 (cfg_layout_merge_blocks): Likewise.
11795 * combine.c (update_cfg_for_uncondjump): Likewise.
11796 * emit-rtl.c (add_insn_after): Likewise.
11797 (remove_insn): Likewise.
11798 (reorder_insns): Likewise.
11799 (emit_insn_after_1): Likewise.
11800 * haifa-sched.c (get_ebb_head_tail): Likewise.
11801 (restore_other_notes): Likewise.
11802 (move_insn): Likewise.
11803 (sched_extend_bb): Likewise.
11804 (fix_jump_move): Likewise.
11805 * ifcvt.c (noce_process_if_block): Likewise.
11806 (dead_or_predicable): Likewise.
11807 * ira.c (update_equiv_regs): Likewise.
11808 * reg-stack.c (change_stack): Likewise.
11809 * sel-sched-ir.c (sel_move_insn): Likewise.
11810 * sel-sched.c (move_nop_to_previous_block): Likewise.
11812 * config/c6x/c6x.c (hwloop_optimize): Likewise.
11813 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
11815 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11817 * rtl.h (for_each_rtx_in_insn): New function.
11818 * rtlanal.c (for_each_rtx_in_insn): Likewise.
11820 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11822 * coretypes.h (class rtx_insn): Add forward declaration.
11824 * rtl.h: Include is-a.h.
11825 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
11826 workaround to ensure gengtype knows inheritance is occurring,
11827 whilst continuing to use the pre-existing special-casing for
11829 (class rtx_insn): New subclass of rtx_def, adding the
11830 invariant that we're dealing with something we can sanely use
11831 INSN_UID, NEXT_INSN, PREV_INSN on.
11832 (is_a_helper <rtx_insn *>::test): New.
11833 (is_a_helper <const rtx_insn *>::test): New.
11835 2014-08-18 David Malcolm <dmalcolm@redhat.com>
11837 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
11839 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
11841 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
11844 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
11846 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
11847 to BUILT_IN_UNREACHABLE.
11849 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
11852 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
11854 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
11855 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
11856 (ffs<mode>2): Do not expand with tzcnt for
11857 TARGET_AVOID_FALSE_DEP_FOR_BMI.
11858 (ffssi2_no_cmove): Ditto.
11859 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
11860 (ctz<mode>2): New expander.
11861 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
11862 (*ctz<mode>2_falsedep): New insn.
11863 (*ctz<mode>2): Rename from ctz<mode>2.
11864 (clz<mode>2_lzcnt): New expander.
11865 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
11866 (*clz<mode>2_lzcnt_falsedep): New insn.
11867 (*clz<mode>2): Rename from ctz<mode>2.
11868 (popcount<mode>2): New expander.
11869 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
11870 (*popcount<mode>2_falsedep): New insn.
11871 (*popcount<mode>2): Rename from ctz<mode>2.
11872 (*popcount<mode>2_cmp): Remove.
11873 (*popcountsi2_cmp_zext): Ditto.
11875 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
11877 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
11878 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
11879 * config/microblaze/microblaze.h
11880 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
11882 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
11885 * configure.ac: Set install_gold_as_default to no for
11887 * configure: Regenerated.
11889 2014-08-18 Roman Gareev <gareevroman@gmail.com>
11891 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
11892 * config.in: Add undef of HAVE_isl.
11893 * configure: Regenerate.
11894 * configure.ac: Add definition of HAVE_isl.
11895 * graphite-blocking.c: Add checking of HAVE_isl.
11896 * graphite-dependences.c: Likewise.
11897 * graphite-interchange.c: Likewise.
11898 * graphite-isl-ast-to-gimple.c: Likewise.
11899 * graphite-optimize-isl.c: Likewise.
11900 * graphite-poly.c: Likewise.
11901 * graphite-scop-detection.c: Likewise.
11902 * graphite-sese-to-poly.c: Likewise.
11903 * graphite.c: Likewise.
11904 * toplev.c: Replace the checking of HAVE_cloog with the checking
11907 2014-08-18 Richard Biener <rguenther@suse.de>
11909 PR tree-optimization/62090
11910 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
11911 (fold_builtin_3): Do not fold snprintf.
11912 (fold_builtin_4): Likewise.
11913 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
11914 moved from builtins.c.
11915 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
11916 (gimple_fold_builtin): Do not fold sprintf here.
11918 2014-08-18 Richard Biener <rguenther@suse.de>
11920 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
11922 (maybe_canonicalize_mem_ref_addr): ... this function.
11923 (fold_stmt_1): Apply it here before all simplification.
11925 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
11928 * cgraph.h (cgraph_node::create_indirect_edge): Add
11929 compute_indirect_info param.
11930 * cgraph.c (cgraph_node::create_indirect_edge): Compute
11931 indirect_info only when it is required.
11932 * cgraphclones.c (cgraph_clone_edge): Do not recompute
11933 indirect_info fore cloned indirect edge.
11935 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11936 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11937 Anna Tikhonova <anna.tikhonova@intel.com>
11938 Ilya Tocar <ilya.tocar@intel.com>
11939 Andrey Turetskiy <andrey.turetskiy@intel.com>
11940 Ilya Verbin <ilya.verbin@intel.com>
11941 Kirill Yukhin <kirill.yukhin@intel.com>
11942 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11944 * config/i386/sse.md
11945 (define_mode_iterator VI8_AVX2_AVX512BW): New.
11946 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
11948 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11950 Anna Tikhonova <anna.tikhonova@intel.com>
11951 Ilya Tocar <ilya.tocar@intel.com>
11952 Andrey Turetskiy <andrey.turetskiy@intel.com>
11953 Ilya Verbin <ilya.verbin@intel.com>
11954 Kirill Yukhin <kirill.yukhin@intel.com>
11955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11957 * config/i386/sse.md
11958 (define_mode_iterator VF1_AVX512VL): New.
11959 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
11960 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
11963 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11964 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11965 Anna Tikhonova <anna.tikhonova@intel.com>
11966 Ilya Tocar <ilya.tocar@intel.com>
11967 Andrey Turetskiy <andrey.turetskiy@intel.com>
11968 Ilya Verbin <ilya.verbin@intel.com>
11969 Kirill Yukhin <kirill.yukhin@intel.com>
11970 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11972 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
11973 * config/i386/i386.md
11974 (define_code_iterator any_float): New.
11975 (define_code_attr floatsuffix): New.
11976 * config/i386/sse.md
11977 (define_mode_iterator VF1_128_256VL): New.
11978 (define_mode_iterator VF2_512_256VL): New.
11979 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
11981 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
11982 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
11984 (define_mode_attr qq2pssuff): New.
11985 (define_mode_attr sselongvecmode): New.
11986 (define_mode_attr sselongvecmodelower): New.
11987 (define_mode_attr sseintvecmode3): New.
11988 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
11990 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
11991 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
11992 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
11993 (define_insn "ufloatv2siv2df2<mask_name>"): New.
11995 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
11996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11997 Anna Tikhonova <anna.tikhonova@intel.com>
11998 Ilya Tocar <ilya.tocar@intel.com>
11999 Andrey Turetskiy <andrey.turetskiy@intel.com>
12000 Ilya Verbin <ilya.verbin@intel.com>
12001 Kirill Yukhin <kirill.yukhin@intel.com>
12002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12004 * config/i386/sse.md
12005 (define_mode_iterator VF2_AVX512VL): New.
12006 (define_mode_attr sseintvecmode2): New.
12007 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12008 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12009 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12011 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12013 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12015 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12018 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12019 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12020 Anna Tikhonova <anna.tikhonova@intel.com>
12021 Ilya Tocar <ilya.tocar@intel.com>
12022 Andrey Turetskiy <andrey.turetskiy@intel.com>
12023 Ilya Verbin <ilya.verbin@intel.com>
12024 Kirill Yukhin <kirill.yukhin@intel.com>
12025 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12027 * config/i386/i386.md
12028 (define_insn "*movoi_internal_avx"): Add evex version.
12029 (define_insn "*movti_internal"): Ditto.
12031 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12032 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12033 Anna Tikhonova <anna.tikhonova@intel.com>
12034 Ilya Tocar <ilya.tocar@intel.com>
12035 Andrey Turetskiy <andrey.turetskiy@intel.com>
12036 Ilya Verbin <ilya.verbin@intel.com>
12037 Kirill Yukhin <kirill.yukhin@intel.com>
12038 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12040 * config/i386/i386.md
12041 (define_attr "isa"): Add avx512dq, noavx512dq.
12042 (define_attr "enabled"): Ditto.
12043 * config/i386/sse.md
12044 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
12046 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12047 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12048 Anna Tikhonova <anna.tikhonova@intel.com>
12049 Ilya Tocar <ilya.tocar@intel.com>
12050 Andrey Turetskiy <andrey.turetskiy@intel.com>
12051 Ilya Verbin <ilya.verbin@intel.com>
12052 Kirill Yukhin <kirill.yukhin@intel.com>
12053 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12055 * config/i386/i386.c
12056 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
12057 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
12058 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
12059 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
12060 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
12061 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
12062 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
12063 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
12064 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
12065 * config/i386/sse.md
12066 (define_mode_iterator VMOVE): Allow V4TI mode.
12067 (define_mode_iterator V_AVX512VL): New.
12068 (define_mode_iterator V): New handling for AVX512VL.
12069 (define_insn "avx512f_load<mode>_mask"): Delete.
12070 (define_insn "<avx512>_load<mode>_mask"): New.
12071 (define_insn "avx512f_store<mode>_mask"): Delete.
12072 (define_insn "<avx512>_store<mode>_mask"): New.
12075 2014-08-18 Yury Gribov <y.gribov@samsung.com>
12078 * asan.c (instrument_derefs): Fix bitfield check.
12080 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12082 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
12083 * config/rs6000/htm.md (ttest): Remove clobber.
12084 * config/rs6000/predicates.md (any_mask_operand): New predicate.
12085 (and_operand): Reformat.
12086 (and_2rld_operand): New predicate.
12087 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
12089 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
12090 parameter. Handle AND directly.
12091 (rs6000_split_logical_di): Remove last parameter.
12092 (rs6000_split_logical): Remove last parameter. Remove obsolete
12094 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
12095 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
12096 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
12097 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
12098 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
12099 and 5 anonymous splitters): Delete.
12100 (and<mode>3): New expander.
12101 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
12102 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
12103 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
12104 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
12105 (floatdisf2_internal1): Remove clobbers.
12106 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
12107 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
12108 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
12109 (and<mode>3 for BOOL_128): Remove clobber.
12110 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
12111 rs6000_split_logical.
12112 (*bool<mode>3_internal for BOOL_128): Adjust call of
12113 rs6000_split_logical.
12114 (*boolc<mode>3_internal1 for BOOL_128,
12115 *boolc<mode>3_internal2 for BOOL_128,
12116 *boolcc<mode>3_internal1 for BOOL_128,
12117 *boolcc<mode>3_internal2 for BOOL_128,
12118 *eqv<mode>3_internal1 for BOOL_128,
12119 *eqv<mode>3_internal2 for BOOL_128,
12120 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
12121 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
12123 (*vec_reload_and_reg_<mptrsize>): Delete.
12125 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12127 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
12128 and split, *boolccsi3_internal3 and split): Delete.
12129 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
12130 *boolccdi3_internal3 and split): Delete.
12131 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
12132 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
12134 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12136 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
12137 and split, *boolcsi3_internal3 and split): Delete.
12138 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
12139 *boolcdi3_internal3 and split): Delete.
12140 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
12142 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12144 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
12145 <'u'>: Also support printing the low-order 16 bits.
12146 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
12147 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
12148 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
12149 *booldi3_internal3 and split): Delete.
12150 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
12151 *bool<mode>3_dot2): New.
12152 (two anonymous define_splits for non_logical_cint_operand): Merge.
12154 2014-08-17 Marek Polacek <polacek@redhat.com>
12155 Manuel López-Ibáñez <manu@gcc.gnu.org>
12158 * diagnostic.c (adjust_line): Add gcc_checking_assert.
12159 (diagnostic_show_locus): Don't print caret diagnostic
12160 if a column is larger than the line_width.
12162 2014-08-17 Roman Gareev <gareevroman@gmail.com>
12164 * common.opt: Make the ISL AST generator to be the main code generator
12167 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
12169 * wide-int.h (generic_wide_int): Declare as class instead of struct.
12171 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
12174 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
12176 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
12177 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
12178 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
12180 * config/pa/pa.md (begin_brtab): Delete insn.
12181 (end_brtab): Likewise.
12183 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12185 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
12187 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
12189 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12190 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12191 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12192 (get_dynamic_type): Remove.
12193 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12194 (clear_speculation): Bring to ipa-deivrt.h
12195 (get_class_context): Rename to ...
12196 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12197 (contains_type_p): Update.
12198 (get_dynamic_type): Rename to ...
12199 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12200 (possible_polymorphic_call_targets): UPdate.
12201 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12202 * ipa-prop.c (ipa_analyze_call_uses): Update.
12204 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
12206 * doc/invoke.texi (SH options): Document missing processor variant
12207 options. Remove references to Hitachi. Undocument deprecated mspace
12210 2014-08-15 Jason Merrill <jason@redhat.com>
12212 * tree.c (type_hash_canon): Uncomment assert.
12214 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12216 * input.h (in_system_header_at): Add comment.
12218 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12221 * diagnostic.c (build_message_string): Make it extern.
12222 * diagnostic.h (build_message_string): Make it extern.
12224 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
12226 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
12227 load/store from/to non-floating class pseudo.
12229 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12231 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
12233 2014-08-15 Richard Biener <rguenther@suse.de>
12235 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
12236 (get_constraint_for_ssa_var): Remove dead code.
12237 (get_constraint_for_1): Adjust.
12238 (find_what_var_points_to): Likewise.
12239 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
12241 2014-08-15 Ilya Tocar <tocarip@gmail.com>
12244 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
12245 (_mm512_mask_cmpge_epu32_mask): Ditto.
12246 (_mm512_cmpge_epu32_mask): Ditto.
12247 (_mm512_mask_cmpge_epi64_mask): Ditto.
12248 (_mm512_cmpge_epi64_mask): Ditto.
12249 (_mm512_mask_cmpge_epu64_mask): Ditto.
12250 (_mm512_cmpge_epu64_mask): Ditto.
12251 (_mm512_mask_cmple_epi32_mask): Ditto.
12252 (_mm512_cmple_epi32_mask): Ditto.
12253 (_mm512_mask_cmple_epu32_mask): Ditto.
12254 (_mm512_cmple_epu32_mask): Ditto.
12255 (_mm512_mask_cmple_epi64_mask): Ditto.
12256 (_mm512_cmple_epi64_mask): Ditto.
12257 (_mm512_mask_cmple_epu64_mask): Ditto.
12258 (_mm512_cmple_epu64_mask): Ditto.
12259 (_mm512_mask_cmplt_epi32_mask): Ditto.
12260 (_mm512_cmplt_epi32_mask): Ditto.
12261 (_mm512_mask_cmplt_epu32_mask): Ditto.
12262 (_mm512_cmplt_epu32_mask): Ditto.
12263 (_mm512_mask_cmplt_epi64_mask): Ditto.
12264 (_mm512_cmplt_epi64_mask): Ditto.
12265 (_mm512_mask_cmplt_epu64_mask): Ditto.
12266 (_mm512_cmplt_epu64_mask): Ditto.
12267 (_mm512_mask_cmpneq_epi32_mask): Ditto.
12268 (_mm512_mask_cmpneq_epu32_mask): Ditto.
12269 (_mm512_cmpneq_epu32_mask): Ditto.
12270 (_mm512_mask_cmpneq_epi64_mask): Ditto.
12271 (_mm512_cmpneq_epi64_mask): Ditto.
12272 (_mm512_mask_cmpneq_epu64_mask): Ditto.
12273 (_mm512_cmpneq_epu64_mask): Ditto.
12274 (_mm512_castpd_ps): Ditto.
12275 (_mm512_castpd_si512): Ditto.
12276 (_mm512_castps_pd): Ditto.
12277 (_mm512_castps_si512): Ditto.
12278 (_mm512_castsi512_ps): Ditto.
12279 (_mm512_castsi512_pd): Ditto.
12280 (_mm512_castpd512_pd128): Ditto.
12281 (_mm512_castps512_ps128): Ditto.
12282 (_mm512_castsi512_si128): Ditto.
12283 (_mm512_castpd512_pd256): Ditto.
12284 (_mm512_castps512_ps256): Ditto.
12285 (_mm512_castsi512_si256): Ditto.
12286 (_mm512_castpd128_pd512): Ditto.
12287 (_mm512_castps128_ps512): Ditto.
12288 (_mm512_castsi128_si512): Ditto.
12289 (_mm512_castpd256_pd512): Ditto.
12290 (_mm512_castps256_ps512): Ditto.
12291 (_mm512_castsi256_si512): Ditto.
12292 (_mm512_cmpeq_epu32_mask): Ditto.
12293 (_mm512_mask_cmpeq_epu32_mask): Ditto.
12294 (_mm512_mask_cmpeq_epu64_mask): Ditto.
12295 (_mm512_cmpeq_epu64_mask): Ditto.
12296 (_mm512_cmpgt_epu32_mask): Ditto.
12297 (_mm512_mask_cmpgt_epu32_mask): Ditto.
12298 (_mm512_mask_cmpgt_epu64_mask): Ditto.
12299 (_mm512_cmpgt_epu64_mask): Ditto.
12300 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
12301 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
12302 * config/i386/i386.c (enum ix86_builtins): Add
12303 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
12304 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
12305 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
12306 (bdesc_args): Add __builtin_ia32_si512_256si,
12307 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
12308 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
12309 __builtin_ia32_pd512_pd.
12310 (ix86_expand_args_builtin): Handle new FTYPEs.
12311 * config/i386/sse.md (castmode): Add 512-bit modes.
12312 (AVX512MODE2P): New.
12313 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
12314 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
12316 2014-08-15 Richard Biener <rguenther@suse.de>
12318 * fold-const.c (tree_swap_operands_p): Put all constants
12319 last, also strip sign-changing NOPs when considering further
12320 canonicalization. Canonicalize also when optimizing for size.
12322 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12324 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
12325 one_match > zero_match case to just before simple_sequence.
12327 2014-08-15 Richard Biener <rguenther@suse.de>
12329 * data-streamer.h (streamer_string_index, string_for_index):
12331 * data-streamer-out.c (streamer_string_index): Make static.
12332 * data-streamer-in.c (string_for_index): Likewise.
12333 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
12334 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
12336 2014-08-15 Richard Biener <rguenther@suse.de>
12338 PR tree-optimization/62031
12339 * tree-data-ref.c (dr_analyze_indices): Do not set
12340 DR_UNCONSTRAINED_BASE.
12341 (dr_may_alias_p): All indirect accesses have to go the
12342 formerly DR_UNCONSTRAINED_BASE path.
12343 * tree-data-ref.h (struct indices): Remove
12344 unconstrained_base member.
12345 (DR_UNCONSTRAINED_BASE): Remove.
12347 2014-08-15 Jakub Jelinek <jakub@redhat.com>
12349 PR middle-end/62092
12350 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
12351 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
12352 in OMP_CLAUSE_MAP in some outer target region.
12354 2014-08-15 Bin Cheng <bin.cheng@arm.com>
12356 * tree-ssa-loop-ivopts.c (ivopts_data): New field
12357 name_expansion_cache.
12358 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
12359 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
12360 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
12361 (difference_cannot_overflow_p): New parameter. Use affine
12362 expansion for equality check.
12363 (iv_elimination_compare_lt): Pass new argument.
12365 2014-08-14 DJ Delorie <dj@redhat.com>
12367 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
12368 variables to the accumulator.
12370 * config/rl78/predicates.md (rl78_near_mem_operand): New.
12371 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
12372 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
12373 with far-far moves.
12375 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
12376 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
12377 (umulqihi3_virt): Likewise.
12378 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
12379 (umulqihi3_real): Likewise.
12381 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
12383 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12385 PR tree-optimization/62091
12386 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
12387 function_entry_reached.
12388 (walk_aliased_vdefs): Clear it here.
12389 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
12391 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12393 * ipa-utils.h (compare_virtual_tables): Declare.
12394 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
12396 2014-08-14 Marek Polacek <polacek@redhat.com>
12399 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
12400 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
12402 2014-08-14 Tom de Vries <tom@codesourcery.com>
12404 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
12406 2014-08-14 Tom de Vries <tom@codesourcery.com>
12408 PR rtl-optimization/62004
12409 PR rtl-optimization/62030
12410 * ifcvt.c (rtx_interchangeable_p): New function.
12411 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
12412 * emit-rtl.h (mem_attrs_eq_p): Declare.
12414 2014-08-14 Roman Gareev <gareevroman@gmail.com>
12416 * graphite-scop-detection.c:
12417 Add inclusion of cp-tree.h.
12418 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
12419 in case they are pointers to object types
12421 2014-08-14 Richard Biener <rguenther@suse.de>
12423 * BASE-VER: Change to 5.0.0
12425 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12426 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12427 Anna Tikhonova <anna.tikhonova@intel.com>
12428 Ilya Tocar <ilya.tocar@intel.com>
12429 Andrey Turetskiy <andrey.turetskiy@intel.com>
12430 Ilya Verbin <ilya.verbin@intel.com>
12431 Kirill Yukhin <kirill.yukhin@intel.com>
12432 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12434 * config/i386/sse.md (define_mode_attr avx512): New.
12435 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
12437 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
12438 (define_mode_attr ssse3_avx2): Ditto.
12439 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
12440 (define_mode_attr avx2_avx512bw): New.
12441 (define_mode_attr ssedoublemodelower): New.
12442 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
12443 V32HI, V64QI modes.
12444 (define_mode_attr ssebytemode): Allow V8DI modes.
12445 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
12446 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
12447 (define_mode_attr ssePSmode2): New.
12448 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
12449 V16HI, V32HI modes.
12450 (define_mode_attr dbpsadbwmode): New.
12451 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
12452 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
12453 (vi8_sse4_1_avx2_avx512): New.
12454 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
12456 (define_mode_attr blendbits): Move before its immediate use.
12458 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12459 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12460 Anna Tikhonova <anna.tikhonova@intel.com>
12461 Ilya Tocar <ilya.tocar@intel.com>
12462 Andrey Turetskiy <andrey.turetskiy@intel.com>
12463 Ilya Verbin <ilya.verbin@intel.com>
12464 Kirill Yukhin <kirill.yukhin@intel.com>
12465 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12467 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
12468 * config/i386/subst.md
12469 (define_mode_iterator SUBST_V): Update.
12470 (define_mode_iterator SUBST_A): Ditto.
12471 (define_subst_attr "mask_operand7"): New.
12472 (define_subst_attr "mask_operand10"): New.
12473 (define_subst_attr "mask_operand_arg34") : New.
12474 (define_subst_attr "mask_expand_op3"): New.
12475 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
12476 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
12477 (define_subst_attr "mask_avx512vl_condition"): New.
12478 (define_subst_attr "round_mask_operand4"): Ditto.
12479 (define_subst_attr "round_mask_scalar_op3"): Delete.
12480 (define_subst_attr "round_mask_op4"): New.
12481 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
12483 (define_subst_attr "round_modev8sf_condition"): New.
12484 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
12486 (define_subst_attr "round_saeonly_mask_operand4"): New.
12487 (define_subst_attr "round_saeonly_mask_op4"): New.
12488 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
12489 V8DImode, V16SImode.
12490 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
12491 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
12492 (define_subst_attr "mask_expand4_args"): New.
12493 (define_subst "mask_expand4"): New.
12495 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12496 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12497 Anna Tikhonova <anna.tikhonova@intel.com>
12498 Ilya Tocar <ilya.tocar@intel.com>
12499 Andrey Turetskiy <andrey.turetskiy@intel.com>
12500 Ilya Verbin <ilya.verbin@intel.com>
12501 Kirill Yukhin <kirill.yukhin@intel.com>
12502 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12504 * config/i386/i386.md
12505 (define_attr "isa"): Add avx512bw,noavx512bw.
12506 (define_attr "enabled"): Ditto.
12507 (define_split): Add 32/64-bit mask logic.
12508 (define_insn "*k<logic>qi"): New.
12509 (define_insn "*k<logic>hi"): New.
12510 (define_insn "*anddi_1"): Add mask version.
12511 (define_insn "*andsi_1"): Ditto.
12512 (define_insn "*<code><mode>_1"): Ditto.
12513 (define_insn "*<code>hi_1"): Ditto.
12514 (define_insn "kxnor<mode>"): New.
12515 (define_insn "kunpcksi"): New.
12516 (define_insn "kunpckdi"): New.
12517 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
12518 (define_insn "*one_cmplhi2_1"): Ditto.
12520 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12521 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12522 Anna Tikhonova <anna.tikhonova@intel.com>
12523 Ilya Tocar <ilya.tocar@intel.com>
12524 Andrey Turetskiy <andrey.turetskiy@intel.com>
12525 Ilya Verbin <ilya.verbin@intel.com>
12526 Kirill Yukhin <kirill.yukhin@intel.com>
12527 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12529 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
12532 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12533 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12534 Anna Tikhonova <anna.tikhonova@intel.com>
12535 Ilya Tocar <ilya.tocar@intel.com>
12536 Andrey Turetskiy <andrey.turetskiy@intel.com>
12537 Ilya Verbin <ilya.verbin@intel.com>
12538 Kirill Yukhin <kirill.yukhin@intel.com>
12539 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12541 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
12543 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
12544 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
12545 xmm/ymm16+ when availble.
12546 * config/i386/i386.h
12547 (HARD_REGNO_NREGS): Add mask regs.
12548 (VALID_AVX512F_REG_MODE): Ditto.
12549 (VALID_AVX512F_REG_MODE) : Define.
12550 (VALID_MASK_AVX512BW_MODE): Ditto.
12551 (reg_class) (MASK_REG_P(X)): Define.
12552 * config/i386/i386.md: Do not split long moves with mask register,
12553 use kmovb if avx512bw is availible.
12554 (movdi_internal): Handle mask registers.
12556 2014-08-14 Richard Biener <rguenther@suse.de>
12558 PR tree-optimization/62081
12559 * tree-ssa-loop.c (pass_fix_loops): New pass.
12560 (pass_tree_loop::gate): Do not fixup loops here.
12561 * tree-pass.h (make_pass_fix_loops): Declare.
12562 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
12564 2014-08-14 Richard Biener <rguenther@suse.de>
12566 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
12567 (type_hash_canon): ... this and avoid 2nd lookup for the add.
12569 2014-08-14 Richard Biener <rguenther@suse.de>
12571 PR tree-optimization/62090
12572 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
12573 (fold_builtin_2): Do not fold sprintf.
12574 (fold_builtin_3): Likewise.
12575 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
12576 moved from builtins.c.
12577 (gimple_fold_builtin): Fold sprintf.
12579 2014-08-14 Richard Biener <rguenther@suse.de>
12581 PR rtl-optimization/62079
12582 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
12585 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
12587 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
12588 current_function_decl.
12590 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
12592 * cgraph.c (cgraph_node::function_symbol): Fix wrong
12593 cgraph_function_node to cgraph_node::function_symbol
12596 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
12598 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
12599 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
12601 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
12603 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
12606 2014-08-13 Roman Gareev <gareevroman@gmail.com>
12608 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
12611 2014-08-12 Jakub Jelinek <jakub@redhat.com>
12614 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
12615 any registers that are used in mem_insn.
12617 2014-08-12 Steve Ellcey <sellcey@mips.com>
12619 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
12621 2014-08-12 Steve Ellcey <sellcey@mips.com>
12623 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
12624 (MULTILIB_DIRNAMES): Ditto.
12625 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
12626 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
12627 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
12628 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
12629 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
12630 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
12632 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12635 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
12636 of __ARM_SIZEOF_WCHAR_T.
12638 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12641 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
12642 Remove unnecessary attributes.
12644 2014-08-12 Yury Gribov <y.gribov@samsung.com>
12646 * internal-fn.c (init_internal_fns): Fix off-by-one.
12648 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
12649 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12650 Anna Tikhonova <anna.tikhonova@intel.com>
12651 Ilya Tocar <ilya.tocar@intel.com>
12652 Andrey Turetskiy <andrey.turetskiy@intel.com>
12653 Ilya Verbin <ilya.verbin@intel.com>
12654 Kirill Yukhin <kirill.yukhin@intel.com>
12655 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12657 * config/i386/i386.c (standard_sse_constant_opcode): Use
12658 vpxord/vpternlog if avx512 is availible.
12660 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
12662 PR middle-end/62103
12663 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
12664 bitfields, that is when size doesn't match the size of type or the
12665 size of the constructor.
12667 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12669 * config/rs6000/constraints.md (wh constraint): New constraint,
12670 for FP registers if direct move is available.
12671 (wi constraint): New constraint, for VSX/FP registers that can
12672 handle 64-bit integers.
12673 (wj constraint): New constraint for VSX/FP registers that can
12674 handle 64-bit integers for direct moves.
12675 (wk constraint): New constraint for VSX/FP registers that can
12676 handle 64-bit doubles for direct moves.
12677 (wy constraint): Make documentation match implementation.
12679 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
12680 scalar_in_vmx_p field to simplify tests of whether SFmode or
12681 DFmode can go in the Altivec registers.
12682 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
12683 (rs6000_setup_reg_addr_masks): Likewise.
12684 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
12685 field, and wh/wi/wj/wk constraints.
12686 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
12687 the wh/wi/wj/wk constraints.
12688 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
12689 upper registers, prefer VSX registers unless the operation is a
12690 memory operation with REG+OFFSET addressing.
12692 * config/rs6000/vsx.md (VSr mode attribute): Add support for
12693 DImode. Change SFmode to use ww constraint instead of d to allow
12694 SF registers in the upper registers.
12697 (VSr5): Fix thinko in comment.
12698 (VSa): New mode attribute that is an alternative to wa, that
12699 returns the VSX register class that a mode can go in, but may not
12700 be the preferred register class.
12701 (VS_64dm): New mode attribute for appropriate register classes for
12702 referencing 64-bit elements of vectors for direct moves and normal
12704 (VS_64reg): Likewise.
12705 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
12706 register allocator to only registers the data type can handle.
12707 (vsx_le_perm_load_<mode>): Likewise.
12708 (vsx_le_perm_store_<mode>): Likewise.
12709 (vsx_xxpermdi2_le_<mode>): Likewise.
12710 (vsx_xxpermdi4_le_<mode>): Likewise.
12711 (vsx_lxvd2x2_le_<mode>): Likewise.
12712 (vsx_lxvd2x4_le_<mode>): Likewise.
12713 (vsx_stxvd2x2_le_<mode>): Likewise.
12714 (vsx_add<mode>3): Likewise.
12715 (vsx_sub<mode>3): Likewise.
12716 (vsx_mul<mode>3): Likewise.
12717 (vsx_div<mode>3): Likewise.
12718 (vsx_tdiv<mode>3_internal): Likewise.
12719 (vsx_fre<mode>2): Likewise.
12720 (vsx_neg<mode>2): Likewise.
12721 (vsx_abs<mode>2): Likewise.
12722 (vsx_nabs<mode>2): Likewise.
12723 (vsx_smax<mode>3): Likewise.
12724 (vsx_smin<mode>3): Likewise.
12725 (vsx_sqrt<mode>2): Likewise.
12726 (vsx_rsqrte<mode>2): Likewise.
12727 (vsx_tsqrt<mode>2_internal): Likewise.
12728 (vsx_fms<mode>4): Likewise.
12729 (vsx_nfma<mode>4): Likewise.
12730 (vsx_eq<mode>): Likewise.
12731 (vsx_gt<mode>): Likewise.
12732 (vsx_ge<mode>): Likewise.
12733 (vsx_eq<mode>_p): Likewise.
12734 (vsx_gt<mode>_p): Likewise.
12735 (vsx_ge<mode>_p): Likewise.
12736 (vsx_xxsel<mode>): Likewise.
12737 (vsx_xxsel<mode>_uns): Likewise.
12738 (vsx_copysign<mode>3): Likewise.
12739 (vsx_float<VSi><mode>2): Likewise.
12740 (vsx_floatuns<VSi><mode>2): Likewise.
12741 (vsx_fix_trunc<mode><VSi>2): Likewise.
12742 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
12743 (vsx_x<VSv>r<VSs>i): Likewise.
12744 (vsx_x<VSv>r<VSs>ic): Likewise.
12745 (vsx_btrunc<mode>2): Likewise.
12746 (vsx_b2trunc<mode>2): Likewise.
12747 (vsx_floor<mode>2): Likewise.
12748 (vsx_ceil<mode>2): Likewise.
12749 (vsx_<VS_spdp_insn>): Likewise.
12750 (vsx_xscvspdp): Likewise.
12751 (vsx_xvcvspuxds): Likewise.
12752 (vsx_float_fix_<mode>2): Likewise.
12753 (vsx_set_<mode>): Likewise.
12754 (vsx_extract_<mode>_internal1): Likewise.
12755 (vsx_extract_<mode>_internal2): Likewise.
12756 (vsx_extract_<mode>_load): Likewise.
12757 (vsx_extract_<mode>_store): Likewise.
12758 (vsx_splat_<mode>): Likewise.
12759 (vsx_xxspltw_<mode>): Likewise.
12760 (vsx_xxspltw_<mode>_direct): Likewise.
12761 (vsx_xxmrghw_<mode>): Likewise.
12762 (vsx_xxmrglw_<mode>): Likewise.
12763 (vsx_xxsldwi_<mode>): Likewise.
12764 (vsx_xscvdpspn): Tighten constraints to only use register classes
12766 (vsx_xscvspdpn): Likewise.
12767 (vsx_xscvdpspn_scalar): Likewise.
12769 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
12770 wj, and wk constraints.
12771 (GPR_REG_CLASS_P): New helper macro for register classes targeting
12772 general purpose registers.
12774 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
12776 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
12777 DImode instead of wm. Use wk constraint for direct move of DFmode
12779 (extendsidi2_lfiwax): Likewise.
12780 (lfiwax): Likewise.
12781 (lfiwzx): Likewise.
12782 (movdi_internal64): Likewise.
12784 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
12785 wk constraints. Make the wy constraint documentation match them
12788 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
12790 Replacement of isl_int by isl_val
12791 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
12792 (compute_bounds_for_param): use isl_val instead of isl_int
12793 (compute_bounds_for_loop): likewise
12794 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
12795 (build_linearized_memory_access): use isl_val instead of isl_int
12796 (pdr_stride_in_loop): likewise
12797 * graphite-optimize-isl.c:
12798 (getPrevectorMap): use isl_val instead of isl_int
12800 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
12801 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
12802 (extern the_isl_ctx): declare
12803 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
12804 (extract_affine_gmp): likewise
12806 (build_loop_iteration_domains): likewise
12807 (add_param_constraints): likewise
12809 2014-08-11 Richard Biener <rguenther@suse.de>
12811 PR tree-optimization/62075
12812 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
12813 handle uses in patterns.
12815 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12816 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12817 Anna Tikhonova <anna.tikhonova@intel.com>
12818 Ilya Tocar <ilya.tocar@intel.com>
12819 Andrey Turetskiy <andrey.turetskiy@intel.com>
12820 Ilya Verbin <ilya.verbin@intel.com>
12821 Kirill Yukhin <kirill.yukhin@intel.com>
12822 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12824 * common/config/i386/i386-common.c
12825 (OPTION_MASK_ISA_AVX512VL_SET): Define.
12826 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
12827 (ix86_handle_option): Handle OPT_mavx512vl.
12828 * config/i386/cpuid.h (bit_AVX512VL): Define.
12829 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
12830 set -mavx512vl accordingly.
12831 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12832 OPTION_MASK_ISA_AVX512VL.
12833 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
12834 (ix86_option_override_internal): Define PTA_AVX512VL, handle
12835 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
12836 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
12837 * config/i386/i386.h (TARGET_AVX512VL): Define.
12838 (TARGET_AVX512VL_P(x)): Ditto.
12839 * config/i386/i386.opt: Add mavx512vl.
12841 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
12843 PR tree-optimization/62073
12844 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
12847 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12848 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12849 Anna Tikhonova <anna.tikhonova@intel.com>
12850 Ilya Tocar <ilya.tocar@intel.com>
12851 Andrey Turetskiy <andrey.turetskiy@intel.com>
12852 Ilya Verbin <ilya.verbin@intel.com>
12853 Kirill Yukhin <kirill.yukhin@intel.com>
12854 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12856 * common/config/i386/i386-common.c
12857 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
12858 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
12859 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
12860 (ix86_handle_option): Handle OPT_mavx512bw.
12861 * config/i386/cpuid.h (bit_AVX512BW): Define.
12862 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
12863 set -mavx512bw accordingly.
12864 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12865 OPTION_MASK_ISA_AVX512BW.
12866 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
12867 (ix86_option_override_internal): Define PTA_AVX512BW, handle
12868 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
12869 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
12870 * config/i386/i386.h (TARGET_AVX512BW): Define.
12871 (TARGET_AVX512BW_P(x)): Ditto.
12872 * config/i386/i386.opt: Add mavx512bw.
12874 2014-08-11 Richard Biener <rguenther@suse.de>
12876 PR tree-optimization/62070
12877 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
12878 Remove SSA checking.
12880 2014-08-11 Yury Gribov <y.gribov@samsung.com>
12882 * asan.c (asan_check_flags): New enum.
12883 (build_check_stmt_with_calls): Removed function.
12884 (build_check_stmt): Split inlining logic to
12885 asan_expand_check_ifn.
12886 (instrument_derefs): Rename parameter.
12887 (instrument_mem_region_access): Rename parameter.
12888 (instrument_strlen_call): Likewise.
12889 (asan_expand_check_ifn): New function.
12890 (asan_instrument): Remove old code.
12891 (pass_sanopt::execute): Change handling of
12892 asan-instrumentation-with-call-threshold.
12893 (asan_clear_shadow): Fix formatting.
12894 (asan_function_start): Likewise.
12895 (asan_emit_stack_protection): Likewise.
12896 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
12897 Update description.
12898 * internal-fn.c (expand_ASAN_CHECK): New function.
12899 * internal-fn.def (ASAN_CHECK): New internal function.
12900 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
12901 Update description.
12902 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
12903 * tree.c: Small comment fix.
12905 2014-08-11 Yury Gribov <y.gribov@samsung.com>
12907 * gimple.c (gimple_call_fnspec): Support internal functions.
12908 (gimple_call_return_flags): Use const.
12909 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
12910 * internal-fn.def: Add fnspec information.
12911 * internal-fn.h (internal_fn_fnspec): New function.
12912 (init_internal_fns): Declare new function.
12913 * internal-fn.c (internal_fn_fnspec_array): New global variable.
12914 (init_internal_fns): New function.
12915 * tree-core.h: Update macro call.
12916 * tree.c (build_common_builtin_nodes): Initialize internal fns.
12918 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
12920 * lto-streamer.h (struct output_block::symbol): Change from
12921 struct symtab_node to plain symtab_node.
12922 (referenced_from_this_partition_p): Change first parameter
12923 from struct symtab_node to plain symtab_node.
12925 2014-08-10 Marek Polacek <polacek@redhat.com>
12928 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
12930 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
12932 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
12933 DECL correctly; do not give up on types in static storage.
12935 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
12937 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
12939 2014-08-09 Roman Gareev <gareevroman@gmail.com>
12941 * graphite-isl-ast-to-gimple.c:
12942 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
12944 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
12946 2014-08-08 Guozhi Wei <carrot@google.com>
12948 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
12950 2014-08-08 Cary Coutant <ccoutant@google.com>
12952 * dwarf2out.c (get_skeleton_type_unit): Remove.
12953 (output_skeleton_debug_sections): Remove skeleton type units.
12954 (output_comdat_type_unit): Likewise.
12955 (dwarf2out_finish): Likewise.
12957 2014-08-07 Yi Yang <ahyangyi@google.com>
12959 * predict.c (expr_expected_value_1): Remove the redundant assignment.
12961 2014-08-08 Richard Biener <rguenther@suse.de>
12963 * lto-streamer.h (struct lto_input_block): Make it a class
12964 with a constructor.
12965 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
12966 (struct lto_function_header, struct lto_simple_header,
12967 struct lto_simple_header_with_strings,
12968 struct lto_decl_header, struct lto_function_header): Make
12969 a simple inheritance hieararchy. Remove unused fields.
12970 (struct lto_asm_header): Remove.
12971 * lto-streamer-out.c (produce_asm): Adjust.
12972 (lto_output_toplevel_asms): Likewise.
12973 (produce_asm_for_decls): Likewise.
12974 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
12975 * data-streamer-in.c (string_for_index): Likewise.
12976 * ipa-inline-analysis.c (inline_read_section): Likewise.
12977 * ipa-prop.c (ipa_prop_read_section): Likewise.
12978 (read_replacements_section): Likewise.
12979 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
12980 * lto-section-in.c (lto_create_simple_input_block): Likewise.
12981 (lto_destroy_simple_input_block): Likewise.
12982 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
12983 (lto_input_toplevel_asms): Likewise.
12985 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
12986 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12987 Anna Tikhonova <anna.tikhonova@intel.com>
12988 Ilya Tocar <ilya.tocar@intel.com>
12989 Andrey Turetskiy <andrey.turetskiy@intel.com>
12990 Ilya Verbin <ilya.verbin@intel.com>
12991 Kirill Yukhin <kirill.yukhin@intel.com>
12992 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12994 * common/config/i386/i386-common.c
12995 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
12996 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
12997 (ix86_handle_option): Handle OPT_mavx512dq.
12998 * config/i386/cpuid.h (bit_AVX512DQ): Define.
12999 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13000 set -mavx512dq accordingly.
13001 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13002 OPTION_MASK_ISA_AVX512DQ.
13003 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13004 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13005 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13006 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13007 * config/i386/i386.h (TARGET_AVX512DQ): Define.
13008 (TARGET_AVX512DQ_P(x)): Ditto.
13009 * config/i386/i386.opt: Add mavx512dq.
13011 2014-08-08 Richard Biener <rguenther@suse.de>
13013 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13014 target_percent, target_percent_s): Export.
13015 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13016 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13017 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13018 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13019 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13020 Move to gimple-fold.c.
13021 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
13023 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
13024 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
13025 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
13026 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
13027 (rewrite_call_expr_array): Remove.
13028 (fold_builtin_sprintf_chk): Likewise.
13029 (fold_builtin_snprintf_chk): Likewise.
13030 (fold_builtin_varargs): Remove handling of sprintf_chk,
13031 vsprintf_chk, snprintf_chk and vsnprintf_chk.
13032 (gimple_fold_builtin_sprintf_chk): Remove.
13033 (gimple_fold_builtin_snprintf_chk): Likewise.
13034 (gimple_fold_builtin_varargs): Likewise.
13035 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
13036 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
13037 * gimple.c (gimple_seq_add_seq_without_update): New function.
13038 * gimple.h (gimple_seq_add_seq_without_update): Declare.
13039 * gimple-fold.c: Include output.h.
13040 (gsi_replace_with_seq_vops): New function, split out from ...
13041 (gimplify_and_update_call_from_tree): ... here.
13042 (replace_call_with_value): New function.
13043 (replace_call_with_call_and_fold): Likewise.
13044 (var_decl_component_p): Moved from builtins.c.
13045 (gimple_fold_builtin_memory_op): Moved from builtins.c
13046 fold_builtin_memory_op and rewritten to GIMPLE.
13047 (gimple_fold_builtin_memset): Likewise.
13048 (gimple_fold_builtin_strcpy): Likewise.
13049 (gimple_fold_builtin_strncpy): Likewise.
13050 (gimple_fold_builtin_strcat): Likewise.
13051 (gimple_fold_builtin_fputs): Likewise.
13052 (gimple_fold_builtin_memory_chk): Likewise.
13053 (gimple_fold_builtin_stxcpy_chk): Likewise.
13054 (gimple_fold_builtin_stxncpy_chk): Likewise.
13055 (gimple_fold_builtin_snprintf_chk): Likewise.
13056 (gimple_fold_builtin_sprintf_chk): Likewise.
13057 (gimple_fold_builtin_strlen): New function.
13058 (gimple_fold_builtin_with_strlen): New function split out from
13059 gimple_fold_builtin.
13060 (gimple_fold_builtin): Change signature and handle
13061 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
13062 here. Call gimple_fold_builtin_with_strlen.
13063 (gimple_fold_call): Adjust.
13065 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
13067 * calls.c (precompute_arguments): Check
13068 promoted_for_signed_and_unsigned_p and set the promoted mode.
13069 (promoted_for_signed_and_unsigned_p): New function.
13070 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
13071 and set the promoted mode.
13072 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
13073 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
13074 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
13077 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
13079 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
13080 instead of SUBREG_PROMOTED_UNSIGNED_SET.
13081 (expand_call): Likewise.
13082 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
13083 to get promoted mode.
13084 * combine.c (record_promoted_value): Skip > 0 comparison with
13085 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
13086 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
13087 of SUBREG_PROMOTED_UNSIGNED_P.
13088 (convert_modes): Likewise.
13089 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
13090 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
13091 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
13092 SUBREG_PROMOTED_UNSIGNED_SET.
13093 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
13094 instead of SUBREG_PROMOTED_UNSIGNED_SET.
13095 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
13096 SUBREG_PROMOTED_SET.
13097 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
13098 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
13099 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
13100 of SUBREG_PROMOTED_UNSIGNED_P.
13101 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
13102 (SUBREG_PROMOTED_SET): New define.
13103 (SUBREG_PROMOTED_GET): Likewise.
13104 (SUBREG_PROMOTED_SIGN): Likewise.
13105 (SUBREG_PROMOTED_SIGNED_P): Likewise.
13106 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
13107 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
13108 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
13109 instead of SUBREG_PROMOTED_UNSIGNED_GET.
13110 (nonzero_bits1): Skip > 0 comparison with the results as
13111 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
13112 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
13113 of !SUBREG_PROMOTED_UNSIGNED_P.
13114 * simplify-rtx.c (simplify_unary_operation_1): Use new
13115 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
13116 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
13117 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
13118 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
13120 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
13122 * ipa-devirt.c: Include gimple-pretty-print.h
13123 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
13125 (decl_maybe_in_construction_p): Fix conditional on cdtor check
13126 (get_polymorphic_call_info): Fix return value
13127 (type_change_info): New sturcture based on ipa-prop
13129 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
13130 based on ipa-prop variant.
13131 (extr_type_from_vtbl_ptr_store): New function
13132 based on ipa-prop variant.
13133 (record_known_type): New function.
13134 (check_stmt_for_type_change): New function.
13135 (get_dynamic_type): New function.
13136 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
13137 * tree-ssa-pre.c: ipa-utils.h
13138 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
13139 machinery; sanity check with ipa-prop devirtualization.
13140 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
13143 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
13145 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
13146 * alias.c, cfgexpand.c, cgraphbuild.c,
13147 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
13148 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
13149 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
13150 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
13151 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
13152 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13153 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
13154 dse.c, except.c, gengtype.c, gimple-expr.c,
13155 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
13156 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
13157 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
13158 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
13159 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
13160 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
13162 * pointer-set.c: Remove file.
13163 * pointer-set.h: Remove file.
13165 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13167 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
13168 * config/arm/types.md (f_sels, f_seld): Delete.
13170 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13172 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
13173 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
13174 (aarch64_movdi_<mode>high): Likewise.
13175 (aarch64_mov<mode>high_di): Likewise.
13176 (aarch64_movdi_<mode>low): Likewise.
13177 (aarch64_mov<mode>low_di): Likewise.
13178 (aarch64_movtilow_tilow): Likewise.
13179 Add comment explaining usage of fp,simd attributes and of
13180 TARGET_FLOAT and TARGET_SIMD.
13182 2014-08-07 Ian Bolton <ian.bolton@arm.com>
13183 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13185 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
13186 Use MOVN when one of the half-words is 0xffff.
13188 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13190 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
13192 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13194 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
13195 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
13196 (rfs_str): String corresponding to RFS_* constants.
13197 (rank_for_schedule_stats_t): New typedef.
13198 (rank_for_schedule_stats): New static variable.
13199 (rfs_result): New static function.
13200 (rank_for_schedule): Track statistics for deciding heuristics.
13201 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
13203 (ready_sort): Use them for debug printouts.
13204 (schedule_block): Init statistics state. Print statistics on
13205 rank_for_schedule decisions.
13207 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13209 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
13211 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
13213 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
13216 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
13218 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
13219 function to not conflict.
13220 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
13221 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
13222 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
13223 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
13224 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
13227 2014-08-07 Marek Polacek <polacek@redhat.com>
13229 * fold-const.c (fold_binary_loc): Add folding of
13230 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
13232 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
13234 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
13235 instead of type size.
13236 (ASM_FINISH_DECLARE_OBJECT): Likewise.
13238 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13240 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
13241 (*thumb1_movqi_insn): Likewise.
13242 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
13244 2014-08-07 Tom de Vries <tom@codesourcery.com>
13246 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13247 (glibc_2_11_or_earlier): Remove effective-target keywords.
13249 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13251 * config/arm/arm.c (bdesc_2arg): Fix typo.
13252 (arm_atomic_assign_expand_fenv): Remove The default implementation.
13254 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
13256 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
13258 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
13261 * haifa-sched.c (advance_one_cycle): Fix dump.
13262 (schedule_block): Don't advance cycle if we are already at the
13263 beginning of the cycle.
13265 2014-08-06 Martin Jambor <mjambor@suse.cz>
13268 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
13270 2014-08-06 Richard Biener <rguenther@suse.de>
13273 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
13275 (lto_input_tree): Pop SCCs here.
13277 2014-08-06 Richard Biener <rguenther@suse.de>
13279 PR tree-optimization/61320
13280 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
13281 handle misaligned loads.
13283 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
13285 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
13286 (aarch64_expand_vec_perm_const): Check for dup before zip.
13288 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13290 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
13291 CONST_INT_P instead of GET_CODE and compare.
13292 (aarch64_select_cc_mode): Likewise.
13293 (aarch64_print_operand): Likewise.
13294 (aarch64_rtx_costs): Likewise.
13295 (aarch64_simd_valid_immediate): Likewise.
13296 (aarch64_simd_check_vect_par_cnst_half): Likewise.
13297 (aarch64_simd_emit_pair_result_insn): Likewise.
13299 2014-08-05 David Malcolm <dmalcolm@redhat.com>
13301 * gdbhooks.py (find_gcc_source_dir): New helper function.
13302 (class PassNames): New class, locating and parsing passes.def.
13303 (class BreakOnPass): New command "break-on-pass".
13305 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
13307 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
13310 2014-08-05 Richard Biener <rguenther@suse.de>
13312 PR rtl-optimization/61672
13313 * emit-rtl.h (mem_attrs_eq_p): Declare.
13314 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
13315 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
13316 * cfgcleanup.c (merge_memattrs): Likewise.
13317 Include emit-rtl.h.
13319 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13321 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
13322 rather than singleton vectors.
13323 (vqdmlsls_lane_s32): Likewise.
13325 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13327 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
13328 Use VSDQ_HSI mode iterator.
13329 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13330 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
13331 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
13332 Use BUILTIN_VDQHS macro.
13333 (sqrdmulh_laneq): Likewise.
13334 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
13335 (vqdmlals_laneq_s32): Likewise.
13336 (vqdmlslh_laneq_s16): Likewise.
13337 (vqdmlsls_laneq_s32): Likewise.
13338 (vqdmulhh_laneq_s16): Likewise.
13339 (vqdmulhs_laneq_s32): Likewise.
13340 (vqrdmulhh_laneq_s16): Likewise.
13341 (vqrdmulhs_laneq_s32): Likewise.
13343 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13345 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
13346 (vmuld_laneq_f64): Likewise.
13347 (vmuls_laneq_f32): Likewise.
13348 (vmul_n_f64): Likewise.
13349 (vmuld_lane_f64): Reimplement in C.
13350 (vmuls_lane_f32): Likewise.
13352 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13354 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
13356 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
13358 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13360 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
13361 (rbitsi2): Likewise.
13362 (*arm_rev): Set predicable and predicable_short_it attributes.
13364 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13366 * convert.c (convert_to_integer): Guard transformation to lrint by
13369 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
13371 * config/aarch64/aarch64-builtins.c
13372 (aarch64_simd_builtin_type_mode): Delete.
13373 (v8qi_UP): Remap to V8QImode.
13374 (v4hi_UP): Remap to V4HImode.
13375 (v2si_UP): Remap to V2SImode.
13376 (v2sf_UP): Remap to V2SFmode.
13377 (v1df_UP): Remap to V1DFmode.
13378 (di_UP): Remap to DImode.
13379 (df_UP): Remap to DFmode.
13380 (v16qi_UP):V16QImode.
13381 (v8hi_UP): Remap to V8HImode.
13382 (v4si_UP): Remap to V4SImode.
13383 (v4sf_UP): Remap to V4SFmode.
13384 (v2di_UP): Remap to V2DImode.
13385 (v2df_UP): Remap to V2DFmode.
13386 (ti_UP): Remap to TImode.
13387 (ei_UP): Remap to EImode.
13388 (oi_UP): Remap to OImode.
13389 (ci_UP): Map to CImode.
13390 (xi_UP): Remap to XImode.
13391 (si_UP): Remap to SImode.
13392 (sf_UP): Remap to SFmode.
13393 (hi_UP): Remap to HImode.
13394 (qi_UP): Remap to QImode.
13395 (aarch64_simd_builtin_datum): Make mode a machine_mode.
13396 (VAR1): Build builtin name.
13397 (aarch64_init_simd_builtins): Remove dead code.
13399 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13401 * graphite-isl-ast-to-gimple.c:
13402 (set_options): New function.
13403 (scop_to_isl_ast): Add calling of set_options.
13405 2014-08-05 Jakub Jelinek <jakub@redhat.com>
13407 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
13408 (analyze_iv_to_split_insn): Don't initialize them.
13409 (get_ivts_expr): Removed.
13410 (allocate_basic_variable, insert_base_initialization): Use
13411 SET_SRC instead of *get_ivts_expr.
13412 (split_iv): Use &SET_SRC instead of get_ivts_expr.
13414 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13416 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
13417 (translate_isl_ast_for_loop): Add checking of the
13418 flag_loop_parallelize_all.
13419 (ast_build_before_for): New function.
13420 (scop_to_isl_ast): Add checking of the
13421 flag_loop_parallelize_all.
13422 * graphite-dependences.c: Move the defenition of the
13423 scop_get_dependences from graphite-optimize-isl.c to this file.
13424 (apply_schedule_on_deps): Add checking of the ux's emptiness.
13425 (carries_deps): Add checking of the x's value.
13426 * graphite-optimize-isl.c: Move the defenition of the
13427 scop_get_dependences to graphite-dependences.c.
13428 * graphite-poly.h: Add declarations of scop_get_dependences
13431 2014-08-04 Rohit <rohitarulraj@freescale.com>
13434 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
13436 (alt_reg_names): Likewise.
13437 (rs6000_dwarf_register_span): For SPE high registers, replace
13438 dwarf register numbers with GCC hard register numbers.
13439 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
13440 (rs6000_dbx_register_number): For SPE high registers, return dwarf
13441 register number for the corresponding GCC hard register number.
13442 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
13443 newly added GCC hard register numbers for SPE high registers.
13444 (DWARF_FRAME_REGISTERS): Likewise.
13445 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
13446 (DWARF_FRAME_REGNUM): Likewise.
13447 (FIXED_REGISTERS): Likewise.
13448 (CALL_USED_REGISTERS): Likewise.
13449 (CALL_REALLY_USED_REGISTERS): Likewise.
13450 (REG_ALLOC_ORDER): Likewise.
13451 (enum reg_class): Likewise.
13452 (REG_CLASS_NAMES): Likewise.
13453 (REG_CLASS_CONTENTS): Likewise.
13454 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
13456 2014-08-04 Richard Biener <rguenther@suse.de>
13458 * gimple-fold.h (gimple_fold_builtin): Remove.
13459 * gimple-fold.c (gimple_fold_builtin): Make static.
13460 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
13461 fold_stmt, not gimple_fold_builtin.
13463 2014-08-04 Martin Liska <mliska@suse.cz>
13465 * cgraph.h (csi_end_p): Removed.
13466 (csi_next): Likewise.
13467 (csi_node): Likewise.
13468 (csi_start): Likewise.
13469 (cgraph_node_in_set_p): Likewise.
13470 (cgraph_node_set_size): Likewise.
13471 (vsi_end_p): Likewise.
13472 (vsi_next): Likewise.
13473 (vsi_node): Likewise.
13474 (vsi_start): Likewise.
13475 (varpool_node_set_size): Likewise.
13476 (cgraph_node_set_nonempty_p): Likewise.
13477 (varpool_node_set_nonempty_p): Likewise.
13478 * cgraphunit.c (cgraph_process_new_functions): vec replaces
13480 * ipa-inline-transform.c: Likewise.
13481 * ipa-utils.c (cgraph_node_set_new): Removed.
13482 (cgraph_node_set_add): Likewise.
13483 (cgraph_node_set_remove): Likewise.
13484 (cgraph_node_set_find): Likewise.
13485 (dump_cgraph_node_set): Likewise.
13486 (debug_cgraph_node_set): Likewise.
13487 (free_cgraph_node_set): Likewise.
13488 (varpool_node_set_new): Likewise.
13489 (varpool_node_set_add): Likewise.
13490 (varpool_node_set_remove): Likewise.
13491 (varpool_node_set_find): Likewise.
13492 (dump_varpool_node_set): Likewise.
13493 (free_varpool_node_set): Likewise.
13494 (debug_varpool_node_set): Likewise.
13495 * tree-emutls.c (struct tls_var_data):
13496 (emutls_index): Removed.
13497 (emutls_decl): Likewise.
13498 (gen_emutls_addr): Function implementation uses newly added
13499 hash_map<varpool_node *, tls_var_data>.
13500 (clear_access_vars): Likewise.
13501 (create_emultls_var): Likewise.
13502 (ipa_lower_emutls): Likewise.
13503 (reset_access): New function.
13505 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13507 * config/i386/i386.c (ix86_option_override_internal): Add
13508 PTA_RDRND and PTA_MOVBE for bdver4.
13510 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13511 James Greenhalgh <james.greenhalgh@arm.com>
13513 * doc/md.texi (clrsb): Document.
13514 (clz): Change reference to x into operand 1.
13516 (popcount): Likewise.
13518 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13521 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
13522 move to subtarget in serial version if result is ignored.
13524 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13525 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13527 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
13528 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
13529 (sched_analyze_insn): Update use of try_group_insn to
13530 sched_macro_fuse_insns.
13531 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
13532 arguments that are not conditional jumps.
13534 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13536 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
13537 family information. Handle BTVER2 cpu with cpuid family value.
13539 2014-08-04 Tom de Vries <tom@codesourcery.com>
13541 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13542 (glibc_2_11_or_earlier): Document effective-target keywords.
13544 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
13546 * ipa-devirt.c (odr_type_warn_count): Add type.
13547 (possible_polymorphic_call_targets): Set it.
13548 (ipa_devirt): Use it.
13550 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
13552 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
13554 * ipa-devirt.c: Include hash-map.h
13555 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
13556 (clear_speculation): Break out of ...
13557 (get_class_context): ... here; speed up handling obviously useless
13559 (odr_type_warn_count, decl_warn_count): New structures.
13560 (final_warning_record): New structure.
13561 (final_warning_records): New static variable.
13562 (possible_polymorphic_call_targets): Cleanup handling of
13563 speculative info; do not build speculation when user do not care;
13564 record info about warnings when asked for.
13565 (add_decl_warning): New function.
13566 (type_warning_cmp): New function.
13567 (decl_warning_cmp): New function.
13568 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
13569 (gate): Enable pass when warnings are requested.
13570 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
13573 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
13575 * hash-map.h (default_hashmap_traits::mark_key_deleted):
13577 (hash_map::remove): New method.
13578 (hash_map::traverse): New method.
13579 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
13580 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
13581 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
13582 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
13583 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
13584 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
13587 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
13589 * hash-set.h: new File.
13590 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
13591 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
13592 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
13593 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
13594 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
13595 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
13596 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
13597 varpool.c: Use hash_set instead of pointer_set.
13599 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
13601 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
13603 2014-08-01 Jiong Wang <jiong.wang@arm.com>
13605 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
13606 for frame access when strict_p is false.
13608 2014-08-01 Renlin Li <renlin.li@arm.com>
13609 2014-08-01 Jiong Wang <jiong.wang@arm.com>
13611 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
13612 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
13613 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
13615 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
13617 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
13618 aarch64_mem_pair_offset.
13620 2014-08-01 Jiong Wang <jiong.wang@arm.com>
13622 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
13624 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
13625 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
13627 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
13629 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
13631 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
13633 PR regression/61510
13634 * cgraphunit.c (analyze_functions): Use get_create rather than get
13635 for decls which are clones of abstract functions.
13637 2014-08-01 Martin Liska <mliska@suse.cz>
13639 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
13640 * ipa-prop.h (count_formal_params): Global function created from static.
13641 * ipa-prop.c (count_formal_params): Likewise.
13642 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
13643 profiles for semantically equivalent functions.
13644 * passes.c (do_per_function): If we load body of a function
13645 during WPA, this condition should behave same.
13646 * varpool.c (ctor_for_folding): More tolerant assert for variable
13647 aliases created during WPA.
13649 2014-08-01 Martin Liska <mliska@suse.cz>
13651 * doc/invoke.texi (Options That Control Optimization): Documentation
13652 for -foptimize-strlen introduced. Optimization levels default options
13655 2014-08-01 Jakub Jelinek <jakub@redhat.com>
13657 * opts.c (common_handle_option): Handle -fsanitize=alignment.
13658 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
13659 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
13661 * stor-layout.h (min_align_of_type): New prototype.
13662 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
13663 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
13665 * ubsan.c: Include builtins.h.
13666 (ubsan_expand_bounds_ifn): Change return type to bool,
13667 always return true.
13668 (ubsan_expand_null_ifn): Change return type to bool, change
13669 argument to gimple_stmt_iterator *. Handle both null and alignment
13670 sanitization, take type from ckind argument's type rather than
13672 (instrument_member_call): Removed.
13673 (instrument_mem_ref): Remove t argument, add mem and base arguments.
13674 Handle both null and alignment sanitization, don't say whole
13675 struct access is member access. Build 3 argument IFN_UBSAN_NULL
13676 call instead of 2 argument.
13677 (instrument_null): Adjust instrument_mem_ref caller. Don't
13678 instrument calls here.
13679 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
13680 like SANITIZE_NULL.
13681 * stor-layout.c (min_align_of_type): New function.
13682 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
13683 Or it into SANITIZE_UNDEFINED.
13684 * doc/invoke.texi (-fsanitize=alignment): Document.
13686 2014-07-31 Andi Kleen <ak@linux.intel.com>
13688 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
13690 2014-07-31 Andi Kleen <ak@linux.intel.com>
13692 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
13694 (vn_reference_compute_hash): Dito.
13695 (vn_nary_op_compute_hash): Dito.
13696 (vn_phi_compute_hash): Dito.
13697 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
13699 2014-07-31 Andi Kleen <ak@linux.intel.com>
13701 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
13702 Rename to inchash:add_expr_commutative. Convert to inchash.
13703 (iterative_hash_hashable_expr): Rename to
13704 inchash:add_hashable_expr. Convert to inchash.
13705 (avail_expr_hash): Dito.
13707 2014-07-31 Andi Kleen <ak@linux.intel.com>
13709 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
13710 Convert to inchash.
13712 2014-07-31 Andi Kleen <ak@linux.intel.com>
13714 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
13716 2014-07-31 Andi Kleen <ak@linux.intel.com>
13718 * Makefile.in (OBJS): Add rtlhash.o
13719 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
13720 (loc_checksum): Dito.
13721 (loc_checksum_ordered): Dito.
13722 (hash_loc_operands): Dito.
13724 (hash_loc_list): Dito.
13725 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
13726 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
13727 * rtlhash.c: New file.
13728 * rtlhash.h: New file.
13730 2014-07-31 Andi Kleen <ak@linux.intel.com>
13732 * inchash.h (inchash): Change inchash class to namespace.
13733 (class hash): ... Rename from inchash.
13734 (add_object): Move from macro to class template.
13735 * lto-streamer-out.c (hash_tree): Change inchash
13737 * tree.c (build_type_attribute_qual_variant): Dito.
13738 (type_hash_list): Dito.
13739 (attribute_hash_list): Dito.
13740 (iterative_hstate_expr): Rename to inchash::add_expr
13741 (build_range_type_1): Change inchash to inchash::hash
13742 and use hash::add_expr.
13743 (build_array_type_1): Dito.
13744 (build_function_type): Dito
13745 (build_method_type_directly): Dito.
13746 (build_offset_type): Dito.
13747 (build_complex_type): Dito.
13748 (make_vector_type): Dito.
13749 * tree.h (iterative_hash_expr): Dito.
13751 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
13753 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
13755 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
13757 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
13758 correct alphabetical position.
13759 (vpaddd_f64): Rewrite using builtins.
13760 (vpaddd_s64): Move to correct alphabetical position.
13763 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
13766 * config/sh/sh.c (sh_legitimate_address_p,
13767 sh_legitimize_reload_address): Handle reg+reg address modes when
13768 ALLOW_INDEXED_ADDRESS is false.
13769 * config/sh/predicates.md (general_movsrc_operand,
13770 general_movdst_operand): Likewise.
13772 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
13774 * config/aarch64/aarch64-builtins.c
13775 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
13778 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
13780 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
13781 the generated mask based on BYTES_BIG_ENDIAN.
13782 (aarch64_simd_check_vect_par_cnst_half): New.
13783 * config/aarch64/aarch64-protos.h
13784 (aarch64_simd_check_vect_par_cnst_half): New.
13785 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
13786 the check out to aarch64_simd_check_vect_par_cnst_half.
13787 (vect_par_cnst_lo_half): Likewise.
13788 * config/aarch64/aarch64-simd.md
13789 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
13790 (move_hi_quad_<mode>): Always generate a low mask.
13792 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13794 * doc/invoke.texi (AVR Options): Add documentation about
13795 __AVR_DEVICE_NAME__ built-in macro.
13797 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
13800 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
13801 constraints are satisfied.
13802 (<shift>di3_neon): Likewise.
13804 2014-07-31 Richard Biener <rguenther@suse.de>
13806 PR tree-optimization/61964
13807 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
13808 by structural equality.
13810 2014-07-31 Yury Gribov <y.gribov@samsung.com>
13812 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
13813 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
13814 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
13816 * gcc.c (sanitize_spec_function): Support new option.
13817 (SANITIZER_SPEC): Remove now redundant check.
13818 * opts.c (common_handle_option): Support new option.
13819 (finish_options): Check for incompatibilities.
13820 * toplev.c (process_options): Split userspace-specific checks.
13822 2014-07-31 Richard Biener <rguenther@suse.de>
13824 * lto-streamer.h (struct output_block): Remove global.
13825 (struct data_in): Remove labels, num_named_labels and
13826 num_unnamed_labels.
13827 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
13828 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
13830 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
13833 * common.opt (-Wreturn-local-addr): Moved from c.opt.
13834 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
13835 (isolate_path): New argument to avoid inserting a trap.
13836 (find_implicit_erroneous_behaviour): Handle returning the address
13837 of a local variable.
13838 (find_explicit_erroneous_behaviour): Likewise.
13840 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
13843 * toplev.c (init_random_seed): Move piece of code never called to
13845 (set_random_seed): see above.
13847 2014-07-31 Tom de Vries <tom@codesourcery.com>
13849 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
13851 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
13853 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
13854 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
13856 2014-07-31 Richard Biener <rguenther@suse.de>
13858 * data-streamer.h (streamer_write_data_stream): Declare here,
13860 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
13861 * lto-cgraph.c (lto_output_node): Adjust.
13862 (lto_output_varpool_node): Likewise.
13863 * data-streamer-out.c (streamer_string_index): Likewise.
13864 (streamer_write_data_stream, lto_append_block): Move from ...
13865 * lto-section-out.c (lto_output_data_stream,
13866 lto_append_block): ... here.
13868 2014-07-30 Mike Stump <mikestump@comcast.net>
13870 * configure.ac: Also check for popen.
13871 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
13872 * configure: Regenerate.
13873 * config.in: Regenerate.
13875 2014-07-30 Martin Jambor <mjambor@suse.cz>
13877 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
13878 parameter to gimple.
13880 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13882 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
13883 address as second parameter to __tpf_eh_return routine.
13885 2014-07-30 Jiong Wang <jiong.wang@arm.com>
13887 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
13890 2014-07-30 Tom Tromey <tromey@redhat.com>
13893 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
13894 * doc/extend.texi (Type Attributes): Document designated_init
13897 2014-07-30 Roman Gareev <gareevroman@gmail.com>
13899 * graphite-isl-ast-to-gimple.c:
13900 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
13901 (gcc_expression_from_isl_expression): Pass type to
13902 gcc_expression_from_isl_ast_expr_id.
13904 2014-07-30 Richard Biener <rguenther@suse.de>
13906 * lto-streamer.h (lto_write_data): New function.
13907 * langhooks.c (lhd_append_data): Do not free block.
13908 * lto-section-out.c (lto_write_data): New function writing
13909 raw data to the current section.
13910 (lto_write_stream): Adjust for langhook semantic change.
13911 (lto_destroy_simple_output_block): Write header directly.
13912 * lto-opts.c (lto_write_options): Write options directly.
13913 * lto-streamer-out.c (produce_asm): Write heaeder directly.
13914 (lto_output_toplevel_asms): Likewise.
13915 (copy_function_or_variable): Copy data directly.
13916 (write_global_references): Output index table directly.
13917 (lto_output_decl_state_refs): Likewise.
13918 (write_symbol): Write data directly.
13919 (produce_symtab): Adjust.
13920 (produce_asm_for_decls): Output header and refs directly.
13922 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
13924 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
13925 to speculative_targets
13926 (get_class_context): Fix handling of contextes without outer type;
13927 avoid matching non-polymorphic types in LTO.
13928 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
13929 parameter to speculative_targetsp; handle speculation.
13930 (dump_possible_polymorphic_call_targets): Update dumping.
13932 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
13934 * common.opt (Wodr): Enable by default.
13936 2014-07-29 Olivier Hainque <hainque@adacore.com>
13938 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
13940 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
13943 * gengtype.c (strtoken): New function.
13944 (create_user_defined_type): Replace strtok with strtoken.
13946 2014-07-29 Nathan Sidwell <nathan@acm.org>
13948 * gcov-io.c (gcov_var): Make hidden.
13949 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
13950 (gcov_do_dump): Declare.
13951 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
13953 2014-07-29 Martin Jambor <mjambor@suse.cz>
13955 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
13956 parameter to gimple.
13957 (sra_modify_assign): Likewise.
13959 2014-07-29 Richard Biener <rguenther@suse.de>
13961 PR middle-end/52478
13962 * expr.c (expand_expr_real_2): Revert last change.
13964 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
13966 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
13967 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
13968 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
13970 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
13971 (contains_type_p): Forward declare.
13972 (polymorphic_call_target_hasher::hash): Hash speculative info.
13973 (polymorphic_call_target_hasher::equal): Compare speculative info.
13974 (get_class_context): Handle speuclation.
13975 (contains_type_p): Update.
13976 (get_polymorphic_call_info_for_decl): Update.
13977 (walk_ssa_copies): Break out from ...
13978 (get_polymorphic_call_info): ... here; set speculative context
13980 * ipa-prop.c (ipa_write_indirect_edge_info,
13981 ipa_read_indirect_edge_info): Stream speculative context.
13982 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
13983 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
13984 SPECULATIVE_MAYBE_DERIVED_TYPE).
13985 (possible_polymorphic_call_targets overriders): Update.
13986 (dump_possible_polymorphic_call_targets overriders): Update.
13987 (dump_possible_polymorphic_call_target_p overriders): Update.
13989 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
13991 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
13992 ipa-devirt path; fix thinko there.
13994 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
13996 * config/i386/i386.c (ix86_return_in_memory): Replace one
13997 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
13999 2014-07-28 Marek Polacek <polacek@redhat.com>
14001 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
14003 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
14005 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14006 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14007 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14008 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14009 (USE_LD_AS_NEEDED): Likewise.
14010 (ASM_APP_ON): Likewise.
14011 (ASM_APP_OFF): Likewise.
14012 (TARGET_POSIX_IO): Likewise.
14013 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14014 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14015 (USE_LD_AS_NEEDED): Likewise.
14016 (ASM_APP_ON): Likewise.
14017 (ASM_APP_OFF): Likewise.
14018 (TARGET_POSIX_IO): Likewise.
14020 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
14022 PR middle-end/61734
14023 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
14024 operators other than the equality operators.
14026 2014-07-28 Richard Biener <rguenther@suse.de>
14028 PR middle-end/52478
14029 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
14030 sure to register SImode ones, not only >= word_mode ones.
14031 * expr.c (expand_expr_real_2): When expanding -ftrapv
14032 binops do not use OPTAB_LIB_WIDEN.
14034 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
14036 PR middle-end/61919
14037 * tree-outof-ssa.c (insert_partition_copy_on_edge)
14038 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
14039 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
14040 inserting them in the insn stream.
14042 2014-07-28 Marek Polacek <polacek@redhat.com>
14044 PR middle-end/61913
14045 * common.opt (Wodr): Add Var.
14047 2014-07-28 Richard Biener <rguenther@suse.de>
14049 PR tree-optimization/61921
14050 * tree-ssa-structalias.c (create_variable_info_for_1): Check
14051 if there is a varpool node before dereferencing it.
14053 2014-07-28 Roman Gareev <gareevroman@gmail.com>
14055 * graphite-sese-to-poly.c:
14056 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
14057 id of the pbb), which contains pointer to the pbb1.
14059 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
14061 2014-07-28 Roman Gareev <gareevroman@gmail.com>
14063 * graphite-isl-ast-to-gimple.c:
14064 (graphite_create_new_guard): New function.
14065 (translate_isl_ast_node_if): New function.
14066 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
14068 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
14070 2014-07-27 Anthony Green <green@moxielogic.com>
14072 * config.gcc: Add moxie-*-moxiebox* configuration.
14073 * config/moxie/moxiebox.h: New file.
14075 2014-07-26 Andrew Pinski <apinski@cavium.com>
14077 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
14078 from the read only register.
14080 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
14082 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
14083 as the allocation class if it isn't likely to be spilled.
14085 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
14087 * rtl.h (tls_referenced_p): Declare.
14088 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
14089 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
14090 (mips_cannot_force_const_mem): Use tls_referenced_p.
14091 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
14092 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
14093 instead of pa_tls_referenced_p.
14094 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
14095 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
14096 (pa_legitimate_constant_p): Likewise.
14097 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
14098 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
14099 (rs6000_cannot_force_const_mem, rs6000_emit_move)
14100 (rs6000_address_for_altivec): Use tls_referenced_p instead of
14101 rs6000_tls_referenced_p.
14102 (rs6000_tls_symbol_ref_1): Delete.
14104 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
14107 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
14108 Optimize inverse of a VEC_CONCAT.
14110 2014-07-25 Xinliang David Li <davidxl@google.com>
14112 * params.def: New parameter.
14113 * coverage.c (get_coverage_counts): Check new flag.
14114 (coverage_compute_profile_id): Check new flag.
14115 (coverage_begin_function): Check new flag.
14116 (coverage_end_function): Check new flag.
14117 * value-prof.c (coverage_node_map_initialized_p): New function.
14118 (init_node_map): Populate map with all functions.
14119 * doc/invoke.texi: Document new parameter.
14121 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
14122 Richard Biener <rguenther@suse.de>
14124 * lto-streamer-out.c (struct sccs): Turn to ...
14125 (class DFS): ... this one; refactor the DFS walk so it can
14126 be re-done on per-SCC basis.
14127 (DFS::DFS): New constructor.
14128 (DFS::~DFS): New destructor.
14129 (hash_tree): Add new MAP argument holding in-SCC hash values;
14130 remove POINTER_TYPE hashing hack.
14131 (scc_entry_compare): Rename to ...
14132 (DFS::scc_entry_compare): ... this one.
14133 (hash_scc): Rename to ...
14134 (DFS::hash_scc): ... this one; pass output_block instead
14135 of streamer_cache; work harder to get unique and stable SCC
14137 (DFS_write_tree): Rename to ...
14138 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
14139 (lto_output_tree): Update.
14141 2014-07-25 Andi Kleen <ak@linux.intel.com>
14143 * lto-streamer-out.c (hash_tree): Convert to inchash.
14145 2014-07-25 Andi Kleen <ak@linux.intel.com>
14147 * tree.c (build_type_attribute_qual_variant): Use inchash.
14148 (type_hash_list): Dito.
14149 (attribute_hash_list): Dito
14150 (iterative_hstate_expr): Dito.
14151 (iterative_hash_expr): Dito.
14152 (build_range_type_1): Dito.
14153 (build_array_type_1): Dito.
14154 (build_function_type): Dito.
14155 (build_method_type_directly): Dito.
14156 (build_offset_type): Dito.
14157 (build_complex_type): Dito.
14158 (make_vector_type): Dito.
14159 * tree.h (iterative_hash_expr): Add compat wrapper.
14160 (iterative_hstate_expr): Add.
14162 2014-07-25 Andi Kleen <ak@linux.intel.com>
14164 * Makefile.in (OBJS): Add inchash.o.
14165 (PLUGIN_HEADERS): Add inchash.h.
14166 * ipa-devirt.c: Include inchash.h.
14167 * lto-streamer-out.c: Dito.
14168 * tree-ssa-dom.c: Dito.
14169 * tree-ssa-pre.c: Dito.
14170 * tree-ssa-sccvn.c: Dito.
14171 * tree-ssa-tail-merge.c: Dito.
14173 * tree.c (iterative_hash_hashval_t): Move to ...
14174 (iterative_hash_host_wide_int): Move to ...
14175 * inchash.c: Here. New file.
14176 * tree.h (iterative_hash_hashval_t): Move to ...
14177 (iterative_hash_host_wide_int): Move to ...
14178 * inchash.h: Here. New file.
14180 2014-07-25 Richard Biener <rguenther@suse.de>
14182 PR middle-end/61762
14183 PR middle-end/61894
14184 * fold-const.c (native_encode_int): Add and handle offset
14185 parameter to do partial encodings of expr.
14186 (native_encode_fixed): Likewise.
14187 (native_encode_real): Likewise.
14188 (native_encode_complex): Likewise.
14189 (native_encode_vector): Likewise.
14190 (native_encode_string): Likewise.
14191 (native_encode_expr): Likewise.
14192 * fold-const.c (native_encode_expr): Add offset parameter
14194 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
14195 (fold_ctor_reference): Handle all reads from tcc_constant
14198 2014-07-25 Richard Biener <rguenther@suse.de>
14200 * tree-inline.c (estimate_move_cost): Mark speed_p argument
14201 as possibly unused.
14203 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14205 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
14207 2014-07-24 Kyle McMartin <kyle@redhat.com>
14209 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
14211 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14213 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
14215 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
14217 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
14218 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14219 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
14221 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14223 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
14224 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
14225 aggregate types. Instead, *all* aggregate types, except for single-
14226 element or homogeneous float/vector aggregates, are quadword-aligned
14227 if required by their type alignment. Issue -Wpsabi note when a type
14228 is now treated differently than before.
14230 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14232 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
14233 does not fit fully into floating-point registers, and there is still
14234 space in the register parameter area, use GPRs to pass those parts
14235 of the argument. Issue -Wpsabi note if any parameter is now treated
14236 differently than before.
14237 (rs6000_arg_partial_bytes): Update.
14239 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
14241 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
14243 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14245 * rtl.h (target_rtl): Remove lang_dependent_initialized.
14246 * toplev.c (initialize_rtl): Don't use it. Move previously
14247 "language-dependent" calls to...
14248 (backend_init): ...here.
14249 (lang_dependent_init_target): Don't set lang_dependent_initialized.
14250 Assert that RTL initialization hasn't happend yet.
14252 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14254 PR rtl-optimization/61629
14255 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
14256 they have already been initialized.
14258 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14260 PR middle-end/61268
14261 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
14262 DECL_INCOMING_RTL and entry_parm.
14263 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
14264 * calls.c (load_register_parameters): Likewise argument values.
14265 (emit_library_call_value_1, store_one_arg): Likewise argument
14267 * config/i386/i386.c (assign_386_stack_local): Likewise the local
14269 * explow.c (validize_mem): Modify the argument in-place.
14271 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14273 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
14274 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
14276 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14278 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
14279 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
14281 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14283 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
14284 (aarch64_save_callee_saves): New parameter "skip_wb".
14285 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
14287 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14289 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
14291 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
14293 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14295 * graphite-isl-ast-to-gimple.c:
14296 (graphite_create_new_loop): Add calling of isl_id_free to properly
14297 decrement reference counts.
14299 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
14301 2014-07-24 Martin Liska <mliska@suse.cz>
14302 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
14304 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
14305 (rs6000_code_end): Likewise.
14307 2014-07-24 Martin Liska <mliska@suse.cz>
14309 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
14310 symtab_node funtion used.
14311 (rs6000_xcoff_declare_object_name): Likewise.
14313 2014-07-24 Martin Liska <mliska@suse.cz>
14315 * cgraphunit.c (compile): Correct function used.
14317 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14319 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
14322 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14325 * varasm.c (bss_initializer_p): Handle offlined ctors.
14326 (align_variable, get_variable_align): Likewise.
14327 (make_decl_one_only): Likewise.
14328 (default_binds_local_p_1): Likewise.
14329 (decl_binds_to_current_def_p): Likewise.
14330 (get_variable_section): Get constructor if it is offlined.
14331 (assemble_variable_contents): Sanity check that the caller
14332 streamed in the ctor in LTO.
14334 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14336 * graphite-isl-ast-to-gimple.c:
14337 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
14338 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
14339 isl_ast_op_pdiv_r to the different case.
14341 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
14343 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14345 PR middle-end/61876
14346 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
14347 when flag_errno_math is on.
14349 2014-07-24 Martin Liska <mliska@suse.cz>
14351 * cgraph.h (varpool_node):
14352 (availability get_availability (void)):
14353 created from cgraph_variable_initializer_availability
14354 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
14355 created from: cgraph_variable_initializer_availability
14356 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
14357 (void finalize_named_section_flags (void)):
14358 created from varpool_finalize_named_section_flags
14359 (bool assemble_decl (void)): created from varpool_assemble_decl
14360 (void analyze (void)): created from varpool_analyze_node
14361 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
14362 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
14363 (void remove_initializer (void)): created from varpool_remove_initializer
14364 (tree get_constructor (void)): created from varpool_get_constructor
14365 (bool externally_visible_p (void)): created from varpool_externally_visible_p
14366 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
14367 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
14368 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
14369 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
14370 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
14371 (static bool output_variables (void)): created from varpool_output_variables
14372 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
14373 created from varpool_extra_name_alias
14374 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
14375 (static void dump_varpool (FILE *f)): created from dump_varpool
14376 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
14377 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
14378 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
14379 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
14380 (void assemble_aliases (void)): created from assemble_aliases
14382 2014-07-24 Martin Liska <mliska@suse.cz>
14384 * cgraph.h (symtab_node):
14385 (void register_symbol (void)): created from symtab_register_node
14386 (void remove (void)): created from symtab_remove_node
14387 (void dump (FILE *f)): created from dump_symtab_node
14388 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
14389 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
14390 (struct ipa_ref *add_reference (symtab_node *referred_node,
14391 enum ipa_ref_use use_type)): created from add_reference
14392 (struct ipa_ref *add_reference (symtab_node *referred_node,
14393 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
14394 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
14395 gimple stmt)): created from maybe_add_reference
14396 (bool semantically_equivalent_p (symtab_node *target)): created from
14397 symtab_semantically_equivalent_p
14398 (void remove_from_same_comdat_group (void)): created from
14399 remove_from_same_comdat_group
14400 (void add_to_same_comdat_group (symtab_node *old_node)): created from
14401 symtab_add_to_same_comdat_group
14402 (void dissolve_same_comdat_group_list (void)): created from
14403 symtab_dissolve_same_comdat_group_list
14404 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
14405 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
14406 created from symtab_alias_ultimate_target
14407 (inline symtab_node *next_defined_symbol (void)): created from
14408 symtab_next_defined_symbol
14409 (bool resolve_alias (symtab_node *target)): created from
14410 symtab_resolve_alias
14411 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
14412 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
14413 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
14414 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
14415 (void set_section (const char *section)): created from set_section_1
14416 (enum availability get_availability (void)): created from symtab_node_availability
14417 (void make_decl_local (void)): created from symtab_make_decl_local
14418 (bool real_symbol_p (void)): created from symtab_read_node
14419 (can_be_discarded_p (void)): created from symtab_can_be_discarded
14420 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
14421 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
14422 symtab_in_same_comdat_p;
14423 (bool address_taken_from_non_vtable_p (void)): created from
14424 address_taken_from_non_vtable_p
14425 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
14426 (static void dump_table (FILE *)): created from dump_symtab
14427 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
14428 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
14429 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
14430 symtab_used_from_object_file_p
14431 (void dump_base (FILE *)): created from dump_symtab_base
14432 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
14433 (void unregister (void)): created from symtab_unregister_node
14434 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
14435 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
14436 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
14437 symtab_nonoverwritable_alias_1
14438 * cgraph.h (cgraph_node):
14439 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
14440 created from cgraph_remove_node_and_inline_clones
14441 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
14442 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
14443 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
14444 (cgraph_node *function_symbol (enum availability *avail = NULL)):
14445 created from cgraph_function_node
14446 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
14447 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
14448 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
14449 created from cgraph_create_clone
14450 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
14451 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
14452 created from cgraph_create_virtual_clone
14453 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
14454 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
14455 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
14456 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
14457 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
14458 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
14459 created from cgraph_function_version_info
14460 (struct cgraph_function_version_info *insert_new_function_version (void)):
14461 created from insert_new_cgraph_node_version
14462 (struct cgraph_function_version_info *function_version (void)): created from
14463 get_cgraph_node_version
14464 (void analyze (void)): created from analyze_function
14465 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
14466 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
14467 tree real_alias) cgraph_add_thunk
14468 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
14469 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
14470 created from cgraph_function_or_thunk_node
14471 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
14472 created from expand_thunk
14473 (void reset (void)): created from cgraph_reset_node
14474 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
14475 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
14476 (void remove (void)): created from cgraph_remove_node
14477 (void dump (FILE *f)): created from dump_cgraph_node
14478 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
14479 (bool get_body (void)): created from cgraph_get_body
14480 (void release_body (void)): created from cgraph_release_function_body
14481 (void unnest (void)): created from cgraph_unnest_node
14482 (void make_local (void)): created from cgraph_make_node_local
14483 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
14484 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
14485 gcov_type count, int freq)): created from cgraph_create_edge
14486 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
14487 gcov_type count, int freq)): created from cgraph_create_indirect_edge
14488 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
14489 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
14490 created from cgraph_create_edge_including_clones
14491 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
14492 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
14493 (void remove_callers (void)): created from cgraph_node_remove_callers
14494 (void remove_callees (void)): created from cgraph_node_remove_callees
14495 (enum availability get_availability (void)): created from cgraph_function_body_availability
14496 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
14497 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
14498 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
14499 (void call_duplication_hooks (cgraph_node *node2)): created from
14500 cgraph_call_node_duplication_hooks
14501 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
14502 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
14503 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
14504 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
14505 (void call_function_insertion_hooks (void)):
14506 created from cgraph_call_function_insertion_hooks
14507 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
14508 (bool local_p (void)): created from cgraph_local_node
14509 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
14510 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
14511 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
14512 (inline bool only_called_directly_or_aliased_p (void)):
14513 created from cgraph_only_called_directly_or_aliased_p
14514 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
14515 created from cgraph_will_be_removed_from_program_if_no_direct_calls
14516 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
14517 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
14518 (bool can_remove_if_no_direct_calls_p (void)):
14519 created from cgraph_can_remove_if_no_direct_calls_p
14520 (inline bool has_gimple_body_p (void)):
14521 created from cgraph_function_with_gimple_body_p
14522 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
14523 (static void dump_cgraph (FILE *f)): created from dump_cgraph
14524 (static inline void debug_cgraph (void)): created from debug_cgraph
14525 (static void record_function_versions (tree decl1, tree decl2)):
14526 created from record_function_versions
14527 (static void delete_function_version (tree decl)):
14528 created from delete_function_version
14529 (static void add_new_function (tree fndecl, bool lowered)):
14530 created from cgraph_add_new_function
14531 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
14532 (static cgraph_node * create (tree decl)): created from cgraph_create_node
14533 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
14534 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
14535 (static cgraph_node *get_for_asmname (tree asmname)):
14536 created from cgraph_node_for_asm
14537 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
14538 created from cgraph_same_body_alias
14539 (static bool used_from_object_file_p_worker (cgraph_node *node,
14540 void *): new function
14541 (static bool non_local_p (cgraph_node *node, void *)):
14542 created from cgraph_non_local_node_p_1
14543 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
14544 created from verify_cgraph
14545 (static bool make_local (cgraph_node *node, void *)):
14546 created from cgraph_make_node_local
14547 (static cgraph_node *create_alias (tree alias, tree target)):
14548 created from cgraph_create_function_alias
14549 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
14550 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
14551 created from cgraph_create_edge_1
14552 * cgraph.h (varpool_node):
14553 (void remove (void)): created from varpool_remove_node
14554 (void dump (FILE *f)): created from dump_varpool_node
14556 2014-07-24 Richard Biener <rguenther@suse.de>
14559 * tree-ssa-structalias.c (create_variable_info_for_1):
14560 Use varpool_get_constructor.
14561 (create_variable_info_for): Likewise.
14563 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14565 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
14566 subtract outgoing area size when restoring stack_pointer_rtx.
14568 2014-07-24 Nick Clifton <nickc@redhat.com>
14570 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
14571 that operations are taking place in parallel.
14572 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
14574 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
14576 * omp-low.c (extract_omp_for_data): Add missing break statement.
14578 2014-07-24 Richard Biener <rguenther@suse.de>
14580 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
14581 * tree-inline.c (estimate_move_cost): Add speed_p parameter
14582 and adjust MOVE_RATIO query accordingly.
14583 (estimate_num_insns): Adjust callers.
14584 * ipa-prop.c (ipa_populate_param_decls): Likewise.
14585 * ipa-cp.c (gather_context_independent_values,
14586 estimate_local_effects): Likewise.
14587 * ipa-split.c (consider_split): Likewise.
14589 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
14591 * config/i386/driver-i386.c: Remove names of unused arguments and
14592 unnecessary unused attributes.
14593 * config/i386/host-mingw32.c: Likewise.
14594 * config/i386/i386.c: Likewise.
14595 * config/i386/winnt-stubs.c: Likewise.
14596 * config/i386/winnt.c: Likewise.
14598 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14600 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
14601 (aarch64_gen_loadwb_pair): New helper function.
14602 (aarch64_expand_epilogue): Simplify code using new helper functions.
14603 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
14605 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14607 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
14608 (aarch64_gen_storewb_pair): New helper function.
14609 (aarch64_expand_prologue): Simplify code using new helper functions.
14610 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
14612 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14614 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
14615 Rename to aarch64_save_callee_saves, remove restore code.
14616 (aarch64_restore_callee_saves): New function.
14618 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14620 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
14621 (aarch64_save_callee_saves): New function to handle reg save
14622 for both core and vectore regs.
14624 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14626 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
14627 (aarch64_gen_store_pair): New helper function.
14628 (aarch64_save_or_restore_callee_save_registers)
14629 (aarch64_save_or_restore_fprs): Use new helper functions.
14631 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14633 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
14634 (aarch64_save_or_restore_callee_save_registers)
14635 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
14637 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14639 * config/aarch64/aarch64.c
14640 (aarch64_save_or_restore_callee_save_registers)
14641 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
14643 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14645 * config/aarch64/aarch64.c
14646 (aarch64_save_or_restore_callee_save_registers)
14647 (aarch64_save_or_restore_fprs): Remove 'increment'.
14649 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14651 * config/aarch64/aarch64.c
14652 (aarch64_save_or_restore_callee_save_registers)
14653 (aarch64_save_or_restore_fprs): Use register offset in
14654 cfun->machine->frame.reg_offset.
14656 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14658 * config/aarch64/aarch64.c
14659 (aarch64_save_or_restore_callee_save_registers)
14660 (aarch64_save_or_restore_fprs): Remove base_rtx.
14662 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14664 * config/aarch64/aarch64.c
14665 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
14666 to 'start_offset'. Remove local variable 'start_offset'.
14668 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14670 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
14671 type to HOST_WIDE_INT.
14673 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14675 * config/aarch64/aarch64.c (aarch64_expand_prologue)
14676 (aarch64_save_or_restore_fprs)
14677 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
14679 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
14681 * config/arm/t-rtems-eabi: Add
14682 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
14683 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
14684 mbig-endian/mthumb/march=armv7-r, and
14685 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
14688 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
14689 Chris Johns <chrisj@rtems.org>
14690 Joel Sherrill <joel.sherrill@oarcorp.com>
14692 * config.gcc: Add nios2-*-rtems*.
14693 * config/nios2/rtems.h: New file.
14694 * gcc/config/nios2/t-rtems: New file.
14696 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
14699 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
14700 constant numbers, not general constants.
14701 (rs6000_expand_vector_init): Ditto.
14703 2014-07-23 Nathan Sidwell <nathan@acm.org>
14705 * gcov-tool.c (gcov_list): Declare here.
14706 (set_gcov_list): Remove.
14707 (gcov_output_files): Set gcov_list directly.
14709 2014-07-23 Host Schirmeier <horst@schirmeier.com>
14711 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
14713 2014-07-23 Jiong Wang <jiong.wang@arm.com>
14715 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
14716 callee-saved registers are available for padding purpose
14717 and r3 is not mandatory, then prefer use those callee-saved
14720 2014-07-23 Richard Biener <rguenther@suse.de>
14722 * params.def (PARAM_MAX_COMBINE_INSNS): New.
14723 * combine.c: Include statistics.h and params.h.
14724 (combine_instructions): Guard three and four insn combines
14725 with max-combine-insns value. Record statistics for combines
14727 * doc/invoke.texi (max-combine-insns): Document new param.
14729 2014-07-23 Roman Gareev <gareevroman@gmail.com>
14731 * graphite-isl-ast-to-gimple.c:
14732 (translate_isl_ast_node_block): New function.
14733 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
14735 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
14736 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
14738 2014-07-23 Roman Gareev <gareevroman@gmail.com>
14740 * graphite-isl-ast-to-gimple.c:
14741 (get_max_schedule_dimensions): New function.
14742 (extend_schedule): Likewise.
14743 (generate_isl_schedule): Add calling of extend_schedule and
14744 get_max_schedule_dimensions.
14746 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14748 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
14749 (case UNSPEC): Handle UNSPEC_RBIT.
14751 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14753 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
14754 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
14756 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14758 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
14760 2014-07-22 Roman Gareev <gareevroman@gmail.com>
14762 * graphite-isl-ast-to-gimple.c:
14763 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
14764 (ivs_params_clear):
14765 (build_iv_mapping): New function.
14766 (translate_isl_ast_node_user): Likewise.
14767 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
14769 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
14770 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
14771 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
14773 2014-07-21 Bin Cheng <bin.cheng@arm.com>
14776 * config/arm/arm.md (setmem): New pattern.
14777 * config/arm/arm-protos.h (struct tune_params): New fields.
14778 (arm_gen_setmem): New prototype.
14779 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
14780 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
14781 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
14782 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
14783 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
14784 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
14785 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
14786 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
14787 (arm_const_inline_cost): New function.
14788 (arm_block_set_max_insns): New function.
14789 (arm_block_set_non_vect_profit_p): New function.
14790 (arm_block_set_vect_profit_p): New function.
14791 (arm_block_set_unaligned_vect): New function.
14792 (arm_block_set_aligned_vect): New function.
14793 (arm_block_set_unaligned_non_vect): New function.
14794 (arm_block_set_aligned_non_vect): New function.
14795 (arm_block_set_vect, arm_gen_setmem): New functions.
14797 2014-07-21 Bin Cheng <bin.cheng@arm.com>
14799 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
14801 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
14804 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
14805 out of #ifdef __OPTIMIZE__.
14807 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
14809 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
14810 different trapping status if -fnon-call-exceptions is enabled.
14812 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
14814 * expr.c (store_field): Handle VOIDmode for calls that return values
14815 in multiple locations.
14817 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14819 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
14820 (altivec_vsldoi_<mode>): Likewise.
14822 2014-07-20 Roman Gareev <gareevroman@gmail.com>
14824 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
14825 to the number of characters in the line.
14827 2014-07-20 Roman Gareev <gareevroman@gmail.com>
14829 * graphite-isl-ast-to-gimple.c: Add using of
14830 build_nonstandard_integer_type instead of int128_integer_type_node.
14832 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
14834 * toplev.c (output_stack_usage): Adjust the location of the warning.
14836 2014-07-19 Daniel Cederman <cederman@gaisler.com>
14838 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
14839 (*membar_storeload): Disable for LEON3.
14841 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14843 PR rtl-optimization/61461
14844 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
14846 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
14849 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
14850 Fix instruction constraint.
14851 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
14853 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
14855 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
14857 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
14859 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
14860 GNU coding standards.
14861 (nds32_register_move_cost): Likewise.
14862 (nds32_memory_move_cost): Likewise.
14863 (nds32_address_cost): Likewise.
14865 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14867 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
14869 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
14871 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
14872 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
14873 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14874 (HAVE_sync_compare_and_swapqi): Define.
14875 (HAVE_sync_compare_and_swaphi): Likewise.
14876 (HAVE_sync_compare_and_swapsi): Likewise.
14878 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
14880 * config/mips/p5600.md: Add missing cpu tests.
14882 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14884 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
14885 (vmla_f64): Likewise.
14886 (vfms_f64): Likewise.
14887 (vmls_f64): Likewise.
14889 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14891 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
14892 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
14894 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14896 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
14897 (vmlal_high_lane_s32): Likewise.
14898 (vmlal_high_lane_u16): Likewise.
14899 (vmlal_high_lane_u32): Likewise.
14900 (vmlsl_high_lane_s16): Likewise.
14901 (vmlsl_high_lane_s32): Likewise.
14902 (vmlsl_high_lane_u16): Likewise.
14903 (vmlsl_high_lane_u32): Likewise.
14905 2014-07-17 Terry Guo <terry.guo@arm.com>
14907 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
14908 (alus_reg): Renamed to alus_sreg.
14909 * config/arm/arm-fixed.md: Change type of non-dsp instructions
14910 from alu_reg to alu_sreg. Change type of dsp instructions from
14911 alu_reg to alu_dsp_reg.
14912 * config/arm/thumb1.md: Likewise.
14913 * config/arm/thumb2.md: Likewise.
14914 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
14915 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
14916 with alu_sreg and alus_sreg.
14917 * config/arm/arm1026ejs.md (alu_op): Likewise.
14918 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
14919 * config/arm/arm926ejs.md (9_alu_op): Likewise.
14920 * config/arm/fa526.md (526_alu_op): Likewise.
14921 * config/arm/fa606te.md (606te_alu_op): Likewise.
14922 * config/arm/fa626te.md (626te_alu_op): Likewise.
14923 * config/arm/fa726te.md (726te_alu_op): Likewise.
14924 * config/arm/fmp626.md (mp626_alu_op): Likewise.
14925 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
14926 alu_sreg, alu_dsp_reg and alus_sreg.
14927 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
14928 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
14929 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
14930 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
14931 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
14932 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
14933 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
14934 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
14935 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
14936 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
14937 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
14938 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
14939 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
14940 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
14941 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
14942 alus_reg to alus_sreg.
14944 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
14946 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
14949 2014-07-17 Richard Biener <rguenther@suse.de>
14951 PR rtl-optimization/61801
14952 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
14953 don't set reg_pending_barrier if it appears in a debug-insn.
14955 2014-07-16 DJ Delorie <dj@redhat.com>
14957 * config/rx/rx.c (rx_option_override): Fix alignment values.
14958 (rx_align_for_label): Likewise.
14960 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
14963 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
14964 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
14965 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
14967 (cris_print_index, cris_print_operand, cris_constant_index_p)
14968 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
14969 (cris_address_cost): Ditto last CONSTANT_P.
14970 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
14971 callers changed. Yield cris_offsettable_symbol for non-PIC
14972 constant symbolic expressions including labels. Yield cris_unspec
14974 (cris_expand_pic_call_address): New parameter MARKERP. Set its
14975 target to pic_offset_table_rtx for calls that will likely go
14976 through PLT, const0_rtx when they can't. All callers changed.
14977 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
14978 symbolic expressions to be PICified. Remove second, redundant,
14979 assert on can_create_pseudo_p returning non-zero. Use
14980 replace_equiv_address_nv, not replace_equiv_address, for final
14982 * config/cris/cris.md ("movsi"): Move variable t to pattern
14983 toplevel. Adjust assert for new cris_symbol_type member. Use
14984 CONSTANT_P instead of CONSTANT_ADDRESS_P.
14985 ("*movsi_internal") <case 9>: Make check for valid unspec operands
14987 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
14988 ("call", "call_value"): Use second incoming operand as a marker
14989 for pic-offset-table-register being used.
14990 ("*expanded_call_non_v32", "*expanded_call_v32")
14991 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
14992 second incoming operand to CALL, match cris_call_type_marker.
14993 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
14994 ("*expanded_call_side"): Ditto. Fix typo in comment.
14995 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
14997 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
14998 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
14999 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
15000 users changed. Add members cris_offsettable_symbol and cris_unspec.
15001 (cris_symbol_type): Rename from cris_pic_symbol_type.
15002 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15004 * config/cris/cris-protos.h (cris_symbol_type_of,
15005 cris_expand_pic_call_address): Adjust prototypes.
15006 (cris_legitimate_constant_p): New prototype.
15008 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15009 an existing tmake_file. Don't add t-slibgcc and t-linux.
15011 2014-07-17 Jason Merrill <jason@redhat.com>
15014 * symtab.c (symtab_remove_from_same_comdat_group): Also
15015 set_comdat_group to NULL_TREE.
15016 (verify_symtab): Fix diagnostic.
15018 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
15021 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
15023 2014-07-16 Dodji Seketeli <dodji@redhat.com>
15025 Support location tracking for built-in macro tokens
15026 * input.h (is_location_from_builtin_token): New function declaration.
15027 * input.c (is_location_from_builtin_token): New function definition.
15028 * toplev.c (general_init): Tell libcpp what the pre-defined
15029 spelling location for built-in tokens is.
15031 2014-07-16 Jakub Jelinek <jakub@redhat.com>
15033 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
15034 on the FUNCTION_DECL.
15036 2014-07-16 Richard Biener <rguenther@suse.de>
15039 * doc/extend.texi (always_inline): Clarify.
15041 2014-07-15 Eric Christopher <echristo@gmail.com>
15043 * doc/invoke.texi (Link Options): Document -z option.
15045 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
15047 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
15048 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15050 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
15052 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
15054 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
15056 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
15057 varpool_assemble_decl.
15058 * varpool.c (varpool_assemble_decl): Assert that node->definition is
15061 2014-07-15 Michael Matz <matz@suse.de>
15063 PR rtl-optimization/61772
15064 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
15066 2014-07-15 Richard Biener <rguenther@suse.de>
15068 * opts.c (default_options_table): Disable bit-ccp at -Og.
15070 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
15072 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
15074 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
15076 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
15077 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
15078 call langhook for unknown declaration.
15079 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
15080 * tree.h (DECL_ARGUMENTS): Update.
15081 * print-tree.c (print_node): Update.
15082 * tree-core.h (tree_decl_non_common): Remove arguments.
15083 (tree_function_decl): Add arguments.
15085 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
15087 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
15089 2014-07-14 Richard Biener <rguenther@suse.de>
15091 PR tree-optimization/61779
15092 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
15093 simplifying a condition.
15095 2014-07-14 Richard Biener <rguenther@suse.de>
15097 * builtins.c (c_strlen): Make only_value == 2 really only
15098 affect warning generation.
15100 2014-07-14 Richard Biener <rguenther@suse.de>
15102 PR tree-optimization/61757
15103 PR tree-optimization/61783
15104 PR tree-optimization/61787
15105 * tree-ssa-dom.c (record_equality): Revert canonicalization
15106 change and add comment.
15107 (propagate_rhs_into_lhs): Revert previous fix, removing
15108 loop depth restriction again.
15110 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15112 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
15113 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15114 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15115 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
15116 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15117 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15118 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15120 2014-07-14 Richard Biener <rguenther@suse.de>
15122 * cgraph.h (decl_in_symtab_p): Make inline.
15124 2014-07-14 Jakub Jelinek <jakub@redhat.com>
15126 PR middle-end/61294
15127 * doc/invoke.texi (-Wmemset-transposed-args): Document.
15130 * config/i386/i386.c (classify_argument): Don't merge classes above
15133 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
15135 * cgraph.h (symtab_node): Add nonzero_address.
15136 (decl_in_symtab_p): Break out from ...
15137 (symtab_get_node): ... here.
15138 * fold-const.c: Include cgraph.h
15139 (tree_single_nonzero_warnv_p): Use symtab to determine
15140 if symbol is non-zero.
15141 * symtab.c (symtab_node::nonzero_address): New method.
15143 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15145 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
15146 forgotten in previous commit.
15148 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15150 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
15152 * ipa-devirt.c: Include stor-layout.h and intl.h
15153 (odr_subtypes_equivalent_p): New function.
15154 (warn_odr): New function.
15155 (warn_type_mismatch): New function.
15156 (odr_types_equivalent_p): New function.
15157 (add_type_duplicate): Use it.
15158 * common.opt (Wodr): New flag.
15159 * doc/invoke.texi (Wodr): Document new warning.
15161 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15163 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
15164 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
15165 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
15166 (varpool_get_constructor): Push CTORS_IN timevar.
15167 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
15169 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
15171 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
15172 Remove VOID_FTYPE_PUSHORT.
15173 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
15174 Change code to USHORT_FTYPE_VOID.
15175 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
15176 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
15177 (ix86_atomic_assign_expand_fenv): Update for
15178 __builtin_ia32_fnstsw changes.
15179 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
15180 (fnstsw): Change operand 0 to nonimmediate operand.
15182 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15184 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
15185 (varpool_get_constructor): New function.
15186 (varpool_ctor_useable_for_folding_p): Break out from ...
15187 (ctor_for_folding): ... here; use varpool_get_constructor.
15188 (varpool_assemble_decl): Likewise.
15189 * lto-streamer.h (struct output_block): Turn cgraph_node
15191 (lto_input_variable_constructor): Declare.
15192 * ipa-visibility.c (function_and_variable_visibility): Use
15193 varpool_get_constructor.
15194 * cgraph.h (varpool_get_constructor): Declare.
15195 (varpool_ctor_useable_for_folding_p): New function.
15196 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
15197 parameter; return error_mark_node for non-trivial constructors.
15198 (lto_write_tree_1, DFS_write_tree): Update use of
15199 get_symbol_initial_value.
15200 (output_function): Update initialization of symbol.
15201 (output_constructor): New function.
15202 (copy_function): Rename to ..
15203 (copy_function_or_variable): ... this one; handle vars too.
15204 (lto_output): Output variable sections.
15205 * lto-streamer-in.c (input_constructor): New function.
15206 (lto_read_body): Rename from ...
15207 (lto_read_body_or_constructor): ... this one; handle vars too.
15208 (lto_input_variable_constructor): New function.
15209 * ipa-prop.c (ipa_prop_write_jump_functions,
15210 ipa_prop_write_all_agg_replacement): Update.
15211 * lto-cgraph.c (compute_ltrans_boundary): Use it.
15212 (output_cgraph_opt_summary): Set symbol to NULL.
15214 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15216 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
15217 non-polymorphic types.
15218 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
15219 * ipa-devirt.c (types_same_for_odr): Do not explode when one
15220 of types is not polymorphic.
15222 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
15224 * lra-constraints.c (remove_inheritance_pseudos): Process
15225 destination pseudo too.
15227 2014-07-11 Rong Xu <xur@google.com>
15229 * gcov-tool.c (gcov_output_files): Fix build error introduced in
15232 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15234 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
15235 * config/avr/avr-devices.c (AVR_MCU): Same.
15236 (avr_mcu_types): add text start value to end of device list.
15237 * config/avr/avr-mcus.def: Add text section start for all devices.
15238 (ata5782): Add new avr5 device.
15240 * config/avr/avr-tables.opt: Regenerate.
15241 * config/avr/avr.h: Add declaration for text section start handler.
15242 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
15244 (LINK_SPEC): Include text section start handler to linker spec.
15245 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
15246 pass -Ttext option to linker if the text section start for the device
15248 * config/avr/t-multilib: Regenerate.
15249 * doc/avr-mmcu.texi: Regenerate.
15251 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
15253 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
15254 * config/rs6000/aix52.h (LINK_SPEC): Same.
15255 * config/rs6000/aix53.h (LINK_SPEC): Same.
15256 * config/rs6000/aix61.h (LINK_SPEC): Same.
15257 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
15259 2014-07-11 Roman Gareev <gareevroman@gmail.com>
15261 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
15262 (graphite_verify): New function.
15263 (ivs_params_clear): New function.
15264 (gcc_expression_from_isl_ast_expr_id): New function.
15265 (gcc_expression_from_isl_expr_int): New function.
15266 (binary_op_to_tree): New function.
15267 (ternary_op_to_tree): New function.
15268 (unary_op_to_tree): New function.
15269 (nary_op_to_tree): New function.
15270 (gcc_expression_from_isl_expr_op): New function.
15271 (gcc_expression_from_isl_expression): New function.
15272 (graphite_create_new_loop): New function.
15273 (translate_isl_ast_for_loop): New function.
15274 (get_upper_bound): New function.
15275 (graphite_create_new_loop_guard): New function.
15276 (translate_isl_ast_node_for): New function.
15277 (translate_isl_ast): New function.
15278 (add_parameters_to_ivs_params): New function.
15279 (scop_to_isl_ast): New parameter ip.
15280 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
15282 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15284 * config/xtensa/predicates.md (call expander): Update for
15285 DECL_SECTION_NAME being string.
15287 2014-07-11 Richard Biener <rguenther@suse.de>
15289 PR middle-end/61473
15290 * builtins.c (fold_builtin_memory_op): Inline memory moves that
15291 can be implemented with a single load followed by a single store.
15292 (c_strlen): Only warn when only_value is not 2.
15294 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
15296 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
15298 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
15301 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
15302 (*movhi_bytes): Likewise.
15303 (*arm_movqi_insn): Likewise.
15305 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
15308 * config/alpha/alpha.c: Include tree-pass.h, context.h
15309 and pass_manager.h.
15310 (pass_data_handle_trap_shadows): New pass.
15311 (pass_handle_trap_shadows::gate): New pass gate function.
15312 (make_pass_handle_trap_shadows): New function.
15313 (rest_of_handle_trap_shadows): Ditto.
15315 (alpha_align_insns_1): Rename from alpha_align_insns.
15316 (pass_data_align_insns): New pass.
15317 (pass_align_insns::gate): New pass gate function.
15318 (make_pass_aling_insns): New function.
15319 (rest_of_align_insns): Ditto.
15320 (alpha_align_insns): Ditto.
15322 (alpha_option_override): Declare handle_trap_shadows info
15323 and align_insns_info. Register handle_trap_shadows and align_insns
15325 (alpha_reorg): Do not call alpha_trap_shadows and
15326 alpha_align_insn from here.
15328 (alpha_pad_function_end): Do not skip BARRIERs.
15330 2014-07-10 Rong Xu <xur@google.com>
15332 Add gcov-tool: an offline gcda profile processing tool support.
15333 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
15334 (gcov_is_error): Ditto.
15335 (gcov_read_string): Ditto.
15336 (gcov_read_sync): Ditto.
15337 * gcov-io.h: Move counter defines to gcov-counter.def.
15338 * gcov-dump.c (tag_counters): Use gcov-counter.def.
15339 * coverage.c: Ditto.
15340 * gcov-tool.c: Offline gcda profile processing tool.
15341 (unlink_gcda_file): Remove one gcda file.
15342 (unlink_profile_dir): Remove gcda files from the profile path.
15343 (gcov_output_files): Output gcda files to an output dir.
15344 (profile_merge): Merge two profiles in directory.
15345 (print_merge_usage_message): Print merge usage.
15346 (merge_usage): Print merge usage and exit.
15347 (do_merge): Driver for profile merge sub-command.
15348 (profile_rewrite): Rewrite profile.
15349 (print_rewrite_usage_message): Print rewrite usage.
15350 (rewrite_usage): Print rewrite usage and exit.
15351 (do_rewrite): Driver for profile rewrite sub-command.
15352 (print_usage): Print gcov-info usage and exit.
15353 (print_version): Print gcov-info version.
15354 (process_args): Process arguments.
15355 (main): Main routine for gcov-tool.
15356 * Makefile.in: Build and install gcov-tool.
15357 * gcov-counter.def: New file split from gcov-io.h.
15358 * doc/gcc.texi: Include gcov-tool.texi.
15359 * doc/gcov-tool.texi: Document for gcov-tool.
15361 2014-07-10 Richard Biener <rguenther@suse.de>
15363 PR tree-optimization/61757
15364 * tree-ssa-dom.c (loop_depth_of_name): Restore.
15365 (propagate_rhs_into_lhs): Revert part of last change.
15367 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
15369 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
15372 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
15374 PR middle-end/53590
15375 * function.c (allocate_struct_function): Revert r188667 change.
15377 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
15379 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
15381 * doc/install.texi: Remove links to defunct package providers for
15384 2014-07-09 Tom de Vries <tom@codesourcery.com>
15386 * final.c (get_call_fndecl): Declare.
15387 (self_recursive_call_p): New function.
15388 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
15390 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15392 * ipa-devirt.c (record_node): Walk through aliases.
15394 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15396 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
15398 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15401 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15403 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15405 * ipa-visibility.c (function_and_variable_visibility): Remove
15406 temporary hack disabling local aliases on AIX.
15408 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15410 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
15411 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
15413 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15415 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
15416 * rs6000/rs6000.c: Inline output of .set instruction.
15417 (declare_alias_data): New struct.
15418 (rs6000_declare_alias): New function.
15419 (rs6000_xcoff_declare_function_name): Use it.
15420 (rs6000_xcoff_declare_object_name): New function.
15421 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
15422 (ASM_OUTPUT_DEF): Turn to empty definition.
15424 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15427 * hash-table.h: use hash_table::value_type instead of
15428 Descriptor::value_type in the return types of several methods.
15430 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15432 * tree-pass.h (pass_data): Remove has_execute member.
15433 * passes.c (execute_one_pass): Don't check pass->has_execute.
15434 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15435 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15436 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15437 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15438 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15439 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15440 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15441 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15442 gimple-low.c, gimple-ssa-isolate-paths.c,
15443 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15444 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
15445 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
15446 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
15447 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
15448 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15449 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
15450 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
15451 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
15452 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
15453 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
15454 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15455 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15456 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15457 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15458 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15459 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15460 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15461 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15462 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15463 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15464 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15465 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
15466 web.c: Remove initializer for pass_data::has_execute.
15468 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15470 * graphite-htab.h: Use hash_map instead of hash_table.
15471 * graphite-clast-to-gimple.c: Adjust.
15472 * passes.c: Use hash_map instead of hash_table.
15473 * sese.c: Likewise.
15474 * sese.h: Remove now unused code.
15476 2014-07-08 Sriraman Tallam <tmsriram@google.com>
15479 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
15482 2014-07-08 Jakub Jelinek <jakub@redhat.com>
15484 PR rtl-optimization/61673
15485 * combine.c (simplify_comparison): Test just mode's sign bit
15486 in tmode rather than the sign bit and any bits above it.
15488 2014-07-08 Roman Gareev <gareevroman@gmail.com>
15490 * graphite-isl-ast-to-gimple.c (generate_isl_context):
15491 Add __isl_give to the declaration.
15492 (generate_isl_schedule): Likewise.
15493 (scop_to_isl_ast): Likewise.
15495 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15497 * config/arm/arm.c (cortexa5_extra_costs): New table.
15498 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
15500 2014-07-08 Jakub Jelinek <jakub@redhat.com>
15502 PR tree-optimization/61725
15503 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
15504 range, use range_includes_zerop_p instead of integer_zerop on
15505 vr0->min, only use log2 of max if min is not negative.
15507 2014-07-08 Richard Biener <rguenther@suse.de>
15509 * tree-ssa-dom.h (loop_depth_of_name): Remove.
15510 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
15511 restriction on loop depth difference.
15512 (record_equality): Likewise.
15513 (propagate_rhs_into_lhs): Likewise. Simplify condition.
15514 (loop_depth_of_name): Remove.
15515 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
15516 restriction on loop depth difference.
15517 (init_copy_prop): Likewise.
15519 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15521 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
15523 (walk_aliased_vdefs): Likewise.
15524 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
15525 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
15526 (detect_type_change_from_memory_writes): Check if entry was reached.
15528 2014-07-08 Richard Biener <rguenther@suse.de>
15530 PR tree-optimization/61681
15531 * tree-ssa-structalias.c (find_what_var_points_to): Expand
15532 NONLOCAL inside ESCAPED.
15534 2014-07-08 Richard Biener <rguenther@suse.de>
15536 PR tree-optimization/61680
15537 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15538 Handle properly all read-write dependences with group accesses.
15540 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
15542 PR tree-optimization/61576
15543 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
15544 block containing reduction statement is predecessor of phi basi block.
15546 2014-07-08 Marek Polacek <polacek@redhat.com>
15549 * fold-const.c (round_up_loc): Change the parameter type.
15551 * fold-const.h (round_up_loc): Adjust declaration.
15552 * stor-layout.c (finalize_record_size): Check for too large types.
15554 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
15556 * symtab.c: Include calls.h.
15557 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
15559 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
15561 * config/rs6000/rs6000.c (output_vec_const_move): Handle
15562 little-endian code generation.
15563 * config/rs6000/spe.md (spe_evmergehi): Rename to...
15564 (vec_perm00_v2si): ... this. Handle little-endian code generation.
15565 (spe_evmergehilo): Rename to...
15566 (vec_perm01_v2si): ... this. Handle little-endian code generation.
15567 (spe_evmergelo): Rename to...
15568 (vec_perm11_v2si): ... this. Handle little-endian code generation.
15569 (spe_evmergelohi): Rename to...
15570 (vec_perm10_v2si): ... this. Handle little-endian code generation.
15571 (spe_evmergehi, spe_evmergehilo): New expanders.
15572 (spe_evmergelo, spe_evmergelohi): Likewise.
15573 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
15574 (*frob_tf_ti): Likewise.
15575 (*frob_<mode>_di_2): Likewise.
15576 (*frob_tf_di_8_2): Likewise.
15577 (*frob_di_<mode>): Likewise.
15578 (*frob_ti_tf): Likewise.
15579 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
15580 (*frob_ti_<mode>_8_2): Likewise.
15581 (*frob_ti_tf_2): Likewise.
15582 (mov_si<mode>_e500_subreg0): Rename to...
15583 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
15585 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
15586 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
15587 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
15588 the big endianness only.
15589 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
15590 (*mov_si<mode>_e500_subreg0_2): Rename to...
15591 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
15592 big big endianness only.
15593 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
15594 (*mov_si<mode>_e500_subreg4): Rename to...
15595 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
15597 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
15598 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
15599 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
15600 the big endianness only.
15601 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
15603 (*mov_si<mode>_e500_subreg4_2): Rename to...
15604 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
15606 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
15607 (*mov_sitf_e500_subreg8): Rename to...
15608 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
15610 (*mov_sitf_e500_subreg8_le): New instruction pattern.
15611 (*mov_sitf_e500_subreg8_2): Rename to...
15612 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
15614 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
15615 (*mov_sitf_e500_subreg12): Rename to...
15616 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
15618 (*mov_sitf_e500_subreg12_le): New instruction pattern.
15619 (*mov_sitf_e500_subreg12_2): Rename to...
15620 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
15622 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
15624 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
15626 * asan.c (instrument_strlen_call): Do not instrument first byte
15627 in strlen if already instrumented.
15629 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15631 * config/arm/arm.opt (mwords-little-endian): Delete.
15632 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
15633 of TARGET_LITTLE_WORDS.
15634 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
15635 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
15637 * doc/invoke.texi: Remove references to -mwords-little-endian.
15639 2014-07-07 Jakub Jelinek <jakub@redhat.com>
15641 * expmed.c (struct init_expmed_rtl): Change all fields but
15642 pow2 and cint from struct rtx_def to rtx.
15643 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
15644 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
15647 2014-07-06 Marek Polacek <polacek@redhat.com>
15650 * doc/invoke.texi: Document -Wsizeof-array-argument.
15652 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
15654 * wide-int.h (wide_int_storage): Change declaration from struct
15657 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
15659 * cgraph.c (cgraph_create_indirect_edge): Update call of
15660 get_polymorphic_call_info.
15661 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
15662 (possible_polymorphic_call_targets): Add parameter call.
15663 (decl_maybe_in_construction_p): New predicate.
15664 (get_polymorphic_call_info): Add parameter call;
15665 use decl_maybe_in_construction_p.
15666 * gimple-fold.c (fold_gimple_assign): Update use of
15667 possible_polymorphic_call_targets.
15668 (gimple_fold_call): Likewise.
15669 * ipa-prop.c: Inlcude calls.h
15670 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
15671 (param_type_may_change_p): New predicate.
15672 (detect_type_change_from_memory_writes): Break out from ...
15673 (detect_type_change): ... this one; use param_type_may_change_p.
15674 (detect_type_change_ssa): Use param_type_may_change_p.
15675 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
15677 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
15680 * config/arm/arm-protos.h (arm_legitimate_address_p,
15681 arm_is_constant_pool_ref): Add prototypes.
15682 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
15683 (arm_is_constant_pool_ref) New function.
15684 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
15685 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
15686 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
15687 operand. Remove pool_range and neg_pool_range attributes.
15688 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
15689 pool_range and neg_pool_range attributes.
15690 * config/arm/constraints.md (Uh): New constraint.
15691 (Uq): Don't allow constant pool references.
15693 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
15695 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
15696 (move_lo_quad_internal_be_<mode>): Likewise.
15697 (move_lo_quad_<mode>): Convert to define_expand.
15698 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
15699 (aarch64_simd_move_hi_quad_be_<mode>): New.
15700 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
15701 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
15702 (aarch64_combinez_be<mode>): New.
15703 (aarch64_combine<mode>): Convert to define_expand.
15704 (aarch64_combine_internal<mode>): New.
15705 (aarch64_simd_combine<mode>): Remove bogus RTL description.
15707 2014-07-04 Tom de Vries <tom@codesourcery.com>
15709 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
15710 combination of earlyclobber and read/write modifiers.
15712 2014-07-04 Tom de Vries <tom@codesourcery.com>
15714 * config/aarch64/aarch64-simd.md
15715 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
15717 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
15720 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
15722 2014-07-04 Jakub Jelinek <jakub@redhat.com>
15724 PR middle-end/61654
15725 * cgraphunit.c (expand_thunk): Call free_dominance_info.
15727 PR tree-optimization/61684
15728 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
15729 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
15731 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15732 Kito Cheng <kito@0xlab.org>
15733 Monk Chiang <sh.chiang04@gmail.com>
15735 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
15736 (nds32_symbol_load_store_p): Move to ...
15737 (nds32_fp_as_gp_check_available): Move to ...
15738 * config/nds32/nds32-fp-as-gp.c: ... here.
15739 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
15740 extern declaration.
15742 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15743 Kito Cheng <kito@0xlab.org>
15744 Monk Chiang <sh.chiang04@gmail.com>
15746 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
15747 (nds32_expand_store_multiple): Move to ...
15748 (nds32_expand_movmemqi): Move to ...
15749 * config/nds32/nds32-memory-manipulation.c: ... here.
15751 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15752 Kito Cheng <kito@0xlab.org>
15753 Monk Chiang <sh.chiang04@gmail.com>
15755 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
15756 (nds32_output_casesi_pc_relative): Move to ...
15757 (nds32_output_casesi): Move to ...
15758 (nds32_mem_format): Move to ...
15759 (nds32_output_16bit_store): Move to ...
15760 (nds32_output_16bit_load): Move to ...
15761 (nds32_output_32bit_store): Move to ...
15762 (nds32_output_32bit_load): Move to ...
15763 (nds32_output_32bit_load_s): Move to ...
15764 (nds32_output_stack_push): Move to ...
15765 (nds32_output_stack_pop): Move to ...
15766 * config/nds32/nds32-md-auxiliary.c: ... here.
15768 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15769 Ling-Hua Tseng <uranus@tinlans.org>
15771 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
15772 the purpose of this file.
15774 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15775 Kito Cheng <kito@0xlab.org>
15776 Monk Chiang <sh.chiang04@gmail.com>
15778 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
15779 (nds32_address_cost): Move implementation to ...
15780 * config/nds32/nds32-cost.c: ... here.
15781 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
15782 (nds32_address_cost_impl): Declare.
15784 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15785 Kito Cheng <kito@0xlab.org>
15786 Monk Chiang <sh.chiang04@gmail.com>
15788 * config/nds32/nds32.c
15789 (nds32_consecutive_registers_load_store_p): Move to ...
15790 (nds32_valid_multiple_load_store): Move to ...
15791 (nds32_valid_stack_push_pop): Move to ...
15792 (nds32_can_use_bclr_p): Move to ...
15793 (nds32_can_use_bset_p): Move to ...
15794 (nds32_can_use_btgl_p): Move to ...
15795 (nds32_can_use_bitci_p): Move to ...
15796 * config/nds32/nds32-predicates.c: ... here.
15798 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15799 Kito Cheng <kito@0xlab.org>
15800 Monk Chiang <sh.chiang04@gmail.com>
15802 * config/nds32/nds32.c
15803 (nds32_expand_builtin_null_ftype_reg): Move to ...
15804 (nds32_expand_builtin_reg_ftype_imm): Move to ...
15805 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
15806 (nds32_init_builtins): Move implementation to ...
15807 (nds32_expand_builtin): Move implementation to ...
15808 * config/nds32/nds32-intrinsic.c: ... here.
15809 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
15810 (nds32_expand_builtin_impl): Declare.
15812 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15813 Kito Cheng <kito@0xlab.org>
15814 Monk Chiang <sh.chiang04@gmail.com>
15816 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
15817 (nds32_emit_section_tail_template): Move to ...
15818 (nds32_emit_isr_jmptbl_section): Move to ...
15819 (nds32_emit_isr_vector_section): Move to ...
15820 (nds32_emit_isr_reset_conten): Move to ...
15821 (nds32_check_isr_attrs_conflict): Move to ...
15822 (nds32_construct_isr_vectors_information): Move to ...
15823 (nds32_asm_file_start): Move implementation to ...
15824 (nds32_asm_file_end): Move implementation to ...
15825 * config/nds32/nds32-isr.c: ... here.
15826 * config/nds32/nds32-protos.h
15827 (nds32_check_isr_attrs_conflict): Declare.
15828 (nds32_construct_isr_vectors_information): Declare.
15829 (nds32_asm_file_start_for_isr): Declare.
15830 (nds32_asm_file_end_for_isr): Declare.
15832 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
15833 Kito Cheng <kito@0xlab.org>
15834 Monk Chiang <sh.chiang04@gmail.com>
15836 * config.gcc (nds32*): Add new modules to extra_objs.
15837 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
15838 (nds32be-*-*): Likewise.
15839 * config/nds32/nds32-cost.c: New file.
15840 * config/nds32/nds32-fp-as-gp.c: New file.
15841 * config/nds32/nds32-intrinsic.c: New file.
15842 * config/nds32/nds32-isr.c: New file.
15843 * config/nds32/nds32-md-auxiliary.c: New file.
15844 * config/nds32/nds32-memory-manipulation.c: New file.
15845 * config/nds32/nds32-pipelines-auxiliary.c: New file.
15846 * config/nds32/nds32-predicates.c: New file.
15847 * config/nds32/t-nds32: New file.
15849 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15851 PR tree-optimization/61682
15852 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
15853 using cases and when one of the operands is equal to 1.
15855 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
15857 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
15858 ashr<mode>3): Correct mode of operands[2].
15859 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
15860 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
15861 Correct mode of operands[2]. Fix split condition.
15863 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
15865 * arm.md (arch): Add armv6_or_vfpv3.
15866 (arch_enabled): Add test for the above.
15867 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
15869 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
15871 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15873 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
15874 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
15875 HWI 1 and negate the unsigned value.
15876 * expmed.c (expand_sdiv_pow2): For modes wider than word always
15877 use AND instead of shift.
15878 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
15880 2014-07-03 Marek Polacek <polacek@redhat.com>
15882 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
15883 (-fsanitize=float-divide-by-zero): Move to the table with
15884 -fsanitize=undefined suboptions.
15885 (-fsanitize=float-cast-overflow): Likewise.
15887 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
15889 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
15890 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
15893 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15895 * loop-invariant.c (struct invariant): Add a new member: eqno;
15896 (find_identical_invariants): Update eqno;
15897 (create_new_invariant): Init eqno;
15898 (get_inv_cost): Compute comp_cost with eqno;
15900 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
15902 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
15903 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
15904 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
15905 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
15906 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
15908 2014-07-02 Christian Bruel <christian.bruel@st.com>
15912 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
15913 (make_preds_opaque): Delete.
15914 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
15915 (commit_mode_sets): New function.
15916 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
15917 Process all modes at once.
15918 * basic-block.h (pre_edge_lcm_avs): Declare.
15919 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
15920 Call clear_aux_for_edges. Fix comments.
15921 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
15922 (pre_edge_rev_lcm): Idem.
15923 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
15925 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
15926 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
15928 * config/i386/i386.c (x96_emit_mode_set): Idem.
15929 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
15930 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
15931 (fpscr_toggle) Disallow from delay slot.
15932 * target.def (emit_mode_set): Add prev_mode parameter.
15933 * doc/tm.texi: Regenerate.
15935 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15937 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
15940 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
15942 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
15943 vtable_pointer_value_to_vtable): Constify.
15944 (contains_polymorphic_type_p): Declare.
15945 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
15946 vtable_pointer_value_to_vtable): Constify.
15947 (contains_polymorphic_type_p): New predicate.
15948 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
15950 (ipa_set_ancestor_jf): Likewise.
15951 (detect_type_change): Return false in easy cases.
15952 (compute_complex_assign_jump_func): Require type to contain
15954 (compute_known_type_jump_func): Likewise.
15956 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
15958 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
15960 (type_in_anonymous_namespace_p): Constify argument.
15961 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
15962 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
15963 (main_odr_variant): New function.
15964 (hash_type_name): Make static; update assert; do not ICE on
15966 (types_same_for_odr): Bring here from tree.c; simplify and remove
15967 old structural comparing code that doesn't work for templates.
15968 (odr_hasher::equal): Update assert.
15969 (add_type_duplicate): Return true when bases should be computed;
15970 replace incomplete loader by complete; do not output duplicated
15971 warnings; do not ICE on non-records; set odr_violated flag.
15972 (get_odr_type): Be ready to replace incomplete type by complete
15973 one; work on ODR variants instead of main variants; reorder item
15974 in array so bases have still smaller indexes.
15975 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
15976 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
15978 2014-07-01 Cary Coutant <ccoutant@google.com>
15980 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
15982 (resolve_addr_in_expr): When replacing the rtx in a location list
15983 entry, get a new address table entry.
15984 (dwarf2out_finish): Call index_location_lists even if there are no
15985 addr_index_table entries yet.
15987 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
15989 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
15990 change for not being obvious.
15992 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
15994 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
15997 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15999 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16000 (vcagt_f64): Likewise.
16001 (vcale_f64): Likewise.
16002 (vcaled_f64): Likewise.
16003 (vcales_f32): Likewise.
16004 (vcalt_f64): Likewise.
16005 (vcaltd_f64): Likewise.
16006 (vcalts_f32): Likewise.
16008 2014-07-01 Marek Polacek <polacek@redhat.com>
16010 * doc/invoke.texi: Document -Wint-conversion.
16012 2014-07-01 Marek Polacek <polacek@redhat.com>
16015 * doc/invoke.texi: Document -Wincompatible-pointer-types.
16017 2014-07-01 Martin Liska <mliska@suse.cz>
16019 IPA REF alias refactoring
16020 * cgraph.h (iterate_direct_aliases): New function.
16021 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
16022 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
16023 FOR_EACH_ALIAS added.
16024 (cgraph_for_node_and_aliases): Likewise.
16025 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
16026 * ipa-inline.c (reset_edge_caches): Likewise.
16027 (update_caller_keys): Likewise.
16028 * trans-mem.c (ipa_tm_execute): Likewise.
16029 *varpool.c (varpool_analyze_node): Likewise.
16030 (varpool_for_node_and_aliases): Likewise.
16031 * ipa-ref.h (first_alias): New function.
16032 (last_alias): Likewise.
16033 (has_aliases_p): Likewise.
16034 * ipa-ref.c (ipa_ref::remove_reference): Removal function
16035 is sensitive to IPA_REF_ALIASes.
16036 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
16037 are put at the beginning of the list.
16038 (symtab_node::iterate_direct_aliases): New function.
16040 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16043 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16045 (write_ts_type_common_tree_pointers): Do not stream fields not set
16046 for incomplete types; do not stream duplicated fields for variants;
16047 sanity check that variant and type match.
16048 (write_ts_type_non_common_tree_pointers): Likewise.
16049 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16050 TYPE_SIZE whether type is complete.
16051 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16052 write_ts_type_common_tree_pointers
16053 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16055 2014-06-30 Joseph Myers <joseph@codesourcery.com>
16057 * var-tracking.c (add_stores): Return instead of asserting if old
16058 and new values for conditional store are the same.
16060 2014-06-30 Richard Henderson <rth@redhat.com>
16064 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
16065 the cfg if there were any changes.
16066 * passes.def: Revert move of peephole2 after reorder_blocks;
16067 move duplicate_computed_gotos before peephole2.
16069 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
16071 * except.c (emit_note_eh_region_end): New helper function.
16072 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
16073 emit EH_REGION_END note.
16074 * jump.c (cleanup_barriers): Do not split a call and its
16075 corresponding CALL_ARG_LOCATION note.
16077 2014-06-30 Jeff Law <law@redhat.com>
16079 PR tree-optimization/61607
16080 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
16081 deeper into the SSA_NAME_VALUE chain.
16083 2014-06-30 Marek Polacek <polacek@redhat.com>
16085 * convert.c (convert_to_integer): Don't instrument conversions if the
16086 function has no_sanitize_undefined attribute.
16087 * ubsan.c: Don't run the ubsan pass if the function has
16088 no_sanitize_undefined attribute.
16090 2014-06-30 Jakub Jelinek <jakub@redhat.com>
16092 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
16093 -fsanitize=undefined suboptions.
16095 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
16097 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
16098 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
16099 against bigendian and adjust indices.
16101 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
16103 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
16105 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
16108 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
16109 Add alternative; make early clobber. Adjust both split patterns
16110 to use operand 0 as the working register.
16112 2014-06-30 Jakub Jelinek <jakub@redhat.com>
16114 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
16115 as ira_object_id_map might be NULL, or 1.
16117 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16119 * loop-invariant.c (get_inv_cost): Handle register class.
16120 (gain_for_invariant): Check the register pressure of the inv
16121 and its overlapped register class, other than all.
16123 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
16125 * doc/invoke.texi (Optimize Options): Fix descriptions of
16126 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
16128 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
16130 * doc/extend.texi (Function Attributes): Update 'naked' attribute
16133 2014-06-29 Tobias Grosser <tobias@grosser.es>
16136 * graphite-isl-ast-to-gimple.c: Add missing guards.
16138 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16140 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
16141 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
16142 * flag-types.h: Add new enum fgraphite_generator.
16143 * graphite-isl-ast-to-gimple.c: New.
16144 * graphite-isl-ast-to-gimple.h: New.
16145 * graphite.c (graphite_transform_loops): Add choice of Graphite
16146 code generator, which depends on flag_graphite_code_gen.
16148 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16150 * graphite-dependences.c (subtract_commutative_associative_deps):
16151 Add NULL checking of the following variables: must_raw_no_source,
16152 may_raw_no_source, must_war_no_source, may_war_no_source,
16153 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
16154 must_war, may_war, must_waw, may_waw.
16156 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16158 * graphite-clast-to-gimple.c: gloog is renamed to
16159 graphite_regenerate_ast_cloog. gloog_error is renamed to
16160 graphite_regenerate_error.
16161 * graphite-clast-to-gimple.h: The definition of the struct
16162 bb_pbb_def is moved to graphite-htab.h.
16163 Add inclusion of the hash-table.h.
16164 * graphite-htab.h: The declaration of the function gloog is moved
16165 to graphite-clast-to-gimple.h and renamed to
16166 graphite_regenerate_ast_cloog.
16167 * graphite.c (graphite_transform_loops): gloog is renamed
16168 to graphite_regenerate_ast_cloog.
16170 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16172 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16174 (write_ts_type_common_tree_pointers): Do not stream fields not set
16175 for incomplete types; do not stream duplicated fields for variants;
16176 sanity check that variant and type match.
16177 (write_ts_type_non_common_tree_pointers): Likewise.
16178 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16179 TYPE_SIZE whether type is complete.
16180 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16181 write_ts_type_common_tree_pointers
16182 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16184 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16186 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
16188 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16190 * tree-inline.c (remap_type_1): Do not duplicate fields
16191 that are shared in between type and its main variant.
16193 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16195 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
16197 (ipa_set_ancestor_jf) Likewise.
16198 (check_stmt_for_type_change): Check that we work on main variant.
16199 (detect_type_change): Look into main variant.
16200 (compute_known_type_jump_func): Check that main variant has BINFO.
16202 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16204 * ipa-devirt.c (set_type_binfo): New function.
16205 (add_type_duplicate): Use it.
16206 (get_odr_type): Sanity check that binfos points to main variants.
16207 (get_class_context): Be sure the context's outer_type is main variant.
16208 (contains_type_p): Walk main variant.
16209 (get_polymorphic_call_info_for_decl): Set outer_type to be
16211 (get_polymorphic_call_info): Likewise.
16212 (possible_polymorphic_call_targets): Sanity check that we operate
16215 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16217 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16219 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16221 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
16222 accidental change due to wide-int branch merge.
16224 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16226 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
16227 compressed debug support.
16228 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
16229 * configure: Regenerate.
16230 * config.in: Regenerate.
16231 * common.opt (compressed_debug_sections): New enum.
16232 (gz, gz=): New options.
16233 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
16234 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
16235 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
16236 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
16237 LINK_COMPRESS_DEBUG_SPEC.
16238 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
16239 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
16240 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
16241 (Debugging Options): Document -gz[=type].
16243 2014-06-27 Martin Jambor <mjambor@suse.cz>
16246 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
16247 args_to_skip, use those from node instead. Copy args_to_skip and
16248 combined_args_to_skip from node to the new thunk.
16249 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
16250 (cgraph_create_virtual_clone): Moved computation of
16251 combined_args_to_skip...
16252 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
16254 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
16256 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
16257 redundant diagnostic machinary.
16259 2014-06-27 Richard Biener <rguenther@suse.de>
16261 * tree-ssa-math-opts.c (bswap_replace): Fix
16262 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
16264 2014-06-27 Martin Liska <mliska@suse.cz>
16266 * gimple.h (gimple_location_safe): New function introduced.
16267 * cgraphunit.c (walk_polymorphic_call_targets): Usage
16268 of gimple_location_safe replaces gimple_location.
16269 (gimple_fold_call): Likewise.
16270 * ipa-devirt.c (ipa_devirt): Likewise.
16271 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16272 * ipa.c (walk_polymorphic_call_targets): Likewise.
16273 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16275 2014-06-27 Jakub Jelinek <jakub@redhat.com>
16277 PR tree-optimization/57233
16278 PR tree-optimization/61299
16279 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
16281 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
16282 would be lowered to scalar shifts, check if corresponding
16283 shifts and vector BIT_IOR_EXPR are supported and don't lower
16284 or lower just to narrower vector type in that case.
16285 * expmed.c (expand_shift_1): Fix up handling of vector
16286 shifts and rotates.
16288 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
16291 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
16293 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
16295 * doc/invoke.texi (-fsemantic-interposition): Document.
16296 * common.opt (fsemantic-interposition): New flag.
16297 * varasm.c (decl_replaceable_p): Use it.
16299 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16302 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
16303 extraction other than index 3.
16305 2014-06-26 Teresa Johnson <tejohnson@google.com>
16307 * doc/invoke.texi: Fix typo.
16308 * dumpfile.c: Add support for documented -fdump-* options
16309 optimized/missed/note/optall.
16311 2014-06-26 Martin Jambor <mjambor@suse.cz>
16313 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
16314 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
16315 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
16316 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
16317 * opts.c (default_options_optimization): Set
16318 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
16319 * doc/invoke.texi (allow-load-data-races)
16320 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
16321 (allow-store-data-races): Document the new default.
16323 2014-06-26 Martin Jambor <mjambor@suse.cz>
16325 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
16326 renamed to ipa_impossible_devirt_target. Fix typo.
16327 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
16328 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
16329 ipa_impossible_devirt_target.
16331 2014-06-26 Richard Biener <rguenther@suse.de>
16333 PR tree-optimization/61607
16334 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
16335 explaining why we restrict copies on loop depth.
16336 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16338 (record_equivalences_from_phis): Instead add it here.
16340 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
16342 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
16343 (LTO_WRAPPER_OBJS): New variable.
16344 (lto-wrapper$(exeext)): Use it.
16345 * collect2.c: Include "collect-utils.h".
16346 (verbose, debug): Remove variables.
16347 (at_file_supplied): No longer static.
16348 (tool_name): New variable.
16349 (do_wait, fork_execute, maybe_unlink): Don't declare.
16350 (tool_cleanup): No longer static.
16351 (notice): Remove function.
16352 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
16353 fork_execute calls.
16354 (collect_wait, do_wait, collect_execute): Remove functions.
16355 (maybe_unlink): No longer static.
16356 * collect2.h (verbose, debug): Don't declare.
16357 (at_file_supplied): Declare.
16358 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
16360 (collect_execute): Replace with implementation from collect2, plus a
16361 new arg use_atfile. All callers changed.
16362 (collect_wait): Replace with implementation from collect2.
16363 (maybe_unlink_file): Remove function.
16364 (fork_execute): Replace with implementation from collect2, plus a
16365 new arg use_atfile. All callers changed.
16366 (do_wait): Add call to utils_cleanup to the error path.
16367 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
16368 (tool_cleanup): Adjust declarations.
16369 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
16370 * tlink.c: Include "collect-utils.h".
16371 (tlink_execute): New arg use_atfile. All callers changed.
16372 (tlink_init, tlink_execute): Remove declarations.
16374 * collect-utils.c (save_temps): New variable.
16375 (do_wait): Use it instead of debug. Use fatal_error.
16376 * collect-utils.h (save_temps): Declare.
16377 * collect2.c (verbose): Rename from vflag. All uses changed.
16378 (tool_cleanup): New function, copied from collect_atexit.
16379 (collect_atexit, handler): Just call it.
16380 * collect2.h (verbose): Declaration renamed from vflag.
16381 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
16384 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
16385 (lto-wrapper$(exeext)): Link with collect-utils.o.
16386 * collect-utils.c: New file.
16387 * collect-utils.h: New file.
16388 * lto-wrapper.c: Include "collect-utils.h".
16389 (args_name): Delete variable.
16390 (tool_name): New variable.
16391 (tool_cleanup): New function.
16392 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
16393 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
16394 (fork_execute): Remove functions.
16396 2014-06-26 Nick Clifton <nickc@redhat.com>
16398 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
16400 * doc/extend.texi (Function Attributes): Fix typo in description
16401 of RX vector attribute.
16403 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16405 * config.gcc (supported_defaults): Error when passing either
16406 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
16408 2014-06-26 Richard Biener <rguenther@suse.de>
16410 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16411 propagating volatile pointers.
16413 2014-06-26 Richard Biener <rguenther@suse.de>
16415 PR tree-optimization/61607
16416 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
16417 loop if we redirected its latch edge.
16418 (thread_block_1): Do not cancel loops prematurely.
16420 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
16422 * toplev.c (backend_init_target): Move init_emit_regs and
16424 (backend_init) ... here; skip ira_init_once and backend_init_target.
16425 (target_reinit) ... and here; clear
16426 this_target_rtl->lang_dependent_initialized.
16427 (lang_dependent_init_target): Clear
16428 this_target_rtl->lang_dependent_initialized;
16429 break out rtl initialization to ...
16430 (initialize_rtl): ... here; call also backend_init_target
16432 * toplev.h (initialize_rtl): New function.
16433 * function.c: Include toplev.h
16434 (init_function_start): Call initialize_rtl.
16435 * rtl.h (target_rtl): Add target_specific_initialized,
16436 lang_dependent_initialized.
16438 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
16439 Jakub Jelinek <jakub@redhat.com>
16441 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
16443 2014-06-25 Tom de Vries <tom@codesourcery.com>
16445 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
16447 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16449 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
16450 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
16451 Issue a strict overflow warning if appropriate.
16453 2014-06-25 Martin Liska <mliska@suse.cz>
16455 IPA REF refactoring
16456 * Makefile.in: Removed header file (ipa-ref-inline.h).
16457 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
16459 (cgraph_speculative_call_info): Likewise.
16460 (cgraph_for_node_thunks_and_aliases): Likewise.
16461 (cgraph_for_node_and_aliases): Likewise.
16462 (verify_cgraph_node): Likewise.
16463 * cgraph.h: Batch of IPA REF functions become member functions of
16464 symtab_node: add_reference, maybe_add_reference, clone_references,
16465 clone_referring, clone_reference, find_reference,
16466 remove_stmt_references, remove_all_references,
16467 remove_all_referring, dump_references, dump_referring,
16468 has_alias_p, iterate_reference, iterate_referring.
16469 * cgraphbuild.c (record_reference): New IPA REF function used.
16470 (record_type_list): Likewise.
16471 (record_eh_tables): Likewise.
16472 (mark_address): Likewise.
16473 (mark_load): Likewise.
16474 (mark_store): Likewise.
16475 (pass_build_cgraph_edges): Likewise.
16476 (rebuild_cgraph_edge): Likewise.
16477 (cgraph_rebuild_references): Likewise.
16478 (pass_remove_cgraph_callee_edges): Likewise.
16479 * cgraphclones.c (cgraph_clone_node): Likewise.
16480 (cgraph_create_virtual_clone): Likewise.
16481 (cgraph_materialize_clone): Likewise.
16482 (cgraph_materialize_all_clones): Likewise.
16483 * cgraphunit.c (cgraph_reset_node): Likewise.
16484 (cgraph_reset_node): Likewise.
16485 (analyze_function): Likewise.
16486 (assemble_thunks_and_aliases): Likewise.
16487 (expand_function): Likewise.
16488 * ipa-comdats.c (propagate_comdat_group): Likewise.
16489 (enqueue_references): Likewise.
16490 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
16491 (create_specialized_node): Likewise.
16492 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
16493 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
16494 * ipa-inline.c (reset_edge_caches): Likewise.
16495 (update_caller_keys): Likewise.
16496 (execute): Likewise.
16497 * ipa-prop.c (remove_described_reference): Likewise.
16498 (propagate_controlled_uses): Likewise.
16499 (ipa_edge_duplication_hook): Likewise.
16500 (ipa_modify_call_arguments): Likewise.
16501 * ipa-pure-const.c (propagate_pure_const): Likewise.
16502 * ipa-ref-inline.h: Header file removed, functions moved
16503 to symtab_node class.
16504 * ipa-ref.c (remove_reference): New class member function.
16505 (cannot_lead_to_return): New class member function.
16506 (referring_ref_list): Likewise.
16507 (referred_ref_list): Likewise.
16508 Rest of functions moved to symtab_node class.
16509 * ipa-ref.h: New member functions remove_reference,
16510 cannot_lead_to_return, referring_ref_list, referred_ref_list added
16512 ipa_ref_list class has new member functions: first_reference,
16513 first_referring, clear, nreferences.
16514 * ipa-reference.c (analyze_function): New IPA REF function used.
16515 (write_node_summary_p): Likewise.
16516 (ipa_reference_write_optimization_summary): Likewise.
16517 * ipa-split.c (split_function): Likewise.
16518 * ipa-utils.c (ipa_reverse_postorder): Likewise.
16519 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
16520 (function_and_variable_visibility): Likewise.
16521 * ipa.c (has_addr_references_p): Likewise.
16522 (process_references): Argument type changed.
16523 (symtab_remove_unreachable_nodes): New IPA REF function used.
16524 (process_references): Likewise.
16525 (set_writeonly_bit): Likewise.
16526 * lto-cgraph.c: Implementation of new symtab_node member functions
16527 that uses new IPA REF functions.
16528 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
16530 * lto-streamer-out.c (output_symbol_p): Likewise.
16531 * lto-streamer.h (referenced_from_this_partition_p): Argument type
16533 * symtab.c: Implementation of new IPA REF API.
16534 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
16535 (ipa_tm_create_version): Likewise.
16536 (ipa_tm_execute): Likewise.
16537 * tree-emutls.c (gen_emutls_addr): Likewise.
16538 * tree-inline.c (copy_bb): Likewise.
16539 (delete_unreachable_blocks_update_callgraph): Likewise.
16540 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
16541 (varpool_for_node_and_aliases): Likewise.
16543 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
16545 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
16547 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
16550 * fold-const.c (fold_checksum_tree): Use a hash_table of const
16551 tree_node * instead of tree_node *.
16553 (print_fold_checksum): Likewise.
16554 (fold_check_failed): Likewise.
16555 (debug_fold_checksum): Likewise.
16556 (fold_build1_stat_loc): Likewise.
16557 (fold_build2_stat_loc): Likewise.
16558 (fold_build3_stat_loc): Likewise.
16559 (fold_build_call_array_loc): Likewise.
16561 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
16563 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
16564 implementation with call to...
16565 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
16567 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
16570 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
16572 PR tree-optimization/57742
16573 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
16574 after replacing the statement.
16576 2014-06-25 Nick Clifton <nickc@redhat.com>
16578 * config/v850/v850.c (GHS_default_section_names): Change to const
16580 (GHS_current_section_names): Likewise.
16581 (v850_insert_attributes): Do not build strings, just assign the
16582 names directly. Change the type of 'chosen_section' to const
16584 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
16585 directly to the array entry.
16586 * config/v850/v850.h (GHS_default_section_names): Change to const
16588 (GHS_current_section_names): Likewise.
16590 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16592 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
16593 (LANG_HOOKS_DECLS): Add it.
16594 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
16596 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
16597 * langhooks.h (struct lang_hooks_for_decls): Add
16598 omp_clause_linear_ctor hook.
16599 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
16600 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
16601 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
16602 combined simd loop use omp_clause_linear_ctor hook.
16604 2014-06-24 Cong Hou <congh@google.com>
16606 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
16607 pattern recognition.
16608 (type_conversion_p): PROMOTION is true if it's a type promotion
16609 conversion, and false otherwise. Return true if the given expression
16610 is a type conversion one.
16611 * tree-vectorizer.h: Adjust the number of patterns.
16612 * tree.def: Add SAD_EXPR.
16613 * optabs.def: Add sad_optab.
16614 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
16615 * expr.c (expand_expr_real_2): Likewise.
16616 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16617 * gimple.c (get_gimple_rhs_num_ops): Likewise.
16618 * optabs.c (optab_for_tree_code): Likewise.
16619 * tree-cfg.c (estimate_operator_cost): Likewise.
16620 * tree-ssa-operands.c (get_expr_operands): Likewise.
16621 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
16622 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
16623 * doc/generic.texi: Add document for SAD_EXPR.
16624 * doc/md.texi: Add document for ssad and usad.
16626 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16628 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
16629 qualification in cast.
16631 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
16633 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
16634 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
16635 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
16636 (tree_function_decl): ... here.
16637 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
16638 streaming of vindex to ...
16639 (write_ts_function_decl_tree_pointers): ... here.
16640 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
16641 Do not stream DECL_VINDEX.
16642 (lto_input_ts_function_decl_tree_pointers): Stream it here.
16644 2014-06-24 Catherine Moore <clm@codesourcery.com>
16645 Sandra Loosemore <sandra@codesourcery.com>
16647 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
16648 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
16649 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
16651 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
16653 * doc/invoke.texi (Warning Options): Remove duplicated
16654 -Wmaybe-uninitialized.
16656 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
16658 PR tree-optimization/57742
16659 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
16660 (handle_builtin_malloc, handle_builtin_memset): New functions.
16661 (strlen_optimize_stmt): Call them.
16662 * passes.def: Move strlen after loop+dom but before vrp.
16664 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16667 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
16668 model family 6 CPU with has_longmode never use a CPU without
16671 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
16674 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
16677 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16679 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
16680 * dominance.c (iterate_fix_dominators): Use hash_map instead of
16682 * hash-map.h: New file.
16683 * ipa-comdats.c: Use hash_map instead of pointer_map.
16685 * lto-section-out.c: Adjust.
16686 * lto-streamer.h: Replace pointer_map with hash_map.
16687 * symtab.c (verify_symtab): Likewise.
16688 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
16689 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
16690 * tree-streamer.h: Likewise.
16691 * tree-streamer.c: Adjust.
16692 * pointer-set.h: Remove pointer_map.
16694 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16696 * hash-table.h: Add a template arg to choose between storing values
16697 and storing pointers to values, and then provide partial
16698 specializations for both.
16699 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
16700 should store, not the type values should point to.
16701 * tree-into-ssa.c (var_info_hasher): Likewise.
16702 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16703 * tree-complex.c: Adjust.
16704 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
16705 table instead of int_tree_map *.
16706 * tree-parloops.c: Adjust.
16707 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
16708 type is being stored.
16709 * tree-vectorizer.c: Adjust.
16711 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
16713 * hash-table.h: Remove a layer of indirection from hash_table so that
16714 it contains the hash table's data instead of a pointer to the data.
16715 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
16716 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
16717 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
16718 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
16719 fold-const.c, gcse.c, ggc-common.c,
16720 gimple-ssa-strength-reduction.c, gimplify.c,
16721 graphite-clast-to-gimple.c, graphite-dependences.c,
16722 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
16723 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16724 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
16725 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
16726 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
16727 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
16728 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
16729 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
16730 tree-ssa-live.c, tree-ssa-loop-im.c,
16731 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16732 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
16733 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16734 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
16735 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
16736 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
16737 vtable-verify.c, vtable-verify.h: Adjust.
16739 2014-06-24 Richard Biener <rguenther@suse.de>
16741 PR tree-optimization/61572
16742 * tree-ssa-sink.c (statement_sink_location): Do not sink
16743 loads from hard registers.
16745 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16747 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
16748 not mentioned in clauses use private clause if the iterator is
16749 declared in #pragma omp for simd, and when adding lastprivate
16750 instead, add it to the outer #pragma omp for too. Diagnose
16751 if the variable is private in outer context. For simd collapse > 1
16752 loops, replace all iterators with temporaries.
16753 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
16754 same even in collapse > 1 loops.
16756 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
16757 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
16759 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
16760 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
16762 (gimplify_adjust_omp_clauses): Likewise.
16763 * omp-low.c (lower_rec_simd_input_clauses,
16764 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
16765 safelen the same as safelen(1).
16766 * tree-nested.c (convert_nonlocal_omp_clauses,
16767 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
16768 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
16769 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
16770 Fixup handling of GIMPLE_OMP_TARGET.
16771 (convert_tramp_reference_stmt, convert_gimple_call): Handle
16774 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
16776 PR tree-optimization/61554
16777 * tree-ssa-propagate.c: Include "bitmap.h".
16778 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
16779 properly update constructor/destructor.
16780 (substitute_and_fold_dom_walker::before_dom_children):
16781 Remove call to gimple_purge_dead_eh_edges, add bb->index to
16782 need_eh_cleaup instead.
16783 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
16786 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
16788 * varpool.c (dump_varpool_node): Dump used_by_single_function.
16789 * tree-pass.h (make_pass_ipa_single_use): New pass.
16790 * cgraph.h (used_by_single_function): New flag.
16791 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
16793 * passes.def (pass_ipa_single_use): Scedule.
16794 * ipa.c (BOTTOM): New macro.
16795 (meet): New function
16796 (propagate_single_user): New function.
16797 (ipa_single_use): New function.
16798 (pass_data_ipa_single_use): New pass.
16799 (pass_ipa_single_use): New pass.
16800 (pass_ipa_single_use::gate): New gate.
16801 (make_pass_ipa_single_use): New function.
16803 2014-06-23 Kai Tietz <ktietz@redhat.com>
16806 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
16807 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
16809 2014-06-23 Richard Biener <rguenther@suse.de>
16811 * tree-ssa-loop.c (gate_loop): New function.
16812 (pass_tree_loop::gate): Call it.
16813 (pass_data_tree_no_loop, pass_tree_no_loop,
16814 make_pass_tree_no_loop): New.
16815 * tree-vectorizer.c: Include tree-scalar-evolution.c
16816 (pass_slp_vectorize::execute): Initialize loops and SCEV if
16818 (pass_slp_vectorize::clone): New method.
16819 * timevar.def (TV_TREE_NOLOOP): New.
16820 * tree-pass.h (make_pass_tree_no_loop): Declare.
16821 * passes.def (pass_tree_no_loop): New pass group with
16824 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
16827 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
16828 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
16830 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
16832 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
16833 "yes" where needed.
16835 2014-06-23 Alan Modra <amodra@gmail.com>
16838 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
16839 to zero on debug statements.
16841 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
16844 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
16845 Ignore third operand if present by marking qualifier_internal.
16847 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
16849 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
16851 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
16852 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
16853 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
16854 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
16855 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
16856 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
16857 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
16858 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
16859 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
16860 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
16861 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
16862 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
16863 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
16864 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
16865 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
16866 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
16867 logic in GCC vector extensions
16869 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
16870 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
16871 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
16872 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
16873 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
16874 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
16875 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
16876 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
16877 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
16878 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
16880 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
16882 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
16885 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
16886 (vget_low_s64): Use __GET_LOW macro.
16887 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
16888 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
16889 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
16890 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
16891 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
16893 (vcombine_s64): Use GCC vector extensions; remove cast.
16894 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
16895 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
16896 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
16897 Fix type signature; remove cast.
16899 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
16902 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
16904 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
16906 (BUILTIN_VD1): New.
16907 (BUILTIN_VD_RE): Remove.
16908 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
16909 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
16910 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
16911 variant but not df.
16912 (vreinterpretv1df*, vreinterpret*v1df): New.
16913 (vreinterpretdf*, vreinterpret*df): Remove.
16914 * config/aarch64/aarch64-simd.md (aarch64_create,
16915 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
16916 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
16918 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
16919 (vcreate_f64): Remove cast, use v1df builtin.
16920 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
16921 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
16922 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
16923 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
16924 vmov_n_f64, vst1_f64): Use gcc vector extensions.
16925 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
16926 add range check using __builtin_aarch64_im_lane_boundsi.
16927 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
16928 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
16929 type signature, use gcc vector extensions.
16930 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
16931 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
16932 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
16933 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
16934 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
16935 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
16936 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
16937 vreinterpret_u64_f64): Use v1df builtin not df.
16939 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
16941 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
16944 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
16946 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
16949 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16951 * loop-invariant.c (pre_check_invariant_p): New function.
16952 (find_invariant_insn): Call pre_check_invariant_p.
16954 2014-06-22 Richard Henderson <rth@redhat.com>
16957 * compare-elim.c (struct comparison): Add eh_note.
16958 (find_comparison_dom_walker::before_dom_children): Don't eliminate
16959 a redundant comparison in a different EH region. Purge EH edges if
16962 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16964 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
16965 (var_shift): Use it.
16966 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
16967 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16968 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16969 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16970 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16971 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
16972 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
16973 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
16974 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
16975 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
16976 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
16977 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
16978 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
16979 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
16980 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
16981 *rotldi3_internal15be): Use the new attribute. Merge register and
16982 integer alternatives.
16984 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16986 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
16987 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
16988 split, *ashrdi3_internal3 and split): Delete, merge into...
16989 (ashr<mode>3): New expander.
16990 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
16991 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
16993 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
16995 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
16996 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
16997 *rotldi3_internal3 and split): Delete, merge into...
16998 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
16999 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
17000 Use "rotlw" extended mnemonic.
17002 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17004 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17005 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17006 and split, *ashldi3_internal3 and split): Delete, merge into...
17007 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17008 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
17010 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17012 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17013 (lshrsi3, two anonymous define_insns and define_splits,
17014 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17015 *lshrdi3_internal3 and split): Delete, merge into...
17016 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17017 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
17019 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17021 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
17022 Remove "O" alternative.
17024 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
17026 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
17027 (mips_move_from_gpr_cost): Likewise.
17028 (mips_register_move_cost): Update accordingly.
17029 (mips_secondary_reload_class): Remove name of in_p.
17031 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
17034 * config/i386/i386.md (x86_64_shrd, x86_shrd,
17035 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
17037 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17039 * config/nios2/nios2.c: Include "builtins.h".
17041 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17043 * cgraph.h (tls_model_names): New variable.
17044 * print-tree.c (print_node): Simplify.
17045 * varpool.c (tls_model_names): New variable.
17046 (dump_varpool_node): Output tls model.
17048 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17050 * ipa-visibility.c (function_and_variable_visibility): Disable
17051 temporarily local aliases for some targets.
17053 2014-06-20 Marek Polacek <polacek@redhat.com>
17055 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
17056 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
17057 into SANITIZE_UNDEFINED.
17058 * doc/invoke.texi: Describe -fsanitize=bounds.
17059 * gimplify.c (gimplify_call_expr): Add gimplification of internal
17060 functions created in the FEs.
17061 * internal-fn.c: Move "internal-fn.h" after "tree.h".
17062 (expand_UBSAN_BOUNDS): New function.
17063 * internal-fn.def (UBSAN_BOUNDS): New internal function.
17064 * internal-fn.h: Don't define internal functions here.
17065 * opts.c (common_handle_option): Add -fsanitize=bounds.
17066 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
17067 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
17068 * tree-core.h: Define internal functions here.
17069 (struct tree_base): Add ifn field.
17070 * tree-pretty-print.c: Include "internal-fn.h".
17071 (dump_generic_node): Handle functions without CALL_EXPR_FN.
17072 * tree.c (get_callee_fndecl): Likewise.
17073 (build_call_expr_internal_loc): New function.
17074 * tree.def (CALL_EXPR): Update description.
17075 * tree.h (CALL_EXPR_IFN): Define.
17076 (build_call_expr_internal_loc): Declare.
17077 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
17079 (ubsan_type_descriptor): Change bool parameter to enum
17080 ubsan_print_style. Adjust the code. Add handling of
17082 (ubsan_expand_bounds_ifn): New function.
17083 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
17084 (ubsan_build_overflow_builtin): Likewise.
17085 (instrument_bool_enum_load): Likewise.
17086 (ubsan_instrument_float_cast): Likewise.
17087 * ubsan.h (enum ubsan_print_style): New enum.
17088 (ubsan_expand_bounds_ifn): Declare.
17089 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
17091 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
17093 * config/rs6000/rs6000.md: Append `DONE' to preparation
17094 statements of `bswap' pattern splitters.
17096 2014-06-20 Tom de Vries <tom@codesourcery.com>
17098 * target.def (call_fusage_contains_non_callee_clobbers): Update
17100 * doc/tm.texi: Regenerate.
17102 2014-06-20 Yury Gribov <y.gribov@samsung.com>
17103 Max Ostapenko <m.ostapenko@partner.samsung.com>
17106 * asan.c (instrument_strlen_call): Fixed instrumentation of
17109 2014-06-20 Martin Jambor <mjambor@suse.cz>
17112 * ipa-prop.c (impossible_devirt_target): New function.
17113 (try_make_edge_direct_virtual_call): Use it, also instead of
17116 2014-06-20 Yury Gribov <y.gribov@samsung.com>
17117 Max Ostapenko <m.ostapenko@partner.samsung.com>
17120 * asan.c (build_check_stmt): Add condition.
17122 2014-06-20 Martin Jambor <mjambor@suse.cz>
17125 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
17128 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17130 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
17132 (VCONQ): Make comment more helpful.
17134 * config/aarch64/aarch64-simd.md
17135 (aarch64_sqdmulh_lane<mode>):
17136 Use VCOND for operands 2. Update lane checking and flipping logic.
17137 (aarch64_sqrdmulh_lane<mode>): Likewise.
17138 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
17139 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
17140 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
17141 attribute of operand 3 to VCOND.
17142 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
17143 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
17144 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
17145 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
17146 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
17147 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
17149 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
17150 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
17151 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
17152 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
17153 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
17154 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
17155 operand to VCOND. Update lane flipping and bounds checking logic.
17156 (aarch64_sqdmlal2_lane<mode>): Likewise.
17157 (aarch64_sqdmlsl_lane<mode>): Likewise.
17158 (aarch64_sqdmull_lane<mode>): Likewise.
17159 (aarch64_sqdmull2_lane<mode>): Likewise.
17160 (aarch64_sqdmlal_laneq<mode>):
17161 Replace VCON usage with VCONQ.
17162 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
17163 (aarch64_sqdmlal2_laneq<mode>): Emit
17164 aarch64_sqdmlal2_laneq<mode>_internal insn.
17165 Replace VCON with VCONQ.
17166 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
17167 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17168 (aarch64_sqdmull_laneq<mode>): Emit
17169 aarch64_sqdmull_laneq<mode>_internal insn.
17170 Replace VCON with VCONQ.
17171 (aarch64_sqdmull2_laneq<mode>): Emit
17172 aarch64_sqdmull2_laneq<mode>_internal insn.
17173 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
17174 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
17175 of 3rd argument to int16x4_t.
17176 (vqdmlalh_lane_s16): Likewise.
17177 (vqdmlslh_lane_s16): Likewise.
17178 (vqdmull_high_lane_s16): Likewise.
17179 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
17180 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
17181 (vqdmlsl_lane_s16): Likewise.
17182 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
17183 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
17184 (vqdmlals_lane_s32): Likewise.
17185 (vqdmlsls_lane_s32): Likewise.
17186 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
17187 (vqdmulls_lane_s32): Likewise.
17188 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
17189 (vqdmlsl_lane_s32): Likewise.
17190 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
17191 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
17192 (vqrdmulhh_lane_s16): Likewise.
17193 (vqdmlsl_high_lane_s16): Likewise.
17194 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
17195 (vqdmlsl_high_lane_s32): Likewise.
17196 (vqrdmulhs_lane_s32): Likewise.
17198 2014-06-20 Tom de Vries <tom@codesourcery.com>
17200 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
17201 get_call_reg_set_usage.
17203 2014-06-20 Tom de Vries <tom@codesourcery.com>
17205 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
17206 it contains all call_used_regs.
17208 2014-06-20 Tom de Vries <tom@codesourcery.com>
17210 * final.c (collect_fn_hard_reg_usage): Add and use variable
17211 function_used_regs.
17213 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17215 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
17216 (set_init_priority, get_init_priority, set_fini_priority,
17217 get_fini_priority): New methods.
17218 * tree.c (init_priority_for_decl): Remove.
17219 (init_ttree): Do not initialize init priority.
17220 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
17221 (decl_priority_info): Remove.
17222 (decl_init_priority_insert): Rewrite.
17223 (decl_fini_priority_insert): Rewrite.
17224 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
17225 tree_priority_map_marked_p): Remove.
17226 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
17227 * lto-streamer-out.c (hash_tree): Do not hash priorities.
17228 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
17229 not output priorities.
17230 (pack_ts_function_decl_value_fields): Likewise.
17231 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17232 not input priorities.
17233 (unpack_ts_function_decl_value_fields): Likewise.
17234 * symtab.c (symbol_priority_map): Declare.
17235 (init_priority_hash): Declare.
17236 (symtab_unregister_node): Unregister from priority hash, too.
17237 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
17239 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
17240 (symbol_priority_info): New function.
17241 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
17243 * tree-core.h (tree_priority_map): Remove.
17245 2014-06-20 Jakub Jelinek <jakub@redhat.com>
17247 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
17248 0xff to uint64_t before shifting it up.
17250 2014-06-20 Julian Brown <julian@codesourcery.com>
17251 Chung-Lin Tang <cltang@codesourcery.com>
17253 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
17254 TARGET_THUMB1_ONLY. Add comments.
17256 2014-06-19 Tom de Vries <tom@codesourcery.com>
17258 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
17259 return type to void.
17260 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
17262 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17264 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
17265 as "move", from depends_on.
17267 2014-06-19 Terry Guo <terry.guo@arm.com>
17269 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
17272 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17274 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
17276 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
17278 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
17281 * config/sh/sh.c (prepare_move_operands): Don't process TLS
17282 addresses here if reload in progress or completed.
17284 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17286 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
17287 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
17288 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
17289 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
17290 (mips_register_priority): New function that implements the target
17291 hook TARGET_REGISTER_PRIORITY.
17292 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
17293 (mips_lra_p): Likewise for TARGET_LRA_P.
17294 (TARGET_REGISTER_PRIORITY): Define macro.
17295 (TARGET_SPILL_CLASS): Likewise.
17296 (TARGET_LRA_P): Likewise.
17297 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
17299 (REG_CLASS_NAMES): Likewise.
17300 (REG_CLASS_CONTENTS): Likewise.
17301 (BASE_REG_CLASS): Use M16_SP_REGS.
17302 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
17303 New set attribute to enable alternatives depending on the register
17305 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
17306 (*lea64): Disable pattern for MIPS16.
17307 * config/mips/mips.opt (mlra): New option.
17309 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17311 * lra-constraints.c (base_to_reg): New function.
17312 (process_address): Use new function.
17314 2014-06-18 Tom de Vries <tom@codesourcery.com>
17316 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
17317 * config/aarch64/aarch64.c
17318 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
17319 (aarch64_emit_call_insn): New function.
17320 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
17322 * config/aarch64/aarch64.md (define_expand "call_internal")
17323 (define_expand "call_value_internal", define_expand "sibcall_internal")
17324 (define_expand "sibcall_value_internal"): New.
17325 (define_expand "call", define_expand "call_value")
17326 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
17327 expand variant and aarch64_emit_call_insn.
17329 2014-06-18 Radovan Obradovic <robradovic@mips.com>
17330 Tom de Vries <tom@codesourcery.com>
17332 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
17333 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17335 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
17336 clobbers to CALL_INSN_FUNCTION_USAGE.
17337 (define_expand "sibcall_internal")
17338 (define_expand "sibcall_value_internal"): New.
17339 (define_expand "call", define_expand "call_value"): Add argument to
17340 arm_emit_call_insn.
17341 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
17342 (define_expand "sibcall_value"): Use sibcall_value_internal and
17343 arm_emit_call_insn.
17345 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17347 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
17349 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17351 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
17354 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17356 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
17357 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
17358 annotations. Fix DWARF information.
17360 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17362 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
17363 __udivmoddi4, and fixups for negative operands.
17365 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17367 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
17369 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17371 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
17374 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17376 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
17379 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17381 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
17382 describing register usage on function entry and exit.
17384 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17386 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
17387 (__aeabi_ldivmod): Fix whitespace.
17389 2014-06-18 Andreas Schwab <schwab@suse.de>
17391 * doc/md.texi (Standard Names): Use @itemx for grouped items.
17392 Remove blank line after @item.
17394 2014-06-18 Richard Henderson <rth@redhat.com>
17397 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
17399 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17401 * config/arm/arm.c (neon_vector_mem_operand): Allow register
17402 POST_MODIFY for neon loads and stores.
17403 (arm_print_operand): Output post-index register for neon loads and
17406 2014-06-18 Richard Biener <rguenther@suse.de>
17408 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
17410 2014-06-18 Richard Biener <rguenther@suse.de>
17412 * tree-pass.h (make_pass_dce_loop): Remove.
17413 * passes.def: Replace pass_dce_loop with pass_dce.
17414 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
17415 changed free niter estimates and reset the scev cache.
17416 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
17417 make_pass_dce_loop): Remove.
17418 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
17419 (fini_copy_prop): Return whether something changed. Always
17420 let substitute_and_fold perform DCE and free niter estimates
17421 and reset the scev cache if so.
17422 (execute_copy_prop): If sth changed schedule cleanup-cfg.
17423 (pass_data_copy_prop): Do not unconditionally schedule
17424 cleanup-cfg or update-ssa.
17426 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17428 PR tree-optimization/61518
17429 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17430 reduction var is used in reduction stmt or phi-function only.
17432 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17434 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
17436 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17438 PR tree-optimization/61517
17439 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
17440 whose rhs's first tree is the source expression instead of the
17442 (find_bswap_or_nop): Likewise.
17443 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
17444 gimple stmt whose rhs's first tree is the source. In the memory source
17445 case, move the stmt to be replaced close to one of the original load to
17446 avoid the problem of a store between the load and the stmt's original
17448 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
17451 2014-06-18 Andreas Schwab <schwab@suse.de>
17453 PR rtl-optimization/54555
17454 * postreload.c (move2add_use_add2_insn): Substitute
17455 STRICT_LOW_PART only if it is cheaper.
17457 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
17459 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
17460 Do not use unspec as call operand. Use memory_operand instead of
17461 memory_nox32_operand and add "m" operand constraint. Disable
17462 pattern for TARGET_X32.
17463 (*sibcall_pop_memory): Ditto.
17464 (*sibcall_value_memory): Ditto.
17465 (*sibcall_value_pop_memory): Ditto.
17466 (sibcall peepholes): Merge SImode and DImode patterns using
17467 W mode iterator. Use memory_operand instead of memory_nox32_operand.
17468 Disable pattern for TARGET_X32. Check if eliminated register is
17469 really dead after call insn. Generate call RTX without unspec operand.
17470 (sibcall_value peepholes): Ditto.
17471 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
17472 instead of memory_nox32_operand. Check if eliminated register is
17473 really dead after call insn. Generate call RTX without unspec operand.
17474 (sibcall_value_pop peepholes): Ditto.
17475 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
17477 2014-06-18 Terry Guo <terry.guo@arm.com>
17480 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
17483 2014-06-18 Olivier Hainque <hainque@adacore.com>
17485 * tree-core.h (tree_block): Add an "end_locus" field, allowing
17486 memorization of the end of block source location.
17487 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
17488 * gimplify.c (gimplify_bind_expr): Propagate the block start and
17489 end source location info we have on the block entry/exit code we
17492 2014-06-18 Richard Biener <rguenther@suse.de>
17494 * common.opt (fssa-phiopt): New option.
17495 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
17497 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
17498 * doc/invoke.texi (-fssa-phiopt): Document.
17500 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17502 * genattrtab.c (n_bypassed): New variable.
17503 (process_bypasses): Initialise n_bypassed.
17504 Count number of bypassed reservations.
17505 (make_automaton_attrs): Allocate space for bypassed reservations
17506 rather than number of bypasses.
17508 2014-06-18 Richard Biener <rguenther@suse.de>
17510 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
17511 we propagated anything.
17512 (substitute_and_fold_dom_walker::before_dom_children): Something
17513 changed if we propagated into PHI arguments.
17514 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
17517 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
17519 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
17521 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
17522 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
17523 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
17524 Introduces alternative way of loads group permutaions.
17525 (vect_transform_grouped_load): Try alternative way of permutations.
17527 2014-06-18 Jakub Jelinek <jakub@redhat.com>
17529 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
17530 changed in ORT_TARGET region, don't jump to do_outer.
17531 (struct gimplify_adjust_omp_clauses_data): New type.
17532 (gimplify_adjust_omp_clauses_1): Adjust for data being
17533 a struct gimplify_adjust_omp_clauses_data pointer instead
17534 of tree *. Pass pre_p as a new argument to
17535 lang_hooks.decls.omp_finish_clause hook.
17536 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
17537 splay_tree_foreach to pass both list_p and pre_p.
17538 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
17539 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
17540 gimplify_adjust_omp_clauses callers.
17541 * langhooks.c (lhd_omp_finish_clause): New function.
17542 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
17543 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
17544 * langhooks.h (struct lang_hooks_for_decls): Add a new
17545 gimple_seq * argument to omp_finish_clause hook.
17546 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
17547 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
17548 (scan_omp_parallel, lower_omp_for): When adding
17549 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
17550 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
17551 * tree-nested.c (convert_nonlocal_omp_clauses,
17552 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
17553 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
17555 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
17557 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
17558 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
17560 2014-06-17 Xinliang David Li <davidxl@google.com>
17562 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
17563 * passes.c (pass_init_dump_file): Do not set initialize
17564 flag to false unconditionally.
17566 2014-06-17 Richard Biener <rguenther@suse.de>
17568 * genopinit.c (main): Use vec<>::qsort method.
17569 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17571 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
17573 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
17575 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
17576 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
17577 (mips_move_to_gpr_cost): Remove ST_REGS case.
17578 (mips_move_from_gpr_cost): Likewise.
17579 (mips_register_move_cost): Likewise.
17580 (mips_secondary_reload_class): Likewise.
17582 2014-06-17 Richard Biener <rguenther@suse.de>
17584 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
17585 (pass_all_optimizations): Move 3rd copy-prop pass from after
17586 fre to before ifcombine/phiopt.
17588 2014-06-17 Richard Biener <rguenther@suse.de>
17590 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
17591 and allow all blocks to be forwarders.
17593 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
17596 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
17597 variable 'size'; calculate 'size' right in the front; use
17598 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
17599 pcum->aapcs_stack_words.
17601 2014-06-17 Nick Clifton <nickc@redhat.com>
17603 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
17604 (umulhi3, mulsidi3, umulsidi3): Likewise.
17606 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
17608 PR middle-end/61508
17609 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
17610 check for section name.
17612 2014-06-17 Richard Biener <rguenther@suse.de>
17614 * tree-ssa-propagate.c: Include domwalk.h.
17615 (substitute_and_fold): Outline main worker into a domwalker ...
17616 (substitute_and_fold_dom_walker::before_dom_children): ... here.
17617 Schedule stmts we can fully propagate for removal. Remove
17619 (substitute_and_fold): Apply a dominator walk to perform
17620 substitution. Process stmts scheduled for removal here.
17622 2014-06-17 Richard Biener <rguenther@suse.de>
17624 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
17625 of PHI node moving.
17627 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
17629 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
17630 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
17631 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17632 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
17633 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
17635 (get_fpscr) : Likewise.
17637 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
17639 PR rtl-optimization/61325
17640 * lra-constraints.c (valid_address_p): Add forward declaration.
17641 (simplify_operand_subreg): Check address validity before and after
17642 alter_reg of memory subreg.
17644 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
17646 * config/i386/i386.c (decide_alg): Correctly handle
17647 maximum size of stringop algorithm.
17649 2014-06-16 Yury Gribov <y.gribov@samsung.com>
17651 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
17653 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
17655 PR rtl-optimization/61522
17656 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
17658 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
17661 * symtab.c (symtab_node::reset_section): New method.
17662 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
17664 * cgraph.h (reset_section): Declare.
17665 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
17666 do not consider comdat locals.
17667 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
17669 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
17670 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
17671 reset sections of symbols dragged out of the comdats.
17672 (function_and_variable_visibility): Reset sections of
17675 2014-06-16 Richard Biener <rguenther@suse.de>
17677 PR tree-optimization/61482
17678 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
17679 [-INF(OVF), +INF(OVF)] range.
17681 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17683 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
17684 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
17685 handling 32-bit multiplication.
17687 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
17689 PR middle-end/61430
17690 * lra-lives.c (process_bb_lives): Skip creating copy during
17691 insn scan when src/dest has constrained to same regno.
17693 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
17695 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
17696 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
17698 2014-06-16 Yury Gribov <y.gribov@samsung.com>
17700 * asan.c (check_func): New function.
17701 (maybe_create_ssa_name): Likewise.
17702 (build_check_stmt_with_calls): Likewise.
17703 (use_calls_p): Likewise.
17704 (report_error_func): Change interface.
17705 (build_check_stmt): Allow non-integer lengths; add support
17707 (asan_instrument): Likewise.
17708 (instrument_mem_region_access): Moved code to build_check_stmt.
17709 (instrument_derefs): Likewise.
17710 (instrument_strlen_call): Likewise.
17711 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
17712 * doc/invoke.texi: Describe new parameter.
17713 * params.def: Define new parameter.
17714 * params.h: Likewise.
17715 * sanitizer.def: Describe new builtins.
17717 2014-06-16 Richard Biener <rguenther@suse.de>
17719 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17720 Make all defs available at the end.
17721 (eliminate): If we remove a PHI node schedule cfg-cleanup.
17723 2014-06-18 Jakub Jelinek <jakub@redhat.com>
17726 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
17728 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
17731 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
17732 initialization. Replace remaining use of uid.
17734 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
17736 * c-family/c-common.c (handle_tls_model_attribute): Use
17737 set_decl_tls_model.
17738 * c-family/c-common.c (handle_tls_model_attribute): Use
17739 set_decl_tls_model.
17740 * cgraph.h (struct varpool_node): Add tls_model.
17741 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
17742 * tree.h (DECL_TLS_MODEL): Update.
17743 (DECL_THREAD_LOCAL_P): Check that variable is static.
17744 (decl_tls_model): Declare.
17745 (set_decl_tls_model): Declare.
17746 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
17747 set symbol prorperties.
17748 (get_emutls_init_templ_addr): Cleanup.
17749 (new_emutls_decl): Update.
17750 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
17751 (lto_input_varpool_node): Likewise.
17752 * lto-streamer-out.c (hash_tree): Likewise.
17753 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17754 not stream DECL_TLS_MODEL.
17755 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
17756 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
17758 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17760 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
17762 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17764 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
17765 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
17767 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
17768 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
17769 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
17770 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
17771 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
17772 (df_get_artificial_defs, df_get_artificial_uses)
17773 (df_single_def, df_single_use): Update accordingly.
17774 (df_refs_chain_dump): Take the first element in a linked list as
17775 parameter, rather than a pointer to an array of pointers.
17776 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
17777 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
17778 (df_chain_create_bb_process_use): Likewise.
17779 (df_md_bb_local_compute_process_def): Likewise.
17780 * fwprop.c (process_defs, process_uses): Likewise.
17781 (register_active_defs, update_uses): Likewise.
17782 (forward_propagate_asm): Update for new df_ref linking.
17783 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
17784 (df_null_ref_rec, df_null_mw_rec): Likewise.
17785 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
17787 (df_scan_free_bb_info): Remove check for null artificial_defs.
17788 (df_install_ref_incremental): Adjust for new df_ref linking.
17789 Use a single-element insertion rather than a full sort.
17790 (df_ref_chain_delete_du_chain): Take the first element
17791 in a linked list as parameter, rather than a pointer to an array of
17793 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
17794 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
17795 (df_insn_info_delete): Remove check for null defs and call to
17796 df_scan_free_mws_vec.
17797 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
17798 null rather than df_null_*_rec.
17799 (df_insn_rescan_debug_internal): Likewise, and update null
17800 checks in the same way. Remove check for null defs.
17801 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
17802 Move a single element rather doing a full sort.
17803 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
17805 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
17806 Initialize df_ref and df_mw_hardreg lists to null rather than
17808 (df_ref_compare): Take df_refs as parameter, transferring the
17809 old interface to...
17810 (df_ref_ptr_compare): ...this new function.
17811 (df_sort_and_compress_refs): Update accordingly.
17812 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
17813 old interface to...
17814 (df_mw_ptr_compare): ...this new function.
17815 (df_sort_and_compress_mws): Update accordingly.
17816 (df_install_refs, df_install_mws): Return a linked list rather than
17817 an array of pointers.
17818 (df_refs_add_to_chains): Assert that old lists are empty rather
17820 (df_insn_refs_verify): Don't handle null defs speciailly.
17821 * web.c (union_match_dups): Update for new df_ref linking.
17823 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17825 * df.h (df_ref_create, df_ref_remove): Delete.
17826 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
17827 (df_ref_remove): Likewise.
17829 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17831 * df.h (df_single_def, df_single_use): New functions.
17832 * ira.c (find_moveable_pseudos): Use them.
17834 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17836 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
17837 * df-problems.c (df_note_bb_compute): Use it.
17838 * regstat.c (regstat_bb_compute_ri): Likewise.
17840 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17842 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
17843 * cse.c (cse_extended_basic_block): Use them.
17844 * dce.c (mark_artificial_use): Likewise.
17845 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
17846 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
17847 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
17848 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
17849 (df_simulate_initialize_backwards): Likewise.
17850 (df_simulate_finalize_backwards): Likewise.
17851 (df_simulate_initialize_forwards): Likewise.
17852 (df_md_simulate_artificial_defs_at_top): Likewise.
17853 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
17854 * regrename.c (init_rename_info): Likewise.
17855 * regstat.c (regstat_bb_compute_ri): Likewise.
17856 (regstat_bb_compute_calls_crossed): Likewise.
17858 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
17860 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
17861 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
17862 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
17863 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
17864 * combine.c (create_log_links): Likewise.
17865 * compare-elim.c (find_flags_uses_in_insn): Likewise.
17866 (try_eliminate_compare): Likewise.
17867 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
17868 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
17869 (remove_reg_equal_equiv_notes_for_defs): Likewise.
17870 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
17871 (word_dce_process_block, dce_process_block): Likewise.
17872 * ddg.c (def_has_ccmode_p): Likewise.
17873 * df-core.c (df_bb_regno_first_def_find): Likewise.
17874 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
17875 * df-problems.c (df_rd_simulate_one_insn): Likewise.
17876 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
17877 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
17878 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
17879 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
17880 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
17881 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
17882 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
17883 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
17884 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
17885 * fwprop.c (local_ref_killed_between_p): Likewise.
17886 (all_uses_available_at, free_load_extend): Likewise.
17887 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
17888 * hw-doloop.c (scan_loop): Likewise.
17889 * ifcvt.c (dead_or_predicable): Likewise.
17890 * init-regs.c (initialize_uninitialized_regs): Likewise.
17891 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
17892 (process_bb_node_lives): Likewise.
17893 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
17894 (find_moveable_pseudos): Likewise.
17895 * loop-invariant.c (check_dependencies, record_uses): Likewise.
17896 * recog.c (peep2_find_free_register): Likewise.
17897 * ree.c (get_defs): Likewise.
17898 * regstat.c (regstat_bb_compute_ri): Likewise.
17899 (regstat_bb_compute_calls_crossed): Likewise.
17900 * sched-deps.c (find_inc, find_mem): Likewise.
17901 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
17902 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
17903 * shrink-wrap.c (requires_stack_frame_p): Likewise.
17904 (prepare_shrink_wrap): Likewise.
17905 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
17906 * web.c (union_defs, pass_web::execute): Likewise.
17907 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
17908 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
17910 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
17912 * lra-assign.c (assign_by_spills): Add code to assign vector regs
17913 to inheritance pseudos.
17914 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
17916 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
17919 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
17920 (BU_MISC_2): Rename to ...
17921 (BU_LDBL128_2): ... this.
17922 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
17923 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
17924 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17925 RS6000_BTM_LDBL128.
17926 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
17927 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
17928 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
17929 (unpacktf_1): Likewise.
17930 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
17931 (__builtin_longdouble_dw1): Likewise.
17932 * doc/sourcebuild.texi (longdouble128): Document.
17934 2014-06-13 Jeff Law <law@redhat.com>
17936 PR rtl-optimization/61094
17937 PR rtl-optimization/61446
17938 * ree.c (combine_reaching_defs): Get the mode for the copy from
17939 the extension insn rather than the defining insn.
17941 2014-06-13 Dehao Chen <dehao@google.com>
17943 * dwarf2out.c (add_linkage_name): Emit more linkage name.
17945 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
17947 * doc/install.texi (--enable-linker-plugin-configure-flags)
17948 (--enable-linker-plugin-flags): Document new flags.
17950 2014-06-13 Martin Jambor <mjambor@suse.cz>
17953 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
17954 cache_token if returning early.
17956 2014-06-13 Nick Clifton <nickc@redhat.com>
17958 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
17959 requested alignment is active.
17960 (LABEL_ALIGN): Likewise.
17961 (LOOP_ALIGN): Likewise.
17963 2014-06-13 Richard Biener <rguenther@suse.de>
17965 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17966 Rewrite to propagate the VN result into all uses where
17967 possible and to remove stmts becoming dead because of that.
17968 (eliminate): Generalize stmt removal handling, remove in
17969 reverse dominator order to support proper debug stmt
17970 generation. Update stmts before removing stmts.
17971 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
17973 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17975 PR tree-optimization/61375
17976 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
17977 symbolic number cannot be represented in an uint64_t.
17978 (find_bswap_or_nop_1): Likewise.
17980 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
17982 * symtab.c (symtab_node::reset_section): New method.
17983 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
17985 * cgraph.h (reset_section): Declare.
17986 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
17987 do not consider comdat locals.
17988 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
17990 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
17991 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
17992 reset sections of symbols dragged out of the comdats.
17993 (function_and_variable_visibility): Reset sections of
17996 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
17998 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
17999 to use symtab and decl_binds_to_current_def_p
18000 * tree-vectorizer.c (increase_alignment): Increase alignment
18001 of alias target, too.
18003 2014-06-12 Jakub Jelinek <jakub@redhat.com>
18005 PR middle-end/61486
18006 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18007 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18008 if outer combined construct is distribute.
18009 (gimplify_omp_for): For OMP_DISTRIBUTE set
18010 gimplify_omp_ctxp->distribute.
18011 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18012 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18013 mapping into decl map.
18015 2014-06-12 Jason Merrill <jason@redhat.com>
18017 * common.opt (fabi-version): Change default to 0.
18019 2014-06-12 Jason Merrill <jason@redhat.com>
18021 * toplev.c (process_options): Reject -fabi-version=1.
18023 2014-06-12 Jeff Law <law@redhat.com>
18025 PR tree-optimization/61009
18026 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
18027 value when we stop processing a block due to problematic PHIs.
18029 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
18031 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
18032 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
18033 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
18034 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
18035 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
18036 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
18037 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
18038 are not in the spec.
18040 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
18043 * config/aarch64/aarch64-modes.def: Add V1DFmode.
18044 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
18047 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
18049 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
18051 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
18054 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
18055 loading from address spaces.
18057 2014-06-12 Martin Liska <mliska@suse.cz>
18060 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
18061 statement is reachable.
18063 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
18065 * symtab.c (section_hash): New hash.
18066 (symtab_unregister_node): Clear section before freeing.
18067 (hash_section_hash_entry): New haser.
18068 (eq_sections): New function.
18069 (symtab_node::set_section_for_node): New method.
18070 (set_section_1): Update.
18071 (symtab_node::set_section): Take string instead of tree as parameter.
18072 (symtab_resolve_alias): Update.
18073 * cgraph.h (section_hash_entry_d): New structure.
18074 (section_hash_entry): New typedef.
18075 (cgraph_node): Change comdat_group_ to x_comdat_group,
18076 change section_ to x_section and turn into section_hash_entry;
18077 update accestors; put set_section_for_node offline.
18078 * tree.c (decl_section_name): Turn into string.
18079 (set_decl_section_name): Change parameter to be string.
18080 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
18081 * sdbout.c (sdbout_one_type): Update.
18082 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
18083 * varasm.c (IN_NAMED_SECTION, get_named_section,
18084 resolve_unique_section, hot_function_section, get_named_text_section,
18085 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
18086 make_decl_rtl, default_unique_section): Update.
18087 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
18088 (c6x_elf_unique_section): Update.
18089 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
18090 * config/pa/pa.c (pa_function_section): Update.
18091 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
18092 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
18093 * config/arc/arc.c (arc_in_small_data_p): Update.
18094 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
18095 * config/mcore/mcore.c (mcore_unique_section): Update.
18096 * config/mips/mips.c (mips16_build_function_stub): Update.
18097 (mips16_build_call_stub): Update.
18098 (mips_function_rodata_section): Update.
18099 (mips_in_small_data_p): Update.
18100 * config/score/score.c (score_in_small_data_p): Update.
18101 * config/rx/rx.c (rx_in_small_data): Update.
18102 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
18103 (rs6000_xcoff_asm_named_section): Update.
18104 (rs6000_xcoff_unique_section): Update.
18105 * config/frv/frv.c (frv_string_begins_with): Update.
18106 (frv_in_small_data_p): Update.
18107 * config/v850/v850.c (v850_encode_data_area): Update.
18108 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
18109 (bfin_handle_l1_data_attribute): Update.
18110 (bfin_handle_l2_attribute): Update.
18111 * config/mep/mep.c (mep_unique_section): Update.
18112 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
18114 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
18115 (h8300_handle_tiny_data_attribute): Update.
18116 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
18117 (m32r_in_small_data_p): Update.
18118 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
18119 * config/i386/i386.c (ix86_in_large_data_p): Update.
18120 * config/i386/winnt.c (i386_pe_unique_section): Update.
18121 * config/darwin.c (darwin_function_section): Update.
18122 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
18123 * tree-emutls.c (get_emutls_init_templ_addr): Update.
18124 (new_emutls_decl): Update.
18125 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
18126 input_varpool_node): Update.
18127 (ead_string_cst): Turn to ...
18128 (read_string): ... this one.
18129 * dwarf2out.c (secname_for_decl): Update.
18130 * asan.c (asan_protect_global): Update.
18132 2014-06-11 DJ Delorie <dj@redhat.com>
18134 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
18136 * config/rx/rx.c (rx_option_override): Likewise.
18137 (rx_align_for_label): Likewise.
18139 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
18141 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
18143 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
18146 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18148 * common.md: New file.
18149 * doc/md.texi: Update description of generic, machine-independent
18151 * config/s390/constraints.md (e): Delete.
18152 * Makefile.in (md_file): Include common.md.
18153 * config/m32c/t-m32c (md_file): Likewise.
18154 * genpreds.c (general_mem): New array.
18155 (generic_constraint_letters): Remove constraints now defined by
18157 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18158 Allow the first character to be '<' or '>' as well.
18159 * genoutput.c (general_mem): New array.
18160 (indep_constraints): Remove constraints now defined by common.md.
18161 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18162 Remove special handling of 'm'.
18163 * ira-costs.c (record_reg_classes): Remove special handling of
18164 constraints now defined by common.md.
18165 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18166 * ira-lives.c (single_reg_class): Likewise.
18167 (ira_implicitly_set_insn_hard_regs): Likewise.
18168 * lra-constraints.c (reg_class_from_constraints): Likewise.
18169 (process_alt_operands, process_address, curr_insn_transform): Likewise.
18170 * postreload.c (reload_cse_simplify_operands): Likewise.
18171 * reload.c (push_secondary_reload, scratch_reload_class)
18172 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18173 * reload1.c (maybe_fix_stack_asms): Likewise.
18174 * targhooks.c (default_secondary_reload): Likewise.
18175 * stmt.c (parse_output_constraint): Likewise.
18176 * recog.c (preprocess_constraints): Likewise.
18177 (constrain_operands, peep2_find_free_register): Likewise.
18178 (asm_operand_ok): Likewise, but add a comment saying why 'o'
18179 must be handled specially.
18181 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18183 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
18184 * genpreds.c (have_const_dbl_constraints): Delete.
18185 (add_constraint): Don't set it.
18186 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
18187 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
18188 constraints using the lookup_constraint logic.
18189 * ira-lives.c (single_reg_class): Likewise.
18190 * ira.c (ira_setup_alts): Likewise.
18191 * lra-constraints.c (process_alt_operands): Likewise.
18192 * recog.c (asm_operand_ok, constrain_operands): Likewise.
18193 * reload.c (find_reloads): Likewise.
18195 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18197 * genpreds.c (const_int_start, const_int_end): New variables.
18198 (choose_enum_order): Output CONST_INT constraints before memory
18200 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
18202 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
18203 * ira.c (ira_setup_alts): Likewise.
18204 * lra-constraints.c (process_alt_operands): Likewise.
18205 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18206 * reload.c (find_reloads): Likewise.
18208 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18210 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
18211 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
18212 * recog.c (preprocess_constraints): Update accordingly.
18214 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18216 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
18217 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
18218 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
18219 * genpreds.c (print_type_tree): New function.
18220 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
18221 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
18222 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
18223 Write out enum constraint_type and get_constraint_type.
18224 * lra-constraints.c (satisfies_memory_constraint_p): Take a
18225 constraint_num rather than a constraint string.
18226 (satisfies_address_constraint_p): Likewise.
18227 (reg_class_from_constraints): Avoid old constraint macros.
18228 (process_alt_operands, process_address_1): Likewise.
18229 (curr_insn_transform): Likewise.
18230 * ira-costs.c (record_reg_classes): Likewise.
18231 (record_operand_costs): Likewise.
18232 * ira-lives.c (single_reg_class): Likewise.
18233 (ira_implicitly_set_insn_hard_regs): Likewise.
18234 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18235 * postreload.c (reload_cse_simplify_operands): Likewise.
18236 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18237 (constrain_operands, peep2_find_free_register): Likewise.
18238 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
18239 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18240 * reload1.c (maybe_fix_stack_asms): Likewise.
18241 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18242 * targhooks.c (default_secondary_reload): Likewise.
18243 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
18244 to EXTRA_CONSTRAINT_STR.
18245 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
18247 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18249 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
18250 (write_constraint_satisfied_p_array): ...this new function.
18251 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
18253 (write_insn_preds_c): Update accordingly.
18255 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18257 * genpreds.c (write_lookup_constraint): Rename to...
18258 (write_lookup_constraint_1): ...this.
18259 (write_lookup_constraint_array): New function.
18260 (write_tm_preds_h): Define lookup_constraint as an inline function
18261 that uses write_lookup_constraint_array where possible.
18262 (write_insn_preds_c): Update for the changes above.
18264 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18266 * doc/md.texi (regclass_for_constraint): Rename to...
18267 (reg_class_for_constraint): ...this.
18268 * genpreds.c (num_constraints, enum_order, register_start)
18269 (register_end, satisfied_start, memory_start, memory_end)
18270 (address_start, address_end): New variables.
18271 (add_constraint): Count the number of constraints.
18272 (choose_enum_order): New function.
18273 (write_enum_constraint_num): Iterate over enum_order.
18274 (write_regclass_for_constraint): Rename to...
18275 (write_reg_class_for_constraint_1): ...this and update output
18277 (write_constraint_satisfied_p): Rename to...
18278 (write_constraint_satisfied_p_1): ...this and update output
18279 accordingly. Do nothing if all extra constraints are register
18281 (write_insn_extra_memory_constraint): Delete.
18282 (write_insn_extra_address_constraint): Delete.
18283 (write_range_function): New function.
18284 (write_tm_preds_h): Define constraint_satisfied_p and
18285 reg_class_for_constraint as inline functions that do a range check
18286 before calling the out-of-line function. Use write_range_function
18287 to implement insn_extra_{register,memory,address}_constraint,
18288 the first of which is new.
18289 (write_insn_preds_c): Update after above changes to write_* functions.
18290 (main): Call choose_enum_order.
18292 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18294 PR tree-optimization/61306
18295 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
18296 expression instead of its size.
18297 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
18298 false to prevent optimization when the result is unpredictable due to
18299 arithmetic right shift of signed type with highest byte is set.
18300 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
18301 (init_symbolic_number): Likewise.
18302 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
18303 when the result is unpredictable due to sign extension.
18305 2014-06-11 Terry Guo <terry.guo@arm.com>
18307 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
18308 (*thumb1_addsi3): Ditto.
18309 (*thumb_subdi3): Ditto.
18310 (thumb1_subsi3_insn): Ditto.
18311 (*thumb_mulsi3): Ditto.
18312 (*thumb_mulsi3_v6): Ditto.
18313 (*thumb1_andsi3_insn): Ditto.
18314 (thumb1_bicsi3): Ditto.
18315 (*thumb1_iorsi3_insn): Ditto.
18316 (*thumb1_xorsi3_insn): Ditto.
18317 (*thumb1_ashlsi3): Ditto.
18318 (*thumb1_ashrsi3): Ditto.
18319 (*thumb1_lshrsi3): Ditto.
18320 (*thumb1_rotrsi3): Ditto.
18321 (*thumb1_negdi2): Ditto.
18322 (*thumb1_negsi2): Ditto.
18323 (*thumb1_abssi2): Ditto.
18324 (*thumb1_neg_abssi2): Ditto.
18325 (*thumb1_one_cmplsi2): Ditto.
18326 (*thumb1_zero_extendhisi2): Ditto.
18327 (*thumb1_zero_extendqisi2): Ditto.
18328 (*thumb1_zero_extendqisi2_v6): Ditto.
18329 (thumb1_extendhisi2): Ditto.
18330 (thumb1_extendqisi2): Ditto.
18331 (*thumb1_movdi_insn): Ditto.
18332 (*thumb1_movsi_insn): Ditto.
18333 (*thumb1_movhi_insn): Ditto.
18334 (thumb_movhi_clobber): Ditto.
18335 (*thumb1_movqi_insn): Ditto.
18336 (*thumb1_movhf): Ditto.
18337 (*thumb1_movsf_insn): Ditto.
18338 (*thumb_movdf_insn): Ditto.
18339 (movmem12b): Ditto.
18341 (cbranchqi4): Ditto.
18342 (cbranchsi4_insn): Ditto.
18343 (cbranchsi4_scratch): Ditto.
18344 (*negated_cbranchsi4): Ditto.
18345 (*tbit_cbranch): Ditto.
18346 (*tlobits_cbranch): Ditto.
18347 (*tstsi3_cbranch): Ditto.
18348 (*cbranchne_decr1): Ditto.
18349 (*addsi3_cbranch): Ditto.
18350 (*addsi3_cbranch_scratch): Ditto.
18351 (*thumb_cmpdi_zero): Ditto.
18352 (cstoresi_eq0_thumb1): Ditto.
18353 (cstoresi_ne0_thumb1): Ditto.
18354 (*cstoresi_eq0_thumb1_insn): Ditto.
18355 (*cstoresi_ne0_thumb1_insn): Ditto.
18356 (cstoresi_nltu_thumb1): Ditto.
18357 (cstoresi_ltu_thumb1): Ditto.
18358 (thumb1_addsi3_addgeu): Ditto.
18359 (*thumb_jump): Ditto.
18360 (*call_reg_thumb1_v5): Ditto.
18361 (*call_reg_thumb1): Ditto.
18362 (*call_value_reg_thumb1_v5): Ditto.
18363 (*call_value_reg_thumb1): Ditto.
18364 (*call_insn): Ditto.
18365 (*call_value_insn): Ditto.
18366 (thumb1_casesi_internal_pic): Ditto.
18367 (thumb1_casesi_dispatch): Ditto.
18368 (*thumb1_indirect_jump): Ditto.
18369 (prologue_thumb1_interwork): Ditto.
18370 (*epilogue_insns): Ditto.
18371 (consttable_1): Ditto.
18372 (consttable_2): Ditto.
18373 (tablejump): Ditto.
18374 (*thumb1_tablejump): Ditto.
18375 (thumb_eh_return): Ditto.
18376 (define_peephole2): Two of them are thumb1 only and got moved into
18377 new file thumb1.md.
18378 (define_split): Six of them are thumb1 only and got moved into new
18380 * config/arm/thumb1.md: New file comprised of above thumb1 only
18383 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18385 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
18386 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
18388 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
18389 (aarch64_crc_builtin_datum): New struct.
18390 (aarch64_crc_builtin_data): New.
18391 (aarch64_init_crc32_builtins): New function.
18392 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
18393 (aarch64_crc32_expand_builtin): New.
18394 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
18395 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18396 __ARM_FEATURE_CRC32 when appropriate.
18397 (TARGET_CRC32): Define.
18398 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
18399 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
18400 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
18401 (aarch64_<crc_variant>): New pattern.
18402 * config/aarch64/arm_acle.h: New file.
18403 * config/aarch64/iterators.md (CRC): New int iterator.
18404 (crc_variant, crc_mode): New int attributes.
18405 * doc/aarch64-acle-intrinsics.texi: New file.
18406 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
18407 Include aarch64-acle-intrinsics.texi.
18409 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
18411 * tree-vect-data-refs.c (vect_grouped_store_supported): New
18412 check for stores group of length 3.
18413 (vect_permute_store_chain): New permutations for stores group of
18415 * tree-vect-stmts.c (vect_model_store_cost): Change cost
18416 of vec_perm_shuffle for the new permutations.
18418 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
18420 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
18421 table rewriting temporarily on targets not supporting ONE_ONLY.
18423 2014-06-11 Richard Biener <rguenther@suse.de>
18425 PR middle-end/61437
18427 2014-06-04 Richard Biener <rguenther@suse.de>
18429 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18430 TREE_PUBLIC and DECL_EXTERNAL decls.
18432 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
18434 * varasm.c (set_implicit_section): New function.
18435 (resolve_unique_section): Use it to set implicit section
18437 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
18438 (default_function_section): Likewise.
18439 (decl_binds_to_current_def_p): Constify argument.
18440 * varasm.h (decl_binds_to_current_def_p): Update prototype.
18441 * asan.c (asan_protect_global): Use
18442 symtab_get_node (decl)->implicit_section.
18443 * symtab.c (dump_symtab_base): Dump implicit sections.
18444 (verify_symtab_base): Verify sanity of sectoins and comdats.
18445 (symtab_resolve_alias): Alias share the section of its target.
18446 (set_section_1): New function.
18447 (symtab_node::set_section): Move here, recurse to aliases.
18448 (verify_symtab): Check for duplicated symtab lists.
18449 * tree-core.h (implicit_section_name_p): Remove.
18450 * tree-vect-data-refs.c: Include varasm.h.
18451 (vect_can_force_dr_alignment_p): Fix conditional on when
18452 decl bints to current definition; use
18453 symtab_get_node (decl)->implicit_section.
18454 * cgraph.c (cgraph_make_node_local_1): Fix section set.
18455 * cgraph.h (struct symtab_node): Add implicit_section.
18456 (set_section): Rename to ...
18457 (set_section_for_node): ... this one.
18458 (set_section): Declare.
18459 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
18460 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
18461 input_overwrite_node, input_varpool_node): Stream implicit_section.
18462 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
18463 removal; it will fail in LTO.
18465 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18467 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
18468 Change second alternative type to f_mcr.
18469 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
18470 and 12th alternatives' types to f_mcr and f_mrc.
18471 (*movdi_aarch64): Same for 12th and 13th alternatives.
18472 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
18473 (aarch64_movtilow_tilow): Change type to fmov.
18475 2014-06-10 Jiong Wang <jiong.wang@arm.com>
18477 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
18478 (aarch64_save_or_restore_callee_save_registers): Fix layout.
18480 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18482 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
18484 (aarch64_sqrdmulh_lane<mode>): Likewise.
18485 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18486 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18487 (aarch64_sqdmulh_laneq<mode>): New expander.
18488 (aarch64_sqrdmulh_laneq<mode>): Likewise.
18489 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
18490 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
18491 (aarch64_sqdmulh_lane<mode>): New expander.
18492 (aarch64_sqrdmulh_lane<mode>): Likewise.
18493 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18494 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18495 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
18496 (aarch64_sqdmlal_laneq<mode>): Likewise.
18497 (aarch64_sqdmlsl_lane<mode>): Likewise.
18498 (aarch64_sqdmlsl_laneq<mode>): Likewise.
18499 (aarch64_sqdmlal2_lane<mode>): Likewise.
18500 (aarch64_sqdmlal2_laneq<mode>): Likewise.
18501 (aarch64_sqdmlsl2_lane<mode>): Likewise.
18502 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18503 (aarch64_sqdmull_lane<mode>): Likewise.
18504 (aarch64_sqdmull_laneq<mode>): Likewise.
18505 (aarch64_sqdmull2_lane<mode>): Likewise.
18506 (aarch64_sqdmull2_laneq<mode>): Likewise.
18508 2014-06-10 Richard Biener <rguenther@suse.de>
18510 PR tree-optimization/61438
18511 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
18512 (eliminate_dom_walker::before_dom_children): Only try to inhibit
18513 insertion of IVs if running PRE.
18514 (eliminate): Adjust.
18515 (pass_pre::execute): Likewise.
18516 (pass_fre::execute): Likewise.
18518 2014-06-10 Richard Biener <rguenther@suse.de>
18520 PR middle-end/61456
18521 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18522 Do not use the main variant for the type comparison.
18523 (ncr_compar): Likewise.
18524 (nonoverlapping_component_refs_p): Likewise.
18526 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
18528 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
18529 REG_CFA_RESTORE mode.
18531 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
18533 * config/i386/i386.c (expand_vec_perm_pblendv): New.
18534 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
18535 expand_vec_perm_pblendv.
18537 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18539 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
18541 Simplify description of __crc32d and __crc32cd intrinsics.
18542 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
18545 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
18548 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
18549 * config.in: Regenerate.
18550 * configure: Likewise.
18552 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
18554 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
18556 (intersect_static_var_sets): Remove.
18557 (propagate): Do not prune local statics.
18559 2014-06-10 Jakub Jelinek <jakub@redhat.com>
18562 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
18563 Set lastprivate_firstprivate even if omp_private_outer_ref
18564 langhook returns true.
18565 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
18566 langhook, call unshare_expr on new_var and call
18567 build_outer_var_ref to get the last argument.
18569 2014-06-10 Marek Polacek <polacek@redhat.com>
18572 * doc/extend.texi: Add cindex for transparent_union.
18574 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
18576 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
18577 init_symbolic_number ().
18579 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
18581 PR middle-end/61141
18582 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
18583 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
18584 (verify_rtl_sharing): Likewise.
18586 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
18589 * tree.c (build_qualified_type): Use a canonical type for
18592 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18594 * config/arm/arm-modes.def: Remove XFmode.
18596 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
18599 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
18600 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
18601 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
18602 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
18603 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
18604 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
18605 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
18606 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
18607 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
18609 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
18611 * tree-core.h (tree_decl_with_vis): Remove section_name.
18613 2014-06-09 Kito Cheng <kito@0xlab.org>
18615 * ira.c (ira): Don't call init_caller_save if LRA enabled
18616 since LRA use its own infrastructure to handle that.
18618 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18620 * symtab.c (dump_symtab_base): Update dumping.
18621 (symtab_make_decl_local): Clear only DECL_COMDAT.
18622 * tree-vect-data-refs.c (Check that variable is static before
18623 tampering with sections.
18624 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
18625 (cgraph_create_virtual_clone): Likewise.
18626 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
18627 (decl_section_name, set_decl_section_name): New accessors.
18628 (find_decls_types_r): Do not walk section name
18629 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
18630 (decl_comdat_group, decl_comdat_group_id): Constify.
18631 (decl_section_name, set_decl_section_name): Update.
18632 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
18633 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
18634 (cgraph_make_node_local_1): Clear section and comdat group.
18635 * cgraph.h (set_comdat_group): Sanity check.
18636 (get_section, set_section): New.
18637 * ipa-comdats.c (ipa_comdats): Use get_section.
18638 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
18639 * lto-streamer-out.c: Do not follow section names.
18640 * c-family/c-common.c (handle_section_attribute): Update.
18641 * lto-cgraph.c (lto_output_node): Output section.
18642 (lto_output_varpool_node): Likewise.
18643 (read_comdat_group): Rename to ...
18644 (read_identifier): ... this one.
18645 (read_string_cst): New function.
18646 (input_node, input_varpool_node): Input section names.
18647 * tree-emutls.c (get_emutls_init_templ_addr): Update.
18648 (new_emutls_decl): Update.
18649 (secname_for_decl): Check section names only of static vars.
18650 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
18651 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
18652 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18653 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18654 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
18655 * config/mcore/mcore.c (mcore_unique_section): Likewise.
18656 * config/mips/mips.c (mips16_build_function_stub): Likewise.
18657 * config/v850/v850.c (v850_insert_attributes): Likewise.
18658 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
18660 (h8300_handle_tiny_data_attribute): Likewise.
18661 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
18662 (bfin_handle_l2_attribute): Likewise.
18664 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18666 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
18667 remove static initializer.
18669 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18671 * varasm.c (use_blocks_for_decl_p): Check symbol table
18672 instead of alias attribute.
18673 (place_block_symbol): Recurse on aliases.
18675 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18677 * ipa-visibility.c: Include varasm.h
18678 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
18680 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
18682 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
18683 outputting aliases.
18685 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
18687 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
18688 from test_insn into GGC space escape via SET_SRC.
18690 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
18692 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
18693 call statement, if any.
18694 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
18695 statements, if any. Tidy up.
18697 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18700 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
18701 iterators, VSX_D that handles 64-bit types, and VSX_LE that
18702 handles swapping the two 64-bit double words on little endian
18703 systems. Include V1TImode and optionally TImode in VSX_LE so that
18704 these types are properly swapped. Change all of the insns and
18705 splits that do the 64-bit swaps to use VSX_LE.
18706 (vsx_le_perm_load_<mode>): Likewise.
18707 (vsx_le_perm_store_<mode>): Likewise.
18708 (splitters for little endian memory operations): Likewise.
18709 (vsx_xxpermdi2_le_<mode>): Likewise.
18710 (vsx_lxvd2x2_le_<mode>): Likewise.
18711 (vsx_stxvd2x2_le_<mode>): Likewise.
18713 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
18716 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
18717 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
18718 and corresponding splitters. Zero extend general register
18719 or memory input operand to XMM temporary. Enable for
18720 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
18721 (floatunssi<mode>2): Update expander predicate.
18723 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
18725 PR rtl-optimization/61325
18726 * lra-constraints.c (process_address_1): Check scale equal to one
18727 to prevent transformation: base + scale * index => base + new_reg.
18729 2014-06-06 Richard Biener <rguenther@suse.de>
18731 PR tree-optimization/59299
18732 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
18734 (nearest_common_dominator_of_uses): Likewise.
18735 (statement_sink_location): Adjust. Support sinking loads.
18737 2014-06-06 Martin Jambor <mjambor@suse.cz>
18739 * ipa-prop.c (get_place_in_agg_contents_list): New function.
18740 (build_agg_jump_func_from_list): Likewise.
18741 (determine_known_aggregate_parts): Renamed to
18742 determine_locally_known_aggregate_parts. Moved some functionality
18743 to the two functions above, removed bound checks.
18745 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
18747 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
18748 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
18749 (aarch64_progress_pointer): Likewise.
18750 (aarch64_copy_one_part_and_move_pointers): Likewise.
18751 (aarch64_expand_movmen): Likewise.
18752 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
18753 * config/aarch64/aarch64.md (movmem<mode>): New.
18755 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
18757 * targhooks.c (default_add_stmt_cost): Call target specific
18758 hook instead of default one.
18760 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
18762 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
18763 endianness instead of host endianness.
18764 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
18767 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
18770 * function.c (instantiate_decls): Process the saved static chain.
18771 (expand_function_start): If not optimizing, save the static chain
18773 * tree-nested.c (convert_all_function_calls): Always create the static
18774 chain for nested functions if not optimizing.
18776 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
18778 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
18780 2014-06-06 Richard Biener <rguenther@suse.de>
18782 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
18783 (construct_init_block): Likewise.
18784 (construct_exit_block): Likewise.
18785 (pass_expand::execute): Likewise.
18786 * graphite.c (graphite_transforms): Replace check for current_loops
18787 with a check for > 1 loops.
18788 (pass_graphite_transforms::execute): Adjust.
18789 * ipa-split.c (split_function): Remove check for current_loops.
18790 * omp-low.c (expand_parallel_call): Likewise.
18791 (expand_omp_for_init_counts): Likewise.
18792 (extract_omp_for_update_vars): Likewise.
18793 (expand_omp_for_generic): Likewise.
18794 (expand_omp_sections): Likewise.
18795 (expand_omp_target): Likewise.
18796 * tracer.c (tail_duplicate): Likewise.
18797 (pass_tracer::execute): Likewise.
18798 * trans-mem.c (expand_transaction): Likewise.
18799 * tree-complex.c (expand_complex_div_wide): Likewise.
18800 * tree-eh.c (lower_resx): Likewise.
18801 (cleanup_empty_eh_merge_phis): Likewise.
18802 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
18803 current_loops with a check for > 1 loops.
18804 (pass_predcom::execute): Adjust.
18805 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
18806 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
18807 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
18808 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
18809 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
18810 * tree-switch-conversion.c (process_switch): Likewise.
18811 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
18812 * tree-vrp.c (vrp_visit_phi_node): Likewise.
18813 (execute_vrp): Likewise.
18814 * ubsan.c (ubsan_expand_null_ifn): Likewise.
18816 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
18818 * rtl.h (insn_location): Declare.
18819 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
18820 with UNKNOWN_LOCATION.
18821 * emit-rtl.c (insn_location): New function.
18822 * final.c (notice_source_line): Check that the instruction has a
18823 location before retrieving it and use insn_location.
18824 * modulo-sched.c (loop_single_full_bb_p): Likewise.
18825 * print-rtl.c (print_rtx): Likewise.
18827 2014-06-06 Richard Biener <rguenther@suse.de>
18829 * passes.def: Move 2nd VRP pass before phi-only-cprop.
18831 2014-06-06 Christian Bruel <christian.bruel@st.com>
18833 PR tree-optimization/43934
18834 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
18837 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
18839 * ira-lives.c (single_reg_class): Add missing break. Explicitly
18840 return NO_REGS for extra address and memory constraints. Handle
18841 operands that match (or are equivalent to something that matches)
18842 extra constant constraints. Ignore other non-register operands.
18844 2014-06-06 Alan Modra <amodra@gmail.com>
18847 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
18848 * doc/tm.texi: Regenerate.
18849 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
18850 Use throughout in place of REG_PARM_STACK_SPACE.
18851 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
18852 "incoming" param. Pass to rs6000_function_parms_need_stack.
18853 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
18854 prototype_p when incoming. Use function decl when incoming
18855 to handle K&R style functions.
18856 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
18857 (INCOMING_REG_PARM_STACK_SPACE): Define.
18859 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18862 * cfgexpand.c (expand_debug_expr): Use address space of nested
18863 TREE_TYPE for ADDR_EXPR and MEM_REF.
18865 2014-06-05 Jeff Law <law@redhat.com>
18867 PR tree-optimization/61289
18868 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
18869 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
18870 looking for those which match LHS. All callers changed.
18871 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
18872 parameters and code which manipulated them. All callers changed.
18873 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
18874 and DST_MAP parameters. Simplify invalidation code by just calling
18875 invalidate_equivalences. All callers changed.
18876 (thread_across_edge): Simplify now that we don't need to maintain
18877 the map of equivalences to invalidate.
18879 2014-06-05 Kai Tietz <ktietz@redhat.com>
18880 Richard Henderson <rth@redhat.com>
18883 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
18884 checking for !TARGET_X32.
18885 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
18886 (sibcall_intern): New define_insn, plus required peepholes.
18887 (sibcall_pop_intern): Likewise.
18888 (sibcall_value_intern): Likewise.
18889 (sibcall_value_pop_intern): Likewise.
18891 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
18893 * tree-inline.c (tree_function_versioning): Check DF info existence
18894 before accessing it.
18896 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18898 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
18900 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
18901 aarch64_frame hard_fp_offset and frame_size.
18902 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
18903 frame_size; remove original_frame_size.
18904 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
18905 (aarch64_initial_elimination_offset): Remove frame_size and
18906 offset. Use aarch64_frame frame_size.
18908 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18909 Jiong Wang <jiong.wang@arm.com>
18910 Renlin <renlin.li@arm.com>
18912 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
18913 initialization of R30 offset. Update offset. Iterate core
18914 regisers upto X30. Remove X29, X30 specific code.
18916 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18917 Jiong Wang <jiong.wang@arm.com>
18919 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
18920 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
18921 (aarch64_register_saved_on_entry): Adjust test.
18923 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18925 * config/aarch64/aarch64.h (machine_function): Move
18926 saved_varargs_size from here...
18927 (aarch64_frame): ... to here.
18929 * config/aarch64/aarch64.c (aarch64_expand_prologue)
18930 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
18931 (aarch64_initial_elimination_offset)
18932 (aarch64_setup_incoming_varargs): Adjust location of
18933 saved_varargs_size.
18935 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
18937 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
18940 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
18941 Prachi Godbole <Prachi.Godbole@imgtec.com>
18943 * config/mips/mips-cpus.def: Add definition for p5600. Updated
18944 mips32r5 entry to use PROCESSOR_P5600.
18945 * config/mips/mips-tables.opt: Regenerate.
18946 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
18947 * config/mips/mips.c (mips_fmadd_bypass): New function.
18948 (mips_rtx_cost_data): Add costs for p5600.
18949 (mips_issue_rate): Add support for p5600.
18950 (mips_multipass_dfa_lookahead): Likewise.
18951 * config/mips/mips.h (TUNE_P5600): New define.
18952 (TUNE_MACC_CHAINS): Add TUNE_P5600.
18953 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
18954 * config/mips/mips.md: Include p5600.md.
18955 (processor): Add p5600.
18956 * config/mips/p5600.md: New file.
18958 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
18960 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
18961 * config/i386/predicates.md (palignr_operand): New.
18962 Indicates if permutation is suitable for palignr instruction.
18964 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
18966 PR tree-optimization/61319
18967 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
18968 stmt belongs to loop.
18970 2014-06-05 Richard Biener <rguenther@suse.de>
18972 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
18973 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
18974 (lookup_tmp_var): Adjust.
18975 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
18977 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18979 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
18981 2014-06-05 Marek Polacek <polacek@redhat.com>
18984 * doc/invoke.texi: Document -Wlogical-not-parentheses.
18986 2014-06-04 Tom de Vries <tom@codesourcery.com>
18988 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
18991 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
18993 PR tree-optimization/61385
18994 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
18996 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
18998 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
18999 changed to use fatal_error.
19000 (main): Ensure lto_wrapper_cleanup is run atexit.
19002 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19004 * lra-constraints.c (valid_address_p): Move earlier in file.
19005 (address_eliminator): New structure.
19006 (satisfies_memory_constraint_p): New function.
19007 (satisfies_address_constraint_p): Likewise.
19008 (process_alt_operands, process_address, curr_insn_transform): Use them.
19010 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19012 * lra-int.h (lra_static_insn_data): Make operand_alternative a
19014 (target_lra_int, default_target_lra_int, this_target_lra_int)
19015 (op_alt_data): Delete.
19016 * lra.h (lra_init): Delete.
19017 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19018 (init_insn_code_data_once): Remove op_alt_data handling.
19019 (finish_insn_code_data_once): Likewise.
19020 (init_op_alt_data): Delete.
19021 (get_static_insn_data): Initialize operand_alternative to null.
19022 (free_insn_recog_data): Cast operand_alternative before freeing it.
19023 (setup_operand_alternative): Take the operand_alternative as
19024 parameter and assume it isn't already cached in the static
19026 (lra_set_insn_recog_data): Update accordingly.
19027 (lra_init): Delete.
19028 * ira.c (ira_init): Don't call lra_init.
19029 * target-globals.h (this_target_lra_int): Declare.
19030 (target_globals): Remove lra_int.
19031 (restore_target_globals): Update accordingly.
19032 * target-globals.c: Don't include lra-int.h.
19033 (default_target_globals, save_target_globals): Remove lra_int.
19035 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19037 * recog.h (operand_alternative): Convert reg_class, reject,
19038 matched and matches into bitfields.
19039 (preprocess_constraints): New overload.
19040 (preprocess_insn_constraints): New function.
19041 (preprocess_constraints): Take the insn as parameter.
19042 (recog_op_alt): Change into a pointer.
19043 (target_recog): Add x_op_alt.
19044 * recog.c (asm_op_alt): New variable.
19045 (recog_op_alt): Change into a pointer.
19046 (preprocess_constraints): New overload, replacing the old function
19047 definition with one that doesn't use global state.
19048 (preprocess_insn_constraints): New function.
19049 (preprocess_constraints): Use them. Take the insn as parameter.
19050 Use asm_op_alt for asms.
19051 (recog_init): Free existing x_op_alt entries.
19052 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
19054 (make_early_clobber_and_input_conflicts): Likewise.
19055 (process_bb_node_lives): Pass the insn to process_constraints.
19056 * reg-stack.c (check_asm_stack_operands): Likewise.
19057 (subst_asm_stack_regs): Likewise.
19058 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19059 * regrename.c (build_def_use): Likewise.
19060 * sched-deps.c (sched_analyze_insn): Likewise.
19061 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
19062 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
19063 (note_invalid_constants): Likewise.
19064 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19065 (ix86_legitimate_combined_insn): Make operand_alternative pointer
19068 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19070 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
19071 * ira-lives.c (check_and_make_def_conflict): Check for disabled
19073 (make_early_clobber_and_input_conflicts): Likewise.
19074 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19076 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19078 * recog.h (alternative_class): New function.
19079 (which_op_alt): Return a const recog_op_alt.
19080 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
19081 (subst_asm_stack_regs): Likewise.
19082 * config/arm/arm.c (note_invalid_constants): Likewise.
19083 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
19084 the operand_alternative; use alternative class instead.
19085 * sel-sched.c (get_reg_class): Likewise.
19086 * regrename.c (build_def_use): Likewise.
19087 (hide_operands, restore_operands, record_out_operands): Update type
19090 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19092 * recog.h (recog_op_alt): Convert to a flat array.
19093 (which_op_alt): New function.
19094 * recog.c (recog_op_alt): Convert to a flat array.
19095 (preprocess_constraints): Update accordingly, grouping all
19096 operands of the same alternative together, rather than the
19098 * ira-lives.c (check_and_make_def_conflict): Likewise.
19099 (make_early_clobber_and_input_conflicts): Likewise.
19100 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19101 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
19102 (subst_asm_stack_regs): Likewise.
19103 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19104 * regrename.c (hide_operands, record_out_operands): Likewise.
19105 (build_def_use): Likewise.
19106 * sel-sched.c (get_reg_class): Likewise.
19107 * config/arm/arm.c (note_invalid_constants): Likewise.
19109 2014-06-04 Jason Merrill <jason@redhat.com>
19113 * gimplify.c (gimplify_arg): Non-static.
19114 * gimplify.h: Declare it.
19116 2014-06-04 Richard Biener <rguenther@suse.de>
19118 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19119 TREE_PUBLIC and DECL_EXTERNAL decls.
19121 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
19123 * regcprop.c (copyprop_hardreg_forward_1): Account for
19124 HARD_REGNO_CALL_PART_CLOBBERED.
19126 2014-06-04 Richard Biener <rguenther@suse.de>
19128 * configure.ac: Check whether the underlying type of int64_t
19129 is long or long long.
19130 * configure: Regenerate.
19131 * config.in: Likewise.
19132 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
19133 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19135 2014-06-04 Richard Biener <rguenther@suse.de>
19137 PR tree-optimization/60098
19138 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
19140 (dse_optimize_stmt): Simplify, now that we found a kill
19143 2014-06-04 Richard Biener <rguenther@suse.de>
19145 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
19146 of accesses with non-invariant address.
19148 2014-06-04 Martin Liska <mliska@suse.cz>
19150 * cgraph.h (cgraph_make_wrapper): New function introduced.
19151 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
19152 * ipa-inline.h (inline_analyze_function): The function is global.
19153 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
19155 2014-06-04 Martin Liska <mliska@suse.cz>
19157 * tree.h (private_lookup_attribute_starting): New function.
19158 (lookup_attribute_starting): Likewise.
19159 * tree.c (private_lookup_attribute_starting): Likewise.
19161 2014-06-04 Martin Liska <mliska@suse.cz>
19163 * cgraph.h (expand_thunk): New argument added.
19164 (address_taken_from_non_vtable_p): New global function.
19165 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
19166 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
19167 * cgraphunit.c (analyze_function): Likewise.
19168 (assemble_thunks_and_aliases): Argument added to call.
19169 (expand_thunk): New argument forces to produce GIMPLE thunk.
19171 2014-06-04 Martin Liska <mliska@suse.cz>
19173 * coverage.h (coverage_compute_cfg_checksum): Argument added.
19174 * coverage.c (coverage_compute_cfg_checksum): Likewise.
19175 * profile.c (branch_prob): Likewise.
19177 2014-06-04 Martin Jambor <mjambor@suse.cz>
19180 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
19181 handler for switch on an ipa_ref_use enum.
19182 * ipa-reference.c (analyze_function): Likewise.
19184 2014-06-04 Kai Tietz <ktietz@redhat.com>
19186 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
19187 from old call-instruction.
19189 2014-06-04 Bin Cheng <bin.cheng@arm.com>
19191 * config/aarch64/aarch64.c (aarch64_classify_address)
19192 (aarch64_legitimize_reload_address): Support full addressing modes
19194 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
19195 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
19197 2014-06-03 Andrew Pinski <apinski@cavium.com>
19199 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
19202 2014-06-03 Andrew Pinski <apinski@cavium.com>
19204 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
19205 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
19207 2014-06-03 Kai Tietz <ktietz@redhat.com>
19209 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
19212 2014-06-03 Dehao Chen <dehao@google.com>
19214 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
19217 2014-06-03 Marek Polacek <polacek@redhat.com>
19220 * doc/invoke.texi: Document -Wswitch-bool.
19221 * function.c (stack_protect_epilogue): Cast controlling expression of
19223 * gengtype.c (walk_type): Generate switch expression with its
19224 controlling expression cast to int.
19226 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
19228 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
19230 * config/avr/avr-tables.opt: Regenerate.
19231 * config/avr/t-multilib: Regenerate.
19232 * doc/avr-mmcu.texi: Regenerate.
19234 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
19235 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19237 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
19238 (ata6617c, ata664251): Add new avr35 devices.
19239 (ata6612c): Add new avr4 device.
19240 (ata6613c, ata6614q): Add new avr5 devices.
19241 * config/avr/avr-tables.opt: Regenerate.
19242 * config/avr/t-multilib: Regenerate.
19243 * doc/avr-mmcu.texi: Regenerate.
19245 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19247 * gcc/config/aarch64/aarch64-builtins.c
19248 (aarch64_types_binop_ssu_qualifiers): New static data.
19249 (TYPES_BINOP_SSU): Define.
19250 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
19251 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
19252 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
19253 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
19254 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
19255 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
19256 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
19257 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
19258 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
19259 suffix to builtin function name, remove cast.
19260 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
19261 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
19262 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
19264 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19266 * gcc/config/aarch64/aarch64-builtins.c
19267 (aarch64_types_binop_uus_qualifiers,
19268 aarch64_types_shift_to_unsigned_qualifiers,
19269 aarch64_types_unsigned_shiftacc_qualifiers): Define.
19270 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
19271 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
19272 sqshlu_n, uqshl_n): Update qualifiers.
19273 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
19274 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
19275 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
19276 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
19277 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
19278 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
19279 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
19280 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
19281 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
19282 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
19283 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
19284 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
19285 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
19286 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
19287 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
19288 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
19289 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
19290 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
19291 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
19292 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
19293 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
19294 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
19295 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
19296 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
19297 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
19298 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
19299 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
19301 2014-06-03 Teresa Johnson <tejohnson@google.com>
19303 * tree-sra.c (modify_function): Record caller nodes after rebuild.
19305 2014-06-02 Jason Merrill <jason@redhat.com>
19308 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
19310 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19312 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
19315 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19317 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
19319 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
19320 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
19321 * config/aarch64/iterators.md (REVERSE): New iterator.
19322 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
19323 (rev_op): New int_attribute.
19324 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
19325 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
19326 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
19327 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
19328 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
19329 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
19330 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
19331 Replace temporary __asm__ with __builtin_shuffle.
19333 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19335 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
19337 * config/mips/mips-tables.opt: Regenerate.
19338 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
19339 to use mips_isa_rev rather than ISA_MIPS32R2.
19340 * config/mips/mips.h (ISA_MIPS32R3): New define.
19341 (ISA_MIPS32R5): New define.
19342 (ISA_MIPS64R3): New define.
19343 (ISA_MIPS64R5): New define.
19344 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
19345 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
19346 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
19348 (MIPS_ISA_SYNCI_SPEC): Likewise.
19349 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
19350 (LINK_SPEC): Added mips32r3 and mips32r5.
19351 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
19352 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
19353 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
19354 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
19355 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
19356 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
19357 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
19359 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19361 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
19363 * config/mips/mips.opt (mxpa): New option.
19364 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
19367 2014-06-03 Martin Jambor <mjambor@suse.cz>
19370 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
19373 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
19375 PR tree-optimization/61328
19376 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
19377 initialization from find_bswap_or_nop_1.
19378 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
19379 in source_expr2 before using the size value the function sets. Also
19380 make use of init_symbolic_number () in both the old place and
19381 find_bswap_or_nop_load () to avoid reading uninitialized memory when
19382 doing recursion in the GIMPLE_BINARY_RHS case.
19384 2014-06-03 Richard Biener <rguenther@suse.de>
19386 PR tree-optimization/61383
19387 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
19390 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
19392 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
19393 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
19394 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
19395 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
19397 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
19398 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
19399 * system.h: ...here and make it unconditional.
19400 * target.def (conditional_register_usage): Mention
19401 define_register_constraint instead of old-style constraint macros.
19402 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
19403 * doc/tm.texi: Regenerate.
19404 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
19405 protected by !USE_MD_CONSTRAINTS.
19406 * config/frv/frv.md: Remove quote from old version of documentation.
19407 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
19408 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
19409 CONST_DOUBLE_OK_FOR_LETTER.
19410 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
19412 2014-06-02 Andrew Pinski <apinski@cavium.com>
19414 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
19415 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
19416 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
19417 file whose name depends on -mabi= and -mbig-endian.
19418 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
19419 Handle LP64 better and handle ilp32 too.
19420 (MULTILIB_OPTIONS): Delete.
19421 (MULTILIB_DIRNAMES): Delete.
19423 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
19425 * expr.h: Remove prototypes of functions defined in builtins.c.
19426 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
19427 Remove prototypes of functions defined in builtins.c.
19428 * builtins.h: Update prototype list to include all exported functions.
19429 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
19430 no_c99_libc_has_function): Move to targhooks.c
19431 (build_string_literal, build_call_expr_loc_array,
19432 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
19434 (expand_builtin_object_size, fold_builtin_object_size): Make static.
19435 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
19436 no_c99_libc_has_function): Relocate from builtins.c.
19437 * tree.c: Include builtins.h.
19438 (build_call_expr_loc_array, build_call_expr_loc_vec,
19439 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
19441 * fold-const.h (fold_fma): Move prototype to builtins.h.
19442 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
19443 * asan.c: Include builtins.h.
19444 * cfgexpand.c: Likewise.
19445 * convert.c: Likewise.
19446 * emit-rtl.c: Likewise.
19447 * except.c: Likewise.
19448 * expr.c: Likewise.
19449 * fold-const.c: Likewise.
19450 * gimple-fold.c: Likewise.
19451 * gimple-ssa-strength-reduction.c: Likewise.
19452 * gimplify.c: Likewise.
19453 * ipa-inline.c: Likewise.
19454 * ipa-prop.c: Likewise.
19455 * lto-streamer-out.c: Likewise.
19456 * stmt.c: Likewise.
19457 * tree-inline.c: Likewise.
19458 * tree-object-size.c: Likewise.
19459 * tree-sra.c: Likewise.
19460 * tree-ssa-ccp.c: Likewise.
19461 * tree-ssa-forwprop.c: Likewise.
19462 * tree-ssa-loop-ivcanon.c: Likewise.
19463 * tree-ssa-loop-ivopts.c: Likewise.
19464 * tree-ssa-math-opts.c: Likewise.
19465 * tree-ssa-reassoc.c: Likewise.
19466 * tree-ssa-threadedge.c: Likewise.
19467 * tree-streamer-in.c: Likewise.
19468 * tree-vect-data-refs.c: Likewise.
19469 * tree-vect-patterns.c: Likewise.
19470 * tree-vect-stmts.c: Likewise.
19471 * config/aarch64/aarch64.c: Likewise.
19472 * config/alpha/alpha.c: Likewise.
19473 * config/arc/arc.c: Likewise.
19474 * config/arm/arm.c: Likewise.
19475 * config/avr/avr.c: Likewise.
19476 * config/bfin/bfin.c: Likewise.
19477 * config/c6x/c6x.c: Likewise.
19478 * config/cr16/cr16.c: Likewise.
19479 * config/cris/cris.c: Likewise.
19480 * config/epiphany/epiphany.c: Likewise.
19481 * config/fr30/fr30.c: Likewise.
19482 * config/frv/frv.c: Likewise.
19483 * config/h8300/h8300.c: Likewise.
19484 * config/i386/i386.c: Likewise.
19485 * config/i386/winnt.c: Likewise.
19486 * config/ia64/ia64.c: Likewise.
19487 * config/iq2000/iq2000.c: Likewise.
19488 * config/lm32/lm32.c: Likewise.
19489 * config/m32c/m32c.c: Likewise.
19490 * config/m32r/m32r.c: Likewise.
19491 * config/m68k/m68k.c: Likewise.
19492 * config/mcore/mcore.c: Likewise.
19493 * config/mep/mep.c: Likewise.
19494 * config/microblaze/microblaze.c: Likewise.
19495 * config/mips/mips.c: Likewise.
19496 * config/mmix/mmix.c: Likewise.
19497 * config/mn10300/mn10300.c: Likewise.
19498 * config/moxie/moxie.c: Likewise.
19499 * config/msp430/msp430.c: Likewise.
19500 * config/nds32/nds32.c: Likewise.
19501 * config/pa/pa.c: Likewise.
19502 * config/pdp11/pdp11.c: Likewise.
19503 * config/picochip/picochip.c: Likewise.
19504 * config/rl78/rl78.c: Likewise.
19505 * config/rs6000/rs6000.c: Likewise.
19506 * config/rx/rx.c: Likewise.
19507 * config/s390/s390.c: Likewise.
19508 * config/score/score.c: Likewise.
19509 * config/sh/sh.c: Likewise.
19510 * config/sparc/sparc.c: Likewise.
19511 * config/spu/spu.c: Likewise.
19512 * config/stormy16/stormy16.c: Likewise.
19513 * config/tilegx/tilegx.c: Likewise.
19514 * config/tilepro/tilepro.c: Likewise.
19515 * config/v850/v850.c: Likewise.
19516 * config/vax/vax.c: Likewise.
19517 * config/xtensa/xtensa.c: Likewise.
19519 2014-06-02 Jeff Law <law@redhat.com>
19521 PR rtl-optimization/61094
19522 * ree.c (combine_reaching_defs): Do not reextend an insn if it
19523 was marked as do_no_reextend. If a copy is needed to eliminate
19524 an extension, then mark it as do_not_reextend.
19526 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
19528 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
19530 2014-06-02 Richard Henderson <rth@redhat.com>
19533 * config/alpha/alpha.c (print_operand_address): Allow symbolic
19534 addresses inside asms. Use output_operand_lossage instead of
19537 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
19540 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
19541 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
19543 2014-06-02 Tom de Vries <tom@codesourcery.com>
19545 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
19546 case that x has VOIDmode.
19548 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
19550 * varasm.c (copy_constant): Delete function.
19551 (build_constant_desc): Don't call it.
19553 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19556 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
19557 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
19558 with immediate_operand.
19560 2014-06-02 Andreas Schwab <schwab@suse.de>
19562 * config/ia64/ia64.c
19563 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
19564 pending_data_specs first.
19566 2014-06-02 Richard Biener <rguenther@suse.de>
19568 PR tree-optimization/61378
19569 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
19570 valueized_anything.
19572 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
19574 * config/i386/constraints.md (Bw): Rename from 'w'.
19575 (Bz): Rename from 'z'.
19576 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
19578 2014-06-01 Kai Tietz <ktietz@redhat.com>
19581 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
19582 * config/i386/i386.md (sibcall_insn_operand): Use Bs
19583 instead of m constraint.
19585 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
19587 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
19588 a separate alternative where the scratch operand 2 is marked as
19591 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
19593 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
19594 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
19595 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
19596 and __builtins_arm_get_fpscr.
19597 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19598 __builtins_arm_get_fpscr.
19599 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
19600 __builtins_arm_ldfpscr.
19601 (arm_atomic_assign_expand_fenv): New function.
19602 * config/arm/vfp.md (set_fpscr): New pattern.
19603 (get_fpscr) : Likewise.
19604 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
19606 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19607 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
19609 2014-05-30 Jakub Jelinek <jakub@redhat.com>
19611 * asan.c (report_error_func): Add SLOW_P argument, use
19612 BUILT_IN_ASAN_*_N if set.
19613 (build_check_stmt): Likewise.
19614 (instrument_derefs): If T has insufficient alignment,
19615 force same handling as for odd sizes.
19617 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
19618 BUILT_IN_ASAN_REPORT_STORE_N): New.
19619 * asan.c (struct asan_mem_ref): Change access_size type to
19621 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
19622 update_mem_ref_hash_table): Likewise.
19623 (asan_mem_ref_hasher::hash): Hash in a HWI.
19624 (report_error_func): Change size_in_bytes argument to HWI.
19625 Use *_N builtins if size_in_bytes is larger than 16 or not power of
19627 (build_shadow_mem_access): New function.
19628 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
19629 Handle size_in_bytes not power of two or larger than 16.
19630 (instrument_derefs): Don't give up if size_in_bytes is not
19631 power of two or is larger than 16.
19633 2014-05-30 Kai Tietz <ktietz@redhat.com>
19636 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
19637 for sibling-tail-calls.
19638 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
19640 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
19641 (sibcall_insn_operand): Add check for sibcall_memory_operand.
19643 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19645 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
19646 * config/avr/avr-tables.opt: Regenerate.
19647 * config/avr/t-multilib: Regenerate.
19648 * doc/avr-mmcu.texi: Regenerate.
19650 2014-05-30 Ian Lance Taylor <iant@google.com>
19652 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
19655 2014-05-30 Tom de Vries <tom@codesourcery.com>
19657 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19660 2014-05-30 Tom de Vries <tom@codesourcery.com>
19662 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19663 * lra.c (initialize_lra_reg_info_element): Add init of
19664 actual_call_used_reg_set field.
19665 (lra): Call lra_create_live_ranges before lra_inheritance for
19667 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19669 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
19670 instead of call_used_reg_set for -fuse-caller-save.
19671 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19673 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19675 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
19677 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
19679 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
19681 * ira.c (ira_get_dup_out_num): Check for output operands at
19682 the start of the loop. Handle cases where an included alternative
19683 follows an excluded one.
19685 2014-05-29 Mike Stump <mikestump@comcast.net>
19688 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
19689 post ld passes when lto is used.
19691 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
19693 PR rtl-optimization/61325
19694 * lra-constraints.c (process_address): Rename to process_address_1.
19695 (process_address): New function.
19697 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
19699 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
19700 TYPES_BINOPV): New static data.
19701 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
19703 * config/aarch64/aarch64-simd.md (aarch64_ext,
19704 aarch64_im_lane_boundsi): New patterns.
19705 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
19707 (aarch64_evpc_ext): New function.
19709 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
19711 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
19712 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
19713 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
19714 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
19715 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
19717 2014-05-29 Tom de Vries <tom@codesourcery.com>
19719 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
19721 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
19722 Richard Sandiford <rdsandiford@googlemail.com>
19724 * arm/iterators.md (shiftable_ops): New code iterator.
19725 (t2_binop0, arith_shift_insn): New code attributes.
19726 * arm/predicates.md (shift_nomul_operator): New predicate.
19727 * arm/arm.md (insn_enabled): Delete.
19728 (enabled): Remove insn_enabled test.
19729 (*arith_shiftsi): Delete. Replace with ...
19730 (*<arith_shift_insn>_multsi): ... new pattern.
19731 (*<arith_shift_insn>_shiftsi): ... new pattern.
19732 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
19734 2014-05-29 Radovan Obradovic <robradovic@mips.com>
19735 Tom de Vries <tom@codesourcery.com>
19737 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
19738 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
19740 (mips_split_call): Use POST_CALL_TMP_REG.
19741 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
19743 2014-05-29 Tom de Vries <tom@codesourcery.com>
19745 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
19746 with #ifdef STACK_REGS.
19748 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
19750 * varasm.c (get_variable_section): Walk aliases.
19751 (place_block_symbol): Walk aliases.
19753 2014-05-28 Tom de Vries <tom@codesourcery.com>
19756 2014-05-28 Tom de Vries <tom@codesourcery.com>
19758 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19759 * lra.c (initialize_lra_reg_info_element): Add init of
19760 actual_call_used_reg_set field.
19761 (lra): Call lra_create_live_ranges before lra_inheritance for
19763 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19765 * lra-constraints.c (need_for_call_save_p): Use
19766 actual_call_used_reg_set instead of call_used_reg_set for
19768 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19770 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19772 * doc/md.texi: Document that the % constraint character must
19773 be at the beginning of the string.
19774 * genoutput.c (validate_insn_alternatives): Check that '=',
19775 '+' and '%' only appear at the beginning of a constraint.
19776 * ira.c (commutative_constraint_p): Delete.
19777 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
19778 at the start of the string.
19779 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
19781 * config/arm/neon.md (bicdi3_neon): Likewise.
19782 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
19783 (slt_si, sltu_si): Likewise.
19784 * config/vax/vax.md (sbcdi3): Likewise.
19785 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
19786 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
19787 (mul64): Move '%' to beginning of constraint.
19788 * config/arm/arm.md (*xordi3_insn): Likewise.
19789 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
19790 (xorsi3): Likewise.
19792 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19794 * doc/md.texi: Document the restrictions on the "enabled" attribute.
19796 2014-05-28 Jason Merrill <jason@redhat.com>
19799 * cgraph.h (symtab_node::get_comdat_group_id): New.
19800 * cgraphunit.c (analyze_functions): Call it.
19801 * symtab.c (dump_symtab_node): Likewise.
19802 * tree.c (decl_comdat_group_id): New.
19803 * tree.h: Declare it.
19804 * lto-streamer-out.c (write_symbol): Use it.
19805 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
19807 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19809 PR bootstrap/PR61146
19810 * wide-int.cc: Do not include longlong.h when compiling with clang.
19812 2014-05-28 Richard Biener <rguenther@suse.de>
19814 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
19815 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
19816 (vrp_visit_assignment_or_call): Print less vertical space.
19817 (vrp_visit_stmt): Likewise.
19818 (vrp_visit_phi_node): Likewise. For a PHI argument with
19819 VR_VARYING range consider recording it as copy.
19821 2014-05-28 Richard Biener <rguenther@suse.de>
19824 2014-05-28 Richard Biener <rguenther@suse.de>
19826 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19828 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
19830 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
19831 sufficiently aligned and an offset is used at the same time.
19832 (expand_expr_real_1): Likewise.
19834 2014-05-28 Richard Biener <rguenther@suse.de>
19836 PR middle-end/61045
19837 * fold-const.c (fold_comparison): When folding
19838 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
19839 the sign of the remaining constant operand stays the same.
19841 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
19843 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
19844 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
19845 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
19847 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
19848 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
19849 (m32bit-doubles) Likewise.
19850 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
19851 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
19854 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19856 * configure.ac ($gcc_cv_ld_clearcap): New test.
19857 * configure: Regenerate.
19858 * config.in: Regenerate.
19859 * config/sol2.opt (mclear-hwcap): New option.
19860 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
19861 * config/sol2-clearcap.map: Moved here from
19862 testsuite/gcc.target/i386/clearcap.map.
19863 * config/sol2-clearcapv2.map: Move here from
19864 gcc.target/i386/clearcapv2.map.
19865 * config/t-sol2 (install): Depend on install-clearcap-map.
19866 (install-clearcap-map): New target.
19867 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
19870 2014-05-28 Richard Biener <rguenther@suse.de>
19872 * hwint.h (*_HALF_WIDE_INT*): Move to ...
19873 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
19874 ... here and remove the rest.
19875 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19877 2014-05-28 Richard Biener <rguenther@suse.de>
19879 PR tree-optimization/61335
19880 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
19881 new range fails, drop to varying.
19883 2014-05-28 Olivier Hainque <hainque@adacore.com>
19885 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
19886 (CPP_SPEC): Add entry for -mcpu=8548.
19887 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
19888 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
19890 2014-05-28 Tom de Vries <tom@codesourcery.com>
19892 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19893 * lra.c (initialize_lra_reg_info_element): Add init of
19894 actual_call_used_reg_set field.
19895 (lra): Call lra_create_live_ranges before lra_inheritance for
19897 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19899 * lra-constraints.c (need_for_call_save_p): Use
19900 actual_call_used_reg_set instead of call_used_reg_set for
19902 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19904 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19905 Tom de Vries <tom@codesourcery.com>
19907 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
19909 (@item -fuse-caller-save): New item.
19911 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19912 Tom de Vries <tom@codesourcery.com>
19914 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
19915 OPT_fuse_caller_save.
19917 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19918 Tom de Vries <tom@codesourcery.com>
19920 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
19921 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
19922 get_call_reg_set_usage.
19923 * resource.c (mark_set_resources, mark_target_live_regs): Use
19924 get_call_reg_set_usage.
19925 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
19927 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
19928 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
19929 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19930 * ira-build.c (ira_create_allocno): Init
19931 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19932 (create_cap_allocno, propagate_allocno_info)
19933 (propagate_some_info_from_allocno)
19934 (copy_info_to_removed_store_destinations): Handle
19935 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19936 * ira-costs.c (ira_tune_allocno_costs): Use
19937 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
19939 2014-05-28 Radovan Obradovic <robradovic@mips.com>
19940 Tom de Vries <tom@codesourcery.com>
19942 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
19943 and function_used_regs_valid fields.
19944 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
19945 find_all_hard_reg_sets.
19946 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
19947 (get_call_reg_set_usage): New function.
19948 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
19949 * regs.h (get_call_reg_set_usage): Declare.
19951 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
19954 * config/dbx.h (License): Add Runtime Library Exception.
19955 * config/newlib-stdint.h (License): Same.
19956 * config/rtems.h (License): Same
19957 * config/initfini-array.h (License): Same
19958 * config/v850/v850.h (License): Same.
19959 * config/v850/v850-opts.h (License): Same
19960 * config/v850/rtems.h (License): Same.
19962 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
19965 * doc/extend.texi (Local Labels): Note that label differences are
19966 not supported for AVR.
19968 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
19969 Olivier Hainque <hainque@adacore.com>
19971 * rtl.h (set_for_reg_notes): Declare.
19972 * emit-rtl.c (set_for_reg_notes): New function.
19973 (set_unique_reg_note): Use it.
19974 * optabs.c (add_equal_note): Likewise
19976 2014-05-27 Andrew Pinski <apinski@cavium.com>
19978 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
19979 Use <w> for the register in assembly template.
19980 (stack_protect_test): Use the mode of operands[0] for the result.
19981 (stack_protect_test_<mode>): Use <w> for the register
19982 in assembly template.
19984 2014-05-27 DJ Delorie <dj@redhat.com>
19986 * config/rx/rx.c (add_vector_labels): New.
19987 (rx_output_function_prologue): Call it.
19988 (rx_handle_func_attribute): Don't require empty arguments.
19989 (rx_handle_vector_attribute): New.
19990 (rx_attribute_table): Add "vector" attribute.
19991 * doc/extend.texi (interrupt, vector): Document new/changed
19992 RX-specific attributes.
19994 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
19996 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
19998 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
19999 predicate to detect a negative quotient.
20001 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
20003 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20004 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20005 Add X - Y CMP 0 to X CMP Y transformation.
20006 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20008 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
20010 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20013 2014-05-27 Steve Ellcey <sellcey@mips.com>
20015 * config/mips/mips.c: Add include of cgraph.h.
20017 2014-05-27 Richard Biener <rguenther@suse.de>
20019 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20021 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
20024 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
20025 * config/arm/arm-cores.def (License): Same.
20026 * config/arm/arm-opts.h (License): Same.
20027 * config/arm/aout.h (License): Same.
20028 * config/arm/bpabi.h (License): Same.
20029 * config/arm/elf.h (License): Same.
20030 * config/arm/linux-elf.h (License): Same.
20031 * config/arm/linux-gas.h (License): Same.
20032 * config/arm/netbsd-elf.h (License): Same.
20033 * config/arm/uclinux-eabi.h (License): Same.
20034 * config/arm/uclinux-elf.h (License): Same.
20035 * config/arm/vxworks.h (License): Same.
20037 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20039 * config/arm/neon.md (neon_bswap<mode>): New pattern.
20040 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
20041 (arm_init_neon_builtins): Handle NEON_BSWAP.
20042 Define required type nodes.
20043 (arm_expand_neon_builtin): Handle NEON_BSWAP.
20044 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
20045 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
20046 * config/arm/iterators.md (VDQHSD): New mode iterator.
20048 2014-05-27 Richard Biener <rguenther@suse.de>
20050 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
20051 Try using literal operands when comparing value-ranges failed.
20053 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20055 * ira.c (commutative_operand): Adjust for change to recog_data.
20056 [Missing from previous commit.]
20058 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20060 * system.h (TEST_BIT): New macro.
20061 * recog.h (alternative_mask): New type.
20062 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
20063 (recog_data_d): Replace alternative_enabled_p array with
20064 enabled_alternatives.
20065 (target_recog): New structure.
20066 (default_target_recog, this_target_recog): Declare.
20067 (get_enabled_alternatives, recog_init): Likewise.
20068 * recog.c (default_target_recog, this_target_recog): New variables.
20069 (get_enabled_alternatives): New function.
20070 (extract_insn): Use it.
20071 (recog_init): New function.
20072 (preprocess_constraints, constrain_operands): Adjust for change to
20074 * postreload.c (reload_cse_simplify_operands): Likewise.
20075 * reload.c (find_reloads): Likewise.
20076 * ira-costs.c (record_reg_classes): Likewise.
20077 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
20078 all alternatives after a disabled one would be skipped.
20079 (ira_implicitly_set_insn_hard_regs): Likewise.
20080 * ira.c (ira_setup_alts): Adjust for change to recog_data.
20081 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
20082 with enabled_alternatives.
20083 * lra.c (free_insn_recog_data): Update accordingly.
20084 (lra_update_insn_recog_data): Likewise.
20085 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
20086 * lra-constraints.c (process_alt_operands): Likewise. Handle
20087 only_alternative as part of the enabled mask.
20088 * target-globals.h (this_target_recog): Declare.
20089 (target_globals): Add a recog field.
20090 (restore_target_globals): Restore this_target_recog.
20091 * target-globals.c: Include recog.h.
20092 (default_target_globals): Initialize recog field.
20093 (save_target_globals): Likewise.
20094 * reginfo.c (reinit_regs): Call recog_init.
20095 * toplev.c (backend_init_target): Likewise.
20097 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20099 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
20100 rather than any named insn's code.
20102 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
20105 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
20106 * config/arm/arm-cores.def (License): Same.
20108 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
20110 * tree.h (decl_comdat_group): Declare.
20111 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
20112 * tree.c (decl_comdat_group): Here.
20114 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
20116 PR rtl-optimization/61222
20117 * combine.c (simplify_shift_const_1): When moving a PLUS outside
20118 the shift, truncate the PLUS operand to the result mode.
20120 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
20123 * config/i386/i386.c (ix86_rtx_costs)
20124 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
20127 2014-05-26 Martin Jambor <mjambor@suse.cz>
20129 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
20132 2014-05-26 Richard Biener <rguenther@suse.de>
20134 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
20135 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
20136 Provide specializations.
20137 (wi::int_traits <HOST_WIDE_INT>,
20138 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
20140 2014-05-26 Alan Modra <amodra@gmail.com>
20143 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
20144 params and return a bool. Remove dead code. Update comment.
20145 Assert we have a const_int source. Remove bogus code from
20146 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
20147 handling of constants > 2G and reg_equal note, from..
20148 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
20149 return value. Update comment. If we can, use a new pseudo
20150 for intermediate calculations.
20151 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
20153 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
20154 call to rs6000_emit_set_const in splitter.
20155 (movdi_internal64+2, +3): Likewise.
20157 2014-05-26 Richard Biener <rguenther@suse.de>
20159 * system.h: Define __STDC_FORMAT_MACROS before
20160 including inttypes.h.
20161 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
20162 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
20163 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
20164 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
20165 HOST_WIDEST_INT_C): Remove.
20166 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
20167 if C99 inttypes.h is not available.
20168 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
20169 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
20170 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
20171 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
20172 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
20173 (struct output_info): Likewise.
20174 (print_statistics): Adjust.
20175 (dump_bitmap_statistics): Likewise.
20176 * bt-load.c (migrate_btr_defs): Print with PRId64.
20177 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
20178 (MAX_SAFE_MULTIPLIER): Adjust.
20179 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
20180 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
20181 dump_cgraph_node): Likewise.
20182 * final.c (dump_basic_block_info): Likewise.
20183 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
20184 * gcov.c (format_gcov): Likewise.
20185 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
20187 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
20188 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
20189 (inline_small_functions, dump_overall_stats, dump_inline_stats):
20190 Use PRId64 for dumping.
20191 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
20192 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
20193 (add_allocno_hard_regs): Adjust.
20194 * loop-doloop.c (doloop_modify): Print using PRId64.
20195 * loop-iv.c (inverse): Compute in uint64_t.
20196 (determine_max_iter, iv_number_of_iterations): Likewise.
20197 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
20198 Print using PRId64.
20199 * lto-streamer-out.c (write_symbol): Use uint64_t.
20200 * mcf.c (CAP_INFINITY): Use int64_t maximum.
20201 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
20202 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
20203 * modulo-sched.c (const_iteration_count): Use int64_t.
20204 (sms_schedule): Dump using PRId64.
20205 * predict.c (dump_prediction): Likewise.
20206 * pretty-print.h (pp_widest_integer): Remove.
20207 * profile.c (get_working_sets, is_edge_inconsistent,
20208 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
20209 * tree-pretty-print.c (pp_double_int): Remove case handling
20210 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
20211 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
20213 (pass_optimize_bswap::execute): Remove restriction on hosts.
20214 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
20215 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
20216 * tree.c (widest_int_cst_value): Remove.
20217 * tree.h (widest_int_cst_value): Likewise.
20218 * value-prof.c (dump_histogram_value): Print using PRId64.
20219 * gengtype.c (main): Also inject int64_t.
20220 * ggc-page.c (struct max_alignment): Use int64_t.
20221 * alloc-pool.c (struct allocation_object_def): Likewise.
20222 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
20224 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
20225 * doc/tm.texi: Regenerated.
20226 * gengtype-lex.l (IWORD): Handle [u]int64_t.
20227 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
20228 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
20229 mmix_output_register_setting): Use [u]int64_t in prototypes.
20230 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
20231 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
20232 mmix_output_octa, mmix_output_shifted_value): Adjust.
20233 (mmix_intval): Adjust. Remove unreachable case.
20234 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
20236 2014-05-26 Richard Biener <rguenther@suse.de>
20238 * configure.ac: Drop __int64 type check. Insist that we
20239 found uint64_t and int64_t.
20240 * hwint.h (HOST_BITS_PER___INT64): Remove.
20241 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
20242 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
20243 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
20244 (HOST_WIDEST_FAST_INT): Remove __int64 case.
20245 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
20246 for dst_q_src_df_rms_cdt.
20247 * configure: Regenerate.
20248 * config.in: Likewise.
20250 2014-05-26 Michael Tautschnig <mt@debian.org>
20253 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
20254 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
20256 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20258 PR rtl-optimization/61278
20259 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
20261 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20263 PR rtl-optimization/61220
20264 Part of PR rtl-optimization/61225
20265 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
20266 insn; skip split_edge for a block with only one successor.
20268 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20270 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
20273 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20275 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
20276 (update_vtable_references): New function.
20277 (function_and_variable_visibility): Rewrite also vtable initializers.
20278 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
20280 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20282 * ggc.h (ggc_grow): New function.
20283 * ggc-none.c (ggc_grow): New function.
20284 * ggc-page.c (ggc_grow): Likewise.
20286 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20288 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20289 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
20290 comdat_can_be_unshared_p, cgraph_externally_visible_p,
20291 varpool_externally_visible_p, can_replace_by_local_alias,
20292 update_visibility_by_resolution_info, function_and_variable_visibility,
20293 pass_data_ipa_function_and_variable_visibility,
20294 make_pass_ipa_function_and_variable_visibility,
20295 whole_program_function_and_variable_visibility,
20296 pass_data_ipa_whole_program_visibility,
20297 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
20298 * cgraph.h (cgraph_local_node_p): Declare.
20299 * ipa-visibility.c: New file.
20300 * Makefile.in (OBJS): Add ipa-visiblity.o
20302 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20304 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
20305 that var decl is available.
20307 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20309 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
20310 symtab_node pointer.
20311 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
20312 (find_decls_types_r): Do not walk COMDAT_GROUP.
20313 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
20314 * varasm.c (make_decl_one_only): Use set_comdat_group;
20315 create node if needed.
20316 * ipa-inline-transform.c (save_inline_function_body): Update
20317 way we decl->symtab mapping.
20318 * symtab.c (symtab_hash, hash_node, eq_node
20319 symtab_insert_node_to_hashtable): Remove.
20320 (symtab_register_node): Update.
20321 (symtab_unregister_node): Update.
20322 (symtab_get_node): Reimplement as inline function.
20323 (symtab_add_to_same_comdat_group): Update.
20324 (symtab_dissolve_same_comdat_group_list): Update.
20325 (dump_symtab_base): Update.
20326 (verify_symtab_base): Update.
20327 (symtab_make_decl_local): Update.
20328 (fixup_same_cpp_alias_visibility): Update.
20329 (symtab_nonoverwritable_alias): Update.
20330 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
20331 * ipa.c (update_visibility_by_resolution_info): UPdate.
20332 * bb-reorder.c: Include cgraph.h
20333 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
20334 with comdat groups.
20335 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
20336 * cgraph.c (cgraph_get_create_node): Update.
20337 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
20339 (symtab_get_node): Make inline.
20340 (symtab_insert_node_to_hashtable): Remove.
20341 (symtab_can_be_discarded): Update.
20342 (decl_comdat_group): New function.
20343 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
20345 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
20347 (read_comdat_group): New function.
20348 (input_node, input_varpool_node): Use it.
20349 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
20351 * mips.c (mips_start_unique_function): Likewise.
20352 (ix86_code_end): Likewise.
20353 (rs6000_code_end): Likweise.
20354 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
20356 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20358 * gengtype-state.c (fatal_reading_state): Bring offline.
20359 * optabs.c (widening_optab_handler): Bring offline.
20360 * optabs.h (widening_optab_handler): Likewise.
20361 * final.c (get_attr_length_1): Likewise.
20363 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20365 * sched-int.h (sd_iterator_cond): Manually tail recurse.
20367 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20369 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
20370 (ppc440-compare): Include shift with dot.
20371 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
20372 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
20374 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
20376 (e6500_sfx2): Include it.
20377 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
20378 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20379 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
20380 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
20381 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
20382 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
20383 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
20384 *lshiftrt_internal1le, *lshiftrt_internal1be,
20385 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
20386 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
20387 *rotldi3_internal10le, *rotldi3_internal10be,
20388 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
20389 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
20390 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
20391 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
20392 define_insns): Use type "shift" in the appropriate alternatives.
20394 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20396 * config/rs6000/rs6000.md (type): Add "logical". Delete
20398 (dot): Adjust comment.
20399 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
20400 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
20401 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
20402 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
20403 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
20404 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
20405 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
20406 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20408 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20409 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20410 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20411 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20412 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20413 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20414 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20415 * config/rs6000/8540.md (ppc8540_su): Adjust.
20416 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20417 cell-cmp-microcoded): Adjust.
20418 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20419 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20420 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20421 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20422 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20423 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20424 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20425 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20426 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20428 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20429 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
20430 Adjust. Adjust comment.
20431 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20432 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20434 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20436 * config/rs6000/rs6000.md (type): Add "add".
20437 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
20438 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
20439 define_insns): Use it.
20440 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20442 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20443 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20444 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20445 * config/rs6000/601.md (ppc601-integer): Adjust.
20446 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20447 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20448 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20449 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20450 * config/rs6000/8540.md (ppc8540_su): Adjust.
20451 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20452 cell-cmp-microcoded): Adjust.
20453 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20454 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20455 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20456 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20457 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20458 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20459 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20460 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20461 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20463 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20464 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
20465 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20466 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20468 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20470 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
20471 "delayed_compare", "var_delayed_compare".
20472 (var_shift): New attribute.
20473 (cell_micro): Adjust.
20474 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
20475 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
20476 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
20477 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20478 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20479 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20480 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20481 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
20482 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
20483 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20484 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
20485 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
20486 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
20487 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
20488 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
20489 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
20490 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
20491 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
20492 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
20493 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
20494 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
20495 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
20496 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
20497 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20498 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20500 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20501 * config/rs6000/440.md (ppc440-integer): Adjust.
20502 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20503 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
20504 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20505 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20506 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20507 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20508 * config/rs6000/8540.md (ppc8540_su): Adjust.
20509 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20510 cell-cmp-microcoded): Adjust.
20511 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
20512 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20513 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
20514 e500mc64_delayed): Adjust.
20515 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
20516 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
20517 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20518 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
20519 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
20520 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
20521 power6-delayed-compare, power6-var-delayed-compare): Adjust.
20522 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
20523 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
20525 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20526 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20528 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20530 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
20531 (bits): New mode_attr.
20532 (idiv_ldiv): Delete mode_attr.
20533 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
20534 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20535 rs6000_adjust_priority, is_nonpipeline_insn,
20536 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20538 * config/rs6000/40x.md (ppc403-idiv): Adjust.
20539 * config/rs6000/440.md (ppc440-idiv): Adjust.
20540 * config/rs6000/476.md (ppc476-idiv): Adjust.
20541 * config/rs6000/601.md (ppc601-idiv): Adjust.
20542 * config/rs6000/603.md (ppc603-idiv): Adjust.
20543 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
20544 ppc620-ldiv): Adjust.
20545 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
20546 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
20547 * config/rs6000/8540.md (ppc8540_divide): Adjust.
20548 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
20549 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
20550 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
20551 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
20552 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
20553 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
20554 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
20555 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
20556 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
20557 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
20558 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
20559 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
20560 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
20561 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
20562 * config/rs6000/titan.md (titan_fxu_div): Adjust.
20564 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20566 * config/rs6000/rs6000.md (type): Delete "insert_word",
20567 "insert_dword". Add "insert".
20568 (size): Update comment.
20569 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20570 insn_must_be_first_in_group): Adjust.
20571 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20572 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20573 *insvsi_internal6, insvdi_internal): Adjust.
20575 * config/rs6000/40x.md (ppc403-integer): Adjust.
20576 * config/rs6000/440.md (ppc440-integer): Adjust.
20577 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
20578 * config/rs6000/601.md (ppc601-integer): Adjust.
20579 * config/rs6000/603.md (ppc603-integer): Adjust.
20580 * config/rs6000/6xx.md (ppc604-integer): Adjust.
20581 * config/rs6000/7450.md (ppc7450-integer): Adjust.
20582 * config/rs6000/7xx.md (ppc750-integer): Adjust.
20583 * config/rs6000/8540.md (ppc8540_su): Adjust.
20584 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
20585 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
20586 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20587 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
20588 * config/rs6000/e5500.md (e5500_sfx): Adjust.
20589 * config/rs6000/e6500.md (e6500_sfx): Adjust.
20590 * config/rs6000/mpc.md (mpccore-integer): Adjust.
20591 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
20592 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
20593 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
20594 * config/rs6000/power7.md (power7-integer): Adjust.
20595 * config/rs6000/power8.md (power8-1cyc): Adjust.
20596 * config/rs6000/rs64.md (rs64a-integer): Adjust.
20597 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20599 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20601 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
20602 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
20603 (size): New attribute.
20604 (dot): New attribute.
20605 (cell_micro): Adjust.
20606 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
20607 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
20608 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
20609 umuldi3_highpart): Adjust.
20610 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20611 rs6000_adjust_priority, is_nonpipeline_insn,
20612 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20614 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
20615 ppc405-imul3): Adjust.
20616 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
20617 * config/rs6000/476.md (ppc476-imul): Adjust.
20618 * config/rs6000/601.md (ppc601-imul): Adjust.
20619 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
20620 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
20621 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
20622 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
20623 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
20625 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
20626 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
20627 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
20628 cell-imul): Adjust.
20629 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
20630 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
20631 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
20632 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
20633 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
20634 * config/rs6000/mpc.md (mpccore-imul): Adjust.
20635 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
20636 power4-lmul, power4-imul, power4-imul3): Adjust.
20637 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
20638 power5-lmul, power5-imul, power5-imul3): Adjust.
20639 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
20640 power6-lmul, power6-imul, power6-imul3): Adjust.
20641 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
20642 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
20644 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
20645 rs64a-lmul): Adjust.
20646 * config/rs6000/titan.md (titan_imul): Adjust.
20648 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20650 * config/rs6000/rs6000.md (type): Add new value "halfmul".
20651 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
20652 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
20653 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
20654 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
20655 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
20656 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
20657 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
20658 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
20659 * config/rs6000/titan.md: Delete nonsensical comment.
20660 (titan_imul): Add type imul3.
20661 (titan_mulhw): Remove type imul3; add type halfmul.
20663 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20665 * config/rs6000/rs6000.md (type): Reorder, reformat.
20667 2014-05-23 Martin Jambor <mjambor@suse.cz>
20669 PR tree-optimization/53787
20670 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
20671 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
20672 analysis_done, update all uses.
20673 * ipa-prop.c: Include domwalk.h
20674 (param_analysis_info): Removed.
20675 (param_aa_status): New type.
20676 (ipa_bb_info): Likewise.
20677 (func_body_info): Likewise.
20678 (ipa_get_bb_info): New function.
20679 (aa_overwalked): Likewise.
20680 (find_dominating_aa_status): Likewise.
20681 (parm_bb_aa_status_for_bb): Likewise.
20682 (parm_preserved_before_stmt_p): Changed to use new param AA info.
20683 (load_from_unmodified_param): Accept func_body_info as a parameter
20684 instead of parms_ainfo.
20685 (parm_ref_data_preserved_p): Changed to use new param AA info.
20686 (parm_ref_data_pass_through_p): Likewise.
20687 (ipa_load_from_parm_agg_1): Likewise. Update callers.
20688 (compute_complex_assign_jump_func): Changed to use new param AA info.
20689 (compute_complex_ancestor_jump_func): Likewise.
20690 (ipa_compute_jump_functions_for_edge): Likewise.
20691 (ipa_compute_jump_functions): Removed.
20692 (ipa_compute_jump_functions_for_bb): New function.
20693 (ipa_analyze_indirect_call_uses): Likewise, moved variable
20695 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
20696 and info, moved variable declarations down.
20697 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
20699 (ipa_analyze_stmt_uses): Likewise.
20700 (ipa_analyze_params_uses): Removed.
20701 (ipa_analyze_params_uses_in_bb): New function.
20702 (ipa_analyze_controlled_uses): Likewise.
20703 (free_ipa_bb_info): Likewise.
20704 (analysis_dom_walker): New class.
20705 (ipa_analyze_node): Handle node-specific forbidden analysis,
20706 initialize and free func_body_info, use dominator walker.
20707 (ipcp_modif_dom_walker): New class.
20708 (ipcp_transform_function): Create and free func_body_info, use
20709 ipcp_modif_dom_walker, moved a lot of functionality there.
20711 2014-05-23 Marek Polacek <polacek@redhat.com>
20712 Jakub Jelinek <jakub@redhat.com>
20714 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
20715 * gcc.c (sanitize_spec_function): Likewise.
20716 * convert.c (convert_to_integer): Include "ubsan.h". Add
20717 floating-point to integer instrumentation.
20718 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
20719 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
20720 SANITIZE_NONDEFAULT.
20721 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
20722 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
20723 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
20724 * ubsan.c: Include "realmpfr.h" and "dfp.h".
20725 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
20726 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
20727 float/double/long double.
20728 (ubsan_instrument_float_cast): New function.
20729 * ubsan.h (ubsan_instrument_float_cast): Declare.
20731 2014-05-23 Jiong Wang <jiong.wang@arm.com>
20733 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
20735 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
20736 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
20737 Adjust for tailcalling through registers.
20738 * config/aarch64/aarch64.h (enum reg_class): New caller save
20740 (REG_CLASS_NAMES): Likewise.
20741 (REG_CLASS_CONTENTS): Likewise.
20742 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
20743 Allow tailcalling without decls.
20745 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
20747 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20748 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
20750 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
20751 gsi, and variables v_* to v*.
20753 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
20755 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
20757 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
20759 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
20760 * omp-low.c: Update accordingly.
20762 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
20763 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
20764 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
20765 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
20766 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
20767 GF_OMP_TARGET_KIND_UPDATE.
20769 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20770 Explicitly enumerate the expected region types.
20772 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
20775 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
20776 documentation; the old documentation didn't clearly state the
20777 constraints on the contents of the pointed-to storage.
20779 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20781 Fix bootstrap error on ia64
20782 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
20783 Return default value.
20785 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
20787 PR tree-optimization/54733
20788 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
20790 (find_bswap_or_nop_load): New.
20791 (find_bswap_1): Renamed to ...
20792 (find_bswap_or_nop_1): This. Also add support for memory source.
20793 (find_bswap): Renamed to ...
20794 (find_bswap_or_nop): This. Also add support for memory source and
20795 detection of bitwise operations equivalent to load in target
20797 (execute_optimize_bswap): Likewise. Also move its leading comment back
20798 in place and split statement transformation into ...
20799 (bswap_replace): This.
20801 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
20803 PR rtl-optimization/61215
20804 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
20805 simplify_gen_subreg until final substitution.
20807 2014-05-23 Alan Modra <amodra@gmail.com>
20810 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
20811 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
20812 Use "Y" constraint rather than "m".
20814 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20816 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
20818 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
20819 New function declaration.
20820 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
20821 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
20822 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
20823 (aarch64_init_builtins) : Initialize builtins
20824 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
20825 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
20826 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
20827 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
20828 and __builtins_aarch64_set_fpsr.
20829 (aarch64_atomic_assign_expand_fenv): New function.
20830 * config/aarch64/aarch64.md (set_fpcr): New pattern.
20831 (get_fpcr) : Likewise.
20832 (set_fpsr) : Likewise.
20833 (get_fpsr) : Likewise.
20834 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
20835 and UNSPECV_SET_FPSR.
20836 * doc/extend.texi (AARCH64 Built-in Functions) : Document
20837 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
20838 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
20840 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
20842 PR rtl-optimization/60969
20843 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
20844 constraints. Set up mem cost for NO_REGS case.
20846 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
20848 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
20850 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
20852 * config/darwin.c: Include "lto-section-names.h".
20853 (LTO_SEGMENT_NAME): Don't define.
20854 * config/i386/winnt.c: Include "lto-section-names.h".
20855 * lto-streamer.c: Include "lto-section-names.h".
20856 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
20857 * lto-wrapper.c: Include "lto-section-names.h".
20858 (LTO_SECTION_NAME_PREFIX): Don't define.
20859 * lto-section-names.h: New file.
20860 * cgraphunit.c: Include "lto-section-names.h".
20862 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
20864 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
20866 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
20869 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
20871 2014-05-22 Nick Clifton <nickc@redhat.com>
20873 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
20875 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
20877 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
20878 -> (T)A transformation to integer types.
20880 2014-05-22 Teresa Johnson <tejohnson@google.com>
20882 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
20883 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
20884 (gcov_rewrite): Use gcov_nonruntime_assert.
20885 (gcov_open): Ditto.
20886 (gcov_write_words): Ditto.
20887 (gcov_write_length): Ditto.
20888 (gcov_read_words): Use gcov_nonruntime_assert, and remove
20889 gcc_assert from IN_LIBGCOV code.
20890 (gcov_read_summary): Use gcov_error to flag profile corruption.
20891 (gcov_sync): Use gcov_nonruntime_assert.
20892 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
20893 (gcov_histo_index): Use gcov_nonruntime_assert.
20894 (static void gcov_histogram_merge): Ditto.
20895 (compute_working_sets): Ditto.
20896 * gcov-io.h (gcov_nonruntime_assert): Define.
20897 (gcov_error): Define for !IN_LIBGCOV
20899 2014-05-22 Richard Biener <rguenther@suse.de>
20901 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20902 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
20903 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
20904 and deallocation site.
20905 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20906 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
20907 passing through the incoming points-to set.
20908 (handle_lhs_call): Use flags argument instead of recomputing it.
20909 (find_func_aliases_for_call): Call handle_lhs_call with proper
20912 2014-05-22 Jakub Jelinek <jakub@redhat.com>
20914 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
20915 all padding bits in REAL_VALUE_TYPE are cleared.
20917 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20919 Cleanup and improve multipass_dfa_lookahead_guard
20920 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
20921 (core2i7_first_cycle_multipass_begin,)
20922 (core2i7_first_cycle_multipass_issue,)
20923 (core2i7_first_cycle_multipass_backtrack): Update signature.
20924 * config/ia64/ia64.c
20925 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
20926 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
20927 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
20929 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
20930 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
20932 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
20934 * doc/tm.texi: Regenerate.
20936 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
20937 * haifa-sched.c (ready_try): Make signed to allow negative values.
20938 (rebug_ready_list_1): Update.
20939 (choose_ready): Simplify.
20940 (sched_extend_ready_list): Update.
20942 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20944 Remove IA64 speculation tweaking flags
20945 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
20946 speculation tuning flags.
20947 (msched-prefer-non-data-spec-insns,)
20948 (msched-prefer-non-control-spec-insns): Obsolete options.
20949 * haifa-sched.c (choose_ready): Remove handling of
20950 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
20951 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
20952 and PREFER_NON_DATA_SPEC.
20953 * sel-sched.c (process_spec_exprs): Remove handling of
20954 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
20956 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20958 Improve scheduling debug output
20959 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
20960 (advance_one_cycle): Update.
20961 (schedule_insn, queue_to_ready): Add debug printouts.
20962 (debug_ready_list_1): New static function.
20963 (debug_ready_list): Update.
20964 (max_issue): Add debug printouts.
20965 (dump_insn_stream): New static function.
20966 (schedule_block): Use it. Also better indent printouts.
20968 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20970 Fix sched_insn debug counter
20971 * haifa-sched.c (schedule_insn): Update.
20972 (struct haifa_saved_data): Add nonscheduled_insns_begin.
20973 (save_backtrack_point, restore_backtrack_point): Update.
20974 (first_nonscheduled_insn): New static function.
20975 (queue_to_ready, choose_ready): Use it.
20976 (schedule_block): Init nonscheduled_insns_begin.
20977 (sched_emit_insn): Update.
20980 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
20982 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
20984 (aarch64_secondary_reload) : LikeWise.
20985 (aarch64_class_max_nregs) : Remove CORE_REGS.
20986 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
20987 (REG_CLASS_NAMES) : Likewise.
20988 (REG_CLASS_CONTENTS) : LikeWise.
20989 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
20991 2014-05-21 Guozhi Wei <carrot@google.com>
20994 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
20996 (vqdmulhq_n_s16): Likewise.
20998 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21000 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21002 2014-05-21 Marek Polacek <polacek@redhat.com>
21005 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21007 2014-05-21 Martin Jambor <mjambor@suse.cz>
21009 * doc/invoke.texi (Optimize Options): Document parameters
21010 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21011 ipa-cp-array-index-hint-bonus.
21013 2014-05-21 Mark Wielaard <mjw@redhat.com>
21016 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21017 version >= 3 or not strict DWARF.
21018 * langhooks.h (struct lang_hooks_for_types): Add
21019 enum_underlying_base_type.
21020 * langhooks.c (lhd_enum_underlying_base_type): New function.
21021 * gcc/langhooks.h (struct lang_hooks_for_types): Add
21022 enum_underlying_base_type.
21023 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
21024 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
21025 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
21027 2014-05-21 Richard Biener <rguenther@suse.de>
21029 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
21031 2014-05-21 John Marino <gnugcc@marino.st>
21033 * config.gcc (*-*-dragonfly*): New target.
21034 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
21035 * configure: Regenerate.
21036 * config/dragonfly-stdint.h: New.
21037 * config/dragonfly.h: New.
21038 * config/dragonfly.opt: New.
21039 * config/i386/dragonfly.h: New.
21040 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
21042 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21044 * tree.def (VOID_CST): New.
21045 * tree-core.h (TI_VOID): New.
21046 * tree.h (void_node): New.
21047 * tree.c (tree_node_structure_for_code, tree_code_size)
21048 (iterative_hash_expr): Handle VOID_CST.
21049 (build_common_tree_nodes): Initialize void_node.
21051 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
21053 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
21055 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
21057 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
21060 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
21061 flag_reorder_blocks_and_partition.
21062 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
21064 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21067 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
21069 (*addc_r_t): Add new insn_and_split.
21071 2014-05-21 Jakub Jelinek <jakub@redhat.com>
21073 PR middle-end/61252
21074 * omp-low.c (handle_simd_reference): New function.
21075 (lower_rec_input_clauses): Use it. Defer adding reference
21076 initialization even for reduction without placeholder if in simd,
21077 handle it properly later on.
21079 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21081 PR tree-optimization/60899
21082 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
21083 assume all static symbols will have definition wile parsing and
21084 check the do have definition later in compilation; check that
21085 variable referring symbol will be output before concluding that
21086 reference is safe; be conservative for referring local statics;
21087 be more precise about when comdat is output in other partition.
21089 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21092 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
21094 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
21095 (ipa_inline): Loop inline_to_all_callers until no more aliases
21098 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21100 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
21101 set writeonly flag only for vars actually written to.
21103 2014-05-20 Dehao Chen <dehao@google.com>
21105 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
21106 and callee count to get clone count.
21107 * tree-inline.c (expand_call_inline): Use callee count instead of bb
21108 count in copy_body.
21110 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
21112 PR rtl-optimization/61243
21113 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
21115 2014-05-20 Xinliang David Li <davidxl@google.com>
21117 * cgraphunit.c (walk_polymorphic_call_targets): Add
21118 dbgcnt and fopt-info support.
21119 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
21120 * ipa-devirt.c (ipa_devirt): Ditto.
21121 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
21122 * ipa.c (walk_polymorphic_call_targets): Ditto.
21123 * gimple-fold.c (fold_gimple_assign): Ditto.
21124 (gimple_fold_call): Ditto.
21125 * dbgcnt.def: New counter.
21127 2014-05-20 DJ Delorie <dj@redhat.com>
21129 * config/msp430/msp430.md (split): Don't allow subregs when
21130 splitting SImode adds.
21131 (andneghi): Fix subtraction logic.
21132 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
21134 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21136 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
21138 * except.c (switch_to_exception_section, resolve_unique_section,
21139 get_named_text_section, default_function_rodata_section,
21140 align_variable, get_block_for_decl, default_section_type_flags):
21141 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
21142 * symtab.c (symtab_add_to_same_comdat_group,
21143 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
21144 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
21146 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
21147 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
21148 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21149 (c6x_function_in_section_p): Likewise.
21150 * config/darwin.c (machopic_select_section): Likewise.
21151 * config/arm/arm.c (arm_function_in_section_p): Likewise.
21152 * config/mips/mips.c (mips_function_rodata_section): Likewise.
21153 * config/mep/mep.c (mep_select_section): LIkewise.
21154 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21156 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
21158 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
21159 EH region of calls to pure functions that can throw an exception.
21160 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
21161 (copy_reference_ops_from_call): Also copy the EH region of the call if
21162 it can throw an exception.
21164 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21166 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
21167 nested VEC_SELECTs that are inverses of each other.
21169 2014-05-20 Richard Biener <rguenther@suse.de>
21171 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
21172 (extract_and_process_scc_for_name): not here.
21173 (cond_dom_walker::before_dom_children): Only process
21174 stmts that end the BB in interesting ways.
21175 (run_scc_vn): Mark param uses as visited.
21177 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21179 * config/arm/arm.md (arith_shiftsi): Do not predicate for
21182 2014-05-20 Nick Clifton <nickc@redhat.com>
21184 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21185 (msp430_gimplify_va_arg_expr): New function.
21186 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
21188 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
21189 operand 0 in order to prevent confusion about the number of
21190 registers involved.
21192 2014-05-20 Richard Biener <rguenther@suse.de>
21194 PR tree-optimization/61221
21195 * tree-ssa-pre.c (el_to_update): Remove.
21196 (eliminate_dom_walker::before_dom_children): Handle released
21197 VDEFs by value-numbering them to the associated VUSE. Update
21198 stmt immediately for substituted call address.
21199 (eliminate): Remove delayed stmt updating code.
21200 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
21201 possibly late re-numbered vuses.
21202 (vn_reference_lookup_2): Adjust.
21203 (vn_reference_lookup_pieces): Likewise.
21204 (vn_reference_lookup): Likewise.
21206 2014-05-20 Richard Biener <rguenther@suse.de>
21208 * config.gcc: Remove need_64bit_hwint.
21209 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
21210 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
21212 * config.in: Regenerate.
21213 * configure: Likewise.
21215 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
21217 * doc/extend.texi: Create Label Attributes section,
21218 move all label attributes into it and reference it.
21220 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
21222 * arm.c (thumb1_reorg): When scanning backwards skip anything
21223 that's not a proper insn.
21225 2014-05-19 Richard Biener <rguenther@suse.de>
21227 PR tree-optimization/61221
21228 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21229 Do nothing for unreachable blocks.
21230 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
21231 Improve unreachability detection.
21233 2014-05-19 Richard Biener <rguenther@suse.de>
21235 PR tree-optimization/61209
21236 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
21238 2014-05-19 Nick Clifton <nickc@redhat.com>
21240 * except.c (init_eh): Fix computation of builtin setjmp buffer
21241 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
21243 2014-05-19 Richard Biener <rguenther@suse.de>
21245 PR tree-optimization/61184
21246 * tree-vrp.c (is_negative_overflow_infinity): Use
21247 TREE_OVERFLOW_P and do that check first.
21248 (is_positive_overflow_infinity): Likewise.
21249 (is_overflow_infinity): Likewise.
21250 (vrp_operand_equal_p): Properly treat operands with
21251 differing overflow as not equal.
21253 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
21255 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
21256 shift simplification where it was intended.
21258 2014-05-19 Christian Bruel <christian.bruel@st.com>
21261 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
21263 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
21266 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
21269 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21271 * reg-notes.def (CROSSING_JUMP): Likewise.
21272 * rtl.h (rtx_def): Update comment for jump flag.
21273 (CROSSING_JUMP_P): Define.
21274 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
21275 of a REG_CROSSING_JUMP note.
21276 * cfghooks.c (tidy_fallthru_edges): Likewise.
21277 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
21278 * emit-rtl.c (try_split): Likewise.
21279 * haifa-sched.c (sched_create_recovery_edges): Likewise.
21280 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
21281 * jump.c (redirect_jump_2): Likewise.
21282 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
21283 (relax_delay_slots): Likewise.
21284 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
21285 (bbit_di): Likewise.
21286 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
21287 * config/sh/sh.md (jump_compact): Likewise.
21288 * bb-reorder.c (rotate_loop): Likewise.
21289 (pass_duplicate_computed_gotos::execute): Likewise.
21290 (add_reg_crossing_jump_notes): Rename to...
21291 (update_crossing_jump_flags): ...this.
21292 (pass_partition_blocks::execute): Update accordingly.
21294 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21296 * tree.h: Remove extraneous template <>.
21298 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21300 * ipa.c (symtab_remove_unreachable_nodes): Remove
21301 symbol from comdat group if its body was eliminated.
21302 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
21303 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
21304 (symtab_unregister_node): ... this one.
21305 (verify_symtab_base): More strict checking of comdats.
21306 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
21308 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21310 * tree-pass.h (make_pass_ipa_comdats): New pass.
21311 * timevar.def (TV_IPA_COMDATS): New timevar.
21312 * passes.def (pass_ipa_comdats): Add.
21313 * Makefile.in (OBJS): Add ipa-comdats.o
21314 * ipa-comdats.c: New file.
21316 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21318 * ipa.c (update_visibility_by_resolution_info): New function.
21319 (function_and_variable_visibility): Use it.
21321 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21323 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
21325 (FOR_EACH_DEFINED_SYMBOL): New macro.
21326 (varpool_first_static_initializer, varpool_next_static_initializer,
21327 varpool_first_defined_variable, varpool_next_defined_variable):
21329 (symtab_in_same_comdat_p): Correctly deal with inline functions.
21331 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21333 * ggc-page.c (ggc_handle_finalizers): Add comment.
21335 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21337 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
21338 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
21339 (ggc_internal_cleared_alloc): Likewise.
21340 * ggc-page.c (finalizer): New class.
21341 (vec_finalizer): Likewise.
21342 (globals::finalizers): New member.
21343 (globals::vec_finalizers): Likewise.
21344 (ggc_internal_alloc): Record the finalizer if any for the block being
21346 (ggc_handle_finalizers): New function.
21347 (ggc_collect): Call ggc_handle_finalizers.
21348 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
21350 (ggc_internal_cleared_alloc): Likewise.
21351 (finalize): New function.
21352 (need_finalization_p): Likewise.
21353 (ggc_alloc): Install the type's destructor as the finalizer if it
21354 might do something.
21355 (ggc_cleared_alloc): Likewise.
21356 (ggc_vec_alloc): Likewise.
21357 (ggc_cleared_vec_alloc): Likewise.
21359 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21361 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
21363 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21365 * alias.c (record_alias_subset): Adjust.
21366 * bitmap.c (bitmap_element_allocate): Likewise.
21367 (bitmap_gc_alloc_stat): Likewise.
21368 * cfg.c (init_flow): Likewise.
21369 (alloc_block): Likewise.
21370 (unchecked_make_edge): Likewise.
21371 * cfgloop.c (alloc_loop): Likewise.
21372 (flow_loops_find): Likewise.
21373 (rescan_loop_exit): Likewise.
21374 * cfgrtl.c (init_rtl_bb_info): Likewise.
21375 * cgraph.c (insert_new_cgraph_node_version): Likewise.
21376 (cgraph_allocate_node): Likewise.
21377 (cgraph_create_edge_1): Likewise.
21378 (cgraph_allocate_init_indirect_info): Likewise.
21379 * cgraphclones.c (cgraph_clone_edge): Likewise.
21380 * cgraphunit.c (add_asm_node): Likewise.
21381 (init_lowered_empty_function): Likewise.
21382 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
21383 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21384 (alpha_use_linkage): Likewise.
21385 * config/arc/arc.c (arc_init_machine_status): Likewise.
21386 * config/arm/arm.c (arm_init_machine_status): Likewise.
21387 * config/avr/avr.c (avr_init_machine_status): Likewise.
21388 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21389 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
21390 * config/cris/cris.c (cris_init_machine_status): Likewise.
21391 * config/darwin.c (machopic_indirection_name): Likewise.
21392 (darwin_build_constant_cfstring): Likewise.
21393 (darwin_enter_string_into_cfstring_table): Likewise.
21394 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
21395 * config/frv/frv.c (frv_init_machine_status): Likewise.
21396 * config/i386/i386.c (get_dllimport_decl): Likewise.
21397 (ix86_init_machine_status): Likewise.
21398 (assign_386_stack_local): Likewise.
21399 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21400 (i386_pe_maybe_record_exported_symbol): Likewise.
21401 (i386_pe_record_stub): Likewise.
21402 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21403 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21404 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21405 (m32c_note_pragma_address): Likewise.
21406 * config/mep/mep.c (mep_init_machine_status): Likewise.
21407 (mep_note_pragma_flag): Likewise.
21408 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21409 (mips16_local_alias): Likewise.
21410 (mips_init_machine_status): Likewise.
21411 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21412 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21413 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
21414 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
21415 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
21416 * config/pa/pa.c (pa_init_machine_status): Likewise.
21417 (pa_get_deferred_plabel): Likewise.
21418 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
21419 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21420 (rs6000_init_machine_status): Likewise.
21421 (output_toc): Likewise.
21422 * config/s390/s390.c (s390_init_machine_status): Likewise.
21423 * config/score/score.c (score_output_external): Likewise.
21424 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21425 * config/spu/spu.c (spu_init_machine_status): Likewise.
21426 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
21427 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
21428 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21429 * coverage.c (coverage_end_function): Likewise.
21430 * dbxout.c (dbxout_init): Likewise.
21431 * doc/gty.texi: Don't mention variable_size attribute.
21432 * dwarf2cfi.c (new_cfi): Adjust.
21433 (new_cfi_row): Likewise.
21434 (copy_cfi_row): Likewise.
21435 (create_cie_data): Likewise.
21436 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
21437 (new_loc_descr): Likewise.
21438 (find_AT_string_in_table): Likewise.
21439 (add_addr_table_entry): Likewise.
21440 (new_die): Likewise.
21441 (add_var_loc_to_decl): Likewise.
21442 (clone_die): Likewise.
21443 (clone_as_declaration): Likewise.
21444 (break_out_comdat_types): Likewise.
21445 (new_loc_list): Likewise.
21446 (add_loc_descr_to_each): Likewise.
21447 (add_location_or_const_value_attribute): Likewise.
21448 (add_linkage_name): Likewise.
21449 (lookup_filename): Likewise.
21450 (dwarf2out_var_location): Likewise.
21451 (new_line_info_table): Likewise.
21452 (dwarf2out_init): Likewise.
21453 (mem_loc_descriptor): Likewise.
21454 (loc_descriptor): Likewise.
21455 (add_const_value_attribute): Likewise.
21456 (tree_add_const_value_attribute): Likewise.
21457 (comp_dir_string): Likewise.
21458 (dwarf2out_vms_debug_main_pointer): Likewise.
21459 (string_cst_pool_decl): Likewise.
21460 * emit-rtl.c (set_mem_attrs): Likewise.
21461 (get_reg_attrs): Likewise.
21462 (start_sequence): Likewise.
21463 (init_emit): Likewise.
21464 (init_emit_regs): Likewise.
21465 * except.c (init_eh_for_function): Likewise.
21466 (gen_eh_region): Likewise.
21467 (gen_eh_region_catch): Likewise.
21468 (gen_eh_landing_pad): Likewise.
21469 (add_call_site): Likewise.
21470 * function.c (add_frame_space): Likewise.
21471 (insert_temp_slot_address): Likewise.
21472 (assign_stack_temp_for_type): Likewise.
21473 (get_hard_reg_initial_val): Likewise.
21474 (allocate_struct_function): Likewise.
21475 (prepare_function_start): Likewise.
21476 (types_used_by_var_decl_insert): Likewise.
21477 * gengtype.c (variable_size_p): Remove function.
21478 (enum alloc_quantity): Remove enum.
21479 (write_typed_alloc_def): Remove function.
21480 (write_typed_struct_alloc_def): Likewise.
21481 (write_typed_typedef_alloc_def): Likewise.
21482 (write_typed_alloc_defns): Likewise.
21484 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
21485 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
21486 * ggc.h (ggc_alloc): new function.
21487 (ggc_cleared_alloc): Likewise.
21488 (ggc_vec_alloc): Template on type of vector element, and remove
21489 element size argument.
21490 (ggc_cleared_vec_alloc): Likewise.
21491 * gimple.c (gimple_build_omp_for): Adjust.
21492 (gimple_copy): Likewise.
21493 * ipa-cp.c (get_replacement_map): Likewise.
21494 (find_aggregate_values_for_callers_subset): Likewise.
21495 (known_aggs_to_agg_replacement_list): Likewise.
21496 * ipa-devirt.c (get_odr_type): Likewise.
21497 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
21498 (read_agg_replacement_chain): Likewise.
21499 * loop-iv.c (get_simple_loop_desc): Likewise.
21500 * lto-cgraph.c (input_node_opt_summary): Likewise.
21501 * lto-section-in.c (lto_new_in_decl_state): Likewise.
21502 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21503 (input_eh_region): Likewise.
21504 (input_eh_lp): Likewise.
21505 (input_cfg): Likewise.
21506 * optabs.c (set_optab_libfunc): Likewise.
21507 (init_tree_optimization_optabs): Likewise.
21508 (set_conv_libfunc): Likewise.
21509 * passes.c (do_per_function_toporder): Likewise.
21510 * rtl.h: Don't use variable_size gty attribute.
21511 * sese.c (if_region_set_false_region): Adjust.
21512 * stringpool.c (gt_pch_save_stringpool): Likewise.
21513 * target-globals.c (save_target_globals): Likewise.
21514 * toplev.c (general_init): Likewise.
21515 * trans-mem.c (record_tm_replacement): Likewise.
21516 (split_bb_make_tm_edge): Likewise.
21517 * tree-cfg.c (move_sese_region_to_fn): Likewise.
21518 * tree-data-ref.h (lambda_vector_new): Likewise.
21519 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
21520 * tree-iterator.c (tsi_link_before): Likewise.
21521 (tsi_link_after): Likewise.
21522 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
21523 * tree-ssa-loop-niter.c (record_estimate): Likewise.
21524 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
21525 * tree-ssa-operands.h: Don't use variable_size gty attribute.
21526 * tree-ssa.c (init_tree_ssa): Adjust.
21527 * tree-ssanames.c (set_range_info): Likewise.
21528 (get_ptr_info): Likewise.
21529 (duplicate_ssa_name_ptr_info): Likewise.
21530 (duplicate_ssa_name_range_info): Likewise.
21531 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
21532 (unpack_ts_fixed_cst_value_fields): Likewise.
21533 * tree.c (build_fixed): Likewise.
21534 (build_real): Likewise.
21535 (build_string): Likewise.
21536 (decl_priority_info): Likewise.
21537 (decl_debug_expr_insert): Likewise.
21538 (decl_value_expr_insert): Likewise.
21539 (decl_debug_args_insert): Likewise.
21540 (type_hash_add): Likewise.
21541 (build_omp_clause): Likewise.
21542 * ubsan.c (decl_for_type_insert): Likewise.
21543 * varasm.c (get_unnamed_section): Likewise.
21544 (get_noswitch_section): Likewise.
21545 (get_section): Likewise.
21546 (get_block_for_section): Likewise.
21547 (create_block_symbol): Likewise.
21548 (build_constant_desc): Likewise.
21549 (create_constant_pool): Likewise.
21550 (force_const_mem): Likewise.
21551 (record_tm_clone_pair): Likewise.
21552 * varpool.c (varpool_create_empty_node): Likewise.
21554 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21556 * dwarf2out.c (tree_add_const_value_attribute): Call
21557 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
21558 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
21559 instead of ggc_internal_<x>alloc_stat.
21560 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
21561 (ggc_realloc): Likewise.
21562 * ggc-none.c (ggc_internal_alloc): Likewise.
21563 (ggc_internal_cleared_alloc): Likewise.
21564 * ggc-page.c: Likewise.
21565 * ggc.h (ggc_internal_alloc_stat): Likewise.
21566 (ggc_internal_alloc): Remove macro.
21567 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
21568 (ggc_internal_cleared_alloc): Remove macro.
21569 (GGC_RESIZEVEC): Adjust.
21570 (ggc_resizevar): Remove macro.
21571 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
21572 (ggc_internal_cleared_vec_alloc_stat): Likewise.
21573 (ggc_internal_vec_cleared_alloc): Remove macro.
21574 (ggc_alloc_atomic_stat): Drop _stat suffix.
21575 (ggc_alloc_atomic): Remove macro.
21576 (ggc_alloc_cleared_atomic): Remove macro.
21577 (ggc_alloc_string_stat): Drop _stat suffix.
21578 (ggc_alloc_string): Remove macro.
21579 (ggc_alloc_rtx_def_stat): Adjust.
21580 (ggc_alloc_tree_node_stat): Likewise.
21581 (ggc_alloc_cleared_tree_node_stat): Likewise.
21582 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
21583 (ggc_alloc_cleared_simd_clone_stat): Likewise.
21584 * gimple.c (gimple_build_omp_for): Likewise.
21585 (gimple_copy): Likewise.
21586 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
21587 * toplev.c (realloc_for_line_map): Adjust.
21588 * tree-data-ref.h (lambda_vector_new): Likewise.
21589 * tree-phinodes.c (allocate_phi_node): Likewise.
21590 * tree.c (grow_tree_vec_stat): Likewise.
21591 * vec.h (va_gc::reserve): Adjust.
21593 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
21595 * config/microblaze/microblaze.c (break_handler): New Declaration.
21596 (microblaze_break_function_p,microblaze_is_break_handler): New.
21597 (compute_frame_size): Use microblaze_break_function_p.
21598 Add the test of break_handler.
21599 (microblaze_function_prologue) : Add the test of variable
21600 break_handler. Check the fnname by BREAK_HANDLER_NAME.
21601 (microblaze_function_epilogue) : Add the test of break_handler.
21602 (microblaze_globalize_label) : Add the test of break_handler.
21603 Check the name by BREAK_HANDLER_NAME.
21605 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
21607 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
21608 microblaze_is_break_handler test.
21609 (call_internal1,call_value_intern): Use microblaze_break_function_p.
21610 Use SYMBOL_REF_DECL.
21612 * config/microblaze/microblaze-protos.h
21613 (microblaze_break_function_p,microblaze_is_break_handler):
21616 * doc/extend.texi (MicroBlaze break_handler Functions): Document
21617 new MicroBlaze break_handler functions.
21619 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
21621 * doc/extend.texi (Size of an asm): Move node text according
21622 to its @menu entry position.
21624 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
21626 PR tree-optimization/61140
21627 PR tree-optimization/61150
21628 PR tree-optimization/61197
21629 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
21631 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
21633 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
21635 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
21637 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
21638 __SIZEOF_INT128__ is defined.
21640 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
21642 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
21643 (rs6000_delegitimize_address): Use it.
21645 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
21647 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
21648 inplace argument. Store the new address in the original MEM when true.
21649 * emit-rtl.c (change_address_1): Likewise.
21650 (adjust_address_1, adjust_automodify_address_1, offset_address):
21651 Update accordingly.
21652 * rtl.h (plus_constant): Add an inplace argument.
21653 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
21654 when true. Avoid generating (plus X (const_int 0)).
21655 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
21656 in-place. Pass true to plus_constant.
21657 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
21659 2014-05-16 Dehao Chen <dehao@google.com>
21661 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
21663 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
21666 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
21668 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
21670 2014-05-16 Dehao Chen <dehao@google.com>
21672 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
21673 optimize_function_for_size_p.
21674 * regs.h (REG_FREQ_FROM_BB): Likewise.
21676 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
21679 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
21680 negt_reg_operand cases.
21681 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
21683 * config/sh/predicates.md (cbranch_treg_value): Simplify.
21685 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
21687 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
21690 2014-05-16 David Malcolm <dmalcolm@redhat.com>
21693 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21695 * tree-cfg.c (dump_function_to_file): Dump the return type of
21696 functions, in a line to itself before the function body, mimicking
21697 the layout of a C function.
21699 2014-05-16 Dehao Chen <dehao@google.com>
21701 * cfghooks.c (make_forwarder_block): Use direct computation to
21702 get fall-through edge's count and frequency.
21704 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
21706 * config/arc/arc.c (arc_init): Fix typo in error message.
21707 * config/i386/i386.c (ix86_expand_builtin): Likewise.
21708 (split_stack_prologue_scratch_regno): Likewise.
21709 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
21710 word from error message.
21712 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21714 * ira-costs.c: Fix typo in comment.
21716 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
21718 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
21720 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
21722 * varpool.c (dump_varpool_node): Dump write-only flag.
21723 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
21725 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
21726 write-only variables.
21727 * ipa.c (process_references): New function.
21728 (set_readonly_bit): New function.
21729 (set_writeonly_bit): New function.
21730 (clear_addressable_bit): New function.
21731 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
21732 fix handling of aliases.
21733 * cgraph.h (struct varpool_node): Add writeonly flag.
21735 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
21737 PR rtl-optimization/60969
21738 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
21739 Calculate costs for this case.
21741 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
21743 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
21744 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
21746 2014-05-16 Richard Biener <rguenther@suse.de>
21748 PR tree-optimization/61194
21749 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
21750 bool patterns ending in a COND_EXPR.
21752 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21754 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
21756 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21758 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
21759 where we were unable to cost an RTX.
21761 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21763 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
21766 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21767 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21769 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
21771 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21772 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21774 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
21775 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
21777 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21778 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21780 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
21783 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21784 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21786 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
21789 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21790 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21792 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
21793 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
21795 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21796 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21798 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
21799 rotates and shifts.
21801 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21802 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21804 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
21805 ZERO_EXTEND and SIGN_EXTEND better.
21807 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21808 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21810 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
21811 logical operations.
21813 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21814 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21816 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
21817 costs when costing loads and stores to memory.
21819 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21820 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
21822 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
21825 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21827 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
21829 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21830 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21832 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
21834 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
21836 (aarch64_rtx_mult_cost): New.
21837 (aarch64_rtx_costs): Use it, refactor as appropriate.
21839 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21840 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21842 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
21843 emit instructions, return number of instructions which would
21845 (aarch64_add_constant): Update call to aarch64_build_constant.
21846 (aarch64_output_mi_thunk): Likewise.
21847 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
21850 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21852 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
21853 (TARGET_RTX_COSTS): Call it.
21855 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21857 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
21858 (cortexa57_vector_cost): Likewise.
21859 (cortexa57_tunings): Use them.
21861 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
21863 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
21864 (cpu_addrcost_table): Use it.
21865 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
21866 (aarch64_address_cost): Rewrite using aarch64_classify_address,
21869 2014-05-16 Richard Biener <rguenther@suse.de>
21871 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
21872 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
21873 (visit_phi): Ignore edges marked as not executable.
21874 (class cond_dom_walker): New.
21875 (cond_dom_walker::before_dom_children): Value-number
21876 control statements and mark successor edges as not
21877 executable if possible.
21878 (run_scc_vn): First walk all control statements in
21879 dominator order, marking edges as not executable.
21880 * tree-inline.c (copy_edges_for_bb): Be not confused
21881 about random edge flags.
21883 2014-05-16 Richard Biener <rguenther@suse.de>
21885 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
21887 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
21890 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
21891 (__TM_simple_begin): Use it.
21892 (__TM_begin): Likewise.
21894 2014-05-15 Martin Jambor <mjambor@suse.cz>
21897 * ipa-prop.c (update_indirect_edges_after_inlining): Check
21898 type_preserved flag when the indirect edge is polymorphic.
21900 2014-05-15 Martin Jambor <mjambor@suse.cz>
21902 PR tree-optimization/61090
21903 * tree-sra.c (sra_modify_expr): Pass the current gsi to
21904 build_ref_for_model.
21906 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21908 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
21909 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
21911 2014-05-15 Jakub Jelinek <jakub@redhat.com>
21913 PR tree-optimization/61158
21914 * fold-const.c (fold_binary_loc): If X is zero-extended and
21915 shiftc >= prec, make sure zerobits is all ones instead of
21916 invoking undefined behavior.
21918 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21920 * regcprop.h: New file.
21921 * regcprop.c (skip_debug_insn_p): New decl.
21922 (replace_oldest_value_reg): Check skip_debug_insn_p.
21923 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
21924 * shrink-wrap.c: Include regcprop.h.
21925 (prepare_shrink_wrap): Call
21926 copyprop_hardreg_forward_bb_without_debug_insn.
21928 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21930 * shrink-wrap.h: Update comment.
21931 * shrink-wrap.c: Update comment.
21932 (next_block_for_reg): Rename to live_edge_for_reg.
21933 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
21934 (move_insn_for_shrink_wrap): Split live_edge.
21935 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
21937 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
21939 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
21941 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
21942 * config/sparc/sparc.md (fptype_ut699): New attribute.
21943 (in_branch_delay): Return false if -mfix-ut699 is specified and
21944 fptype_ut699 is set to single.
21945 (truncdfsf2): Add fptype_ut699 attribute.
21946 (fix_truncdfsi2): Likewise.
21947 (floatsisf2): Change fptype attribute.
21948 (fix_truncsfsi2): Likewise.
21949 (negtf2_notv9): Delete.
21950 (negtf2_v9): Likewise.
21951 (negtf2_hq): New instruction.
21952 (negtf2): New instruction and splitter.
21953 (negdf2_notv9): Rewrite.
21954 (abstf2_notv9): Delete.
21955 (abstf2_hq_v9): Likewise.
21956 (abstf2_v9): Likewise.
21957 (abstf2_hq): New instruction.
21958 (abstf2): New instruction and splitter.
21959 (absdf2_notv9): Rewrite.
21961 2014-05-14 Cary Coutant <ccoutant@google.com>
21964 * opts.c (common_handle_option): Don't special-case "-g".
21965 (set_debug_level): Default to at least level 2 with "-g".
21967 2014-05-14 DJ Delorie <dj@redhat.com>
21969 * config/msp430/msp430.c (msp430_builtin): Add
21970 MSP430_BUILTIN_DELAY_CYCLES.
21971 (msp430_init_builtins): Register void __delay_cycles(long long).
21972 (msp430_builtin_decl): Add it.
21973 (cg_magic_constant): New.
21974 (msp430_expand_delay_cycles): New.
21975 (msp430_expand_builtin): Call it.
21976 (msp430_print_operand_raw): Change integer printing from "int" to
21978 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
21979 (delay_cycles_start): New.
21980 (delay_cycles_end): New.
21981 (delay_cycles_32): New.
21982 (delay_cycles_32x): New.
21983 (delay_cycles_16): New.
21984 (delay_cycles_16x): New.
21985 (delay_cycles_2): New.
21986 (delay_cycles_1): New.
21987 * doc/extend.texi: Document __delay_cycles().
21989 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
21991 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
21992 length attribute computation.
21994 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
21997 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
21999 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
22002 * config/sparc/sparc.md: Fix types of low and high in DI constant
22003 splitter. Use gen_int_mode in some other splitters.
22005 2014-05-14 Martin Jambor <mjambor@suse.cz>
22008 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22010 2014-05-14 James Norris <jnorris@codesourcery.com>
22012 * omp-low.c (expand_parallel_call): Remove shadow variable.
22013 (expand_omp_taskreg): Likewise.
22015 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
22017 * common/config/i386/i386-common.c
22018 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22019 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22020 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22021 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
22022 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
22023 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
22024 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
22025 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
22026 xsavecintrin.h, xsavesintrin.h.
22027 (x86_64-*-*): Ditto.
22028 * config/i386/clflushoptintrin.h: New.
22029 * config/i386/xsavecintrin.h: Ditto.
22030 * config/i386/xsavesintrin.h: Ditto.
22031 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
22032 (bit_XSAVES): Ditto.
22033 (bit_XSAVES): Ditto.
22034 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22035 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
22037 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22038 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
22039 OPTION_MASK_ISA_XSAVES.
22040 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
22041 -mxsavec, -mxsaves.
22042 (PTA_CLFLUSHOPT) Define.
22043 (PTA_XSAVEC): Ditto.
22044 (PTA_XSAVES): Ditto.
22045 (ix86_option_override_internal): Handle new options.
22046 (ix86_valid_target_attribute_inner_p): Ditto.
22047 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
22048 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
22049 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
22050 (bdesc_special_args): Add __builtin_ia32_xsaves,
22051 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
22052 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
22053 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
22054 (ix86_expand_builtin): Handle new builtins.
22055 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
22056 (TARGET_CLFLUSHOPT_P): Ditto.
22057 (TARGET_XSAVEC): Ditto.
22058 (TARGET_XSAVEC_P): Ditto.
22059 (TARGET_XSAVES): Ditto.
22060 (TARGET_XSAVES_P): Ditto.
22061 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
22062 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
22063 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
22065 (ANY_XRSTOR64): Ditto.
22067 (xrstor): Change into <xrstor>.
22068 (xrstor_rex64): Change into <xrstor>_rex64.
22069 (xrstor64): Change into <xrstor>64
22071 * config/i386/i386.opt (mclflushopt): New.
22074 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
22076 * doc/invoke.texi: Document new options.
22078 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
22080 PR rtl-optimization/60866
22081 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
22082 Default it to -1. Pass it down to init_simplejump_data.
22083 (init_simplejump_data): New parameter old_seqno. Pass it down
22084 to get_seqno_for_a_jump.
22085 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
22086 initializing new jump seqno as a last resort. Add comment.
22087 (sel_redirect_edge_and_branch): Save old seqno of the conditional
22088 jump and pass it down to sel_init_new_insn.
22089 (sel_redirect_edge_and_branch_force): Likewise.
22091 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
22093 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
22094 shifted values to avoid build warning.
22096 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
22098 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
22099 * cfgrtl.c (rtl_merge_blocks): Fix comment.
22100 (cfg_layout_merge_blocks): Likewise.
22101 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
22103 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
22105 PR rtl-optimization/60901
22106 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
22107 bb predecessor belongs to the same scheduling region. Adjust comment.
22109 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
22111 * doc/sourcebuild.texi: (dfp_hw): Document.
22112 (p8vector_hw): Likewise.
22113 (powerpc_eabi_ok): Likewise.
22114 (powerpc_elfv2): Likewise.
22115 (powerpc_htm_ok): Likewise.
22116 (ppc_recip_hw): Likewise.
22117 (vsx_hw): Likewise.
22119 2014-05-13 Cary Coutant <ccoutant@google.com>
22121 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
22123 2014-05-13 David Malcolm <dmalcolm@redhat.com>
22125 * gengtype-parse.c (require3): Eliminate in favor of...
22127 (require_template_declaration): Update to support optional single *
22130 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
22131 (create_user_defined_type): Handle a single level of explicit
22132 pointerness within template arguments.
22133 (struct write_types_data): Add field "kind".
22134 (filter_type_name): Handle "*" character.
22135 (write_user_func_for_structure_ptr): Require a write_types_data
22136 rather than just a prefix string, so that we can look up the kind
22137 of the wtd and use it as an index into wrote_user_func_for_ptr,
22138 ensuring that such functions are written at most once. Support
22139 subclasses by invoking the marking function of the ultimate base class.
22140 (write_user_func_for_structure_body): Require a write_types_data
22141 rather than just a prefix string, so that we can pass this to
22142 write_user_func_for_structure_ptr.
22143 (write_func_for_structure): Likewise.
22144 (ggc_wtd): Add initializer of new "kind" field.
22145 (pch_wtd): Likewise.
22147 * gengtype.h (enum write_types_kinds): New.
22148 (struct type): Add field wrote_user_func_for_ptr to the "s"
22151 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
22153 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
22154 instead of const_binop.
22155 (fold_binary_loc): Likewise.
22157 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
22159 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
22160 calculation to match get_ref_base_and_extent.
22162 2014-05-13 Catherine Moore <clm@codesourcery.com>
22163 Sandra Loosemore <sandra@codesourcery.com>
22165 * configure.ac: Fix assembly for explicit JALR relocation check.
22166 * configure: Regenerate.
22168 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22170 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
22171 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
22172 Remove associated type declarations and initialisations.
22173 (arm_expand_neon_builtin): Likewise.
22174 (neon_emit_pair_result_insn): Delete.
22175 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
22176 * config/arm/neon.md (neon_vtrn<mode>): Delete.
22177 (neon_vzip<mode>): Likewise.
22178 (neon_vuzp<mode>): Likewise.
22180 2014-05-13 Richard Biener <rguenther@suse.de>
22183 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
22184 it needs revisiting whether the call still may be tail-called.
22186 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22188 * rtl.def (SYMBOL_REF): Remove middle "0" field.
22189 * rtl.h (block_symbol): Reduce number of fields to 2.
22190 (rtx_def): Add u2.symbol_ref_flags.
22191 (SYMBOL_REF_FLAGS): Use it.
22192 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
22193 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
22194 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
22195 Lower index of SYMBOL_REF_DATA.
22196 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
22197 Print SYMBOL_REF_FLAGS at the same time.
22198 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
22200 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22202 * rtl.def (VAR_LOCATION): Remove "i" field.
22203 * rtl.h (rtx_def): Add u2.var_location_status.
22204 (PAT_VAR_LOCATION_STATUS): Use it.
22205 (gen_rtx_VAR_LOCATION): Declare.
22206 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
22207 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
22208 * var-tracking.c (emit_note_insn_var_location): Remove casts.
22210 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22212 * rtl.def (scratch): Fix outdated comment and remove "0" field.
22213 * gengtype.c (adjust_field_rtx_def): Update accordingly.
22215 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22217 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
22218 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
22219 * rtl.h (rtx_def): Add insn_uid to u2 field.
22220 (RTX_FLAG_CHECK8): Delete in favor of...
22221 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
22222 (INSN_DELETED_P): Update accordingly.
22223 (INSN_UID): Use u2.insn_uid.
22224 (INSN_CHAIN_CODE_P): Define.
22225 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
22226 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
22227 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
22228 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
22229 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
22230 indices accordingly.
22231 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
22232 Update indices for insn-chain rtxes.
22233 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
22234 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
22235 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
22236 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
22237 * combine.c (try_combine): Likewise.
22238 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22240 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22242 * rtl.def (REG): Remove middle field.
22243 * rtl.h (rtx_def): Add orignal_regno to u2.
22244 (ORIGINAL_REGNO): Use it instead of field 1.
22245 (REG_ATTRS): Lower field index accordingly.
22246 * gengtype.c (adjust_field_rtx_def): Remove handling of
22247 ORIGINAL_REGNO. Move REG_ATTRS index down.
22248 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
22249 code that prints the REGNO.
22251 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22253 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
22256 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22258 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
22260 2014-05-13 Bin Cheng <bin.cheng@arm.com>
22262 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
22263 (alloc_iv): Lower base expressions containing ADDR_EXPR.
22265 2014-05-13 Ian Bolton <ian.bolton@arm.com>
22267 * config/aarch64/aarch64-protos.h
22268 (aarch64_hard_regno_caller_save_mode): New prototype.
22269 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
22271 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
22273 2014-05-13 Christian Bruel <christian.bruel@st.com>
22275 * target.def (mode_switching): New hook vector.
22276 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
22277 (mode_exit, modepriority_to_mode): Likewise.
22278 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
22279 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22280 * target.h: Include tm.h and hard-reg-set.h.
22281 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
22282 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
22283 * doc/tm.texi Regenerate.
22284 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22285 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22286 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
22287 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
22288 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22289 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22290 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
22291 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
22292 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
22293 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
22294 (ix86_emit_mode_set): Hookify.
22295 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
22297 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22298 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
22299 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
22300 (epiphany_mode_priority_to_mode): Remove declaration.
22301 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
22302 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
22303 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
22305 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
22306 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
22307 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
22309 2014-05-13 Jakub Jelinek <jakub@redhat.com>
22312 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
22313 is const0_rtx, return immediately. Don't test count == 0 when
22316 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22318 * Makefile.in: add shrink-wrap.o.
22319 * config/i386/i386.c: include "shrink-wrap.h"
22320 * function.c: Likewise.
22321 (requires_stack_frame_p, next_block_for_reg,
22322 move_insn_for_shrink_wrap, prepare_shrink_wrap,
22323 dup_block_and_redirect): Move to shrink-wrap.c
22324 (thread_prologue_and_epilogue_insns): Extract three code segments
22325 as functions in shrink-wrap.c
22326 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
22328 * shrink-wrap.c: New file.
22329 * shrink-wrap.h: New file.
22331 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22333 * doc/extend.texi: Reflect current numbers of pragmas. Remove
22334 reference to Solaris.
22336 2014-05-12 Mike Stump <mikestump@comcast.net>
22339 * genattrtab.c (filename): Add.
22340 (convert_set_attr_alternative): Improve error message.
22341 (check_defs): Restore read_md_filename for error messages.
22342 (gen_insn): Save filename.
22344 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
22346 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
22347 -fno-local-ivars and -fivar-visibility.
22348 * c-family/c.opt: Make -Wshadow also implicitly enable
22351 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22353 * doc/tm.texi: Remove reference to deleted macro.
22354 * doc/tm.texi.in: Likewise.
22356 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22359 * config/avr/avr.c (avr_out_store_psi): Use correct constant
22362 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
22365 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
22366 * config/arm/aout.h (License): Same.
22367 * config/arm/bpabi.h (License): Same.
22368 * config/arm/elf.h (License): Same.
22369 * config/arm/linux-elf.h (License): Same.
22370 * config/arm/linux-gas.h (License): Same.
22371 * config/arm/netbsd-elf.h (License): Same.
22372 * config/arm/uclinux-eabi.h (License): Same.
22373 * config/arm/uclinux-elf.h (License): Same.
22374 * config/arm/vxworks.h (License): Same.
22376 2014-05-11 Jakub Jelinek <jakub@redhat.com>
22378 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
22379 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
22380 number of operands to 3.
22381 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
22382 * tree-nested.c (convert_nonlocal_omp_clauses,
22383 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
22384 * gimplify.c (gimplify_scan_omp_clauses): Handle
22385 OMP_CLAUSE_LINEAR_STMT.
22386 * omp-low.c (lower_rec_input_clauses): Fix typo.
22387 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
22388 cast between Fortran boolean_type_node and C _Bool if
22391 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
22393 PR tree-optimization/61136
22394 * wide-int.h (multiple_of_p): Define a version that doesn't return
22396 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
22397 integer_zerop/const_binop pair.
22398 (multiple_of_p): Likewise, converting both operands to widest_int
22401 2014-05-09 Teresa Johnson <tejohnson@google.com>
22403 * cgraphunit.c (analyze_functions): Use correct dump file.
22405 2014-05-09 Florian Weimer <fweimer@redhat.com>
22407 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
22409 (stack_protect_return_slot_p): New function.
22410 (expand_used_vars): Call stack_protect_decl_p and
22411 stack_protect_return_slot_p for -fstack-protector-strong.
22413 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
22414 Andrew Haley <aph@redhat.com>
22415 Richard Sandiford <rdsandiford@googlemail.com>
22417 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
22420 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
22422 PR middle-end/61111
22423 * fold-const.c (fold_binary_loc): Changed width of mask.
22425 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22427 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
22428 unsigned int initializers for regno_in, regno_out.
22430 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22433 * config/avr/avr.md (cc): Add new attribute set_vzn.
22434 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
22435 Set cc insn attribute to set_vzn instead of set_zn for alternatives
22436 with INC, DEC or NEG.
22437 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
22438 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
22439 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
22441 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22444 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22446 * wide-int.cc (UTItype): Define.
22447 (UDWtype): Define for appropriate W_TYPE_SIZE.
22449 2014-05-09 Richard Biener <rguenther@suse.de>
22451 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
22452 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
22453 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
22454 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
22455 ssa_propagate): Adjust.
22457 2014-05-08 Jeff Law <law@redhat.com>
22459 PR tree-optimization/61009
22460 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
22461 tri-state rather than a boolean. When a block is too big to
22462 thread through, inform caller via negative return value.
22463 (thread_across_edge): If a block was too big for normal threading,
22464 then it's too big for a joiner too, so remove temporary equivalences
22465 and return immediately.
22467 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
22468 Matthias Klose <doko@ubuntu.com>
22471 * optc-gen.awk: Fix option handling for -Wunused-parameter.
22473 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22476 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
22478 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22481 * config/alpha/alpha.c: Include gimple-iterator.h.
22482 (alpha_gimple_fold_builtin): New function. Move
22483 ALPHA_BUILTIN_UMULH folding from ...
22484 (alpha_fold_builtin): ... here.
22485 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
22487 2014-05-08 Wei Mi <wmi@google.com>
22490 * config/i386/i386.c (ix86_compute_frame_layout): Update
22491 preferred_stack_boundary for call, expanded from tls descriptor.
22492 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
22493 to depend on SP register.
22494 (*tls_local_dynamic_base_32_gnu): Ditto.
22495 (*tls_local_dynamic_32_once): Ditto.
22496 (tls_global_dynamic_64_<mode>): Set
22497 ix86_tls_descriptor_calls_expanded_in_cfun.
22498 (tls_local_dynamic_base_64_<mode>): Ditto.
22499 (tls_global_dynamic_32): Set
22500 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
22501 to depend on SP register.
22502 (tls_local_dynamic_base_32): Ditto.
22504 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22506 * config/arm/arm_neon.h: Update comment.
22507 * config/arm/neon-docgen.ml: Delete.
22508 * config/arm/neon-gen.ml: Delete.
22509 * doc/arm-neon-intrinsics.texi: Update comment.
22511 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22513 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
22515 (vand, vorr, veor, vorn, vbic): Remove.
22516 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
22518 (neon_vsub_unspec): Likewise.
22519 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
22521 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22523 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
22524 (vadd_s16): Likewise.
22525 (vadd_s32): Likewise.
22526 (vadd_f32): Likewise.
22527 (vadd_u8): Likewise.
22528 (vadd_u16): Likewise.
22529 (vadd_u32): Likewise.
22530 (vadd_s64): Likewise.
22531 (vadd_u64): Likewise.
22532 (vaddq_s8): Likewise.
22533 (vaddq_s16): Likewise.
22534 (vaddq_s32): Likewise.
22535 (vaddq_s64): Likewise.
22536 (vaddq_f32): Likewise.
22537 (vaddq_u8): Likewise.
22538 (vaddq_u16): Likewise.
22539 (vaddq_u32): Likewise.
22540 (vaddq_u64): Likewise.
22541 (vmul_s8): Likewise.
22542 (vmul_s16): Likewise.
22543 (vmul_s32): Likewise.
22544 (vmul_f32): Likewise.
22545 (vmul_u8): Likewise.
22546 (vmul_u16): Likewise.
22547 (vmul_u32): Likewise.
22548 (vmul_p8): Likewise.
22549 (vmulq_s8): Likewise.
22550 (vmulq_s16): Likewise.
22551 (vmulq_s32): Likewise.
22552 (vmulq_f32): Likewise.
22553 (vmulq_u8): Likewise.
22554 (vmulq_u16): Likewise.
22555 (vmulq_u32): Likewise.
22556 (vsub_s8): Likewise.
22557 (vsub_s16): Likewise.
22558 (vsub_s32): Likewise.
22559 (vsub_f32): Likewise.
22560 (vsub_u8): Likewise.
22561 (vsub_u16): Likewise.
22562 (vsub_u32): Likewise.
22563 (vsub_s64): Likewise.
22564 (vsub_u64): Likewise.
22565 (vsubq_s8): Likewise.
22566 (vsubq_s16): Likewise.
22567 (vsubq_s32): Likewise.
22568 (vsubq_s64): Likewise.
22569 (vsubq_f32): Likewise.
22570 (vsubq_u8): Likewise.
22571 (vsubq_u16): Likewise.
22572 (vsubq_u32): Likewise.
22573 (vsubq_u64): Likewise.
22574 (vand_s8): Likewise.
22575 (vand_s16): Likewise.
22576 (vand_s32): Likewise.
22577 (vand_u8): Likewise.
22578 (vand_u16): Likewise.
22579 (vand_u32): Likewise.
22580 (vand_s64): Likewise.
22581 (vand_u64): Likewise.
22582 (vandq_s8): Likewise.
22583 (vandq_s16): Likewise.
22584 (vandq_s32): Likewise.
22585 (vandq_s64): Likewise.
22586 (vandq_u8): Likewise.
22587 (vandq_u16): Likewise.
22588 (vandq_u32): Likewise.
22589 (vandq_u64): Likewise.
22590 (vorr_s8): Likewise.
22591 (vorr_s16): Likewise.
22592 (vorr_s32): Likewise.
22593 (vorr_u8): Likewise.
22594 (vorr_u16): Likewise.
22595 (vorr_u32): Likewise.
22596 (vorr_s64): Likewise.
22597 (vorr_u64): Likewise.
22598 (vorrq_s8): Likewise.
22599 (vorrq_s16): Likewise.
22600 (vorrq_s32): Likewise.
22601 (vorrq_s64): Likewise.
22602 (vorrq_u8): Likewise.
22603 (vorrq_u16): Likewise.
22604 (vorrq_u32): Likewise.
22605 (vorrq_u64): Likewise.
22606 (veor_s8): Likewise.
22607 (veor_s16): Likewise.
22608 (veor_s32): Likewise.
22609 (veor_u8): Likewise.
22610 (veor_u16): Likewise.
22611 (veor_u32): Likewise.
22612 (veor_s64): Likewise.
22613 (veor_u64): Likewise.
22614 (veorq_s8): Likewise.
22615 (veorq_s16): Likewise.
22616 (veorq_s32): Likewise.
22617 (veorq_s64): Likewise.
22618 (veorq_u8): Likewise.
22619 (veorq_u16): Likewise.
22620 (veorq_u32): Likewise.
22621 (veorq_u64): Likewise.
22622 (vbic_s8): Likewise.
22623 (vbic_s16): Likewise.
22624 (vbic_s32): Likewise.
22625 (vbic_u8): Likewise.
22626 (vbic_u16): Likewise.
22627 (vbic_u32): Likewise.
22628 (vbic_s64): Likewise.
22629 (vbic_u64): Likewise.
22630 (vbicq_s8): Likewise.
22631 (vbicq_s16): Likewise.
22632 (vbicq_s32): Likewise.
22633 (vbicq_s64): Likewise.
22634 (vbicq_u8): Likewise.
22635 (vbicq_u16): Likewise.
22636 (vbicq_u32): Likewise.
22637 (vbicq_u64): Likewise.
22638 (vorn_s8): Likewise.
22639 (vorn_s16): Likewise.
22640 (vorn_s32): Likewise.
22641 (vorn_u8): Likewise.
22642 (vorn_u16): Likewise.
22643 (vorn_u32): Likewise.
22644 (vorn_s64): Likewise.
22645 (vorn_u64): Likewise.
22646 (vornq_s8): Likewise.
22647 (vornq_s16): Likewise.
22648 (vornq_s32): Likewise.
22649 (vornq_s64): Likewise.
22650 (vornq_u8): Likewise.
22651 (vornq_u16): Likewise.
22652 (vornq_u32): Likewise.
22653 (vornq_u64): Likewise.
22655 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22657 * wide-int.cc (UTItype): Define.
22658 (UDWtype): Define for appropriate W_TYPE_SIZE.
22660 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
22662 PR tree-optimization/59100
22663 * tree-ssa-phiopt.c: Include tree-inline.h.
22664 (neutral_element_p, absorbing_element_p): New functions.
22665 (value_replacement): Handle conditional binary operations with a
22666 neutral or absorbing element.
22668 2014-05-08 Richard Biener <rguenther@suse.de>
22670 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
22671 folding the expression.
22672 (valueize_expr): Remove.
22673 (visit_reference_op_load): Do not valueize the result of
22675 (simplify_binary_expression): Likewise.
22676 (simplify_unary_expression): Likewise.
22678 2014-05-08 Richard Biener <rguenther@suse.de>
22680 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
22681 looking at TYPE_ARG_TYPES.
22683 2014-05-08 Richard Biener <rguenther@suse.de>
22685 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
22686 pointer propagation special-case.
22688 2014-05-08 Bin Cheng <bin.cheng@arm.com>
22690 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
22691 core part of address expressions.
22693 2014-05-08 Alan Modra <amodra@gmail.com>
22696 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
22697 loads and stores when -mno-strict-align at any alignment.
22698 (expand_block_clear): Similarly. Also correct calculation of
22701 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
22703 PR middle-end/39246
22704 * tree-complex.c (expand_complex_move): Keep line info when expanding
22706 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
22707 of complex expression. Use new argument to display correct location
22708 for values coming from phi statement.
22709 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
22710 (warn_uninitialized_phi): Pass location of phi argument to
22712 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
22713 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
22715 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
22717 * config/rs6000/predicates.md (indexed_address_mem): New.
22718 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
22719 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
22720 fpstore_ux, fpstore_u.
22721 (sign_extend, indexed, update): New.
22722 (cell_micro): Adjust.
22723 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
22724 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
22725 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
22726 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
22727 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
22728 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
22729 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
22730 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
22731 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
22732 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
22733 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
22734 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
22735 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
22736 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
22737 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
22739 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
22740 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
22741 *vsx_extract_<mode>_store): Adjust.
22742 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
22743 is_cracked_insn, insn_must_be_first_in_group,
22744 insn_must_be_last_in_group): Adjust.
22746 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
22748 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
22749 ppc440-fpstore): Adjust.
22750 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
22751 ppc476-fpstore): Adjust.
22752 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
22753 ppc601-fpstore): Adjust.
22754 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
22756 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
22758 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
22759 ppc7450-fpstore): Adjust.
22760 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
22761 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
22762 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
22764 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
22765 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
22766 cell-fpstore, cell-fpstore-update): Adjust.
22767 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
22768 ppce300c3_store, ppce300c3_fpstore): Adjust.
22769 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
22770 e500mc_fpstore): Adjust.
22771 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
22772 e500mc64_store, e500mc64_fpstore): Adjust.
22773 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
22774 e5500_fpstore): Adjust.
22775 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
22776 e6500_fpstore): Adjust.
22777 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
22779 * config/rs6000/power4.md (power4-load, power4-load-ext,
22780 power4-load-ext-update, power4-load-ext-update-indexed,
22781 power4-load-update-indexed, power4-load-update, power4-fpload,
22782 power4-fpload-update, power4-store, power4-store-update,
22783 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
22785 * config/rs6000/power5.md (power5-load, power5-load-ext,
22786 power5-load-ext-update, power5-load-ext-update-indexed,
22787 power5-load-update-indexed, power5-load-update, power5-fpload,
22788 power5-fpload-update, power5-store, power5-store-update,
22789 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
22791 * config/rs6000/power6.md (power6-load, power6-load-ext,
22792 power6-load-update, power6-load-update-indexed,
22793 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
22794 power6-fpload-update, power6-store, power6-store-update,
22795 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
22797 * config/rs6000/power7.md (power7-load, power7-load-ext,
22798 power7-load-update, power7-load-update-indexed,
22799 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
22800 power7-fpload-update, power7-store, power7-store-update,
22801 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
22803 * config/rs6000/power8.md (power8-load, power8-load-update,
22804 power8-load-ext, power8-load-ext-update, power8-fpload,
22805 power8-fpload-update, power8-store, power8-store-update-indexed,
22806 power8-fpstore, power8-fpstore-update): Adjust.
22807 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
22809 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
22810 titan_lsu_store, titan_lsu_fpstore): Adjust.
22811 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
22813 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
22816 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
22817 unrolled byte insns. Emit address increments after move insns.
22819 2014-05-07 David Malcolm <dmalcolm@redhat.com>
22821 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
22822 const_gimple, rather than a gimple.
22823 (gimple_call_builtin_p): Likewise, for the three variants.
22825 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
22826 (gimple_call_builtin_p): Likewise, for the three variants.
22828 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22830 PR tree-optimization/61095
22831 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
22833 2014-05-07 Richard Biener <rguenther@suse.de>
22835 PR tree-optimization/61034
22836 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
22837 (maybe_skip_until): Use translate to take into account
22838 lattices when trying to do disambiguations.
22839 (get_continuation_for_phi_1): Likewise.
22840 (get_continuation_for_phi): Adjust for added translate arguments.
22841 (walk_non_aliased_vuses): Likewise.
22842 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
22843 (walk_non_aliased_vuses): Likewise.
22844 (call_may_clobber_ref_p_1): Declare.
22845 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
22846 calls. Stop early if we are only supposed to disambiguate.
22847 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
22849 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
22851 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
22852 Emit an error when the function has arguments.
22854 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
22856 * cfgloop.h (unswitch_loops): Remove.
22857 * doc/passes.texi: Remove references to loop-unswitch.c
22858 * timevar.def (TV_LOOP_UNSWITCH): Remove.
22860 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
22862 * tree-vect-data-refs.c (vect_grouped_load_supported): New
22863 check for loads group of length 3.
22864 (vect_permute_load_chain): New permutations for loads group of
22866 * tree-vect-stmts.c (vect_model_load_cost): Change cost
22867 of vec_perm_shuffle for the new permutations.
22869 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
22871 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
22872 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
22873 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
22874 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
22875 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
22876 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
22877 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
22878 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
22880 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
22882 * loop-unswitch.c: Delete.
22884 2014-05-07 Richard Biener <rguenther@suse.de>
22886 * config.gcc: Always set need_64bit_hwint to yes.
22888 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
22890 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
22891 of using optimize_size.
22893 2014-05-06 Mike Stump <mikestump@comcast.net>
22895 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
22897 2014-05-06 Joseph Myers <joseph@codesourcery.com>
22899 * config/i386/sse.md (*mov<mode>_internal)
22900 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
22901 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
22902 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
22903 (*<code><mode>3, *andnot<mode>3<mask_name>)
22904 (<mask_codefor><code><mode>3<mask_name>): Only consider
22905 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
22907 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22910 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22912 * lra-constraints.c (valid_address_p): Move earlier in file.
22913 Add a constraint argument to the address_info version.
22914 (satisfies_memory_constraint_p): New function.
22915 (satisfies_address_constraint_p): Likewise.
22916 (process_alt_operands, curr_insn_transform): Use them.
22917 (process_address): Pass the constraint to valid_address_p when
22918 checking address operands.
22920 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
22922 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
22923 to their respective blocks. Fix inadvertent use of "node".
22925 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22927 * emit-rtl.c (init_derived_machine_modes): New functionm, split
22929 (init_emit_once): ...here.
22930 * rtl.h (init_derived_machine_modes): Declare.
22931 * toplev.c (do_compile): Call it even if no_backend.
22933 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
22934 Mike Stump <mikestump@comcast.net>
22935 Richard Sandiford <rdsandiford@googlemail.com>
22936 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22938 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
22939 (rtx_equal_for_memref_p): Update comment.
22940 (adjust_offset_for_component_ref): Use wide-int interfaces.
22941 * builtins.c (get_object_alignment_2): Likewise.
22942 (c_readstr): Likewise.
22943 (target_char_cast): Add comment.
22944 (determine_block_size): Use wide-int interfaces.
22945 (expand_builtin_signbit): Likewise.
22946 (fold_builtin_int_roundingfn): Likewise.
22947 (fold_builtin_bitop): Likewise.
22948 (fold_builtin_bswap): Likewise.
22949 (fold_builtin_logarithm): Use signop.
22950 (fold_builtin_pow): Likewise.
22951 (fold_builtin_memory_op): Use wide-int interfaces.
22952 (fold_builtin_object_size): Likewise.
22953 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
22954 nb_iterations_estimate.
22955 (record_niter_bound): Use wide-int interfaces.
22956 (get_estimated_loop_iterations_int): Likewise.
22957 (get_estimated_loop_iterations): Likewise.
22958 (get_max_loop_iterations): Likewise.
22959 * cfgloop.h: Include wide-int.h.
22960 (struct nb_iter_bound): Change bound to widest_int.
22961 (struct loop): Change nb_iterations_upper_bound and
22962 nb_iterations_estimate to widest_int.
22963 (record_niter_bound): Switch to use widest_int.
22964 (get_estimated_loop_iterations): Likewise.
22965 (get_max_loop_iterations): Likewise.
22966 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
22967 update for wide-int.
22968 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
22969 * combine.c (try_combine): Likewise.
22970 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
22971 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
22973 (aarch64_float_const_representable_p): Likewise.
22974 * config/arc/arc.c: Include wide-int.h.
22975 (arc_can_use_doloop_p): Use wide-int interfaces.
22976 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
22977 (vfp3_const_double_index): Likewise.
22978 * config/avr/avr.c (avr_out_round): Likewise.
22979 (avr_fold_builtin): Likewise.
22980 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
22981 (bfin_can_use_doloop_p): Likewise.
22982 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
22983 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
22984 * config/i386/i386.c: Include wide-int.h.
22985 (ix86_data_alignment): Use wide-int interfaces.
22986 (ix86_local_alignment): Likewise.
22987 (ix86_emit_swsqrtsf): Update real_from_integer.
22988 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
22989 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22990 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
22991 (zero_constant): Likewise.
22992 (input_operand): Likewise.
22993 (splat_input_operand): Likewise.
22994 (non_logical_cint_operand): Change const_double to const_wide_int.
22995 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
22996 (easy_altivec_constant): Remove comment.
22997 (paired_expand_vector_init): Use CONSTANT_P.
22998 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
22999 (rs6000_emit_move): Update checks.
23000 (rs6000_aggregate_candidate): Use wide-int interfaces.
23001 (rs6000_expand_ternop_builtin): Likewise.
23002 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23003 (rs6000_assemble_integer): Likewise.
23004 (rs6000_hash_constant): Likewise.
23005 (output_toc): Likewise.
23006 (rs6000_rtx_costs): Likewise.
23007 (rs6000_emit_swrsqrt); Update call to real_from_integer.
23008 * config/rs6000/rs6000-c.c: Include wide-int.h.
23009 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23010 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23011 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23012 Handle CONST_WIDE_INT.
23013 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23014 Use tree_fits_uhwi_p.
23015 * config/sparc/sparc.c: Include wide-int.h.
23016 (sparc_fold_builtin): Use wide-int interfaces.
23017 * config/vax/vax.c: Include wide-int.h.
23018 (vax_float_literal): Use real_from_integer.
23019 * coretypes.h (struct hwivec_def): New.
23021 (const_hwivec): New.
23022 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
23023 (equiv_constant): Handle CONST_WIDE_INT.
23024 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
23025 (cselib_hash_rtx): Handle CONST_WIDE_INT.
23026 * dbxout.c (stabstr_U): Use wide-int interfaces.
23027 (dbxout_type): Update to use cst_fits_shwi_p.
23028 * defaults.h (LOG2_BITS_PER_UNIT): Define.
23029 (TARGET_SUPPORTS_WIDE_INT): Add default.
23030 * dfp.c: Include wide-int.h.
23031 (decimal_real_to_integer2): Use wide-int interfaces and rename to
23032 decimal_real_to_integer.
23033 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
23034 decimal_real_to_integer.
23035 * doc/generic.texi (Constant expressions): Update for wide_int.
23036 * doc/rtl.texi (const_double): Likewise.
23037 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
23038 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
23039 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
23040 (REAL_VALUE_FROM_INT): Remove.
23041 (TARGET_SUPPORTS_WIDE_INT): New.
23042 * doc/tm.texi: Regenerate.
23043 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
23044 * double-int.h: Include wide-int.h.
23045 (struct wi::int_traits): New.
23046 * dwarf2out.c (get_full_len): New.
23047 (dw_val_equal_p): Add case dw_val_class_wide_int.
23048 (size_of_loc_descr): Likewise.
23049 (output_loc_operands): Likewise.
23050 (insert_double): Remove.
23051 (insert_wide_int): New.
23052 (add_AT_wide): New.
23053 (print_die): Add case dw_val_class_wide_int.
23054 (attr_checksum): Likewise.
23055 (attr_checksum_ordered): Likewise.
23056 (same_dw_val_p): Likewise.
23057 (size_of_die): Likewise.
23058 (value_format): Likewise.
23059 (output_die): Likewise.
23060 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
23062 (clz_loc_descriptor): Use wide-int interfaces.
23063 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
23064 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
23065 (round_up_to_align): Use wide-int interfaces.
23066 (field_byte_offset): Likewise.
23067 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
23068 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
23069 CONST_DOUBLE handling. Use wide-int interfaces.
23070 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
23071 (gen_enumeration_type_die): Use add_AT_wide.
23072 (hash_loc_operands): Add case dw_val_class_wide_int.
23073 (compare_loc_operands): Likewise.
23074 * dwarf2out.h: Include wide-int.h.
23075 (wide_int_ptr): New.
23076 (enum dw_val_class): Add dw_val_class_wide_int.
23077 (struct dw_val_struct): Add val_wide.
23078 * emit-rtl.c (const_wide_int_htab): New.
23079 (const_wide_int_htab_hash): New.
23080 (const_wide_int_htab_eq): New.
23081 (lookup_const_wide_int): New.
23082 (const_double_htab_hash): Use wide-int interfaces.
23083 (const_double_htab_eq): Likewise.
23084 (rtx_to_double_int): Conditionally compile for wide-int.
23085 (immed_double_int_const): Rename to immed_wide_int_const and
23086 update for wide-int.
23087 (immed_double_const): Conditionally compile for wide-int.
23088 (init_emit_once): Use wide-int interfaces.
23089 * explow.c (plus_constant): Likewise.
23090 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
23091 (lshift_value): Use wide-int interfaces.
23092 (expand_mult): Likewise.
23093 (choose_multiplier): Likewise.
23094 (expand_smod_pow2): Likewise.
23095 (make_tree): Likewise.
23096 * expr.c (convert_modes): Consolidate handling of constants.
23097 Use wide-int interfaces.
23098 (emit_group_load_1): Add note.
23099 (store_expr): Update comment.
23100 (get_inner_reference): Use wide-int interfaces.
23101 (expand_constructor): Update comment.
23102 (expand_expr_real_2): Use wide-int interfaces.
23103 (expand_expr_real_1): Likewise.
23104 (reduce_to_bit_field_precision): Likewise.
23105 (const_vector_from_tree): Likewise.
23106 * final.c: Include wide-int-print.h.
23107 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
23108 * fixed-value.c: Include wide-int.h.
23109 (fixed_from_string): Use wide-int interfaces.
23110 (fixed_to_decimal): Likewise.
23111 (fixed_convert_from_real): Likewise.
23112 (real_convert_from_fixed): Likewise.
23113 * fold-const.h (mem_ref_offset): Return an offset_int.
23114 (div_if_zero_remainder): Remove code parameter.
23115 * fold-const.c (div_if_zero_remainder): Remove code parameter.
23116 Use wide-int interfaces.
23117 (may_negate_without_overflow_p): Use wide-int interfaces.
23118 (negate_expr_p): Likewise.
23119 (fold_negate_expr): Likewise.
23120 (int_const_binop_1): Likewise.
23121 (const_binop): Likewise.
23122 (fold_convert_const_int_from_int): Likewise.
23123 (fold_convert_const_int_from_real): Likewise.
23124 (fold_convert_const_int_from_fixed): Likewise.
23125 (fold_convert_const_fixed_from_int): Likewise.
23126 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
23127 (sign_bit_p): Use wide-int interfaces.
23128 (make_range_step): Likewise.
23129 (build_range_check): Likewise. Pass an integer of the correct type
23130 instead of using integer_one_node.
23131 (range_predecessor): Pass an integer of the correct type instead
23132 of using integer_one_node.
23133 (range_successor): Likewise.
23134 (merge_ranges): Likewise.
23135 (unextend): Use wide-int interfaces.
23136 (extract_muldiv_1): Likewise.
23137 (fold_div_compare): Likewise.
23138 (fold_single_bit_test): Likewise.
23139 (fold_sign_changed_comparison): Likewise.
23140 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
23141 (fold_plusminus_mult_expr): Use wide-int interfaces.
23142 (native_encode_int): Likewise.
23143 (native_interpret_int): Likewise.
23144 (fold_unary_loc): Likewise.
23145 (pointer_may_wrap_p): Likewise.
23146 (size_low_cst): Likewise.
23147 (mask_with_tz): Likewise.
23148 (fold_binary_loc): Likewise.
23149 (fold_ternary_loc): Likewise.
23150 (multiple_of_p): Likewise.
23151 (tree_call_nonnegative_warnv_p): Update calls to
23152 tree_int_cst_min_precision and real_from_integer.
23153 (fold_negate_const): Use wide-int interfaces.
23154 (fold_abs_const): Likewise.
23155 (fold_relational_const): Use tree_int_cst_lt.
23156 (round_up_loc): Use wide-int interfaces.
23157 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
23158 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
23159 * gengtype.c: Remove include of double-int.h.
23160 (do_typedef): Use wide-int interfaces.
23161 (open_base_files): Add wide-int.h.
23162 (main): Add offset_int and widest_int typedefs.
23163 * gengtype-lex.l: Handle "^".
23164 (CXX_KEYWORD): Add "static".
23165 * gengtype-parse.c (require3): New.
23166 (require_template_declaration): Handle constant template arguments
23167 and nested templates.
23168 * gengtype-state.c: Don't include "double-int.h".
23169 * genpreds.c (write_one_predicate_function): Update comment.
23170 (write_tm_constrs_h): Add check for hval and lval use in
23172 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
23173 (add_to_sequence): Likewise.
23174 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
23175 and const_double_operand.
23176 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
23178 * gimple-fold.c (get_base_constructor): Likewise.
23179 (fold_array_ctor_reference): Likewise.
23180 (fold_nonarray_ctor_reference): Likewise.
23181 (fold_const_aggregate_ref_1): Likewise.
23182 (gimple_val_nonnegative_real_p): Likewise.
23183 (gimple_fold_indirect_ref): Likewise.
23184 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
23185 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
23186 (struct slsr_cand_d): Change index to be widest_int.
23187 (struct incr_info_d): Change incr to be widest_int.
23188 (alloc_cand_and_find_basis): Use wide-int interfaces.
23189 (slsr_process_phi): Likewise.
23190 (backtrace_base_for_ref): Likewise. Return a widest_int.
23191 (restructure_reference): Take a widest_int instead of a double_int.
23192 (slsr_process_ref): Use wide-int interfaces.
23193 (create_mul_ssa_cand): Likewise.
23194 (create_mul_imm_cand): Likewise.
23195 (create_add_ssa_cand): Likewise.
23196 (create_add_imm_cand): Take a widest_int instead of a double_int.
23197 (slsr_process_add): Use wide-int interfaces.
23198 (slsr_process_cast): Likewise.
23199 (slsr_process_copy): Likewise.
23200 (dump_candidate): Likewise.
23201 (dump_incr_vec): Likewise.
23202 (replace_ref): Likewise.
23203 (cand_increment): Likewise. Return a widest_int.
23204 (cand_abs_increment): Likewise.
23205 (replace_mult_candidate): Take a widest_int instead of a double_int.
23206 (replace_unconditional_candidate): Use wide-int interfaces.
23207 (incr_vec_index): Take a widest_int instead of a double_int.
23208 (create_add_on_incoming_edge): Likewise.
23209 (create_phi_basis): Use wide-int interfaces.
23210 (replace_conditional_candidate): Likewise.
23211 (record_increment): Take a widest_int instead of a double_int.
23212 (record_phi_increments): Use wide-int interfaces.
23213 (phi_incr_cost): Take a widest_int instead of a double_int.
23214 (lowest_cost_path): Likewise.
23215 (total_savings): Likewise.
23216 (analyze_increments): Use wide-int interfaces.
23217 (ncd_with_phi): Take a widest_int instead of a double_int.
23218 (ncd_of_cand_and_phis): Likewise.
23219 (nearest_common_dominator_for_cands): Likewise.
23220 (insert_initializers): Use wide-int interfaces.
23221 (all_phi_incrs_profitable): Likewise.
23222 (replace_one_candidate): Likewise.
23223 (replace_profitable_candidates): Likewise.
23224 * godump.c: Include wide-int-print.h.
23225 (go_output_typedef): Use wide-int interfaces.
23226 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
23227 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
23228 (build_loop_iteration_domains): Likewise.
23229 * hooks.h: Include wide-int.h rather than double-int.h.
23230 (hook_bool_dint_dint_uint_bool_true): Delete.
23231 (hook_bool_wint_wint_uint_bool_true): Declare.
23232 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
23233 (hook_bool_wint_wint_uint_bool_true): New.
23234 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
23236 (ubsan_expand_si_overflow_mul_check): Likewise.
23237 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
23238 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
23239 (get_ancestor_addr_info): Likewise.
23240 (ipa_modify_call_arguments): Likewise.
23241 * loop-doloop.c (doloop_modify): Likewise.
23242 (doloop_optimize): Likewise.
23243 * loop-iv.c (iv_number_of_iterations): Likewise.
23244 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
23245 (unroll_loop_constant_iterations): Likewise.
23246 (decide_unroll_runtime_iterations): Likewise.
23247 (unroll_loop_runtime_iterations): Likewise.
23248 (decide_peel_simple): Likewise.
23249 (decide_unroll_stupid): Likewise.
23250 * lto-streamer-in.c (streamer_read_wi): Add.
23251 (input_cfg): Use wide-int interfaces.
23252 (lto_input_tree_1): Likewise.
23253 * lto-streamer-out.c (streamer_write_wi): Add.
23254 (hash_tree): Use wide-int interfaces.
23255 (output_cfg): Likewise.
23256 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
23257 (GTFILES): Add wide-int.h and signop.h.
23258 (TAGS): Look for .cc files too.
23259 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
23260 * optabs.c (expand_subword_shift): Likewise.
23261 (expand_doubleword_shift): Likewise.
23262 (expand_absneg_bit): Likewise.
23263 (expand_copysign_absneg): Likewise.
23264 (expand_copysign_bit): Likewise.
23265 * postreload.c (reload_cse_simplify_set): Likewise.
23266 * predict.c (predict_iv_comparison): Likewise.
23267 * pretty-print.h: Include wide-int-print.h.
23269 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
23270 * print-tree.c: Include wide-int-print.h.
23271 (print_node_brief): Use wide-int interfaces.
23272 (print_node): Likewise.
23273 * read-rtl.c (validate_const_wide_int): New.
23274 (read_rtx_code): Add CONST_WIDE_INT case.
23275 * real.c: Include wide-int.h.
23276 (real_to_integer2): Delete.
23277 (real_to_integer): New function, returning a wide_int.
23278 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23279 (ten_to_ptwo): Update call to real_from_integer.
23280 (real_digit): Likewise.
23281 * real.h: Include signop.h, wide-int.h and insn-modes.h.
23282 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
23283 (REAL_VALUE_TO_INT): Delete.
23284 (real_to_integer): Declare a wide-int form.
23285 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23286 * recog.c (const_int_operand): Improve comment.
23287 (const_scalar_int_operand): New.
23288 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
23289 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
23290 (split_double): Likewise.
23291 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
23292 (rtx_size): Likewise.
23293 (rtx_alloc_stat_v): New.
23294 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
23295 (cwi_output_hex): New.
23296 (iterative_hash_rtx): Handle CONST_WIDE_INT.
23297 (cwi_check_failed_bounds): New.
23298 * rtl.def (CONST_WIDE_INT): New.
23299 * rtl.h: Include <utility> and wide-int.h.
23300 (struct hwivec_def): New.
23301 (CWI_GET_NUM_ELEM): New.
23302 (CWI_PUT_NUM_ELEM): New.
23303 (struct rtx_def): Add num_elem and hwiv.
23304 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
23305 (CASE_CONST_UNIQUE): Likewise.
23306 (CASE_CONST_ANY): Likewise.
23307 (CONST_SCALAR_INT_P): Likewise.
23308 (CONST_WIDE_INT_P): New.
23310 (HWIVEC_CHECK): New.
23311 (cwi_check_failed_bounds): New.
23313 (HWIVEC_CHECK): New.
23314 (CONST_WIDE_INT_VEC) New.
23315 (CONST_WIDE_INT_NUNITS) New.
23316 (CONST_WIDE_INT_ELT) New.
23317 (rtx_mode_t): New type.
23318 (wi::int_traits <rtx_mode_t>): New.
23320 (wi::min_value): New.
23321 (wi::max_value): New.
23323 (const_wide_int_alloc): New.
23324 (immed_wide_int_const): New.
23325 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
23326 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
23327 * signop.h: New file.
23328 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
23329 (simplify_const_unary_operation): Use wide-int interfaces.
23330 (simplify_binary_operation_1): Likewise.
23331 (simplify_const_binary_operation): Likewise.
23332 (simplify_const_relational_operation): Likewise.
23333 (simplify_immed_subreg): Likewise.
23334 * stmt.c (expand_case): Likewise.
23335 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
23336 signop rather than a bool.
23337 * stor-layout.c (layout_type): Use wide-int interfaces.
23338 (initialize_sizetypes): Update calls to
23339 set_min_and_max_values_for_integral_type.
23340 (set_min_and_max_values_for_integral_type): Take a signop rather
23341 than a bool. Use wide-int interfaces.
23342 (fixup_signed_type): Update accordingly. Remove
23343 HOST_BITS_PER_DOUBLE_INT limit.
23344 (fixup_unsigned_type): Likewise.
23345 * system.h (STATIC_CONSTANT_P): New.
23346 (STATIC_ASSERT): New.
23347 * target.def (can_use_doloop_p): Take widest_ints rather than
23349 * target.h: Include wide-int.h rather than double-int.h.
23350 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
23352 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
23353 rather than INT_CST_LT_UNSIGNED.
23354 (can_use_doloop_if_innermost): Take widest_ints rather than
23356 * tree-affine.c: Include wide-int-print.h.
23357 (double_int_ext_for_comb): Delete.
23358 (wide_int_ext_for_comb): New.
23359 (aff_combination_zero): Use wide-int interfaces.
23360 (aff_combination_const): Take a widest_int instead of a double_int.
23361 (aff_combination_elt): Use wide-int interfaces.
23362 (aff_combination_scale): Take a widest_int instead of a double_int.
23363 (aff_combination_add_elt): Likewise.
23364 (aff_combination_add_cst): Likewise.
23365 (aff_combination_add): Use wide-int interfaces.
23366 (aff_combination_convert): Likewise.
23367 (tree_to_aff_combination): Likewise.
23368 (add_elt_to_tree): Take a widest_int instead of a double_int.
23369 (aff_combination_to_tree): Use wide-int interfaces.
23370 (aff_combination_remove_elt): Likewise.
23371 (aff_combination_add_product): Take a widest_int instead of
23373 (aff_combination_mult): Use wide-int interfaces.
23374 (aff_combination_expand): Likewise.
23375 (double_int_constant_multiple_p): Delete.
23376 (wide_int_constant_multiple_p): New.
23377 (aff_combination_constant_multiple_p): Take a widest_int pointer
23378 instead of a double_int pointer.
23379 (print_aff): Use wide-int interfaces.
23380 (get_inner_reference_aff): Take a widest_int pointer
23381 instead of a double_int pointer.
23382 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
23383 * tree-affine.h: Include wide-int.h.
23384 (struct aff_comb_elt): Change type of coef to widest_int.
23385 (struct affine_tree_combination): Change type of offset to widest_int.
23386 (double_int_ext_for_comb): Delete.
23387 (wide_int_ext_for_comb): New.
23388 (aff_combination_const): Use widest_int instead of double_int.
23389 (aff_combination_scale): Likewise.
23390 (aff_combination_add_elt): Likewise.
23391 (aff_combination_constant_multiple_p): Likewise.
23392 (get_inner_reference_aff): Likewise.
23393 (aff_comb_cannot_overlap_p): Likewise.
23394 (aff_combination_zero_p): Use wide-int interfaces.
23395 * tree.c: Include tree.h.
23396 (init_ttree): Use make_int_cst.
23397 (tree_code_size): Removed code for INTEGER_CST case.
23398 (tree_size): Add INTEGER_CST case.
23399 (make_node_stat): Update comment.
23400 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
23401 (build_int_cst_type): Use wide-int interfaces.
23402 (double_int_to_tree): Likewise.
23403 (double_int_fits_to_tree_p): Delete.
23404 (force_fit_type_double): Delete.
23405 (force_fit_type): New.
23406 (int_cst_hash_hash): Use wide-int interfaces.
23407 (int_cst_hash_eq): Likewise.
23408 (build_int_cst_wide): Delete.
23409 (wide_int_to_tree): New.
23410 (cache_integer_cst): Use wide-int interfaces.
23411 (build_low_bits_mask): Likewise.
23412 (cst_and_fits_in_hwi): Likewise.
23413 (real_value_from_int_cst): Likewise.
23414 (make_int_cst_stat): New.
23415 (integer_zerop): Use wide_int interfaces.
23416 (integer_onep): Likewise.
23417 (integer_all_onesp): Likewise.
23418 (integer_pow2p): Likewise.
23419 (integer_nonzerop): Likewise.
23420 (tree_log2): Likewise.
23421 (tree_floor_log2): Likewise.
23422 (tree_ctz): Likewise.
23423 (int_size_in_bytes): Likewise.
23424 (mem_ref_offset): Return an offset_int rather than a double_int.
23425 (build_type_attribute_qual_variant): Use wide_int interfaces.
23426 (type_hash_eq): Likewise
23427 (tree_int_cst_equal): Likewise.
23428 (tree_int_cst_lt): Delete.
23429 (tree_int_cst_compare): Likewise.
23430 (tree_fits_shwi_p): Use wide_int interfaces.
23431 (tree_fits_uhwi_p): Likewise.
23432 (tree_int_cst_sign_bit): Likewise.
23433 (tree_int_cst_sgn): Likewise.
23434 (tree_int_cst_min_precision): Take a signop rather than a bool.
23435 (simple_cst_equal): Use wide_int interfaces.
23436 (compare_tree_int): Likewise.
23437 (iterative_hash_expr): Likewise.
23438 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
23440 (get_type_static_bounds): Use wide_int interfaces.
23441 (tree_int_cst_elt_check_failed): New.
23442 (build_common_tree_nodes): Reordered to set prec before filling in
23444 (int_cst_value): Check cst_and_fits_in_hwi.
23445 (widest_int_cst_value): Use wide_int interfaces.
23446 (upper_bound_in_type): Likewise.
23447 (lower_bound_in_type): Likewise.
23448 (num_ending_zeros): Likewise.
23449 (drop_tree_overflow): Likewise.
23450 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
23451 (gen_conditions_for_pow_cst_base): Likewise.
23452 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
23453 (group_case_labels_stmt): Use wide-int interfaces.
23454 (verify_gimple_assign_binary): Likewise.
23455 (print_loop): Likewise.
23456 * tree-chrec.c (tree_fold_binomial): Likewise.
23457 * tree-core.h (struct tree_base): Add int_length.
23458 (struct tree_int_cst): Change rep of value.
23459 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
23460 (dr_may_alias_p): Likewise.
23461 (max_stmt_executions_tree): Likewise.
23462 * tree.def (INTEGER_CST): Update comment.
23463 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
23464 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
23465 * tree-dump.c: Include wide-int.h and wide-int-print.h.
23466 (dequeue_and_dump): Use wide-int interfaces.
23467 * tree.h: Include wide-int.h.
23468 (NULL_TREE): Moved to earlier loc in file.
23469 (TREE_INT_CST_ELT_CHECK): New.
23470 (tree_int_cst_elt_check_failed): New.
23472 (TREE_INT_CST): Delete.
23473 (TREE_INT_CST_LOW): Use wide-int interfaces.
23474 (TREE_INT_CST_HIGH): Delete.
23475 (TREE_INT_CST_NUNITS): New.
23476 (TREE_INT_CST_EXT_NUNITS): Likewise.
23477 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
23478 (TREE_INT_CST_ELT): Likewise.
23479 (INT_CST_LT): Delete.
23480 (tree_int_cst_elt_check): New (two forms).
23481 (type_code_size): Update comment.
23482 (make_int_cst_stat, make_int_cst): New.
23483 (tree_to_double_int): Delete.
23484 (double_int_fits_to_tree_p): Delete.
23485 (force_fit_type_double): Delete.
23486 (build_int_cstu): Replace with out-of-line function.
23487 (build_int_cst_wide): Delete.
23488 (tree_int_cst_lt): Define inline.
23489 (tree_int_cst_le): New.
23490 (tree_int_cst_compare): Define inline.
23491 (tree_int_cst_min_precision): Take a signop rather than a bool.
23492 (wi::int_traits <const_tree>): New.
23493 (wi::int_traits <tree>): New.
23494 (wi::extended_tree): New.
23495 (wi::int_traits <wi::extended_tree>): New.
23496 (wi::to_widest): New.
23497 (wi::to_offset): New.
23498 (wi::fits_to_tree_p): New.
23499 (wi::min_value): New.
23500 (wi::max_value): New.
23501 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
23502 (copy_tree_body_r): Likewise.
23503 * tree-object-size.c (compute_object_offset): Likewise.
23504 (addr_object_size): Likewise.
23505 * tree-predcom.c: Include wide-int-print.h.
23506 (struct dref_d): Change type of offset to widest_int.
23507 (dump_dref): Call wide-int printer.
23508 (aff_combination_dr_offset): Use wide-int interfaces.
23509 (determine_offset): Take a widest_int pointer rather than a
23510 double_int pointer.
23511 (split_data_refs_to_components): Use wide-int interfaces.
23512 (suitable_component_p): Likewise.
23513 (order_drefs): Likewise.
23514 (add_ref_to_chain): Likewise.
23515 (valid_initializer_p): Likewise.
23516 (determine_roots_comp): Likewise.
23517 * tree-pretty-print.c: Include wide-int-print.h.
23518 (dump_generic_node): Use wide-int interfaces.
23519 * tree-sra.c (sra_ipa_modify_expr): Likewise.
23520 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
23521 (move_fixed_address_to_symbol): Likewise.
23522 (move_hint_to_base): Likewise.
23523 (move_pointer_to_base): Likewise.
23524 (move_variant_to_index): Likewise.
23525 (most_expensive_mult_to_index): Likewise.
23526 (addr_to_parts): Likewise.
23527 (copy_ref_info): Likewise.
23528 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
23529 (indirect_refs_may_alias_p): Likewise.
23530 (stmt_kills_ref_p_1): Likewise.
23531 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
23532 * tree-ssa-ccp.c: Update comment at top of file. Include
23534 (struct prop_value_d): Change type of mask to widest_int.
23535 (extend_mask): New function.
23536 (dump_lattice_value): Use wide-int interfaces.
23537 (get_default_value): Likewise.
23538 (set_constant_value): Likewise.
23539 (set_value_varying): Likewise.
23540 (valid_lattice_transition): Likewise.
23541 (set_lattice_value): Likewise.
23542 (value_to_double_int): Delete.
23543 (value_to_wide_int): New.
23544 (get_value_from_alignment): Use wide-int interfaces.
23545 (get_value_for_expr): Likewise.
23546 (do_dbg_cnt): Likewise.
23547 (ccp_finalize): Likewise.
23548 (ccp_lattice_meet): Likewise.
23549 (bit_value_unop_1): Use widest_ints rather than double_ints.
23550 (bit_value_binop_1): Likewise.
23551 (bit_value_unop): Use wide-int interfaces.
23552 (bit_value_binop): Likewise.
23553 (bit_value_assume_aligned): Likewise.
23554 (evaluate_stmt): Likewise.
23555 (ccp_fold_stmt): Likewise.
23556 (visit_cond_stmt): Likewise.
23557 (ccp_visit_stmt): Likewise.
23558 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
23559 (constant_pointer_difference): Likewise.
23560 (associate_pointerplus): Likewise.
23561 (combine_conversions): Likewise.
23562 * tree-ssa-loop.h: Include wide-int.h.
23563 (struct tree_niter_desc): Change type of max to widest_int.
23564 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
23565 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
23566 (remove_redundant_iv_tests): Likewise.
23567 (canonicalize_loop_induction_variables): Likewise.
23568 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
23569 (constant_multiple_of): Take a widest_int pointer instead of
23570 a double_int pointer.
23571 (get_computation_aff): Use wide-int interfaces.
23572 (ptr_difference_cost): Likewise.
23573 (difference_cost): Likewise.
23574 (get_loop_invariant_expr_id): Likewise.
23575 (get_computation_cost_at): Likewise.
23576 (iv_elimination_compare_lt): Likewise.
23577 (may_eliminate_iv): Likewise.
23578 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
23579 instead of double_int.
23580 (max_loop_iterations): Likewise.
23581 (max_stmt_executions): Likewise.
23582 (estimated_stmt_executions): Likewise.
23583 * tree-ssa-loop-niter.c: Include wide-int-print.h.
23584 (split_to_var_and_offset): Use wide-int interfaces.
23585 (determine_value_range): Likewise.
23586 (bound_difference_of_offsetted_base): Likewise.
23587 (bounds_add): Take a widest_int instead of a double_int.
23588 (number_of_iterations_ne_max): Use wide-int interfaces.
23589 (number_of_iterations_ne): Likewise.
23590 (number_of_iterations_lt_to_ne): Likewise.
23591 (assert_loop_rolls_lt): Likewise.
23592 (number_of_iterations_lt): Likewise.
23593 (number_of_iterations_le): Likewise.
23594 (number_of_iterations_cond): Likewise.
23595 (number_of_iterations_exit): Likewise.
23596 (finite_loop_p): Likewise.
23597 (derive_constant_upper_bound_assign): Likewise.
23598 (derive_constant_upper_bound): Return a widest_int.
23599 (derive_constant_upper_bound_ops): Likewise.
23600 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
23601 (record_estimate): Take a widest_int rather than a double_int.
23602 (record_nonwrapping_iv): Use wide-int interfaces.
23603 (double_int_cmp): Delete.
23604 (wide_int_cmp): New.
23605 (bound_index): Take a widest_int rather than a double_int.
23606 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
23607 (maybe_lower_iteration_bound): Likewise.
23608 (estimate_numbers_of_iterations_loop): Likewise.
23609 (estimated_loop_iterations): Take a widest_int pointer than than
23610 a double_int pointer.
23611 (estimated_loop_iterations_int): Use wide-int interfaces.
23612 (max_loop_iterations): Take a widest_int pointer than than
23613 a double_int pointer.
23614 (max_loop_iterations_int): Use wide-int interfaces.
23615 (max_stmt_executions): Take a widest_int pointer than than
23616 a double_int pointer.
23617 (estimated_stmt_executions): Likewise.
23618 (n_of_executions_at_most): Use wide-int interfaces.
23619 (scev_probably_wraps_p): Likewise.
23620 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
23621 to real_to_integer.
23622 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
23624 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
23625 double_ints. Adjust for trailing_wide_ints <3> representation.
23626 (set_nonzero_bits): Likewise.
23627 (get_range_info): Return wide_ints rather than double_ints.
23628 Adjust for trailing_wide_ints <3> representation.
23629 (get_nonzero_bits): Likewise.
23630 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
23632 * tree-ssanames.h (struct range_info_def): Replace min, max and
23633 nonzero_bits with a trailing_wide_ints <3>.
23634 (set_range_info): Use wide_int_refs rather than double_ints.
23635 (set_nonzero_bits): Likewise.
23636 (get_range_info): Return wide_ints rather than double_ints.
23637 (get_nonzero_bits): Likewise.
23638 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
23639 * tree-ssa-pre.c (phi_translate_1): Likewise.
23640 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
23641 (acceptable_pow_call): Likewise.
23642 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
23644 (vn_reference_fold_indirect): Likewise.
23645 (vn_reference_maybe_forwprop_address): Likewise.
23646 (valueize_refs_1): Likewise.
23647 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
23648 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
23649 tree_int_cst_lt and tree_int_cst_le.
23650 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
23652 (streamer_alloc_tree): Likewise.
23653 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
23654 (streamer_write_tree_header): Likewise.
23655 (streamer_write_integer_cst): Likewise.
23656 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23657 (build_constructors): Likewise.
23658 (array_value_type): Likewise.
23659 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
23660 (vect_check_gather): Likewise.
23661 * tree-vect-generic.c (build_replicated_const): Likewise.
23662 (expand_vector_divmod): Likewise.
23663 * tree-vect-loop.c (vect_transform_loop): Likewise.
23664 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
23665 (vect_do_peeling_for_alignment): Likewise.
23666 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
23667 * tree-vrp.c: Include wide-int.h.
23668 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
23669 (extract_range_from_assert): Use wide-int interfaces.
23670 (vrp_int_const_binop): Likewise.
23671 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
23672 double_int pointers.
23673 (ranges_from_anti_range): Use wide-int interfaces.
23674 (quad_int_cmp): Delete.
23675 (quad_int_pair_sort): Likewise.
23676 (extract_range_from_binary_expr_1): Use wide-int interfaces.
23677 (extract_range_from_unary_expr_1): Likewise.
23678 (adjust_range_with_scev): Likewise.
23679 (masked_increment): Take and return wide_ints rather than double_ints.
23680 (register_edge_assert_for_2): Use wide-int interfaces.
23681 (check_array_ref): Likewise.
23682 (search_for_addr_array): Likewise.
23683 (maybe_set_nonzero_bits): Likewise.
23684 (union_ranges): Pass an integer of the correct type instead of
23685 using integer_one_node.
23686 (intersect_ranges): Likewise.
23687 (simplify_truth_ops_using_ranges): Likewise.
23688 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
23689 (range_fits_type_p): Likewise.
23690 (simplify_cond_using_ranges): Likewise. Take a signop rather than
23692 (simplify_conversion_using_ranges): Use wide-int interfaces.
23693 (simplify_float_conversion_using_ranges): Likewise.
23694 (vrp_finalize): Likewise.
23695 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
23696 (gimple_stringops_transform): Likewise.
23697 * varasm.c (decode_addr_const): Likewise.
23698 (const_hash_1): Likewise.
23699 (const_rtx_hash_1): Likewise
23700 (output_constant): Likewise.
23701 (array_size_for_constructor): Likewise.
23702 (output_constructor_regular_field): Likewise.
23703 (output_constructor_bitfield): Likewise.
23704 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
23705 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
23707 * gencheck.c: Define BITS_PER_UNIT.
23708 * wide-int.cc: New.
23710 * wide-int-print.cc: New.
23711 * wide-int-print.h: New.
23713 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23715 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
23717 2014-05-06 Richard Biener <rguenther@suse.de>
23719 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
23720 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
23721 (TODO_verify_all): Adjust.
23722 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
23723 TODO_verify_stmts and TODO_verify_rtl_sharing.
23724 * bb-reorder.c: Likewise.
23725 * cfgexpand.c: Likewise.
23726 * cprop.c: Likewise.
23728 * function.c: Likewise.
23729 * fwprop.c: Likewise.
23730 * gcse.c: Likewise.
23731 * gimple-ssa-isolate-paths.c: Likewise.
23732 * gimple-ssa-strength-reduction.c: Likewise.
23733 * ipa-split.c: Likewise.
23734 * loop-init.c: Likewise.
23735 * loop-unroll.c: Likewise.
23736 * lower-subreg.c: Likewise.
23737 * modulo-sched.c: Likewise.
23738 * postreload-gcse.c: Likewise.
23739 * predict.c: Likewise.
23740 * recog.c: Likewise.
23741 * sched-rgn.c: Likewise.
23742 * store-motion.c: Likewise.
23743 * tracer.c: Likewise.
23744 * trans-mem.c: Likewise.
23745 * tree-call-cdce.c: Likewise.
23746 * tree-cfg.c: Likewise.
23747 * tree-cfgcleanup.c: Likewise.
23748 * tree-complex.c: Likewise.
23749 * tree-eh.c: Likewise.
23750 * tree-emutls.c: Likewise.
23751 * tree-if-conv.c: Likewise.
23752 * tree-into-ssa.c: Likewise.
23753 * tree-loop-distribution.c: Likewise.
23754 * tree-object-size.c: Likewise.
23755 * tree-parloops.c: Likewise.
23756 * tree-pass.h: Likewise.
23757 * tree-sra.c: Likewise.
23758 * tree-ssa-ccp.c: Likewise.
23759 * tree-ssa-copy.c: Likewise.
23760 * tree-ssa-copyrename.c: Likewise.
23761 * tree-ssa-dce.c: Likewise.
23762 * tree-ssa-dom.c: Likewise.
23763 * tree-ssa-dse.c: Likewise.
23764 * tree-ssa-forwprop.c: Likewise.
23765 * tree-ssa-ifcombine.c: Likewise.
23766 * tree-ssa-loop-ch.c: Likewise.
23767 * tree-ssa-loop-ivcanon.c: Likewise.
23768 * tree-ssa-loop.c: Likewise.
23769 * tree-ssa-math-opts.c: Likewise.
23770 * tree-ssa-phiopt.c: Likewise.
23771 * tree-ssa-phiprop.c: Likewise.
23772 * tree-ssa-pre.c: Likewise.
23773 * tree-ssa-reassoc.c: Likewise.
23774 * tree-ssa-sink.c: Likewise.
23775 * tree-ssa-strlen.c: Likewise.
23776 * tree-ssa-tail-merge.c: Likewise.
23777 * tree-ssa-uncprop.c: Likewise.
23778 * tree-switch-conversion.c: Likewise.
23779 * tree-tailcall.c: Likewise.
23780 * tree-vect-generic.c: Likewise.
23781 * tree-vectorizer.c: Likewise.
23782 * tree-vrp.c: Likewise.
23783 * tsan.c: Likewise.
23784 * var-tracking.c: Likewise.
23785 * bt-load.c: Likewise.
23786 * cfgcleanup.c: Likewise.
23787 * combine-stack-adj.c: Likewise.
23788 * combine.c: Likewise.
23789 * compare-elim.c: Likewise.
23790 * config/epiphany/resolve-sw-modes.c: Likewise.
23791 * config/i386/i386.c: Likewise.
23792 * config/mips/mips.c: Likewise.
23793 * config/s390/s390.c: Likewise.
23794 * config/sh/sh_treg_combine.cc: Likewise.
23795 * config/sparc/sparc.c: Likewise.
23798 * final.c: Likewise.
23799 * ifcvt.c: Likewise.
23800 * mode-switching.c: Likewise.
23801 * passes.c: Likewise.
23802 * postreload.c: Likewise.
23804 * reg-stack.c: Likewise.
23805 * regcprop.c: Likewise.
23806 * regrename.c: Likewise.
23809 2014-05-06 Richard Biener <rguenther@suse.de>
23811 PR middle-end/61070
23812 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
23813 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
23815 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
23818 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
23820 2014-05-05 Radovan Obradovic <robradovic@mips.com>
23821 Tom de Vries <tom@codesourcery.com>
23823 * target.def (call_fusage_contains_non_callee_clobbers): New
23825 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
23827 (@node Miscellaneous Register Hooks): New node.
23828 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
23829 * doc/tm.texi: Regenerate.
23831 2014-05-05 Marek Polacek <polacek@redhat.com>
23834 * opts.c (common_handle_option): Call error_at instead of warning_at.
23836 2014-05-05 Richard Biener <rguenther@suse.de>
23838 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
23839 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
23840 under the TODO_verify_il umbrella.
23842 2014-05-05 Richard Biener <rguenther@suse.de>
23844 * passes.c (execute_function_todo): Move TODO_verify_flow under
23845 the TODO_verify_ul umbrella.
23847 2014-05-05 Richard Biener <rguenther@suse.de>
23849 PR middle-end/61010
23850 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
23851 X & CST away from a CST that is the mask of a mode.
23853 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23855 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
23856 int argument to enum machine_mode.
23857 (picochip_class_max_nregs): Ditto.
23858 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
23859 (picochip_class_max_nregs): Ditto.
23861 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23863 * target.def: Add new target hook.
23864 * doc/tm.texi: Regenerate.
23865 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
23866 * targhooks.c (default_keep_leaf_when_profiled): New function.
23868 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
23869 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
23871 2014-05-05 Bin Cheng <bin.cheng@arm.com>
23873 PR tree-optimization/60363
23874 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
23875 (copy_phi_args): New parameters. Call get_value_locus_in_path.
23876 (update_destination_phis): New parameter.
23877 (create_edge_and_update_destination_phis): Ditto.
23878 (ssa_fix_duplicate_block_edges): Pass new arguments.
23879 (thread_single_edge): Ditto.
23881 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
23883 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
23884 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
23885 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
23886 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
23887 Use RS6000_BTM_HARD_FLOAT.
23888 (BU_MISC_2): Likewise.
23889 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
23890 RS6000_BTM_HARD_FLOAT.
23891 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
23892 is explicitly used.
23893 (rs6000_invalid_builtin): Add hard floating builtin support.
23894 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
23895 hard float builtins.
23896 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
23898 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23900 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
23901 Add missing function* argument.
23903 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
23905 * lra-constraints.c (valid_address_p): Move earlier in file.
23906 Add a constraint argument to the address_info version.
23907 (satisfies_memory_constraint_p): New function.
23908 (satisfies_address_constraint_p): Likewise.
23909 (process_alt_operands, curr_insn_transform): Use them.
23910 (process_address): Pass the constraint to valid_address_p when
23911 checking address operands.
23913 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
23915 * config/mips/mips.c (mips_isa_rev): New variable.
23916 (mips_set_architecture): Set it.
23917 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
23919 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
23920 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
23921 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
23922 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
23923 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
23924 conditions in terms of mips_isa_rev.
23925 (mips_isa_rev): Declare.
23927 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23929 * config/sh/sh-mem.cc: Use tabs instead of spaces.
23930 (prob_unlikely, prob_likely): Make variables const.
23932 2014-05-03 Denis Chertykov <chertykov@gmail.com>
23934 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
23936 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23938 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
23940 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23942 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
23943 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
23944 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
23946 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
23947 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
23949 Replace usage of ROUND_REG with sh_round_reg.
23950 Use CEIL instead of ROUND_ADVANCE.
23952 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23955 * config/sh/sh.c: Include stdlib headers before everything else.
23957 2014-05-02 Jakub Jelinek <jakub@redhat.com>
23959 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
23960 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
23961 (gimplify_adjust_omp_clauses): Simd region is never
23962 directly nested in combined parallel. Instead, for linear
23963 with copyin/copyout, if in combined for simd loop, make decl
23964 firstprivate/lastprivate on OMP_FOR.
23965 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
23966 expand_omp_for_static_chunk): When setting endvar, also set
23967 fd->loop.v to the same value.
23969 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23971 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
23973 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
23975 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
23978 2014-05-02 Marek Polacek <polacek@redhat.com>
23980 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
23982 2014-05-02 Kito Cheng <kito@0xlab.org>
23984 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
23985 to a C expression marco.
23986 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
23987 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
23988 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
23989 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
23990 HONOR_REG_ALLOC_ORDER.
23991 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
23993 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23995 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
23997 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23999 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24001 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
24003 * tree-if-conv.c (is_cond_scalar_reduction): New function.
24004 (convert_scalar_cond_reduction): Likewise.
24005 (predicate_scalar_phi): Add recognition and transformation
24006 of simple conditioanl reduction to be vectorizable.
24008 2014-05-01 Marek Polacek <polacek@redhat.com>
24011 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24013 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
24015 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24016 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24017 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24018 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24019 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24020 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24021 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
24022 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
24024 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
24026 * config/arc/arc.opt (mlra): Move comment above option name
24027 to avoid mis-parsing as language options.
24029 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24031 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
24032 * config/sol2.h: ... here.
24033 * config/sol2-10.h: Remove.
24035 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
24036 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
24037 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
24038 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
24039 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
24040 * config/sol2.h: ... here.
24041 (SECTION_NAME_FORMAT): Don't redefine.
24042 (STARTFILE_ARCH32_SPEC): Rename to ...
24043 (STARTFILE_ARCH_SPEC): ... this.
24044 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24045 * config/sparc/sol2.h: ... here.
24046 (SECTION_NAME_FORMAT): Don't undef.
24047 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
24048 (SUBTARGET_EXTRA_SPECS): Remove.
24049 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
24051 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
24052 (MD_STARTFILE_PREFIX): Remove.
24053 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
24054 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
24055 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
24056 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
24057 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
24058 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
24059 * config/i386/sol2.h: ... here.
24060 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
24061 * config/i386/sol2-bi.h: Remove.
24062 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
24063 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
24065 * config/i386/t-sol2-64: Rename to ...
24066 * config/i386/t-sol2: ... this.
24067 * config/sparc/t-sol2-64: Rename to ...
24068 * config/sparc/t-sol2: ... this.
24070 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
24071 sol2_tm_file_head, sol2_tm_file_tail.
24072 Include ${cpu_type}/sol2.h before sol2.h.
24074 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
24075 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
24076 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
24077 Reflect i386/t-sol2-64 renaming.
24078 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
24079 Reflect sparc/t-sol2-64 renaming.
24081 2014-04-30 Richard Biener <rguenther@suse.de>
24083 * passes.c (execute_function_todo): Move TODO_verify_stmts
24084 and TODO_verify_ssa under the TODO_verify_il umbrella.
24085 * tree-ssa.h (verify_ssa): Adjust prototype.
24086 * tree-ssa.c (verify_ssa): Add parameter to tell whether
24087 we should verify SSA operands.
24088 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
24089 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
24090 whether we should verify whether not throwing stmts have EH info.
24091 * graphite-scop-detection.c (create_sese_edges): Adjust.
24092 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
24093 * tree-eh.c (lower_try_finally_switch): Do not add the
24094 default case label twice.
24096 2014-04-30 Marek Polacek <polacek@redhat.com>
24098 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
24099 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
24100 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
24101 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
24103 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
24105 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
24106 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
24107 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
24108 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
24109 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
24110 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
24111 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
24112 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
24114 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24116 * tree-cfg.c (dump_function_to_file): Dump the return type of
24117 functions, in a line to itself before the function body, mimicking
24118 the layout of a C function.
24120 2014-04-29 Jakub Jelinek <jakub@redhat.com>
24122 PR tree-optimization/60971
24123 * tree-tailcall.c (process_assignment): Reject conversions which
24126 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24128 * calls.c (initialize_argument_information): Always treat
24129 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
24130 (expand_call): Likewise.
24131 (emit_library_call_calue_1): Likewise.
24132 * expr.c (PUSH_ARGS_REVERSED): Do not define.
24133 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
24136 2014-04-29 Nick Clifton <nickc@redhat.com>
24138 * config/msp430/msp430.md (umulsidi): Fix typo.
24139 (mulhisi3): Enable even inside interrupt handlers.
24140 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
24141 bigger return address pushed in large mode.
24143 2014-04-29 Nick Clifton <nickc@redhat.com>
24145 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
24146 (arc_init_reg_tables): Use a machine_mode enum to iterate over
24148 * config/m32r/m32r.c (init_reg_tables): Likewise.
24149 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
24150 enum to hold the modes.
24152 2014-04-29 Richard Biener <rguenther@suse.de>
24154 * dominance.c (free_dominance_info): Add overload with
24155 function parameter.
24156 (dom_info_state): Likewise.
24157 (dom_info_available_p): Likewise.
24158 * basic-block.h (free_dominance_info, dom_info_state,
24159 dom_info_available_p): Declare overloads.
24160 * passes.c (execute_function_todo): Verify that verifiers
24161 don't change dominator info state. Drop dominator info
24162 for IPA pass invocations.
24163 * cgraph.c (release_function_body): Restore asserts that
24164 dominator information is released.
24166 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
24168 * doc/invoke.texi: Fix typo.
24169 * tree-vrp.c: Fix typos.
24170 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
24172 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24174 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
24176 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24178 * config/aarch64/aarch64-builtins.c
24179 (aarch64_types_storestruct_lane_qualifiers): New.
24180 (TYPES_STORESTRUCT_LANE): Likewise.
24181 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
24182 (st3_lane): Likewise.
24183 (st4_lane): Likewise.
24184 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
24185 (vec_store_lanesci_lane<mode>): Likewise.
24186 (vec_store_lanesxi_lane<mode>): Likewise.
24187 (aarch64_st2_lane<VQ:mode>): Likewise.
24188 (aarch64_st3_lane<VQ:mode>): Likewise.
24189 (aarch64_st4_lane<VQ:mode>): Likewise.
24190 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
24191 * config/aarch64/arm_neon.h
24192 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
24193 use new macro arguments.
24194 (__ST3_LANE_FUNC): Likewise.
24195 (__ST4_LANE_FUNC): Likewise.
24196 * config/aarch64/iterators.md (V_TWO_ELEM): New.
24197 (V_THREE_ELEM): Likewise.
24198 (V_FOUR_ELEM): Likewise.
24200 2014-04-28 David Malcolm <dmalcolm@redhat.com>
24202 * doc/gimple.texi: Replace the description of the now-defunct
24203 union gimple_statement_d with a diagram showing the
24204 gimple_statement_base class hierarchy and its relationships to
24205 the GSS_ and GIMPLE_ enums.
24207 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24209 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
24210 * config/aarch64/aarch64.c
24211 (aarch64_cannot_change_mode_class): Weaken conditions.
24212 (aarch64_modes_tieable_p): New.
24213 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
24215 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
24217 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24218 (loadsync_<mode>): Change mode.
24219 (load_quadpti, store_quadpti): New.
24220 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24221 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24223 2014-04-28 Martin Jambor <mjambor@suse.cz>
24225 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
24226 same alias type as the original statement.
24227 (subreplacement_assignment_data): New type.
24228 (handle_unscalarized_data_in_subtree): New type of parameter,
24229 generate new memory accesses with same alias type as the original
24231 (load_assign_lhs_subreplacements): Likewise.
24232 (sra_modify_constructor_assign): Generate new memory accesses with
24233 same alias type as the original statement.
24235 2014-04-28 Richard Biener <rguenther@suse.de>
24237 * tree-pass.h (TODO_verify_il): Define.
24238 (TODO_verify_all): Complete properly.
24239 * passes.c (execute_function_todo): Move existing loop-closed
24240 SSA verification under TODO_verify_il.
24241 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
24242 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
24243 Fix tree sharing issue.
24245 2014-04-28 Richard Biener <rguenther@suse.de>
24247 PR middle-end/60092
24248 * builtins.def (DEF_C11_BUILTIN): Add.
24249 (BUILT_IN_ALIGNED_ALLOC): Likewise.
24250 * coretypes.h (enum function_class): Add function_c11_misc.
24251 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24252 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
24253 (call_may_clobber_ref_p_1): Likewise.
24254 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24255 (mark_all_reaching_defs_necessary_1): Likewise.
24256 (propagate_necessity): Likewise.
24257 (eliminate_unnecessary_stmts): Likewise.
24258 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
24260 2014-04-28 Richard Biener <rguenther@suse.de>
24262 * tree-vrp.c (vrp_var_may_overflow): Remove.
24263 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
24264 with overflow immediately bump to one before that value and
24265 let iteration figure out overflow status.
24267 2014-04-28 Richard Biener <rguenther@suse.de>
24269 * configure.ac: Do valgrind header checks unconditionally.
24270 Add --enable-valgrind-annotations.
24271 * system.h: Guard valgrind header inclusion with
24272 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
24273 * alloc-pool.c (pool_alloc, pool_free): Use
24274 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
24275 to guard possibly dead code.
24276 * config.in: Regenerated.
24277 * configure: Likewise.
24279 2014-04-28 Jeff Law <law@redhat.com>
24281 PR tree-optimization/60902
24282 * tree-ssa-threadedge.c
24283 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
24284 over real defs when invalidating outputs from statements that do not
24285 produce useful outputs for threading.
24287 2014-04-28 Richard Biener <rguenther@suse.de>
24289 PR tree-optimization/60979
24290 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
24291 SCOPs that end in a block with a successor with abnormal
24294 2014-04-28 Richard Biener <rguenther@suse.de>
24296 * tree-pass.h (execute_pass_list): Adjust prototype.
24297 * passes.c (pass_manager::execute_early_local_passes): Adjust.
24298 (do_per_function): Change callback signature, push all actual
24299 work to the callbals.
24300 (do_per_function_toporder): Likewise.
24301 (execute_function_dump): Adjust.
24302 (execute_function_todo): Likewise.
24303 (clear_last_verified): Likewise.
24304 (verify_curr_properties): Likewise.
24305 (update_properties_after_pass): Likewise.
24306 (execute_pass_list_1): Split out from ...
24307 (execute_pass_list): ... here. Adjust.
24308 (execute_ipa_pass_list): Likewise.
24309 * cgraphunit.c (cgraph_add_new_function): Adjust.
24310 (analyze_function): Likewise.
24311 (expand_function): Likewise.
24312 * cgraph.c (release_function_body): Free dominance info
24313 here instead of asserting it was magically freed elsewhere.
24315 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
24317 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
24318 * configure: Regenerate.
24319 * config/sparc/sparc.opt (muser-mode): New option.
24320 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
24322 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
24323 * doc/invoke.texi (SPARC options): Document -muser-mode.
24325 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
24327 * cselib.c (find_slot_memmode): Delete.
24328 (cselib_hasher): Change compare_type to a struct.
24329 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
24331 (preserve_constants_and_equivs): Adjust for new compare_type.
24332 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
24333 (wrap_constant): Delete.
24334 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
24336 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
24338 * doc/install.texi (Building with profile feedback): Remove
24341 2014-04-26 Tom de Vries <tom@codesourcery.com>
24343 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
24346 2014-04-25 Cary Coutant <ccoutant@google.com>
24349 * dwarf2out.c (should_move_die_to_comdat): A type definition
24350 can contain a subprogram definition, but don't move it to a
24352 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
24353 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
24355 (clone_tree_hash): Rename to...
24356 (clone_tree_partial): ...this; change callers. Copy
24357 DW_TAG_subprogram DIEs as declarations.
24358 (copy_decls_walk): Don't copy children of a declaration into a
24361 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
24364 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
24367 2014-04-25 Jiong Wang <jiong.wang@arm.com>
24369 * config/arm/predicates.md (call_insn_operand): Add long_call check.
24370 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
24372 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
24375 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24377 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
24379 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24381 PR tree-optimization/60930
24382 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
24383 creating a multiply candidate by folding two constant
24384 multiplicands when the result overflows.
24386 2014-04-25 Jakub Jelinek <jakub@redhat.com>
24388 PR tree-optimization/60960
24389 * tree-vect-generic.c (expand_vector_operation): Only call
24390 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
24392 2014-04-25 Tom de Vries <tom@codesourcery.com>
24394 * expr.c (clobber_reg_mode): New function.
24395 * expr.h (clobber_reg): New function.
24397 2014-04-25 Tom de Vries <tom@codesourcery.com>
24399 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
24402 2014-04-25 Radovan Obradovic <robradovic@mips.com>
24403 Tom de Vries <tom@codesourcery.com>
24405 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
24407 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
24408 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
24409 new argument to find_all_hard_reg_sets call.
24411 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24413 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
24414 Use HOST_WIDE_INT_C for mask literal.
24415 (aarch_rev16_shleft_mask_imm_p): Likewise.
24417 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
24420 * config/sparc/sparc.md (ashlsi3_extend): Delete.
24422 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
24424 PR preprocessor/56540
24425 * config/i386/i386-c.c (ix86_target_macros): Define
24426 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
24428 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24430 * configure.ac (tga_func): Remove.
24431 (LIB_TLS_SPEC): Remove.
24432 * configure: Regenerate.
24433 * config.in: Regenerate.
24434 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
24436 2014-04-25 Richard Biener <rguenther@suse.de>
24439 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
24440 call stmt use/clobber sets during stmt walk instead of
24441 walking the possibly incomplete set of caller edges.
24443 2014-04-25 Richard Biener <rguenther@suse.de>
24446 * passes.c (apply_ipa_transforms): Inline into only caller ...
24447 (execute_one_pass): ... here. Properly bring in function
24448 bodies for nodes we want to apply IPA transforms to.
24450 2014-04-24 Cong Hou <congh@google.com>
24452 PR tree-optimization/60896
24453 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
24454 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
24455 (vect_mark_pattern_stmts): Set the def type of all statements in
24456 PATTERN_DEF_SEQ as vect_internal_def.
24458 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24460 * doc/extend.texi (PowerPC Built-in Functions): Document new
24461 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
24462 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
24464 * config/rs6000/predicates.md (const_0_to_3_operand): New
24465 predicate to match 0..3 integer constants.
24467 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
24468 to support adding miscellaneous builtin functions.
24469 (BU_DFP_MISC_2): Likewise.
24470 (BU_P7_MISC_1): Likewise.
24471 (BU_P7_MISC_2): Likewise.
24472 (BU_P8V_MISC_3): Likewise.
24473 (BU_MISC_1): Likewise.
24474 (BU_MISC_2): Likewise.
24475 (DIVWE): Add extended divide builtin functions.
24476 (DIVWEO): Likewise.
24477 (DIVWEU): Likewise.
24478 (DIVWEUO): Likewise.
24480 (DIVDEO): Likewise.
24481 (DIVDEU): Likewise.
24482 (DIVDEUO): Likewise.
24483 (DXEX): Add decimal floating-point builtin functions.
24485 (DDEDPD): Likewise.
24486 (DDEDPDQ): Likewise.
24487 (DENBCD): Likewise.
24488 (DENBCDQ): Likewise.
24492 (DSCLIQ): Likewise.
24494 (DSCRIQ): Likewise.
24495 (CDTBCD): Add new BCD builtin functions.
24496 (CBCDTD): Likewise.
24497 (ADDG6S): Likewise.
24498 (BCDADD): Likewise.
24499 (BCDADD_LT): Likewise.
24500 (BCDADD_EQ): Likewise.
24501 (BCDADD_GT): Likewise.
24502 (BCDADD_OV): Likewise.
24503 (BCDSUB): Likewise.
24504 (BCDSUB_LT): Likewise.
24505 (BCDSUB_EQ): Likewise.
24506 (BCDSUB_GT): Likewise.
24507 (BCDSUB_OV): Likewise.
24508 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
24509 (UNPACK_TD): Likewise.
24510 (PACK_TF): Likewise.
24511 (UNPACK_TF): Likewise.
24512 (UNPACK_TF_0): Likewise.
24513 (UNPACK_TF_1): Likewise.
24514 (PACK_V1TI): Likewise.
24515 (UNPACK_V1TI): Likewise.
24517 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24518 support for decimal floating point builtin functions.
24519 (rs6000_expand_ternop_builtin): Add checks for the new builtin
24520 functions that take constant arguments.
24521 (rs6000_invalid_builtin): Add decimal floating point builtin support.
24522 (rs6000_init_builtins): Setup long double, _Decimal64, and
24523 _Decimal128 types for new builtin functions.
24524 (builtin_function_type): Set the unsigned flags appropriately for
24525 the new builtin functions.
24526 (rs6000_opt_masks): Add support for decimal floating point builtin
24529 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
24530 floating point builtin functions.
24531 (RS6000_BTM_COMMON): Likewise.
24532 (RS6000_BTI_long_double): Likewise.
24533 (RS6000_BTI_dfloat64): Likewise.
24534 (RS6000_BTI_dfloat128): Likewise.
24535 (long_double_type_internal_node): Likewise.
24536 (dfloat64_type_internal_node): Likewise.
24537 (dfloat128_type_internal_node): Likewise.
24539 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
24540 2.07 bcd arithmetic instructions.
24541 (UNSPEC_BCDSUB): Likewise.
24542 (UNSPEC_BCD_OVERFLOW): Likewise.
24543 (UNSPEC_BCD_ADD_SUB): Likewise.
24544 (bcd_add_sub): Likewise.
24545 (BCD_TEST): Likewise.
24546 (bcd<bcd_add_sub>): Likewise.
24547 (bcd<bcd_add_sub>_test): Likewise.
24548 (bcd<bcd_add_sub>_test2): Likewise.
24549 (bcd<bcd_add_sub>_<code>): Likewise.
24550 (peephole2 for combined bcd ops): Likewise.
24552 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
24553 decimal floating point builtin functions.
24554 (UNSPEC_DENBCD): Likewise.
24555 (UNSPEC_DXEX): Likewise.
24556 (UNSPEC_DIEX): Likewise.
24557 (UNSPEC_DSCLI): Likewise.
24558 (UNSPEC_DSCRI): Likewise.
24559 (D64_D128): Likewise.
24560 (dfp_suffix): Likewise.
24561 (dfp_ddedpd_<mode>): Likewise.
24562 (dfp_denbcd_<mode>): Likewise.
24563 (dfp_dxex_<mode>): Likewise.
24564 (dfp_diex_<mode>): Likewise.
24565 (dfp_dscli_<mode>): Likewise.
24566 (dfp_dscri_<mode>): Likewise.
24568 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
24570 (UNSPEC_CDTBCD): Likewise.
24571 (UNSPEC_CBCDTD): Likewise.
24572 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
24573 (UNSPEC_DIVEO): Likewise.
24574 (UNSPEC_DIVEU): Likewise.
24575 (UNSPEC_DIVEUO): Likewise.
24576 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
24577 pack/unpack 128-bit types.
24578 (UNSPEC_PACK_128BIT): Likewise.
24579 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
24580 (udiv<mode>3): Use idiv_ldiv mode attribute.
24581 (div<mode>3): Likewise.
24582 (addg6s): Add new BCD builtin functions.
24583 (cdtbcd): Likewise.
24584 (cbcdtd): Likewise.
24585 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
24586 (div_extend): Likewise.
24587 (div<div_extend>_<mode>"): Likewise.
24588 (FP128_64): Add support for new builtin functions to pack/unpack
24590 (unpack<mode>): Likewise.
24591 (unpacktf_0): Likewise.
24592 (unpacktf_1): Likewise.
24593 (unpack<mode>_dm): Likewise.
24594 (unpack<mode>_nodm): Likewise.
24595 (pack<mode>): Likewise.
24596 (unpackv1ti): Likewise.
24597 (packv1ti): Likewise.
24599 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
24601 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
24604 2014-04-24 Jakub Jelinek <jakub@redhat.com>
24606 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
24607 * gimplify.c (omp_is_private): Change last argument's type to int.
24608 Only diagnose lastprivate if the simd argument is 1, only diagnose
24609 linear if the simd argument is 2.
24610 (gimplify_omp_for): Adjust omp_is_private callers. When adding
24611 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
24612 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
24613 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
24614 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
24615 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24616 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
24617 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24618 * tree-nested.c (convert_nonlocal_omp_clauses,
24619 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
24621 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
24624 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
24627 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
24629 * flag-types.h (enum ivar_visibility): Add.
24631 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
24633 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
24634 function * argument.
24636 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
24638 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
24640 2014-04-24 Radovan Obradovic <robradovic@mips.com>
24641 Tom de Vries <tom@codesourcery.com>
24643 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
24644 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
24646 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
24647 * emit-rtl.c (try_split): Same.
24649 2014-04-24 Radovan Obradovic <robradovic@mips.com>
24650 Tom de Vries <tom@codesourcery.com>
24652 * common.opt (fuse-caller-save): New option.
24654 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
24656 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
24657 elements for big-endian.
24659 2014-04-24 Richard Biener <rguenther@suse.de>
24661 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
24662 during TER and instead use the sepops interface for expanding
24663 non-GIMPLE_SINGLE_RHS.
24665 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24667 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
24668 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
24670 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24672 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
24673 assembler 64-bit option.
24674 * configure: Regenerate.
24676 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24678 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
24679 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
24680 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
24681 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
24682 (TARGET_CRYPTO): Take TARGET_SIMD into account.
24684 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24686 * config/aarch64/aarch64-builtins.c
24687 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
24688 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
24689 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
24690 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
24692 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
24693 (Vrevsuff): New mode attribute.
24695 2014-04-24 Terry Guo <terry.guo@arm.com>
24697 * config/arm/arm.h (machine_function): Define variable
24698 after_arm_reorg here.
24699 * config/arm/arm.c (after_arm_reorg): Remove the definition.
24700 (arm_split_constant): Update the way to access variable
24702 (arm_reorg): Ditto.
24703 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
24705 2014-04-23 Tom de Vries <tom@codesourcery.com>
24707 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
24709 2014-04-23 David Malcolm <dmalcolm@redhat.com>
24711 * is-a.h: Update comments to reflect the following changes to the
24712 "pointerness" of the API, making the template parameter match the
24713 return type, allowing use of is-a.h with typedefs of pointers.
24714 (is_a_helper::cast): Return a T rather then a pointer to a T, so
24715 that the return type matches the parameter to the is_a_helper.
24717 (dyn_cast): Likewise.
24719 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
24720 pointer from the is-a.h API.
24722 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
24723 (is_a_helper <cgraph_node *>::test): ...this, matching change to
24725 (is_a_helper <varpool_node>::test): Likewise, convert to...
24726 (is_a_helper <varpool_node *>::test): ...this.
24728 (varpool_first_variable): Update for removal of implicit pointer
24729 from the is-a.h API.
24730 (varpool_next_variable): Likewise.
24731 (varpool_first_static_initializer): Likewise.
24732 (varpool_next_static_initializer): Likewise.
24733 (varpool_first_defined_variable): Likewise.
24734 (varpool_next_defined_variable): Likewise.
24735 (cgraph_first_defined_function): Likewise.
24736 (cgraph_next_defined_function): Likewise.
24737 (cgraph_first_function): Likewise.
24738 (cgraph_next_function): Likewise.
24739 (cgraph_first_function_with_gimple_body): Likewise.
24740 (cgraph_next_function_with_gimple_body): Likewise.
24741 (cgraph_alias_target): Likewise.
24742 (varpool_alias_target): Likewise.
24743 (cgraph_function_or_thunk_node): Likewise.
24744 (varpool_variable_node): Likewise.
24745 (symtab_real_symbol_p): Likewise.
24746 * cgraphunit.c (referred_to_p): Likewise.
24747 (analyze_functions): Likewise.
24748 (handle_alias_pairs): Likewise.
24749 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
24750 * gimple-ssa.h (gimple_vuse_op): Likewise.
24751 (gimple_vdef_op): Likewise.
24752 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
24753 * gimple.c (gimple_build_asm_1): Likewise.
24754 (gimple_build_try): Likewise.
24755 (gimple_build_resx): Likewise.
24756 (gimple_build_eh_dispatch): Likewise.
24757 (gimple_build_omp_for): Likewise.
24758 (gimple_omp_for_set_clauses): Likewise.
24760 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
24761 (is_a_helper <gimple_statement_asm *>::test): ...this.
24762 (is_a_helper <gimple_statement_bind>::test): Convert to...
24763 (is_a_helper <gimple_statement_bind *>::test): ...this.
24764 (is_a_helper <gimple_statement_call>::test): Convert to...
24765 (is_a_helper <gimple_statement_call *>::test): ...this.
24766 (is_a_helper <gimple_statement_catch>::test): Convert to...
24767 (is_a_helper <gimple_statement_catch *>::test): ...this.
24768 (is_a_helper <gimple_statement_resx>::test): Convert to...
24769 (is_a_helper <gimple_statement_resx *>::test): ...this.
24770 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
24771 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
24772 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
24773 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
24774 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
24775 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
24776 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
24777 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
24778 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
24779 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
24780 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
24781 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
24782 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
24783 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
24784 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
24785 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
24786 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
24787 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
24788 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
24789 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
24790 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
24791 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
24792 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
24793 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
24794 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
24795 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
24796 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
24797 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
24798 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
24799 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
24800 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
24801 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
24802 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
24803 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
24804 (is_a_helper <gimple_statement_phi>::test): Convert to...
24805 (is_a_helper <gimple_statement_phi *>::test): ...this.
24806 (is_a_helper <gimple_statement_transaction>::test): Convert to...
24807 (is_a_helper <gimple_statement_transaction *>::test): ...this.
24808 (is_a_helper <gimple_statement_try>::test): Convert to...
24809 (is_a_helper <gimple_statement_try *>::test): ...this.
24810 (is_a_helper <gimple_statement_wce>::test): Convert to...
24811 (is_a_helper <gimple_statement_wce *>::test): ...this.
24812 (is_a_helper <const gimple_statement_asm>::test): Convert to...
24813 (is_a_helper <const gimple_statement_asm *>::test): ...this.
24814 (is_a_helper <const gimple_statement_bind>::test): Convert to...
24815 (is_a_helper <const gimple_statement_bind *>::test): ...this.
24816 (is_a_helper <const gimple_statement_call>::test): Convert to...
24817 (is_a_helper <const gimple_statement_call *>::test): ...this.
24818 (is_a_helper <const gimple_statement_catch>::test): Convert to...
24819 (is_a_helper <const gimple_statement_catch *>::test): ...this.
24820 (is_a_helper <const gimple_statement_resx>::test): Convert to...
24821 (is_a_helper <const gimple_statement_resx *>::test): ...this.
24822 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
24823 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
24824 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
24825 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
24826 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
24828 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
24830 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
24832 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
24834 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
24835 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
24836 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
24838 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
24839 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
24841 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
24842 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
24843 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
24844 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
24845 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
24846 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
24848 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
24849 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
24850 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
24851 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
24853 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
24854 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
24855 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
24856 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
24857 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
24858 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
24859 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
24860 (is_a_helper <const gimple_statement_phi>::test): Convert to...
24861 (is_a_helper <const gimple_statement_phi *>::test): ...this.
24862 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
24863 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
24864 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
24865 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
24866 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
24867 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
24868 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
24870 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
24872 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
24873 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
24875 (gimple_use_ops): Update for removal of implicit pointer from the
24877 (gimple_set_use_ops): Likewise.
24878 (gimple_vuse): Likewise.
24879 (gimple_vdef): Likewise.
24880 (gimple_vuse_ptr): Likewise.
24881 (gimple_vdef_ptr): Likewise.
24882 (gimple_set_vuse): Likewise.
24883 (gimple_set_vdef): Likewise.
24884 (gimple_omp_return_set_lhs): Likewise.
24885 (gimple_omp_return_lhs): Likewise.
24886 (gimple_omp_return_lhs_ptr): Likewise.
24887 (gimple_call_fntype): Likewise.
24888 (gimple_call_set_fntype): Likewise.
24889 (gimple_call_set_internal_fn): Likewise.
24890 (gimple_call_use_set): Likewise.
24891 (gimple_call_clobber_set): Likewise.
24892 (gimple_bind_vars): Likewise.
24893 (gimple_bind_set_vars): Likewise.
24894 (gimple_bind_body_ptr): Likewise.
24895 (gimple_bind_set_body): Likewise.
24896 (gimple_bind_add_stmt): Likewise.
24897 (gimple_bind_block): Likewise.
24898 (gimple_bind_set_block): Likewise.
24899 (gimple_asm_ninputs): Likewise.
24900 (gimple_asm_noutputs): Likewise.
24901 (gimple_asm_nclobbers): Likewise.
24902 (gimple_asm_nlabels): Likewise.
24903 (gimple_asm_input_op): Likewise.
24904 (gimple_asm_input_op_ptr): Likewise.
24905 (gimple_asm_output_op): Likewise.
24906 (gimple_asm_output_op_ptr): Likewise.
24907 (gimple_asm_set_output_op): Likewise.
24908 (gimple_asm_clobber_op): Likewise.
24909 (gimple_asm_set_clobber_op): Likewise.
24910 (gimple_asm_label_op): Likewise.
24911 (gimple_asm_set_label_op): Likewise.
24912 (gimple_asm_string): Likewise.
24913 (gimple_catch_types): Likewise.
24914 (gimple_catch_types_ptr): Likewise.
24915 (gimple_catch_handler_ptr): Likewise.
24916 (gimple_catch_set_types): Likewise.
24917 (gimple_catch_set_handler): Likewise.
24918 (gimple_eh_filter_types): Likewise.
24919 (gimple_eh_filter_types_ptr): Likewise.
24920 (gimple_eh_filter_failure_ptr): Likewise.
24921 (gimple_eh_filter_set_types): Likewise.
24922 (gimple_eh_filter_set_failure): Likewise.
24923 (gimple_eh_must_not_throw_fndecl): Likewise.
24924 (gimple_eh_must_not_throw_set_fndecl): Likewise.
24925 (gimple_eh_else_n_body_ptr): Likewise.
24926 (gimple_eh_else_e_body_ptr): Likewise.
24927 (gimple_eh_else_set_n_body): Likewise.
24928 (gimple_eh_else_set_e_body): Likewise.
24929 (gimple_try_eval_ptr): Likewise.
24930 (gimple_try_cleanup_ptr): Likewise.
24931 (gimple_try_set_eval): Likewise.
24932 (gimple_try_set_cleanup): Likewise.
24933 (gimple_wce_cleanup_ptr): Likewise.
24934 (gimple_wce_set_cleanup): Likewise.
24935 (gimple_phi_capacity): Likewise.
24936 (gimple_phi_num_args): Likewise.
24937 (gimple_phi_result): Likewise.
24938 (gimple_phi_result_ptr): Likewise.
24939 (gimple_phi_set_result): Likewise.
24940 (gimple_phi_arg): Likewise.
24941 (gimple_phi_set_arg): Likewise.
24942 (gimple_resx_region): Likewise.
24943 (gimple_resx_set_region): Likewise.
24944 (gimple_eh_dispatch_region): Likewise.
24945 (gimple_eh_dispatch_set_region): Likewise.
24946 (gimple_omp_critical_name): Likewise.
24947 (gimple_omp_critical_name_ptr): Likewise.
24948 (gimple_omp_critical_set_name): Likewise.
24949 (gimple_omp_for_clauses): Likewise.
24950 (gimple_omp_for_clauses_ptr): Likewise.
24951 (gimple_omp_for_set_clauses): Likewise.
24952 (gimple_omp_for_collapse): Likewise.
24953 (gimple_omp_for_index): Likewise.
24954 (gimple_omp_for_index_ptr): Likewise.
24955 (gimple_omp_for_set_index): Likewise.
24956 (gimple_omp_for_initial): Likewise.
24957 (gimple_omp_for_initial_ptr): Likewise.
24958 (gimple_omp_for_set_initial): Likewise.
24959 (gimple_omp_for_final): Likewise.
24960 (gimple_omp_for_final_ptr): Likewise.
24961 (gimple_omp_for_set_final): Likewise.
24962 (gimple_omp_for_incr): Likewise.
24963 (gimple_omp_for_incr_ptr): Likewise.
24964 (gimple_omp_for_set_incr): Likewise.
24965 (gimple_omp_for_pre_body_ptr): Likewise.
24966 (gimple_omp_for_set_pre_body): Likewise.
24967 (gimple_omp_parallel_clauses): Likewise.
24968 (gimple_omp_parallel_clauses_ptr): Likewise.
24969 (gimple_omp_parallel_set_clauses): Likewise.
24970 (gimple_omp_parallel_child_fn): Likewise.
24971 (gimple_omp_parallel_child_fn_ptr): Likewise.
24972 (gimple_omp_parallel_set_child_fn): Likewise.
24973 (gimple_omp_parallel_data_arg): Likewise.
24974 (gimple_omp_parallel_data_arg_ptr): Likewise.
24975 (gimple_omp_parallel_set_data_arg): Likewise.
24976 (gimple_omp_task_clauses): Likewise.
24977 (gimple_omp_task_clauses_ptr): Likewise.
24978 (gimple_omp_task_set_clauses): Likewise.
24979 (gimple_omp_task_child_fn): Likewise.
24980 (gimple_omp_task_child_fn_ptr): Likewise.
24981 (gimple_omp_task_set_child_fn): Likewise.
24982 (gimple_omp_task_data_arg): Likewise.
24983 (gimple_omp_task_data_arg_ptr): Likewise.
24984 (gimple_omp_task_set_data_arg): Likewise.
24985 (gimple_omp_taskreg_clauses): Likewise.
24986 (gimple_omp_taskreg_clauses_ptr): Likewise.
24987 (gimple_omp_taskreg_set_clauses): Likewise.
24988 (gimple_omp_taskreg_child_fn): Likewise.
24989 (gimple_omp_taskreg_child_fn_ptr): Likewise.
24990 (gimple_omp_taskreg_set_child_fn): Likewise.
24991 (gimple_omp_taskreg_data_arg): Likewise.
24992 (gimple_omp_taskreg_data_arg_ptr): Likewise.
24993 (gimple_omp_taskreg_set_data_arg): Likewise.
24994 (gimple_omp_task_copy_fn): Likewise.
24995 (gimple_omp_task_copy_fn_ptr): Likewise.
24996 (gimple_omp_task_set_copy_fn): Likewise.
24997 (gimple_omp_task_arg_size): Likewise.
24998 (gimple_omp_task_arg_size_ptr): Likewise.
24999 (gimple_omp_task_set_arg_size): Likewise.
25000 (gimple_omp_task_arg_align): Likewise.
25001 (gimple_omp_task_arg_align_ptr): Likewise.
25002 (gimple_omp_task_set_arg_align): Likewise.
25003 (gimple_omp_single_clauses): Likewise.
25004 (gimple_omp_single_clauses_ptr): Likewise.
25005 (gimple_omp_single_set_clauses): Likewise.
25006 (gimple_omp_target_clauses): Likewise.
25007 (gimple_omp_target_clauses_ptr): Likewise.
25008 (gimple_omp_target_set_clauses): Likewise.
25009 (gimple_omp_target_child_fn): Likewise.
25010 (gimple_omp_target_child_fn_ptr): Likewise.
25011 (gimple_omp_target_set_child_fn): Likewise.
25012 (gimple_omp_target_data_arg): Likewise.
25013 (gimple_omp_target_data_arg_ptr): Likewise.
25014 (gimple_omp_target_set_data_arg): Likewise.
25015 (gimple_omp_teams_clauses): Likewise.
25016 (gimple_omp_teams_clauses_ptr): Likewise.
25017 (gimple_omp_teams_set_clauses): Likewise.
25018 (gimple_omp_sections_clauses): Likewise.
25019 (gimple_omp_sections_clauses_ptr): Likewise.
25020 (gimple_omp_sections_set_clauses): Likewise.
25021 (gimple_omp_sections_control): Likewise.
25022 (gimple_omp_sections_control_ptr): Likewise.
25023 (gimple_omp_sections_set_control): Likewise.
25024 (gimple_omp_for_set_cond): Likewise.
25025 (gimple_omp_for_cond): Likewise.
25026 (gimple_omp_atomic_store_set_val): Likewise.
25027 (gimple_omp_atomic_store_val): Likewise.
25028 (gimple_omp_atomic_store_val_ptr): Likewise.
25029 (gimple_omp_atomic_load_set_lhs): Likewise.
25030 (gimple_omp_atomic_load_lhs): Likewise.
25031 (gimple_omp_atomic_load_lhs_ptr): Likewise.
25032 (gimple_omp_atomic_load_set_rhs): Likewise.
25033 (gimple_omp_atomic_load_rhs): Likewise.
25034 (gimple_omp_atomic_load_rhs_ptr): Likewise.
25035 (gimple_omp_continue_control_def): Likewise.
25036 (gimple_omp_continue_control_def_ptr): Likewise.
25037 (gimple_omp_continue_set_control_def): Likewise.
25038 (gimple_omp_continue_control_use): Likewise.
25039 (gimple_omp_continue_control_use_ptr): Likewise.
25040 (gimple_omp_continue_set_control_use): Likewise.
25041 (gimple_transaction_body_ptr): Likewise.
25042 (gimple_transaction_label): Likewise.
25043 (gimple_transaction_label_ptr): Likewise.
25044 (gimple_transaction_set_body): Likewise.
25045 (gimple_transaction_set_label): Likewise.
25047 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
25048 * ipa-inline-analysis.c (inline_write_summary): Likewise.
25049 * ipa-ref.c (ipa_record_reference): Likewise.
25050 * ipa-reference.c (analyze_function): Likewise.
25051 (ipa_reference_write_optimization_summary): Likewise.
25052 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
25053 (address_taken_from_non_vtable_p): Likewise.
25054 (comdat_can_be_unshared_p_1): Likewise.
25055 * lto-cgraph.c (lto_output_ref): Likewise.
25056 (add_references): Likewise.
25057 (compute_ltrans_boundary): Likewise.
25058 (output_symtab): Likewise.
25059 (input_ref): Likewise.
25060 (input_cgraph_1): Likewise.
25061 (output_cgraph_opt_summary): Likewise.
25062 * lto-streamer-out.c (lto_output): Likewise.
25063 (output_symbol_p): Likewise.
25064 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
25065 (lsei_start_function_in_partition): Likewise.
25066 (lsei_next_variable_in_partition): Likewise.
25067 (lsei_start_variable_in_partition): Likewise.
25068 * symtab.c (insert_to_assembler_name_hash): Likewise.
25069 (unlink_from_assembler_name_hash): Likewise.
25070 (symtab_unregister_node): Likewise.
25071 (symtab_remove_node): Likewise.
25072 (dump_symtab_node): Likewise.
25073 (verify_symtab_base): Likewise.
25074 (verify_symtab_node): Likewise.
25075 (symtab_make_decl_local): Likewise.
25076 (symtab_alias_ultimate_target): Likewise.
25077 (symtab_resolve_alias): Likewise.
25078 (symtab_get_symbol_partitioning_class): Likewise.
25079 * tree-phinodes.c (allocate_phi_node): Likewise.
25080 (reserve_phi_args_for_new_edge): Likewise.
25081 (remove_phi_args): Likewise.
25082 * varpool.c (varpool_node_for_asm): Likewise.
25083 (varpool_remove_unreferenced_decls): Likewise.
25085 2014-04-23 Jeff Law <law@redhat.com>
25087 PR tree-optimization/60902
25088 * tree-ssa-threadedge.c
25089 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
25090 invalidate outputs from statements that do not produce useful
25091 outputs for threading.
25093 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
25095 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
25096 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
25097 machine descriptions for Stack Smashing Protector.
25099 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
25101 * aarch64.md (<optab>_rol<mode>3): New pattern.
25102 (<optab>_rolsi3_uxtw): Likewise.
25103 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
25105 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
25107 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
25108 (arm_cortex_a12_tune): Likewise.
25110 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25112 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
25114 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25116 * config/arm/arm.md (arm_rev16si2): New pattern.
25117 (arm_rev16si2_alt): Likewise.
25118 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
25120 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25122 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
25123 (rev16<mode>2_alt): Likewise.
25124 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
25125 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
25126 (aarch_rev16_shleft_mask_imm_p): Likewise.
25127 (aarch_rev16_p_1): Likewise.
25128 (aarch_rev16_p): Likewise.
25129 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
25130 (aarch_rev16_shright_mask_imm_p): Likewise.
25131 (aarch_rev16_shleft_mask_imm_p): Likewise.
25133 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25135 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
25136 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
25138 (cortex_a53_extra_costs): Likewise.
25139 (cortex_a57_extra_costs): Likewise.
25140 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
25141 (cortexa7_extra_costs): Likewise.
25142 (cortexa8_extra_costs): Likewise.
25143 (cortexa12_extra_costs): Likewise.
25144 (cortexa15_extra_costs): Likewise.
25145 (v7m_extra_costs): Likewise.
25146 (arm_new_rtx_costs): Handle BSWAP.
25148 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25150 * config/arm/arm.c (cortexa8_extra_costs): New table.
25151 (arm_cortex_a8_tune): New tuning struct.
25152 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
25154 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25156 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
25158 2014-04-23 Richard Biener <rguenther@suse.de>
25160 * Makefile.in (OBJS): Remove loop-unswitch.o.
25161 * tree-pass.h (make_pass_rtl_unswitch): Remove.
25162 * passes.def (pass_rtl_unswitch): Likewise.
25163 * loop-init.c (gate_rtl_unswitch): Likewise.
25164 (rtl_unswitch): Likewise.
25165 (pass_data_rtl_unswitch): Likewise.
25166 (pass_rtl_unswitch): Likewise.
25167 (make_pass_rtl_unswitch): Likewise.
25168 * rtl.h (reversed_condition): Likewise.
25169 (compare_and_jump_seq): Likewise.
25170 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
25172 * loop-unroll.c (compare_and_jump_seq): Likewise.
25174 2014-04-23 Richard Biener <rguenther@suse.de>
25176 PR tree-optimization/60903
25177 * tree-ssa-loop-im.c (analyze_memory_references): Remove
25178 commented code block.
25179 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
25180 loop flags to newly created BBs and edges.
25182 2014-04-23 Nick Clifton <nickc@redhat.com>
25184 * config/msp430/msp430.c (msp430_handle_option): Move function
25186 (msp430_option_override): Simplify mcu and mcpu option handling.
25187 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
25188 support for -mhwmult command line option.
25189 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
25190 -mhwmult command line option.
25191 (msp430_hwmult_enabled): Delete.
25192 (msp43o_output_labelref): Add support for -mhwmult command line option.
25193 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
25194 (umulsidi3): Likewise.
25195 * config/msp430/msp430.opt (mmcu): Add Report attribute.
25196 (mcpu, mlarge, msmall): Likewise.
25197 (mhwmult): New option.
25198 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
25200 (msp430_is_f5_mcu): Remove prototype.
25201 (msp430_use_f5_series_hwmult): Add prototype.
25202 * config/msp430/msp430-opts.h: New file.
25203 * common/config/msp430: New directory.
25204 * common/config/msp430/msp430-common.c: New file.
25205 * config.gcc (msp430): Remove target_has_targetm_common.
25206 * doc/invoke.texi: Document -mhwmult command line option.
25208 2014-04-23 Nick Clifton <nickc@redhat.com>
25210 * config/i386/cygwin.h (ENDFILE_SPEC): Include
25211 default-manifest.o if it can be found in the search path.
25212 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25214 2014-04-23 Terry Guo <terry.guo@arm.com>
25216 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
25218 2014-04-23 Richard Biener <rguenther@suse.de>
25220 PR middle-end/60895
25221 * tree-inline.c (declare_return_variable): Use mark_addressable.
25223 2014-04-23 Richard Biener <rguenther@suse.de>
25225 PR middle-end/60891
25226 * loop-init.c (loop_optimizer_init): Make sure to apply
25227 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
25229 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25232 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
25234 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
25235 if flag_sanitize_undefined_trap_on_error.
25236 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
25237 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
25238 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
25239 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
25240 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
25241 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
25242 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
25243 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
25244 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
25245 * ubsan.c (ubsan_instrument_unreachable): Return
25246 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
25247 (ubsan_expand_null_ifn): Emit __builtin_trap ()
25248 if flag_sanitize_undefined_trap_on_error and
25249 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
25250 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
25251 instrument_bool_enum_load): Emit __builtin_trap () if
25252 flag_sanitize_undefined_trap_on_error and
25253 __builtin_handle_*_abort () if !flag_sanitize_recover.
25254 * doc/invoke.texi (-fsanitize-recover,
25255 -fsanitize-undefined-trap-on-error): Document.
25257 2014-04-22 Christian Bruel <christian.bruel@st.com>
25259 * config/sh/sh.md (mov<mode>): Replace movQIHI.
25260 Force immediates to SImode.
25262 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
25264 * config/nios2/nios2.md (UNSPEC_ROUND): New.
25265 (lroundsfsi2): New.
25266 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
25267 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
25268 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
25269 (nios2_fpu_insn): Add entry for round.
25270 (N2FPU_NO_ERRNO_P): Define.
25271 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
25273 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
25275 2014-04-22 Richard Henderson <rth@redhat.com>
25277 * config/aarch64/aarch64 (addti3, subti3): New expanders.
25278 (add<GPI>3_compare0): Remove leading * from name.
25279 (add<GPI>3_carryin): Likewise.
25280 (sub<GPI>3_compare0): Likewise.
25281 (sub<GPI>3_carryin): Likewise.
25282 (<su_optab>mulditi3): New expander.
25283 (multi3): New expander.
25284 (madd<GPI>): Remove leading * from name.
25286 2014-04-22 Martin Jambor <mjambor@suse.cz>
25288 * cgraphclones.c (cgraph_function_versioning): Copy
25289 ipa_transforms_to_apply instead of asserting it is empty.
25291 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
25294 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
25295 on count_exp to get mode.
25297 2014-04-22 Andrew Pinski <apinski@cavium.com>
25299 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25300 Handle TLS for ILP32.
25301 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
25302 (tlsie_small_<mode>): this and handle PTR.
25303 (tlsie_small_sidi): New pattern.
25304 (tlsle_small): Change to an expand to handle ILP32.
25305 (tlsle_small_<mode>): New pattern.
25306 (tlsdesc_small): Rename to ...
25307 (tlsdesc_small_<mode>): this and handle PTR.
25309 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25311 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
25313 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25315 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25316 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
25317 (aarch64_types_signed_poly_qualifiers): Likewise.
25318 (aarch64_types_unsigned_signed_qualifiers): Likewise.
25319 (aarch64_types_poly_signed_qualifiers): Likewise.
25320 (TYPES_REINTERP_SS): Type macro added.
25321 (TYPES_REINTERP_SU): Likewise.
25322 (TYPES_REINTERP_SP): Likewise.
25323 (TYPES_REINTERP_US): Likewise.
25324 (TYPES_REINTERP_PS): Likewise.
25325 (aarch64_fold_builtin): New expression folding added.
25326 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
25327 Declarations removed.
25328 (REINTERP_SS): Declarations added.
25329 (REINTERP_US): Likewise.
25330 (REINTERP_PS): Likewise.
25331 (REINTERP_SU): Likewise.
25332 (REINTERP_SP): Likewise.
25333 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
25334 (vreinterpretq_p8_f64): Likewise.
25335 (vreinterpret_p16_f64): Likewise.
25336 (vreinterpretq_p16_f64): Likewise.
25337 (vreinterpret_f32_f64): Likewise.
25338 (vreinterpretq_f32_f64): Likewise.
25339 (vreinterpret_f64_f32): Likewise.
25340 (vreinterpret_f64_p8): Likewise.
25341 (vreinterpret_f64_p16): Likewise.
25342 (vreinterpret_f64_s8): Likewise.
25343 (vreinterpret_f64_s16): Likewise.
25344 (vreinterpret_f64_s32): Likewise.
25345 (vreinterpret_f64_s64): Likewise.
25346 (vreinterpret_f64_u8): Likewise.
25347 (vreinterpret_f64_u16): Likewise.
25348 (vreinterpret_f64_u32): Likewise.
25349 (vreinterpret_f64_u64): Likewise.
25350 (vreinterpretq_f64_f32): Likewise.
25351 (vreinterpretq_f64_p8): Likewise.
25352 (vreinterpretq_f64_p16): Likewise.
25353 (vreinterpretq_f64_s8): Likewise.
25354 (vreinterpretq_f64_s16): Likewise.
25355 (vreinterpretq_f64_s32): Likewise.
25356 (vreinterpretq_f64_s64): Likewise.
25357 (vreinterpretq_f64_u8): Likewise.
25358 (vreinterpretq_f64_u16): Likewise.
25359 (vreinterpretq_f64_u32): Likewise.
25360 (vreinterpretq_f64_u64): Likewise.
25361 (vreinterpret_s64_f64): Likewise.
25362 (vreinterpretq_s64_f64): Likewise.
25363 (vreinterpret_u64_f64): Likewise.
25364 (vreinterpretq_u64_f64): Likewise.
25365 (vreinterpret_s8_f64): Likewise.
25366 (vreinterpretq_s8_f64): Likewise.
25367 (vreinterpret_s16_f64): Likewise.
25368 (vreinterpretq_s16_f64): Likewise.
25369 (vreinterpret_s32_f64): Likewise.
25370 (vreinterpretq_s32_f64): Likewise.
25371 (vreinterpret_u8_f64): Likewise.
25372 (vreinterpretq_u8_f64): Likewise.
25373 (vreinterpret_u16_f64): Likewise.
25374 (vreinterpretq_u16_f64): Likewise.
25375 (vreinterpret_u32_f64): Likewise.
25376 (vreinterpretq_u32_f64): Likewise.
25378 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25380 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25381 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
25382 (vreinterpret_p8_s8): Likewise.
25383 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
25384 (vreinterpret_p8_s16): Likewise.
25385 (vreinterpret_p8_s32): Likewise.
25386 (vreinterpret_p8_s64): Likewise.
25387 (vreinterpret_p8_f32): Likewise.
25388 (vreinterpret_p8_u8): Likewise.
25389 (vreinterpret_p8_u16): Likewise.
25390 (vreinterpret_p8_u32): Likewise.
25391 (vreinterpret_p8_u64): Likewise.
25392 (vreinterpret_p8_p16): Likewise.
25393 (vreinterpretq_p8_s8): Likewise.
25394 (vreinterpretq_p8_s16): Likewise.
25395 (vreinterpretq_p8_s32): Likewise.
25396 (vreinterpretq_p8_s64): Likewise.
25397 (vreinterpretq_p8_f32): Likewise.
25398 (vreinterpretq_p8_u8): Likewise.
25399 (vreinterpretq_p8_u16): Likewise.
25400 (vreinterpretq_p8_u32): Likewise.
25401 (vreinterpretq_p8_u64): Likewise.
25402 (vreinterpretq_p8_p16): Likewise.
25403 (vreinterpret_p16_s8): Likewise.
25404 (vreinterpret_p16_s16): Likewise.
25405 (vreinterpret_p16_s32): Likewise.
25406 (vreinterpret_p16_s64): Likewise.
25407 (vreinterpret_p16_f32): Likewise.
25408 (vreinterpret_p16_u8): Likewise.
25409 (vreinterpret_p16_u16): Likewise.
25410 (vreinterpret_p16_u32): Likewise.
25411 (vreinterpret_p16_u64): Likewise.
25412 (vreinterpret_p16_p8): Likewise.
25413 (vreinterpretq_p16_s8): Likewise.
25414 (vreinterpretq_p16_s16): Likewise.
25415 (vreinterpretq_p16_s32): Likewise.
25416 (vreinterpretq_p16_s64): Likewise.
25417 (vreinterpretq_p16_f32): Likewise.
25418 (vreinterpretq_p16_u8): Likewise.
25419 (vreinterpretq_p16_u16): Likewise.
25420 (vreinterpretq_p16_u32): Likewise.
25421 (vreinterpretq_p16_u64): Likewise.
25422 (vreinterpretq_p16_p8): Likewise.
25423 (vreinterpret_f32_s8): Likewise.
25424 (vreinterpret_f32_s16): Likewise.
25425 (vreinterpret_f32_s32): Likewise.
25426 (vreinterpret_f32_s64): Likewise.
25427 (vreinterpret_f32_u8): Likewise.
25428 (vreinterpret_f32_u16): Likewise.
25429 (vreinterpret_f32_u32): Likewise.
25430 (vreinterpret_f32_u64): Likewise.
25431 (vreinterpret_f32_p8): Likewise.
25432 (vreinterpret_f32_p16): Likewise.
25433 (vreinterpretq_f32_s8): Likewise.
25434 (vreinterpretq_f32_s16): Likewise.
25435 (vreinterpretq_f32_s32): Likewise.
25436 (vreinterpretq_f32_s64): Likewise.
25437 (vreinterpretq_f32_u8): Likewise.
25438 (vreinterpretq_f32_u16): Likewise.
25439 (vreinterpretq_f32_u32): Likewise.
25440 (vreinterpretq_f32_u64): Likewise.
25441 (vreinterpretq_f32_p8): Likewise.
25442 (vreinterpretq_f32_p16): Likewise.
25443 (vreinterpret_s64_s8): Likewise.
25444 (vreinterpret_s64_s16): Likewise.
25445 (vreinterpret_s64_s32): Likewise.
25446 (vreinterpret_s64_f32): Likewise.
25447 (vreinterpret_s64_u8): Likewise.
25448 (vreinterpret_s64_u16): Likewise.
25449 (vreinterpret_s64_u32): Likewise.
25450 (vreinterpret_s64_u64): Likewise.
25451 (vreinterpret_s64_p8): Likewise.
25452 (vreinterpret_s64_p16): Likewise.
25453 (vreinterpretq_s64_s8): Likewise.
25454 (vreinterpretq_s64_s16): Likewise.
25455 (vreinterpretq_s64_s32): Likewise.
25456 (vreinterpretq_s64_f32): Likewise.
25457 (vreinterpretq_s64_u8): Likewise.
25458 (vreinterpretq_s64_u16): Likewise.
25459 (vreinterpretq_s64_u32): Likewise.
25460 (vreinterpretq_s64_u64): Likewise.
25461 (vreinterpretq_s64_p8): Likewise.
25462 (vreinterpretq_s64_p16): Likewise.
25463 (vreinterpret_u64_s8): Likewise.
25464 (vreinterpret_u64_s16): Likewise.
25465 (vreinterpret_u64_s32): Likewise.
25466 (vreinterpret_u64_s64): Likewise.
25467 (vreinterpret_u64_f32): Likewise.
25468 (vreinterpret_u64_u8): Likewise.
25469 (vreinterpret_u64_u16): Likewise.
25470 (vreinterpret_u64_u32): Likewise.
25471 (vreinterpret_u64_p8): Likewise.
25472 (vreinterpret_u64_p16): Likewise.
25473 (vreinterpretq_u64_s8): Likewise.
25474 (vreinterpretq_u64_s16): Likewise.
25475 (vreinterpretq_u64_s32): Likewise.
25476 (vreinterpretq_u64_s64): Likewise.
25477 (vreinterpretq_u64_f32): Likewise.
25478 (vreinterpretq_u64_u8): Likewise.
25479 (vreinterpretq_u64_u16): Likewise.
25480 (vreinterpretq_u64_u32): Likewise.
25481 (vreinterpretq_u64_p8): Likewise.
25482 (vreinterpretq_u64_p16): Likewise.
25483 (vreinterpret_s8_s16): Likewise.
25484 (vreinterpret_s8_s32): Likewise.
25485 (vreinterpret_s8_s64): Likewise.
25486 (vreinterpret_s8_f32): Likewise.
25487 (vreinterpret_s8_u8): Likewise.
25488 (vreinterpret_s8_u16): Likewise.
25489 (vreinterpret_s8_u32): Likewise.
25490 (vreinterpret_s8_u64): Likewise.
25491 (vreinterpret_s8_p8): Likewise.
25492 (vreinterpret_s8_p16): Likewise.
25493 (vreinterpretq_s8_s16): Likewise.
25494 (vreinterpretq_s8_s32): Likewise.
25495 (vreinterpretq_s8_s64): Likewise.
25496 (vreinterpretq_s8_f32): Likewise.
25497 (vreinterpretq_s8_u8): Likewise.
25498 (vreinterpretq_s8_u16): Likewise.
25499 (vreinterpretq_s8_u32): Likewise.
25500 (vreinterpretq_s8_u64): Likewise.
25501 (vreinterpretq_s8_p8): Likewise.
25502 (vreinterpretq_s8_p16): Likewise.
25503 (vreinterpret_s16_s8): Likewise.
25504 (vreinterpret_s16_s32): Likewise.
25505 (vreinterpret_s16_s64): Likewise.
25506 (vreinterpret_s16_f32): Likewise.
25507 (vreinterpret_s16_u8): Likewise.
25508 (vreinterpret_s16_u16): Likewise.
25509 (vreinterpret_s16_u32): Likewise.
25510 (vreinterpret_s16_u64): Likewise.
25511 (vreinterpret_s16_p8): Likewise.
25512 (vreinterpret_s16_p16): Likewise.
25513 (vreinterpretq_s16_s8): Likewise.
25514 (vreinterpretq_s16_s32): Likewise.
25515 (vreinterpretq_s16_s64): Likewise.
25516 (vreinterpretq_s16_f32): Likewise.
25517 (vreinterpretq_s16_u8): Likewise.
25518 (vreinterpretq_s16_u16): Likewise.
25519 (vreinterpretq_s16_u32): Likewise.
25520 (vreinterpretq_s16_u64): Likewise.
25521 (vreinterpretq_s16_p8): Likewise.
25522 (vreinterpretq_s16_p16): Likewise.
25523 (vreinterpret_s32_s8): Likewise.
25524 (vreinterpret_s32_s16): Likewise.
25525 (vreinterpret_s32_s64): Likewise.
25526 (vreinterpret_s32_f32): Likewise.
25527 (vreinterpret_s32_u8): Likewise.
25528 (vreinterpret_s32_u16): Likewise.
25529 (vreinterpret_s32_u32): Likewise.
25530 (vreinterpret_s32_u64): Likewise.
25531 (vreinterpret_s32_p8): Likewise.
25532 (vreinterpret_s32_p16): Likewise.
25533 (vreinterpretq_s32_s8): Likewise.
25534 (vreinterpretq_s32_s16): Likewise.
25535 (vreinterpretq_s32_s64): Likewise.
25536 (vreinterpretq_s32_f32): Likewise.
25537 (vreinterpretq_s32_u8): Likewise.
25538 (vreinterpretq_s32_u16): Likewise.
25539 (vreinterpretq_s32_u32): Likewise.
25540 (vreinterpretq_s32_u64): Likewise.
25541 (vreinterpretq_s32_p8): Likewise.
25542 (vreinterpretq_s32_p16): Likewise.
25543 (vreinterpret_u8_s8): Likewise.
25544 (vreinterpret_u8_s16): Likewise.
25545 (vreinterpret_u8_s32): Likewise.
25546 (vreinterpret_u8_s64): Likewise.
25547 (vreinterpret_u8_f32): Likewise.
25548 (vreinterpret_u8_u16): Likewise.
25549 (vreinterpret_u8_u32): Likewise.
25550 (vreinterpret_u8_u64): Likewise.
25551 (vreinterpret_u8_p8): Likewise.
25552 (vreinterpret_u8_p16): Likewise.
25553 (vreinterpretq_u8_s8): Likewise.
25554 (vreinterpretq_u8_s16): Likewise.
25555 (vreinterpretq_u8_s32): Likewise.
25556 (vreinterpretq_u8_s64): Likewise.
25557 (vreinterpretq_u8_f32): Likewise.
25558 (vreinterpretq_u8_u16): Likewise.
25559 (vreinterpretq_u8_u32): Likewise.
25560 (vreinterpretq_u8_u64): Likewise.
25561 (vreinterpretq_u8_p8): Likewise.
25562 (vreinterpretq_u8_p16): Likewise.
25563 (vreinterpret_u16_s8): Likewise.
25564 (vreinterpret_u16_s16): Likewise.
25565 (vreinterpret_u16_s32): Likewise.
25566 (vreinterpret_u16_s64): Likewise.
25567 (vreinterpret_u16_f32): Likewise.
25568 (vreinterpret_u16_u8): Likewise.
25569 (vreinterpret_u16_u32): Likewise.
25570 (vreinterpret_u16_u64): Likewise.
25571 (vreinterpret_u16_p8): Likewise.
25572 (vreinterpret_u16_p16): Likewise.
25573 (vreinterpretq_u16_s8): Likewise.
25574 (vreinterpretq_u16_s16): Likewise.
25575 (vreinterpretq_u16_s32): Likewise.
25576 (vreinterpretq_u16_s64): Likewise.
25577 (vreinterpretq_u16_f32): Likewise.
25578 (vreinterpretq_u16_u8): Likewise.
25579 (vreinterpretq_u16_u32): Likewise.
25580 (vreinterpretq_u16_u64): Likewise.
25581 (vreinterpretq_u16_p8): Likewise.
25582 (vreinterpretq_u16_p16): Likewise.
25583 (vreinterpret_u32_s8): Likewise.
25584 (vreinterpret_u32_s16): Likewise.
25585 (vreinterpret_u32_s32): Likewise.
25586 (vreinterpret_u32_s64): Likewise.
25587 (vreinterpret_u32_f32): Likewise.
25588 (vreinterpret_u32_u8): Likewise.
25589 (vreinterpret_u32_u16): Likewise.
25590 (vreinterpret_u32_u64): Likewise.
25591 (vreinterpret_u32_p8): Likewise.
25592 (vreinterpret_u32_p16): Likewise.
25593 (vreinterpretq_u32_s8): Likewise.
25594 (vreinterpretq_u32_s16): Likewise.
25595 (vreinterpretq_u32_s32): Likewise.
25596 (vreinterpretq_u32_s64): Likewise.
25597 (vreinterpretq_u32_f32): Likewise.
25598 (vreinterpretq_u32_u8): Likewise.
25599 (vreinterpretq_u32_u16): Likewise.
25600 (vreinterpretq_u32_u64): Likewise.
25601 (vreinterpretq_u32_p8): Likewise.
25602 (vreinterpretq_u32_p16): Likewise.
25604 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25606 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
25608 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
25610 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
25611 (vqnegd_s64): Likewise.
25612 (vqabs_s64): Likewise.
25613 (vqabsd_s64): Likewise.
25615 2014-04-22 Richard Henderson <rth@redhat.com>
25617 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
25618 computation to the top of the loop.
25620 2014-04-22 Renlin <renlin.li@arm.com>
25621 Jiong Wang <jiong.wang@arm.com>
25623 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
25624 * config/aarch64/aarch64.c (aarch64_layout_frame)
25625 (aarch64_initial_elimination_offset): Likewise.
25627 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
25629 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
25632 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
25634 * machmode.h (bitwise_mode_for_mode): Declare.
25635 * stor-layout.h (bitwise_type_for_mode): Likewise.
25636 * stor-layout.c (bitwise_mode_for_mode): New function.
25637 (bitwise_type_for_mode): Likewise.
25638 * builtins.c (fold_builtin_memory_op): Use it instead of
25639 int_mode_for_mode and build_nonstandard_integer_type.
25641 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25643 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
25644 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
25645 (*-*-solaris2*): Simplify.
25646 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
25647 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
25648 *-*-solaris2.9* handling.
25650 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
25652 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
25653 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
25654 handling, simplify.
25655 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
25656 * configure: Regenerate.
25658 * config/i386/sol2-9.h: Remove.
25660 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
25661 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
25662 Remove Solaris 9 references.
25664 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
25666 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
25667 (floatuns<GPI:mode><GPF:mode>2): Remove.
25668 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
25669 and floatuns conversions.
25670 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
25671 and floatuns conversions.
25672 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
25673 (w1,w2): New mode attributes for inequal width conversions.
25675 2014-04-22 Renlin Li <Renlin.Li@arm.com>
25677 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
25678 the output asm format.
25680 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
25682 * config/aarch64/aarch64-simd.md
25683 (aarch64_cm<optab>di): Always split.
25684 (*aarch64_cm<optab>di): New.
25685 (aarch64_cmtstdi): Always split.
25686 (*aarch64_cmtstdi): New.
25688 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25690 PR tree-optimization/60823
25691 * omp-low.c (ipa_simd_modify_function_body): Go through
25692 all SSA_NAMEs and for those refering to vector arguments
25693 which are going to be replaced adjust SSA_NAME_VAR and,
25694 if it is a default definition, change it into a non-default
25695 definition assigned at the beginning of function from new_decl.
25696 (ipa_simd_modify_stmt_ops): Rewritten.
25697 * tree-dfa.c (set_ssa_default_def): When removing default def,
25698 check for NULL loc instead of NULL *loc.
25700 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25702 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
25703 restrictions on core registers for DImode values in Thumb2.
25705 2014-04-22 Ian Bolton <ian.bolton@arm.com>
25707 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
25708 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
25710 2014-04-22 Ian Bolton <ian.bolton@arm.com>
25712 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
25713 (*iordi_notzesidi_di): Likewise.
25714 (*iordi_notsesidi_di): Likewise.
25716 2014-04-22 Ian Bolton <ian.bolton@arm.com>
25718 * config/arm/arm-protos.h (tune_params): New struct members.
25719 * config/arm/arm.c: Initialise tune_params per processor.
25720 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
25721 for speed, based on new tune_params.
25723 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25725 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
25726 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
25727 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
25728 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
25729 * config/aarch64/arm_neon.h (vrnd_f64): Added.
25730 (vrnda_f64): Likewise.
25731 (vrndi_f64): Likewise.
25732 (vrndm_f64): Likewise.
25733 (vrndn_f64): Likewise.
25734 (vrndp_f64): Likewise.
25735 (vrndx_f64): Likewise.
25737 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25739 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
25740 GET_MODE_SIZE argument is enum machine_mode.
25742 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25745 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
25746 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
25748 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
25750 PR middle-end/60281
25751 * asan.c (asan_emit_stack_protection): Force the base to align to
25752 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
25753 appropriate bits if STRICT_ALIGNMENT.
25754 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
25756 (expand_used_vars): Leave a space in the stack frame for alignment
25757 if STRICT_ALIGNMENT.
25759 2014-04-21 David Malcolm <dmalcolm@redhat.com>
25761 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
25763 (gimple_store_p): Likewise.
25764 (gimple_assign_load_p): Likewise.
25765 (gimple_assign_cast_p): Likewise.
25766 (gimple_clobber_p): Likewise.
25768 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
25769 rather than a gimple.
25770 (gimple_assign_cast_p): Likewise.
25772 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
25775 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
25776 If mode is DDmode and TARGET_E500_DOUBLE allow move.
25778 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
25779 more debug information for E500 if -mdebug=reg.
25781 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
25784 * config/i386/i386.c (ix86_expand_builtin)
25785 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
25786 register for target RTX.
25787 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
25789 2014-04-18 Cong Hou <congh@google.com>
25791 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
25792 the widen-mult pattern by handling two operands with different sizes,
25793 and operands whose size is smaller than half of the result type.
25795 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
25797 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
25798 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
25799 (do_estimate_edge_time): Compute it.
25800 * ipa-inline.c (want_inline_small_function_p): Bypass
25801 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
25803 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
25805 * ipa-inline.c (spec_rem): New static variable.
25806 (dump_overall_stats): New function.
25807 (dump_inline_stats): New function.
25809 2014-04-18 Richard Henderson <rth@redhat.com>
25811 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
25812 to GET_MODE_SIZE, not a reg_class_t.
25814 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25816 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
25817 (vsx_xxmrglw_<mode>): Likewise.
25819 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
25822 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
25823 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
25824 (rs6000_init_hard_regno_mode_ok): Likewise.
25826 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
25828 * ipa-inline.c (inline_small_functions): Account only non-cold
25830 * doc/invoke.texi (inline-unit-growth): Update documentation.
25832 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
25834 * config/rs6000/rs6000.md (addti3, subti3): New.
25836 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
25839 * config/i386/i386.c (ix86_expand_clear): Remove outdated
25840 comment. Check optimize_insn_for_size_p instead of
25841 optimize_insn_for_speed_p.
25843 2014-04-17 Martin Jambor <mjambor@suse.cz>
25845 * gimple-iterator.c (gsi_start_edge): New function.
25846 * gimple-iterator.h (gsi_start_edge): Declare.
25847 * tree-sra.c (single_non_eh_succ): New function.
25848 (disqualify_ops_if_throwing_stmt): Renamed to
25849 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
25850 having one non-EH successor BB.
25851 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
25852 generate loads into replacements.
25853 (sra_modify_assign): Likewise and and also use the simple path for
25855 (sra_modify_function_body): Commit statements on edges.
25857 2014-04-17 Richard Biener <rguenther@suse.de>
25859 PR middle-end/60849
25860 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
25861 comparison results and add clarifying comment.
25863 2014-04-17 Jakub Jelinek <jakub@redhat.com>
25865 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
25866 (blank_mode): Initialize it.
25867 (emit_mode_size_inline, emit_mode_nunits_inline,
25868 emit_mode_inner_inline): New functions.
25869 (emit_insn_modes_h): Call them and surround their output with
25870 #if GCC_VERSION >= 4001 ... #endif.
25871 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
25872 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
25873 mode_* arrays if the argument is __builtin_constant_p.
25874 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
25875 is enum machine_mode.
25877 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25879 * passes.c (opt_pass::execute): Adjust.
25880 (pass_manager::execute_pass_mode_switching): Likewise.
25881 (early_local_passes::execute): Likewise.
25882 (execute_one_pass): Pass cfun to the pass's execute method.
25883 * tree-pass.h (opt_pass::execute): Add function * argument.
25884 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
25885 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
25886 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
25887 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25888 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
25889 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
25890 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
25891 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
25892 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
25893 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
25894 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
25895 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
25896 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
25897 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
25898 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
25899 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
25900 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
25901 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
25902 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
25903 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25904 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25905 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25906 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25907 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25908 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25909 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25910 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
25911 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
25912 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
25915 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25917 * passes.c (opt_pass::gate): Take function * argument.
25918 (gate_all_early_local_passes): Merge into
25919 (early_local_passes::gate): this.
25920 (gate_all_early_optimizations): Merge into
25921 (all_early_optimizations::gate): this.
25922 (gate_all_optimizations): Mege into
25923 (all_optimizations::gate): this.
25924 (gate_all_optimizations_g): Merge into
25925 (all_optimizations_g::gate): this.
25926 (gate_rest_of_compilation): Mege into
25927 (rest_of_compilation::gate): this.
25928 (gate_postreload): Merge into
25929 (postreload::gate): this.
25930 (dump_one_pass): Pass cfun to the pass's gate method.
25931 (execute_ipa_summary_passes): Likewise.
25932 (execute_one_pass): Likewise.
25933 (ipa_write_summaries_2): Likewise.
25934 (ipa_write_optimization_summaries_1): Likewise.
25935 (ipa_read_summaries_1): Likewise.
25936 (ipa_read_optimization_summaries_1): Likewise.
25937 (execute_ipa_stmt_fixups): Likewise.
25938 * tree-pass.h (opt_pass::gate): Add function * argument.
25939 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
25940 combine-stack-adj.c, combine.c, compare-elim.c,
25941 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25942 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
25943 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
25944 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
25945 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
25946 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
25947 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
25948 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
25949 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
25950 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
25951 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
25952 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
25953 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
25954 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
25955 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
25956 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25957 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25958 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25959 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25960 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25961 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25962 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25963 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
25964 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
25965 var-tracking.c, vtable-verify.c, web.c: Adjust.
25967 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25969 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
25970 * configure: Regenerate.
25972 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
25974 * passes.c (dump_one_pass): don't check pass->has_gate.
25975 (execute_ipa_summary_passes): Likewise.
25976 (execute_one_pass): Likewise.
25977 (ipa_write_summaries_2): Likewise.
25978 (ipa_write_optimization_summaries_1): Likewise.
25979 (ipa_read_optimization_summaries_1): Likewise.
25980 (execute_ipa_stmt_fixups): Likewise.
25981 * tree-pass.h (pass_data::has_gate): Remove.
25982 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
25983 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
25984 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
25985 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25986 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
25987 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
25988 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
25989 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
25990 gimple-low.c, gimple-ssa-isolate-paths.c,
25991 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
25992 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
25993 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
25994 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
25995 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
25996 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
25997 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
25998 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
25999 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26000 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26001 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26002 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26003 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26004 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26005 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26006 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26007 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26008 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26009 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26010 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26011 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26012 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26015 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26017 * pass_manager.h (pass_manager::register_dump_files_1): Remove
26019 * passes.c (pass_manager::register_dump_files_1): Merge into
26020 (pass_manager::register_dump_files): this, and remove its handling of
26021 properties since the pass always has the properties anyway.
26022 (pass_manager::pass_manager): Adjust.
26024 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26026 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
26027 * passes.c (pass_manager::register_dump_files_1): Remove dead code
26028 dealing with properties.
26029 (pass_manager::register_dump_files): Adjust.
26031 2014-03-20 Mark Wielaard <mjw@redhat.com>
26033 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
26034 then represent the bound as normal constant value.
26036 2014-04-17 Jakub Jelinek <jakub@redhat.com>
26039 Forward port from 4.8 branch
26040 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
26042 * config/i386/bmiintrin.h (_blsi_u32): New.
26043 (_blsi_u64): Ditto.
26044 (_blsr_u32): Ditto.
26045 (_blsr_u64): Ditto.
26046 (_blsmsk_u32): Ditto.
26047 (_blsmsk_u64): Ditto.
26048 (_tzcnt_u32): Ditto.
26049 (_tzcnt_u64): Ditto.
26051 2014-04-17 Kito Cheng <kito@0xlab.org>
26053 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
26055 2014-04-17 Richard Biener <rguenther@suse.de>
26057 PR middle-end/60849
26058 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
26059 boolean results for comparisons.
26061 2014-04-17 Richard Biener <rguenther@suse.de>
26063 PR tree-optimization/60836
26064 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
26065 initial PHI args to be gimple values.
26067 2014-04-17 Richard Biener <rguenther@suse.de>
26069 PR tree-optimization/60841
26070 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
26071 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
26072 of stmts to SLP build.
26073 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
26074 (vect_analyze_slp): Likewise.
26075 (vect_analyze_slp_instance): Likewise.
26076 (vect_build_slp_tree): Limit overall SLP tree growth.
26077 * tree-vectorizer.h (vect_analyze_data_refs,
26078 vect_analyze_slp): Adjust prototypes.
26080 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26082 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
26085 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26087 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
26088 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
26089 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
26090 for TARGET_SLOW_PSHUFB
26092 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26094 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
26095 * config/i386/i386.c (intel_cost): Ditto.
26097 2014-04-17 Joey Ye <joey.ye@arm.com>
26099 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
26101 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26103 * opts.c (common_handle_option): Disable -fipa-reference coorectly
26104 with -fuse-profile.
26106 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26108 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
26109 (type_all_derivations_known_p): New predicate.
26110 (type_all_ctors_visible_p): New predicate.
26111 (type_possibly_instantiated_p): New predicate.
26112 (get_odr_type): Compute all_derivations_known.
26113 (dump_odr_type): Dump the flag.
26114 (maybe_record_type): Cleanup.
26115 (record_target_from_binfo): Add bases_to_consider array;
26116 record bases for types w/o instances and skip CXX destructor.
26117 (possible_polymorphic_call_targets_1): Add bases_to_consider
26118 and consider_construction parameters; check if type may have instance.
26119 (get_polymorphic_call_info): Set maybe_in_construction to true
26120 when we know nothing.
26121 (record_targets_from_bases): Skip CXX destructors; they are
26122 never called for types in construction.
26123 (possible_polymorphic_call_targets): Do not record target when
26124 type may not have instance.
26126 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26129 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
26130 external aliases alive, too.
26132 2014-04-16 Andrew Pinski <apinski@cavium.com>
26134 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
26137 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
26139 * final.c (compute_alignments): Do not apply loop alignment to a block
26140 falling through to the exit.
26142 2014-04-16 Catherine Moore <clm@codesourcery.com>
26144 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
26145 Adjust constraints for microMIPS store patterns.
26147 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
26149 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
26151 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
26153 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
26154 (append_use): Run at -O0.
26155 (append_vdef): Likewise.
26156 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
26157 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
26159 2014-04-16 Jakub Jelinek <jakub@redhat.com>
26161 PR tree-optimization/60844
26162 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
26163 (propagate_op_to_single_use, remove_visited_stmt_chain,
26164 linearize_expr, repropagate_negates, reassociate_bb): Use it
26165 instead of gsi_remove.
26167 2014-04-16 Martin Jambor <mjambor@suse.cz>
26169 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
26170 ipa_transforms_to_apply.
26171 (cgraph_function_versioning): Assert that old_node has empty
26172 ipa_transforms_to_apply.
26173 * trans-mem.c (ipa_tm_create_version): Likewise.
26174 * tree-inline.c (tree_function_versioning): Do not duplicate
26175 ipa_transforms_to_apply.
26177 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26180 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
26182 Pass necessary as flags on 64-bit Solaris/x86.
26183 Use lowercase relocs for x86_64-*-*.
26184 * configure: Regenerate.
26186 2014-04-15 Jan Hubicka <jh@suse.cz>
26188 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
26189 (maybe_record_node, likely_target_p): Use it.
26191 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26194 Revert following patch
26196 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26199 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26200 software floating point or no floating point registers, do not
26201 allow any type in the FPRs. Eliminate a test for SPE SIMD types
26202 in GPRs that occurs after we tested for GPRs that would never be
26205 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26206 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26207 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
26208 specifically allow DDmode, since that does not use the SPE SIMD
26211 2014-03-21 Mark Wielaard <mjw@redhat.com>
26213 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
26214 as unsigned or int depending on type and value used.
26216 2014-04-15 Richard Biener <rguenther@suse.de>
26218 PR rtl-optimization/56965
26219 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
26220 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
26222 * alias.c (true_dependence_1): Do not call
26223 nonoverlapping_component_refs_p.
26224 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
26225 nonoverlapping_component_refs_p.
26226 (indirect_refs_may_alias_p): Likewise.
26228 2014-04-15 Teresa Johnson <tejohnson@google.com>
26230 * cfg.c (dump_bb_info): Fix flags check.
26231 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
26233 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26235 PR rtl-optimization/60663
26236 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
26239 2014-04-15 Richard Biener <rguenther@suse.de>
26241 * lto-streamer.h (LTO_major_version): Bump to 4.
26243 2014-04-15 Richard Biener <rguenther@suse.de>
26245 * common.opt (lto_partition_model): New enum.
26246 (flto-partition=): Merge separate options with a single with argument,
26247 add -flto-partition=one support.
26248 * flag-types.h (enum lto_partition_model): Declare.
26249 * opts.c (finish_options): Remove duplicate -flto-partition=
26251 * lto-wrapper.c (run_gcc): Adjust.
26253 2014-04-15 Richard Biener <rguenther@suse.de>
26255 * alias.c (ncr_compar): New function.
26256 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
26258 2014-04-15 Richard Biener <rguenther@suse.de>
26260 * alias.c (record_component_aliases): Do not walk BINFOs.
26262 2014-04-15 Richard Biener <rguenther@suse.de>
26264 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26265 Add struct function argument and adjust.
26266 (find_func_aliases_for_call): Likewise.
26267 (find_func_aliases): Likewise.
26268 (find_func_clobbers): Likewise.
26269 (intra_create_variable_infos): Likewise.
26270 (compute_points_to_sets): Likewise.
26271 (ipa_pta_execute): Adjust. Do not push/pop cfun.
26273 2014-04-15 Richard Biener <rguenther@suse.de>
26275 * tree.c (iterative_hash_expr): Use enum tree_code_class
26276 to store TREE_CODE_CLASS.
26277 (tree_block): Likewise.
26278 (tree_set_block): Likewise.
26279 * tree.h (fold_build_pointer_plus_loc): Use
26280 convert_to_ptrofftype_loc.
26282 2014-04-15 Jakub Jelinek <jakub@redhat.com>
26285 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
26288 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
26290 * cfgloop.h (struct loop): Move force_vectorize down.
26291 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
26292 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
26293 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
26294 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
26295 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
26296 * tree-core.h (enum annot_expr_kind): Add new kind values.
26297 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
26298 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
26300 * tree.def (ANNOTATE_EXPR): Tweak comment.
26302 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26304 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
26307 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
26309 * tree.h (TYPE_IDENTIFIER): Declare.
26310 * tree.c (subrange_type_for_debug_p): Use it.
26311 * godump.c (go_format_type): Likewise.
26312 * dwarf2out.c (is_cxx_auto, modified_type_die,
26313 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
26314 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
26316 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26319 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
26321 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
26323 * config/i386/i386.c (examine_argument): Return bool. Return true if
26324 parameter should be passed in memory.
26325 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
26326 (construct_container): Update calls to examine_argument.
26327 (function_arg_advance_64): Ditto.
26328 (return_in_memory_32): Merge with ix86_return_in_memory.
26329 (return_in_memory_64): Ditto.
26330 (return_in_memory_ms_64): Ditto.
26332 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26334 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
26335 * coverage.c (coverage_compute_profile_id): Handle externally visible
26338 2014-04-14 Martin Jambor <mjambor@suse.cz>
26340 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
26341 DECL_DISREGARD_INLINE_LIMITS functions.
26343 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26346 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
26348 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26351 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
26352 optimize_insn_for_speed_p instead of
26353 optimize_function_for_speed_p.
26355 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
26357 * doc/invoke.texi (free): Document AArch64.
26359 2014-04-14 Richard Biener <rguenther@suse.de>
26361 PR tree-optimization/60042
26362 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
26363 (insert_into_preds_of_block): Do not prevent PHI insertion
26364 for REFERENCE exprs here ...
26365 (eliminate_dom_walker::before_dom_children): ... but prevent
26366 their use here under similar conditions when applied to the
26367 IL after PRE optimizations.
26369 2014-04-14 Richard Biener <rguenther@suse.de>
26371 * passes.def: Move early points-to after early SRA.
26373 2014-04-14 Richard Biener <rguenther@suse.de>
26375 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
26376 check for which sign-changes we allow when forwarding
26377 a converted value into a switch.
26379 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26381 * stor-layout.c (place_field): Finalize non-constant offset for the
26384 2014-04-14 Richard Biener <rguenther@suse.de>
26386 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
26388 (expand_switch_using_bit_tests_p): Likewise.
26389 (process_switch): Compute and pass on speed_p based on the
26391 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
26392 optimize_bb_for_speed_p.
26394 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26396 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
26397 * function.h (struct function): Rename has_force_vect_loops into
26398 has_force_vectorize_loops.
26399 * lto-streamer-in.c (input_cfg): Adjust for renaming.
26400 (input_struct_function_base): Likewise.
26401 * lto-streamer-out.c (output_cfg): Likewise.
26402 (output_struct_function_base): Likewise.
26403 * omp-low.c (expand_omp_simd): Likewise.
26404 * tree-cfg.c (move_sese_region_to_fn): Likewise.
26405 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
26406 (version_loop_for_if_conversion): Likewise.
26407 (tree_if_conversion): Likewise.
26408 (main_tree_if_conversion): Likewise.
26409 (gate_tree_if_conversion): Likewise.
26410 * tree-inline.c (copy_loops): Likewise.
26411 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
26412 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
26413 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26414 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
26415 * tree-vectorizer.c (vectorize_loops): Likewise.
26416 * tree-vectorizer.h (unlimited_cost_model): Likewise.
26418 2014-04-14 Richard Biener <rguenther@suse.de>
26421 * lto-streamer-out.c (wrap_refs): New function.
26422 (lto_output): Wrap symbol references in global initializes in
26423 type-preserving MEM_REFs.
26425 2014-04-14 Christian Bruel <christian.bruel@st.com>
26427 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
26429 2014-04-14 Christian Bruel <christian.bruel@st.com>
26431 * config/sh/sh.md (setmemqi): New expand pattern.
26432 * config/sh/sh.h (CLEAR_RATIO): Define.
26433 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
26434 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
26436 2014-04-14 Richard Biener <rguenther@suse.de>
26438 PR middle-end/55022
26439 * fold-const.c (negate_expr_p): Don't negate directional rounding
26441 (fold_negate_expr): Likewise.
26443 2014-04-14 Richard Biener <rguenther@suse.de>
26445 PR tree-optimization/59817
26446 PR tree-optimization/60453
26447 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
26448 recursion to catch all CHRECs in the scalar evolution and restrict
26449 the predicate for the remains appropriately.
26451 2014-04-12 Catherine Moore <clm@codesourcery.com>
26453 * config/mips/constraints.md: Add new register constraint "kb".
26454 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
26455 (*movhi_internal): Likewise.
26456 (*movqi_internal): Likewise.
26457 * config/mips/mips.h (M16_STORE_REGS): New register class.
26458 (REG_CLASS_NAMES): Add M16_STORE_REGS.
26459 (REG_CLASS_CONTENTS): Likewise.
26460 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
26462 2014-04-11 Tobias Burnus <burnus@net-b.de>
26465 * doc/invoke.texi (-Wformat-signedness): Document it.
26466 (Wformat=2): Mention that this enables -Wformat-signedness.
26468 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26470 * common/config/epiphany/epiphany-common.c
26471 (epiphany_option_optimization_table): Enable section anchors by
26472 default at -O1 or higher.
26473 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
26474 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
26475 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
26476 carries no extra cost.
26477 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
26478 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
26479 * config/epiphany/predicates.md (memclob_operand): New predicate.
26480 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
26481 Use memclob_operand predicate and X constraint for operand 3.
26483 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26485 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
26486 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
26489 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26491 PR rtl-optimization/60651
26492 * mode-switching.c (optimize_mode_switching): Make sure to emit
26493 sets of a lower numbered entity before sets of a higher numbered
26494 entity to a mode of the same or lower priority.
26495 When creating a seginfo for a basic block that starts with a code
26496 label, move the insertion point past the code label.
26497 (new_seginfo): Document and enforce requirement that
26498 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
26499 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
26500 * doc/tm.texi: Regenerate.
26502 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
26505 * config/arc/arc.c (arc_save_restore): Fix assert typo.
26507 2013-04-11 Jakub Jelinek <jakub@redhat.com>
26509 * BASE-VER: Set to 4.10.0.
26511 2014-04-11 Tobias Burnus <burnus@net-b.de>
26514 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
26515 * doc/gcc.texi (Service): Update description in the @menu
26516 * doc/invoke.texi (Option Summary): Remove misplaced and
26519 2014-04-11 Steve Ellcey <sellcey@mips.com>
26520 Jakub Jelinek <jakub@redhat.com>
26522 PR middle-end/60556
26523 * expr.c (convert_move): Use emit_store_flag_force instead of
26524 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
26527 2014-04-11 Richard Biener <rguenther@suse.de>
26529 PR middle-end/60797
26530 * varasm.c (assemble_alias): Avoid endless error reporting
26531 recursion by setting TREE_ASM_WRITTEN.
26533 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26535 * config/s390/s390.md: Add a splitter for NOT rtx.
26537 2014-04-11 Jakub Jelinek <jakub@redhat.com>
26539 PR rtl-optimization/60663
26540 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
26542 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
26543 Jakub Jelinek <jakub@redhat.com>
26546 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
26547 flag from decl_node to node.
26549 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26552 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
26553 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
26554 ameliorating the cases where it can be.
26556 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
26559 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
26561 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26562 (loadsync_<mode>): Change mode.
26563 (load_quadpti, store_quadpti): New.
26564 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26565 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26566 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
26568 2014-04-09 Cong Hou <congh@google.com>
26571 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
26574 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26576 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
26577 instead of vnor to exploit possible fusion opportunity in the
26579 (altivec_expand_vec_perm_const_le): Likewise.
26581 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
26583 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26584 (loadsync_<mode>): Change mode.
26585 (load_quadpti, store_quadpti): New.
26586 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26587 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26589 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
26592 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
26593 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
26594 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
26596 2014-04-08 Richard Biener <rguenther@suse.de>
26598 PR middle-end/60706
26599 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
26600 a 64bit widest int print double-int similar to on HWI64 hosts.
26602 2014-04-08 Richard Biener <rguenther@suse.de>
26604 PR tree-optimization/60785
26605 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
26606 default defs properly.
26608 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
26610 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
26611 (Weffc++): Likewise.
26613 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
26615 * ipa-devirt.c (maybe_record_node): When node is not recorded,
26616 set completep to false rather than true.
26618 2014-04-07 Douglas B Rupp <rupp@adacore.com>
26621 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
26622 ARM_TARGET2_DWARF_FORMAT.
26624 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
26627 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
26628 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
26631 2014-04-07 Richard Biener <rguenther@suse.de>
26633 PR tree-optimization/60766
26634 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
26635 (may_eliminate_iv): Convert cand_value_at result to desired type.
26637 2014-04-07 Jason Merrill <jason@redhat.com>
26640 * common.opt (-fno-gnu-unique): Add.
26641 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
26643 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26645 * haifa-sched.c: Fix outdated function reference and minor
26646 grammar errors in introductory comment.
26648 2014-04-07 Richard Biener <rguenther@suse.de>
26650 PR middle-end/60750
26651 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
26652 for noreturn calls.
26653 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
26655 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
26658 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
26659 size accounting for thunks.
26660 (pa_asm_output_mi_thunk): Use final_start_function() and
26661 final_end_function() to output function start and end directives.
26663 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
26665 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
26666 device specific ISA/ feature information. Remove short_sp and
26667 errata_skip ds. Add avr_device_specific_features enum to have device
26669 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
26670 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
26671 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
26672 updated device specific info.
26673 * config/avr/avr-mcus.def: Merge device specific details to
26674 dev_attribute field.
26675 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
26677 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
26678 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
26679 assembler if RMW isa supported by current device.
26680 * config/avr/genmultilib.awk: Update as device info structure changed.
26681 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
26683 2014-04-04 Cong Hou <congh@google.com>
26685 PR tree-optimization/60656
26686 * tree-vect-stmts.c (supportable_widening_operation):
26687 Fix a bug that elements in a vector with vect_used_by_reduction
26688 property are incorrectly reordered when the operation on it is not
26689 consistant with the one in reduction operation.
26691 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
26693 PR rtl-optimization/60155
26694 * gcse.c (record_set_data): New function.
26695 (single_set_gcse): New function.
26696 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
26697 (hoist_code): Likewise.
26698 (get_pressure_class_and_nregs): Likewise.
26700 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
26702 * explow.c (probe_stack_range): Emit a final optimization blockage.
26704 2014-04-04 Anthony Green <green@moxielogic.com>
26706 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
26709 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
26712 * lto-cgraph.c (input_overwrite_node): Check that partitioning
26713 flags are set only during streaming.
26714 * ipa.c (process_references, walk_polymorphic_call_targets,
26715 symtab_remove_unreachable_nodes): Drop bodies of always inline
26716 after early inlining.
26717 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
26719 2014-04-04 Jakub Jelinek <jakub@redhat.com>
26720 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26723 * dwarf2out.c (const_ok_for_output_1): Reject expressions
26726 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26729 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
26731 (cortex_a53_fdivd): Likewise.
26733 2014-04-04 Martin Jambor <mjambor@suse.cz>
26736 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
26737 Adjust all callers.
26738 * cgraph.c (clone_of_p): Also return true if thunks match.
26739 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
26740 cgraph_function_or_thunk_node and an obsolete comment.
26741 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
26743 (build_function_decl_skip_args): Likewise.
26744 (set_new_clone_decl_and_node_flags): New function.
26745 (duplicate_thunk_for_node): Likewise.
26746 (redirect_edge_duplicating_thunks): Likewise.
26747 (cgraph_clone_node): New parameter args_to_skip, pass it to
26748 redirect_edge_duplicating_thunks which is called instead of
26749 cgraph_redirect_edge_callee.
26750 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
26751 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
26753 2014-04-04 Jeff Law <law@redhat.com>
26756 * config/arm/predicates.md (const_int_I_operand): New predicate.
26757 (const_int_M_operand): Similarly.
26758 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
26760 (insv_t2, extv_reg, extzv_t2): Likewise.
26761 (load_multiple_with_writeback): Similarly for const_int_I_operand.
26762 (pop_multiple_with_writeback_and_return): Likewise.
26763 (vfp_pop_multiple_with_writeback): Likewise
26765 2014-04-04 Richard Biener <rguenther@suse.de>
26768 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
26769 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
26771 * gimplify.h (gimple_add_tmp_var_fn): Declare.
26772 * gimplify.c (gimple_add_tmp_var_fn): New function.
26773 * gimple-expr.h (create_tmp_reg_fn): Declare.
26774 * gimple-expr.c (create_tmp_reg_fn): New function.
26775 * gimple-low.c (record_vars_into): Don't change cfun.
26776 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
26777 code generation without cfun.
26779 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
26782 * Makefile.in (install-driver): Fix shell scripting.
26784 2014-04-03 Cong Hou <congh@google.com>
26786 PR tree-optimization/60505
26787 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
26788 threshold of number of iterations below which no vectorization
26790 * tree-vect-loop.c (new_loop_vec_info):
26791 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
26792 * tree-vect-loop.c (vect_analyze_loop_operations):
26793 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
26794 * tree-vect-loop.c (vect_transform_loop):
26795 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
26796 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
26797 of iterations of the loop and see if we should build the epilogue.
26799 2014-04-03 Richard Biener <rguenther@suse.de>
26801 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
26802 (streamer_tree_cache_create): Adjust.
26803 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
26804 to allow optional nodes array.
26805 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
26806 (streamer_tree_cache_append): Likewise.
26807 (streamer_tree_cache_create): Create nodes array optionally
26808 as specified by parameter.
26809 * lto-streamer-out.c (create_output_block): Avoid maintaining
26810 the node array in the writer cache.
26811 (DFS_write_tree): Remove assertion.
26812 (produce_asm_for_decls): Free the out decl state hash table early.
26813 * lto-streamer-in.c (lto_data_in_create): Adjust for
26814 streamer_tree_cache_create prototype change.
26816 2014-04-03 Richard Biener <rguenther@suse.de>
26818 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
26819 set TREE_CHAIN to NULL_TREE.
26821 2014-04-03 Richard Biener <rguenther@suse.de>
26823 PR tree-optimization/60740
26824 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
26825 over all GIMPLE_COND operands.
26827 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
26829 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
26830 (Weffc++): Remove Scott's numbering, merge lists and reference
26833 2014-04-03 Nick Clifton <nickc@redhat.com>
26835 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
26838 2014-04-03 Martin Jambor <mjambor@suse.cz>
26840 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
26841 mention gcc_unreachable before failing.
26842 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
26845 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
26848 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
26849 inconsistent code and instead mark the context inconsistent.
26850 (possible_polymorphic_call_targets): For inconsistent contexts
26851 return empty complete list.
26853 2014-04-02 Anthony Green <green@moxielogic.com>
26855 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
26856 (extendqisi2, extendhisi2): Define.
26857 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
26858 (WCHAR_TYPE): Change to unsigned int.
26860 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26862 PR tree-optimization/60733
26863 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
26864 insertion point for PHI candidates to be the end of the feeding
26865 block for the PHI argument.
26867 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
26869 PR rtl-optimization/60650
26870 * lra-constraints.c (process_alt_operands): Decrease reject for
26871 earlyclobber matching.
26873 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26875 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
26877 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26879 * config/spu/spu.c (pad_bb): Do not crash when the last
26880 insn is CODE_FOR_blockage.
26882 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26884 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
26885 lies outside the target mode.
26887 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26890 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26891 software floating point or no floating point registers, do not
26892 allow any type in the FPRs. Eliminate a test for SPE SIMD types
26893 in GPRs that occurs after we tested for GPRs that would never be
26896 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26897 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26898 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
26899 specifically allow DDmode, since that does not use the SPE SIMD
26902 2014-04-02 Richard Biener <rguenther@suse.de>
26904 PR middle-end/60729
26905 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
26906 MODE_INTs. Properly use negv_optab.
26907 (expand_abs): Likewise.
26909 2014-04-02 Richard Biener <rguenther@suse.de>
26912 * Makefile.in (install-driver): Guard extra installs with special
26915 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
26917 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26918 Document vec_vgbbd.
26920 2014-04-01 Richard Henderson <rth@redhat.com>
26923 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
26924 alternative enabled before register allocation.
26926 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
26928 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
26929 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
26931 (nios2_large_got_address): Remove unneeded 'sym' parameter.
26932 (nios2_got_address): Update nios2_large_got_address call site.
26933 (nios2_delegitimize_address): New function.
26934 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
26935 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
26936 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
26938 2014-04-01 Martin Husemann <martin@duskware.de>
26940 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
26943 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
26945 PR rtl-optimization/60604
26946 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
26947 check from register_operand.
26948 (register_operand): Redefine in terms of general_operand.
26949 (nonmemory_operand): Use register_operand for the non-constant cases.
26951 2014-04-01 Richard Biener <rguenther@suse.de>
26953 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
26955 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
26957 * doc/invoke.texi (mapp-regs): Clarify.
26959 2014-03-31 Ulrich Drepper <drepper@gmail.com>
26961 * config/i386/avx512fintrin.h (__v32hi): Define type.
26962 (__v64qi): Likewise.
26963 (_mm512_set1_epi8): Define.
26964 (_mm512_set1_epi16): Define.
26965 (_mm512_set4_epi32): Define.
26966 (_mm512_set4_epi64): Define.
26967 (_mm512_set4_pd): Define.
26968 (_mm512_set4_ps): Define.
26969 (_mm512_setr4_epi64): Define.
26970 (_mm512_setr4_epi32): Define.
26971 (_mm512_setr4_pd): Define.
26972 (_mm512_setr4_ps): Define.
26973 (_mm512_setzero_epi32): Define.
26975 2014-03-31 Martin Jambor <mjambor@suse.cz>
26977 PR middle-end/60647
26978 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
26979 callsite_arguments_match_p. Updated all callers. Also check types of
26980 corresponding formal parameters and actual arguments.
26981 (not_all_callers_have_enough_arguments_p) Renamed to
26982 some_callers_have_mismatched_arguments_p.
26984 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
26986 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
26988 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
26991 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
26994 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
26996 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
26997 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
26999 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27000 Use FMAMODE_NOVF512 mode iterator.
27001 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27002 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27003 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27004 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27006 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27007 Use VF_128_256 mode iterator.
27008 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27011 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27013 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27014 static chain if needed.
27016 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
27019 * lra-constraints.c (index_part_to_reg): New.
27020 (process_address): Use it.
27022 2014-03-27 Jeff Law <law@redhat.com>
27023 Jakub Jelinek <jakub@redhat.com>
27026 * expr.c (do_tablejump): Use simplify_gen_binary rather than
27027 gen_rtx_{PLUS,MULT} to build up the address expression.
27029 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
27030 creating non-canonical RTL.
27032 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27035 * ipa-inline.c (want_inline_small_function_p): Short circuit large
27036 functions; reorganize to make cheap checks first.
27037 (inline_small_functions): Do not estimate growth when dumping;
27039 * ipa-inline.h (inline_summary): Add min_size.
27040 (growth_likely_positive): New function.
27041 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
27042 (set_cond_stmt_execution_predicate): Cleanup.
27043 (estimate_edge_size_and_time): Compute min_size.
27044 (estimate_calls_size_and_time): Likewise.
27045 (estimate_node_size_and_time): Likewise.
27046 (inline_update_overall_summary): Update min_size.
27047 (do_estimate_edge_time): Likewise.
27048 (do_estimate_edge_size): Update.
27049 (do_estimate_edge_hints): Update.
27050 (growth_likely_positive): New function.
27052 2014-03-28 Jakub Jelinek <jakub@redhat.com>
27055 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
27056 also if addr has VOIDmode.
27058 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27060 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
27061 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
27063 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
27064 instructions as well as AdvancedSIMD loads.
27066 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27068 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
27069 Use crypto_aese type.
27070 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
27071 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
27072 crypto_aese, crypto_aesmc. Move to types.md.
27073 * config/arm/types.md (crypto_aes): Split into crypto_aese,
27075 * config/arm/iterators.md (crypto_type): Likewise.
27077 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27079 * cgraph.c: Include expr.h and tree-dfa.h.
27080 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
27083 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
27086 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
27087 regs from checking multi-reg pseudos.
27089 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27091 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
27093 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27095 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
27096 if it would clobber the stack pointer, even temporarily.
27098 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
27100 * mode-switching.c: Make small adjustments to the top comment.
27102 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
27104 * config/rs6000/constraints.md (wD constraint): New constraint to
27105 match the constant integer to get the top DImode/DFmode out of a
27106 vector in a VSX register.
27108 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
27109 match the constant integer to get the top DImode/DFmode out of a
27110 vector in a VSX register.
27112 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
27115 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27118 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27119 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
27121 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
27122 Optimize vec_extract of 64-bit values, where the value being
27123 extracted is in the top word, where we can use scalar
27124 instructions. Add direct move and store support. Combine the big
27125 endian/little endian vector select load support into a single insn.
27126 (vsx_extract_<mode>_internal1): Likewise.
27127 (vsx_extract_<mode>_internal2): Likewise.
27128 (vsx_extract_<mode>_load): Likewise.
27129 (vsx_extract_<mode>_store): Likewise.
27130 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
27131 combined into vsx_extract_<mode>_load.
27132 (vsx_extract_<mode>_one_le): Likewise.
27134 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
27135 define the top 64-bit vector element.
27137 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
27140 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27141 Document vec_vbpermq builtin.
27144 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
27145 enable use of xxsldwi and xxpermdi builtin functions.
27146 (vec_xxpermdi): Likewise.
27148 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27149 Document use of vec_xxsldwi and vec_xxpermdi builtins.
27151 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
27153 PR rtl-optimization/60650
27154 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
27156 (find_spills_for): New.
27157 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
27158 Spill all pseudos on the second iteration.
27160 2014-03-27 Marek Polacek <polacek@redhat.com>
27163 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
27166 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27168 * config/s390/s390.c (s390_can_use_return_insn): Check for
27169 call-saved FPRs on 31 bit.
27171 2014-03-27 Jakub Jelinek <jakub@redhat.com>
27173 PR middle-end/60682
27174 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
27175 if they need regimplification, just drop them instead of
27176 calling gimple_regimplify_operands on them.
27178 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
27181 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
27182 (aarch64_frame_pointer_required): Adjust logic.
27183 (aarch64_can_eliminate): Adjust logic.
27184 (aarch64_override_options_after_change): Adjust logic.
27186 2014-03-27 Dehao Chen <dehao@google.com>
27188 * ipa-inline.c (early_inliner): Update node's inline info.
27190 2014-03-26 Dehao Chen <dehao@google.com>
27192 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
27193 compiler inserted conditional jumps for NAN float check.
27195 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27197 * ubsan.h (ubsan_create_data): Change second argument's type
27198 to const location_t *.
27199 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
27201 (ubsan_create_data): Change second argument to const location_t *PLOC.
27202 Create Loc field whenever PLOC is non-NULL.
27203 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
27204 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
27208 * real.c (real_to_integer2): Change type of low to UHWI.
27210 2014-03-26 Tobias Burnus <burnus@net-b.de>
27212 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
27213 (CILK_SELF_SPECS): New define.
27214 (driver_self_specs): Use it.
27216 2014-03-26 Richard Biener <rguenther@suse.de>
27218 * tree-pretty-print.c (percent_K_format): Implement special
27219 case for LTO and its stripped down BLOCK tree.
27221 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27224 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
27226 * tree-vrp.c (simplify_internal_call_using_ranges): If only
27227 one range is range_int_cst_p, but not both, at least optimize
27228 addition/subtraction of 0 and multiplication by 0 or 1.
27229 * gimple-fold.c (gimple_fold_call): Fold
27230 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
27231 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
27232 INTEGER_CSTs, try to fold at least x * 0 and y - y.
27234 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
27236 PR rtl-optimization/60452
27237 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
27238 <case REG>: Return 1 for invalid offsets from the frame pointer.
27240 2014-03-26 Marek Polacek <polacek@redhat.com>
27243 * doc/extend.texi (C Extensions): Mention variable-length arrays in
27246 2014-03-26 Marek Polacek <polacek@redhat.com>
27249 * doc/extend.texi (Designated Inits): Describe what happens to omitted
27252 2014-03-26 Marek Polacek <polacek@redhat.com>
27255 * ira-color.c (update_conflict_hard_regno_costs): Perform the
27256 multiplication in unsigned type.
27258 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27260 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
27262 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27264 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
27266 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27269 * cif-code.def (UNREACHABLE) New code.
27270 * ipa-inline.c (inline_small_functions): Skip edges to
27271 __builtlin_unreachable.
27272 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
27273 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
27274 predicate to __bulitin_unreachable.
27275 (set_cond_stmt_execution_predicate): Fix issue when
27276 invert_tree_comparison returns ERROR_MARK.
27277 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
27278 propagate to inline clones.
27279 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
27281 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
27282 * cgraphclones.c (cgraph_clone_node): If call destination is already
27283 ureachable, do not redirect it back.
27284 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
27287 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27289 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
27290 Do not modify inline clones.
27292 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27294 * config/i386/i386.md (general_sext_operand): New mode attr.
27295 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
27296 don't generate (sign_extend (const_int)).
27297 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
27298 operands[2]. Use We constraint instead of <i> and
27299 <general_sext_operand> predicate instead of <general_operand>.
27300 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
27301 * config/i386/constraints.md (We): New constraint.
27302 * config/i386/predicates.md (x86_64_sext_operand,
27303 sext_operand): New predicates.
27305 2014-03-25 Martin Jambor <mjambor@suse.cz>
27308 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
27309 inconsistent devirtualizations to __builtin_unreachable.
27311 2014-03-25 Marek Polacek <polacek@redhat.com>
27314 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
27316 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
27318 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
27319 order of elements for big-endian.
27321 2014-03-25 Richard Biener <rguenther@suse.de>
27323 PR middle-end/60635
27324 * gimplify-me.c (gimple_regimplify_operands): Update the
27327 2014-03-25 Martin Jambor <mjambor@suse.cz>
27330 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
27331 (lto_output_varpool_node): Likewise.
27332 (input_overwrite_node): Likewise.
27333 (input_varpool_node): Likewise.
27335 2014-03-25 Richard Biener <rguenther@suse.de>
27337 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
27338 (run_gcc): Likewise.
27340 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27342 * combine.c (simplify_compare_const): Add MODE argument.
27343 Handle mode_width 0 as very large mode_width.
27344 (try_combine, simplify_comparison): Adjust callers.
27346 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
27347 type to avoid signed integer overflow.
27348 * explow.c (plus_constant): Likewise.
27350 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
27352 * doc/generic.texi: Correct typos.
27354 2014-03-24 Tobias Burnus <burnus@net-b.de>
27356 * doc/invoke.texi (-flto): Expand section about
27357 using static libraries with LTO.
27359 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27361 PR rtl-optimization/60501
27362 * optabs.def (addptr3_optab): New optab.
27363 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
27364 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
27365 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
27367 * lra.c (emit_add3_insn): Use the addptr pattern if available.
27369 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
27371 2014-03-24 Ulrich Drepper <drepper@gmail.com>
27373 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
27376 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
27377 (_mm256_undefined_ps): Define.
27378 (_mm256_undefined_pd): Define.
27379 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
27380 (_mm_undefined_pd): Define.
27381 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
27382 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
27383 (_mm512_undefined_ps): Define.
27384 (_mm512_undefined_pd): Define.
27385 Use _mm*_undefined_*.
27386 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
27388 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
27390 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
27391 (lshr_simd): DI mode added.
27392 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
27393 (aarch64_ushr_simddi): Likewise.
27394 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
27395 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
27396 (vshrd_n_u64): Likewise.
27398 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27400 * Makefile.in (s-macro_list): Depend on cc1.
27402 2014-03-23 Teresa Johnson <tejohnson@google.com>
27404 * ipa-utils.c (ipa_print_order): Use specified dump file.
27406 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
27408 PR rtl-optimization/60601
27409 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
27411 * gcc.c (eval_spec_function): Initialize save_growing_value.
27413 2014-03-22 Jakub Jelinek <jakub@redhat.com>
27416 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
27417 code == MINUS_EXPR, never swap op0 with op1.
27419 * toplev.c (init_local_tick): Avoid signed integer multiplication
27421 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
27422 shift by first operand's bitsize.
27424 2014-03-21 Jakub Jelinek <jakub@redhat.com>
27427 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
27428 redefine to 1 or 0.
27429 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
27430 TARGET_ISA_64BIT_P(x).
27432 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27434 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
27435 pattern for vector nor instead of subtract from splat(-1).
27436 (altivec_expand_vec_perm_const_le): Likewise.
27438 2014-03-21 Richard Henderson <rth@twiddle.net>
27441 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
27442 related insns after epilogue_completed.
27444 2014-03-21 Martin Jambor <mjambor@suse.cz>
27447 * cgraph.h (symtab_node): New flag body_removed.
27448 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
27449 when removing bodies.
27450 * symtab.c (dump_symtab_base): Dump body_removed flag.
27451 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
27452 had their bodies removed.
27454 2014-03-21 Martin Jambor <mjambor@suse.cz>
27457 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
27460 2014-03-21 Richard Biener <rguenther@suse.de>
27462 PR tree-optimization/60577
27463 * tree-core.h (struct tree_base): Document nothrow_flag use
27464 in DECL_NONALIASED.
27465 * tree.h (DECL_NONALIASED): New.
27466 (may_be_aliased): Adjust.
27467 * coverage.c (build_var): Set DECL_NONALIASED.
27469 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27471 * expr.c (expand_expr_real_1): Remove outdated comment.
27473 2014-03-20 Jakub Jelinek <jakub@redhat.com>
27475 PR middle-end/60597
27476 * ira.c (adjust_cleared_regs): Call copy_rtx on
27477 *reg_equiv[REGNO (loc)].src_p before passing it to
27478 simplify_replace_fn_rtx.
27481 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
27482 into CONST, put pic register as first operand of PLUS. Use
27483 gen_const_mem for both 32-bit and 64-bit PIC got loads.
27485 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27487 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
27489 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27491 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
27492 around for store forwarding issue in the FPU on the UT699.
27493 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
27494 loads and operations if -mfix-ut699 is specified.
27495 (divtf3_hq): Tweak attribute.
27496 (sqrttf2_hq): Likewise.
27498 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27500 * calls.c (store_one_arg): Remove incorrect const qualification on the
27501 type of the temporary.
27502 * cfgexpand.c (expand_return): Likewise.
27503 * expr.c (expand_constructor): Likewise.
27504 (expand_expr_real_1): Likewise.
27506 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27508 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
27511 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
27514 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
27516 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
27518 * config/arm/aarch-common-protos.h
27519 (alu_cost_table): Fix spelling of "extend".
27520 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
27522 2014-03-19 Richard Biener <rguenther@suse.de>
27524 PR middle-end/60553
27525 * tree-core.h (tree_type_common): Re-order pointer members
27526 to reduce recursion depth during GC walks.
27528 2014-03-19 Marek Polacek <polacek@redhat.com>
27531 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
27532 before accessing it.
27534 2014-03-19 Richard Biener <rguenther@suse.de>
27537 * lto-streamer-in.c (input_function): In WPA stage do not drop
27540 2014-03-19 Jakub Jelinek <jakub@redhat.com>
27542 PR tree-optimization/60559
27543 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
27544 with build_zero_cst assignment.
27546 2014-03-18 Kai Tietz <ktietz@redhat.com>
27548 PR rtl-optimization/56356
27549 * sdbout.c (sdbout_parms): Verify that parms'
27550 incoming argument is valid.
27551 (sdbout_reg_parms): Likewise.
27553 2014-03-18 Richard Henderson <rth@redhat.com>
27556 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
27557 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
27558 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
27560 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
27562 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
27563 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
27564 Italicize plugin event names in description. Explain that
27565 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
27566 Remind that no GCC functions should be called after PLUGIN_FINISH.
27567 Explain what pragmas with expansion are.
27569 2014-03-18 Martin Liska <mliska@suse.cz>
27571 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
27572 gimple call statement is update.
27573 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
27574 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
27576 2014-03-18 Jakub Jelinek <jakub@redhat.com>
27579 * ubsan.c (ubsan_instrument_unreachable): Call
27580 initialize_sanitizer_builtins.
27581 (ubsan_pass): Likewise.
27584 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
27585 varpool_finalize_decl instead of rest_of_decl_compilation.
27587 2014-03-18 Richard Biener <rguenther@suse.de>
27589 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
27590 by using bitmap_and_compl instead of bitmap_and_compl_into.
27591 (df_rd_transfer_function): Likewise.
27593 2014-03-18 Richard Biener <rguenther@suse.de>
27595 * doc/lto.texi (fresolution): Fix typo.
27597 2014-03-18 Richard Biener <rguenther@suse.de>
27599 * doc/invoke.texi (flto): Update for changes in 4.9.
27601 2014-03-18 Richard Biener <rguenther@suse.de>
27603 * doc/loop.texi: Remove section on the removed lambda framework.
27604 Update loop docs with recent changes in preserving loop structure.
27606 2014-03-18 Richard Biener <rguenther@suse.de>
27608 * doc/lto.texi (-fresolution): Document.
27610 2014-03-18 Richard Biener <rguenther@suse.de>
27612 * doc/contrib.texi: Adjust my name.
27614 2014-03-18 Jakub Jelinek <jakub@redhat.com>
27617 * internal-fn.c: Include diagnostic-core.h.
27618 (expand_BUILTIN_EXPECT): New function.
27619 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
27620 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
27621 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
27622 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
27623 IFN_BUILTIN_EXPECT.
27624 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
27625 Revert 3 argument __builtin_expect code.
27626 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
27627 * gimple-fold.c (gimple_fold_call): Likewise.
27628 * tree.h (fold_builtin_expect): New prototype.
27629 * builtins.c (build_builtin_expect_predicate): Add predictor
27630 argument, if non-NULL, create 3 argument __builtin_expect.
27631 (fold_builtin_expect): No longer static. Add ARG2 argument,
27632 pass it through to build_builtin_expect_predicate.
27633 (fold_builtin_2): Adjust caller.
27634 (fold_builtin_3): Handle BUILT_IN_EXPECT.
27635 * internal-fn.def (BUILTIN_EXPECT): New.
27637 2014-03-18 Tobias Burnus <burnus@net-b.de>
27640 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
27641 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
27642 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
27644 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
27647 * predict.c (combine_predictions_for_bb): Fix up formatting.
27648 (expr_expected_value_1, expr_expected_value): Add predictor argument,
27649 fill what it points to if non-NULL.
27650 (tree_predict_by_opcode): Adjust caller, use the predictor.
27651 * predict.def (PRED_COMPARE_AND_SWAP): Add.
27653 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
27655 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
27656 proper constant for the store mode.
27658 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
27660 * symtab.c (change_decl_assembler_name): Fix transparent alias
27661 chain construction.
27663 2014-03-16 Renlin Li <Renlin.Li@arm.com>
27665 * config/aarch64/aarch64.c: Correct the comments about the
27666 aarch64 stack layout.
27668 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
27670 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
27671 check for GF_OMP_FOR_KIND_FOR.
27673 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
27675 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
27676 ymm and zmm register names.
27678 2014-03-17 Jakub Jelinek <jakub@redhat.com>
27681 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
27682 note creation for the 2010-08-31 changes.
27684 2014-03-17 Marek Polacek <polacek@redhat.com>
27686 PR middle-end/60534
27687 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
27688 as -fno-tree-loop-vectorize.
27689 (expand_omp_simd): Likewise.
27691 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
27693 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
27694 (eligible_for_call_delay): New prototype.
27695 * config/sparc/sparc.c (tls_call_delay): Rename into...
27696 (eligible_for_call_delay): ...this. Return false if the instruction
27697 cannot be put in the delay slot of a branch.
27698 (eligible_for_restore_insn): Simplify.
27699 (eligible_for_return_delay): Return false if the instruction cannot be
27700 put in the delay slot of a branch and simplify.
27701 (eligible_for_sibcall_delay): Return false if the instruction cannot be
27702 put in the delay slot of a branch.
27703 * config/sparc/sparc.md (fix_ut699): New attribute.
27704 (tls_call_delay): Delete.
27705 (in_call_delay): Reimplement.
27706 (eligible_for_sibcall_delay): Rename into...
27707 (in_sibcall_delay): ...this.
27708 (eligible_for_return_delay): Rename into...
27709 (in_return_delay): ...this.
27710 (in_branch_delay): Reimplement.
27711 (in_uncond_branch_delay): Delete.
27712 (in_annul_branch_delay): Delete.
27714 2014-03-14 Richard Henderson <rth@redhat.com>
27717 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
27718 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
27719 (*floathi<X87MODEF>2_i387_with_temp): Remove.
27720 (floathi splitters): Remove.
27721 (float<SWI48x>xf2): New pattern.
27722 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
27723 code that tried to handle DImode for 32-bit, but which was excluded
27724 by the pattern's condition. Drop allocation of stack temporary.
27725 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
27726 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
27727 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
27728 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
27729 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
27730 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
27731 (*float<SWI48><MODEF>2_sse_interunit): Remove.
27732 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
27733 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
27734 (*float<SWI48x><X87MODEF>2_i387): Remove.
27735 (all float _with_temp splitters): Remove.
27736 (*float<SWI48x><MODEF>2_i387): New pattern.
27737 (*float<SWI48><MODEF>2_sse): New pattern.
27738 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
27739 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
27741 2014-03-14 Jakub Jelinek <jakub@redhat.com>
27742 Marek Polacek <polacek@redhat.com>
27744 PR middle-end/60484
27745 * common.opt (dump_base_name_prefixed): New Variable.
27746 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
27747 if x_dump_base_name_prefixed is already set, set it at the end.
27749 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
27751 PR rtl-optimization/60508
27752 * lra-constraints.c (get_reload_reg): Add new parameter
27754 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
27755 Pass the new parameter values.
27757 2014-03-14 Richard Biener <rguenther@suse.de>
27759 * common.opt: Revert unintented changes from r205065.
27760 * opts.c: Likewise.
27762 2014-03-14 Richard Biener <rguenther@suse.de>
27764 PR middle-end/60518
27765 * cfghooks.c (split_block): Properly adjust all loops the
27766 block was a latch of.
27768 2014-03-14 Martin Jambor <mjambor@suse.cz>
27771 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
27774 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
27777 * config/avr/avr.c (avr_set_current_function): Pass function name
27778 through default_strip_name_encoding before sanity checking instead
27779 of skipping the first char of the assembler name.
27781 2014-03-13 Richard Henderson <rth@redhat.com>
27784 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
27785 (ix86_force_to_memory, ix86_free_from_memory): Remove.
27786 * config/i386/i386-protos.h: Likewise.
27787 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
27788 in the expander instead of a splitter.
27789 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
27790 any possibility of requiring a memory.
27791 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
27792 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
27793 (fp branch splitters): Update for ix86_split_fp_branch.
27794 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
27795 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
27796 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
27797 (*fop_<MODEF>_2_i387): Remove f/r alternative.
27798 (*fop_<MODEF>_3_i387): Likewise.
27799 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
27800 (splitters for the fop_* register patterns): Remove.
27801 (fscalexf4_i387): Rename from *fscalexf4_i387.
27802 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
27804 2014-03-13 Jakub Jelinek <jakub@redhat.com>
27806 PR tree-optimization/59779
27807 * tree-dfa.c (get_ref_base_and_extent): Use double_int
27808 type for bitsize and maxsize instead of HOST_WIDE_INT.
27810 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
27812 PR rtl-optimization/57320
27813 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
27814 the CFG after thread_prologue_and_epilogue_insns.
27816 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
27818 PR rtl-optimization/57189
27819 * lra-constraints.c (process_alt_operands): Disfavor spilling
27822 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
27824 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
27826 2014-03-13 Jakub Jelinek <jakub@redhat.com>
27828 PR tree-optimization/59025
27829 PR middle-end/60418
27830 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
27831 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
27833 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
27836 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
27837 calls of avr_out_plus_1.
27839 2014-03-13 Bin Cheng <bin.cheng@arm.com>
27841 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
27842 BB's single pred and update the father loop's latch info later.
27844 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27846 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
27850 (VEC_base): Likewise.
27851 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
27852 registers, we need to swap double words in little endian mode.
27854 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
27855 to be a container mode for 128-bit integer operations added in ISA
27856 2.07. Unlike TImode and PTImode, the preferred register set is
27857 the Altivec/VMX registers for the 128-bit operations.
27859 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
27861 (rs6000_split_128bit_ok_p): Likewise.
27863 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
27864 macros for creating ISA 2.07 normal and overloaded builtin
27865 functions with 3 arguments.
27866 (BU_P8V_OVERLOAD_3): Likewise.
27867 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
27868 for use as overloaded functions.
27869 (VPERM_1TI_UNS): Likewise.
27870 (VSEL_1TI): Likewise.
27871 (VSEL_1TI_UNS): Likewise.
27872 (ST_INTERNAL_1ti): Likewise.
27873 (LD_INTERNAL_1ti): Likewise.
27874 (XXSEL_1TI): Likewise.
27875 (XXSEL_1TI_UNS): Likewise.
27876 (VPERM_1TI): Likewise.
27877 (VPERM_1TI_UNS): Likewise.
27878 (XXPERMDI_1TI): Likewise.
27879 (SET_1TI): Likewise.
27880 (LXVD2X_V1TI): Likewise.
27881 (STXVD2X_V1TI): Likewise.
27882 (VEC_INIT_V1TI): Likewise.
27883 (VEC_SET_V1TI): Likewise.
27884 (VEC_EXT_V1TI): Likewise.
27885 (EQV_V1TI): Likewise.
27886 (NAND_V1TI): Likewise.
27887 (ORC_V1TI): Likewise.
27888 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
27889 added in ISA 2.07. Add both normal 'altivec' builtins, and the
27890 overloaded builtin.
27891 (VADDUQM): Likewise.
27892 (VSUBCUQ): Likewise.
27893 (VADDEUQM): Likewise.
27894 (VADDECUQ): Likewise.
27895 (VSUBEUQM): Likewise.
27896 (VSUBECUQ): Likewise.
27898 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
27899 __int128_t and __uint128_t types.
27900 (__uint128_type): Likewise.
27901 (altivec_categorize_keyword): Add support for vector __int128_t,
27902 vector __uint128_t, vector __int128, and vector unsigned __int128
27903 as a container type for TImode operations that need to be done in
27904 VSX/Altivec registers.
27905 (rs6000_macro_to_expand): Likewise.
27906 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
27907 to support 128-bit integer instructions vaddcuq, vadduqm,
27908 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
27909 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
27911 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
27912 for V1TImode, and set up preferences to use VSX/Altivec registers.
27913 Setup VSX reload handlers.
27914 (rs6000_debug_reg_global): Likewise.
27915 (rs6000_init_hard_regno_mode_ok): Likewise.
27916 (rs6000_preferred_simd_mode): Likewise.
27917 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
27918 (easy_altivec_constant): Likewise.
27919 (output_vec_const_move): Likewise.
27920 (rs6000_expand_vector_set): Convert V1TImode set and extract to
27922 (rs6000_expand_vector_extract): Likewise.
27923 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
27925 (rs6000_const_vec): Add support for V1TImode.
27926 (rs6000_emit_le_vsx_load): Swap double words when loading or
27927 storing TImode/V1TImode.
27928 (rs6000_emit_le_vsx_store): Likewise.
27929 (rs6000_emit_le_vsx_move): Likewise.
27930 (rs6000_emit_move): Add support for V1TImode.
27931 (altivec_expand_ld_builtin): Likewise.
27932 (altivec_expand_st_builtin): Likewise.
27933 (altivec_expand_vec_init_builtin): Likewise.
27934 (altivec_expand_builtin): Likewise.
27935 (rs6000_init_builtins): Add support for V1TImode type. Add
27936 support for ISA 2.07 128-bit integer builtins. Define type names
27937 for the VSX/Altivec vector types.
27938 (altivec_init_builtins): Add support for overloaded vector
27939 functions with V1TImode type.
27940 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
27941 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
27943 (rs6000_split_128bit_ok_p): Likewise.
27944 (rs6000_handle_altivec_attribute): Create V1TImode from vector
27945 __int128_t and vector __uint128_t.
27947 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
27948 and mode attributes.
27950 (VSX_M2): Likewise.
27955 (VS_scalar): Likewise.
27956 (VS_double): Likewise.
27957 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
27959 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
27960 we support the ISA 2.07 128-bit integer arithmetic instructions.
27961 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
27962 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
27963 and TImode types for use with the builtin functions.
27964 (V1TI_type_node): Likewise.
27965 (unsigned_V1TI_type_node): Likewise.
27966 (intTI_type_internal_node): Likewise.
27967 (uintTI_type_internal_node): Likewise.
27969 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
27970 128-bit builtin functions.
27971 (UNSPEC_VADDEUQM): Likewise.
27972 (UNSPEC_VADDECUQ): Likewise.
27973 (UNSPEC_VSUBCUQ): Likewise.
27974 (UNSPEC_VSUBEUQM): Likewise.
27975 (UNSPEC_VSUBECUQ): Likewise.
27976 (VM): Add V1TImode to vector mode iterators.
27978 (VI_unit): Likewise.
27979 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
27980 (altivec_vaddcuq): Likewise.
27981 (altivec_vsubuqm): Likewise.
27982 (altivec_vsubcuq): Likewise.
27983 (altivec_vaddeuqm): Likewise.
27984 (altivec_vaddecuq): Likewise.
27985 (altivec_vsubeuqm): Likewise.
27986 (altivec_vsubecuq): Likewise.
27988 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
27990 (BOOL_128): Likewise.
27991 (BOOL_REGS_OUTPUT): Likewise.
27992 (BOOL_REGS_OP1): Likewise.
27993 (BOOL_REGS_OP2): Likewise.
27994 (BOOL_REGS_UNARY): Likewise.
27995 (BOOL_REGS_AND_CR0): Likewise.
27997 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
27998 128-bit integer builtin support.
27999 (vec_vadduqm): Likewise.
28000 (vec_vaddecuq): Likewise.
28001 (vec_vaddeuqm): Likewise.
28002 (vec_vsubecuq): Likewise.
28003 (vec_vsubeuqm): Likewise.
28004 (vec_vsubcuq): Likewise.
28005 (vec_vsubuqm): Likewise.
28007 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28008 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28009 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28010 128-bit integer add/subtract to ISA 2.07.
28012 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
28014 * config/arc/arc.c (arc_predicate_delay_insns):
28015 Fix third argument passed to conditionalize_nonjump.
28017 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
28019 * config/aarch64/aarch64-builtins.c
28020 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28021 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
28022 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
28023 instead of __builtin_lfloor.
28024 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
28026 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28028 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
28029 (tree_ssa_ifcombine_bb_1): New function.
28030 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
28031 is an empty forwarder block to then_bb or vice versa and then_bb
28032 and else_bb are effectively swapped.
28034 2014-03-12 Christian Bruel <christian.bruel@st.com>
28037 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
28038 REG_CFA_DEF_CFA note.
28039 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
28040 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
28042 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28044 PR tree-optimization/60454
28045 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
28047 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28049 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
28050 Do not define target_cpu_default2 to generic.
28051 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
28052 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
28053 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
28055 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28056 Marc Glisse <marc.glisse@inria.fr>
28058 PR tree-optimization/60502
28059 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
28060 instead of build_low_bits_mask.
28062 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28064 PR middle-end/60482
28065 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
28066 if there are multiple uses, but op doesn't live on E edge.
28067 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
28068 clobber stmts before __builtin_unreachable.
28070 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
28072 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
28073 hard_frame_pointer_rtx.
28074 * cse.c (cse_insn): Remove volatile check.
28075 * cselib.c (cselib_process_insn): Likewise.
28076 * dse.c (scan_insn): Likewise.
28078 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
28080 * config/arc/arc.c (conditionalize_nonjump): New function,
28082 (arc_ifcvt): ... this.
28083 (arc_predicate_delay_insns): Use it.
28085 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
28087 * config/arc/predicates.md (extend_operand): During/after reload,
28088 allow const_int_operand.
28089 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
28090 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
28091 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
28093 (umulsi3_highpart_i): Likewise.
28095 2014-03-11 Richard Biener <rguenther@suse.de>
28097 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
28098 Add asserts to guard possible wrong-code bugs.
28100 2014-03-11 Richard Biener <rguenther@suse.de>
28102 PR tree-optimization/60429
28103 PR tree-optimization/60485
28104 * tree-ssa-structalias.c (set_union_with_increment): Properly
28105 take into account all fields that overlap the shifted vars.
28106 (do_sd_constraint): Likewise.
28107 (do_ds_constraint): Likewise.
28108 (get_constraint_for_ptr_offset): Likewise.
28110 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
28112 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
28113 (nios2_compute_frame_layout):
28114 Add calculation of cfun->machine->fp_save_offset.
28115 (nios2_expand_prologue): Correct setting of frame pointer register
28117 (nios2_expand_epilogue): Update recovery of stack pointer from
28118 frame pointer accordingly.
28119 (nios2_initial_elimination_offset): Update calculation of offset
28120 for eliminating to HARD_FRAME_POINTER_REGNUM.
28122 2014-03-10 Jakub Jelinek <jakub@redhat.com>
28125 * ipa.c (symtab_remove_unreachable_nodes): Don't call
28126 cgraph_get_create_node on VAR_DECLs.
28128 2014-03-10 Richard Biener <rguenther@suse.de>
28130 PR middle-end/60474
28131 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
28133 2014-03-08 Douglas B Rupp <rupp@gnat.com>
28135 * config/vms/vms.opt (vms_float_format): New variable.
28137 2014-03-08 Tobias Burnus <burnus@net-b.de>
28139 * doc/invoke.texi (-fcilkplus): Update implementation status.
28141 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
28142 Richard Biener <rguenther@suse.de>
28144 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
28145 consistently accross all TUs.
28146 (run_gcc): Enable -fshort-double automatically at link at link-time
28147 and disallow override.
28149 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
28152 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
28153 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
28154 if they can't be used.
28156 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28158 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
28159 for Solaris 11/x86 ld.
28160 * configure: Regenerate.
28162 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28164 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
28165 (LIB_TLS_SPEC): Save as ld_tls_libs.
28166 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
28167 (HAVE_AS_IX86_TLSLDM): New test.
28168 * configure, config.in: Regenerate.
28169 * config/i386/i386.c (legitimize_tls_address): Fall back to
28170 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
28171 cannot support TLS_MODEL_LOCAL_DYNAMIC.
28172 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
28173 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
28175 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
28177 * common.opt (fira-loop-pressure): Mark as optimization.
28179 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
28181 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
28182 an OpenMP mappable type.
28184 2014-03-06 Matthias Klose <doko@ubuntu.com>
28186 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
28187 MULTILIB_OSDIRNAMES is not defined.
28189 2014-03-06 Jakub Jelinek <jakub@redhat.com>
28190 Meador Inge <meadori@codesourcery.com>
28193 * config/arm/arm.c (arm_tls_symbol_p): Remove.
28194 (arm_legitimize_address): Call legitimize_tls_address for any
28195 arm_tls_referenced_p expression, handle constant addend. Call it
28196 before testing for !TARGET_ARM.
28197 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
28199 2014-03-06 Richard Biener <rguenther@suse.de>
28201 PR middle-end/60445
28205 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28207 * tree-streamer.c (record_common_node): Assert we don't record
28208 nodes with type double.
28209 (preload_common_node): Skip type double, complex double and double
28210 pointer since it is now frontend dependent due to fshort-double option.
28212 2014-03-06 Richard Biener <rguenther@suse.de>
28214 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
28215 or -fno-lto is specified and the linker has full plugin support.
28216 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
28217 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
28218 * lto-wrapper.c (merge_and_complain): Merge compile-time
28219 optimization levels.
28220 (run_gcc): And pass it through to the link options.
28222 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
28226 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28228 * cselib.c (remove_useless_values): Skip to avoid quadratic
28229 behavior if the condition moved from...
28230 (cselib_process_insn): ... here holds.
28232 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28235 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
28236 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
28239 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
28240 (TM_H): Add x86-tune.def.
28242 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28244 * config/aarch64/aarch64.c (generic_tunings):
28245 Use cortexa57_extra_costs.
28247 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28250 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
28251 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
28252 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
28255 2014-03-04 Heiher <r@hev.cc>
28257 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
28258 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
28260 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
28262 * config/i386/predicates.md (const2356_operand): Change to ...
28263 (const2367_operand): ... this.
28264 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
28266 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28267 (*avx512pf_scatterpf<mode>sf): Ditto.
28268 (avx512pf_scatterpf<mode>df): Ditto.
28269 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28270 (*avx512pf_scatterpf<mode>df): Ditto.
28271 * config/i386/i386.c (ix86_expand_builtin): Update
28272 incorrect hint operand error message.
28274 2014-03-04 Richard Biener <rguenther@suse.de>
28276 * lto-section-in.c (lto_get_section_data): Fix const cast.
28278 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28280 * tree-streamer.c (record_common_node): Assert we don't record
28281 nodes with type double.
28282 (preload_common_node): Skip type double, complex double and double
28283 pointer since it is now frontend dependent due to fshort-double option.
28285 2014-03-04 Richard Biener <rguenther@suse.de>
28288 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
28289 (lto_input_toplevel_asms): Likewise.
28290 * lto-section-in.c (lto_get_section_data): Instead do it here
28293 2014-03-04 Richard Biener <rguenther@suse.de>
28295 PR tree-optimization/60382
28296 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
28297 dead PHIs a reduction.
28299 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
28301 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
28303 (_mm_prefetch): Move out of GCC target("sse") pragma.
28304 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
28305 GCC target("prfchw") pragma.
28306 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
28308 * config/i386/i386.c (ix86_option_override_internal): Enable
28309 -mprfchw with -mprefetchwt1.
28311 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28313 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
28316 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28318 * opts.h (CL_PCH_IGNORE): Define.
28319 * targhooks.c (option_affects_pch_p):
28320 Return false for options that have CL_PCH_IGNORE set.
28321 * opt-functions.awk: Process PchIgnore.
28322 * doc/options.texi: Document PchIgnore.
28324 * config/arc/arc.opt (misize): Add PchIgnore property.
28326 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28328 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
28329 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
28330 constraint on constants to permit them being loaded into
28331 GENERAL_REGS or BASE_REGS.
28333 2014-03-03 Nick Clifton <nickc@redhat.com>
28335 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
28336 anti-cacnonical alternatives.
28337 (negandhi3_real): New pattern.
28338 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
28340 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28342 * config/avr/avr-mcus.def: Remove atxmega16x1.
28343 * config/avr/avr-tables.opt: Regenerate.
28344 * config/avr/t-multilib: Regenerate.
28345 * doc/avr-mmcu.texi: Regenerate.
28347 2014-03-03 Tobias Grosser <tobias@grosser.es>
28348 Mircea Namolaru <mircea.namolaru@inria.fr>
28350 PR tree-optimization/58028
28351 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
28354 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28356 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
28357 not handled by recognizers.
28359 2014-03-03 Jakub Jelinek <jakub@redhat.com>
28361 PR middle-end/60175
28362 * function.c (expand_function_end): Don't emit
28363 clobber_return_register sequence if clobber_after is a BARRIER.
28364 * cfgexpand.c (construct_exit_block): Append instructions before
28365 return_label to prev_bb.
28367 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28369 * config/rs6000/constraints.md: Document reserved use of "wc".
28371 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28374 * ipa.c (function_and_variable_visibility): When dissolving comdat
28375 group, also set all symbols to local.
28377 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28382 2013-12-14 Jan Hubicka <jh@suse.cz>
28383 PR middle-end/58477
28384 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
28386 2014-03-02 Jon Beniston <jon@beniston.com>
28392 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
28393 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
28394 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
28395 (simple_return, *simple_return): New patterns
28396 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
28397 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
28399 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
28401 * dwarf2out.c (gen_subprogram_die): Tidy.
28403 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
28406 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
28407 (*mov_t_msb_neg_negc): ... this new insn.
28409 2014-02-28 Jason Merrill <jason@redhat.com>
28412 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
28415 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
28418 * dwarf2out.c (decltype_auto_die): New static.
28419 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
28420 (gen_type_die_with_usage): Handle 'decltype(auto)'.
28421 (is_cxx_auto): Likewise.
28423 2014-02-28 Ian Bolton <ian.bolton@arm.com>
28425 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
28426 we are not using general regs only.
28428 2014-02-28 Richard Biener <rguenther@suse.de>
28431 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
28432 previous fix and only allow to remove trivial pre-headers
28433 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
28434 (remove_forwarder_block): Properly update the latch of a loop.
28436 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28439 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
28440 (cselib_preserved_hash_table): New.
28441 (preserve_constants_and_equivs): Move preserved vals to it.
28442 (cselib_find_slot): Look it up first.
28443 (cselib_init): Initialize it.
28444 (cselib_finish): Release it.
28445 (dump_cselib_table): Dump it.
28447 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28450 * cselib.c (remove_useless_values): Skip to avoid quadratic
28451 behavior if the condition moved from...
28452 (cselib_process_insn): ... here holds.
28454 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28457 * var-tracking.c (vt_initialize): Apply the same condition to
28458 preserve the CFA base value.
28460 2014-02-28 Joey Ye <joey.ye@arm.com>
28463 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
28464 if reload in progress or completed.
28466 2014-02-28 Tobias Burnus <burnus@net-b.de>
28468 PR middle-end/60147
28469 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
28472 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
28474 * doc/tm.texi.in (Condition Code Status): Update documention for
28475 relative locations of cc0-setter and cc0-user.
28477 2014-02-27 Jeff Law <law@redhat.com>
28479 PR rtl-optimization/52714
28480 * combine.c (try_combine): When splitting an unrecognized PARALLEL
28481 into two independent simple sets, if I3 is a jump, ensure the
28482 pattern we place into I3 is a (set (pc) ...).
28484 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
28485 Jeff Law <law@redhat.com>
28487 PR rtl-optimization/49847
28488 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
28489 are in different blocks.
28490 * doc/tm.texi (Condition Code Status): Update documention for
28491 relative locations of cc0-setter and cc0-user.
28493 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
28496 * lra.c (lra_emit_add): Check SUBREG too.
28498 2014-02-27 Andreas Schwab <schwab@suse.de>
28500 * config/m68k/m68k.c (m68k_option_override): Disable
28501 -flive-range-shrinkage for classic m68k.
28502 (m68k_override_options_after_change): Likewise.
28504 2014-02-27 Marek Polacek <polacek@redhat.com>
28506 PR middle-end/59223
28507 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
28508 -Wmaybe-uninitialized.
28510 2014-02-27 Alan Modra <amodra@gmail.com>
28513 * reload1.c (emit_input_reload_insns): When reload_override_in,
28514 set old to rl->in_reg when rl->in_reg is a subreg.
28516 2014-02-26 Richard Biener <rguenther@suse.de>
28519 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
28521 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
28523 * common/config/i386/predicates.md (const1256_operand): Remove.
28524 (const2356_operand): New.
28525 (const_1_to_2_operand): Remove.
28526 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28527 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28528 (*avx512pf_gatherpf<mode>sf): Ditto.
28529 (avx512pf_gatherpf<mode>df): Ditto.
28530 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28531 (*avx512pf_gatherpf<mode>df): Ditto.
28532 (avx512pf_scatterpf<mode>sf): Ditto.
28533 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28534 (*avx512pf_scatterpf<mode>sf): Ditto.
28535 (avx512pf_scatterpf<mode>df): Ditto.
28536 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28537 (*avx512pf_scatterpf<mode>df): Ditto.
28538 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
28540 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
28542 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
28543 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
28544 (_mm512_mask_testn_epi64_mask): Move to ...
28545 * config/i386/avx512cdintrin.h: Here.
28546 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
28547 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
28548 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
28549 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
28550 TARGET_AVX512F from TARGET_AVX512CD.
28552 2014-02-26 Richard Biener <rguenther@suse.de>
28555 * ipa.c (walk_polymorphic_call_targets): Properly guard
28556 call to inline_update_overall_summary.
28558 2014-02-26 Bin Cheng <bin.cheng@arm.com>
28561 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
28562 and latches only if requested. Fix latch if it is removed.
28563 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
28564 LOOPS_HAVE_PREHEADERS.
28566 2014-02-25 Andrew Pinski <apinski@cavium.com>
28568 * builtins.c (expand_builtin_thread_pointer): Create a new target
28569 when the target is NULL.
28571 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
28573 PR rtl-optimization/60317
28574 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28575 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28576 * lra-assigns.c: Include params.h.
28577 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
28578 other reload pseudos considerations.
28580 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28582 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
28583 to use canonical form for nor<mode>3.
28585 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28588 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
28591 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
28593 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
28594 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
28595 (ix86_handle_option): Handle OPT_mprefetchwt1.
28596 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
28597 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28599 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28600 OPTION_MASK_ISA_PREFETCHWT1.
28601 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
28602 (PTA_PREFETCHWT1): New.
28603 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
28604 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
28605 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
28606 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
28607 (*prefetch_avx512pf_<mode>_: Change into ...
28608 (*prefetch_prefetchwt1_<mode>: This.
28609 * config/i386/i386.opt (mprefetchwt1): New.
28610 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
28611 (_mm_prefetch): Handle intent to write.
28612 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
28614 2014-02-25 Richard Biener <rguenther@suse.de>
28616 PR middle-end/60291
28617 * emit-rtl.c (mem_attrs_htab): Remove.
28618 (mem_attrs_htab_hash): Likewise.
28619 (mem_attrs_htab_eq): Likewise.
28620 (set_mem_attrs): Always allocate new mem-attrs when something changed.
28621 (init_emit_once): Do not allocate mem_attrs_htab.
28623 2014-02-25 Richard Biener <rguenther@suse.de>
28626 * lto-opts.c (lto_write_options): Output non-explicit conservative
28627 -fwrapv, -fno-trapv and -fno-strict-overflow.
28628 * lto-wrapper.c (merge_and_complain): Handle merging those options.
28629 (run_gcc): And pass them through.
28631 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
28633 * sel-sched.c (calculate_new_fences): New parameter ptime.
28634 Calculate it as a maximum over all fence cycles.
28635 (sel_sched_region_2): Adjust the call to calculate_new_fences.
28636 Print the final schedule timing when sched_verbose.
28638 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
28640 PR rtl-optimization/60292
28641 * sel-sched.c (fill_vec_av_set): Do not reset target availability
28642 bit fot the fence instruction.
28644 2014-02-24 Alangi Derick <alangiderick@gmail.com>
28646 * calls.h: Fix typo in comment.
28648 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
28650 * config/pa/pa.c (pa_output_move_double): Don't valididate when
28651 adjusting offsetable addresses.
28653 2014-02-24 Guozhi Wei <carrot@google.com>
28655 * sparseset.h (sparseset_pop): Fix the wrong index.
28657 2014-02-24 Walter Lee <walt@tilera.com>
28659 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
28660 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
28662 * common/config/tilegx/tilegx-common.c
28663 (TARGET_DEFAULT_TARGET_FLAGS): Define.
28664 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
28665 (LINK_SPEC): Ditto.
28666 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
28667 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
28668 (tilegx_gimplify_va_arg_expr): Handle big endian.
28669 (tilegx_expand_unaligned_load): Ditto.
28670 (tilegx_expand_unaligned_store): Ditto.
28671 (TARGET_RETURN_IN_MSB): New.
28672 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
28673 (TARGET_ENDIAN_DEFAULT): New.
28674 (TARGET_BIG_ENDIAN): Handle big endian.
28675 (BYTES_BIG_ENDIAN): Ditto.
28676 (WORDS_BIG_ENDIAN): Ditto.
28677 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
28678 (ENDIAN_SPEC): New.
28679 (EXTRA_SPECS): New.
28680 * config/tilegx/tilegx.md (extv): Handle big endian.
28682 (insn_st<n>): Ditto.
28683 (insn_st<n>_add<bitsuffix>): Ditto.
28684 (insn_stnt<n>): Ditto.
28685 (insn_stnt<n>_add<bitsuffix>):Ditto.
28686 (vec_interleave_highv8qi): Handle big endian.
28687 (vec_interleave_highv8qi_be): New.
28688 (vec_interleave_highv8qi_le): New.
28689 (insn_v1int_h): Handle big endian.
28690 (vec_interleave_lowv8qi): Handle big endian.
28691 (vec_interleave_lowv8qi_be): New.
28692 (vec_interleave_lowv8qi_le): New.
28693 (insn_v1int_l): Handle big endian.
28694 (vec_interleave_highv4hi): Handle big endian.
28695 (vec_interleave_highv4hi_be): New.
28696 (vec_interleave_highv4hi_le): New.
28697 (insn_v2int_h): Handle big endian.
28698 (vec_interleave_lowv4hi): Handle big endian.
28699 (vec_interleave_lowv4hi_be): New.
28700 (vec_interleave_lowv4hi_le): New.
28701 (insn_v2int_l): Handle big endian.
28702 (vec_interleave_highv2si): Handle big endian.
28703 (vec_interleave_highv2si_be): New.
28704 (vec_interleave_highv2si_le): New.
28705 (insn_v4int_h): Handle big endian.
28706 (vec_interleave_lowv2si): Handle big endian.
28707 (vec_interleave_lowv2si_be): New.
28708 (vec_interleave_lowv2si_le): New.
28709 (insn_v4int_l): Handle big endian.
28710 * config/tilegx/tilegx.opt (mbig-endian): New option.
28711 (mlittle-endian): New option.
28712 * doc/install.texi: Document tilegxbe-linux.
28713 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
28715 2014-02-24 Martin Jambor <mjambor@suse.cz>
28718 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
28719 there are no parameter descriptors.
28721 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
28723 PR rtl-optimization/60268
28724 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
28725 initialization to ...
28726 (sched_rgn_init): ... here.
28727 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
28729 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
28731 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
28734 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
28736 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
28739 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
28741 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
28742 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
28744 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
28746 * config/microblaze/predicates.md: Add cmp_op predicate.
28747 * config/microblaze/microblaze.md: Add branch_compare instruction
28748 which uses cmp_op predicate and emits cmp insn before branch.
28749 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
28750 to microblaze_expand_conditional_branch and consolidate logic.
28751 (microblaze_expand_conditional_branch): emit branch_compare
28752 insn instead of handling cmp op separate from branch insn.
28754 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28756 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
28759 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28761 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
28762 define_insn with define_expand and new define_insn
28763 *altivec_lve<VI_char>x_internal.
28764 (altivec_stve<VI_char>x): Replace define_insn with define_expand
28765 and new define_insn *altivec_stve<VI_char>x_internal.
28766 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
28768 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
28770 (altivec_expand_stvex_be): New function.
28772 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
28774 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
28775 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
28776 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
28777 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
28779 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
28782 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
28783 instead of emit_move_insn.
28785 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28787 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
28788 vspltw with vsldoi.
28789 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
28790 gen_altivec_vsumsws.
28792 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28794 * config/rs6000/altivec.md (altivec_lvxl): Rename as
28795 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
28796 (altivec_lvxl_<mode>): New define_expand incorporating
28797 -maltivec=be semantics where needed.
28798 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
28799 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
28800 semantics where needed.
28801 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
28802 (altivec_stvx_<mode>): New define_expand incorporating
28803 -maltivec=be semantics where needed.
28804 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
28805 VM2 iterator instead of V4SI.
28806 (altivec_stvxl_<mode>): New define_expand incorporating
28807 -maltivec=be semantics where needed.
28808 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
28809 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
28810 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
28811 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
28812 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
28813 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
28814 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
28815 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
28816 ALTIVEC_BUILTIN_STVXL.
28817 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
28818 (altivec_expand_stvx_be): Likewise.
28819 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
28820 (altivec_expand_lvx_be): Likewise.
28821 (altivec_expand_stvx_be): Likewise.
28822 (altivec_expand_builtin): Add cases for
28823 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
28824 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
28825 (altivec_init_builtins): Add definitions for
28826 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
28827 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
28829 2014-02-21 Catherine Moore <clm@codesourcery.com>
28831 * doc/invoke.texi (mvirt, mno-virt): Document.
28832 * config/mips/mips.opt (mvirt): New option.
28833 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
28835 2014-02-21 Richard Biener <rguenther@suse.de>
28837 PR tree-optimization/60276
28838 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
28839 (STMT_VINFO_MIN_NEG_DIST): New macro.
28840 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
28841 STMT_VINFO_MIN_NEG_DIST.
28842 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
28843 made for negative dependence distances still hold.
28845 2014-02-21 Richard Biener <rguenther@suse.de>
28847 PR middle-end/60291
28848 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
28849 DECL_INITIAL for globals not in the current function context.
28851 2014-02-21 Jakub Jelinek <jakub@redhat.com>
28853 PR tree-optimization/56490
28854 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
28855 * tree-ssa-uninit.c: Include params.h.
28856 (compute_control_dep_chain): Add num_calls argument, return false
28857 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
28858 num_calls to recursive call.
28859 (find_predicates): Change dep_chain into normal array,
28860 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
28861 variable and adjust compute_control_dep_chain caller.
28862 (find_def_preds): Likewise.
28864 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
28866 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
28867 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
28869 2014-02-21 Nick Clifton <nickc@redhat.com>
28871 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
28872 (pushhi1): Likewise.
28873 (popqi1): Add mode to pre_dec.
28874 (pophi1): Likewise.
28876 2014-02-21 Jakub Jelinek <jakub@redhat.com>
28878 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
28879 mode for mask of V8SFmode permutation.
28881 2014-02-20 Richard Henderson <rth@redhat.com>
28884 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
28885 a new pseudo for OLDVAL.
28887 2014-02-20 Jakub Jelinek <jakub@redhat.com>
28890 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
28891 gen_reg_rtx if d->testing_p.
28892 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
28893 if d->testing_p and we will certainly return true.
28894 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
28897 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
28899 * emit-rtl.c (gen_reg_rtx): Assert that
28900 crtl->emit.regno_pointer_align_length is non-zero.
28902 2014-02-20 Richard Henderson <rth@redhat.com>
28905 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
28906 on failure the store back into EXPECT.
28908 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
28909 Sandra Loosemore <sandra@codesourcery.com>
28911 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
28912 * config/nios2/nios2.c (nios2_function_profiler): Add
28913 -fPIC (flag_pic == 2) support.
28914 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
28915 (nios2_large_offset_p): New function.
28916 (nios2_unspec_reloc_p): Move up position, update to use
28917 nios2_large_offset_p.
28918 (nios2_unspec_address): Remove function.
28919 (nios2_unspec_offset): New function.
28920 (nios2_large_got_address): New function.
28921 (nios2_got_address): Add large offset support.
28922 (nios2_legitimize_tls_address): Update usage of removed and new
28924 (nios2_symbol_binds_local_p): New function.
28925 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
28926 (nios2_legitimize_address): Update to use nios2_large_offset_p.
28927 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
28928 (nios2_print_operand): Merge H/L processing, add hiadj/lo
28929 processing for (const (unspec ...)).
28930 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
28932 2014-02-20 Richard Biener <rguenther@suse.de>
28934 * tree-cfg.c (replace_uses_by): Mark altered BBs before
28935 doing the substitution.
28936 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
28938 2014-02-20 Martin Jambor <mjambor@suse.cz>
28941 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
28942 info when checking whether lattices are bottom.
28944 2014-02-20 Richard Biener <rguenther@suse.de>
28946 PR middle-end/60221
28947 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
28950 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
28953 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
28954 parameter specifying the scaling.
28955 (inline_call): Update.
28956 (want_inline_recursively): Guard division by zero.
28957 (recursive_inlining): Update.
28958 * ipa-inline.h (clone_inlined_nodes): Update.
28960 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
28963 * config/i386/i386.c (classify_argument): Pass structures of size
28964 64 bytes or less in register.
28966 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
28967 Kirill Yukhin <kirill.yukhin@intel.com>
28969 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
28970 (_mm_rcp28_round_ss): Ditto.
28971 (_mm_rsqrt28_round_sd): Ditto.
28972 (_mm_rsqrt28_round_ss): Ditto.
28973 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
28974 (_mm_rcp14_round_ss): Ditto.
28975 (_mm_rsqrt14_round_sd): Ditto.
28976 (_mm_rsqrt14_round_ss): Ditto.
28977 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
28978 the first input operand, get rid of match_dup.
28979 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
28981 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
28983 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
28984 operand as the first input operand, set type attribute.
28985 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
28986 Set type attribute.
28987 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
28988 operand as the first input operand, set type attribute.
28990 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28992 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
28995 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
28998 * config/i386/i386.c (construct_container): Remove TFmode check
28999 for X86_64_INTEGER_CLASS.
29001 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
29004 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29005 only when -Wpsabi is enabled.
29007 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
29010 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29011 passing arrays in registers are the same as for structs, so remove the
29012 special case for them.
29014 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
29016 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29017 destination type, extract only the valid bits if the source type is not
29018 integral and has a different mode.
29020 2014-02-19 Richard Biener <rguenther@suse.de>
29023 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
29026 2014-02-19 Richard Biener <rguenther@suse.de>
29029 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
29030 (ipa_modify_call_arguments): Emit an argument load explicitely and
29031 preserve virtual SSA form there and for the replacement call.
29032 Do not update SSA form nor free dominance info.
29034 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29036 * ipa.c (function_and_variable_visibility): Also clear WEAK
29037 flag when disolving COMDAT_GROUP.
29039 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29041 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
29042 * ipa-prop.c (ipa_set_jf_known_type): Return early when
29043 not devirtualizing.
29044 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
29045 do more sanity checks.
29046 (detect_type_change): Return true when giving up early.
29047 (compute_complex_assign_jump_func): Fix type parameter of
29048 ipa_set_ancestor_jf.
29049 (compute_complex_ancestor_jump_func): Likewise.
29050 (update_jump_functions_after_inlining): Fix updating of
29052 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
29054 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29056 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
29057 inline clones when edge disappears.
29059 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
29062 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
29063 Split 64-bit moves into 2 patterns. Do not allow the use of
29064 direct move for TDmode in little endian, since the decimal value
29065 has little endian bytes within a word, but the 64-bit pieces are
29066 ordered in a big endian fashion, and normal subreg's of TDmode are
29068 (mov<mode>_64bit_dm): Likewise.
29069 (movtd_64bit_nodm): Likewise.
29071 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
29073 PR tree-optimization/60174
29074 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
29075 statement of an SSA_NAME that occurs in an abnormal PHI node.
29077 2014-02-18 Jakub Jelinek <jakub@redhat.com>
29080 * final.c (SEEN_BB): Remove.
29081 (SEEN_NOTE, SEEN_EMITTED): Renumber.
29082 (final_scan_insn): Don't force_source_line on second
29083 NOTE_INSN_BASIC_BLOCK.
29085 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
29088 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
29089 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
29090 (type_natural_mode): Warn ABI change when %zmm register is not
29091 available for AVX512F vector value passing.
29093 2014-02-18 Kai Tietz <ktietz@redhat.com>
29096 * config/i386/i386.c (ix86_expand_prologue): Use value in
29097 rax register as displacement when restoring %r10 or %rax.
29098 Fix wrong offset when restoring both registers.
29100 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
29102 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
29103 assertion with conditional return.
29105 2014-02-18 Jakub Jelinek <jakub@redhat.com>
29106 Uros Bizjak <ubizjak@gmail.com>
29109 * config/i386/driver-i386.c (host_detect_local_cpu): If
29110 YMM state is not saved by the OS, also clear has_f16c. Move
29111 CPUID 0x80000001 handling before YMM state saving checking.
29113 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
29115 PR rtl-optimization/58960
29116 * haifa-sched.c (alloc_global_sched_pressure_data): New,
29117 factored out from ...
29118 (sched_init): ... here.
29119 (free_global_sched_pressure_data): New, factored out from ...
29120 (sched_finish): ... here.
29121 * sched-int.h (free_global_sched_pressure_data): Declare.
29122 * sched-rgn.c (nr_regions_initial): New static global.
29123 (haifa_find_rgns): Initialize it.
29124 (schedule_region): Disable sched-pressure for the newly
29127 2014-02-17 Richard Biener <rguenther@suse.de>
29129 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
29130 release SSA defs of pattern stmts.
29132 2014-02-17 Richard Biener <rguenther@suse.de>
29134 * tree-inline.c (expand_call_inline): Release the virtual
29135 operand defined by the call we are about to inline.
29137 2014-02-17 Richard Biener <rguenther@suse.de>
29139 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
29141 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
29142 Ilya Tocar <ilya.tocar@intel.com>
29144 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
29145 arguments order in builtin.
29146 (_mm512_permutexvar_epi64): Ditto.
29147 (_mm512_mask_permutexvar_epi64): Ditto
29148 (_mm512_maskz_permutexvar_epi32): Ditto
29149 (_mm512_permutexvar_epi32): Ditto
29150 (_mm512_mask_permutexvar_epi32): Ditto
29152 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29154 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
29155 (p8_vmrgow): Likewise.
29157 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29159 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
29162 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
29165 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
29166 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
29167 into 64-bit and 32-bit moves. On 64-bit moves, add support for
29168 using direct move instructions on ISA 2.07. Also adjust
29169 instruction length for 64-bit.
29170 (mov<mode>_64bit, TFmode/TDmode): Likewise.
29171 (mov<mode>_32bit, TFmode/TDmode): Likewise.
29173 2014-02-15 Alan Modra <amodra@gmail.com>
29177 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29178 find_replacement on parts of insn rtl that might be reloaded.
29180 2014-02-15 Richard Biener <rguenther@suse.de>
29182 PR tree-optimization/60183
29183 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
29184 (tree_ssa_phiprop): Calculate and free post-dominators.
29186 2014-02-14 Jeff Law <law@redhat.com>
29188 PR rtl-optimization/60131
29189 * ree.c (get_extended_src_reg): New function.
29190 (combine_reaching_defs): Use it rather than assuming location of REG.
29191 (find_and_remove_re): Verify first operand of extension is
29192 a REG before adding the insns to the copy list.
29194 2014-02-14 Roland McGrath <mcgrathr@google.com>
29196 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
29197 * configure: Regenerated.
29198 * config.in: Regenerated.
29199 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
29200 instead of ASM_SHORT.
29202 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
29203 Richard Earnshaw <rearnsha@arm.com>
29205 PR rtl-optimization/59535
29206 * lra-constraints.c (process_alt_operands): Encourage alternative
29207 when unassigned pseudo class is superset of the alternative class.
29208 (inherit_reload_reg): Don't inherit when optimizing for code size.
29209 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
29210 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
29211 modes not less than 4 for Thumb1.
29213 2014-02-14 Kyle McMartin <kyle@redhat.com>
29216 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
29218 2014-02-14 Richard Biener <rguenther@suse.de>
29220 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
29221 (get_frame_arg): Drop the assert with langhook types_compatible_p.
29222 Do not strip INDIRECT_REFs.
29224 2014-02-14 Richard Biener <rguenther@suse.de>
29227 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
29228 DECL_FUNCTION_SPECIFIC_TARGET.
29229 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
29230 * tree-streamer-out.c (pack_ts_target_option): Remove.
29231 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
29232 (write_ts_function_decl_tree_pointers): Do not stream
29233 DECL_FUNCTION_SPECIFIC_TARGET.
29234 * tree-streamer-in.c (unpack_ts_target_option): Remove.
29235 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
29236 (lto_input_ts_function_decl_tree_pointers): Do not stream
29237 DECL_FUNCTION_SPECIFIC_TARGET.
29239 2014-02-14 Jakub Jelinek <jakub@redhat.com>
29241 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
29242 (get_initial_def_for_induction, vectorizable_induction): Ignore
29243 debug stmts when looking for exit_phi.
29244 (vectorizable_live_operation): Fix up condition.
29246 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29248 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
29249 nreverse() because it changes the content of original tree list.
29251 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29253 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
29254 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
29256 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29258 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
29259 GNU coding standards.
29261 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29264 * dwarf2out.c (gen_subprogram_die): Don't call
29265 add_calling_convention_attribute if subr_die is old_die.
29267 2014-02-13 Sharad Singhai <singhai@google.com>
29269 * doc/optinfo.texi: Fix order of nodes.
29271 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
29273 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
29274 operands[2], not operands[3].
29276 2014-02-13 Richard Biener <rguenther@suse.de>
29279 * doc/install.texi (ISL): Update recommended version to 0.12.2,
29280 mention the possibility of an in-tree build.
29281 (CLooG): Update recommended version to 0.18.1, mention the
29282 possibility of an in-tree build and clarify that the ISL
29283 bundled with CLooG does not work.
29285 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29288 * expr.c (compress_float_constant): If x is a hard register,
29289 extend into a pseudo and then move to x.
29291 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
29293 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
29294 caused by bad second argument to warning_at() with -mhotpatch and
29295 nested functions (e.g. with gfortran).
29297 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
29299 * opts.c (option_name): Remove "enabled by default" rider.
29301 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
29303 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
29305 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
29306 Uros Bizjak <ubizjak@gmail.com>
29309 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
29310 * configure: Regenerated.
29312 2014-02-12 Richard Biener <rguenther@suse.de>
29314 * vec.c (vec_prefix::calculate_allocation): Move as
29315 inline variant to vec.h.
29316 (vec_prefix::calculate_allocation_1): New out-of-line version.
29317 * vec.h (vec_prefix::calculate_allocation_1): Declare.
29318 (vec_prefix::m_has_auto_buf): Rename to ...
29319 (vec_prefix::m_using_auto_storage): ... this.
29320 (vec_prefix::calculate_allocation): Inline the easy cases
29321 and dispatch to calculate_allocation_1 which doesn't need the
29323 (va_heap::reserve): Use gcc_checking_assert.
29324 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
29325 m_using_auto_storage.
29326 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
29328 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
29329 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
29330 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
29332 2014-02-12 Richard Biener <rguenther@suse.de>
29334 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
29335 when we found a dependence.
29337 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
29339 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
29341 (maybe_fold_stmt): ... into this new function.
29342 * omp-low.c (lower_omp): Update comment.
29344 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
29347 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
29350 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
29352 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
29353 identifiers in comments.
29354 (cortexa53_extra_costs): Likewise.
29355 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
29356 (cortexa7_extra_costs): Likewise.
29357 (cortexa12_extra_costs): Likewise.
29358 (cortexa15_extra_costs): Likewise.
29359 (v7m_extra_costs): Likewise.
29361 2014-02-12 Richard Biener <rguenther@suse.de>
29363 PR middle-end/60092
29364 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
29365 of posix_memalign being successful.
29366 (lower_stmt): Restrict lowering of posix_memalign to when
29367 -ftree-bit-ccp is enabled.
29369 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29371 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
29373 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
29375 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
29377 PR rtl-optimization/60116
29378 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
29379 other_insn once the combination has been validated.
29381 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
29384 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
29386 * ipa-devirt.c: Include demangle.h
29387 (odr_violation_reported): New static variable.
29388 (add_type_duplicate): Update odr_violations.
29389 (maybe_record_node): Add completep parameter; update it.
29390 (record_target_from_binfo): Add COMPLETEP parameter;
29391 update it as needed.
29392 (possible_polymorphic_call_targets_1): Likewise.
29393 (struct polymorphic_call_target_d): Add nonconstruction_targets;
29394 rename FINAL to COMPLETE.
29395 (record_targets_from_bases): Sanity check we found the binfo;
29396 fix COMPLETEP updating.
29397 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
29398 parameter, fix computing of COMPLETEP.
29399 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
29400 at LTO time do demangling.
29401 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
29402 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
29404 (gimple_get_virt_method_for_binfo): Likewise.
29405 * gimple-fold.h (gimple_get_virt_method_for_binfo,
29406 gimple_get_virt_method_for_vtable): Update prototypes.
29408 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
29411 * genautomata.c (add_presence_absence): Fix typo with
29412 {final_}presence_list.
29414 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29417 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
29418 for VSX/Altivec vectors that land in GPR registers.
29420 2014-02-11 Richard Henderson <rth@redhat.com>
29421 Jakub Jelinek <jakub@redhat.com>
29424 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
29425 around drhs if type conversion to lacc->type is not useless.
29427 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29429 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
29431 (cortex-a57.cortex-a53): Likewise.
29432 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
29434 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29436 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
29439 2014-02-11 Renlin Li <Renlin.Li@arm.com>
29441 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
29442 add_options_for_arm_vfp3.
29444 2014-02-11 Jeff Law <law@redhat.com>
29446 PR middle-end/54041
29447 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
29448 object with an undesirable mode.
29450 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29453 * config/i386/sol2-9.h: New file.
29454 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
29455 *-*-solaris2.9*): Use it.
29457 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29459 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
29460 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
29462 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29464 * config/microblaze/microblaze.c: Extend mcpu version format
29466 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
29468 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
29470 2014-02-10 Richard Henderson <rth@redhat.com>
29473 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
29474 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
29475 ms-abi vs -mno-accumulate-outgoing-args.
29476 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
29477 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
29480 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
29482 PR middle-end/60080
29483 * cfgexpand.c (expand_asm_operands): Attach source location to
29484 ASM_INPUT rtx objects.
29485 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
29487 2014-02-10 Nick Clifton <nickc@redhat.com>
29489 * config/mn10300/mn10300.c (popcount): New function.
29490 (mn10300_expand_prologue): Include saved registers in stack usage
29493 2014-02-10 Jeff Law <law@redhat.com>
29495 PR middle-end/52306
29496 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
29497 when changing the SET_DEST of a prior insn to avoid an input reload.
29499 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29501 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
29502 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
29503 -mcall-openbsd, or -mcall-linux.
29504 (CC1_ENDIAN_BIG_SPEC): Remove.
29505 (CC1_ENDIAN_LITTLE_SPEC): Remove.
29506 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29507 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
29508 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
29509 and %cc1_endian_default.
29510 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29512 2014-02-10 Richard Biener <rguenther@suse.de>
29514 PR tree-optimization/60115
29515 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
29516 MEM_REF handling. Properly verify that the accesses are not
29517 out of the objects bound.
29519 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29521 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
29524 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
29526 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
29527 proper constants and fix formatting.
29528 (possible_polymorphic_call_targets): Fix formatting.
29530 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
29531 Ilya Tocar <ilya.tocar@intel.com>
29533 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
29534 (_mm512_loadu_epi32): Renamed into...
29535 (_mm512_loadu_si512): This.
29536 (_mm512_storeu_epi32): Renamed into...
29537 (_mm512_storeu_si512): This.
29538 (_mm512_maskz_ceil_ps): Removed.
29539 (_mm512_maskz_ceil_pd): Ditto.
29540 (_mm512_maskz_floor_ps): Ditto.
29541 (_mm512_maskz_floor_pd): Ditto.
29542 (_mm512_floor_round_ps): Ditto.
29543 (_mm512_floor_round_pd): Ditto.
29544 (_mm512_ceil_round_ps): Ditto.
29545 (_mm512_ceil_round_pd): Ditto.
29546 (_mm512_mask_floor_round_ps): Ditto.
29547 (_mm512_mask_floor_round_pd): Ditto.
29548 (_mm512_mask_ceil_round_ps): Ditto.
29549 (_mm512_mask_ceil_round_pd): Ditto.
29550 (_mm512_maskz_floor_round_ps): Ditto.
29551 (_mm512_maskz_floor_round_pd): Ditto.
29552 (_mm512_maskz_ceil_round_ps): Ditto.
29553 (_mm512_maskz_ceil_round_pd): Ditto.
29554 (_mm512_expand_pd): Ditto.
29555 (_mm512_expand_ps): Ditto.
29556 * config/i386/i386.c (ix86_builtins): Remove
29557 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
29558 (bdesc_args): Ditto.
29559 * config/i386/predicates.md (const1256_operand): New.
29560 (const_1_to_2_operand): Ditto.
29561 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29562 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29563 (*avx512pf_gatherpf<mode>sf): Ditto.
29564 (avx512pf_gatherpf<mode>df): Ditto.
29565 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29566 (*avx512pf_gatherpf<mode>df): Ditto.
29567 (avx512pf_scatterpf<mode>sf): Ditto.
29568 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29569 (*avx512pf_scatterpf<mode>sf): Ditto.
29570 (avx512pf_scatterpf<mode>df): Ditto.
29571 (*avx512pf_scatterpf<mode>df_mask): Ditto.
29572 (*avx512pf_scatterpf<mode>df): Ditto.
29573 (avx512f_expand<mode>): Removed.
29574 (<shift_insn><mode>3<mask_name>): Change predicate type.
29576 2014-02-08 Jakub Jelinek <jakub@redhat.com>
29578 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
29579 not at the end of datarefs vector use ordered_remove to avoid
29580 reordering datarefs vector.
29583 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
29584 mark local addressable non-static vars as GOVD_PRIVATE
29585 instead of GOVD_LOCAL.
29586 * omp-low.c (lower_omp_for): Move gimple_bind_vars
29587 and BLOCK_VARS of gimple_bind_block to new_stmt rather
29590 PR middle-end/60092
29591 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
29592 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
29593 assume_aligned or alloc_align attributes.
29594 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
29595 arguments. Handle also assume_aligned and alloc_align attributes.
29596 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
29597 calls to functions with assume_aligned or alloc_align attributes.
29598 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
29600 2014-02-08 Terry Guo <terry.guo@arm.com>
29602 * doc/invoke.texi: Document ARM -march=armv7e-m.
29604 2014-02-08 Jakub Jelinek <jakub@redhat.com>
29606 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
29607 flag on __cilkrts_rethrow builtin.
29610 * ipa-cp.c (determine_versionability): Fail at -O0
29611 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
29612 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
29615 2014-02-04 Jakub Jelinek <jakub@redhat.com>
29618 * tree-inline.c (copy_forbidden): Fail for
29619 __attribute__((optimize (0))) functions.
29621 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
29623 * varpool.c: Include pointer-set.h.
29624 (varpool_remove_unreferenced_decls): Variables in other partitions
29625 will not be output; be however careful to not lose information
29626 about partitioning.
29628 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
29630 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
29631 lookup in the vtable constructor.
29633 2014-02-07 Jeff Law <law@redhat.com>
29636 * config/m68k/m68k.md (ashldi_extsi): Turn into a
29637 define_insn_and_split.
29639 * ipa-inline.c (inline_small_functions): Fix typos.
29641 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29643 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
29644 (s390_can_use_return_insn): Declare.
29645 * config/s390/s390.h (EPILOGUE_USES): Define.
29646 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
29648 (s390_chunkify_start): Handle return JUMP_LABELs.
29649 (s390_early_mach): Emit a main_pool instruction on the entry edge.
29650 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
29651 (s390_can_use_return_insn): New functions.
29652 (s390_fix_long_loop_prediction): Handle conditional returns.
29653 (TARGET_SET_UP_BY_PROLOGUE): Define.
29654 * config/s390/s390.md (ANY_RETURN): New code iterator.
29655 (*creturn, *csimple_return, return, simple_return): New patterns.
29657 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29659 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
29660 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
29661 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
29662 REG_CFA_RESTORE list when deciding not to restore a register.
29664 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29666 * config/s390/s390.c: Include tree-pass.h and context.h.
29667 (s390_early_mach): New function, split out from...
29668 (s390_emit_prologue): ...here.
29669 (pass_data_s390_early_mach): New pass structure.
29670 (pass_s390_early_mach): New class.
29671 (s390_option_override): Create and register early_mach pass.
29672 Move to end of file.
29674 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29676 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
29677 to match for the exit block.
29679 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29681 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
29682 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
29683 Reject misaligned operands.
29685 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29687 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
29689 2014-02-07 Richard Biener <rguenther@suse.de>
29691 PR middle-end/60092
29692 * gimple-low.c (lower_builtin_posix_memalign): New function.
29693 (lower_stmt): Call it to lower posix_memalign in a way
29694 to make alignment info accessible.
29696 2014-02-07 Jakub Jelinek <jakub@redhat.com>
29699 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
29700 __builtin_setjmp_receiver.
29702 2014-02-07 Richard Biener <rguenther@suse.de>
29704 PR middle-end/60092
29705 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
29706 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
29707 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29708 Handle BUILT_IN_POSIX_MEMALIGN.
29709 (find_func_clobbers): Likewise.
29710 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29711 (call_may_clobber_ref_p_1): Likewise.
29713 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29716 * ipa-devirt.c (record_target_from_binfo): Remove overactive
29719 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29722 * lto-cgraph.c (lto_output_node): Use
29723 symtab_get_symbol_partitioning_class.
29724 (lto_output_varpool_node): likewise.
29725 (symtab_get_symbol_partitioning_class): Move here from
29726 lto/lto-partition.c
29727 * cgraph.h (symbol_partitioning_class): Likewise.
29728 (symtab_get_symbol_partitioning_class): Declare.
29730 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29732 * ggc.h (ggc_internal_cleared_alloc): New macro.
29733 * vec.h (vec_safe_copy): Handle memory stats.
29734 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
29735 * target-globals.c (save_target_globals): Likewise.
29737 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
29740 * expr.c (emit_move_resolve_push): Export; be bit more selective
29741 on when to clear alias set.
29742 * expr.h (emit_move_resolve_push): Declare.
29743 * function.h (struct function): Add tail_call_marked.
29744 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
29745 * config/i386/i386-protos.h (ix86_expand_push): Remove.
29746 * config/i386/i386.md (TImode move expander): De not call
29748 (FP push expanders): Preserve memory attributes.
29749 * config/i386/sse.md (push<mode>1): Remove.
29750 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
29751 (ix86_expand_push): Remove.
29752 * config/i386/mmx.md (push<mode>1): Remove.
29754 2014-02-06 Jakub Jelinek <jakub@redhat.com>
29756 PR rtl-optimization/60030
29757 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
29758 lopart with paradoxical subreg before shifting it up by hprec.
29760 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29762 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
29763 Remove extra newline at end of file.
29764 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
29765 (arm_issue_rate): Handle cortexa57.
29766 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
29767 (cortex-a57.cortex-a53): Likewise.
29769 2014-02-06 Jakub Jelinek <jakub@redhat.com>
29772 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
29773 don't record in REG_FRAME_RELATED_EXPR registers not set in that
29775 (arm_expand_prologue): Adjust all callers.
29776 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
29777 info, registers also at the lowest numbered registers side. Use
29778 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
29782 * var-tracking.c (adjust_mems): Before adding a SET to
29783 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
29785 2014-02-06 Alan Modra <amodra@gmail.com>
29788 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
29789 change SDmode to DDmode when lra_in_progress.
29791 2014-02-06 Jakub Jelinek <jakub@redhat.com>
29793 PR middle-end/59150
29794 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
29795 free_data_ref on the dr first, and before goto again also set dr
29796 to the next dr. For simd_lane_access, free old datarefs[i] before
29797 overwriting it. For get_vectype_for_scalar_type failure, don't
29798 free_data_ref if simd_lane_access.
29800 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
29803 * tree.h (opts_for_fn): New inline function.
29804 (opt_for_fn): Define.
29805 * config/i386/i386.c (ix86_function_regparm): Use
29806 opt_for_fn (decl, optimize) instead of optimize.
29808 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
29810 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
29811 for SYMBOL_REF in large memory model.
29813 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29815 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
29816 and crypto support.
29817 (cortex-a57): Likewise.
29818 (cortex-a57.cortex-a53): Likewise.
29820 2014-02-06 Yury Gribov <y.gribov@samsung.com>
29821 Kugan Vivekanandarajah <kuganv@linaro.org>
29823 * config/arm/arm.c (arm_vector_alignment_reachable): Check
29825 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
29827 2014-02-06 Richard Biener <rguenther@suse.de>
29829 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
29830 set_loop_copy and initialize_original_copy_tables.
29832 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
29834 * config/aarch64/aarch64-simd.md
29835 (aarch64_ashr_simddi): Change QI to SI.
29837 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
29838 Jakub Jelinek <jakub@redhat.com>
29840 PR middle-end/60013
29841 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
29844 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29846 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
29847 CODE_FOR_altivec_vpku[hw]um to
29848 CODE_FOR_altivec_vpku[hw]um_direct.
29849 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
29850 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
29851 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
29852 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
29854 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29856 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
29857 generation for -maltivec=be.
29858 (altivec_vsumsws): Simplify redundant test.
29860 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29862 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
29863 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
29864 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
29865 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
29866 gen_altivec_vpkuwum.
29867 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
29869 (altivec_vpks<VI_char>ss): Likewise.
29870 (altivec_vpks<VI_char>us): Likewise.
29871 (altivec_vpku<VI_char>us): Likewise.
29872 (altivec_vpku<VI_char>um): Likewise.
29873 (altivec_vpku<VI_char>um_direct): New (copy of
29874 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
29876 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
29877 target is little endian and -maltivec=be is not specified.
29878 (*altivec_vupkhs<VU_char>_direct): New (copy of
29879 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
29880 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
29881 target is little endian and -maltivec=be is not specified.
29882 (*altivec_vupkls<VU_char>_direct): New (copy of
29883 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
29884 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
29885 little endian and -maltivec=be is not specified.
29886 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
29887 little endian and -maltivec=be is not specified.
29889 2014-02-05 Richard Henderson <rth@redhat.com>
29892 * combine-stack-adj.c: Revert r206943.
29893 * sched-int.h (struct deps_desc): Add last_args_size.
29894 * sched-deps.c (init_deps): Initialize it.
29895 (sched_analyze_insn): Add OUTPUT dependencies between insns that
29896 contain REG_ARGS_SIZE notes.
29898 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
29900 * lto-cgraph.c (asm_nodes_output): Make global.
29901 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
29902 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
29903 (driver_handle_option): Handle OPT_fwpa.
29905 2014-02-05 Jakub Jelinek <jakub@redhat.com>
29908 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
29909 a comment typo and formatting issue. If odr_hash hasn't been
29910 created, return vNULL and set *completep to false.
29912 PR middle-end/57499
29913 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
29914 bb with no successors.
29916 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
29919 * doc/invoke.texi (-march): Clarify documentation for ARM.
29920 (-mtune): Likewise.
29923 2014-02-05 Richard Biener <rguenther@suse.de>
29925 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
29926 when not vectorizing because of too many alias checks.
29927 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
29928 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
29930 2014-02-05 Nick Clifton <nickc@redhat.com>
29932 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
29933 accept extended registers in any mode when compiling for the MN10300.
29935 2014-02-05 Yury Gribov <y.gribov@samsung.com>
29937 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
29938 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
29939 sanitization attributes.
29940 (can_inline_edge_p): Likewise.
29941 (sanitize_attrs_match_for_inline_p): New function.
29943 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
29945 * ipa-prop.c (detect_type_change): Shor circuit testing of
29946 type changes on THIS pointer.
29948 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
29951 * config/pa/pa.c (legitimize_tls_address): Return original address
29952 if not passed a SYMBOL_REF rtx.
29953 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
29955 (pa_emit_move_sequence): Simplify TLS source operands.
29956 (pa_legitimate_constant_p): Reject all TLS constants.
29957 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
29958 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
29960 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
29962 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
29963 groups when we know they are controlled by LTO.
29964 * varasm.c (default_binds_local_p_1): If object is in other partition,
29965 it will be resolved locally.
29967 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
29969 * config/host-linux.c (linux_gt_pch_use_address): Don't
29970 use SSIZE_MAX because it is not always defined.
29972 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
29975 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
29976 threshold for pseudo splitting.
29977 (update_ebb_live_info): Process call argument hard registers and
29978 hard registers from insn definition too.
29979 (max_small_class_regs_num): New constant.
29980 (inherit_in_ebb): Update live hard regs through EBBs. Update
29981 reloads_num only for small register classes. Don't split for
29984 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
29987 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
29990 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
29992 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
29993 visibility is safe.
29995 2014-02-04 Marek Polacek <polacek@redhat.com>
29997 * gdbinit.in (pel): Define.
29999 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
30001 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30004 2014-02-04 Richard Biener <rguenther@suse.de>
30007 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30008 in function context local.
30009 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30010 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30011 similar to LTO_imported_decl_ref.
30013 2014-02-04 Jakub Jelinek <jakub@redhat.com>
30015 PR tree-optimization/60002
30016 * cgraphclones.c (build_function_decl_skip_args): Clear
30017 DECL_LANG_SPECIFIC.
30019 PR tree-optimization/60023
30020 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30021 false to gsi_replace.
30022 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
30023 has been in some EH region and vec_stmt could throw, add
30024 vec_stmt into the same EH region.
30025 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
30026 has no lhs, ignore it.
30027 * internal-fn.c (expand_MASK_LOAD): Likewise.
30030 * tree-inline.c (copy_forbidden): Fail for
30031 __attribute__((optimize (0))) functions.
30034 * omp-low.c (simd_clone_struct_copy): If from->inbranch
30035 is set, copy one less argument.
30036 (expand_simd_clones): Don't subtract clone_info->inbranch
30037 from simd_clone_struct_alloc argument.
30039 PR rtl-optimization/57915
30040 * recog.c (simplify_while_replacing): If all unary/binary/relational
30041 operation arguments are constant, attempt to simplify those.
30043 PR middle-end/59261
30044 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
30045 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
30047 2014-02-04 Richard Biener <rguenther@suse.de>
30049 PR tree-optimization/60012
30050 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
30051 TBAA disambiguation to all DDRs.
30053 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30056 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
30057 (LINK_SPEC): Use it for -shared, -shared-libgcc.
30059 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30062 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
30064 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30066 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
30067 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
30069 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30072 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
30073 to figure out targets of polymorphic calls with known decl.
30074 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30075 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
30076 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
30077 (get_polymorphic_call_info): ... here.
30078 (get_polymorphic_call_info_from_invariant): New function.
30080 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30082 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
30083 lookup via vtable pointer; check for type consistency
30084 and turn inconsitent facts into UNREACHABLE.
30085 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30086 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
30087 type inconsistent querries; return UNREACHABLE instead.
30089 2014-02-03 Richard Henderson <rth@twiddle.net>
30092 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
30093 already processed this node.
30094 (normalize_one_pred_1): Pass along mark_set.
30095 (normalize_one_pred): Create and destroy a pointer_set_t.
30096 (normalize_one_pred_chain): Likewise.
30098 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
30100 PR gcov-profile/58602
30101 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
30103 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30106 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
30107 -fno-devirtualize; try to devirtualize by the knowledge of
30108 virtual table pointer given by aggregate propagation.
30109 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30110 (ipa_print_node_jump_functions): Dump also offset that
30111 is relevant for polymorphic calls.
30112 (determine_known_aggregate_parts): Add arg_type parameter; use it
30113 instead of determining the type from pointer type.
30114 (ipa_compute_jump_functions_for_edge): Update call of
30115 determine_known_aggregate_parts.
30116 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
30117 (gimple_get_virt_method_for_binfo): ... here; simplify using
30118 vtable_pointer_value_to_vtable.
30119 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
30120 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
30121 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
30122 (vtable_pointer_value_to_vtable): Break out from ...; handle also
30124 (vtable_pointer_value_to_binfo): ... here.
30125 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
30127 2014-02-03 Teresa Johnson <tejohnson@google.com>
30129 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
30130 redef of outer loop index variable.
30132 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
30136 * doc/extend.texi (Function Attributes): Typo.
30138 2014-02-03 Cong Hou <congh@google.com>
30140 PR tree-optimization/60000
30141 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
30142 if the vectorized statement is a store. A store statement can only
30143 appear at the end of pattern statements.
30145 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
30147 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
30148 (ix86_option_override_internal): Default long double to 64-bit for
30149 32-bit Bionic and to 128-bit for 64-bit Bionic.
30151 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
30152 TARGET_LONG_DOUBLE_128 is true.
30153 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30155 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
30156 (mlong-double-64): Negate -mlong-double-128.
30157 (mlong-double-128): New option.
30159 * config/i386/i386-c.c (ix86_target_macros): Define
30160 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
30162 * doc/invoke.texi: Document -mlong-double-128.
30164 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
30166 PR rtl-optimization/60024
30167 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
30169 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
30171 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
30173 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30175 PR rtl-optimization/57662
30176 * sel-sched.c (code_motion_path_driver): Do not mark already not
30177 existing blocks in the visiting bitmap.
30179 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30181 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
30182 on the insn being emitted.
30184 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
30185 Will Deacon <will.deacon@arm.com>
30187 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
30189 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30191 * config/arm/arm-tables.opt: Regenerate.
30193 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30195 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
30196 for vector types other than V16QImode.
30197 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
30198 define_expand, and call altivec_expand_vec_perm_le when producing
30199 code with little endian element order.
30200 (*altivec_vperm_<mode>_internal): New insn having previous
30201 behavior of altivec_vperm_<mode>.
30202 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
30203 altivec_expand_vec_perm_le when producing code with little endian
30205 (*altivec_vperm_<mode>_uns_internal): New insn having previous
30206 behavior of altivec_vperm_<mode>_uns.
30208 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30210 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
30211 (altivec_vsumsws): Add handling for -maltivec=be with a little
30213 (altivec_vsumsws_direct): New.
30214 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
30215 gen_altivec_vsumsws.
30217 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30219 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
30220 vtable_pointer_value_to_binfo): New functions.
30221 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
30222 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
30224 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
30226 * config/nios2/nios2.md (load_got_register): Initialize GOT
30227 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
30228 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
30230 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30232 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
30233 preserverd by passthrough, do not propagate the type.
30235 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30237 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
30238 (mips_atomic_assign_expand_fenv): New function.
30239 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30241 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30243 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
30244 (__builtin_mips_set_fcsr): Likewise.
30245 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
30246 MIPS_USI_FTYPE_VOID.
30247 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
30248 (mips16_expand_set_fcsr): Likewise.
30249 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
30250 (mips16_set_fcsr_stub): Likewise.
30251 (mips16_get_fcsr_one_only_stub): New class.
30252 (mips16_set_fcsr_one_only_stub): Likewise.
30253 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
30254 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
30255 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
30256 (hard_float): New availability predicate.
30257 (mips_builtins): Add get_fcsr and set_fcsr.
30258 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
30259 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
30260 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
30261 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
30262 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
30265 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30267 * config/mips/mips.c (mips_one_only_stub): New class.
30268 (mips_need_mips16_rdhwr_p): Replace with...
30269 (mips16_rdhwr_stub): ...this new variable.
30270 (mips16_stub_call_address): New function.
30271 (mips16_rdhwr_one_only_stub): New class.
30272 (mips_expand_thread_pointer): Use mips16_stub_call_address.
30273 (mips_output_mips16_rdhwr): Delete.
30274 (mips_finish_stub): New function.
30275 (mips_code_end): Use it to handle rdhwr stubs.
30277 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
30280 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
30281 when calculating size of integer atomic types.
30283 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
30285 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
30287 2014-02-01 Jakub Jelinek <jakub@redhat.com>
30289 PR tree-optimization/60003
30290 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
30291 * profile.c (branch_prob): Use gimple_call_builtin_p
30292 to check for BUILT_IN_SETJMP_RECEIVER.
30293 * tree-inline.c (copy_bb): Call notice_special_calls.
30295 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
30298 * lra-constraints.c (process_alt_operands): Update reload_sum only
30301 2014-01-31 Richard Henderson <rth@redhat.com>
30303 PR middle-end/60004
30304 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
30305 until after else_eh is processed.
30307 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30309 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
30310 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
30311 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
30312 in smmintrin.h, remove them.
30313 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
30314 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
30315 * config/i386/i386.md (ROUND_SAE): Fix value.
30316 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
30317 (const48_operand): New.
30318 * config/i386/subst.md (round), (round_expand): Use
30319 const_4_or_8_to_11_operand.
30320 (round_saeonly), (round_saeonly_expand): Use const48_operand.
30322 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30324 * config/i386/constraints.md (Yk): Swap meaning with k.
30325 * config/i386/i386.md (movhi_internal): Change Yk to k.
30326 (movqi_internal): Ditto.
30327 (*k<logic><mode>): Ditto.
30330 (kandn<mode>): Ditto.
30331 (*<code>hi_1): Ditto.
30332 (*<code>qi_1): Ditto.
30333 (kxnor<mode>): Ditto.
30334 (kortestzhi): Ditto.
30335 (kortestchi): Ditto.
30337 (*one_cmplhi2_1): Ditto.
30338 (*one_cmplqi2_1): Ditto.
30339 * config/i386/sse.md (): Change k to Yk.
30340 (avx512f_load<mode>_mask): Ditto.
30341 (avx512f_blendm<mode>): Ditto.
30342 (avx512f_store<mode>_mask): Ditto.
30343 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
30344 (avx512f_storedqu<mode>_mask): Ditto.
30345 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
30347 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
30348 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
30349 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
30350 (avx512f_maskcmp<mode>3): Ditto.
30351 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
30352 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
30353 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
30354 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
30355 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
30356 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
30357 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
30358 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
30359 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
30360 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
30361 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
30362 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
30363 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
30364 (vec_extract_lo_<mode>_maskm): Ditto.
30365 (vec_extract_hi_<mode>_maskm): Ditto.
30366 (avx512f_vternlog<mode>_mask): Ditto.
30367 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
30368 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
30369 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
30370 (avx512f_<code>v8div16qi2_mask): Ditto.
30371 (avx512f_<code>v8div16qi2_mask_store): Ditto.
30372 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
30373 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
30374 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
30375 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
30376 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30377 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30378 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30379 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30380 (avx512cd_maskb_vec_dupv8di): Ditto.
30381 (avx512cd_maskw_vec_dupv16si): Ditto.
30382 (avx512f_vpermi2var<mode>3_maskz): Ditto.
30383 (avx512f_vpermi2var<mode>3_mask): Ditto.
30384 (avx512f_vpermi2var<mode>3_mask): Ditto.
30385 (avx512f_vpermt2var<mode>3_maskz): Ditto.
30386 (*avx512f_gathersi<mode>): Ditto.
30387 (*avx512f_gathersi<mode>_2): Ditto.
30388 (*avx512f_gatherdi<mode>): Ditto.
30389 (*avx512f_gatherdi<mode>_2): Ditto.
30390 (*avx512f_scattersi<mode>): Ditto.
30391 (*avx512f_scatterdi<mode>): Ditto.
30392 (avx512f_compress<mode>_mask): Ditto.
30393 (avx512f_compressstore<mode>_mask): Ditto.
30394 (avx512f_expand<mode>_mask): Ditto.
30395 * config/i386/subst.md (mask): Change k to Yk.
30396 (mask_scalar_merge): Ditto.
30399 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
30401 * doc/extend.texi (Vector Extensions): Document ?: in C++.
30403 2014-01-31 Richard Biener <rguenther@suse.de>
30405 PR middle-end/59990
30406 * builtins.c (fold_builtin_memory_op): Make sure to not
30407 use a floating-point mode or a boolean or enumeral type for
30408 the copy operation.
30410 2014-01-30 DJ Delorie <dj@redhat.com>
30412 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
30413 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
30414 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
30415 whenever main() has an epilogue.
30417 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30419 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
30420 unused variable "field".
30421 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
30422 (vsx_mergeh_<mode>): Likewise.
30423 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
30424 (altivec_vmrghh): Likewise.
30425 (altivec_vmrghw): Likewise.
30426 (altivec_vmrglb): Likewise.
30427 (altivec_vmrglh): Likewise.
30428 (altivec_vmrglw): Likewise.
30429 (altivec_vspltb): Add missing uses.
30430 (altivec_vsplth): Likewise.
30431 (altivec_vspltw): Likewise.
30432 (altivec_vspltsf): Likewise.
30434 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30437 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
30438 frame related instructions.
30440 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
30442 PR rtl-optimization/59959
30443 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
30444 any reload of register whose subreg is invalid.
30446 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30448 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
30449 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
30450 Add missing return type - void.
30452 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30454 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
30455 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
30456 remove element index adjustment for endian (now handled in vsx.md
30458 (altivec_expand_vec_perm_const): Use
30459 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
30460 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
30461 (vsx_xxspltw_<mode>): Adjust element index for little endian.
30462 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
30463 define_expand and a new define_insn *altivec_vspltb_internal;
30464 adjust for -maltivec=be on a little endian target.
30465 (altivec_vspltb_direct): New.
30466 (altivec_vsplth): Divide into a define_expand and a new
30467 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
30468 little endian target.
30469 (altivec_vsplth_direct): New.
30470 (altivec_vspltw): Divide into a define_expand and a new
30471 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
30472 little endian target.
30473 (altivec_vspltw_direct): New.
30474 (altivec_vspltsf): Divide into a define_expand and a new
30475 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
30476 a little endian target.
30478 2014-01-30 Richard Biener <rguenther@suse.de>
30480 PR tree-optimization/59993
30481 * tree-ssa-forwprop.c (associate_pointerplus): Check we
30482 can propagate form the earlier stmt and avoid the transform
30483 when the intermediate result is needed.
30485 2014-01-30 Alangi Derick <alangiderick@gmail.com>
30487 * README.Portability: Fix typo.
30489 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
30491 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
30492 comparison_operator with ordered_comparison_operator.
30494 2014-01-30 Nick Clifton <nickc@redhat.com>
30496 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
30497 Rename to mn10300_store_multiple_regs.
30498 * config/mn10300/mn10300.c: Likewise.
30499 * config/mn10300/mn10300.md (store_movm): Fix typo: call
30500 store_multiple_regs.
30501 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
30502 Call mn10300_store_multiple_regs.
30504 2014-01-30 Nick Clifton <nickc@redhat.com>
30505 DJ Delorie <dj@redhat.com>
30507 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
30508 %fp 2 to keep registers after it properly word-aligned.
30509 (rl78_alloc_physical_registers_umul): Handle the case where both
30510 input operands are the same.
30512 2014-01-30 Richard Biener <rguenther@suse.de>
30514 PR tree-optimization/59903
30515 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
30518 2014-01-30 Jason Merrill <jason@redhat.com>
30521 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
30524 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
30526 2014-01-30 Richard Biener <rguenther@suse.de>
30528 PR tree-optimization/59951
30529 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
30531 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
30534 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
30535 SFmode to DFmode case.
30537 2014-01-29 DJ Delorie <dj@redhat.com>
30539 * config/msp430/msp430.opt (-minrt): New.
30540 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
30542 (ENDFILE_SPEC): Likewise.
30544 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
30546 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
30547 (estimate_function_body_sizes): Use it.
30549 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
30552 * dwarf2out.c (is_cxx_auto): New.
30553 (is_base_type): Use it.
30554 (gen_type_die_with_usage): Likewise.
30556 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30558 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
30559 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
30560 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
30561 -maltivec=be with LE targets.
30562 (vsx_mergeh_<mode>): Likewise.
30563 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
30564 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
30565 (altivec_vmrghb): Replace with define_expand and new
30566 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
30567 (altivec_vmrghb_direct): New define_insn.
30568 (altivec_vmrghh): Replace with define_expand and new
30569 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
30570 (altivec_vmrghh_direct): New define_insn.
30571 (altivec_vmrghw): Replace with define_expand and new
30572 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
30573 (altivec_vmrghw_direct): New define_insn.
30574 (*altivec_vmrghsf): Adjust for endianness.
30575 (altivec_vmrglb): Replace with define_expand and new
30576 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
30577 (altivec_vmrglb_direct): New define_insn.
30578 (altivec_vmrglh): Replace with define_expand and new
30579 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
30580 (altivec_vmrglh_direct): New define_insn.
30581 (altivec_vmrglw): Replace with define_expand and new
30582 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
30583 (altivec_vmrglw_direct): New define_insn.
30584 (*altivec_vmrglsf): Adjust for endianness.
30585 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30586 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30587 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30588 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30589 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30590 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30591 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30592 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30594 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
30596 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
30597 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
30600 2014-01-29 Richard Biener <rguenther@suse.de>
30602 PR tree-optimization/58742
30603 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
30604 associate_pointerplus_align.
30605 (associate_pointerplus_diff): New function.
30606 (associate_pointerplus): Likewise. Call associate_pointerplus_align
30607 and associate_pointerplus_diff.
30609 2014-01-29 Richard Biener <rguenther@suse.de>
30611 * lto-streamer.h (LTO_major_version): Bump to 3.
30612 (LTO_minor_version): Reset to 0.
30614 2014-01-29 Renlin Li <Renlin.Li@arm.com>
30616 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
30617 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
30618 (arm_file_start): Generate correct asm header for armv7ve.
30619 * config/arm/bpabi.h: Add multilib support for armv7ve.
30620 * config/arm/driver-arm.c: Change the architectures of cortex-a7
30621 and cortex-a15 to armv7ve.
30622 * config/arm/t-aprofile: Add multilib support for armv7ve.
30623 * doc/invoke.texi: Document -march=armv7ve.
30625 2014-01-29 Richard Biener <rguenther@suse.de>
30627 PR tree-optimization/58742
30628 * tree-ssa-forwprop.c (associate_plusminus): Return true
30629 if we changed sth, defer EH cleanup to ...
30630 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
30631 (simplify_mult): New function.
30633 2014-01-29 Jakub Jelinek <jakub@redhat.com>
30635 PR middle-end/59917
30636 PR tree-optimization/59920
30637 * tree.c (build_common_builtin_nodes): Remove
30638 __builtin_setjmp_dispatcher initialization.
30639 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
30640 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
30641 instead of gsi_after_labels + manually skipping debug stmts.
30642 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
30643 ignore bbs with IFN_ABNORMAL_DISPATCHER.
30644 * tree-inline.c (copy_edges_for_bb): Remove
30645 can_make_abnormal_goto argument, instead add abnormal_goto_dest
30646 argument. Ignore computed_goto_p stmts. Don't call
30647 make_abnormal_goto_edges. If a call might need abnormal edges
30648 for non-local gotos, see if it already has an edge to
30649 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
30650 with true argument, don't do anything then, otherwise add
30651 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
30652 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
30654 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
30655 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
30656 (lower_stmt): Don't set data->calls_builtin_setjmp.
30657 (lower_builtin_setjmp): Adjust comment.
30658 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
30659 * tree-cfg.c (found_computed_goto): Remove.
30660 (factor_computed_gotos): Remove.
30661 (make_goto_expr_edges): Return bool, true for computed gotos.
30662 Don't call make_abnormal_goto_edges.
30663 (build_gimple_cfg): Don't set found_computed_goto, don't call
30664 factor_computed_gotos.
30665 (computed_goto_p): No longer static.
30666 (make_blocks): Don't set found_computed_goto.
30667 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
30668 (make_edges): If make_goto_expr_edges returns true, push bb
30669 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
30670 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
30671 vector. Record mapping between bbs and OpenMP regions if there
30672 are any, adjust make_gimple_omp_edges caller. Call
30673 handle_abnormal_edges.
30674 (make_abnormal_goto_edges): Remove.
30675 * tree-cfg.h (make_abnormal_goto_edges): Remove.
30676 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
30677 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
30678 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
30679 * internal-fn.def (ABNORMAL_DISPATCHER): New.
30680 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
30681 filling *region also set *region_idx to (*region)->entry->index.
30684 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
30685 For REGs set ORIGINAL_REGNO.
30687 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
30689 * doc/md.texi: Mention that a target shouldn't implement
30690 vec_widen_(s|u)mul_even/odd pair if it is less efficient
30693 2014-01-29 Jakub Jelinek <jakub@redhat.com>
30695 PR tree-optimization/59594
30696 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
30697 a copy of the datarefs vector rather than the vector itself.
30699 2014-01-28 Jason Merrill <jason@redhat.com>
30702 * dwarf2out.c (auto_die): New static.
30703 (gen_type_die_with_usage): Handle C++1y 'auto'.
30704 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
30707 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
30710 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
30711 (SPEC_X32): Likewise.
30712 (SPEC_64): Likewise.
30713 * config/i386/i386.c (ix86_option_override_internal): Turn off
30714 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
30716 (x86_file_start): Output .code16gcc for TARGET_16BIT.
30717 * config/i386/i386.h (TARGET_16BIT): New macro.
30718 (TARGET_16BIT_P): Likewise.
30719 * config/i386/i386.opt: Add m16.
30720 * doc/invoke.texi: Document -m16.
30722 2014-01-28 Jakub Jelinek <jakub@redhat.com>
30724 PR preprocessor/59935
30725 * input.c (location_get_source_line): Bail out on when line number
30726 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
30728 2014-01-28 Richard Biener <rguenther@suse.de>
30730 PR tree-optimization/58742
30731 * tree-ssa-forwprop.c (associate_plusminus): Handle
30732 pointer subtraction of the form (T)(P + A) - (T)P.
30734 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30736 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
30739 2014-01-28 Richard Biener <rguenther@suse.de>
30742 2014-01-28 Richard Biener <rguenther@suse.de>
30744 PR rtl-optimization/45364
30745 PR rtl-optimization/59890
30746 * var-tracking.c (local_get_addr_clear_given_value): Handle
30747 already cleared slot.
30748 (val_reset): Handle not allocated local_get_addr_cache.
30749 (vt_find_locations): Use post-order on the inverted CFG.
30751 2014-01-28 Richard Biener <rguenther@suse.de>
30753 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
30755 2014-01-28 Richard Biener <rguenther@suse.de>
30757 PR rtl-optimization/45364
30758 PR rtl-optimization/59890
30759 * var-tracking.c (local_get_addr_clear_given_value): Handle
30760 already cleared slot.
30761 (val_reset): Handle not allocated local_get_addr_cache.
30762 (vt_find_locations): Use post-order on the inverted CFG.
30764 2014-01-28 Alan Modra <amodra@gmail.com>
30766 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
30767 * configure.ac <recursive call for build != host>: Define
30768 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
30769 and LD_FOR_BUILD too.
30770 * configure: Regenerate.
30772 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
30774 * config/i386/i386.c (get_builtin_code_for_version): Separate
30775 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
30776 Broadwell from Haswell.
30778 2014-01-27 Steve Ellcey <sellcey@mips.com>
30780 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
30781 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
30782 * config/mips/mips.c (mips_option_override): Change setting
30784 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
30785 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
30786 Change from Mask to Var.
30788 2014-01-27 Jeff Law <law@redhat.com>
30790 * ipa-inline.c (inline_small_functions): Fix typo.
30792 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
30794 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
30795 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
30796 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
30797 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
30798 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
30799 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
30800 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
30801 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
30802 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
30803 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
30804 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
30805 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
30806 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
30807 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
30808 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
30809 (_mm512_storeu_epi64): Ditto.
30810 (_mm512_cmpge_epi32_mask): Ditto.
30811 (_mm512_cmpge_epu32_mask): Ditto.
30812 (_mm512_cmpge_epi64_mask): Ditto.
30813 (_mm512_cmpge_epu64_mask): Ditto.
30814 (_mm512_cmple_epi32_mask): Ditto.
30815 (_mm512_cmple_epu32_mask): Ditto.
30816 (_mm512_cmple_epi64_mask): Ditto.
30817 (_mm512_cmple_epu64_mask): Ditto.
30818 (_mm512_cmplt_epi32_mask): Ditto.
30819 (_mm512_cmplt_epu32_mask): Ditto.
30820 (_mm512_cmplt_epi64_mask): Ditto.
30821 (_mm512_cmplt_epu64_mask): Ditto.
30822 (_mm512_cmpneq_epi32_mask): Ditto.
30823 (_mm512_cmpneq_epu32_mask): Ditto.
30824 (_mm512_cmpneq_epi64_mask): Ditto.
30825 (_mm512_cmpneq_epu64_mask): Ditto.
30826 (_mm512_expand_pd): Ditto.
30827 (_mm512_expand_ps): Ditto.
30828 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
30829 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
30830 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
30831 * config/i386/i386.c (ix86_builtins): Add
30832 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
30833 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
30834 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
30835 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
30836 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
30837 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
30838 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
30839 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
30840 IX86_BUILTIN_PMOVUSQW512_MEM.
30841 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
30842 __builtin_ia32_pmovsqd512mem_mask,
30843 __builtin_ia32_pmovqd512mem_mask,
30844 __builtin_ia32_pmovusqw512mem_mask,
30845 __builtin_ia32_pmovsqw512mem_mask,
30846 __builtin_ia32_pmovqw512mem_mask,
30847 __builtin_ia32_pmovusdw512mem_mask,
30848 __builtin_ia32_pmovsdw512mem_mask,
30849 __builtin_ia32_pmovdw512mem_mask,
30850 __builtin_ia32_pmovqb512mem_mask,
30851 __builtin_ia32_pmovusqb512mem_mask,
30852 __builtin_ia32_pmovsqb512mem_mask,
30853 __builtin_ia32_pmovusdb512mem_mask,
30854 __builtin_ia32_pmovsdb512mem_mask,
30855 __builtin_ia32_pmovdb512mem_mask.
30856 (bdesc_args): Add __builtin_ia32_expanddf512,
30857 __builtin_ia32_expandsf512.
30858 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
30859 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
30860 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
30861 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
30862 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
30863 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
30864 (avx512f_<code>v8div16qi2_mask_store): This.
30865 (avx512f_expand<mode>): New.
30867 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
30869 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
30871 (_mm512_mask_prefetch_i64gather_pd): Ditto.
30872 (_mm512_prefetch_i32scatter_pd): Ditto.
30873 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
30874 (_mm512_prefetch_i64scatter_pd): Ditto.
30875 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
30876 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
30877 (_mm512_mask_prefetch_i64gather_ps): Ditto.
30878 (_mm512_prefetch_i32scatter_ps): Ditto.
30879 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
30880 (_mm512_prefetch_i64scatter_ps): Ditto.
30881 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
30882 * config/i386/i386-builtin-types.def: Define
30883 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
30884 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
30885 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
30886 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
30887 IX86_BUILTIN_SCATTERPFQPD.
30888 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
30889 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
30890 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
30891 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
30892 __builtin_ia32_scatterpfqps.
30893 (ix86_expand_builtin): Expand new built-ins.
30894 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
30895 fix memory access data type.
30896 (*avx512pf_gatherpf<mode>_mask): Ditto.
30897 (*avx512pf_gatherpf<mode>): Ditto.
30898 (avx512pf_scatterpf<mode>): Ditto.
30899 (*avx512pf_scatterpf<mode>_mask): Ditto.
30900 (*avx512pf_scatterpf<mode>): Ditto.
30901 (GATHER_SCATTER_SF_MEM_MODE): New.
30902 (avx512pf_gatherpf<mode>df): Ditto.
30903 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30904 (*avx512pf_scatterpf<mode>df): Ditto.
30906 2014-01-27 Jakub Jelinek <jakub@redhat.com>
30909 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
30910 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
30913 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
30915 * common/config/arm/arm-common.c
30916 (arm_rewrite_mcpu): Handle multiple names.
30918 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
30920 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
30922 * gimple-builder.h (create_gimple_tmp): Delete.
30924 2014-01-27 Christian Bruel <christian.bruel@st.com>
30926 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
30929 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
30931 * config/pa/pa.md (call): Generate indirect long calls to non-local
30932 functions when outputing 32-bit code.
30933 (call_value): Likewise except for special call to buggy powf function.
30935 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
30936 portable runtime and PIC indirect calls.
30937 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
30938 and PIC call sequences. Use ldo instead of blr to set return register
30939 in PIC call sequence.
30941 2014-01-25 Walter Lee <walt@tilera.com>
30943 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
30944 avoid clobbering a live register.
30946 2014-01-25 Walter Lee <walt@tilera.com>
30948 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
30949 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
30950 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
30951 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
30953 2014-01-25 Walter Lee <walt@tilera.com>
30955 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
30956 arguments on even registers.
30957 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
30959 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
30960 (BIGGEST_ALIGNMENT): Ditto.
30961 (BIGGEST_FIELD_ALIGNMENT): Ditto.
30963 2014-01-25 Walter Lee <walt@tilera.com>
30965 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
30966 insns before bundling.
30967 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
30969 2014-01-25 Walter Lee <walt@tilera.com>
30971 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
30972 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
30973 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
30975 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
30977 * config/mips/constraints.md (kl): Delete.
30978 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
30979 define expands, using...
30980 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
30981 instructions for MIPS16.
30982 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
30983 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
30985 2014-01-25 Walter Lee <walt@tilera.com>
30987 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
30991 2014-01-25 Walter Lee <walt@tilera.com>
30993 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
30994 (TARGET_EXPAND_TO_RTL_HOOK): Define.
30996 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
30998 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31001 2014-01-25 Jakub Jelinek <jakub@redhat.com>
31003 * print-rtl.c (in_call_function_usage): New var.
31004 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31005 EXPR_LIST mode as mode and not as reg note name.
31007 PR middle-end/59561
31008 * cfgloopmanip.c (copy_loop_info): If
31009 loop->warned_aggressive_loop_optimizations, make sure
31010 the flag is set in target loop too.
31012 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
31014 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31016 * builtins.def: Likewise.
31017 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31018 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31019 * ira.c (ira_setup_eliminable_regset): Likewise.
31020 * omp-low.c (gate_expand_omp): Likewise.
31021 (execute_lower_omp): Likewise.
31022 (diagnose_sb_0): Likewise.
31023 (gate_diagnose_omp_blocks): Likewise.
31024 (simd_clone_clauses_extract): Likewise.
31027 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31029 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
31030 correction for little endian...
31031 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
31034 2014-01-24 Jeff Law <law@redhat.com>
31036 PR tree-optimization/59919
31037 * tree-vrp.c (find_assert_locations_1): Do not register asserts
31038 for non-returning calls.
31040 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
31042 * common/config/aarch64/aarch64-common.c
31043 (aarch64_rewrite_mcpu): Handle multiple names.
31044 * config/aarch64/aarch64.h
31045 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31047 2014-01-24 Dodji Seketeli <dodji@redhat.com>
31049 * input.c (add_file_to_cache_tab): Handle the case where fopen
31052 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
31055 * config/i386/i386.md (pushsf splitter): Get stack adjustment
31056 from push operand if code of push isn't PRE_DEC.
31058 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
31061 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
31062 -mquad-memory-atomic. Update -mquad-memory documentation to say
31063 it is only used for non-atomic loads/stores.
31065 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
31066 -mquad-memory or -mquad-memory-atomic switches.
31068 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
31069 -mquad-memory-atomic to ISA 2.07 support.
31071 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
31072 to separate support of normal quad word memory operations (ldq, stq)
31073 from the atomic quad word memory operations.
31075 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31076 support to separate non-atomic quad word operations from atomic
31077 quad word operations. Disable non-atomic quad word operations in
31078 little endian mode so that we don't have to swap words after the
31079 load and before the store.
31080 (quad_load_store_p): Add comment about atomic quad word support.
31081 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
31082 options printed with -mdebug=reg.
31084 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
31085 -mquad-memory-atomic as the test for whether we have quad word
31086 atomic instructions.
31087 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
31088 or -mp8-vector are used, allow byte/half-word atomic operations.
31090 * config/rs6000/sync.md (load_lockedti): Insure that the address
31091 is a proper indexed or indirect address for the lqarx instruction.
31092 On little endian systems, swap the hi/lo registers after the lqarx
31094 (load_lockedpti): Use indexed_or_indirect_operand predicate to
31095 insure the address is valid for the lqarx instruction.
31096 (store_conditionalti): Insure that the address is a proper indexed
31097 or indirect address for the stqcrx. instruction. On little endian
31098 systems, swap the hi/lo registers before doing the stqcrx.
31100 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
31101 insure the address is valid for the stqcrx. instruction.
31103 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
31104 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
31105 type of quad memory support is available.
31107 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
31109 PR regression/59915
31110 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
31111 there is a danger of looping.
31113 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
31115 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31116 force flag_ira_loop_pressure if set via command line.
31118 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
31120 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
31121 (ashr_simd): New builtin handling DI mode.
31122 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
31123 (aarch64_sshr_simddi): New match pattern.
31124 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
31125 (vshrd_n_s64): Likewise.
31126 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
31128 2014-01-23 Nick Clifton <nickc@redhat.com>
31130 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
31131 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
31132 favour of mcu specific scripts.
31133 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
31136 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
31137 Alex Velenko <Alex.Velenko@arm.com>
31139 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
31140 (vaddv_s16): Likewise.
31141 (vaddv_s32): Likewise.
31142 (vaddv_u8): Likewise.
31143 (vaddv_u16): Likewise.
31144 (vaddv_u32): Likewise.
31145 (vaddvq_s8): Likewise.
31146 (vaddvq_s16): Likewise.
31147 (vaddvq_s32): Likewise.
31148 (vaddvq_s64): Likewise.
31149 (vaddvq_u8): Likewise.
31150 (vaddvq_u16): Likewise.
31151 (vaddvq_u32): Likewise.
31152 (vaddvq_u64): Likewise.
31153 (vaddv_f32): Likewise.
31154 (vaddvq_f32): Likewise.
31155 (vaddvq_f64): Likewise.
31156 (vmaxv_f32): Likewise.
31157 (vmaxv_s8): Likewise.
31158 (vmaxv_s16): Likewise.
31159 (vmaxv_s32): Likewise.
31160 (vmaxv_u8): Likewise.
31161 (vmaxv_u16): Likewise.
31162 (vmaxv_u32): Likewise.
31163 (vmaxvq_f32): Likewise.
31164 (vmaxvq_f64): Likewise.
31165 (vmaxvq_s8): Likewise.
31166 (vmaxvq_s16): Likewise.
31167 (vmaxvq_s32): Likewise.
31168 (vmaxvq_u8): Likewise.
31169 (vmaxvq_u16): Likewise.
31170 (vmaxvq_u32): Likewise.
31171 (vmaxnmv_f32): Likewise.
31172 (vmaxnmvq_f32): Likewise.
31173 (vmaxnmvq_f64): Likewise.
31174 (vminv_f32): Likewise.
31175 (vminv_s8): Likewise.
31176 (vminv_s16): Likewise.
31177 (vminv_s32): Likewise.
31178 (vminv_u8): Likewise.
31179 (vminv_u16): Likewise.
31180 (vminv_u32): Likewise.
31181 (vminvq_f32): Likewise.
31182 (vminvq_f64): Likewise.
31183 (vminvq_s8): Likewise.
31184 (vminvq_s16): Likewise.
31185 (vminvq_s32): Likewise.
31186 (vminvq_u8): Likewise.
31187 (vminvq_u16): Likewise.
31188 (vminvq_u32): Likewise.
31189 (vminnmv_f32): Likewise.
31190 (vminnmvq_f32): Likewise.
31191 (vminnmvq_f64): Likewise.
31193 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
31195 * config/aarch64/aarch64-simd.md
31196 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
31197 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
31198 (*aarch64_mul3_elt<mode>): Likewise.
31199 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
31200 (*aarch64_mul3_elt_to_64v2df): Likewise.
31201 (*aarch64_mla_elt<mode>): Likewise.
31202 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31203 (*aarch64_mls_elt<mode>): Likewise.
31204 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31205 (*aarch64_fma4_elt<mode>): Likewise.
31206 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31207 (*aarch64_fma4_elt_to_64v2df): Likewise.
31208 (*aarch64_fnma4_elt<mode>): Likewise.
31209 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31210 (*aarch64_fnma4_elt_to_64v2df): Likewise.
31211 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
31212 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
31213 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31214 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31215 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31216 (aarch64_sqdmull_lane<mode>_internal): Likewise.
31217 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31219 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
31221 * config/aarch64/aarch64-simd.md
31222 (aarch64_be_checked_get_lane<mode>): New define_expand.
31223 * config/aarch64/aarch64-simd-builtins.def
31224 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
31225 New builtin definition.
31226 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
31227 Use new safe be builtin.
31229 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
31231 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
31233 (aarch64_be_st1<mode>): Likewise.
31234 (aarch_ld1<VALL:mode>): Define_expand modified.
31235 (aarch_st1<VALL:mode>): Likewise.
31236 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
31237 (UNSPEC_ST1): Likewise.
31239 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
31241 * config/microblaze/microblaze.md: Add trap insn and attribute
31243 2014-01-23 Dodji Seketeli <dodji@redhat.com>
31245 PR preprocessor/58580
31246 * input.h (location_get_source_line): Take an additional line_size
31248 (void diagnostics_file_cache_fini): Declare new function.
31249 * input.c (struct fcache): New type.
31250 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
31251 New static constants.
31252 (diagnostic_file_cache_init, total_lines_num)
31253 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
31254 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
31255 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
31256 (get_next_line, read_next_line, goto_next_line, read_line_num):
31257 New static function definitions.
31258 (diagnostic_file_cache_fini): New function.
31259 (location_get_source_line): Take an additional output line_len
31260 parameter. Re-write using lookup_or_add_file_to_cache_tab and
31262 * diagnostic.c (diagnostic_finish): Call
31263 diagnostic_file_cache_fini.
31264 (adjust_line): Take an additional input parameter for the length
31265 of the line, rather than calculating it with strlen.
31266 (diagnostic_show_locus): Adjust the use of
31267 location_get_source_line and adjust_line with respect to their new
31268 signature. While displaying a line now, do not stop at the first
31269 null byte. Rather, display the zero byte as a space and keep
31270 going until we reach the size of the line.
31271 * Makefile.in: Add vec.o to OBJS-libcommon
31273 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31274 Ilya Tocar <ilya.tocar@intel.com>
31276 * config/i386/avx512fintrin.h (_mm512_kmov): New.
31277 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
31278 (__builtin_ia32_kmov16): Ditto.
31279 * config/i386/i386.md (UNSPEC_KMOV): New.
31282 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31284 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
31285 (_mm512_storeu_si512): Ditto.
31287 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
31290 * rtl.h (get_referenced_operands): Declare.
31291 * recog.c (get_referenced_operands): New function.
31292 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
31293 operands have been referenced when recording LO_SUM references.
31295 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
31297 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
31299 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31301 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
31302 Enable for generic and recent AMD targets.
31304 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31306 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
31307 ARG_SIZE note when adjustment was eliminated.
31309 2014-01-22 Jeff Law <law@redhat.com>
31311 PR tree-optimization/59597
31312 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
31313 in file. Accept new argument REGISTERING and use it to modify
31314 dump output appropriately.
31315 (register_jump_thread): Corresponding changes.
31316 (mark_threaded_blocks): Reinstate code to cancel unprofitable
31317 thread paths involving joiner blocks. Add code to dump cancelled
31318 jump threading paths.
31320 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
31322 PR rtl-optimization/59477
31323 * lra-constraints.c (inherit_in_ebb): Process call for living hard
31324 regs. Update reloads_num and potential_reload_hard_regs for all insns.
31326 2014-01-22 Tom Tromey <tromey@redhat.com>
31328 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
31330 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
31332 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31334 PR rtl-optimization/59896
31335 * lra-constraints.c (process_alt_operands): Check unused note for
31336 matched operands of insn with no output reloads.
31338 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
31340 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
31341 (mips_move_from_gpr_cost): Likewise.
31343 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31345 PR rtl-optimization/59858
31346 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
31347 ira_class_hard_regs_num.
31348 (process_alt_operands): Increase reject for dying matched operand.
31350 2014-01-21 Jakub Jelinek <jakub@redhat.com>
31353 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
31354 smaller than size, perform several stores or loads and stores
31355 at dst + count - size to store or copy all of size bytes, rather
31356 than just last modesize bytes.
31358 2014-01-20 DJ Delorie <dj@redhat.com>
31360 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
31361 that CLOBBERs are REGs before propogating their values.
31363 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
31365 PR middle-end/59789
31366 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
31367 (cgraph_inline_failed_type): New function.
31368 * cgraph.h (DEFCIFCODE): Add type.
31369 (cgraph_inline_failed_type_t): New enum.
31370 (cgraph_inline_failed_type): New prototype.
31371 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
31372 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31373 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
31374 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
31375 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
31376 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
31377 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
31378 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
31379 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
31380 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
31381 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
31382 OPTIMIZATION_MISMATCH.
31383 * tree-inline.c (expand_call_inline): Emit errors during
31384 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
31386 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31389 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
31390 mode attribute in insn output.
31392 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
31394 * output.h (output_constant): Delete.
31395 * varasm.c (output_constant): Make private.
31397 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
31399 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
31401 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31403 PR middle-end/59860
31404 * tree.h (fold_builtin_strcat): New prototype.
31405 * builtins.c (fold_builtin_strcat): No longer static. Add len
31406 argument, if non-NULL, don't call c_strlen. Optimize
31407 directly into __builtin_memcpy instead of __builtin_strcpy.
31408 (fold_builtin_2): Adjust fold_builtin_strcat caller.
31409 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
31411 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31413 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31414 for SImode_address_operand operands, having only a REG argument.
31416 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
31418 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
31419 loader name using mbig-endian.
31420 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
31422 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31424 * doc/invoke.texi (-march): Clarify documentation for AArch64.
31425 (-mtune): Likewise.
31428 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
31430 * config/aarch64/aarch64-protos.h
31431 (aarch64_cannot_change_mode_class_ptr): Declare.
31432 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
31433 aarch64_cannot_change_mode_class_ptr): New.
31434 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
31435 backend hook aarch64_cannot_change_mode_class.
31437 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31439 * common/config/aarch64/aarch64-common.c
31440 (aarch64_handle_option): Don't handle any option order logic here.
31441 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
31442 selected_cpu, warn on architecture version mismatch.
31443 (aarch64_override_options): Fix parsing order for option strings.
31445 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31446 Iain Sandoe <iain@codesourcery.com>
31449 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
31450 warning. Amend comment to reflect current functionality.
31452 2014-01-20 Richard Biener <rguenther@suse.de>
31454 PR middle-end/59860
31455 * builtins.c (fold_builtin_strcat): Remove case better handled
31456 by tree-ssa-strlen.c.
31458 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
31460 * config/aarch64/aarch64.opt
31461 (mcpu, march, mtune): Make case-insensitive.
31463 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31466 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31467 if operands[1] is a REG or ZERO_EXTEND of a REG.
31469 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
31471 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
31473 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
31475 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
31476 long non-pic millicode calls.
31478 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31480 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
31482 2014-01-19 Kito Cheng <kito@0xlab.org>
31484 * builtins.c (expand_movstr): Check movstr expand done or fail.
31486 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31487 H.J. Lu <hongjiu.lu@intel.com>
31490 * config/i386/i386.md (*lea<mode>): Zero-extend return register
31491 to DImode for zero-extended addresses.
31493 2014-01-19 Jakub Jelinek <jakub@redhat.com>
31495 PR rtl-optimization/57763
31496 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
31497 on the new indirect jump_insn and increment LABEL_NUSES (label).
31499 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
31503 * config.gcc (x86_archs): New variable.
31504 (x86_64_archs): Likewise.
31505 (x86_cpus): Likewise.
31506 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
31507 --with-arch/--with-cpu= options.
31508 Support --with-arch=/--with-cpu={nehalem,westmere,
31509 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
31511 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31513 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
31514 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
31516 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31518 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
31520 2014-01-18 Jakub Jelinek <jakub@redhat.com>
31523 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
31524 clear cpp_get_options (parse_in)->warn_unused_macros for
31525 ix86_target_macros_internal with cpp_define.
31527 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
31529 * jump.c (delete_related_insns): Keep (use (insn))s.
31530 * reorg.c (redundant_insn): Check for barriers too.
31532 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
31534 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
31536 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
31538 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
31539 call to $$dyncall when TARGET_LONG_CALLS is true.
31541 2014-01-17 Jeff Law <law@redhat.com>
31543 * ree.c (combine_set_extension): Temporarily disable test for
31544 changing number of hard registers.
31546 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
31548 PR middle-end/58125
31549 * ipa-inline-analysis.c (inline_free_summary):
31550 Do not free summary of aliases.
31552 2014-01-17 Jakub Jelinek <jakub@redhat.com>
31554 PR middle-end/59706
31555 * gimplify.c (gimplify_expr): Use create_tmp_var
31556 instead of create_tmp_var_raw. If cond doesn't have
31557 integral type, don't add the IFN_ANNOTATE builtin at all.
31559 2014-01-17 Martin Jambor <mjambor@suse.cz>
31562 * ipa-cp.c (prev_edge_clone): New variable.
31563 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
31564 Also resize prev_edge_clone vector.
31565 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
31566 (ipcp_edge_removal_hook): New function.
31567 (ipcp_driver): Register ipcp_edge_removal_hook.
31569 2014-01-17 Andrew Pinski <apinski@cavium.com>
31570 Steve Ellcey <sellcey@mips.com>
31573 * config/mips/mips.c (mips_print_operand): Check operand mode instead
31576 2014-01-17 Jeff Law <law@redhat.com>
31578 PR middle-end/57904
31579 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
31580 so that pass_ccp runs first.
31582 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
31584 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
31585 (ix86_adjust_cost): Use !TARGET_XXX.
31586 (do_reorder_for_imul): Likewise.
31587 (swap_top_of_ready_list): Likewise.
31588 (ix86_sched_reorder): Likewise.
31590 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
31592 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31593 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
31594 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
31595 (intel_memset): New. Duplicate slm_memset.
31596 (intel_cost): New. Duplicate slm_cost.
31597 (m_INTEL): New macro.
31598 (processor_target_table): Add "intel".
31599 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
31600 with PROCESSOR_INTEL for "intel".
31601 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
31602 PROCESSOR_SILVERMONT.
31603 (ix86_issue_rate): Likewise.
31604 (ix86_adjust_cost): Likewise.
31605 (ia32_multipass_dfa_lookahead): Likewise.
31606 (swap_top_of_ready_list): Likewise.
31607 (ix86_sched_reorder): Likewise.
31608 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
31609 instead of TARGET_OPT_AGU.
31610 * config/i386/i386.h (TARGET_INTEL): New.
31611 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
31612 (processor_type): Add PROCESSOR_INTEL.
31613 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
31614 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
31616 2014-01-17 Marek Polacek <polacek@redhat.com>
31619 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
31622 2014-01-17 Richard Biener <rguenther@suse.de>
31624 PR tree-optimization/46590
31625 * opts.c (default_options_table): Add entries for
31626 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
31627 all enabled at -O1 but not for -Og.
31628 * common.opt (fbranch-count-reg): Remove Init(1).
31629 (fmove-loop-invariants): Likewise.
31630 (ftree-pta): Likewise.
31632 2014-01-17 Jakub Jelinek <jakub@redhat.com>
31634 * config/i386/i386.c (ix86_data_alignment): For compatibility with
31635 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
31636 decls to at least the GCC 4.8 used alignments.
31639 * tree-nested.c (convert_nonlocal_reference_stmt,
31640 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
31641 of GIMPLE_BIND stmts, adjust associated decls.
31643 2014-01-17 Richard Biener <rguenther@suse.de>
31645 PR tree-optimization/46590
31646 * vec.h (vec<>::bseach): New member function implementing
31647 binary search according to C89 bsearch.
31648 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
31649 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
31650 bitmap pointer again. Make accesses_in_loop a flat array.
31651 (mem_ref_obstack): New global.
31652 (outermost_indep_loop): Adjust for mem_ref->stored changes.
31653 (mark_ref_stored): Likewise.
31654 (ref_indep_loop_p_2): Likewise.
31655 (set_ref_stored_in_loop): New helper function.
31656 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
31657 (memref_free): Adjust.
31658 (record_mem_ref_loc): Simplify.
31659 (gather_mem_refs_stmt): Adjust.
31660 (sort_locs_in_loop_postorder_cmp): New function.
31661 (analyze_memory_references): Sort accesses_in_loop after
31662 loop postorder number.
31663 (find_ref_loc_in_loop_cmp): New function.
31664 (for_all_locs_in_loop): Find relevant cluster of locs in
31665 accesses_in_loop and iterate without recursion.
31666 (execute_sm): Avoid uninit warning.
31667 (struct ref_always_accessed): Simplify.
31668 (ref_always_accessed::operator ()): Likewise.
31669 (ref_always_accessed_p): Likewise.
31670 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
31671 loop postorder numbers here.
31672 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
31675 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
31678 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
31679 on decls for which assemble_alias has been called.
31681 2014-01-17 Nick Clifton <nickc@redhat.com>
31683 * config/msp430/msp430.opt: (mcpu): New option.
31684 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
31685 (msp430_option_override): Parse target_cpu. If the MCU name
31686 matches a generic string, clear target_mcu.
31687 (msp430_attr): Allow numeric interrupt values up to 63.
31688 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
31689 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
31691 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
31693 * config/msp430/msp430.md (popm): Use %J rather than %I.
31694 (addsi3): Use msp430_nonimmediate_operand for operand 2.
31695 (addhi_cy_i): Use immediate_operand for operand 2.
31696 * doc/invoke.texi: Document -mcpu option.
31698 2014-01-17 Richard Biener <rguenther@suse.de>
31700 PR rtl-optimization/38518
31701 * df.h (df_analyze_loop): Declare.
31702 * df-core.c: Include cfgloop.h.
31703 (df_analyze_1): Split out main part of df_analyze.
31704 (df_analyze): Adjust.
31705 (loop_inverted_post_order_compute): New function.
31706 (loop_post_order_compute): Likewise.
31707 (df_analyze_loop): New function avoiding whole-function
31708 postorder computes.
31709 * loop-invariant.c (find_defs): Use df_analyze_loop.
31710 (find_invariants): Adjust.
31711 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
31713 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
31715 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
31716 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
31718 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
31720 * ipa-ref.c (ipa_remove_stmt_references): Fix references
31721 traversal when removing references.
31723 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
31726 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
31728 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
31730 PR middle-end/56791
31731 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
31732 pushing a reload for an autoinc when we had previously reloaded an
31733 inner part of the address.
31735 2014-01-16 Jakub Jelinek <jakub@redhat.com>
31737 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
31739 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
31740 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
31741 when not giving up or versioning for alias only because of
31743 (vect_analyze_data_ref_dependences): Set to true.
31744 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
31746 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
31747 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
31750 PR middle-end/58344
31751 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
31754 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
31755 operand 0 predicate for gathers, use a new pseudo as subtarget.
31757 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
31759 PR middle-end/59609
31760 * lra-constraints.c (process_alt_operands): Add printing debug info.
31761 Check absence of input/output reloads for matched operands too.
31763 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
31765 PR rtl-optimization/59835
31766 * ira.c (ira_init_register_move_cost): Increase cost for
31769 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
31771 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
31773 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
31776 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
31777 non-register objects. Use gen_(high/low)part more consistently.
31780 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
31783 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
31784 endian support, remove tests for WORDS_BIG_ENDIAN.
31785 (p8_mfvsrd_3_<mode>): Likewise.
31786 (reload_gpr_from_vsx<mode>): Likewise.
31787 (reload_gpr_from_vsxsf): Likewise.
31788 (p8_mfvsrd_4_disf): Likewise.
31790 2014-01-16 Richard Biener <rguenther@suse.de>
31792 PR rtl-optimization/46590
31793 * lcm.c (compute_antinout_edge): Use postorder iteration.
31794 (compute_laterin): Use inverted postorder iteration.
31796 2014-01-16 Nick Clifton <nickc@redhat.com>
31798 PR middle-end/28865
31799 * varasm.c (output_constant): Return the number of bytes actually
31801 (output_constructor_array_range): Update the field size with the
31802 number of bytes emitted by output_constant.
31803 (output_constructor_regular_field): Likewise. Also do not
31804 complain if the total number of bytes emitted is now greater
31805 than the expected fieldpos.
31806 * output.h (output_constant): Update prototype and descriptive comment.
31808 2014-01-16 Marek Polacek <polacek@redhat.com>
31810 PR middle-end/59827
31811 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
31812 it is error_mark_node.
31814 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
31816 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
31817 VALID_AVX256_REG_OR_OI_MODE.
31819 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
31821 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
31822 current procedure should be profiled.
31824 2014-01-15 Andrew Pinski <apinski@cavium.com>
31826 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
31827 of moving from/to the STACK_REG register class.
31829 2014-01-15 Richard Henderson <rth@redhat.com>
31832 * reginfo.c (global_regs_decl): Globalize.
31833 * rtl.h (global_regs_decl): Declare.
31834 * ira.c (do_reload): Diagnose frame_pointer_needed and it
31835 reserved via global_regs.
31837 2014-01-15 Teresa Johnson <tejohnson@google.com>
31839 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
31841 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
31843 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
31844 and vmulosh rather than call gen_vec_widen_smult_*.
31845 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
31846 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
31847 (vec_widen_smult_even_v16qi): Likewise.
31848 (vec_widen_umult_even_v8hi): Likewise.
31849 (vec_widen_smult_even_v8hi): Likewise.
31850 (vec_widen_umult_odd_v16qi): Likewise.
31851 (vec_widen_smult_odd_v16qi): Likewise.
31852 (vec_widen_umult_odd_v8hi): Likewise.
31853 (vec_widen_smult_odd_v8hi): Likewise.
31854 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
31855 vmuloub rather than call gen_vec_widen_umult_*.
31856 (vec_widen_umult_lo_v16qi): Likewise.
31857 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
31858 vmulosb rather than call gen_vec_widen_smult_*.
31859 (vec_widen_smult_lo_v16qi): Likewise.
31860 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
31861 rather than call gen_vec_widen_umult_*.
31862 (vec_widen_umult_lo_v8hi): Likewise.
31863 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
31864 rather than call gen_vec_widen_smult_*.
31865 (vec_widen_smult_lo_v8hi): Likewise.
31867 2014-01-15 Jeff Law <law@redhat.com>
31869 PR tree-optimization/59747
31870 * ree.c (find_and_remove_re): Properly handle case where a second
31871 eliminated extension requires widening a copy created for elimination
31872 of a prior extension.
31873 (combine_set_extension): Ensure that the number of hard regs needed
31874 for a destination register does not change when we widen it.
31876 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
31878 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
31879 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
31880 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
31881 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
31882 (avr-*-rtems*): Likewise.
31883 (bfin*-rtems*): Likewise.
31884 (moxie-*-rtems*): Likewise.
31885 (h8300-*-rtems*): Likewise.
31886 (i[34567]86-*-rtems*): Likewise.
31887 (lm32-*-rtems*): Likewise.
31888 (m32r-*-rtems*): Likewise.
31889 (m68k-*-rtems*): Likewise.
31890 (microblaze*-*-rtems*): Likewise.
31891 (mips*-*-rtems*): Likewise.
31892 (powerpc-*-rtems*): Likewise.
31893 (sh-*-rtems*): Likewise.
31894 (sparc-*-rtems*): Likewise.
31895 (sparc64-*-rtems*): Likewise.
31896 (v850-*-rtems*): Likewise.
31897 (m32c-*-rtems*): Likewise.
31899 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
31901 PR rtl-optimization/59511
31902 * ira.c (ira_init_register_move_cost): Use memory costs for some
31903 cases of register move cost calculations.
31904 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
31905 instead of BB frequency.
31906 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
31907 * lra-assigns.c (find_hard_regno_for): Ditto.
31909 2014-01-15 Richard Biener <rguenther@suse.de>
31911 PR tree-optimization/59822
31912 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
31913 (vectorizable_load): Use it to hoist defs of uses of invariant
31914 loads out of the loop.
31916 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
31917 Kugan Vivekanandarajah <kuganv@linaro.org>
31920 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
31923 2014-01-15 Richard Biener <rguenther@suse.de>
31925 PR rtl-optimization/59802
31926 * lcm.c (compute_available): Use inverted postorder to seed
31927 the initial worklist.
31929 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31932 * config/s390/s390.c (s390_preferred_reload_class): Don't return
31933 ADDR_REGS for invalid symrefs in non-PIC code.
31935 2014-01-15 Jakub Jelinek <jakub@redhat.com>
31938 * builtins.c (determine_block_size): Initialize *probable_max_size
31939 even if len_rtx is CONST_INT.
31941 2014-01-14 Andrew Pinski <apinski@cavium.com>
31943 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
31944 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
31945 (cortexa53_tunings): Likewise.
31946 (aarch64_sched_issue_rate): New function.
31947 (TARGET_SCHED_ISSUE_RATE): Define.
31949 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
31951 * ira-costs.c (find_costs_and_classes): Add missed
31952 ira_init_register_move_cost_if_necessary.
31954 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
31957 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
31959 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
31962 * config/i386/i386.c (type_natural_mode): Add a bool parameter
31963 to indicate if type is used for function return value. Warn ABI
31964 change if the vector mode isn't available for function return value.
31965 (ix86_function_arg_advance): Pass false to type_natural_mode.
31966 (ix86_function_arg): Likewise.
31967 (ix86_gimplify_va_arg): Likewise.
31968 (function_arg_32): Don't warn ABI change.
31969 (ix86_function_value): Pass true to type_natural_mode.
31970 (ix86_return_in_memory): Likewise.
31971 (ix86_struct_value_rtx): Removed.
31972 (TARGET_STRUCT_VALUE_RTX): Likewise.
31974 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31976 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
31977 converting a conditional jump into a conditional return.
31979 2014-01-14 Richard Biener <rguenther@suse.de>
31981 PR tree-optimization/58921
31982 PR tree-optimization/59006
31983 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
31984 hoisting invariant stmts.
31985 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
31986 invariant loads on the preheader edge if possible.
31988 2014-01-14 Joey Ye <joey.ye@arm.com>
31990 * doc/plugin.texi (Building GCC plugins): Update to C++.
31992 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
31994 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
31995 (_mm_rcp28_round_ss): Ditto.
31996 (_mm_rsqrt28_round_sd): Ditto.
31997 (_mm_rsqrt28_round_ss): Ditto.
31998 (_mm_rcp28_sd): Ditto.
31999 (_mm_rcp28_ss): Ditto.
32000 (_mm_rsqrt28_sd): Ditto.
32001 (_mm_rsqrt28_ss): Ditto.
32002 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32003 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32004 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32005 (IX86_BUILTIN_RCP28SD): Ditto.
32006 (IX86_BUILTIN_RCP28SS): Ditto.
32007 (IX86_BUILTIN_RSQRT28SD): Ditto.
32008 (IX86_BUILTIN_RSQRT28SS): Ditto.
32009 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32010 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32011 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32012 (ix86_expand_special_args_builtin): Expand new FTYPE.
32013 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32014 (srcp14<mode>): Make insn unary.
32015 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32016 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32017 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32018 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32019 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32020 Fix rounding: make it SAE only.
32021 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32023 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32025 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
32026 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
32027 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
32028 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
32029 (round_saeonly_mask_scalar_operand4): Ditto.
32030 (round_saeonly_mask_scalar_op3): Ditto.
32031 (round_saeonly_mask_scalar_op4): Ditto.
32033 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32035 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32036 Implement -maltivec=be for vec_insert and vec_extract.
32038 2014-01-10 DJ Delorie <dj@redhat.com>
32040 * config/msp430/msp430.md (call_internal): Don't allow memory
32041 references with SP as the base register.
32042 (call_value_internal): Likewise.
32043 * config/msp430/constraints.md (Yc): New. For memory references
32044 that don't use SP as a base register.
32046 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
32047 "an integer without a # prefix"
32048 * config/msp430/msp430.md (epilogue_helper): Use it.
32050 2014-01-13 Jakub Jelinek <jakub@redhat.com>
32053 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
32054 AVX512F gather builtins.
32055 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
32056 on gather decls with INTEGER_TYPE masktype.
32057 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
32058 directly into the builtin rather than hoisting it before loop.
32060 PR tree-optimization/59387
32061 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
32062 (scev_const_prop): If folded_casts and type has undefined overflow,
32063 use force_gimple_operand instead of force_gimple_operand_gsi and
32064 for each added stmt if it is assign with
32065 arith_code_with_undefined_signed_overflow, call
32066 rewrite_to_defined_overflow.
32067 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
32068 gimple-fold.h instead.
32069 (arith_code_with_undefined_signed_overflow,
32070 rewrite_to_defined_overflow): Moved to ...
32071 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
32072 rewrite_to_defined_overflow): ... here. No longer static.
32073 Include gimplify-me.h.
32074 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
32075 rewrite_to_defined_overflow): New prototypes.
32077 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32079 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
32081 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
32083 * builtins.c (get_object_alignment_2): Minor tweak.
32084 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
32086 2014-01-13 Christian Bruel <christian.bruel@st.com>
32088 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
32089 optimized non constant lengths.
32091 2014-01-13 Jakub Jelinek <jakub@redhat.com>
32094 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
32095 load as __atomic_load_N if possible.
32097 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
32099 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
32101 (rs6000_expand_builtin): Adjust call.
32103 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
32106 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
32107 * config/rs6000/rs6000.c: Include target-globals.h.
32108 (rs6000_set_current_function): Instead of doing target_reinit
32109 unconditionally, use save_target_globals_default_opts and
32110 restore_target_globals.
32112 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
32114 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
32115 (rs6000_expand_builtin): Handle mffs and mtfsf.
32116 (rs6000_init_builtins): Define mffs and mtfsf.
32117 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
32118 (rs6000_mffs): New pattern.
32119 (rs6000_mtfsf): New pattern.
32121 2014-01-11 Bin Cheng <bin.cheng@arm.com>
32123 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
32124 Start narrowing with START. Apply candidate-use pair
32125 and check overall cost in narrowing.
32126 (iv_ca_prune): Pass new argument.
32128 2014-01-10 Jeff Law <law@redhat.com>
32130 PR middle-end/59743
32131 * ree.c (combine_reaching_defs): Ensure the defining statement
32132 occurs before the extension when optimizing extensions with
32133 different source and destination hard registers.
32135 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
32138 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
32139 vtables into the type inheritance graph.
32141 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32143 PR rtl-optimization/59754
32144 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
32145 modes in the REGNO != REGNO case.
32147 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32149 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
32151 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32153 PR tree-optimization/59745
32154 * tree-predcom.c (tree_predictive_commoning_loop): Call
32155 free_affine_expand_cache if giving up because components is NULL.
32157 * target-globals.c (save_target_globals): Allocate < 4KB structs using
32158 GC in payload of target_globals struct instead of allocating them on
32159 the heap and the larger structs separately using GC.
32160 * target-globals.h (struct target_globals): Make regs, hard_regs,
32161 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
32162 of GTY((skip)) and change type to void *.
32163 (reset_target_globals): Cast loads from those fields to corresponding
32166 2014-01-10 Steve Ellcey <sellcey@mips.com>
32169 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
32170 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
32171 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
32173 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
32176 * aarch64-modes.def (CC_Zmode): New flags mode.
32177 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
32178 represents an equality.
32179 (aarch64_get_condition_code): Handle CC_Zmode.
32180 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
32182 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32184 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
32185 extraction in good case.
32187 2014-01-10 Richard Biener <rguenther@suse.de>
32189 PR tree-optimization/59374
32190 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
32191 checking after SLP discovery. Mark stmts not participating
32192 in any SLP instance properly.
32194 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32196 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
32197 when handling a SET rtx.
32199 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32201 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
32202 (cortex-a57): Likewise.
32203 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
32205 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32207 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
32208 non-iwmmxt builtins.
32210 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
32214 * ipa-devirt.c record_target_from_binfo): Take as argument
32215 stack of binfos and lookup matching one for virtual inheritance.
32216 (possible_polymorphic_call_targets_1): Update.
32218 2014-01-10 Huacai Chen <chenhc@lemote.com>
32220 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
32221 kernel strings for Loongson-2E/2F/3A.
32223 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32225 PR middle-end/59670
32226 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
32227 is_gimple_call before calling gimple_call_internal_p.
32229 2014-01-09 Steve Ellcey <sellcey@mips.com>
32231 * Makefile.in (TREE_FLOW_H): Remove.
32232 (TREE_SSA_H): Add file names from tree-flow.h.
32233 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
32234 * tree.h: Remove tree-flow.h reference.
32235 * hash-table.h: Remove tree-flow.h reference.
32236 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
32237 reference with tree-ssa-loop.h.
32239 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32241 * doc/invoke.texi: Add -maltivec={be,le} options, and document
32242 default element-order behavior for -maltivec.
32243 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
32244 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
32245 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
32246 when targeting big endian, at least for now.
32247 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
32249 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32251 PR middle-end/47735
32252 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
32253 var satisfies use_register_for_decl, just take into account type
32254 alignment, rather than decl alignment.
32256 PR tree-optimization/59622
32257 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
32258 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
32259 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
32260 Don't devirtualize for inplace at all. For targets.length () == 1,
32261 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
32263 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32265 * config/i386/i386.md (cpu): Remove the unused btver1.
32267 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32269 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
32271 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32274 * tree-core.h (struct target_globals): New forward declaration.
32275 (struct tree_target_option): Add globals field.
32276 * tree.h (TREE_TARGET_GLOBALS): Define.
32277 (prepare_target_option_nodes_for_pch): New prototype.
32278 * target-globals.h (struct target_globals): Define even if
32279 !SWITCHABLE_TARGET.
32280 * tree.c (prepare_target_option_node_for_pch,
32281 prepare_target_option_nodes_for_pch): New functions.
32282 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
32283 * config/i386/i386.c: Include target-globals.h.
32284 (ix86_set_current_function): Instead of doing target_reinit
32285 unconditionally, use save_target_globals_default_opts and
32286 restore_target_globals.
32288 2014-01-09 Richard Biener <rguenther@suse.de>
32290 PR tree-optimization/59715
32291 * tree-cfg.h (split_critical_edges): Declare.
32292 * tree-cfg.c (split_critical_edges): Export.
32293 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
32295 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
32297 * cfgexpand.c (expand_stack_vars): Optionally disable
32298 asan stack protection.
32299 (expand_used_vars): Likewise.
32300 (partition_stack_vars): Likewise.
32301 * asan.c (asan_emit_stack_protection): Optionally disable
32302 after return stack usage.
32303 (instrument_derefs): Optionally disable memory access instrumentation.
32304 (instrument_builtin_call): Likewise.
32305 (instrument_strlen_call): Likewise.
32306 (asan_protect_global): Optionally disable global variables protection.
32307 * doc/invoke.texi: Added doc for new options.
32308 * params.def: Added new options.
32309 * params.h: Likewise.
32311 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32313 PR rtl-optimization/59724
32314 * ifcvt.c (cond_exec_process_if_block): Don't call
32315 flow_find_head_matching_sequence with 0 longest_match.
32316 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
32317 non-active insns if !stop_after.
32318 (try_head_merge_bb): Revert 2014-01-07 changes.
32320 2014-01-08 Jeff Law <law@redhat.com>
32322 * ree.c (get_sub_rtx): New function, extracted from...
32323 (merge_def_and_ext): Here.
32324 (combine_reaching_defs): Use get_sub_rtx.
32326 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
32328 * cgraph.h (varpool_variable_node): Do not choke on null node.
32330 2014-01-08 Catherine Moore <clm@codesourcery.com>
32332 * config/mips/mips.md (simple_return): Attempt to use JRC
32334 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
32336 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32338 PR rtl-optimization/59137
32339 * reorg.c (steal_delay_list_from_target): Call update_block for
32341 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
32343 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32345 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
32346 two duplicate entries.
32348 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32351 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
32353 * config/mips/mips.c (mips_truncated_op_cost): New function.
32354 (mips_rtx_costs): Adjust test for BADDU.
32355 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
32357 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
32359 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
32360 (*baddu_si): ...this new pattern.
32362 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32365 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
32367 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
32369 PR middle-end/57748
32370 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
32372 (expand_expr, expand_normal): Adjust.
32373 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
32374 inner_reference_p. Use inner_reference_p to expand inner references.
32375 (store_expr): Adjust.
32376 * cfgexpand.c (expand_call_stmt): Adjust.
32378 2014-01-08 Rong Xu <xur@google.com>
32380 * gcov-io.c (gcov_var): Move from gcov-io.h.
32381 (gcov_position): Ditto.
32382 (gcov_is_error): Ditto.
32383 (gcov_rewrite): Ditto.
32384 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
32385 only part to libgcc/libgcov.h.
32387 2014-01-08 Marek Polacek <polacek@redhat.com>
32389 PR middle-end/59669
32390 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
32392 2014-01-08 Marek Polacek <polacek@redhat.com>
32395 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
32397 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32399 PR rtl-optimization/59649
32400 * stor-layout.c (get_mode_bounds): For BImode return
32401 0 and STORE_FLAG_VALUE.
32403 2014-01-08 Richard Biener <rguenther@suse.de>
32405 PR middle-end/59630
32406 * gimple.h (is_gimple_builtin_call): Remove.
32407 (gimple_builtin_call_types_compatible_p): New.
32408 (gimple_call_builtin_p): New overload.
32409 * gimple.c (is_gimple_builtin_call): Remove.
32410 (validate_call): Rename to ...
32411 (gimple_builtin_call_types_compatible_p): ... this and export. Also
32412 check return types.
32413 (validate_type): New static function.
32414 (gimple_call_builtin_p): New overload and adjust.
32415 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
32416 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
32417 (gimple_fold_stmt_to_constant_1): Likewise.
32418 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
32420 2014-01-08 Richard Biener <rguenther@suse.de>
32422 PR middle-end/59471
32423 * gimplify.c (gimplify_expr): Gimplify register-register type
32424 VIEW_CONVERT_EXPRs to separate stmts.
32426 2014-01-07 Jeff Law <law@redhat.com>
32428 PR middle-end/53623
32429 * ree.c (combine_set_extension): Handle case where source
32430 and destination registers in an extension insn are different.
32431 (combine_reaching_defs): Allow source and destination registers
32432 in extension to be different under limited circumstances.
32433 (add_removable_extension): Remove restriction that the
32434 source and destination registers in the extension are the same.
32435 (find_and_remove_re): Emit a copy from the extension's
32436 destination to its source after the defining insn if
32437 the source and destination registers are different.
32439 PR middle-end/59285
32440 * ifcvt.c (merge_if_block): If we are merging a block with more than
32441 one successor with a block with no successors, remove any BARRIER
32442 after the second block.
32444 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
32446 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
32448 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
32451 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
32452 for 14-bit register offsets when INT14_OK_STRICT is false.
32454 2014-01-07 Roland Stigge <stigge@antcom.de>
32455 Michael Meissner <meissner@linux.vnet.ibm.com>
32458 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
32459 Only check TFmode for SPE constants. Don't check TImode or TDmode.
32461 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
32463 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
32466 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
32468 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
32469 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
32470 rtx is const0_rtx or not.
32472 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
32475 * target-globals.c (save_target_globals): Remove this_fn_optab
32477 * toplev.c: Include optabs.h.
32478 (target_reinit): Temporarily restore the global options if another
32479 set of options are in force.
32481 2014-01-07 Jakub Jelinek <jakub@redhat.com>
32483 PR rtl-optimization/58668
32484 * cfgcleanup.c (flow_find_cross_jump): Don't count
32485 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
32486 to determine what is counted.
32487 (flow_find_head_matching_sequence): Use active_insn_p to determine
32489 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
32491 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
32492 determine what is counted.
32494 PR tree-optimization/59643
32495 * tree-predcom.c (split_data_refs_to_components): If one dr is
32496 read and one write, determine_offset fails and the write isn't
32497 in the bad component, just put the read into the bad component.
32499 2014-01-07 Mike Stump <mikestump@comcast.net>
32500 Jakub Jelinek <jakub@redhat.com>
32503 * tree-core.h (struct tree_optimization_option): Change optabs
32504 type from unsigned char * to void *.
32505 * optabs.c (init_tree_optimization_optabs): Adjust
32506 TREE_OPTIMIZATION_OPTABS initialization.
32508 2014-01-06 Jakub Jelinek <jakub@redhat.com>
32511 * config/i386/i386.h (struct machine_function): Add
32512 no_drap_save_restore field.
32513 * config/i386/i386.c (ix86_save_reg): Use
32514 !cfun->machine->no_drap_save_restore instead of
32515 crtl->stack_realign_needed.
32516 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
32517 this function clears frame_pointer_needed. Set
32518 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
32519 and DRAP reg is needed.
32521 2014-01-06 Marek Polacek <polacek@redhat.com>
32524 * doc/implement-c.texi: Mention that other integer types are
32525 permitted as bit-field types in strictly conforming mode.
32527 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
32529 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
32530 is newly allocated.
32532 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
32534 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
32536 2014-01-06 Martin Jambor <mjambor@suse.cz>
32539 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
32541 * ipa-prop.c (ipa_print_node_params): Fix indentation.
32543 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
32547 * var-tracking.c (add_stores): Preserve the value of the source even if
32548 we don't record the store.
32550 2014-01-06 Terry Guo <terry.guo@arm.com>
32552 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
32554 2014-01-05 Iain Sandoe <iain@codesourcery.com>
32557 * config/darwin.c (darwin_function_section): Adjust return values to
32558 correspond to optimisation changes made in r206070.
32560 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
32562 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
32563 from prefetch_block tune setting.
32564 (nocona_cost): Correct size of prefetch block to 64.
32566 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
32568 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
32569 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
32570 used to save the static chain register in the computation of the offset
32571 from which the FP registers need to be restored.
32573 2014-01-04 Jakub Jelinek <jakub@redhat.com>
32575 PR tree-optimization/59519
32576 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
32577 ICE if get_current_def (current_new_name) is already non-NULL, as long
32578 as it is a phi result of some other phi in *new_exit_bb that has
32581 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
32582 or vmovdqu* for misaligned_operand.
32583 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
32584 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
32585 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
32586 aligned_mem for AVX512F masked aligned load and store builtins and for
32587 non-temporal moves.
32589 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
32591 PR tree-optimization/59651
32592 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32593 Address range for negative step should be added by TYPE_SIZE_UNIT.
32595 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
32597 * config/m68k/m68k.c (handle_move_double): Handle pushes with
32598 overlapping registers also for registers other than the stack pointer.
32600 2014-01-03 Marek Polacek <polacek@redhat.com>
32603 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
32606 2014-01-03 Jakub Jelinek <jakub@redhat.com>
32609 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
32612 * config/i386/i386.md (MODE_SIZE): New mode attribute.
32613 (push splitter): Use <P:MODE_SIZE> instead of
32614 GET_MODE_SIZE (<P:MODE>mode).
32615 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
32616 (mov -1, reg peephole2): Likewise.
32617 * config/i386/sse.md (*mov<mode>_internal,
32618 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
32619 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
32620 *<code><mode>3, *andnot<mode>3<mask_name>,
32621 <mask_codefor><code><mode>3<mask_name>): Likewise.
32622 * config/i386/subst.md (mask_mode512bit_condition,
32623 sd_mask_mode512bit_condition): Likewise.
32625 2014-01-02 Xinliang David Li <davidxl@google.com>
32627 PR tree-optimization/59303
32628 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
32629 (dump_predicates): Better output format.
32630 (pred_equal_p): New function.
32631 (is_neq_relop_p): Ditto.
32632 (is_neq_zero_form_p): Ditto.
32633 (pred_expr_equal_p): Ditto.
32634 (pred_neg_p): Ditto.
32635 (simplify_pred): Ditto.
32636 (simplify_preds_2): Ditto.
32637 (simplify_preds_3): Ditto.
32638 (simplify_preds_4): Ditto.
32639 (simplify_preds): Ditto.
32640 (push_pred): Ditto.
32641 (push_to_worklist): Ditto.
32642 (get_pred_info_from_cmp): Ditto.
32643 (is_degenerated_phi): Ditto.
32644 (normalize_one_pred_1): Ditto.
32645 (normalize_one_pred): Ditto.
32646 (normalize_one_pred_chain): Ditto.
32647 (normalize_preds): Ditto.
32648 (normalize_cond_1): Remove function.
32649 (normalize_cond): Ditto.
32650 (is_gcond_subset_of): Ditto.
32651 (is_subset_of_any): Ditto.
32652 (is_or_set_subset_of): Ditto.
32653 (is_and_set_subset_of): Ditto.
32654 (is_norm_cond_subset_of): Ditto.
32655 (pred_chain_length_cmp): Ditto.
32656 (convert_control_dep_chain_into_preds): Type change.
32657 (find_predicates): Ditto.
32658 (find_def_preds): Ditto.
32659 (destroy_predicates_vecs): Ditto.
32660 (find_matching_predicates_in_rest_chains): Ditto.
32661 (use_pred_not_overlap_with_undef_path_pred): Ditto.
32662 (is_pred_expr_subset): Ditto.
32663 (is_pred_chain_subset_of): Ditto.
32664 (is_included_in): Ditto.
32665 (is_superset_of): Ditto.
32667 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32669 Update copyright years.
32671 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32673 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
32674 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
32675 config/arc/arc.md, config/arc/arc.opt,
32676 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
32677 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
32678 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
32679 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
32680 config/linux-protos.h, config/linux.c, config/winnt-c.c,
32681 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
32682 vtable-verify.c, vtable-verify.h: Use the standard form for the
32685 2014-01-02 Tobias Burnus <burnus@net-b.de>
32687 * gcc.c (process_command): Update copyright notice dates.
32688 * gcov-dump.c: Ditto.
32690 * doc/cpp.texi: Bump @copying's copyright year.
32691 * doc/cppinternals.texi: Ditto.
32692 * doc/gcc.texi: Ditto.
32693 * doc/gccint.texi: Ditto.
32694 * doc/gcov.texi: Ditto.
32695 * doc/install.texi: Ditto.
32696 * doc/invoke.texi: Ditto.
32698 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32700 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
32702 2014-01-01 Jakub Jelinek <jakub@redhat.com>
32704 * config/i386/sse.md (*mov<mode>_internal): Guard
32705 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
32707 PR rtl-optimization/59647
32708 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
32709 new_rtx into UNSIGNED_FLOAT rtxes.
32711 Copyright (C) 2014 Free Software Foundation, Inc.
32713 Copying and distribution of this file, with or without modification,
32714 are permitted in any medium without royalty provided the copyright
32715 notice and this notice are preserved.